# HG changeset patch # User John W. Eaton # Date 1308145261 14400 # Node ID fbf4ec3aff6f3ebcbc2e8caa2b6e87efe3302cde # Parent 324c4d80fb99291fcf499aac7ca0855ff0757d99# Parent 343eca0298d086765b5a592c90702409c7000aa6 maint: periodic merge of stable to default diff -r 324c4d80fb99 -r fbf4ec3aff6f configure.ac --- a/configure.ac Tue Jun 14 15:38:00 2011 -0400 +++ b/configure.ac Wed Jun 15 09:41:01 2011 -0400 @@ -27,7 +27,7 @@ EXTERN_CFLAGS="$CFLAGS" EXTERN_CXXFLAGS="$CXXFLAGS" -AC_INIT([GNU Octave], [3.5.0+], [bug@octave.org], [octave]) +AC_INIT([GNU Octave], [3.5.0+], [http://octave.org/bugs.html], [octave]) dnl PACKAGE_VERSION is set by the AC_INIT VERSION arg OCTAVE_VERSION="$PACKAGE_VERSION" @@ -80,10 +80,11 @@ ;; *-*-mingw*) AC_MSG_CHECKING([for MSVC compiler]) - AC_PREPROC_IFELSE([ + AC_PREPROC_IFELSE([AC_LANG_SOURCE([ #ifndef _MSC_VER #error "Not MSVC compiler" -#endif], have_msvc=yes, have_msvc=no) +#endif +])], have_msvc=yes, have_msvc=no) AC_MSG_RESULT([$have_msvc]) ;; esac @@ -899,7 +900,7 @@ save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $FLTK_CFLAGS" AC_COMPILE_IFELSE( - AC_LANG_PROGRAM([[#include ]], [[int nothing = 0;]]), + [AC_LANG_PROGRAM([[#include ]], [[int nothing = 0;]])], [ AC_MSG_RESULT([no]) warn_fltk_opengl="FLTK does not have OpenGL support. Native graphics will be disabled." @@ -987,8 +988,9 @@ octave_blaswrap_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -DUSE_BLASWRAP" AC_LANG_PUSH(C) - AC_COMPILE_IFELSE( - [#include "libcruft/misc/blaswrap.c"], + AC_COMPILE_IFELSE([AC_LANG_SOURCE([ +#include "libcruft/misc/blaswrap.c" +])], [mv conftest.$ac_objext blaswrap.$ac_objext octave_blaswrap_save_BLAS_LIBS="$BLAS_LIBS" BLAS_LIBS="blaswrap.$ac_objext -framework vecLib" @@ -1642,17 +1644,17 @@ case "$canonical_host_type" in *-*-msdosmsvc | *-*-mingw*) AC_MSG_CHECKING([for required _WIN32_WINNT]) - AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #if _WIN32_WINNT < 0x0403 #error "Wrong version" -#endif]], []), +#endif]], [])], AC_MSG_RESULT([none]), [ AC_DEFINE(_WIN32_WINNT, 0x0403, [Define to 0x0403 to access InitializeCriticalSectionAndSpinCount]) AC_MSG_RESULT([0x0403])]) AC_MSG_CHECKING([whether _USE_MATH_DEFINES needs to be defined]) - AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[#include ]], -[[int x = M_LN2;]]), + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], +[[int x = M_LN2;]])], AC_MSG_RESULT([no]), [ AC_DEFINE(_USE_MATH_DEFINES, 1, [Define if your system needs it to define math constants like M_LN2]) AC_MSG_RESULT([yes])])