X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure.ac;h=fa506ef49c774a5e003a20e89b06b3d5728b5224;hb=a86267a44531de3182a4cedde4d3064562387d37;hp=fb9bb4860091ccab3d0a3efc99377dee2497398e;hpb=26ad82e32be3ef852e577ab320db03e9a55f3c5a;p=vlc diff --git a/configure.ac b/configure.ac index fb9bb48600..fa506ef49c 100644 --- a/configure.ac +++ b/configure.ac @@ -866,7 +866,7 @@ AC_CHECK_HEADERS([net/if.h], [], [], ]) if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then AC_CHECK_HEADERS(machine/param.h sys/shm.h) -AC_CHECK_HEADERS([linux/version.h linux/dccp.h]) +AC_CHECK_HEADERS([linux/version.h linux/dccp.h scsi/scsi.h]) AC_CHECK_HEADERS(syslog.h) fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" @@ -1707,9 +1707,6 @@ AS_IF([test "${enable_sout}" != "no"], [ ]) AM_CONDITIONAL(ENABLE_SOUT, [test "${enable_sout}" != "no"]) -AC_ARG_ENABLE(switcher, - [ --enable-switcher Stream-out switcher plugin (default disabled)]) - dnl Check for libshout AC_ARG_ENABLE(shout, [ --enable-shout libshout output plugin (default disabled)]) @@ -2250,10 +2247,12 @@ dnl AC_ARG_ENABLE(smb, [ --enable-smb smb input module (default enabled)]) if test "${enable_smb}" != "no"; then - AC_CHECK_HEADERS(libsmbclient.h, [ - VLC_ADD_PLUGIN([access_smb]) - VLC_ADD_LIBS([access_smb],[-lsmbclient]) - ],[AC_MSG_ERROR([cannot find libsmbclient headers])]) + AC_CHECK_HEADERS(libsmbclient.h, + [ VLC_ADD_PLUGIN([access_smb]) + VLC_ADD_LIBS([access_smb],[-lsmbclient]) ], + [ if test -n "${enable_smb}"; then + AC_MSG_ERROR([cannot find libsmbclient headers]) + fi ]) fi dnl @@ -3003,11 +3002,27 @@ then VLC_ADD_LIBS([avcodec],[$AVCODEC_LIBS]) VLC_ADD_CFLAGS([avcodec],[$AVCODEC_CFLAGS]) VLC_RESTORE_FLAGS + have_avcodec="yes" ],[ AC_MSG_ERROR([Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.]) ]) fi +dnl +dnl stream_out switcher needs libavcodec +dnl +AC_ARG_ENABLE(switcher, + [ --enable-switcher Stream-out switcher plugin (default disabled)]) +AS_IF([test "${enable_switcher}" = "yes"], [ + AS_IF([test "x${have_avcodec}" = "xyes"], [ + VLC_ADD_PLUGIN([stream_out_switcher]) + VLC_ADD_LIBS([stream_out_switcher],[$AVCODEC_LIBS]) + VLC_ADD_CFLAGS([stream_out_switcher],[$AVCODEC_CFLAGS]) + ],[AC_MSG_ERROR([Stream_out switcher depends on avcodec]) + ]) +]) + + dnl dnl avformat demuxer/muxer plugin dnl @@ -4365,9 +4380,9 @@ then if test -z "${with_directx}" then AC_CHECK_HEADERS(ddraw.h, - [ VLC_ADD_PLUGIN([vout_directx]) + [ VLC_ADD_PLUGIN([directx]) VLC_ADD_PLUGIN([aout_directx]) - VLC_ADD_LIBS([vout_directx],[-lgdi32]) + VLC_ADD_LIBS([directx],[-lgdi32]) ]) AC_CHECK_HEADERS(GL/gl.h, [ VLC_ADD_PLUGIN([glwin32]) @@ -4381,10 +4396,10 @@ then AC_MSG_CHECKING(for directX headers in ${with_directx}) if test -f ${with_directx}/ddraw.h then - VLC_ADD_PLUGIN([vout_directx]) + VLC_ADD_PLUGIN([directx]) VLC_ADD_PLUGIN([aout_directx]) - VLC_ADD_CPPFLAGS([vout_directx aout_directx],[-I${with_directx}]) - VLC_ADD_LIBS([vout_directx],[-lgdi32]) + VLC_ADD_CPPFLAGS([directx aout_directx],[-I${with_directx}]) + VLC_ADD_LIBS([directx],[-lgdi32]) AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) @@ -4951,7 +4966,7 @@ AS_IF([test "${enable_qt4}" != "no"], [ AS_IF([test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" -a "${SYS}" != "cygwin" -a "${SYS}" != "darwin"], [ VLC_ADD_LIBS([qt4],[$QT4_LIBS -lX11]) ], [ - VLC_ADD_LIBS([qt4],[$QT4_LIBS]) + VLC_ADD_LIBS([qt4],[$QT4_LIBS -lole32]) ]) QT4LOCALEDIR="$($PKG_CONFIG --variable=prefix QtCore)/share/qt4/translations/" AC_SUBST(QT4LOCALEDIR) @@ -5229,6 +5244,23 @@ then fi fi +dnl +dnl libprojectM visualization plugin +dnl +AC_ARG_ENABLE(projectm, + [ --enable-projectm projectM visualization plugin (default disabled)]) +AS_IF([test "${enable_projectm}" = "yes"], + [ + PKG_CHECK_MODULES(PROJECTM, libprojectM, + [ + VLC_ADD_PLUGIN([projectm]) + VLC_ADD_CXXFLAGS([projectm],[$PROJECTM_CFLAGS]) + VLC_ADD_LIBS([projectm],[$PROJECTM_LIBS]) + ],[ + AC_MSG_WARN(libprojectM library not found) + ]) + ]) + dnl dnl AtmoLight (homebrew AmbiLight) dnl