summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-12-03 16:29:54 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:47:30 +0100
commit9e367b13d94770f652cb096595722b17d77ab7b4 (patch)
treeb4d80114cddade582e7bc4ea6809cb33c5c2b270 /source4
parent43696d2752e2faad34fb3ed2a7dbf01d40ffdc46 (diff)
downloadsamba-9e367b13d94770f652cb096595722b17d77ab7b4.tar.gz
samba-9e367b13d94770f652cb096595722b17d77ab7b4.tar.bz2
samba-9e367b13d94770f652cb096595722b17d77ab7b4.zip
r26253: Add check for broken RedHat 7.2 system header files to lib/replace.
This is taken (with slight reformatting) from samba3:configure.in. It is already used in lib/replace/system/capablity.h. Michael (This used to be commit 4d1df9c0b4248717d6f235572f5f68e27934741e)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/replace/system/config.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/source4/lib/replace/system/config.m4 b/source4/lib/replace/system/config.m4
index 6500535982..64143fe371 100644
--- a/source4/lib/replace/system/config.m4
+++ b/source4/lib/replace/system/config.m4
@@ -16,6 +16,28 @@ AC_HEADER_SYS_WAIT
# capability
AC_CHECK_HEADERS(sys/capability.h)
+case "$host_os" in
+*linux*)
+AC_CACHE_CHECK([for broken RedHat 7.2 system header files],samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS,[
+AC_TRY_COMPILE([
+ #ifdef HAVE_SYS_VFS_H
+ #include <sys/vfs.h>
+ #endif
+ #ifdef HAVE_SYS_CAPABILITY_H
+ #include <sys/capability.h>
+ #endif
+ ],[
+ int i;
+ ],
+ samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no,
+ samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
+)])
+if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
+ AC_DEFINE(BROKEN_REDHAT_7_SYSTEM_HEADERS,1,[Broken RedHat 7.2 system header files])
+fi
+;;
+esac
+
# passwd
AC_CHECK_HEADERS(grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h)
AC_CHECK_FUNCS(getpwnam_r getpwuid_r getpwent_r)