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(poll.h)
11 AC_CHECK_FUNCS(poll,[],[LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/poll.o"])
14 AC_CHECK_HEADERS(sys/time.h utime.h)
16 AC_CHECK_FUNCS(utime utimes)
18 AC_CACHE_CHECK([if gettimeofday takes TZ argument],libreplace_cv_HAVE_GETTIMEOFDAY_TZ,[
22 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],
23 libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes,libreplace_cv_HAVE_GETTIMEOFDAY_TZ=no,libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes)])
24 if test x"$libreplace_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
25 AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available])
32 AC_CHECK_HEADERS(sys/capability.h)
36 AC_CACHE_CHECK([for broken RedHat 7.2 system header files],libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS,[
41 #ifdef HAVE_SYS_CAPABILITY_H
42 #include <sys/capability.h>
47 libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no,
48 libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
50 if test x"$libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
51 AC_DEFINE(BROKEN_REDHAT_7_SYSTEM_HEADERS,1,[Broken RedHat 7.2 system header files])
54 AC_CACHE_CHECK([for broken RHEL5 sys/capability.h],libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER,[
56 #ifdef HAVE_SYS_CAPABILITY_H
57 #include <sys/capability.h>
59 #include <linux/types.h>
63 libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER=no,
64 libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER=yes
66 if test x"$libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER" = x"yes"; then
67 AC_DEFINE(BROKEN_RHEL5_SYS_CAP_HEADER,1,[Broken RHEL5 sys/capability.h])
73 AC_CHECK_HEADERS(grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h)
74 AC_CHECK_FUNCS(getpwnam_r getpwuid_r getpwent_r)
75 AC_HAVE_DECL(getpwent_r, [
79 AC_VERIFY_C_PROTOTYPE([struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)],
81 #ifndef HAVE_GETPWENT_R_DECL
82 #error missing getpwent_r prototype
86 AC_DEFINE(SOLARIS_GETPWENT_R, 1, [getpwent_r solaris function prototype])
91 AC_VERIFY_C_PROTOTYPE([struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)],
93 #ifndef HAVE_GETPWENT_R_DECL
94 #error missing getpwent_r prototype
98 AC_DEFINE(SOLARIS_GETPWENT_R, 1, [getpwent_r irix (similar to solaris) function prototype])
103 AC_CHECK_FUNCS(getgrnam_r getgrgid_r getgrent_r)
104 AC_HAVE_DECL(getgrent_r, [
108 AC_VERIFY_C_PROTOTYPE([struct group *getgrent_r(struct group *src, char *buf, int buflen)],
110 #ifndef HAVE_GETGRENT_R_DECL
111 #error missing getgrent_r prototype
115 AC_DEFINE(SOLARIS_GETGRENT_R, 1, [getgrent_r solaris function prototype])
121 AC_VERIFY_C_PROTOTYPE([struct group *getgrent_r(struct group *src, char *buf, size_t buflen)],
123 #ifndef HAVE_GETGRENT_R_DECL
124 #error missing getgrent_r prototype
128 AC_DEFINE(SOLARIS_GETGRENT_R, 1, [getgrent_r irix (similar to solaris) function prototype])
133 AC_CHECK_FUNCS(getgrouplist)
136 AC_CHECK_HEADERS(ctype.h locale.h langinfo.h)
139 AC_CHECK_HEADERS(fnmatch.h)
142 AC_CHECK_HEADERS(sys/ipc.h sys/mman.h sys/shm.h )
145 AC_CHECK_HEADERS(termios.h termio.h sys/termio.h )