[FFmpeg-devel] [PATCH 8/8] build: add --disable-autodetect switch

Clément Bœsch u at pkh.me
Fri Jul 28 14:51:45 EEST 2017


From: Clément Bœsch <cboesch at gopro.com>

---
 Changelog | 1 +
 configure | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Changelog b/Changelog
index 187ae7950a..50409118e6 100644
--- a/Changelog
+++ b/Changelog
@@ -29,6 +29,7 @@ version <next>:
 - limiter video filter
 - libvmaf video filter
 - Dolby E decoder and SMPTE 337M demuxer
+- add --disable-autodetect build switch
 
 version 3.3:
 - CrystalHD decoder moved to new decode API
diff --git a/configure b/configure
index fa1b1d334a..ece4a3ab40 100755
--- 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
@@ -1683,6 +1684,7 @@ CONFIG_LIST="
     $LIBRARY_LIST
     $PROGRAM_LIST
     $SUBSYSTEM_LIST
+    autodetect
     fontconfig
     memory_poisoning
     neon_clobber_test
@@ -3584,8 +3586,8 @@ for lib in $AUTODETECT_LIBS; do
     enabled $lib && request $lib
 done
 #TODO: switch to $AUTODETECT_LIBS when $THREADS_LIST is supported the same way
-enable_weak $EXTERNAL_AUTODETECT_LIBRARY_LIST
-enable_weak $HWACCEL_AUTODETECT_LIBRARY_LIST
+! disabled autodetect && enable_weak $EXTERNAL_AUTODETECT_LIBRARY_LIST
+! disabled autodetect && enable_weak $HWACCEL_AUTODETECT_LIBRARY_LIST
 
 disabled logging && logfile=/dev/null
 
-- 
2.13.3



More information about the ffmpeg-devel mailing list