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-Url: http://git.samba.org/?a=commitdiff_plain;h=297c3bece094ddb5f268b02e61e33f512ccfe6f5;p=metze%2Fsamba%2Fwip.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 --- diff --git a/source/lib/replace/getifaddrs.m4 b/source/lib/replace/getifaddrs.m4 index 6cca155de372..c79367fe4ffc 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" +