libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.
authorMichael Adam <obnox@samba.org>
Fri, 14 Mar 2008 07:52:16 +0000 (08:52 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 14 Mar 2008 08:04:25 +0000 (09:04 +0100)
This is needed, otherwise $libreplacedir/system/network.h does not
find $libreplacedir/getaddrinfo.h on some systems (solaris, e.g.).

Michael

source/lib/replace/getifaddrs.m4

index 6cca155de3721cc7dc540d42b2ed9530133bb6ec..c79367fe4ffcb9afe7477213a88dd4817f9c603d 100644 (file)
@@ -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"
+