From: Andrew Bartlett Date: Sat, 2 Jun 2012 04:15:42 +0000 (+1000) Subject: ccan: fix autoconf test for isblank() X-Git-Tag: samba-4.0.0beta1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=980574238f2db1b40aa5dc8236cef93d98cde0e3;p=thirdparty%2Fsamba.git ccan: fix autoconf test for isblank() The define in the C code is HAVE_ISBLANK Andrew Bartlett --- diff --git a/lib/ccan/libccan.m4 b/lib/ccan/libccan.m4 index 1efa0f0f42f..93dc99e10ec 100644 --- a/lib/ccan/libccan.m4 +++ b/lib/ccan/libccan.m4 @@ -268,19 +268,19 @@ if test x"$samba_cv_compound_literals" = xyes ; then [whether we have compound literals]) fi -AC_CACHE_CHECK([whether we have __builtin_have_isblank], - samba_cv_builtin_have_isblank, +AC_CACHE_CHECK([whether we have isblank], + samba_cv_have_isblank, [ AC_LINK_IFELSE( [#include int main(void) { return isblank(' ') ? 0 : 1; } ], - samba_cv_builtin_have_isblank=yes) + samba_cv_have_isblank=yes) ]) -if test x"$samba_cv_builtin_have_isblank" = xyes ; then - AC_DEFINE(HAVE_BUILTIN_HAVE_ISBLANK, 1, - [whether we have __builtin_have_isblank]) +if test x"$samba_cv_have_isblank" = xyes ; then + AC_DEFINE(HAVE_ISBLANK, 1, + [whether we have isblank]) fi # FIXME: We could use endian.h or sys/endian.h here, and __BYTE_ORDER for