]> git.sesse.net Git - ffmpeg/commitdiff
build: add --disable-autodetect switch
authorClément Bœsch <cboesch@gopro.com>
Fri, 28 Jul 2017 11:44:07 +0000 (13:44 +0200)
committerClément Bœsch <u@pkh.me>
Sat, 2 Sep 2017 14:14:15 +0000 (16:14 +0200)
Changelog
configure

index 830941757e61af9c7d32d18d80e9f62811f5850c..ccbcdf6328f85f3e342aa88333d2cad659a9ade8 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -40,6 +40,7 @@ version <next>:
   They must always be used by name.
 - FITS demuxer and decoder
 - FITS muxer and encoder
+- add --disable-autodetect build switch
 
 version 3.3:
 - CrystalHD decoder moved to new decode API
index fea9f956b8c41e204bed03d3047ec334504ae9b6..f29fe1145c020a5268576817096310cc13f2173f 100755 (executable)
--- a/configure
+++ b/configure
@@ -109,6 +109,7 @@ Configuration options:
   --enable-gray            enable full grayscale support (slower color)
   --disable-swscale-alpha  disable alpha channel support in swscale
   --disable-all            disable building components, libraries and programs
+  --disable-autodetect     disable automatically detected external libraries [no]
 
 Program options:
   --disable-programs       do not build command line programs
@@ -1685,6 +1686,7 @@ CONFIG_LIST="
     $LIBRARY_LIST
     $PROGRAM_LIST
     $SUBSYSTEM_LIST
+    autodetect
     fontconfig
     memory_poisoning
     neon_clobber_test
@@ -3589,6 +3591,10 @@ for e in $env; do
     eval "export $e"
 done
 
+if disabled autodetect; then
+    disable_weak $EXTERNAL_AUTODETECT_LIBRARY_LIST
+    disable_weak $HWACCEL_AUTODETECT_LIBRARY_LIST
+fi
 # Mark specifically enabled, but normally autodetected libraries as requested.
 for lib in $AUTODETECT_LIBS; do
     enabled $lib && request $lib