summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2006-04-13 02:00:56 +0000
committerSkip Montanaro <skip@pobox.com>2006-04-13 02:00:56 +0000
commit909f4330964e54dba9980082bc8778b4bb162a06 (patch)
tree4d12113be5c164a719019d86812151c0610cc361 /configure
parent381f7b64b819703450687ae1f888a192ba0a4ac9 (diff)
downloadcpython-909f4330964e54dba9980082bc8778b4bb162a06.tar.gz
If compiling with g++ don't use -Wstrict-prototpes.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure b/configure
index f1f7bdfdd2..5ff9d0e828 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 45264 .
+# From configure.in Revision: 45278 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for python 2.5.
#
@@ -3792,18 +3792,21 @@ if test -z "$OPT"
then
case $GCC in
yes)
+ if test "$CC" != 'g++' ; then
+ STRICT_PROTO="-Wstrict-prototypes"
+ fi
case $ac_cv_prog_cc_g in
yes)
if test "$Py_DEBUG" = 'true' ; then
# Optimization messes up debuggers, so turn it off for
# debug builds.
- OPT="-g -Wall -Wstrict-prototypes"
+ OPT="-g -Wall $STRICT_PROTO"
else
- OPT="-g -O3 -Wall -Wstrict-prototypes"
+ OPT="-g -O3 -Wall $STRICT_PROTO"
fi
;;
*)
- OPT="-O3 -Wall -Wstrict-prototypes"
+ OPT="-O3 -Wall $STRICT_PROTO"
;;
esac
case $ac_sys_system in