OSDN Git Service

* configure.in, configure.ac, config.h.in: checks having uid_t/gid_t.
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Tue, 28 May 2002 19:35:34 +0000 (19:35 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Tue, 28 May 2002 19:35:34 +0000 (19:35 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@162 6a8cc165-1e22-0410-a132-eb4e3f353aba

config.h.in
configure.ac
configure.in

index 4cb34c4..603ee05 100644 (file)
@@ -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 <grp.h> header file. */
 #undef HAVE_GRP_H
 
 /* 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 <unistd.h> header file. */
 #undef HAVE_UNISTD_H
 
index 3a832a9..2c90026 100644 (file)
@@ -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
index 4c95772..eae042a 100644 (file)
@@ -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