Possibly fixes OSX 10.6 where includes have moved around a bit.

This commit is contained in:
R. Bernstein
2012-04-10 03:29:32 -04:00
parent b052c43389
commit 844578d204
2 changed files with 21 additions and 4 deletions

View File

@@ -324,7 +324,7 @@ case $host_os in
## AC_DEFINE([HAVE_AIX_CDROM], [1],
## [Define 1 if you have AIX CD-ROM support])
;;
darwin6*|darwin7*|darwin8*|darwin9*)
darwin6*|darwin7*|darwin8*|darwin9*|darwin10*)
AC_CHECK_HEADERS(IOKit/IOKitLib.h CoreFoundation/CFBase.h,
[have_iokit_h="yes"])
if test "x$have_iokit_h" = "xyes" ; then
@@ -345,6 +345,16 @@ case $host_os in
DARWIN_PKG_LIB_HACK="$DARWIN_PKG_LIB_HACK -Wl,-framework,DiskArbitration"
fi
case $host_os in
darwin10*)
darwin_10=1
;;
*)
darwin_10=0
;;
esac
AC_DEFINE([DARWIN_10_OR_GREATER], [$darwin_10],
[Define 1 if you have Darwin OS X 10 or greater])
AC_SUBST(DARWIN_PKG_LIB_HACK)
LIBCDIO_LIBS="$LIBCDIO_LIBS $DARWIN_PKG_LIB_HACK"
cd_drivers="${cd_drivers}, Darwin"