diff --git a/configure b/configure index 976bd9baa04..063c25d7fc7 100755 --- a/configure +++ b/configure @@ -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 diff --git a/configure.ac b/configure.ac index 5e59e906ee3..2a0a1b654e8 100644 --- a/configure.ac +++ b/configure.ac @@ -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