summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2006-09-12 10:19:32 +0300
committerH.Merijn Brand <h.m.brand@xs4all.nl>2006-09-13 06:51:55 +0000
commitf244a5024a702eda24be5d03683683a27d10f206 (patch)
treed510a4ae5062c5755f10d52266fd92ebf9a56e02 /Configure
parentc9b9f90938a22f06e1d50b6595cbb0b943c4e4c7 (diff)
downloadperl-f244a5024a702eda24be5d03683683a27d10f206.tar.gz
Accumulated fixes from earlier backports, amongst of which:
Subject: [PATCH] remove -Wdeclaration-after-statement scan from Configure Message-ID: <45063554.1040301@iki.fi> p4raw-id: //depot/perl@28829
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure69
1 files changed, 28 insertions, 41 deletions
diff --git a/Configure b/Configure
index 0e0970cd4f..f002c1a251 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 Wed Aug 2 13:20:07 CEST 2006 [metaconfig 3.0 PL70]
+# Generated on Wed Sep 13 08:48:56 CEST 2006 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
@@ -4954,20 +4954,6 @@ default|recommended)
else
echo "Nope, it doesn't, but that's ok." 2>&1
fi
-
- echo "Checking if your compiler accepts -Wdeclaration-after-statement" 2>&1
- echo 'int main(void) { return 0; }' > gcctest.c
- if $cc -Wdeclaration-after-statement -o gcctest gcctest.c; then
- echo "Yes, it does." 2>&1
- case "$ccflags" in
- *-Wdeclaration-after-statement*)
- echo "Leaving current flags $ccflags alone." 2>&1
- ;;
- *) dflt="$dflt -Wdeclaration-after-statement" ;;
- esac
- else
- echo "Nope, it doesn't, but that's ok." 2>&1
- fi
;;
esac
;;
@@ -7137,32 +7123,6 @@ $rm -f try try.* glibc.ver
set d_gnulibc
eval $setvar
-echo " "
-echo "Checking for C++..." >&4
-cat >try.c <<'EOCP'
-#include <stdio.h>
-int main(void)
-{
-#ifdef __cplusplus
- printf("define\n");
-#else
- printf("undef\n");
-#endif
- return 0;
-}
-EOCP
-set try
-if eval $compile_ok && $run ./try > cplusplus; then
- val=`$cat cplusplus`
- echo "You are using a C++ compiler."
-else
- val="$undef"
- echo "You are not using a C++ compiler."
-fi
-$rm -f try try.* cplusplus
-set d_cplusplus
-eval $setvar
-
: see if nm is to be used to determine whether a symbol is defined or not
case "$usenm" in
'')
@@ -7610,6 +7570,33 @@ yes)
esac;;
esac'
+
+echo " "
+echo "Checking for C++..." >&4
+cat >try.c <<'EOCP'
+#include <stdio.h>
+int main(void)
+{
+#ifdef __cplusplus
+ printf("define\n");
+#else
+ printf("undef\n");
+#endif
+ return 0;
+}
+EOCP
+set try
+if eval $compile_ok && $run ./try >cplusplus$$; then
+ val=`$cat cplusplus$$`
+ echo "You are using a C++ compiler."
+else
+ val="$undef"
+ echo "You are not using a C++ compiler."
+fi
+$rm -f try try.* cplusplus$$
+set d_cplusplus
+eval $setvar
+
: see if dlopen exists
xxx_runnm="$runnm"
xxx_ccflags="$ccflags"