summaryrefslogtreecommitdiff
path: root/tests/compile.at
diff options
context:
space:
mode:
authorAkim Demaille <akim@epita.fr>2001-05-19 15:35:29 +0000
committerAkim Demaille <akim@epita.fr>2001-05-19 15:35:29 +0000
commitf3aa0ae8aef3c2c5e2b12fe8dd399b72541c0f7b (patch)
tree426d757c04d52a13d304b067aeda40cf43da3222 /tests/compile.at
parentfbb6a65e7ad47fe0cad95dfdeb77dc199887a1dc (diff)
downloadautoconf-f3aa0ae8aef3c2c5e2b12fe8dd399b72541c0f7b.tar.gz
* tests/compile.at (AC_PROG_CPP via CC): Invoke AC_PROG_CC instead
if using `cc'.
Diffstat (limited to 'tests/compile.at')
-rw-r--r--tests/compile.at11
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/compile.at b/tests/compile.at
index 7b7dd4de..7ea207f0 100644
--- a/tests/compile.at
+++ b/tests/compile.at
@@ -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" &&