Commit 8ab40726 authored by diego's avatar diego

Factorize GPL and nonfree license checks into a common function.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18714 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1ac68a16
...@@ -1736,22 +1736,19 @@ EOF ...@@ -1736,22 +1736,19 @@ EOF
fi fi
if ! enabled gpl; then die_license_disabled() {
die_gpl_disabled(){ enabled $1 || enabled $2 && die "$2 is $1 and --enable-$1 is not specified."
name=$1 }
shift
enabled_any $@ && die "$name is under GPL and --enable-gpl is not specified." die_license_disabled gpl libfaad2
} die_license_disabled gpl libx264
die_gpl_disabled "The Postprocessing code" postproc die_license_disabled gpl libxvid
die_gpl_disabled "libx264" libx264 die_license_disabled gpl postproc
die_gpl_disabled "libxvidcore" libxvid die_license_disabled gpl x11grab
die_gpl_disabled "FAAD2" libfaad2
die_gpl_disabled "The X11 grabber" x11grab die_license_disabled nonfree libamr_nb
fi die_license_disabled nonfree libamr_wb
if ! enabled nonfree && enabled_any libamr_nb libamr_wb; then
die "libamr is nonfree and --enable-nonfree is not specified."
fi
check_deps $ARCH_EXT_LIST check_deps $ARCH_EXT_LIST
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment