From: Ramiro Polla Date: Sun, 28 Jan 2007 16:04:55 +0000 (+0000) Subject: Add disabled() function and make use of it. X-Git-Tag: v0.5~10320 X-Git-Url: https://git.libav.org/?p=libav.git;a=commitdiff_plain;h=37970ebfbf6162bc88f55778dc916ce5b62d4876;hp=d7973906ded1f469dd74f6b4d22c38b1f6de26bc Add disabled() function and make use of it. patch by Ramiro Polla, ramiro lisha.ufsc br Originally committed as revision 7740 to svn://svn.ffmpeg.org/ffmpeg/trunk --- 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"