summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure27
1 files changed, 16 insertions, 11 deletions
diff --git a/Configure b/Configure
index ce9b74f805..1f313a1930 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 Sat Dec 29 15:53:27 CET 2007 [metaconfig 3.0 PL70]
+# Generated on Tue Jan 1 21:12:58 CET 2008 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
@@ -5052,16 +5052,21 @@ checkccflag='check=$1; flag=$2; callback=$3;
echo " ";
echo "Checking if your compiler accepts $flag" 2>&1;
echo "int main(void) { return 0; }" > gcctest.c;
-if $cc -O2 $flag -o gcctest gcctest.c && ./gcctest; then
+if $cc -O2 $flag -o gcctest gcctest.c 2>gcctest.out && ./gcctest; then
echo "Yes, it does." 2>&1;
- case "$ccflags" in
- *$check*)
- echo "Leaving current flags $ccflags alone." 2>&1
- ;;
- *) dflt="$dflt $flag";
- eval $callback
- ;;
- esac
+ if -s gcctest.out ; then
+ echo "But your platform does not like it:";
+ cat gcctest.out;
+ else
+ case "$ccflags" in
+ *$check*)
+ echo "Leaving current flags $ccflags alone." 2>&1
+ ;;
+ *) dflt="$dflt $flag";
+ eval $callback
+ ;;
+ esac
+ fi
else
echo "Nope, it does not, but that is ok." 2>&1;
fi
@@ -5366,7 +5371,7 @@ y)
;;
n) echo "OK, that should do.";;
esac
-$rm_try
+$rm_try gcctest.out
: define a shorthand compile call
compile='