Commit 10c6f843 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

configure: Only enable the Mac driver on Mac OS X 10.6 or later.

parent 95279b87
......@@ -6669,12 +6669,24 @@ done
else
as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
fi
if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
then
CARBONLIB="-framework Carbon"
enable_winemac_drv=${enable_winemac_drv:-yes}
fi
if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
then
ac_save_LIBS="$LIBS"
LIBS="$LIBS $APPLICATIONSERVICESLIB"
ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
enable_winemac_drv=${enable_winemac_drv:-yes}
fi
LIBS="$ac_save_LIBS"
fi
if test "x$enable_win16" = "xyes"
then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
......
......@@ -796,12 +796,20 @@ case $host_os in
else
WINE_NOTICE([QuickTime ${notice_platform}development files not found, video decoding won't be supported.])
fi
dnl Enable Mac driver on Mac OS X
if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
then
AC_SUBST(CARBONLIB,"-framework Carbon")
enable_winemac_drv=${enable_winemac_drv:-yes}
fi
dnl Enable Mac driver on Mac OS X 10.6 or later
if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
then
ac_save_LIBS="$LIBS"
LIBS="$LIBS $APPLICATIONSERVICESLIB"
AC_CHECK_FUNC(CGDisplayModeGetWidth,enable_winemac_drv=${enable_winemac_drv:-yes})
LIBS="$ac_save_LIBS"
fi
dnl Check for Xcode 3.x broken 16-bit support
if test "x$enable_win16" = "xyes"
then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment