From 0053cb53b480afe86c1b08aa1f6877137e6685f9 Mon Sep 17 00:00:00 2001 From: arai Date: Tue, 28 May 2002 19:35:34 +0000 Subject: [PATCH] * configure.in, configure.ac, config.h.in: checks having uid_t/gid_t. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@162 6a8cc165-1e22-0410-a132-eb4e3f353aba --- config.h.in | 6 ++++++ configure.ac | 1 + configure.in | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/config.h.in b/config.h.in index 4cb34c4..603ee05 100644 --- a/config.h.in +++ b/config.h.in @@ -34,6 +34,9 @@ /* Define to 1 if you have the `gettimeofday' function. */ #undef HAVE_GETTIMEOFDAY +/* Define to 1 if the system has the type `gid_t'. */ +#undef HAVE_GID_T + /* Define to 1 if you have the header file. */ #undef HAVE_GRP_H @@ -146,6 +149,9 @@ /* Define to 1 if you have the `tzset' function. */ #undef HAVE_TZSET +/* Define to 1 if the system has the type `uid_t'. */ +#undef HAVE_UID_T + /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H diff --git a/configure.ac b/configure.ac index 3a832a9..2c90026 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,7 @@ AC_HEADER_TIME AC_STRUCT_TM AC_STRUCT_TIMEZONE +AC_CHECK_TYPES([uid_t, gid_t]) AC_CHECK_MEMBERS([struct tm.tm_gmtoff, struct stat.st_ino],,, [ #if HAVE_SYS_TYPES_H diff --git a/configure.in b/configure.in index 4c95772..eae042a 100644 --- a/configure.in +++ b/configure.in @@ -32,6 +32,11 @@ AC_HEADER_TIME AC_STRUCT_TM AC_STRUCT_TIMEZONE +AC_CHECK_TYPE(uid_t, int) +AC_CHECK_TYPE(gid_t, int) +AC_DEFINE(HAVE_UID_T, 1, [dummy macro]) +AC_DEFINE(HAVE_GID_T, 1, [dummy macro]) + AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_member_struct_tm_tm_gmtoff, [AC_TRY_COMPILE([ #if TM_IN_SYS_TIME -- 2.11.0