]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-01-01 Ben Elliston <bje@cygnus.com>
authorBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Thu, 31 Dec 1998 18:48:05 +0000 (18:48 +0000)
committerBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Thu, 31 Dec 1998 18:48:05 +0000 (18:48 +0000)
* acspecific.m4 (AC_PROG_CXX_WORKS): Specify an explicit return
type for `main' to keep modern C++ compilers happy.

ChangeLog
acspecific.m4
lib/autoconf/specific.m4

index 4769c70cb0b5cf94895b5e12394f1003501e87d9..a65fb24740fdcbac5612eb016fb7f79ad7b4e815 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-01-01  Ben Elliston  <bje@cygnus.com>
+
+       * acspecific.m4 (AC_PROG_CXX_WORKS): Specify an explicit return
+       type for `main' to keep modern C++ compilers happy.
+
 1998-12-27  Ben Elliston  <bje@cygnus.com>
 
        * autoconf.texi (AC_PROG_INSTALL): Update.
index 66142d24b2c5eb25b87946d3144f1d1366823833..0b9aab746a9b47649ea072cb61905446259b9ea2 100644 (file)
@@ -217,7 +217,7 @@ AC_DEFUN(AC_PROG_CXX_WORKS,
 [AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works])
 AC_LANG_SAVE
 AC_LANG_CPLUSPLUS
-AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross)
+AC_TRY_COMPILER([int main(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross)
 AC_LANG_RESTORE
 AC_MSG_RESULT($ac_cv_prog_cxx_works)
 if test $ac_cv_prog_cxx_works = no; then
index 66142d24b2c5eb25b87946d3144f1d1366823833..0b9aab746a9b47649ea072cb61905446259b9ea2 100644 (file)
@@ -217,7 +217,7 @@ AC_DEFUN(AC_PROG_CXX_WORKS,
 [AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works])
 AC_LANG_SAVE
 AC_LANG_CPLUSPLUS
-AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross)
+AC_TRY_COMPILER([int main(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross)
 AC_LANG_RESTORE
 AC_MSG_RESULT($ac_cv_prog_cxx_works)
 if test $ac_cv_prog_cxx_works = no; then