Commit b4ea8923 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Simplify HAL, mtp, notify, gnomeVFS, libmpeg2, projectm and bonjour

parent 8674d65e
...@@ -945,35 +945,13 @@ AM_CONDITIONAL(HAVE_MINIZIP, [ test "${have_minizip}" = "yes" ]) ...@@ -945,35 +945,13 @@ AM_CONDITIONAL(HAVE_MINIZIP, [ test "${have_minizip}" = "yes" ])
dnl Check for hal dnl Check for hal
AC_ARG_ENABLE(hal, if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
[ --enable-hal Linux HAL services discovery (default enabled)]) PKG_ENABLE_MODULES_VLC([HAL], [hal >= 0.5.0], [Linux HAL services discovery], [auto])
if test "${enable_hal}" != "no" -a "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
then
PKG_CHECK_MODULES(HAL, hal >= 0.5.0,
[
AC_DEFINE( HAVE_HAL, 1, [Define if you have the HAL library] )
VLC_ADD_PLUGIN([hal])
VLC_ADD_PLUGIN([probe_hal])
VLC_ADD_LIBS([libvlccore hal probe_hal],[$HAL_LIBS])
VLC_ADD_CFLAGS([libvlccore hal probe_hal],[$HAL_CFLAGS])],
[AC_MSG_WARN([libhal >= 0.5.0 was not found. Install libhal-dev ?])]
)
fi fi
dnl Check for mtp dnl Check for mtp
AC_ARG_ENABLE(mtp, if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
[ --enable-mtp MTP devices support (default enabled)]) PKG_ENABLE_MODULES_VLC([MTP],[libmtp >= 0.3.0],[MTP devices support],[auto])
if test "${enable_mtp}" != "no" -a "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
then
PKG_CHECK_MODULES(MTP, libmtp >= 0.3.0,
[ VLC_ADD_PLUGIN([mtp])
VLC_ADD_PLUGIN([access_mtp])
VLC_ADD_LIBS([mtp access_mtp],[$MTP_LIBS])
VLC_ADD_CFLAGS([mtp access_mtp],[$MTP_CFLAGS])],
[AC_MSG_WARN(MTP library not found)]
)
fi fi
dnl Check for dbus dnl Check for dbus
...@@ -1793,20 +1771,9 @@ AS_IF([test "${enable_growl}" != "no"], [ ...@@ -1793,20 +1771,9 @@ AS_IF([test "${enable_growl}" != "no"], [
dnl dnl
dnl Libnotify notification plugin dnl Libnotify notification plugin
dnl dnl
if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
AC_ARG_ENABLE(notify, PKG_ENABLE_MODULES_VLC([NOTIFY], [libnotify], [libnotify notification], [auto])
[ --enable-notify libnotify notification plugin (default enabled)]) fi
AS_IF([test "${enable_notify}" != "no" -a "${SYS}" != "mingw32"], [
PKG_CHECK_MODULES(NOTIFY, libnotify,
[
VLC_ADD_PLUGIN([notify])
VLC_ADD_CFLAGS(notify, [$NOTIFY_CFLAGS])
VLC_ADD_LIBS(notify, [$NOTIFY_LIBS])
],[
AS_IF([test "${enable_notify}" = "yes"],[
AC_MSG_WARN( libnotify not found) ])
])
])
dnl dnl
dnl Audioscrobbler plugin dnl Audioscrobbler plugin
...@@ -2418,17 +2385,8 @@ fi ...@@ -2418,17 +2385,8 @@ fi
dnl dnl
dnl gnomeVFS access module dnl gnomeVFS access module
dnl dnl
AC_ARG_ENABLE(gnomevfs, PKG_ENABLE_MODULES_VLC([GNOMEVFS], [gnome-vfs-2.0], [GnomeVFS access module], [auto])
[ --enable-gnomevfs GnomeVFS access module (default disabled)])
if test "${enable_gnomevfs}" = "yes"
then
PKG_CHECK_MODULES(GNOMEVFS, gnome-vfs-2.0,
VLC_ADD_LIBS([access_gnomevfs],[$GNOMEVFS_LIBS])
VLC_ADD_CPPFLAGS([access_gnomevfs],[$GNOMEVFS_CPPFLAGS])
VLC_ADD_CFLAGS([access_gnomevfs],[$GNOMEVFS_CFLAGS])
VLC_ADD_PLUGIN([access_gnomevfs]),
AC_MSG_WARN([GnomeVFS support disabled because GnomeVFS development headers not found]))
fi
dnl Need to test libcdio and libvcdinfo for a number of things. Do it now. dnl Need to test libcdio and libvcdinfo for a number of things. Do it now.
AC_ARG_ENABLE(libcdio, AC_ARG_ENABLE(libcdio,
...@@ -3315,42 +3273,7 @@ PKG_ENABLE_MODULES_VLC([FLAC], [flac], [libflac decoder/encoder support], [auto] ...@@ -3315,42 +3273,7 @@ PKG_ENABLE_MODULES_VLC([FLAC], [flac], [libflac decoder/encoder support], [auto]
dnl dnl
dnl Libmpeg2 plugin dnl Libmpeg2 plugin
dnl dnl
AC_ARG_ENABLE(libmpeg2, PKG_ENABLE_MODULES_VLC([LIBMPEG2], [libmpeg2 > 0.3.2], [libmpeg2 decoder support], [auto])
[ --enable-libmpeg2 libmpeg2 decoder support (default enabled)])
if test "${enable_libmpeg2}" != "no"
then
AC_ARG_WITH(libmpeg2-tree,
[ --with-libmpeg2-tree=PATH libmpeg2 tree for static linking])
AS_IF([test -n "${with_libmpeg2_tree}"],[
AC_MSG_CHECKING(for libmpeg2.a in ${with_libmpeg2_tree})
real_libmpeg2_tree="`cd ${with_libmpeg2_tree} 2>/dev/null && pwd`"
if test -z "${real_libmpeg2_tree}"
then
dnl The given directory can't be found
AC_MSG_RESULT(no)
AC_MSG_ERROR([cannot cd to ${with_libmpeg2_tree}])
fi
if test -f "${real_libmpeg2_tree}/libmpeg2/.libs/libmpeg2.a"
then
dnl Use a custom libmpeg2
AC_MSG_RESULT(${real_libmpeg2_tree}/libmpeg2/.libs/libmpeg2.a)
VLC_ADD_PLUGIN([libmpeg2])
VLC_ADD_LIBS([libmpeg2],[-L${real_libmpeg2_tree}/libmpeg2/.libs -lmpeg2])
VLC_ADD_CFLAGS([libmpeg2],[-I${real_libmpeg2_tree}/include])
else
dnl The given libmpeg2 wasn't built
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
],[
PKG_CHECK_MODULES(LIBMPEG2,[libmpeg2 > 0.3.2],[
VLC_ADD_PLUGIN([libmpeg2])
VLC_ADD_LIBS([libmpeg2], $LIBMPEG2_LIBS)
VLC_ADD_CFLAGS([libmpeg2], $LIBMPEG2_CFLAGS)
],
AC_MSG_WARN([Could not find libmpeg2 on your system: you may get it from http://libmpeg2.sf.net/ . Alternatively you can use --disable-libmpeg2 to disable the libmpeg2 plugin.]))
])
fi
dnl dnl
dnl Vorbis plugin dnl Vorbis plugin
...@@ -4979,19 +4902,7 @@ fi ...@@ -4979,19 +4902,7 @@ fi
dnl dnl
dnl libprojectM visualization plugin dnl libprojectM visualization plugin
dnl dnl
AC_ARG_ENABLE(projectm, PKG_ENABLE_MODULES_VLC([projectm], [libprojectM], [projectM visualization plugin], [auto])
[ --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
dnl AtmoLight (homebrew AmbiLight) dnl AtmoLight (homebrew AmbiLight)
...@@ -5010,18 +4921,7 @@ fi ...@@ -5010,18 +4921,7 @@ fi
dnl dnl
dnl Bonjour services discovery dnl Bonjour services discovery
dnl dnl
AC_ARG_ENABLE(bonjour, PKG_ENABLE_MODULES_VLC([BONJOUR], [avahi-client >= 0.6], [Bonjour services discovery], [auto])
[ --enable-bonjour Bonjour services discovery (default enabled)])
AS_IF([test "${enable_bonjour}" != "no"], [
PKG_CHECK_MODULES(BONJOUR, avahi-client >= 0.6, [
AC_DEFINE(HAVE_AVAHI_CLIENT, 1, [Define to 1 if you have libavahi-client])
VLC_ADD_LIBS([bonjour access_output_http],[$BONJOUR_LIBS])
VLC_ADD_CFLAGS([bonjour access_output_http],[$BONJOUR_CFLAGS])
VLC_ADD_PLUGIN([bonjour])
], [
AC_MSG_WARN(avahi-client library not found)
])
])
dnl dnl
dnl Lirc plugin dnl Lirc plugin
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment