From 0dcb3d887131a644381d6660eb13e2436e609eb9 Mon Sep 17 00:00:00 2001 From: "H.Merijn Brand" Date: Thu, 22 Sep 2011 17:26:34 +0200 Subject: [PATCH] Use a real compile to test for stdbool.h On some Solaris systems, is present, but will give an error if used by a compiler that is not sufficiently c99-compliant. Check for this by including and trying to compile a short program that uses bool. Signed-off-by: H.Merijn Brand --- Configure | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/Configure b/Configure index e22860d..42a0a19 100755 --- a/Configure +++ b/Configure @@ -28,7 +28,7 @@ # See Porting/pumpkin.pod for more information on metaconfig. # -# Generated on Fri Sep 16 13:09:14 CEST 2011 [metaconfig 3.5 PL0] +# Generated on Thu Sep 22 17:10:35 CEST 2011 [metaconfig 3.5 PL0] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <try.c < +#include +int func(bool x) +{ + return x ? 1 : 0; +} +int main(int argc, char **argv) +{ + return func(0); +} +EOCP +set try +if eval $compile; then + echo " found." >&4 + val="$define" +else + echo " NOT found." >&4 + val="$undef" +fi +$rm_try +set i_stdbool +eval $setvar : see if stddef is available set stddef.h i_stddef -- 1.8.3.1