X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure.ac.in;h=8fee7b28918e4d4ef57f2d869d627303ee936e5d;hb=41d11c19b2768de37a0aa9da94234f46112520c0;hp=e9453462e138da7bcb070b4f6128f769369adfbe;hpb=d5791c9cc185e755f3bace9dced5d07cd9fefa88;p=vlc diff --git a/configure.ac.in b/configure.ac.in index e9453462e1..8fee7b2891 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -1,6 +1,6 @@ dnl Autoconf settings for vlc -AC_INIT(vlc,0.6.0-cvs) +AC_INIT(vlc,0.6.0-test1) 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.6.0-cvs) +AM_INIT_AUTOMAKE(vlc,0.6.0-test1) AM_CONFIG_HEADER(config.h) dnl @@ -85,6 +85,7 @@ case "x${target_os}" in LDFLAGS_dvd="${LDFLAGS_dvd} -ldvd" LDFLAGS_dvdcss="${LDFLAGS_dvdcss} -ldvd" LDFLAGS_vcd="${LDFLAGS_vcd} -ldvd" + LDFLAGS_cdda="${LDFLAGS_cdda} -ldvd" ;; x*bsd*) SYS="${target_os}" @@ -1357,7 +1358,7 @@ then AC_MSG_CHECKING(for cdrom_msf0 in linux/cdrom.h) AC_EGREP_HEADER(cdrom_msf0,linux/cdrom.h,[ AC_MSG_RESULT(yes) - PLUGINS="${PLUGINS} vcd" + PLUGINS="${PLUGINS} vcd cdda" ],[ AC_MSG_RESULT(no) ]) @@ -1365,7 +1366,7 @@ then AC_MSG_CHECKING(for scsireq in sys/scsiio.h) AC_EGREP_HEADER(scsireq,sys/scsiio.h,[ AC_MSG_RESULT(yes) - PLUGINS="${PLUGINS} vcd" + PLUGINS="${PLUGINS} vcd cdda" AC_DEFINE(HAVE_SCSIREQ_IN_SYS_SCSIIO_H, 1, For NetBSD VCD support) ],[ AC_MSG_RESULT(no) @@ -1374,7 +1375,7 @@ then AC_MSG_CHECKING(for ioc_toc_header in sys/cdio.h) AC_EGREP_HEADER(ioc_toc_header ,sys/cdio.h,[ AC_MSG_RESULT(yes) - PLUGINS="${PLUGINS} vcd" + PLUGINS="${PLUGINS} vcd cdda" AC_DEFINE(HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H, 1, For FreeBSD VCD support) ],[ AC_MSG_RESULT(no) @@ -1382,13 +1383,14 @@ then if test "x${SYS}" = "xbsdi" -o "x${SYS}" = "xmingw32" then - PLUGINS="${PLUGINS} vcd" + PLUGINS="${PLUGINS} vcd cdda" fi if test "x${SYS}" = "xdarwin" then - PLUGINS="${PLUGINS} vcd" + PLUGINS="${PLUGINS} vcd cdda" LDFLAGS_vcd="${LDFLAGS_vcd} -framework IOKit -framework CoreFoundation" + LDFLAGS_cdda="${LDFLAGS_cdda} -framework IOKit -framework CoreFoundation" fi fi @@ -1453,7 +1455,7 @@ dnl dnl mad plugin dnl AC_ARG_ENABLE(mad, - [ --enable-mad libmad module (default disabled)]) + [ --enable-mad libmad module (default enabled)]) if test "x${enable_mad}" != "xno" then AC_ARG_WITH(mad, @@ -1497,7 +1499,7 @@ then CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_mpgatofixed32}" LDFLAGS="${LDFLAGS_save} ${LDFLAGS_mpgatofixed32}" AC_CHECK_HEADERS(mad.h, , - [ AC_MSG_ERROR([Cannot find development headers for libmad...]) ]) + [ AC_MSG_ERROR([Could not find libmad on your system: you may get it from http://www.underbit.com/products/mad/. Alternatively you can use --disable-mad to disable the mad plugin.]) ]) AC_CHECK_LIB(mad, mad_bit_init, [ PLUGINS="${PLUGINS} mpgatofixed32" LDFLAGS_mpgatofixed32="${LDFLAGS_mpgatofixed32} -lmad" ], @@ -1519,8 +1521,8 @@ dnl dnl ffmpeg decoder plugin dnl AC_ARG_ENABLE(ffmpeg, -[ --enable-ffmpeg ffmpeg codec (default disabled)]) -if test "x${enable_ffmpeg}" = "xyes" +[ --enable-ffmpeg ffmpeg codec (default enabled)]) +if test "x${enable_ffmpeg}" != "xno" then AC_ARG_WITH(ffmpeg-tree, [ --with-ffmpeg-tree=PATH ffmpeg tree for static linking]) @@ -1533,12 +1535,12 @@ then LDFLAGS="${LDFLAGS_save} ${LDFLAGS_ffmpeg}" AC_CHECK_HEADERS(ffmpeg/avcodec.h postproc/postprocess.h) AC_CHECK_LIB(avcodec, avcodec_init, [ - BUILTINS="${BUILTINS} ffmpeg stream_out_transcode encoder_ffmpeg" + BUILTINS="${BUILTINS} ffmpeg stream_out_transcode" LDFLAGS_ffmpeg="${LDFLAGS_ffmpeg} -lavcodec" dnl XXX: we don't link with -lavcodec a 2nd time because the OS X dnl linker would miserably barf on multiple definitions. LDFLAGS_stream_out_transcode="${LDFLAGS_stream_out_transcode}" ], - [ AC_MSG_ERROR([Cannot find libavcodec library...]) ]) + [ AC_MSG_ERROR([Could not find ffmpeg on your system: you may get it from http://ffmpeg.sf.net/ (cvs version is recommended). Alternatively you can use --disable-ffmpeg to disable the ffmpeg plugins.]) ]) LDFLAGS="${LDFLAGS_save}" CPPFLAGS="${CPPFLAGS_save}" fi @@ -1557,7 +1559,7 @@ then if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"; then dnl Use a custom libffmpeg AC_MSG_RESULT(${real_ffmpeg_tree}/libavcodec/libavcodec.a) - BUILTINS="${BUILTINS} ffmpeg stream_out_transcode encoder_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" @@ -1675,7 +1677,7 @@ then then dnl Use a custom xvid AC_MSG_RESULT(${real_xvid_tree}/build/generic/libxvidcore.a) - BUILTINS="${BUILTINS} xvid encoder_xvid" + BUILTINS="${BUILTINS} xvid" LDFLAGS_xvid="${LDFLAGS_xvid} -L${real_xvid_tree}/build/generic -lxvidcore" CPPFLAGS_xvid="${CPPFLAGS_xvid} -I${real_xvid_tree}/src" else @@ -1689,7 +1691,7 @@ then AC_CHECK_HEADERS(xvid.h, , [ AC_MSG_ERROR([Cannot find development headers for libxvidcore...]) ]) AC_CHECK_LIB(xvidcore, xvid_init, [ - PLUGINS="${PLUGINS} xvid encoder_xvid" + PLUGINS="${PLUGINS} xvid" LDFLAGS_xvid="${LDFLAGS_xvid} -lxvidcore" ], [ AC_MSG_ERROR([Cannot find libxvidcore library...]) ]) LDFLAGS="${LDFLAGS_save}" @@ -1701,7 +1703,19 @@ then CPPFLAGS_encoder_xvid=${CPPFLAGS_xvid} fi - +dnl +dnl QuickTime plugin +dnl +AC_ARG_ENABLE(quicktime, + [ --enable-quicktime QuickTime module (default enabled on MacOS X)]) +if test "x${enable_quicktime}" != "xno" && + (test "x${SYS}" = "xdarwin" || test "x${enable_quicktime}" = "xyes") +then + AC_CHECK_HEADERS(QuickTime/QuickTime.h, + [ BUILTINS="${BUILTINS} quicktime" + LDFLAGS_quicktime="${LDFLAGS_quicktime} -framework QuickTime -framework Carbon" + ], [ AC_MSG_ERROR([cannot find CoreAudio headers]) ]) +fi dnl dnl MP4 module @@ -1797,7 +1811,7 @@ dnl dnl DV plugin dnl AC_ARG_ENABLE(dv, - [ --enable-dv DV decoder support (default disabled)]) + [ --enable-dv DV decoder support (deprecated in favor of ffmpeg) (default disabled)]) if test "x${enable_dv}" = "xyes" then AC_CHECK_HEADERS(libdv/dv.h, [ @@ -1851,21 +1865,6 @@ then AC_MSG_RESULT(no) AC_MSG_ERROR([cannot find ${real_libmpeg2_tree}/libmpeg2/.libs/libmpeg2.a, make sure you compiled libmpeg2 in ${with_libmpeg2_tree}]) fi - elif test "x${with_libmpeg2_prefix}" != "x" - then - # check for cross-compiling - AC_ARG_WITH(libmpeg2-prefix, - [ --with-libmpeg2-prefix=PATH path to installed libmpeg2 (needed for cross-compiling), - e.g use as: - --with-libmpeg2-prefix=/usr/local/arm/2.95.3/arm-linux/usr)],[],[]) - if test "x${with_libmpeg2_prefix}" != "xno" -a "x${with_libmpeg2_prefix}" != "x" - then - AC_MSG_CHECKING(for libmpeg2.a in ${with_libmpeg2_prefix}) - AC_MSG_RESULT(${with_libmpeg2_prefix}/lib/libmpeg2.a) - PLUGINS="${PLUGINS} libmpeg2" - LDFLAGS_libmpeg2="${LDFLAGS_libmpeg2} -L${with_libmpeg2_prefix}/lib -lmpeg2" - CFLAGS_libmpeg2="${CFLAGS_libmpeg2} -I${with_libmpeg2_prefix}/include" - fi else AC_CHECK_HEADERS(mpeg2dec/mpeg2.h, [ AC_MSG_CHECKING(for libmpeg2 version >= 0.3.2) @@ -2807,18 +2806,6 @@ AC_ARG_ENABLE(qnx, ]) fi -dnl -dnl Windows native interface module, built with Borland C++ Builder -dnl -AC_ARG_ENABLE(intfwin, -[ --enable-intfwin Win32 interface support (default disabled)], -[ if test "x${enable_intfwin}" != "xno" - then - AC_CHECK_TOOL(BPR2MAK, bpr2mak, AC_ERROR(bpr2mak not found)) - AC_CHECK_TOOL(BCMAKE, bcmake, AC_ERROR(bcmake not found)) - PLUGINS="${PLUGINS} win32" - fi ]) - dnl dnl ncurses module dnl