diff --git a/configure b/configure index bd2c63a52f..261551b039 100755 --- a/configure +++ b/configure @@ -225,6 +225,10 @@ enabled(){ eval test "x\$$1" = "xyes" } +disabled(){ + eval test "x\$$1" = "xno" +} + enabled_all(){ for opt; do enabled $opt || return 1 @@ -1193,7 +1197,7 @@ ranlib="${cross_prefix}${ranlib}" strip="${cross_prefix}${strip}" # we need to build at least one lib type -if test "$lstatic" = "no" && test "$lshared" = "no" ; then +if disabled lstatic && disabled lshared; then cat < int main(int argc, char ** argv){ @@ -1916,7 +1920,7 @@ echo "AMR-NB float support $amr_nb" echo "AMR-NB fixed support $amr_nb_fixed" echo "AMR-WB float support $amr_wb" echo "AMR-WB IF2 support $amr_if2" -if test "$gpl" = "no" ; then +if disabled gpl; then echo "License: LGPL" else echo "License: GPL"