]> granicus.if.org Git - python/commitdiff
If compiling with g++ don't use -Wstrict-prototpes.
authorSkip Montanaro <skip@pobox.com>
Thu, 13 Apr 2006 02:00:56 +0000 (02:00 +0000)
committerSkip Montanaro <skip@pobox.com>
Thu, 13 Apr 2006 02:00:56 +0000 (02:00 +0000)
configure
configure.in

index f1f7bdfdd27c70a4596d006bac46d629a3503f3c..5ff9d0e828b284d95039f9a0f2013ba3643516b2 100755 (executable)
--- 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
index 027dc50969f27031e245779f4ef7ce11276d38bd..db3b33a552e2961ea82fe8a299f82d08e4e7633f 100644 (file)
@@ -685,18 +685,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