* tests/compile.at (AC_PROG_CPP via CC): Invoke AC_PROG_CC instead

if using `cc'.
This commit is contained in:
Akim Demaille 2001-05-19 15:35:29 +00:00
parent fbb6a65e7a
commit f3aa0ae8ae
2 changed files with 8 additions and 8 deletions

View File

@ -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

View 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" &&