X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure.ac.in;h=d3490befb4327fe237fa93b0f46a6424b0efa762;hb=bf9d145f6e2caf39b8d495d7676138a0b7ead4da;hp=7bdfd1a17b68d3303553993278dccd7af618ff2c;hpb=774372d1f2e4c3d60ce81df4b2dc98e36d3eca55;p=vlc diff --git a/configure.ac.in b/configure.ac.in index 7bdfd1a17b..d3490befb4 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -1,6 +1,6 @@ dnl Autoconf settings for vlc -AC_INIT(vlc,0.5.3-test1) +AC_INIT(vlc,0.5.4-cvs) CONFIGURE_LINE="$0 $*" CODENAME="Natalya" @@ -12,7 +12,7 @@ AC_CANONICAL_SYSTEM dnl XXX: we don't put any flags here, because automake 1.5 doesn't support dnl them. And we need the comma otherwize automake will choke on it. -AM_INIT_AUTOMAKE(vlc,0.5.3-test1) +AM_INIT_AUTOMAKE(vlc,0.5.4-cvs) AM_CONFIG_HEADER(config.h) dnl @@ -122,7 +122,7 @@ case "x${target_os}" in # add ws2_32 for closesocket, select, recv CPPFLAGS_save="${CPPFLAGS_save} -D_OFF_T_ -D_off_t=long" CPPFLAGS="${CPPFLAGS_save}" - LDFLAGS_vlc="${LDFLAGS_vlc} -lws2_32 -lnetapi32 -lmmsystem -mwindows" + LDFLAGS_vlc="${LDFLAGS_vlc} -lws2_32 -lnetapi32 -lwinmm -mwindows" LDFLAGS_ipv4="${LDFLAGS_ipv4} -lws2_32" LDFLAGS_ipv6="${LDFLAGS_ipv6} -lws2_32" LDFLAGS_access_http="${LDFLAGS_access_http} -lws2_32" @@ -154,11 +154,11 @@ case "x${target_os}" in LDFLAGS_vlc="${LDFLAGS_vlc} -lbe" LDFLAGS_plugins="${LDFLAGS_plugins} -nostart" LDFLAGS_beos="${LDFLAGS_beos} -lbe -lmedia -lroot -ltracker -lstdc++.r4 -ltranslation" - dnl BONE or not BONE ? + dnl BONE or not BONE ? only BONE has libbind.so AC_CHECK_LIB( bind, inet_ntoa, - [ LDFLAGS_access_mms="${LDFLAGS_access_mms} -lbind" - LDFLAGS_ipv4="${LDFLAGS_ipv4} -lbind" - LDFLAGS_httpd="${LDFLAGS_httpd} -lbind"], + [ LDFLAGS_access_mms="${LDFLAGS_access_mms} -lsocket -lbind" + LDFLAGS_ipv4="${LDFLAGS_ipv4} -lsocket -lbind" + LDFLAGS_httpd="${LDFLAGS_httpd} -lsocket -lbind"], []) ;; x*) @@ -334,6 +334,7 @@ AC_CHECK_LIB(m,cos, LDFLAGS_a52tofloat32="${LDFLAGS_a52tofloat32} -lm") AC_CHECK_LIB(m,pow, LDFLAGS_ffmpeg="${LDFLAGS_ffmpeg} -lm" + LDFLAGS_stream_out_transcode="${LDFLAGS_stream_out_transcode} -lm" LDFLAGS_imdct="${LDFLAGS_imdct} -lm" LDFLAGS_imdct3dn="${LDFLAGS_imdct3dn} -lm" LDFLAGS_imdctsse="${LDFLAGS_imdctsse} -lm" @@ -681,12 +682,16 @@ if test "x${ac_cv_c_fast_math}" != "xno"; then fi dnl Check for -funroll-loops -AC_CACHE_CHECK([if \$CC accepts -funroll-loops], - [ac_cv_c_unroll_loops], - [CFLAGS="${CFLAGS_save} -funroll-loops" - AC_TRY_COMPILE([],,ac_cv_c_unroll_loops=yes, ac_cv_c_unroll_loops=no)]) -if test "x${ac_cv_c_unroll_loops}" != "xno"; then - CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops" +dnl Disabled on BeOS because BeOS' gcc is buggy and may crash with it +if test "x${SYS}" != "xbeos" +then + AC_CACHE_CHECK([if \$CC accepts -funroll-loops], + [ac_cv_c_unroll_loops], + [CFLAGS="${CFLAGS_save} -funroll-loops" + AC_TRY_COMPILE([],,ac_cv_c_unroll_loops=yes, ac_cv_c_unroll_loops=no)]) + if test "x${ac_cv_c_unroll_loops}" != "xno"; then + CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops" + fi fi dnl Check for -fomit-frame-pointer @@ -803,7 +808,7 @@ dnl dnl default modules dnl BUILTINS="${BUILTINS} mpeg_video idct idctclassic motion" -PLUGINS="${PLUGINS} dummy rc logger gestures access_file memcpy" +PLUGINS="${PLUGINS} dummy rc logger gestures memcpy" PLUGINS="${PLUGINS} es audio m4v mpeg_system ps ts avi asf aac mp4 rawdv" PLUGINS="${PLUGINS} spudec mpeg_audio lpcm a52 dts cinepak" PLUGINS="${PLUGINS} deinterlace invert adjust wall transform distort clone crop motionblur" @@ -815,9 +820,10 @@ PLUGINS="${PLUGINS} aout_file" #PLUGINS="${PLUGINS} scope" PLUGINS="${PLUGINS} i420_rgb i420_yuy2 i422_yuy2 i420_ymga" PLUGINS="${PLUGINS} id3 m3u" +PLUGINS="${PLUGINS} rawvideo" PLUGINS="${PLUGINS} wav araw demuxdump demuxsub adpcm a52sys au" -PLUGINS="${PLUGINS} access_udp access_http ipv4 access_mms access_ftp" -PLUGINS="${PLUGINS} sap httpd" +PLUGINS="${PLUGINS} access_file access_udp access_http ipv4 access_mms" +PLUGINS="${PLUGINS} access_ftp access_directory sap httpd" dnl dnl Some plugins aren't useful on some platforms @@ -1012,7 +1018,8 @@ then PLUGINS="${PLUGINS} packetizer_mpeg4video packetizer_mpeg4audio" PLUGINS="${PLUGINS} packetizer_copy" - PLUGINS="${PLUGINS} vout_encoder" + PLUGINS="${PLUGINS} stream_out_dummy stream_out_standard stream_out_es" + PLUGINS="${PLUGINS} stream_out_duplicate stream_out_display" dnl Ogg/ogm AC_CHECK_HEADERS(ogg/ogg.h, [ @@ -1318,7 +1325,7 @@ AC_ARG_ENABLE(v4l, [ --enable-v4l Video4Linux input support (default disabled)]) if test "x${enable_v4l}" = "xyes" then - AC_CHECK_HEADERS(libv4l/v4l.h, [ + AC_CHECK_HEADERS(linux/videodev.h, [ PLUGINS="${PLUGINS} v4l" ],[]) fi @@ -1505,6 +1512,10 @@ then then CPPFLAGS_ffmpeg="${CPPFLAGS_ffmpeg} -I${with_ffmpeg}/include/ffmpeg" LDFLAGS_ffmpeg="${LDFLAGS_ffmpeg} -L${with_ffmpeg}/lib" + + CPPFLAGS_stream_out_transcode="${CPPFLAGS_stream_out_transcode} -I${with_ffmpeg}/include/ffmpeg" + LDFLAGS_stream_out_transcode="${LDFLAGS_stream_out_transcode} -L${with_ffmpeg}/lib" + fi dnl Add postprocessing modules @@ -1533,9 +1544,13 @@ then then dnl Use a custom libffmpeg AC_MSG_RESULT(${real_ffmpeg_tree}/libavcodec/libavcodec.a) - BUILTINS="${BUILTINS} ffmpeg" + BUILTINS="${BUILTINS} ffmpeg stream_out_transcode" LDFLAGS_ffmpeg="${LDFLAGS_ffmpeg} -L${real_ffmpeg_tree}/libavcodec -lavcodec" CPPFLAGS_ffmpeg="${CPPFLAGS_ffmpeg} -I${real_ffmpeg_tree}/libavcodec" + + LDFLAGS_stream_out_transcode="${LDFLAGS_stream_out_transcode} -L${real_ffmpeg_tree}/libavcodec -lavcodec" + CPPFLAGS_stream_out_transcode="${CPPFLAGS_stream_out_transcode} -I${real_ffmpeg_tree}/libavcodec" + else dnl The given libavcodec wasn't built AC_MSG_RESULT(no) @@ -1545,8 +1560,9 @@ then CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_ffmpeg}" LDFLAGS="${LDFLAGS_save} ${LDFLAGS_ffmpeg}" AC_CHECK_LIB(avcodec, avcodec_init, [ - BUILTINS="${BUILTINS} ffmpeg" - LDFLAGS_ffmpeg="${LDFLAGS_ffmpeg} -lavcodec" ], + BUILTINS="${BUILTINS} ffmpeg stream_out_transcode" + LDFLAGS_ffmpeg="${LDFLAGS_ffmpeg} -lavcodec" + LDFLAGS_stream_out_transcode="${LDFLAGS_stream_out_transcode} -lavcodec" ], [ AC_MSG_ERROR([Cannot find libavcodec library...]) ]) LDFLAGS="${LDFLAGS_save}" CPPFLAGS="${CPPFLAGS_save}" @@ -1984,6 +2000,36 @@ from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day. fi fi +dnl +dnl freetype module +dnl +AC_ARG_ENABLE(freetype, + [ --enable-freetype freetype support (default enabled)]) +if test "x${enable_freetype}" != "xno" +then + FREETYPE_PATH="${PATH}" + AC_ARG_WITH(freetype-config-path, + [ --with-freetype-config-path=PATH freetype-config path (default search in \$PATH)], + [ if test "x${with_freetype_config_path}" != "xno" + then + FREETYPE_PATH="${with_freetype_config_path}:${PATH}" + fi ]) + AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no, ${FREETYPE_PATH}) + + if test "x${FREETYPE_CONFIG}" != "xno" -a "x${have_xosd}" = "xtrue" + then + PLUGINS="${PLUGINS} osdtext" + CFLAGS_osdtext="${CFLAGS_osdtext} `${FREETYPE_CONFIG} --cflags`" + LDFLAGS_osdtext="${LDFLAGS_osdtext} `${FREETYPE_CONFIG} --libs`" + CPPFLAGS="${CPPFLAGS_save} ${CFLAGS_freetype}" + elif test "x${enable_freetype}" = "xyes" + then + AC_MSG_ERROR([I couldn't find the freetype package. You can download libfreetype2 +from http://www.freetype.org/, or configure with --disable-freetype. Have a nice day. + ]) + fi +fi + dnl dnl Qt Embedded module dnl (disabled by default) @@ -2228,6 +2274,26 @@ if test "x${enable_waveout}" != "xno"; then fi fi +dnl +dnl CoreAudio plugin +dnl +AC_ARG_ENABLE(coreaudio, + [ --enable-coreaudio CoreAudio module (default enabled on MacOS X)]) +if test "x${enable_coreaudio}" != "xno" && + (test "x${SYS}" = "xdarwin" || test "x${enable_coreaudio}" = "xyes") +then + AC_CHECK_HEADERS(CoreAudio/CoreAudio.h, + [ BUILTINS="${BUILTINS} coreaudio" + LDFLAGS_coreaudio="${LDFLAGS_coreaudio} -framework CoreAudio" + AC_MSG_CHECKING(for kAudioConverterPrimeMethod in AudioToolbox/AudioConverter.h) + AC_EGREP_HEADER(kAudioConverterPrimeMethod,AudioToolbox/AudioConverter.h,[ + AC_MSG_RESULT(yes) + PLUGINS="${PLUGINS} coreaudio_resampler" + LDFLAGS_coreaudio_resampler="${LDFLAGS_coreaudio_resampler} -framework AudioToolbox" + ],[ AC_MSG_RESULT(no) ]) + ], [ AC_MSG_ERROR([cannot find CoreAudio headers]) ]) +fi + dnl dnl Interface plugins dnl @@ -2244,12 +2310,19 @@ dnl dnl Skins module dnl AC_ARG_ENABLE(skins, - [ --enable-skins Win32 skins module (default enabled on Win32)]) + [ --enable-skins Win32 skins module (default enabled on Win32)]) if test "x${enable_skins}" != "xno"; then if test "x${SYS}" = "xmingw32" -o "x${SYS}" = "xcygwin"; then PLUGINS="${PLUGINS} skins" - CPPFLAGS_skins="${CPPFLAGS_skins} -O2 -fno-rtti -fno-exceptions -Imodules/gui/skins -Imodules/gui/skins/src -Imodules/gui/skins/win32 -Imodules/gui/skins/controls" + CPPFLAGS_skins="${CPPFLAGS_skins} -O2 -fno-rtti -Imodules/gui/skins -Imodules/gui/skins/src -Imodules/gui/skins/win32 -Imodules/gui/skins/controls" LDFLAGS_skins="${LDFLAGS_skins} -lstdc++ -lgdi32 -lcomdlg32 -lole32 -luuid -lcomctl32 -lmsimg32" + else + if test "x${enable_skins}" = "xyes"; then + PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.0.0, gthread-2.0]) + PLUGINS="${PLUGINS} skins" + CPPFLAGS_skins="${CPPFLAGS_skins} -O2 -fno-rtti -Imodules/gui/skins -Imodules/gui/skins/src -Imodules/gui/skins/gtk2 -Imodules/gui/skins/controls -Imodules/gui/skins/parser ${GTK2_CFLAGS}" + LDFLAGS_skins="${LDFLAGS_skins} -lstdc++ ${GTK2_LIBS}" + fi fi fi @@ -2596,11 +2669,11 @@ AC_ARG_ENABLE(macosx, [if test "x${enable_macosx}" = "xyes" then BUILTINS="${BUILTINS} macosx" - LDFLAGS_macosx="${LDFLAGS_macosx} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework QuickTime -lobjc -ObjC" + LDFLAGS_macosx="${LDFLAGS_macosx} -framework IOKit -framework Cocoa -framework Carbon -framework QuickTime -lobjc -ObjC" fi], [AC_CHECK_HEADERS(Cocoa/Cocoa.h, BUILTINS="${BUILTINS} macosx" - LDFLAGS_macosx="${LDFLAGS_macosx} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework QuickTime -lobjc -ObjC" + LDFLAGS_macosx="${LDFLAGS_macosx} -framework IOKit -framework Cocoa -framework Carbon -framework QuickTime -lobjc -ObjC" )]) dnl @@ -2862,7 +2935,8 @@ if test "x${NEED_QTE_MAIN}" != "xno" then PLUGINS="${PLUGINS} qte_main" CPPFLAGS_qte="${CPPFLAGS_qte} -DNEED_QTE_MAIN" - CPPFLAGS_opie="${CPPFLAGS_opie} -DNEED_QTE_MAIN" + CPPFLAGS_opie="${CPPFLAGS_opie} -DNEED_QTE_MAIN" + CFLAGS_vout_sdl="${CFLAGS_vout_sdl} -DNEED_QTE_MAIN" CPPFLAGS_qte_main="${CFLAGS_qte_main} ${CPPFLAGS_qte}" LDFLAGS_qte_main="${LDFLAGS_qte_main} ${LDFLAGS_qte}" fi