echo_n "Looking for access methods..."
LIBRESOLV=-lresolv
LIBEXT=so
-MACSDKROOT=
+SYSINCLUDE=/usr/include
case $sys in
linux*)
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"
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
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