]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-04-05 Ben Elliston <bje@cygnus.com>
authorBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sun, 4 Apr 1999 21:24:26 +0000 (21:24 +0000)
committerBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sun, 4 Apr 1999 21:24:26 +0000 (21:24 +0000)
* acspecific.m4 (AC_PROG_CC_WORKS): Show $CPPFLAGS when
running the compiler.
(AC_PROG_CXX_WORKS): Likewise.

ChangeLog
acspecific.m4
lib/autoconf/specific.m4

index 1df46aec2c4921ee2035e09b9eba78c78a5a66ce..1220dc94a99c87e9b4d7a116c1b54a1bcbf9cd4b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,7 +3,9 @@
        * acspecific.m4 (AC_EMXOS2): New macro. Contributed by Ryuji Abe
        <raeva@t3.rim.or.jp>.
        (AC_EXEEXT): Handle case for OS/2.
-       
+       (AC_PROG_CC_WORKS): Show $CPPFLAGS when running the compiler.
+       (AC_PROG_CXX_WORKS): Likewise.
+
        * autoconf.texi (AC_EMXOS2): Document.
        (AC_EXEEXT): Mention OS/2.
        (AC_MINGW32): Move.
index 2890660f05104fda6281ded7795f34b1f1eeb193..bac0955e565ecf1bfd714fa2b752ac6db50fb394 100644 (file)
@@ -199,7 +199,7 @@ fi
 ])
 
 AC_DEFUN(AC_PROG_CC_WORKS,
-[AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works])
+[AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works])
 AC_LANG_SAVE
 AC_LANG_C
 AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross)
@@ -208,13 +208,13 @@ AC_MSG_RESULT($ac_cv_prog_cc_works)
 if test $ac_cv_prog_cc_works = no; then
   AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.])
 fi
-AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler])
+AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler])
 AC_MSG_RESULT($ac_cv_prog_cc_cross)
 cross_compiling=$ac_cv_prog_cc_cross
 ])
 
 AC_DEFUN(AC_PROG_CXX_WORKS,
-[AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works])
+[AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) works])
 AC_LANG_SAVE
 AC_LANG_CPLUSPLUS
 AC_TRY_COMPILER([int main(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross)
@@ -223,7 +223,7 @@ AC_MSG_RESULT($ac_cv_prog_cxx_works)
 if test $ac_cv_prog_cxx_works = no; then
   AC_MSG_ERROR([installation or configuration problem: C++ compiler cannot create executables.])
 fi
-AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler])
+AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler])
 AC_MSG_RESULT($ac_cv_prog_cxx_cross)
 cross_compiling=$ac_cv_prog_cxx_cross
 ])
index 2890660f05104fda6281ded7795f34b1f1eeb193..bac0955e565ecf1bfd714fa2b752ac6db50fb394 100644 (file)
@@ -199,7 +199,7 @@ fi
 ])
 
 AC_DEFUN(AC_PROG_CC_WORKS,
-[AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works])
+[AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works])
 AC_LANG_SAVE
 AC_LANG_C
 AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross)
@@ -208,13 +208,13 @@ AC_MSG_RESULT($ac_cv_prog_cc_works)
 if test $ac_cv_prog_cc_works = no; then
   AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.])
 fi
-AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler])
+AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler])
 AC_MSG_RESULT($ac_cv_prog_cc_cross)
 cross_compiling=$ac_cv_prog_cc_cross
 ])
 
 AC_DEFUN(AC_PROG_CXX_WORKS,
-[AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works])
+[AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) works])
 AC_LANG_SAVE
 AC_LANG_CPLUSPLUS
 AC_TRY_COMPILER([int main(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross)
@@ -223,7 +223,7 @@ AC_MSG_RESULT($ac_cv_prog_cxx_works)
 if test $ac_cv_prog_cxx_works = no; then
   AC_MSG_ERROR([installation or configuration problem: C++ compiler cannot create executables.])
 fi
-AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler])
+AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler])
 AC_MSG_RESULT($ac_cv_prog_cxx_cross)
 cross_compiling=$ac_cv_prog_cxx_cross
 ])