[vlc-devel] commit: Allow disabling libsysfs support (Alexis Ballier )
git version control
git at videolan.org
Mon Nov 17 01:21:30 CET 2008
vlc | branch: 0.9-bugfix | Alexis Ballier <aballier at gentoo.org> | Sat Nov 15 14:42:19 2008 +0100| [7eb643d6c7a51fc30bee3f2a74b212c727e977ef] | committer: Christophe Mutricy
Allow disabling libsysfs support
Add a configure switch to allow disabling libsysfs support instead of letting it check what is on the build host and enable it accordingly. The default behavior is unchanged.
Signed-off-by: Christophe Mutricy <xtophe at videolan.org>
(cherry picked from commit 31d3d2771558286943061572dd479209efd15d66)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7eb643d6c7a51fc30bee3f2a74b212c727e977ef
---
configure.ac | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 16dd492..ba772e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3281,9 +3281,14 @@ AC_CHECK_HEADERS(zlib.h, [
VLC_ADD_LIBS([mp4 skins2 sap mkv gme],[-lz])
] )
-AC_CHECK_HEADERS(sysfs/libsysfs.h, [
- VLC_ADD_LIBS([mp4 mkv],[-lsysfs])
-] )
+AC_ARG_ENABLE(libsysfs,
+ [ --enable-libsysfs Get user key from firewire connected iPod via libsysfs (default enabled)])
+
+AS_IF([test "${enable_libsysfs}" != "no"],[
+ AC_CHECK_HEADERS(sysfs/libsysfs.h, [
+ VLC_ADD_LIBS([mp4 mkv],[-lsysfs])
+ ] )
+])
dnl
dnl skins2 module
More information about the vlc-devel
mailing list