ia64
m68k
mips
+ mips64
parisc
ppc
+ ppc64
s390
sh4
sparc
alsa_asoundlib_h
altivec_h
arpa_inet_h
+ bigendian
bswap
closesocket
cmov
libdc1394_1
libdc1394_2
llrint
+ loongson
lrint
lrintf
lzo1x_999_compress
mkstemp
pld
posix_memalign
- ppc64
round
roundf
sdl
# decoders / encoders / hardware accelerators
aac_decoder_select="fft mdct"
-ac3_decoder_deps="gpl"
ac3_decoder_select="fft mdct"
atrac3_decoder_select="fft mdct"
cavs_decoder_select="golomb"
dca_decoder_select="fft mdct"
dnxhd_encoder_select="aandct"
dxa_decoder_select="zlib"
-eac3_decoder_deps="gpl"
eac3_decoder_select="fft mdct"
eatgq_decoder_select="aandct"
eatqi_decoder_select="aandct"
;;
mips64)
arch="mips"
+ subarch="mips64"
enable fast_64bit
;;
parisc|hppa)
;;
ppc64)
arch="ppc"
+ subarch="ppc64"
enable fast_64bit
enable fast_unaligned
;;
SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.a "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.lib'
enable dos_paths
;;
+ gnu/kfreebsd)
+ ;;
+ gnu)
+ ;;
*)
die "Unknown OS '$target_os'."
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
-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 x11grab
+
+die_license_disabled nonfree libamr_nb
+die_license_disabled nonfree libamr_wb
+die_license_disabled nonfree libfaac
-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
G5|g5|970|ppc970|PowerPC970|power4*|Power4*)
add_cflags -mcpu=970 -mpowerpc-gfxopt -mpowerpc64
warn_altivec disabled PPC970
- enable ppc64
;;
Cell|CELL|cell)
add_cflags -mcpu=cell
warn_altivec disabled Cell
- enable ppc64 ldbrx
+ enable ldbrx
;;
# targets that do NOT support conditional mov (cmov)
i[345]86|pentium|pentium-mmx|k6|k6-[23]|winchip-c6|winchip2|c3)
bf*)
add_cflags -mcpu=$cpu
;;
+ mips*|[45]k*|[237]4k*|m4k|r*000|loongson2[ef])
+ add_cflags -march=$cpu
+ ;;
*)
echo "WARNING: Unknown CPU \"$cpu\", ignored."
;;
# check for assembler specific support
+enabled mips && check_asm loongson '"dmult.g $1, $2, $3"'
+
enabled ppc && check_asm dcbzl '"dcbzl 0, 1"'
enabled ppc && check_asm ppc4xx '"maclhw r10, r11, r12"'
enabled ppc && check_asm xform_asm '"lwzx 0, %y0" :: "Z"(*(int*)0)'
echo
done
-license="LGPL"
+license="LGPL version 2.1 or later"
if enabled nonfree; then
- license="unredistributable"
+ license="nonfree and unredistributable"
elif enabled gpl; then
- license="GPL"
+ license="GPL version 2 or later"
fi
echo "License: $license"