From: Andy Dougherty Date: Wed, 13 Jun 2007 14:33:54 +0000 (-0400) Subject: Configure: Erroneous C++ message X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=20e87299883f4e62b61326c7478ab6a085f6088f;p=p5sagit%2Fp5-mst-13.2.git Configure: Erroneous C++ message Message-ID: p4raw-id: //depot/perl@31373 --- diff --git a/Configure b/Configure index dc7a7bf..e87eddb 100755 --- a/Configure +++ b/Configure @@ -26,7 +26,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Fri Jun 1 08:37:13 CEST 2007 [metaconfig 3.0 PL70] +# Generated on Wed Jun 13 22:10:15 CEST 2007 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <&4 -cat >try.c <<'EOCP' +$cat >try.c <<'EOCP' #include int main(void) { #ifdef __cplusplus - printf("define\n"); + return 0; #else - printf("undef\n"); + return 1; #endif - return 0; } EOCP set try -if eval $compile_ok && $run ./try >cplusplus$$; then - val=`$cat cplusplus$$` +if eval $compile_ok && $run ./try; then + val="$define" echo "You are using a C++ compiler." else val="$undef"