From: Michael Adam Date: Fri, 14 Mar 2008 07:52:16 +0000 (+0100) Subject: libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests. X-Git-Tag: samba-3.3.0pre1~3306 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ddd564e8bf2b115aa5dbcbebd4be30b749ad8752;p=thirdparty%2Fsamba.git libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests. This is needed, otherwise $libreplacedir/system/network.h does not find $libreplacedir/getaddrinfo.h on some systems (solaris, e.g.). Michael (cherry picked from commit 297c3bece094ddb5f268b02e61e33f512ccfe6f5) --- diff --git a/source/lib/replace/getifaddrs.m4 b/source/lib/replace/getifaddrs.m4 index 6cca155de37..c79367fe4ff 100644 --- a/source/lib/replace/getifaddrs.m4 +++ b/source/lib/replace/getifaddrs.m4 @@ -38,6 +38,8 @@ fi # old_LIBS=$LIBS LIBS="$NSL_LIBS $SOCKET_LIBS" +SAVE_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS -I$libreplacedir" iface=no; ################## # look for a method of finding the list of network interfaces @@ -125,3 +127,5 @@ fi fi LIBS=$old_LIBS +CPPFLAGS="$SAVE_CPPFLAGS" +