AC_COPYRIGHT([Copyright 2002-2011 the VideoLAN team])
-AC_INIT(vlc, 1.2.0-pre1)
+AC_INIT(vlc, 1.2.0-pre2)
VERSION_MAJOR=1
VERSION_MINOR=2
VERSION_REVISION=0
VLC_ADD_LIBS([avcodec avformat access_avio swscale postproc i420_rgb_mmx x264],[-Wl,-read_only_relocs,suppress])
VLC_ADD_CFLAGS([motion],[-fconstant-cfstrings])
VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreFoundation])
- AC_ARG_ENABLE(macosx-defaults,
- AS_HELP_STRING([--enable-macosx-defaults],[Build the default configuration on Mac OS X (default enabled)]))
- if test "x${enable_macosx_defaults}" != "xno"
- then
- echo ""
- echo "Building with Mac OS X defaults:"
- build_dir=`pwd`
- echo " Assuming --prefix=${build_dir}/vlc_install_dir"
- ac_default_prefix="${build_dir}/vlc_install_dir"
- enable_faad="yes"
- echo " Assuming --enable-faad"
- enable_flac="yes"
- echo " Assuming --enable-flac"
- enable_theora="yes"
- echo " Assuming --enable-theora"
- enable_shout="yes"
- echo " Assuming --enable-shout"
- enable_vcdx="yes"
- echo " Assuming --enable-vcdx"
- enable_caca="yes"
- echo " Assuming --enable-caca"
- enable_ncurses="yes"
- echo " Assuming --enable-ncurses"
- enable_twolame="yes"
- echo " Assuming --enable-twolame"
- enable_realrtsp="yes"
- echo " Assuming --enable-realrtsp"
- enable_libass="yes"
- echo " Assuming --enable-libass"
-
- enable_skins2="no"
- echo " Assuming --disable-skins2"
- enable_xcb="no"
- echo " Assuming --disable-xcb"
- fi
+
dnl
dnl Check for Mac OS X SDK settings
dnl
AC_ARG_WITH(macosx-sdk,
[AS_HELP_STRING([--with-macosx-sdk=DIR],
[compile using the SDK in DIR])])
- if test "${with_macosx_sdk}" != "" ; then
- CPP="${CPP} -isysroot ${with_macosx_sdk}"
- CC="${CC} -isysroot ${with_macosx_sdk}"
- CXX="${CXX} -isysroot ${with_macosx_sdk}"
- OBJC="${OBJC} -isysroot ${with_macosx_sdk}"
- LD="${LD} -syslibroot ${with_macosx_sdk}"
- else
- echo " No desired SDK version given, falling back to 10.5"
- CPP="${CPP} -isysroot /Developer/SDKs/MacOSX10.5.sdk"
- CC="${CC} -isysroot /Developer/SDKs/MacOSX10.5.sdk"
- CXX="${CXX} -isysroot /Developer/SDKs/MacOSX10.5.sdk"
- OBJC="${OBJC} -isysroot /Developer/SDKs/MacOSX10.5.sdk"
- LD="${LD} -syslibroot /Developer/SDKs/MacOSX10.5.sdk"
- with_macosx_version_min="10.5"
- echo " Assuming --with-macosx-version-min=10.5"
- fi
+ test "${with_macosx_sdk}" = "" && with_macosx_sdk=/Developer/SDKs/MacOSX10.5.sdk
+ ! test -d "${with_macosx_sdk}" && AC_MSG_ERROR([SDK "${with_macosx_sdk}" not found])
+ CPP="${CPP} -isysroot ${with_macosx_sdk}"
+ CC="${CC} -isysroot ${with_macosx_sdk}"
+ CXX="${CXX} -isysroot ${with_macosx_sdk}"
+ OBJC="${OBJC} -isysroot ${with_macosx_sdk}"
+ LD="${LD} -syslibroot ${with_macosx_sdk}"
AC_ARG_WITH(macosx-version-min,
[AS_HELP_STRING([--with-macosx-version-min=VERSION],
[compile for MacOS X VERSION and above])])
AC_SUBST(GNUGETOPT_LIBS)
AC_CHECK_LIB(m,cos,[
- VLC_ADD_LIBS([adjust wave ripple psychedelic gradient a52tofloat32 dtstofloat32 x264 goom visual panoramix rotate noise grain scene kate flac lua chorus_flanger freetype avcodec avformat access_avio swscale postproc i420_rgb faad twolame equalizer spatializer param_eq samplerate freetype mod mpc dmo quicktime realvideo qt4 compressor headphone_channel_mixer normvol audiobargraph_a speex mono colorthres extract ball access_imem hotkeys mosaic gaussianblur dbus x264],[-lm])
+ VLC_ADD_LIBS([adjust wave ripple psychedelic gradient a52tofloat32 dtstofloat32 x264 goom visual panoramix rotate noise grain scene kate flac lua chorus_flanger freetype avcodec avformat access_avio swscale postproc i420_rgb faad twolame equalizer spatializer param_eq samplerate freetype mod mpc dmo quicktime realvideo qt4 compressor headphone_channel_mixer normvol audiobargraph_a speex mono colorthres extract ball access_imem hotkeys mosaic gaussianblur dbus x264 hqdn3d],[-lm])
LIBM="-lm"
], [
LIBM=""
dnl
AC_ARG_ENABLE(macosx,
[ --enable-macosx Mac OS X gui support (default enabled on Mac OS X)])
-if test "x${enable_macosx}" != "xno" &&
-(test "${SYS}" = "darwin" || test "${enable_macosx}" = "yes")
+if test "x${enable_macosx}" != "xno" -a "${SYS}" = "darwin"
then
- VLC_ADD_LIBS([macosx minimal_macosx],[-Wl,-framework,Cocoa])
- VLC_ADD_LIBS([macosx minimal_macosx],[-Wl,-framework,OpenGL])
- VLC_ADD_LIBS([macosx minimal_macosx], [-Wl,-framework,Carbon])
- VLC_ADD_LIBS([macosx minimal_macosx], [-Wl,-framework,CoreServices])
- VLC_ADD_LIBS([macosx minimal_macosx], [-Wl,-framework,AGL])
- VLC_ADD_LIBS([macosx], [-Wl,-framework,QTKit])
- VLC_ADD_LIBS([macosx], [-Wl,-framework,IOKit])
- VLC_ADD_LIBS([macosx], [-F${CONTRIB_DIR}/Sparkle -Wl,-framework,Sparkle])
- VLC_ADD_OBJCFLAGS([macosx], [-F${CONTRIB_DIR}/Sparkle])
- VLC_ADD_LIBS([macosx], [-F${CONTRIB_DIR}/BGHUDAppKit -Wl,-framework,BGHUDAppKit])
- VLC_ADD_OBJCFLAGS([macosx], [-F${CONTRIB_DIR}/BGHUDAppKit])
- dnl For bug report
- VLC_ADD_LIBS([macosx], [-Wl,-framework,AddressBook])
- VLC_ADD_LIBS([macosx], [-Wl,-framework,WebKit])
+ VLC_ADD_LIBS([macosx minimal_macosx], [-Wl,-framework,Cocoa -Wl,-framework,OpenGL -Wl,-framework,Carbon -Wl,-framework,CoreServices -Wl,-framework,AGL])
VLC_ADD_OBJCFLAGS([macosx minimal_macosx], [-fobjc-exceptions] )
-
VLC_ADD_PLUGIN([macosx minimal_macosx])
+
+ VLC_ADD_LIBS([macosx], [-Wl,-framework,QTKit -Wl,-framework,IOKit -Wl,-framework,AddressBook -Wl,-framework,WebKit])
+
+ CFLAGS="-I${CONTRIB_DIR}/Sparkle.framework/Headers ${CFLAGS_saved}"
+ AC_CHECK_HEADERS(Sparkle.h, [
+ VLC_ADD_LIBS([macosx], [-F${CONTRIB_DIR} -Wl,-framework,Sparkle])
+ VLC_ADD_OBJCFLAGS([macosx], [-F${CONTRIB_DIR}])
+ ])
+ if ! test -d ${CONTRIB_DIR}/BGHUDAppKit.framework
+ then
+ AC_MSG_ERROR([BGHUDAppKit framework is required and was not found in ${CONTRIB_DIR}])
+ fi
+ VLC_ADD_LIBS([macosx], [-F${CONTRIB_DIR} -Wl,-framework,BGHUDAppKit])
+ VLC_ADD_OBJCFLAGS([macosx], [-F${CONTRIB_DIR}])
+
fi
dnl