# HG changeset patch # User jwe # Date 1017882353 0 # Node ID 70ebd3d672a1bcc8f3942de8d1c38102fef1db2d # Parent 7da18459c08bc8b49094f6caa74c47ba5f4e7ee2 [project @ 2002-04-04 01:05:53 by jwe] diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2002-04-03 John W. Eaton + + * aclocal.m4: Replace AC_LANG_SAVE, AC_LANG_C, AC_LANG_CPLUSPLUS, + and AC_LANG_RESTORE with AC_LANG_PUSH and AC_LANG_POP. + Use AS_MESSAGE_LOG_FD instead of AC_FD_CC. + * configure.in: Delete second arg in AC_CHECK_SIZEOF calls. + 2002-04-03 Steven G. Johnson * configure.in: Correct usage of AC_ARG_WITH for --with-fftw. diff --git a/aclocal.m4 b/aclocal.m4 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -89,15 +89,14 @@ AC_DEFUN(OCTAVE_STRING_NPOS, [AC_CACHE_CHECK([whether including defines NPOS], octave_cv_string_npos, -[AC_LANG_SAVE -AC_LANG_CPLUSPLUS +[AC_LANG_PUSH(C++) AC_TRY_COMPILE([#include ], [size_t foo = NPOS], octave_cv_string_npos=yes, octave_cv_string_npos=no)]) if test $octave_cv_string_npos = no; then AC_DEFINE(NPOS, [std::string::npos], [Define (to string::npos) if doesn't]) fi -AC_LANG_RESTORE +AC_LANG_POP(C++) ]) dnl dnl The following test is from Karl Berry's Kpathseach library. I'm @@ -302,8 +301,7 @@ AC_REQUIRE([AC_PROG_CXX]) AC_MSG_CHECKING([for C++ support for new friend template declaration]) AC_CACHE_VAL(octave_cv_cxx_new_friend_template_decl, [ - AC_LANG_SAVE - AC_LANG_CPLUSPLUS + AC_LANG_PUSH(C++) rm -f conftest.h cat > conftest.h < conftest.$ac_ext <&AC_FD_CC - cat conftest.$ac_ext >&AC_FD_CC + echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD fi - AC_LANG_RESTORE + AC_LANG_POP(C++) ]) AC_MSG_RESULT($octave_cv_cxx_prepends_underscore) if test $octave_cv_cxx_prepends_underscore = yes; then @@ -597,8 +592,7 @@ AC_REQUIRE([AC_PROG_CXX]) AC_MSG_CHECKING([if C++ library is ISO compliant]) AC_CACHE_VAL(octave_cv_cxx_iso_compliant_library, [ - AC_LANG_SAVE - AC_LANG_CPLUSPLUS + AC_LANG_PUSH(C++) rm -f conftest.h for inc in algorithm bitset cassert cctype cerrno cfloat ciso646 \ climits clocale cmath complex csetjmp csignal cstdarg cstddef \ @@ -618,7 +612,7 @@ octave_cv_cxx_iso_compliant_library=yes, octave_cv_cxx_iso_compliant_library=no ) - AC_LANG_RESTORE + AC_LANG_POP(C++) ]) AC_MSG_RESULT($octave_cv_cxx_iso_compliant_library) if test $octave_cv_cxx_iso_compliant_library = yes; then @@ -661,8 +655,7 @@ [AC_MSG_CHECKING([C++ ABI version used by ${CXX}]) AC_CACHE_VAL(octave_cv_cxx_abi, [octave_cv_cxx_abi='unknown' - AC_LANG_SAVE - AC_LANG_CPLUSPLUS + AC_LANG_PUSH(C++) cat > conftest.$ac_ext <&AC_FD_CC - cat conftest.$ac_ext >&AC_FD_CC + echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD fi - AC_LANG_RESTORE + AC_LANG_POP(C++) ]) AC_MSG_RESULT($octave_cv_cxx_abi) AC_DEFINE_UNQUOTED(CXX_ABI, $octave_cv_cxx_abi, [Define to the C++ ABI your compiler uses.]) diff --git a/configure.in b/configure.in --- a/configure.in +++ b/configure.in @@ -22,7 +22,7 @@ ### 02111-1307, USA. AC_INIT -AC_REVISION($Revision: 1.353 $) +AC_REVISION($Revision: 1.354 $) AC_PREREQ(2.52) AC_CONFIG_SRCDIR([src/octave.cc]) AC_CONFIG_HEADER(config.h) @@ -762,10 +762,10 @@ ### How big are ints and how are they oriented? These could probably ### be eliminated in favor of run-time checks. -AC_CHECK_SIZEOF(short, 2) -AC_CHECK_SIZEOF(int, 4) -AC_CHECK_SIZEOF(long, 4) -AC_CHECK_SIZEOF(long long, 8) +AC_CHECK_SIZEOF(short) +AC_CHECK_SIZEOF(int) +AC_CHECK_SIZEOF(long) +AC_CHECK_SIZEOF(long long) ### Does the C compiler handle alloca() and const correctly?