Browse code

build: add --disable-autodetect switch

Clément Bœsch authored on 2017/07/28 20:44:07
Showing 2 changed files
... ...
@@ -40,6 +40,7 @@ version <next>:
40 40
   They must always be used by name.
41 41
 - FITS demuxer and decoder
42 42
 - FITS muxer and encoder
43
+- add --disable-autodetect build switch
43 44
 
44 45
 version 3.3:
45 46
 - CrystalHD decoder moved to new decode API
... ...
@@ -109,6 +109,7 @@ Configuration options:
109 109
   --enable-gray            enable full grayscale support (slower color)
110 110
   --disable-swscale-alpha  disable alpha channel support in swscale
111 111
   --disable-all            disable building components, libraries and programs
112
+  --disable-autodetect     disable automatically detected external libraries [no]
112 113
 
113 114
 Program options:
114 115
   --disable-programs       do not build command line programs
... ...
@@ -1685,6 +1686,7 @@ CONFIG_LIST="
1685 1685
     $LIBRARY_LIST
1686 1686
     $PROGRAM_LIST
1687 1687
     $SUBSYSTEM_LIST
1688
+    autodetect
1688 1689
     fontconfig
1689 1690
     memory_poisoning
1690 1691
     neon_clobber_test
... ...
@@ -3589,6 +3591,10 @@ for e in $env; do
3589 3589
     eval "export $e"
3590 3590
 done
3591 3591
 
3592
+if disabled autodetect; then
3593
+    disable_weak $EXTERNAL_AUTODETECT_LIBRARY_LIST
3594
+    disable_weak $HWACCEL_AUTODETECT_LIBRARY_LIST
3595
+fi
3592 3596
 # Mark specifically enabled, but normally autodetected libraries as requested.
3593 3597
 for lib in $AUTODETECT_LIBS; do
3594 3598
     enabled $lib && request $lib