From 82f7a2ccf26698f391bb6685067de1e7eec69874 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Sun, 27 May 2012 04:26:36 +0000 Subject: [PATCH] Use AC_LANG_SOURCE() around argument to AC_LINK_IFELSE(), this means that we get confdefs.h included in the test. This should fix the resolver linking issue on OS X. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@195 13b04d17-f746-0410-82c6-800466cd88b0 --- configure.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 962e535..f0d3f39 100644 --- a/configure.in +++ b/configure.in @@ -125,7 +125,7 @@ bx_cv_lib_resolver="not found" for reslib in '' '-lresolv' '-lbind' '-lsocket' do LIBS="$reslib $OLDLIBS" - AC_LINK_IFELSE([ + AC_LINK_IFELSE([AC_LANG_SOURCE([ #if defined( __APPLE__ ) && !defined( BIND_8_COMPAT ) #define BIND_8_COMPAT #endif @@ -146,7 +146,7 @@ do int main() { return res_mkquery(0, 0, 0, 0, 0, 0, 0, 0, 0); - }], [ + }])], [ if test x"$reslib" != x; then bx_cv_lib_resolver="$reslib" else @@ -780,7 +780,7 @@ AC_ARG_ENABLE(ipv6, [ --enable-ipv6 Enable IPv6 support (Linux only)], [ case "$enableval" in yes) - AC_LINK_IFELSE([[ + AC_LINK_IFELSE([AC_LANG_SOURCE([[ #include #include #include @@ -793,7 +793,7 @@ AC_ARG_ENABLE(ipv6, sin6.sin6_addr = in6addr_any; return sin6.sin6_addr.s6_addr[0]; - }]], [ ac_cv_ipv6_type="native" ], [ + }]])], [ ac_cv_ipv6_type="native" ], [ if test -d "/usr/inet6/include"; then CFLAGS="$CFLAGS -I/usr/inet6/include" LIBS="-L/usr/inet6/lib -linet6 $LIBS"