diff options
author | Michael Adam <obnox@samba.org> | 2007-12-03 16:50:55 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2007-12-03 16:54:12 +0100 |
commit | 684a72c779c4ff4d00905ff560447a8c6ba723e5 (patch) | |
tree | 03cee00fc95a424d21f5765e11c3851c2b835340 /source3 | |
parent | f5b071e3b0c186e5e78b905c5c4c13d3421f6f46 (diff) | |
download | samba-684a72c779c4ff4d00905ff560447a8c6ba723e5.tar.gz samba-684a72c779c4ff4d00905ff560447a8c6ba723e5.tar.bz2 samba-684a72c779c4ff4d00905ff560447a8c6ba723e5.zip |
Reformat configure checks for broken capabilities.h.
Michael
(This used to be commit 834a16225a8fb905a8f870a17ba67670e622eccc)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/replace/system/config.m4 | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/source3/lib/replace/system/config.m4 b/source3/lib/replace/system/config.m4 index 0b3baff459..799187af7d 100644 --- a/source3/lib/replace/system/config.m4 +++ b/source3/lib/replace/system/config.m4 @@ -20,28 +20,36 @@ 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)]) + #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]) + AC_DEFINE(BROKEN_REDHAT_7_SYSTEM_HEADERS,1,[Broken RedHat 7.2 system header files]) fi AC_CACHE_CHECK([for broken RHEL5 sys/capability.h],samba_cv_BROKEN_RHEL5_SYS_CAP_HEADER,[ AC_TRY_COMPILE([ -#ifdef HAVE_SYS_CAPABILITY_H -#include <sys/capability.h> -#endif -#include <linux/types.h> -],[__s8 i;], - samba_cv_BROKEN_RHEL5_SYS_CAP_HEADER=no,samba_cv_BROKEN_RHEL5_SYS_CAP_HEADER=yes)]) + #ifdef HAVE_SYS_CAPABILITY_H + #include <sys/capability.h> + #endif + #include <linux/types.h> + ],[ + __s8 i; + ], + samba_cv_BROKEN_RHEL5_SYS_CAP_HEADER=no, + samba_cv_BROKEN_RHEL5_SYS_CAP_HEADER=yes +)]) if test x"$samba_cv_BROKEN_RHEL5_SYS_CAP_HEADER" = x"yes"; then - AC_DEFINE(BROKEN_RHEL5_SYS_CAP_HEADER,1,[Broken RHEL5 sys/capability.h]) + AC_DEFINE(BROKEN_RHEL5_SYS_CAP_HEADER,1,[Broken RHEL5 sys/capability.h]) fi ;; esac |