lists.arthurdejong.org
RSS feed

[PATCH] Silence autoconf warnings

[Date Prev][Date Next] [Thread Prev][Thread Next]

[PATCH] Silence autoconf warnings



Attached is a mostly cosmetic patch to silence autoconf warnings when
configuring with new autoconf versions (2.68+). See[1] for an
explanation of the change.

    Jakub

[1] http://www.mail-archive.com/bug-autoconf@gnu.org/msg03052.html
>From a42d00f5233a268c7051841c7be147cce42adae7 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek@redhat.com>
Date: Mon, 29 Aug 2011 18:50:55 +0200
Subject: [PATCH] Silence autoconf warnings

New releases of autoconf require source code to be wrapped in
AC_LANG_SOURCE() (and the macro itself must be wrapped in [] as well)
---
 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 36eeaba..bc1c9a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,7 +93,7 @@ AC_ARG_ENABLE(warnings,
                  DESIRED_CFLAGS="$DESIRED_CFLAGS -Wextra 
-Wdeclaration-after-statement -Werror-implicit-function-declaration"
                fi])
 test_gcc_flag() {
-  AC_LANG_CONFTEST([int main() {}])
+  AC_LANG_CONFTEST([AC_LANG_PROGRAM([int main() {}])])
   $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null
   ret=$?
   rm -f conftest.o
@@ -310,7 +310,7 @@ AC_CHECK_SIZEOF(gid_t)
 
 # check for support for the __thread keyword
 AC_CACHE_CHECK([whether $CC supports '__thread'], [mn_cv_c___thread_supported],
-               [AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[static __thread i;]], []),
+               [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[static __thread i;]], 
[])],
                        [mn_cv_c___thread_supported=yes],
                        [mn_cv_c___thread_supported=no])])
 if test $mn_cv_c___thread_supported != yes
-- 
1.7.6

-- 
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users