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])])
VLC_ADD_LIBS([win32text],[-lgdi32])
VLC_ADD_LIBS([cdda vcdx sdl_image vout_sdl],[-lwinmm])
AC_CHECK_PROGS(U2D, [unix2dos todos], unix2dos)
- ac_default_prefix="`pwd`/_win32"
- DESTDIR="`pwd`/_win32/"
dnl
dnl NSIS Installer prefix and WIN64
if test "${SYS}" = "mingwce"; then
VLC_ADD_LIBS([libvlccore],[-lmmtimer])
AC_CHECK_PROGS(U2D, [unix2dos todos], unix2dos)
- ac_default_prefix="`pwd`/_wince"
- DESTDIR="`pwd`/_wince/"
fi
;;
*nto*)