]> mj.ucw.cz Git - pciutils.git/commitdiff
Cleaned up previous commit
authorMartin Mares <mj@ucw.cz>
Sun, 26 Dec 2021 21:20:23 +0000 (22:20 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 26 Dec 2021 21:20:23 +0000 (22:20 +0100)
lib/configure

index 77a081626e0b8b08840bb66bc8dd713e27bdae5a..2663b92c76e70ba76ea1f0c06a535b1818d4565f 100755 (executable)
@@ -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