build: Tidy up broken posix_fallocate tests
authorAndrew Bartlett <abartlet@samba.org>
Thu, 7 Jun 2012 04:29:44 +0000 (14:29 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 7 Jun 2012 06:35:33 +0000 (08:35 +0200)
This makes the code and output for in waf and autoconf identical.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Jun  7 08:35:33 CEST 2012 on sn-devel-104

source3/configure.in
source3/wscript

index cf4e13e4fa93b40d9d4efb2940529dde5658647c..f2885d2ef40d5494e6fe4d840020a061bca9a7ad 100644 (file)
@@ -2800,13 +2800,13 @@ AC_TRY_COMPILE([
   #define _XOPEN_SOURCE 600
   #include <stdlib.h>
   #if defined(__GLIBC__) && ((__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4))
-    probably broken posix_fallocate
+  #error probably broken posix_fallocate
   #endif
 ], [
 ], 
 samba_cv_HAVE_BROKEN_POSIX_FALLOCATE=no,samba_cv_HAVE_BROKEN_POSIX_FALLOCATE=yes)])
 if test x"$samba_cv_HAVE_BROKEN_POSIX_FALLOCATE" = xyes; then
-       AC_DEFINE(HAVE_BROKEN_POSIX_FALLOCATE,, Whether we have a broken posix_fallocate)
+       AC_DEFINE(HAVE_BROKEN_POSIX_FALLOCATE, 1, Whether we have a broken posix_fallocate)
 fi
 
 
index ccedb6947f88eb4a8b6b02e2038fdd4f01c4ed67..a9368b284cdc63ddb3e1acecad83e405c5a925de 100755 (executable)
@@ -812,7 +812,7 @@ int i; i = PAM_RADIO_TYPE;
 #endif
 ''',
                            '_HAVE_UNBROKEN_POSIX_FALLOCATE',
-                           msg='for broken posix_fallocate'):
+                           msg='Checking for broken posix_fallocate'):
         conf.DEFINE('HAVE_BROKEN_POSIX_FALLOCATE', '1')