OSDN Git Service

* configure.in, configure.ac, config.h.in: checks having
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Tue, 28 May 2002 18:51:13 +0000 (18:51 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Tue, 28 May 2002 18:51:13 +0000 (18:51 +0000)
getpwuid/getgrgid and so on.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@157 6a8cc165-1e22-0410-a132-eb4e3f353aba

config.h.in
configure.ac
configure.in

index dc293ae..4cb34c4 100644 (file)
 /* Define to 1 if you have the `ftruncate' function. */
 #undef HAVE_FTRUNCATE
 
+/* Define to 1 if you have the `getgrgid' function. */
+#undef HAVE_GETGRGID
+
+/* Define to 1 if you have the `getgrnam' function. */
+#undef HAVE_GETGRNAM
+
+/* Define to 1 if you have the `getpwnam' function. */
+#undef HAVE_GETPWNAM
+
+/* Define to 1 if you have the `getpwuid' function. */
+#undef HAVE_GETPWUID
+
 /* Define to 1 if you have the `gettimeofday' function. */
 #undef HAVE_GETTIMEOFDAY
 
+/* Define to 1 if you have the <grp.h> header file. */
+#undef HAVE_GRP_H
+
 /* Define to 1 if you have the <inttypes.h> header file. */
 #undef HAVE_INTTYPES_H
 
@@ -58,6 +73,9 @@
 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
 #undef HAVE_NDIR_H
 
+/* Define to 1 if you have the <pwd.h> header file. */
+#undef HAVE_PWD_H
+
 /* Define to 1 if you have the `rmdir' function. */
 #undef HAVE_RMDIR
 
index 752636a..3a832a9 100644 (file)
@@ -21,6 +21,7 @@ dnl Checks for header files.
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/param.h sys/time.h)
+AC_CHECK_HEADERS(pwd.h grp.h)
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
@@ -56,6 +57,7 @@ AC_CHECK_FUNCS(strchr strdup memcpy memset memmove)
 AC_CHECK_FUNCS(mktime timelocal tzset ftime gettimeofday utime)
 AC_CHECK_FUNCS(mkdir rmdir ftruncate lchown mkstemp)
 AC_CHECK_FUNCS(strcasecmp link)
+AC_CHECK_FUNCS(getpwuid getgrgid getpwnam getgrnam)
 
 if test $ac_header_dirent = no; then
   AC_LIBOBJ(lhdir)
index 5eed0d9..4c95772 100644 (file)
@@ -24,6 +24,7 @@ dnl Checks for header files.
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/param.h sys/time.h)
+AC_CHECK_HEADERS(pwd.h grp.h)
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
@@ -70,6 +71,7 @@ AC_CHECK_FUNCS(strchr strdup memcpy memset memmove)
 AC_CHECK_FUNCS(mktime timelocal tzset ftime gettimeofday utime)
 AC_CHECK_FUNCS(mkdir rmdir ftruncate lchown mkstemp)
 AC_CHECK_FUNCS(strcasecmp link)
+AC_CHECK_FUNCS(getpwuid getgrgid getpwnam getgrnam)
 
 AC_SUBST(LIBOBJS)
 if test $ac_header_dirent = no; then