]> git.sesse.net Git - vlc/commitdiff
Allow disabling libsysfs support
authorAlexis Ballier <aballier@gentoo.org>
Sat, 15 Nov 2008 13:42:19 +0000 (14:42 +0100)
committerChristophe Mutricy <xtophe@videolan.org>
Sun, 16 Nov 2008 22:04:43 +0000 (22:04 +0000)
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@videolan.org>
configure.ac

index 6f4c35746ee65a64dc9a208aff1b71f8c8008ae1..8b675a611dbe5f950ab01703d4587f2217a58f2e 100644 (file)
@@ -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