From df5e4e1e99a0ab9a5597a8ea373e5f6f3b0489e2 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 9 May 2011 18:48:52 +0100 Subject: [PATCH 4/5] When checking for va_copy, use AC_LANG_SOURCE to shut up recent autoconf Bug: https://bugs.freedesktop.org/show_bug.cgi?id=19681 --- configure.ac | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index e097718..6df79fd 100644 --- a/configure.ac +++ b/configure.ac @@ -357,7 +357,7 @@ dnl ********************************** dnl we currently check for all three va_copy possibilities, so we get dnl all results in config.log for bug reports. AC_CACHE_CHECK([for an implementation of va_copy()],dbus_cv_va_copy,[ - AC_LINK_IFELSE([#include + AC_LINK_IFELSE([AC_LANG_SOURCE([#include #include static void f (int i, ...) { va_list args1, args2; @@ -370,12 +370,12 @@ AC_CACHE_CHECK([for an implementation of va_copy()],dbus_cv_va_copy,[ int main() { f (0, 42); return 0; - }], + }])], [dbus_cv_va_copy=yes], [dbus_cv_va_copy=no]) ]) AC_CACHE_CHECK([for an implementation of __va_copy()],dbus_cv___va_copy,[ - AC_LINK_IFELSE([#include + AC_LINK_IFELSE([AC_LANG_SOURCE([#include #include static void f (int i, ...) { va_list args1, args2; @@ -388,7 +388,7 @@ AC_CACHE_CHECK([for an implementation of __va_copy()],dbus_cv___va_copy,[ int main() { f (0, 42); return 0; - }], + }])], [dbus_cv___va_copy=yes], [dbus_cv___va_copy=no]) ]) -- 1.7.5.1