Change 31373 by [EMAIL PROTECTED] on 2007/06/13 20:11:10

        Subject: [PATCH] Configure: Erroneous C++ message
        From: Andy Dougherty <[EMAIL PROTECTED]>
        Date: Wed, 13 Jun 2007 14:33:54 -0400 (EDT)
        Message-ID: <[EMAIL PROTECTED]>

Affected files ...

... //depot/perl/Configure#658 edit

Differences ...

==== //depot/perl/Configure#658 (xtext) ====
Index: perl/Configure
--- perl/Configure#657~31323~   2007-05-31 23:39:32.000000000 -0700
+++ perl/Configure      2007-06-13 13:11:10.000000000 -0700
@@ -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 [EMAIL PROTECTED])
 
 cat >c1$$ <<EOF
@@ -7576,21 +7576,20 @@
 
 echo " "
 echo "Checking for C++..." >&4
-cat >try.c <<'EOCP'
+$cat >try.c <<'EOCP'
 #include <stdio.h>
 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"
End of Patch.

Reply via email to