From: Akim Demaille Date: Sat, 19 May 2001 15:35:29 +0000 (+0000) Subject: * tests/compile.at (AC_PROG_CPP via CC): Invoke AC_PROG_CC instead X-Git-Tag: autoconf-2.50~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3aa0ae8aef3c2c5e2b12fe8dd399b72541c0f7b;p=thirdparty%2Fautoconf.git * tests/compile.at (AC_PROG_CPP via CC): Invoke AC_PROG_CC instead if using `cc'. --- diff --git a/ChangeLog b/ChangeLog index 3dfbeb517..6c69b145f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-05-19 Akim Demaille + + * tests/compile.at (AC_PROG_CPP via CC): Invoke AC_PROG_CC instead + if using `cc'. + 2001-05-19 Akim Demaille * tests/compile.at (GNU Fortran 77): Don't AS_EXIT when using diff --git a/tests/compile.at b/tests/compile.at index 7b7dd4dee..7ea207f0d 100644 --- a/tests/compile.at +++ b/tests/compile.at @@ -211,13 +211,7 @@ AT_CHECK([/lib/cpp &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" &&