Browse Source

Merge factorization of license check code from trunk.

Originally committed as revision 18756 to svn://svn.ffmpeg.org/ffmpeg/branches/0.5
tags/v0.5.1
Diego Biurrun 17 years ago
parent
commit
d8ef221893
1 changed files with 13 additions and 16 deletions
  1. +13
    -16
      configure

+ 13
- 16
configure View File

@@ -1682,23 +1682,20 @@ EOF
fi


if ! enabled gpl; then
die_gpl_disabled(){
name=$1
shift
enabled_any $@ && die "$name is under GPL and --enable-gpl is not specified."
}
die_gpl_disabled "The Postprocessing code" postproc
die_gpl_disabled "libx264" libx264
die_gpl_disabled "libxvidcore" libxvid
die_gpl_disabled "FAAD2" libfaad2
die_gpl_disabled "The X11 grabber" x11grab
die_gpl_disabled "The software scaler" swscale
fi
die_license_disabled() {
enabled $1 || enabled $2 && die "$2 is $1 and --enable-$1 is not specified."
}
die_license_disabled gpl libfaad2
die_license_disabled gpl libx264
die_license_disabled gpl libxvid
die_license_disabled gpl postproc
die_license_disabled gpl swscale
die_license_disabled gpl x11grab
die_license_disabled nonfree libamr_nb
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



Loading…
Cancel
Save