+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
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
# 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" &&