From 0e3933b96344ab9c0ac633c19f4ebfdede5375d4 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Fri, 22 Jun 2012 14:58:19 +0000 Subject: [PATCH] Use AC_LANG_SOURCE to fix autoconf warnings. --- ChangeLog | 5 +++++ configure.in | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ea23078..b7f1699 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-06-22 Carlos O'Donell + + * configure.in: Use AC_LANG_SOURCE. + * configure: Regenerate. + 2012-06-22 Roland McGrath * configure.in (libc_cv_localstatedir): New substituted variable. diff --git a/configure.in b/configure.in index 4fe09c4..5028e64 100644 --- a/configure.in +++ b/configure.in @@ -278,12 +278,12 @@ if test "x$systemtap" != xno; then AC_CACHE_CHECK([for systemtap static probe support], libc_cv_sdt, [dnl old_CFLAGS="$CFLAGS" CFLAGS="-std=gnu99 $CFLAGS" - AC_COMPILE_IFELSE([#include + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include void foo (int i, void *p) { asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) "" :: STAP_PROBE_ASM_OPERANDS (2, i, p)); -}], [libc_cv_sdt=yes], [libc_cv_sdt=no]) +}]])], [libc_cv_sdt=yes], [libc_cv_sdt=no]) CFLAGS="$old_CFLAGS"]) if test $libc_cv_sdt = yes; then AC_DEFINE([USE_STAP_PROBE]) -- 2.7.4