aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2017-09-24 11:52:08 +0200
committerDiego Biurrun <diego@biurrun.de>2017-10-19 18:09:39 +0200
commit62be1caf161c1241a9e148f347850cfe092588dc (patch)
tree2105c8515d272f32639cc3c0bf3b7e3424d73080 /configure
parentc6496de33456f20144b994ac38f308f2de333608 (diff)
downloadffmpeg-62be1caf161c1241a9e148f347850cfe092588dc.tar.gz
configure: Bail out early if neither static nor shared libs are built
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure22
1 files changed, 11 insertions, 11 deletions
diff --git a/configure b/configure
index 706f1073ee..70463ae2c8 100755
--- a/configure
+++ b/configure
@@ -2857,6 +2857,17 @@ done
disabled logging && logfile=/dev/null
+# 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 early if licensing-related configure options are incompatible.
die_license_disabled() {
enabled $1 || { enabled $v && die "$v is $1 and --enable-$1 is not specified."; }
@@ -4184,17 +4195,6 @@ check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PI
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
enable_weak_pic() {