From 31b073500ae4d866bcc3ca1bb925c6365991ae4c Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 7 Jan 2012 12:57:24 -0500 Subject: [PATCH 1/1] configure.ac: Use AC_LANG_SOURCE for if else macros Ref. http://www.flameeyes.eu/autotools-mythbuster/forwardporting/autoconf.html "Noteworthy changes in autoconf version 2.66 through 2.68" Signed-off-by: Mathieu Desnoyers --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a3f18a9d..3bc9964b 100644 --- a/configure.ac +++ b/configure.ac @@ -85,7 +85,7 @@ AC_CHECK_HEADERS([urcu-bp.h], [], [AC_MSG_ERROR([Cannot find [URCU] headers (urc This error can also occur when the liburcu package's configure script has not been run.])]) AC_MSG_CHECKING([caa_likely()]) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ #include ]], [[ void fct(void) @@ -156,7 +156,7 @@ AC_MSG_RESULT($LIBFORMAT) if test "x$host_cpu" = "xarm" ; then AC_MSG_CHECKING([checking for armv5]) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ ]], [[ #ifndef __ARM_ARCH_5TEJ__ #error "no arm5 here" -- 2.34.1