aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-02-04 20:20:00 +0000
committerRichard M. Stallman1994-02-04 20:20:00 +0000
commit63041661ee705febae4a69adeafbf986517da9db (patch)
tree6db6d515eec2630e70c519b8a973c94c1a272f7b
parent1d66a5fabb82754741e449ed0cd7ce2bfbac6ba4 (diff)
downloademacs-63041661ee705febae4a69adeafbf986517da9db.tar.gz
emacs-63041661ee705febae4a69adeafbf986517da9db.zip
(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.
-rwxr-xr-xconfigure1.in17
1 files changed, 13 insertions, 4 deletions
diff --git a/configure1.in b/configure1.in
index c2780e1d012..b440aa07afd 100755
--- a/configure1.in
+++ b/configure1.in
@@ -1046,9 +1046,18 @@ AC_CONFIG_HEADER(src/config.h)
1046[ 1046[
1047 1047
1048#### Choose a compiler. 1048#### Choose a compiler.
1049if [ "x$CC" = x ]
1050then cc_specified=1
1051fi
1052
1049case ${with_gcc} in 1053case ${with_gcc} in
1050 "yes" ) CC="gcc" GCC=1 ;; 1054 "yes" ) CC="gcc" GCC=1 ;;
1051 "no" ) CC=${CC:-"cc"} ;; 1055 "no" )
1056 if [ "x$CC" = x ]
1057 then true;
1058 else CC=cc;
1059 fi
1060 ;;
1052 * ) 1061 * )
1053 ] AC_PROG_CC [ 1062 ] AC_PROG_CC [
1054esac 1063esac
@@ -1056,7 +1065,7 @@ esac
1056#### Some systems specify a CPP to use unless we are using GCC. 1065#### Some systems specify a CPP to use unless we are using GCC.
1057#### Now that we know whether we are using GCC, we can decide whether 1066#### Now that we know whether we are using GCC, we can decide whether
1058#### to use that one. 1067#### to use that one.
1059if [ "x$NON_GNU_CPP" = x ] || [ x$GCC = x1 ] 1068if [ "x$NON_GNU_CPP" = x ] || [ x$GCC = x1 ] || [ "x$CPP" = x ]
1060then true 1069then true
1061else 1070else
1062 CPP="$NON_GNU_CPP" 1071 CPP="$NON_GNU_CPP"
@@ -1065,10 +1074,10 @@ fi
1065#### Some systems specify a CC to use unless we are using GCC. 1074#### Some systems specify a CC to use unless we are using GCC.
1066#### Now that we know whether we are using GCC, we can decide whether 1075#### Now that we know whether we are using GCC, we can decide whether
1067#### to use that one. 1076#### to use that one.
1068if [ x$NON_GNU_CC = x ] || [ x$GCC = x1 ] 1077if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ]
1069then true 1078then true
1070else 1079else
1071 CC=$NON_GNU_CC 1080 CC="$NON_GNU_CC"
1072fi 1081fi
1073 1082
1074#### Some other nice autoconf tests. If you add a test here which 1083#### Some other nice autoconf tests. If you add a test here which