From: Mathieu Desnoyers Date: Sat, 7 Jan 2012 17:57:24 +0000 (-0500) Subject: configure.ac: Use AC_LANG_SOURCE for if else macros X-Git-Tag: v1.9.5~24 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=31b073500ae4d866bcc3ca1bb925c6365991ae4c;p=lttng-ust.git 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 --- 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"