]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/compile.at (AC_PROG_CPP via CC): Invoke AC_PROG_CC instead
authorAkim Demaille <akim@epita.fr>
Sat, 19 May 2001 15:35:29 +0000 (15:35 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 19 May 2001 15:35:29 +0000 (15:35 +0000)
if using `cc'.

ChangeLog
tests/compile.at

index 3dfbeb517be365856327091c42b5a18be981e2d4..6c69b145ffd57abc8ddd20b459a2c14d452bed57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-19  Akim Demaille  <akim@epita.fr>
+
+       * tests/compile.at (AC_PROG_CPP via CC): Invoke AC_PROG_CC instead
+       if using `cc'.
+
 2001-05-19  Akim Demaille  <akim@epita.fr>
 
        * tests/compile.at (GNU Fortran 77): Don't AS_EXIT when using
index 7b7dd4dee65f5bc893aa1d05104872bd61e567e2..7ea207f0dbc180ae8351360bfecb5ec70c5437d5 100644 (file)
@@ -211,13 +211,7 @@ AT_CHECK([/lib/cpp </dev/null || exit 77], [], [ignore], [ignore])
 AT_DATA([mycc],
 [[#! /bin/sh
 echo "Annoying copyright message" >&2
-if test "$1" != "-E"; then
-  exec cc $*
-elif test "$2" = "-traditional-cpp"; then
-  exec cc $*
-else
-  exec /lib/cpp ${1+"$@"}
-fi
+exec "$@"
 ]])
 
 chmod +x mycc
@@ -227,7 +221,8 @@ chmod +x mycc
 # normal CPP selection check.  If we explicitly set CPP, it goes down
 # a different codepath.
 _AT_CHECK_AC_MACRO(
-[[CC=./mycc
+[[AC_PROG_CC
+CC="./mycc $CC"
 AC_PROG_CPP
 # The test $CC compiler should have been selected.
 test "$CPP" != "$CC -E" &&