[vlc-devel] commit: Allow disabling libsysfs support (Alexis Ballier )
git version control
git at videolan.org
Mon Nov 17 01:19:19 CET 2008
vlc | branch: master | Alexis Ballier <aballier at gentoo.org> | Sat Nov 15 14:42:19 2008 +0100| [31d3d2771558286943061572dd479209efd15d66] | 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>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=31d3d2771558286943061572dd479209efd15d66
---
configure.ac | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 6f4c357..8b675a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3217,9 +3217,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