From: Martin Mares Date: Sun, 26 Dec 2021 21:20:23 +0000 (+0100) Subject: Cleaned up previous commit X-Git-Tag: v3.8.0~90 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=02321cd3ad5d2ab157c833bf5f068fb7ac45b1d6;p=pciutils.git Cleaned up previous commit --- diff --git a/lib/configure b/lib/configure index 77a0816..2663b92 100755 --- a/lib/configure +++ b/lib/configure @@ -62,7 +62,7 @@ echo >$m 'WITH_LIBS=' echo_n "Looking for access methods..." LIBRESOLV=-lresolv LIBEXT=so -MACSDKROOT= +SYSINCLUDE=/usr/include case $sys in linux*) @@ -113,7 +113,7 @@ case $sys in echo >>$c '#define PCI_HAVE_64BIT_ADDRESS' LIBRESOLV= LIBEXT=dylib - MACSDKROOT=$(xcrun --sdk macosx --show-sdk-path) + SYSINCLUDE=$(xcrun --sdk macosx --show-sdk-path)/usr/include ;; aix) echo_n " aix-device" @@ -174,7 +174,7 @@ echo_n "Checking for zlib support... " if [ "$ZLIB" = yes -o "$ZLIB" = no ] ; then echo "$ZLIB (set manually)" else - if [ -f "$MACSDKROOT"/usr/include/zlib.h -o -f /usr/local/include/zlib.h ] ; then + if [ -f "$SYSINCLUDE/zlib.h" -o -f /usr/local/include/zlib.h ] ; then ZLIB=yes else ZLIB=no @@ -195,7 +195,7 @@ echo_n "Checking for DNS support... " if [ "$DNS" = yes -o "$DNS" = no ] ; then echo "$DNS (set manually)" else - if [ -f "$MACSDKROOT"/usr/include/resolv.h ] ; then + if [ -f "$SYSINCLUDE/resolv.h" ] ; then DNS=yes else DNS=no