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)
7 AC_CHECK_HEADERS(sys/select.h)
10 AC_CHECK_HEADERS(sys/time.h utime.h)
12 AC_CHECK_FUNCS(utime utimes)
18 AC_CHECK_HEADERS(sys/capability.h)
22 AC_CACHE_CHECK([for broken RedHat 7.2 system header files],libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS,[
27 #ifdef HAVE_SYS_CAPABILITY_H
28 #include <sys/capability.h>
33 libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no,
34 libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
36 if test x"$libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
37 AC_DEFINE(BROKEN_REDHAT_7_SYSTEM_HEADERS,1,[Broken RedHat 7.2 system header files])
40 AC_CACHE_CHECK([for broken RHEL5 sys/capability.h],libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER,[
42 #ifdef HAVE_SYS_CAPABILITY_H
43 #include <sys/capability.h>
45 #include <linux/types.h>
49 libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER=no,
50 libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER=yes
52 if test x"$libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER" = x"yes"; then
53 AC_DEFINE(BROKEN_RHEL5_SYS_CAP_HEADER,1,[Broken RHEL5 sys/capability.h])
59 AC_CHECK_HEADERS(grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h)
60 AC_CHECK_FUNCS(getpwnam_r getpwuid_r getpwent_r)
61 AC_HAVE_DECL(getpwent_r, [
65 AC_VERIFY_C_PROTOTYPE([struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)],
67 #ifndef HAVE_GETPWENT_R_DECL
68 #error missing getpwent_r prototype
72 AC_DEFINE(SOLARIS_GETPWENT_R, 1, [getpwent_r solaris function prototype])
77 AC_VERIFY_C_PROTOTYPE([struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)],
79 #ifndef HAVE_GETPWENT_R_DECL
80 #error missing getpwent_r prototype
84 AC_DEFINE(SOLARIS_GETPWENT_R, 1, [getpwent_r irix (similar to solaris) function prototype])
89 AC_CHECK_FUNCS(getgrnam_r getgrgid_r getgrent_r)
90 AC_HAVE_DECL(getgrent_r, [
94 AC_VERIFY_C_PROTOTYPE([struct group *getgrent_r(struct group *src, char *buf, int buflen)],
96 #ifndef HAVE_GETGRENT_R_DECL
97 #error missing getgrent_r prototype
101 AC_DEFINE(SOLARIS_GETGRENT_R, 1, [getgrent_r solaris function prototype])
107 AC_VERIFY_C_PROTOTYPE([struct group *getgrent_r(struct group *src, char *buf, size_t buflen)],
109 #ifndef HAVE_GETGRENT_R_DECL
110 #error missing getgrent_r prototype
114 AC_DEFINE(SOLARIS_GETGRENT_R, 1, [getgrent_r irix (similar to solaris) function prototype])
119 AC_CHECK_FUNCS(getgrouplist)
122 AC_CHECK_HEADERS(ctype.h locale.h langinfo.h)
125 AC_CHECK_HEADERS(fnmatch.h)
128 AC_CHECK_HEADERS(sys/ipc.h sys/mman.h sys/shm.h )
131 AC_CHECK_HEADERS(termios.h termio.h sys/termio.h )