From 82bff9f40745bd807f0a95d39fdd602c4cf17b12 Mon Sep 17 00:00:00 2001 From: axel Date: Thu, 2 Mar 2006 21:29:17 +1000 Subject: Unbreak fwprintf autoconf check cpp symbols darcs-hash:20060302112917-ac50b-29d524dc3df09ad9a6e88669e6c20f46677ec2ee.gz --- configure.ac | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 6ac3624d..bd66b43a 100644 --- a/configure.ac +++ b/configure.ac @@ -179,28 +179,29 @@ fi if test "$ac_cv_func_fwprintf" = yes; then -# Check if fwprintf is broken -AC_MSG_CHECKING([if fwprintf is broken]) -AC_RUN_IFELSE( - [AC_LANG_PROGRAM([ + # Check if fwprintf is broken + AC_MSG_CHECKING([if fwprintf is broken]) + AC_RUN_IFELSE( + [AC_LANG_PROGRAM([ #include #include #include #include -],[ - setlocale( LC_ALL, "" ); - fwprintf( stderr, L"%ls%ls", L"", L"fish:" ); -])], - [fwprintf_broken=no], - [fwprintf_broken=yes] ) - -if test "$fwprintf_broken" = yes; then - AC_MSG_RESULT(yes) - AC_DEFINE([HAVE_FWPRINTF], [0], - [Undefined if no fwprintf implementation exists, defined to 0 if fwprintf exist but is broken, 1 if it exists and works]) -else - AC_MSG_RESULT(no) -fi + ], + [ + setlocale( LC_ALL, "" ); + fwprintf( stderr, L"%ls%ls", L"", L"fish:" ); + ])], + [fwprintf_broken=no], + [fwprintf_broken=yes] ) + + if test "$fwprintf_broken" = yes; then + AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_BROKEN_FWPRINTF], [1], + [Define to 1 one if the implemented fwprintf is broken]) + else + AC_MSG_RESULT(no) + fi fi -- cgit v1.2.3