# $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
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
;;
n) echo "OK, that should do.";;
esac
-$rm_try
+$rm_try gcctest.out
: define a shorthand compile call
compile='