configure: Add a check for the QuickTime development headers.

oldstable
Alexandre Julliard 2011-01-14 15:59:51 +01:00
parent f64a800fd9
commit fa3ddd838b
3 changed files with 23 additions and 8 deletions

16
configure vendored
View File

@ -653,13 +653,13 @@ CROSSCC
CROSSTEST_DISABLE
PRELINK
CARBONLIB
QUICKTIMELIB
LIBOPENCL
FRAMEWORK_OPENAL
COREAUDIO
DISKARBITRATIONLIB
LDEXECFLAGS
APPLICATIONSERVICESLIB
QUICKTIMELIB
IOKITLIB
COREFOUNDATIONLIB
SECURITYLIB
@ -5772,6 +5772,7 @@ for ac_header in \
IOKit/hid/IOHIDLib.h \
OpenAL/al.h \
OpenCL/opencl.h \
QuickTime/ImageCompression.h \
alias.h \
alsa/asoundlib.h \
arpa/inet.h \
@ -6513,8 +6514,6 @@ fi
IOKITLIB="-framework IOKit -framework CoreFoundation"
QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
APPLICATIONSERVICESLIB="-framework ApplicationServices"
LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
@ -6563,11 +6562,18 @@ done
LIBS="$ac_save_LIBS"
fi
enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
case $host_cpu in
*powerpc*)
LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
esac
if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
then
QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
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"
then
CARBONLIB="-framework Carbon"
@ -10865,7 +10871,7 @@ fi
fi
CPPFLAGS="$ac_save_CPPFLAGS"
fi
if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes; then :
if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
case "x$with_gstreamer" in
x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
xno) ;;

View File

@ -379,6 +379,7 @@ AC_CHECK_HEADERS(\
IOKit/hid/IOHIDLib.h \
OpenAL/al.h \
OpenCL/opencl.h \
QuickTime/ImageCompression.h \
alias.h \
alsa/asoundlib.h \
arpa/inet.h \
@ -700,7 +701,6 @@ case $host_os in
AC_SUBST(SECURITYLIB,"-framework Security -framework CoreFoundation")
AC_SUBST(COREFOUNDATIONLIB,"-framework CoreFoundation")
AC_SUBST(IOKITLIB,"-framework IOKit -framework CoreFoundation")
AC_SUBST(QUICKTIMELIB,"-framework QuickTime -framework ApplicationServices -framework CoreVideo")
AC_SUBST(APPLICATIONSERVICESLIB,"-framework ApplicationServices")
AC_SUBST(LDEXECFLAGS,["-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"])
if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
@ -731,12 +731,18 @@ case $host_os in
AC_CHECK_FUNCS(IOHIDManagerCreate)
LIBS="$ac_save_LIBS"
fi
enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
case $host_cpu in
*powerpc*)
LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" dnl FIXME
;;
esac
if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
then
AC_SUBST(QUICKTIMELIB,"-framework QuickTime -framework ApplicationServices -framework CoreVideo")
enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
else
WINE_NOTICE([QuickTime ${notice_platform}development files not found, video decoding won't be supported.])
fi
dnl Enable quartz driver on Mac OS X
if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
then
@ -1471,7 +1477,7 @@ then
fi
CPPFLAGS="$ac_save_CPPFLAGS"
fi
WINE_NOTICE_WITH(gstreamer,[test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes],
WINE_NOTICE_WITH(gstreamer,[test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes],
[gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled])
test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}

View File

@ -659,6 +659,9 @@
/* Define to 1 if you have the `pwrite' function. */
#undef HAVE_PWRITE
/* Define to 1 if you have the <QuickTime/ImageCompression.h> header file. */
#undef HAVE_QUICKTIME_IMAGECOMPRESSION_H
/* Define to 1 if you have the `readdir' function. */
#undef HAVE_READDIR