echo " --enable-pp enable GPLed postprocessing support [default=no]"
echo " --enable-swscaler software scaler support [default=no]"
echo " --enable-sunmlib use Sun medialib [default=no]"
+ echo " --enable-beosthreads use BeOS threads [default=no]"
+ echo " --enable-os2threads use OS/2 threads [default=no]"
echo " --enable-pthreads use pthreads [default=no]"
echo " --enable-w32threads use Win32 threads [default=no]"
echo " --enable-x11grab enable X11 grabbing [default=no]"
amr_nb_fixed="no"
amr_if2="no"
mlib="no"
+beosthreads="no"
+os2threads="no"
pthreads="no"
w32threads="no"
+thread_type="no"
swscaler="no"
gpl="no"
memalign_hack="no"
dv1394="no"
# enable BeOS things
audio_beos="yes"
-beosthreads="yes"
# no need for libm, but the inet stuff
# Check for BONE
if (echo $BEINCLUDES|grep 'headers/be/bone' >/dev/null); then
ffserver="no"
vhook="no"
os2="yes"
-os2threads="yes"
;;
*)
targetos="${targetos}-UNKNOWN"
;;
--enable-w32threads) w32threads="yes"
;;
+ --enable-beosthreads) beosthreads="yes"
+ ;;
+ --enable-os2threads) os2threads="yes"
+ ;;
--enable-swscaler) swscaler="yes"
;;
--enable-gpl) gpl="yes"
cmov="no"
;;
# targets that do support conditional mov (cmov)
- i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64|k8|opteron|athlon-fx)
+ i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64|k8|opteron|athlon-fx|core2)
add_cflags "-march=$cpu"
cmov="yes"
cmov_is_fast="yes"
fi
fi
+for thread in pthreads beosthreads os2threads w32threads; do
+ if enabled $thread; then
+ if test $thread_type != "no"; then
+ die "ERROR: Only one thread type must be selected."
+ else
+ thread_type="$thread"
+ fi
+ fi
+done
+
# these are off by default, so fail if requested and not available
enabled libdts && require libdts dts.h dts_init -ldts -lm
enabled libgsm && require libgsm gsm.h gsm_create -lgsm
if test "$network" = "yes" ; then
echo "IPv6 support $ipv6"
fi
-echo "pthreads support $pthreads"
+echo "threading support $thread_type"
echo "SDL support $sdl"
if test $sdl_too_old = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have FFplay/SDL support."
# build pkg-config files
+# FIXME: libdir and includedir are hardcoded and may differ from the real path.
pkgconfig_generate(){
name=$1