]> granicus.if.org Git - python/commitdiff
If user configures --without-gcc give preference to $CC instead of blindly
authorSkip Montanaro <skip@pobox.com>
Sun, 4 Jan 2009 10:36:58 +0000 (10:36 +0000)
committerSkip Montanaro <skip@pobox.com>
Sun, 4 Jan 2009 10:36:58 +0000 (10:36 +0000)
assuming the compiler will be "cc".

configure.in

index ca504be374f98cd763451516be5acbe3aa48c9de..7136d7859589dd9bc52acc4f97e0a0721a5189b7 100644 (file)
@@ -407,7 +407,7 @@ AC_ARG_WITH(gcc,
             AC_HELP_STRING(--without-gcc,never use gcc),
 [
        case $withval in
-       no)     CC=cc
+       no)     CC=${CC:-cc}
                without_gcc=yes;;
        yes)    CC=gcc
                without_gcc=no;;