echo_n "Looking for access methods..."
LIBRESOLV=-lresolv
LIBEXT=so
+MACSDKROOT=
case $sys in
linux*)
echo >>$c '#define PCI_HAVE_64BIT_ADDRESS'
LIBRESOLV=
LIBEXT=dylib
+ MACSDKROOT=$(xcrun --sdk macosx --show-sdk-path)
;;
aix)
echo_n " aix-device"
if [ "$ZLIB" = yes -o "$ZLIB" = no ] ; then
echo "$ZLIB (set manually)"
else
- if [ -f /usr/include/zlib.h -o -f /usr/local/include/zlib.h ] ; then
+ if [ -f "$MACSDKROOT"/usr/include/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 /usr/include/resolv.h ] ; then
+ if [ -f "$MACSDKROOT"/usr/include/resolv.h ] ; then
DNS=yes
else
DNS=no