eval "export $e"
done
+if disabled autodetect; then
+
+ # Unless iconv is explicitely disabled by the user, we still want to probe
+ # for the iconv from the libc.
+ disabled iconv || enable libc_iconv
+
+ 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
+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 logging && logfile=/dev/null
-# Die early if licensing-related configure options are incompatible.
+ # we need to build at least one lib type
+ if ! enabled_any static shared; then
+ cat <<EOF
+ At least one library type must be built.
+ Specify --enable-static to build the static libraries or --enable-shared to
+ build the shared libraries as well. To only build the shared libraries specify
+ --disable-static in addition to --enable-shared.
+ EOF
+ exit 1
+ fi
+
die_license_disabled() {
enabled $1 || { enabled $v && die "$v is $1 and --enable-$1 is not specified."; }
}
set_default $PATHS_LIST
set_default nm
- # we need to build at least one lib type
- if ! enabled_any static shared; then
- cat <<EOF
- At least one library type must be built.
- Specify --enable-static to build the static libraries or --enable-shared to
- build the shared libraries as well. To only build the shared libraries specify
- --disable-static in addition to --enable-shared.
- EOF
- exit 1
- fi
-
-disabled optimizations || check_cflags -fomit-frame-pointer
+disabled optimizations || enabled ossfuzz || check_cflags -fomit-frame-pointer
enable_weak_pic() {
disabled pic && return