# HG changeset patch # User Richard M. Stallman # Date 760393200 0 # Node ID c3a89c49ab5d27a061f3ee39e7ad9a81b6588f48 # Parent 6130ebde8d3bce9360836d66b8955a4efbcc3645 (Using NON_GNU_CPP): Don't lose if it has spaces. If CPP was inherited from environment, don't use NON_GNU_CPP. (NON_GNU_CC): Likewise. (handling with_gcc): Use explicit if in the `no' case. (cc_specified): New variable; if set, don't use NON_GNU_CC. diff -r 6130ebde8d3b -r c3a89c49ab5d configure1.in --- a/configure1.in Fri Feb 04 20:18:59 1994 +0000 +++ b/configure1.in Fri Feb 04 20:20:00 1994 +0000 @@ -1046,9 +1046,18 @@ [ #### Choose a compiler. +if [ "x$CC" = x ] +then cc_specified=1 +fi + case ${with_gcc} in "yes" ) CC="gcc" GCC=1 ;; - "no" ) CC=${CC:-"cc"} ;; + "no" ) + if [ "x$CC" = x ] + then true; + else CC=cc; + fi + ;; * ) ] AC_PROG_CC [ esac @@ -1056,7 +1065,7 @@ #### Some systems specify a CPP to use unless we are using GCC. #### Now that we know whether we are using GCC, we can decide whether #### to use that one. -if [ "x$NON_GNU_CPP" = x ] || [ x$GCC = x1 ] +if [ "x$NON_GNU_CPP" = x ] || [ x$GCC = x1 ] || [ "x$CPP" = x ] then true else CPP="$NON_GNU_CPP" @@ -1065,10 +1074,10 @@ #### Some systems specify a CC to use unless we are using GCC. #### Now that we know whether we are using GCC, we can decide whether #### to use that one. -if [ x$NON_GNU_CC = x ] || [ x$GCC = x1 ] +if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ] then true else - CC=$NON_GNU_CC + CC="$NON_GNU_CC" fi #### Some other nice autoconf tests. If you add a test here which