From 089696fdc4cc21e8c96001b0bdad8c86e0573532 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Mon, 29 Aug 2011 19:16:21 +0000 Subject: silence autoconf warnings, patch by Jakub Hrozek git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1526 ef36b2f9-881f-0410-afb5-c4e39611909c --- configure.ac | 4 ++-- 1 file 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 -- cgit v1.2.3