X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=configure.in;h=e3a96c24604bf3cc54c3b604d455b3c1eb33c8c7;hb=0cd5d9133656183f9d25ba3b1019a6272487fcd9;hp=d810531f170322ce1bfb326fb8765a1926ac6a7d;hpb=80b9aa2b0a100b7b5f83ad09f660faa61c1c0f1a;p=vlc diff --git a/configure.in b/configure.in index d810531f17..e3a96c2460 100644 --- a/configure.in +++ b/configure.in @@ -4,7 +4,7 @@ AC_CONFIG_HEADER(include/defs.h) AC_CANONICAL_SYSTEM PACKAGE="vlc" -VERSION="0.3.1" +VERSION="0.4.0" CODENAME=Ourumov dnl Save CFLAGS and LDFLAGS @@ -79,6 +79,7 @@ case x"${target_os}" in vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix" vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32" ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32" + ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32" rc_LDFLAGS="${rc_LDFLAGS} -lws2_32" ;; x*nto*) @@ -781,10 +782,16 @@ AC_ARG_ENABLE(satellite, dnl dnl ipv6 plugin - not for QNX yet dnl -if test x$SYS != xnto +if test x$SYS != xnto && test "x$SYS" != "xmingw32" then AC_CHECK_FUNC(inet_pton,[PLUGINS="${PLUGINS} ipv6"]) fi +if test "x$SYS" = "xmingw32" +then + AC_MSG_CHECKING(for getaddrinfo in ws2tcpip.h) + AC_EGREP_HEADER(addrinfo,ws2tcpip.h,[AC_MSG_RESULT(yes) + PLUGINS="${PLUGINS} ipv6"],[AC_MSG_RESULT(no)]) +fi dnl dnl AVI demux plugin @@ -854,9 +861,9 @@ then LDFLAGS="$LDFLAGS $mad_LDFLAGS" AC_CHECK_HEADERS(mad.h, , [ AC_MSG_ERROR([Cannot find development headers for libmad...]) ]) - AC_CHECK_LIB(mad, mad_bit_init, + AC_CHECK_LIB(mad, mad_bit_init, [ PLUGINS="${PLUGINS} mad" - mad_LDFLAGS="${mad_LDFLAGS} -lmad", + mad_LDFLAGS="${mad_LDFLAGS} -lmad" ], [ AC_MSG_ERROR([Cannot find libmad library...]) ]) CFLAGS=$save_CFLAGS LDFLAGS=$save_LDFLAGS @@ -870,12 +877,18 @@ AC_ARG_ENABLE(ffmpeg, [ --enable-ffmpeg ffmpeg codec (default disabled)]) if test "x$enable_ffmpeg" = "xyes" then + AC_ARG_WITH(ffmpeg, + [ --with-ffmpeg=PATH path to ffmpeg installation],[],[]) + if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x" + then + ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg" + ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib" + fi + AC_ARG_WITH(ffmpeg-tree, [ --with-ffmpeg-tree=PATH ffmpeg tree for static linking]) - if test "x$with_ffmpeg_tree" = x + if test "x$with_ffmpeg_tree" != "x" then - AC_MSG_ERROR([cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a]) - else AC_MSG_CHECKING(for libavcodec.a in ${with_ffmpeg_tree}) real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`" if test "x$real_ffmpeg_tree" = x @@ -889,13 +902,24 @@ then dnl Use a custom libffmpeg AC_MSG_RESULT(${real_ffmpeg_tree}/libavcodec/libavcodec.a) BUILTINS="${BUILTINS} ffmpeg" - ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a" + ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm" ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec" else dnl The given libavcodec wasn't built AC_MSG_RESULT(no) AC_MSG_ERROR([cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}]) fi + else + save_CFLAGS=$CFLAGS + save_LDFLAGS=$LDFLAGS + CFLAGS="$CFLAGS $ffmpeg_CFLAGS" + LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm" + AC_CHECK_LIB(avcodec, avcodec_init, [ + BUILTINS="${BUILTINS} ffmpeg" + ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm" ], + [ AC_MSG_ERROR([Cannot find libavcodec library...]) ]) + CFLAGS=$save_CFLAGS + LDFLAGS=$save_LDFLAGS fi fi @@ -1683,6 +1707,7 @@ AC_SUBST(imdct_LDFLAGS) AC_SUBST(imdct3dn_LDFLAGS) AC_SUBST(imdctsse_LDFLAGS) AC_SUBST(ipv4_LDFLAGS) +AC_SUBST(ipv6_LDFLAGS) AC_SUBST(kde_LDFLAGS) AC_SUBST(lirc_LDFLAGS) AC_SUBST(macosx_LDFLAGS) @@ -1700,7 +1725,7 @@ AC_SUBST(waveout_LDFLAGS) AC_SUBST(x11_LDFLAGS) AC_SUBST(xvideo_LDFLAGS) -AC_OUTPUT([Makefile.opts po/Makefile.in]) +AC_OUTPUT([Makefile.config Makefile.opts po/Makefile.in]) echo " vlc configuration