# HG changeset patch # User John W. Eaton # Date 1308085036 14400 # Node ID 5d8f2a091b23f9ab56d3057ba480a592bb673f63 # Parent 630068170ef0f59a2d7248ce743b6cbe5cc33739 maint: avoid warnings from autoconf configure.ac: Use AC_LANG_SOURCE as needed. Properly quote uses of AC_LANG_PROGRAM. diff -r 630068170ef0 -r 5d8f2a091b23 configure.ac --- a/configure.ac Tue Jun 14 16:39:38 2011 -0400 +++ b/configure.ac Tue Jun 14 16:57:16 2011 -0400 @@ -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])])