3 AC_CHECK_HEADERS(fcntl.h sys/fcntl.h sys/resource.h sys/ioctl.h sys/mode.h sys/filio.h sys/fs/s5param.h sys/filsys.h)
4 AC_CHECK_HEADERS(sys/acl.h acl/libacl.h sys/file.h)
7 AC_CHECK_HEADERS(sys/select.h)
10 AC_CHECK_HEADERS(sys/time.h utime.h)
12 AC_CHECK_FUNCS(utime utimes)
14 AC_CACHE_CHECK([if gettimeofday takes TZ argument],libreplace_cv_HAVE_GETTIMEOFDAY_TZ,[
18 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],
19 libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes,libreplace_cv_HAVE_GETTIMEOFDAY_TZ=no,libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes)])
20 if test x"$libreplace_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
21 AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available])
28 AC_CHECK_HEADERS(sys/capability.h)
32 AC_CACHE_CHECK([for broken RedHat 7.2 system header files],libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS,[
37 #ifdef HAVE_SYS_CAPABILITY_H
38 #include <sys/capability.h>
43 libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no,
44 libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
46 if test x"$libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
47 AC_DEFINE(BROKEN_REDHAT_7_SYSTEM_HEADERS,1,[Broken RedHat 7.2 system header files])
50 AC_CACHE_CHECK([for broken RHEL5 sys/capability.h],libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER,[
52 #ifdef HAVE_SYS_CAPABILITY_H
53 #include <sys/capability.h>
55 #include <linux/types.h>
59 libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER=no,
60 libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER=yes
62 if test x"$libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER" = x"yes"; then
63 AC_DEFINE(BROKEN_RHEL5_SYS_CAP_HEADER,1,[Broken RHEL5 sys/capability.h])
69 AC_CHECK_HEADERS(grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h)
70 AC_CHECK_FUNCS(getpwnam_r getpwuid_r getpwent_r)
71 AC_HAVE_DECL(getpwent_r, [
75 AC_VERIFY_C_PROTOTYPE([struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)],
77 #ifndef HAVE_GETPWENT_R_DECL
78 #error missing getpwent_r prototype
82 AC_DEFINE(SOLARIS_GETPWENT_R, 1, [getpwent_r solaris function prototype])
87 AC_VERIFY_C_PROTOTYPE([struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)],
89 #ifndef HAVE_GETPWENT_R_DECL
90 #error missing getpwent_r prototype
94 AC_DEFINE(SOLARIS_GETPWENT_R, 1, [getpwent_r irix (similar to solaris) function prototype])
99 AC_CHECK_FUNCS(getgrnam_r getgrgid_r getgrent_r)
100 AC_HAVE_DECL(getgrent_r, [
104 AC_VERIFY_C_PROTOTYPE([struct group *getgrent_r(struct group *src, char *buf, int buflen)],
106 #ifndef HAVE_GETGRENT_R_DECL
107 #error missing getgrent_r prototype
111 AC_DEFINE(SOLARIS_GETGRENT_R, 1, [getgrent_r solaris function prototype])
117 AC_VERIFY_C_PROTOTYPE([struct group *getgrent_r(struct group *src, char *buf, size_t buflen)],
119 #ifndef HAVE_GETGRENT_R_DECL
120 #error missing getgrent_r prototype
124 AC_DEFINE(SOLARIS_GETGRENT_R, 1, [getgrent_r irix (similar to solaris) function prototype])
129 AC_CHECK_FUNCS(getgrouplist)
132 AC_CHECK_HEADERS(ctype.h locale.h langinfo.h)
135 AC_CHECK_HEADERS(fnmatch.h)
138 AC_CHECK_HEADERS(sys/ipc.h sys/mman.h sys/shm.h )
141 AC_CHECK_HEADERS(termios.h termio.h sys/termio.h )