configure.ac: Use AC_LANG_SOURCE for if else macros
[lttng-ust.git] / configure.ac
index a3f18a9dfe15e95b291e5b4c9ff3e3c1a5878d42..3bc9964bbd4a8b4d34936f864d543afd834d5e5b 100644 (file)
@@ -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 <urcu/compiler.h>
 ]], [[
 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"
This page took 0.023967 seconds and 4 git commands to generate.