r25122: fix interface detection code
authorStefan Metzmacher <metze@samba.org>
Thu, 13 Sep 2007 10:51:31 +0000 (10:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:06:43 +0000 (15:06 -0500)
jelmer: I wonder what broke it...

metze
(This used to be commit 4c8063b9c4ca2c0359859338a8335e177e9c31bd)

source4/lib/socket/config.m4

index e9c194ddc4ed50d12fde68b2cd493e6119a9f432..7234eea030a918b4f4ce7f20385e63e46a966bda 100644 (file)
@@ -102,8 +102,10 @@ dnl the configure uses --with-static-modules=socket_ipv6
 #
 # This tests need LIBS="$NSL_LIBS $SOCKET_LIBS"
 #
+old_CFLAGS=$CFLAGS
 old_LIBS=$LIBS
 LIBS="$NSL_LIBS $SOCKET_LIBS"
+CFLAGS="$CFLAGS -Ilib/replace"
 iface=no;
 AC_CACHE_CHECK([for iface AIX],samba_cv_HAVE_IFACE_AIX,[
 AC_TRY_RUN([
@@ -140,4 +142,5 @@ if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
 fi
 fi
 
+CFLAGS=$old_CFLAGS
 LIBS=$old_LIBS