summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure438
1 files changed, 223 insertions, 215 deletions
diff --git a/configure b/configure
index 3b171e9134..23ce95980d 100755
--- a/configure
+++ b/configure
@@ -61,13 +61,13 @@ compile_check() {
echo >> "$TMPLOG"
cat "$1" >> "$TMPLOG"
echo >> "$TMPLOG"
- echo "$_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra $_libs_mplayer $_libs_mencoder -o $TMPEXE $@" >> "$TMPLOG"
+ echo "$_cc $CFLAGS $extra_cflags $_ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o $TMPEXE $@" >> "$TMPLOG"
rm -f "$TMPEXE"
- $_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra $_libs_mplayer $_libs_mencoder -o "$TMPEXE" "$@" >> "$TMPLOG" 2>&1
- TMP="$?"
+ $_cc $CFLAGS $extra_cflags $_ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o "$TMPEXE" "$@" >> "$TMPLOG" 2>&1
+ TMPRES="$?"
echo >> "$TMPLOG"
echo >> "$TMPLOG"
- return "$TMP"
+ return "$TMPRES"
}
cc_check() {
@@ -85,10 +85,10 @@ yasm_check() {
echo "$_yasm $YASMFLAGS -o $TMPEXE $TMPS $@" >> "$TMPLOG"
rm -f "$TMPEXE"
$_yasm $YASMFLAGS -o "$TMPEXE" "$TMPS" "$@" >> "$TMPLOG" 2>&1
- TMP="$?"
+ TMPRES="$?"
echo >> "$TMPLOG"
echo >> "$TMPLOG"
- return "$TMP"
+ return "$TMPRES"
}
tmp_run() {
@@ -464,13 +464,12 @@ Advanced options:
--enable-crash-debug enable automatic gdb attach on crash [disable]
--enable-dynamic-plugins enable dynamic A/V plugins [disable]
-Use these options if autodetection fails (Options marked with (*) accept
-multiple paths separated by ':'):
+Use these options if autodetection fails:
+ --extra-cflags=FLAGS extra CFLAGS
+ --extra-ldflags=FLAGS extra LDFLAGS
--extra-libs=FLAGS extra linker flags
--extra-libs-mplayer=FLAGS extra linker flags for MPlayer
--extra-libs-mencoder=FLAGS extra linker flags for MEncoder
- --with-extraincdir=DIR extra header search paths in DIR (*)
- --with-extralibdir=DIR extra linker search paths in DIR (*)
--with-xvmclib=NAME adapter-specific library name (e.g. XvMCNVIDIA)
--with-freetype-config=PATH path to freetype-config
@@ -765,12 +764,6 @@ for ac_option do
--realcodecsdir=*)
_realcodecsdir=`echo $ac_option | cut -d '=' -f 2`
;;
- --with-extraincdir=*)
- _inc_extra=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'`
- ;;
- --with-extralibdir=*)
- _ld_extra=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'`
- ;;
--with-install=*)
_install=`echo $ac_option | cut -d '=' -f 2 `
@@ -801,14 +794,20 @@ for ac_option do
_dvdreadconfig=`echo $ac_option | cut -d '=' -f 2`
;;
+ --extra-cflags=*)
+ extra_cflags=`echo $ac_option | cut -d '=' -f 2`
+ ;;
+ --extra-ldflags=*)
+ extra_ldflags=`echo $ac_option | cut -d '=' -f 2`
+ ;;
--extra-libs=*)
- _extra_libs=`echo $ac_option | cut -d '=' -f 2`
+ extra_libs=`echo $ac_option | cut -d '=' -f 2`
;;
--extra-libs-mplayer=*)
- _libs_mplayer=`echo $ac_option | cut -d '=' -f 2`
+ libs_mplayer=`echo $ac_option | cut -d '=' -f 2`
;;
--extra-libs-mencoder=*)
- _libs_mencoder=`echo $ac_option | cut -d '=' -f 2`
+ libs_mencoder=`echo $ac_option | cut -d '=' -f 2`
;;
--target=*)
@@ -1417,27 +1416,27 @@ if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then
fi
-_inc_extra="-I. $_inc_extra"
+extra_cflags="-I. $extra_cflags"
_timer=timer-linux.c
_getch=getch2.c
if freebsd ; then
- _ld_extra="$_ld_extra -L/usr/local/lib"
- _inc_extra="$_inc_extra -I/usr/local/include"
+ extra_ldflags="$extra_ldflags -L/usr/local/lib"
+ extra_cflags="$extra_cflags -I/usr/local/include"
fi
if netbsd || dragonfly ; then
- _ld_extra="$_ld_extra -L/usr/pkg/lib"
- _inc_extra="$_inc_extra -I/usr/pkg/include"
+ extra_ldflags="$extra_ldflags -L/usr/pkg/lib"
+ extra_cflags="$extra_cflags -I/usr/pkg/include"
fi
if darwin; then
- _ld_extra="$_ld_extra -L/usr/local/lib"
- _inc_extra="$_inc_extra -I/usr/local/include"
+ extra_ldflags="$extra_ldflags -L/usr/local/lib"
+ extra_cflags="$extra_cflags -I/usr/local/include"
_timer=timer-darwin.c
fi
if aix ; then
- _ld_extra="$_ld_extra -lC"
+ extra_ldflags="$extra_ldflags -lC"
fi
if irix ; then
@@ -1449,7 +1448,7 @@ fi
if win32 ; then
_exesuf=".exe"
# -lwinmm is always needed for osdep/timer-win2.c
- _ld_extra="$_ld_extra -lwinmm"
+ extra_ldflags="$extra_ldflags -lwinmm"
_pe_executable=yes
_timer=timer-win2.c
_priority=yes
@@ -1470,7 +1469,7 @@ if amigaos ; then
fi
if qnx ; then
- _ld_extra="$_ld_extra -lph"
+ extra_ldflags="$extra_ldflags -lph"
fi
if os2 ; then
@@ -1528,7 +1527,7 @@ if test "`basename $_cc`" = "icc" || test "`basename $_cc`" = "ecc"; then
cc_version="v. ?.??, bad"
cc_fail=yes
;;
- 10.1|11.0)
+ 10.1|11.0|11.1)
cc_version="$cc_version, ok"
;;
*)
@@ -1712,6 +1711,7 @@ fi
def_fast_64bit='#define HAVE_FAST_64BIT 0'
+def_fast_unaligned='#define HAVE_FAST_UNALIGNED 0'
_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM AVR32 SH4 PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX BFIN XTENSA GENERIC'
case "$host_arch" in
i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
@@ -2412,19 +2412,19 @@ elif test -z "$CFLAGS" ; then
CFLAGS="-O2 $_march $_mcpu $_pipe"
else
CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
- _ld_extra="$_ld_extra -ffast-math"
+ extra_ldflags="$extra_ldflags -ffast-math"
fi
else
_warn_CFLAGS=yes
fi
if test -n "$LDFLAGS" ; then
- _ld_extra="$_ld_extra $LDFLAGS"
+ extra_ldflags="$extra_ldflags $LDFLAGS"
_warn_CFLAGS=yes
elif test "$cc_vendor" = "intel" ; then
- _ld_extra="$_ld_extra -i-static"
+ extra_ldflags="$extra_ldflags -i-static"
fi
if test -n "$CPPFLAGS" ; then
- _inc_extra="$_inc_extra $CPPFLAGS"
+ extra_cflags="$extra_cflags $CPPFLAGS"
_warn_CFLAGS=yes
fi
@@ -2725,7 +2725,7 @@ cat > $TMPC <<EOF
int main(void) { return 0; }
EOF
if cc_check -lposix ; then
- _ld_extra="$_ld_extra -lposix"
+ extra_ldflags="$extra_ldflags -lposix"
echores "yes"
else
echores "no"
@@ -2865,7 +2865,7 @@ _kstat=no
cc_check -lkstat && _kstat=yes
if test "$_kstat" = yes ; then
def_kstat="#define HAVE_LIBKSTAT 1"
- _ld_extra="$_ld_extra -lkstat"
+ extra_ldflags="$extra_ldflags -lkstat"
else
def_kstat="#undef HAVE_LIBKSTAT"
fi
@@ -2881,7 +2881,7 @@ EOF
_posix4=no
cc_check -lposix4 && _posix4=yes
if test "$_posix4" = yes ; then
- _ld_extra="$_ld_extra -lposix4"
+ extra_ldflags="$extra_ldflags -lposix4"
fi
echores "$_posix4"
@@ -3052,7 +3052,7 @@ test $_winsock2_h = no && test $inet_pton = no &&
test $inet_aton = no && _network=no
if test "$_network" = yes ; then
def_network='#define CONFIG_NETWORK 1'
- _ld_extra="$_ld_extra $_ld_sock"
+ extra_ldflags="$extra_ldflags $_ld_sock"
_inputmodules="network $_inputmodules"
else
_noinputmodules="network $_noinputmodules"
@@ -3286,7 +3286,7 @@ fi
echores "$_dynamic_plugins"
-def_threads='#undef HAVE_THREADS'
+def_threads='#define HAVE_THREADS 0'
echocheck "pthread"
if test "$_pthreads" = auto ; then
@@ -3339,10 +3339,10 @@ echores "$_w32threads"
echocheck "rpath"
netbsd &&_rpath=yes
if test "$_rpath" = yes ; then
- for I in `echo $_ld_extra | sed 's/-L//g'` ; do
+ for I in `echo $extra_ldflags | sed 's/-L//g'` ; do
tmp="$tmp ` echo $I | sed 's/.*/ -L& -Wl,-R&/'`"
done
-_ld_extra=$tmp
+extra_ldflags=$tmp
fi
echores "$_rpath"
@@ -3382,7 +3382,7 @@ int main(void) {
EOF
_iconv=no
for _ld_tmp in "" "-liconv" "-liconv $_ld_dl" ; do
- cc_check $_ld_lm $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" && \
+ cc_check $_ld_lm $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" && \
_iconv=yes && break
done
fi
@@ -3543,7 +3543,7 @@ int main(void) { tgetent(NULL, NULL); return 0; }
EOF
_termcap=no
for _ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do
- cc_check $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \
+ cc_check $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" \
&& _termcap=yes && break
done
fi
@@ -3794,7 +3794,7 @@ if test "$_macosx" = yes ; then
int main(void) { return 0; }
EOF
if cc_check -framework CoreAudio; then
- _ld_extra="$_ld_extra -framework CoreAudio -framework AudioUnit -framework AudioToolbox"
+ extra_ldflags="$extra_ldflags -framework CoreAudio -framework AudioUnit -framework AudioToolbox"
_coreaudio=yes
def_coreaudio='#define CONFIG_COREAUDIO 1'
_aomodules="macosx $_aomodules"
@@ -3814,7 +3814,7 @@ int main(void) {
}
EOF
if cc_check -framework Carbon -framework QuickTime; then
- _ld_extra="$_ld_extra -framework Carbon -framework QuickTime"
+ extra_ldflags="$extra_ldflags -framework Carbon -framework QuickTime"
_quartz=yes
def_quartz='#define CONFIG_QUARTZ 1'
_vomodules="quartz $_vomodules"
@@ -3832,7 +3832,7 @@ int main(void) { return 0; }
EOF
if cc_check -framework Carbon -framework QuartzCore -framework OpenGL; then
_vomodules="macosx $_vomodules"
- _ld_extra="$_ld_extra -framework Cocoa -framework QuartzCore -framework OpenGL"
+ extra_ldflags="$extra_ldflags -framework Cocoa -framework QuartzCore -framework OpenGL"
def_corevideo='#define CONFIG_COREVIDEO 1'
_corevideo=yes
else
@@ -3899,7 +3899,7 @@ EOF
fi
if test "$_apple_remote" = yes ; then
def_apple_remote='#define CONFIG_APPLE_REMOTE 1'
- _ld_extra="$_ld_extra -framework IOKit"
+ extra_ldflags="$extra_ldflags -framework IOKit"
else
def_apple_remote='#undef CONFIG_APPLE_REMOTE'
fi
@@ -3946,7 +3946,7 @@ fi
echocheck "Samba support (libsmbclient)"
if test "$_smb" = yes; then
- _ld_extra="$_ld_extra -lsmbclient"
+ extra_ldflags="$extra_ldflags -lsmbclient"
fi
if test "$_smb" = auto; then
_smb=no
@@ -3955,7 +3955,7 @@ if test "$_smb" = auto; then
int main(void) { smbc_opendir("smb://"); return 0; }
EOF
for _ld_tmp in "-lsmbclient" "-lsmbclient $_ld_dl" "-lsmbclient $_ld_dl -lnsl" "-lsmbclient $_ld_dl -lssl -lnsl" ; do
- cc_check $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" && \
+ cc_check $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" && \
_smb=yes && break
done
fi
@@ -4095,7 +4095,7 @@ EOF
for _inc_tmp in "" -I/usr/local/include/directfb \
-I/usr/include/directfb -I/usr/local/include; do
cc_check $_inc_tmp -ldirectfb && _directfb=yes && \
- _inc_extra="$_inc_extra $_inc_tmp" && break
+ extra_cflags="$extra_cflags $_inc_tmp" && break
done
fi
@@ -4110,7 +4110,7 @@ int
dfb_ver = DIRECTFB_MAJOR_VERSION.DIRECTFB_MINOR_VERSION.DIRECTFB_MICRO_VERSION
;
EOF
- if $_cc -E $TMPC $_inc_extra > "$TMPEXE"; then
+ if $_cc -E $TMPC $extra_cflags > "$TMPEXE"; then
_directfb_version=`sed -n 's/^dfb_ver[^0-9]*\(.*\)/\1/p' "$TMPEXE" | tr -d '()'`
_dfb_major=`echo $_directfb_version | cut -d . -f 1`
_dfb_minor=`echo $_directfb_version | cut -d . -f 2`
@@ -4135,7 +4135,7 @@ echores "$_directfb"
if test "$_directfb" = yes ; then
def_directfb='#define CONFIG_DIRECTFB 1'
_vomodules="directfb $_vomodules"
- _libs_mplayer="$_libs_mplayer -ldirectfb"
+ libs_mplayer="$libs_mplayer -ldirectfb"
else
def_directfb='#undef CONFIG_DIRECTFB'
_novomodules="directfb $_novomodules"
@@ -4152,7 +4152,7 @@ fi
echocheck "X11 headers presence"
_x11_headers="no"
_res_comment="check if the dev(el) packages are installed"
- for I in `echo $_inc_extra | sed s/-I//g` /usr/include ; do
+ for I in `echo $extra_cflags | sed s/-I//g` /usr/include ; do
if test -f "$I/X11/Xlib.h" ; then
_x11_headers="yes"
_res_comment=""
@@ -4163,7 +4163,7 @@ echocheck "X11 headers presence"
for I in /usr/X11/include /usr/X11R7/include /usr/X11R6/include \
/usr/include/X11R6 /usr/openwin/include ; do
if test -f "$I/X11/Xlib.h" ; then
- _inc_extra="$_inc_extra -I$I"
+ extra_cflags="$extra_cflags -I$I"
_x11_headers="yes"
_res_comment="using $I"
break
@@ -4188,7 +4188,7 @@ EOF
else
_ld_tmp="$I -lXext -lX11 $_ld_pthread"
fi
- cc_check $_ld_tmp && _libs_mplayer="$_libs_mplayer $_ld_tmp" \
+ cc_check $_ld_tmp && libs_mplayer="$libs_mplayer $_ld_tmp" \
&& _x11=yes && break
done
fi
@@ -4217,7 +4217,7 @@ EOF
fi
if test "$_xss" = yes ; then
def_xss='#define CONFIG_XSS 1'
- _libs_mplayer="$_libs_mplayer -lXss"
+ libs_mplayer="$libs_mplayer -lXss"
else
def_xss='#undef CONFIG_XSS'
fi
@@ -4249,7 +4249,7 @@ if test "$_xdpms4" = yes ; then
echores "yes"
elif test "$_xdpms3" = yes ; then
def_xdpms='#define CONFIG_XDPMS 1'
- _libs_mplayer="$_libs_mplayer -lXdpms"
+ libs_mplayer="$libs_mplayer -lXdpms"
_res_comment="using Xdpms 3"
echores "yes"
else
@@ -4274,7 +4274,7 @@ fi
if test "$_xv" = yes ; then
def_xv='#define CONFIG_XV 1'
- _libs_mplayer="$_libs_mplayer -lXv"
+ libs_mplayer="$libs_mplayer -lXv"
_vomodules="xv $_vomodules"
else
def_xv='#undef CONFIG_XV'
@@ -4301,7 +4301,7 @@ EOF
fi
if test "$_xvmc" = yes ; then
def_xvmc='#define CONFIG_XVMC 1'
- _libs_mplayer="$_libs_mplayer -lXvMC -l$_xvmclib"
+ libs_mplayer="$libs_mplayer -lXvMC -l$_xvmclib"
_vomodules="xvmc $_vomodules"
_res_comment="using $_xvmclib"
else
@@ -4318,7 +4318,7 @@ if test "$_vdpau" = auto ; then
if test "$_dl" = yes ; then
cat > $TMPC <<EOF
#include <vdpau/vdpau_x11.h>
-int main(void) {return 0;}
+int main(void) {return VDP_VIDEO_MIXER_ATTRIBUTE_SKIP_CHROMA_DEINTERLACE;}
EOF
cc_check && _vdpau=yes
fi
@@ -4347,7 +4347,7 @@ fi
if test "$_xinerama" = yes ; then
def_xinerama='#define CONFIG_XINERAMA 1'
- _libs_mplayer="$_libs_mplayer -lXinerama"
+ libs_mplayer="$libs_mplayer -lXinerama"
else
def_xinerama='#undef CONFIG_XINERAMA'
fi
@@ -4371,7 +4371,7 @@ EOF
fi
if test "$_vm" = yes ; then
def_vm='#define CONFIG_XF86VM 1'
- _libs_mplayer="$_libs_mplayer -lXxf86vm"
+ libs_mplayer="$libs_mplayer -lXxf86vm"
else
def_vm='#undef CONFIG_XF86VM'
fi
@@ -4433,7 +4433,7 @@ elif test "$_dga2" = yes ; then
fi
if test "$_dga" = yes ; then
def_dga='#define CONFIG_DGA 1'
- _libs_mplayer="$_libs_mplayer -lXxf86dga"
+ libs_mplayer="$libs_mplayer -lXxf86dga"
_vomodules="dga $_vomodules"
else
_novomodules="dga $_novomodules"
@@ -4478,14 +4478,14 @@ EOF
_gl=no
if cc_check -lGL $_ld_lm ; then
_gl=yes
- _libs_mplayer="$_libs_mplayer -lGL $_ld_dl"
+ libs_mplayer="$libs_mplayer -lGL $_ld_dl"
elif cc_check -lGL $_ld_lm $_ld_pthread ; then
_gl=yes
- _libs_mplayer="$_libs_mplayer -lGL $_ld_pthread $_ld_dl"
+ libs_mplayer="$libs_mplayer -lGL $_ld_pthread $_ld_dl"
elif cc_check -DGL_WIN32 -lopengl32 ; then
_gl=yes
_gl_win32=yes
- _libs_mplayer="$_libs_mplayer -lopengl32 -lgdi32"
+ libs_mplayer="$libs_mplayer -lopengl32 -lgdi32"
fi
else
_gl=no
@@ -4584,7 +4584,7 @@ fi
if test "$_vidix" = yes && win32; then
winvidix=yes
_vomodules="winvidix $_vomodules"
- _libs_mplayer="$_libs_mplayer -lgdi32"
+ libs_mplayer="$libs_mplayer -lgdi32"
else
_novomodules="winvidix $_novomodules"
fi
@@ -4636,7 +4636,7 @@ EOF
fi
if test "$_ggi" = yes ; then
def_ggi='#define CONFIG_GGI 1'
- _libs_mplayer="$_libs_mplayer -lggi"
+ libs_mplayer="$libs_mplayer -lggi"
_vomodules="ggi $_vomodules"
else
def_ggi='#undef CONFIG_GGI'
@@ -4658,7 +4658,7 @@ fi
# like --disable-ggi --enable-ggiwmh
if test "$_ggi" = yes && test "$_ggiwmh" = yes ; then
def_ggiwmh='#define CONFIG_GGIWMH 1'
- _libs_mplayer="$_libs_mplayer -lggiwmh"
+ libs_mplayer="$libs_mplayer -lggiwmh"
else
_ggiwmh=no
def_ggiwmh='#undef CONFIG_GGIWMH'
@@ -4683,13 +4683,13 @@ return 0; }
EOF
_aa=no
for _ld_tmp in "-laa" ; do
- cc_check $_ld_tmp && _libs_mplayer="$_libs_mplayer $_ld_tmp" && _aa=yes && break
+ cc_check $_ld_tmp && libs_mplayer="$libs_mplayer $_ld_tmp" && _aa=yes && break
done
fi
if test "$_aa" = yes ; then
def_aa='#define CONFIG_AA 1'
if cygwin ; then
- _libs_mplayer="$_libs_mplayer `aalib-config --libs | cut -d " " -f 2,5,6`"
+ libs_mplayer="$libs_mplayer `aalib-config --libs | cut -d " " -f 2,5,6`"
fi
_vomodules="aa $_vomodules"
else
@@ -4715,8 +4715,8 @@ EOF
fi
if test "$_caca" = yes ; then
def_caca='#define CONFIG_CACA 1'
- _inc_extra="$_inc_extra `caca-config --cflags`"
- _libs_mplayer="$_libs_mplayer `caca-config --libs`"
+ extra_cflags="$extra_cflags `caca-config --cflags`"
+ libs_mplayer="$libs_mplayer `caca-config --libs`"
_vomodules="caca $_vomodules"
else
def_caca='#undef CONFIG_CACA'
@@ -4736,7 +4736,7 @@ EOF
fi
if test "$_svga" = yes ; then
def_svga='#define CONFIG_SVGALIB 1'
- _libs_mplayer="$_libs_mplayer -lvga"
+ libs_mplayer="$libs_mplayer -lvga"
_vomodules="svga $_vomodules"
else
def_svga='#undef CONFIG_SVGALIB'
@@ -4779,7 +4779,7 @@ int main(void) {return 0;}
EOF
for _inc_tmp in "" "-I/usr/src/DVB/ost/include" ; do
cc_check $_inc_tmp && _dvb=yes && \
- _inc_extra="$_inc_extra $_inc_tmp" && break
+ extra_cflags="$extra_cflags $_inc_tmp" && break
done
fi
echores "$_dvb"
@@ -4808,7 +4808,7 @@ int main(void) {return 0;}
EOF
for _inc_tmp in "" "-I/usr/src/DVB/include" ; do
cc_check $_inc_tmp && _dvbhead=yes && \
- _inc_extra="$_inc_extra $_inc_tmp" && break
+ extra_cflags="$extra_cflags $_inc_tmp" && break
done
fi
echores "$_dvbhead"
@@ -4868,7 +4868,7 @@ fi
echores "$_png"
if test "$_png" = yes ; then
def_png='#define CONFIG_PNG 1'
- _ld_extra="$_ld_extra -lpng -lz"
+ extra_ldflags="$extra_ldflags -lpng -lz"
_vomodules="png $_vomodules"
else
def_png='#undef CONFIG_PNG'
@@ -4892,7 +4892,7 @@ fi
echores "$_mng"
if test "$_mng" = yes ; then
def_mng='#define CONFIG_MNG 1'
- _ld_extra="$_ld_extra -lmng -lz"
+ extra_ldflags="$extra_ldflags -lmng -lz"
else
def_mng='#undef CONFIG_MNG'
fi
@@ -4919,7 +4919,7 @@ echores "$_jpeg"
if test "$_jpeg" = yes ; then
def_jpeg='#define CONFIG_JPEG 1'
_vomodules="jpeg $_vomodules"
- _ld_extra="$_ld_extra -ljpeg"
+ extra_ldflags="$extra_ldflags -ljpeg"
else
def_jpeg='#undef CONFIG_JPEG'
_novomodules="jpeg $_novomodules"
@@ -4979,7 +4979,7 @@ if test "$_gif" = yes ; then
_vomodules="gif89a $_vomodules"
_res_comment="old version, some encoding functions disabled"
def_gif_4='#undef CONFIG_GIF_4'
- _ld_extra="$_ld_extra $_ld_gif"
+ extra_ldflags="$extra_ldflags $_ld_gif"
cat > $TMPC << EOF
#include <signal.h>
@@ -5038,7 +5038,7 @@ EOF
fi
if test "$_vesa" = yes ; then
def_vesa='#define CONFIG_VESA 1'
- _libs_mplayer="$_libs_mplayer -lvbe -llrmi"
+ libs_mplayer="$libs_mplayer -lvbe -llrmi"
_vomodules="vesa $_vomodules"
else
def_vesa='#undef CONFIG_VESA'
@@ -5087,14 +5087,14 @@ fi
if test "$_sdl" = yes ; then
def_sdl='#define CONFIG_SDL 1'
if cygwin ; then
- _libs_mplayer="$_libs_mplayer `$_sdlconfig --libs | cut -d " " -f 1,4,6 | sed s/no-cygwin/cygwin/`"
- _inc_extra="$_inc_extra `$_sdlconfig --cflags | cut -d " " -f 1,5,6 | sed s/no-cygwin/cygwin/`"
+ libs_mplayer="$libs_mplayer `$_sdlconfig --libs | cut -d " " -f 1,4,6 | sed s/no-cygwin/cygwin/`"
+ extra_cflags="$extra_cflags `$_sdlconfig --cflags | cut -d " " -f 1,5,6 | sed s/no-cygwin/cygwin/`"
elif mingw32 ; then
- _libs_mplayer="$_libs_mplayer `$_sdlconfig --libs | sed -e s/-mwindows// -e s/-lmingw32//`"
- _inc_extra="$_inc_extra `$_sdlconfig --cflags | sed s/-Dmain=SDL_main//`"
+ libs_mplayer="$libs_mplayer `$_sdlconfig --libs | sed -e s/-mwindows// -e s/-lmingw32//`"
+ extra_cflags="$extra_cflags `$_sdlconfig --cflags | sed s/-Dmain=SDL_main//`"
else
- _libs_mplayer="$_libs_mplayer `$_sdlconfig --libs`"
- _inc_extra="$_inc_extra `$_sdlconfig --cflags | sed s/-D_GNU_SOURCE=1//`"
+ libs_mplayer="$libs_mplayer `$_sdlconfig --libs`"
+ extra_cflags="$extra_cflags `$_sdlconfig --cflags | sed s/-D_GNU_SOURCE=1//`"
fi
_vomodules="sdl $_vomodules"
_aomodules="sdl $_aomodules"
@@ -5120,7 +5120,7 @@ EOF
fi
if test "$_kva" = yes ; then
def_kva='#define CONFIG_KVA 1'
- _libs_mplayer="$_libs_mplayer -lkva"
+ libs_mplayer="$libs_mplayer -lkva"
_vomodules="kva $_vomodules"
else
def_kva='#undef CONFIG_KVA'
@@ -5144,7 +5144,7 @@ EOF
fi
if test "$_win32waveout" = yes ; then
def_win32waveout='#define CONFIG_WIN32WAVEOUT 1'
- _libs_mplayer="$_libs_mplayer -lwinmm"
+ libs_mplayer="$libs_mplayer -lwinmm"
_aomodules="win32 $_aomodules"
else
def_win32waveout='#undef CONFIG_WIN32WAVEOUT'
@@ -5164,7 +5164,7 @@ EOF
fi
if test "$_direct3d" = yes ; then
def_direct3d='#define CONFIG_DIRECT3D 1'
- _libs_mplayer="$_libs_mplayer -ld3d9"
+ libs_mplayer="$libs_mplayer -ld3d9"
_vomodules="direct3d $_vomodules"
else
def_direct3d='#undef CONFIG_DIRECT3D'
@@ -5185,7 +5185,7 @@ EOF
fi
if test "$_directx" = yes ; then
def_directx='#define CONFIG_DIRECTX 1'
- _libs_mplayer="$_libs_mplayer -lgdi32"
+ libs_mplayer="$libs_mplayer -lgdi32"
_vomodules="directx $_vomodules"
_aomodules="dsound $_aomodules"
else
@@ -5207,7 +5207,7 @@ int main(void) { return 0; }
EOF
for _inc_tmp in "" -I/usr/local/include/dxr2 -I/usr/include/dxr2; do
cc_check $_inc_tmp && _dxr2=yes && \
- _inc_extra="$_inc_extra $_inc_tmp" && break
+ extra_cflags="$extra_cflags $_inc_tmp" && break
done
fi
if test "$_dxr2" = yes; then
@@ -5342,7 +5342,7 @@ EOF
def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"'
elif netbsd || openbsd ; then
def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound"'
- _ld_extra="$_ld_extra -lossaudio"
+ extra_ldflags="$extra_ldflags -lossaudio"
else
def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"'
fi
@@ -5374,8 +5374,8 @@ fi
if test "$_arts" = yes ; then
def_arts='#define CONFIG_ARTS 1'
_aomodules="arts $_aomodules"
- _libs_mplayer="$_libs_mplayer `artsc-config --libs`"
- _inc_extra="$_inc_extra `artsc-config --cflags`"
+ libs_mplayer="$libs_mplayer `artsc-config --libs`"
+ extra_cflags="$extra_cflags `artsc-config --cflags`"
else
_noaomodules="arts $_noaomodules"
fi
@@ -5400,8 +5400,8 @@ echores "$_esd"
if test "$_esd" = yes ; then
def_esd='#define CONFIG_ESD 1'
_aomodules="esd $_aomodules"
- _libs_mplayer="$_libs_mplayer `esd-config --libs`"
- _inc_extra="$_inc_extra `esd-config --cflags`"
+ libs_mplayer="$libs_mplayer `esd-config --libs`"
+ extra_cflags="$extra_cflags `esd-config --cflags`"
echocheck "esd_get_latency()"
cat > $TMPC << EOF
@@ -5428,7 +5428,7 @@ EOF
fi
if test "$_nas" = yes ; then
def_nas='#define CONFIG_NAS 1'
- _libs_mplayer="$_libs_mplayer -laudio -lXt"
+ libs_mplayer="$libs_mplayer -laudio -lXt"
_aomodules="nas $_aomodules"
else
_noaomodules="nas $_noaomodules"
@@ -5455,8 +5455,8 @@ echores "$_pulse"
if test "$_pulse" = yes ; then
def_pulse='#define CONFIG_PULSE 1'
_aomodules="pulse $_aomodules"
- _libs_mplayer="$_libs_mplayer `$_pkg_config --libs libpulse`"
- _inc_extra="$_inc_extra `$_pkg_config --cflags libpulse`"
+ libs_mplayer="$libs_mplayer `$_pkg_config --libs libpulse`"
+ extra_cflags="$extra_cflags `$_pkg_config --cflags libpulse`"
else
def_pulse='#undef CONFIG_PULSE'
_noaomodules="pulse $_noaomodules"
@@ -5472,10 +5472,10 @@ cat > $TMPC << EOF
int main(void) { jack_client_open("test", JackUseExactName, NULL); return 0; }
EOF
if cc_check -ljack ; then
- _libs_mplayer="$_libs_mplayer -ljack"
+ libs_mplayer="$libs_mplayer -ljack"
elif cc_check `$_pkg_config --libs --cflags --silence-errors jack` ; then
- _libs_mplayer="$_libs_mplayer `$_pkg_config --libs jack`"
- _inc_extra="$_inc_extra "`$_pkg_config --cflags jack`""
+ libs_mplayer="$libs_mplayer `$_pkg_config --libs jack`"
+ extra_cflags="$extra_cflags "`$_pkg_config --cflags jack`""
else
_jack=no
fi
@@ -5508,7 +5508,7 @@ EOF
cc_check $I && _openal=yes && break
cc_check -DOPENAL_AL_H=1 $I && def_openal_h='#define OPENAL_AL_H 1' && _openal=yes && break
done
- test "$_openal" = yes && _libs_mplayer="$_libs_mplayer $I"
+ test "$_openal" = yes && libs_mplayer="$libs_mplayer $I"
fi
if test "$_openal" = yes ; then
def_openal='#define CONFIG_OPENAL 1'
@@ -5619,7 +5619,7 @@ if test "$_alsaver" ; then
_alsa=no
_res_comment="unknown version"
fi
- _ld_extra="$_ld_extra -lasound $_ld_dl $_ld_pthread"
+ extra_ldflags="$extra_ldflags -lasound $_ld_dl $_ld_pthread"
else
_noaomodules="alsa $_noaomodules"
fi
@@ -5674,7 +5674,7 @@ EOF
fi
if test "$_sgiaudio" = "yes" ; then
def_sgiaudio='#define CONFIG_SGI_AUDIO 1'
- _libs_mplayer="$_libs_mplayer -laudio"
+ libs_mplayer="$libs_mplayer -laudio"
_aomodules="sgi $_aomodules"
else
def_sgiaudio='#undef CONFIG_SGI_AUDIO'
@@ -5697,7 +5697,7 @@ EOF
fi
if test "$_dart" = yes ; then
def_dart='#define CONFIG_DART 1'
- _libs_mplayer="$_libs_mplayer -ldart"
+ libs_mplayer="$libs_mplayer -ldart"
_aomodules="dart $_aomodules"
else
def_dart='#undef CONFIG_DART'
@@ -5736,15 +5736,23 @@ fi
echocheck "VCD support"
-if linux || freebsd || netbsd || openbsd || dragonfly || bsdos || darwin || sunos || mingw32; then
+_vcd=no
+if linux || freebsd || netbsd || openbsd || dragonfly || bsdos || darwin || sunos; then
+ _vcd=yes
+elif mingw32; then
+ cat > $TMPC << EOF
+#include <ddk/ntddcdrm.h>
+int main(void) { return 0; }
+EOF
+ cc_check && _vcd=yes
+fi
+if test "$_vcd" = yes; then
_inputmodules="vcd $_inputmodules"
def_vcd='#define CONFIG_VCD 1'
- _vcd="yes"
else
def_vcd='#undef CONFIG_VCD'
_noinputmodules="vcd $_noinputmodules"
_res_comment="not supported on this OS"
- _vcd="no"
fi
echores "$_vcd"
@@ -5763,7 +5771,7 @@ if test "$_dvdread_internal" = auto ; then
|| darwin || win32 || os2; then
_dvdread_internal=yes
_dvdread=yes
- _inc_extra="$_inc_extra -Ilibdvdread4"
+ extra_cflags="$extra_cflags -Ilibdvdread4"
fi
elif test "$_dvdread" = auto ; then
_dvdread=no
@@ -5782,8 +5790,8 @@ EOF
if cc_check -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE \
$_dvdreadcflags $_dvdreadlibs $_ld_dl ; then
_dvdread=yes
- _inc_extra="$_inc_extra $_dvdreadcflags"
- _ld_extra="$_ld_extra $_dvdreadlibs"
+ extra_cflags="$extra_cflags $_dvdreadcflags"
+ extra_ldflags="$extra_ldflags $_dvdreadlibs"
_res_comment="external"
fi
fi
@@ -5796,7 +5804,7 @@ if test "$_dvdread_internal" = yes; then
elif test "$_dvdread" = yes; then
def_dvdread='#define CONFIG_DVDREAD 1'
_largefiles=yes
- _ld_extra="$_ld_extra -ldvdread"
+ extra_ldflags="$extra_ldflags -ldvdread"
_inputmodules="dvdread(external) $_inputmodules"
_res_comment="external"
else
@@ -5820,7 +5828,7 @@ if test "$_libdvdcss_internal" = yes ; then
def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1'
elif darwin ; then
def_dvd_darwin='#define DARWIN_DVD_IOCTL'
- _ld_extra="$_ld_extra -framework IOKit"
+ extra_ldflags="$extra_ldflags -framework IOKit"
elif cygwin ; then
cflags_libdvdcss="-DSYS_CYGWIN -DWIN32"
elif beos ; then
@@ -5848,13 +5856,13 @@ EOF
_cdparanoia=no
for _inc_tmp in "" "-I/usr/include/cdda" "-I/usr/local/include/cdda" ; do
cc_check $_inc_tmp -lcdda_interface -lcdda_paranoia $_ld_lm && \
- _cdparanoia=yes && _inc_extra="$_inc_extra $_inc_tmp" && break
+ _cdparanoia=yes && extra_cflags="$extra_cflags $_inc_tmp" && break
done
fi
if test "$_cdparanoia" = yes ; then
_cdda='yes'
- _ld_extra="$_ld_extra -lcdda_interface -lcdda_paranoia"
- openbsd && _ld_extra="$_ld_extra -lutil"
+ extra_ldflags="$extra_ldflags -lcdda_interface -lcdda_paranoia"
+ openbsd && extra_ldflags="$extra_ldflags -lutil"
fi
echores "$_cdparanoia"
@@ -5876,13 +5884,13 @@ EOF
for _ld_tmp in "" "-lwinmm" ; do
_ld_tmp="-lcdio_cdda -lcdio -lcdio_paranoia $_ld_tmp"
cc_check $_ld_tmp $_ld_lm \
- && _libcdio=yes && _ld_extra="$_ld_extra $_ld_tmp" && break
+ && _libcdio=yes && extra_ldflags="$extra_ldflags $_ld_tmp" && break
done
if test "$_libcdio" = no && $_pkg_config --exists libcdio_paranoia ; then
_inc_tmp=`$_pkg_config --cflags libcdio_paranoia`
_ld_tmp=`$_pkg_config --libs libcdio_paranoia`
cc_check $_inc_tmp $_ld_tmp $_ld_lm && _libcdio=yes \
- && _ld_extra="$_ld_extra $_ld_tmp" && _inc_extra="$_inc_extra $_inc_tmp"
+ && extra_ldflags="$extra_ldflags $_ld_tmp" && extra_cflags="$extra_cflags $_inc_tmp"
fi
fi
if test "$_libcdio" = yes && test "$_cdparanoia" = no ; then
@@ -5969,8 +5977,8 @@ EOF
fi
if test "$_freetype" = yes ; then
def_freetype='#define CONFIG_FREETYPE'
- _inc_extra="$_inc_extra `$_freetypeconfig --cflags`"
- _ld_extra="$_ld_extra `$_freetypeconfig --libs`"
+ extra_cflags="$extra_cflags `$_freetypeconfig --cflags`"
+ extra_ldflags="$extra_ldflags `$_freetypeconfig --libs`"
else
def_freetype='#undef CONFIG_FREETYPE'
fi
@@ -5998,13 +6006,13 @@ EOF
_fontconfig=no
for _ld_tmp in "" "-lexpat -lfreetype" "-lexpat -lfreetype -lz" ; do
_ld_tmp="-lfontconfig $_ld_tmp"
- cc_check $_ld_tmp && _fontconfig=yes && _ld_extra="$_ld_extra $_ld_tmp" && break
+ cc_check $_ld_tmp && _fontconfig=yes && extra_ldflags="$extra_ldflags $_ld_tmp" && break
done
if test "$_fontconfig" = no && $_pkg_config --exists fontconfig ; then
_inc_tmp=`$_pkg_config --cflags fontconfig`
_ld_tmp=`$_pkg_config --libs fontconfig`
cc_check $_inc_tmp $_ld_tmp && _fontconfig=yes \
- && _ld_extra="$_ld_extra $_ld_tmp" && _inc_extra="$_inc_extra $_inc_tmp"
+ && extra_ldflags="$extra_ldflags $_ld_tmp" && extra_cflags="$extra_cflags $_inc_tmp"
fi
fi
if test "$_fontconfig" = yes ; then
@@ -6069,8 +6077,8 @@ EOF
fi
if test "$_fribidi" = yes ; then
def_fribidi='#define CONFIG_FRIBIDI'
- _inc_extra="$_inc_extra `$_fribidiconfig --cflags`"
- _ld_extra="$_ld_extra `$_fribidiconfig --libs`"
+ extra_cflags="$extra_cflags `$_fribidiconfig --cflags`"
+ extra_ldflags="$extra_ldflags `$_fribidiconfig --libs`"
else
def_fribidi='#undef CONFIG_FRIBIDI'
fi
@@ -6094,7 +6102,7 @@ EOF
fi
if test "$_enca" = yes ; then
def_enca='#define CONFIG_ENCA 1'
- _ld_extra="$_ld_extra -lenca"
+ extra_ldflags="$extra_ldflags -lenca"
else
def_enca='#undef CONFIG_ENCA'
fi
@@ -6110,7 +6118,7 @@ _zlib=no
cc_check -lz && _zlib=yes
if test "$_zlib" = yes ; then
def_zlib='#define CONFIG_ZLIB 1'
- _ld_extra="$_ld_extra -lz"
+ extra_ldflags="$extra_ldflags -lz"
else
def_zlib='#define CONFIG_ZLIB 0'
_libavdecoders=`echo $_libavdecoders | sed -e s/FLASHSV_DECODER// -e s/PNG_DECODER// -e s/ZMBV_DECODER// -e s/DXA_DECODER// -e s/TSCC_DECODER// `
@@ -6129,7 +6137,7 @@ EOF
cc_check -lbz2 && bzlib=yes
if test "$bzlib" = yes ; then
def_bzlib='#define CONFIG_BZLIB 1'
- _ld_extra="$_ld_extra -lbz2"
+ extra_ldflags="$extra_ldflags -lbz2"
fi
echores "$bzlib"
@@ -6169,7 +6177,7 @@ EOF
fi
if test "$_liblzo" = yes ; then
def_liblzo='#define CONFIG_LIBLZO 1'
- _ld_extra="$_ld_extra -llzo2"
+ extra_ldflags="$extra_ldflags -llzo2"
_codecmodules="liblzo $_codecmodules"
else
def_liblzo='#undef CONFIG_LIBLZO'
@@ -6189,7 +6197,7 @@ EOF
fi
if test "$_mad" = yes ; then
def_mad='#define CONFIG_LIBMAD 1'
- _ld_extra="$_ld_extra -lmad"
+ extra_ldflags="$extra_ldflags -lmad"
_codecmodules="libmad $_codecmodules"
else
def_mad='#undef CONFIG_LIBMAD'
@@ -6208,7 +6216,7 @@ EOF
fi
if test "$_twolame" = yes ; then
def_twolame='#define CONFIG_TWOLAME 1'
- _libs_mencoder="$_libs_mencoder -ltwolame"
+ libs_mencoder="$libs_mencoder -ltwolame"
_codecmodules="twolame $_codecmodules"
else
def_twolame='#undef CONFIG_TWOLAME'
@@ -6231,7 +6239,7 @@ fi
fi
if test "$_toolame" = yes ; then
def_toolame='#define CONFIG_TOOLAME 1'
- _libs_mencoder="$_libs_mencoder -ltoolame"
+ libs_mencoder="$libs_mencoder -ltoolame"
_codecmodules="toolame $_codecmodules"
else
def_toolame='#undef CONFIG_TOOLAME'
@@ -6277,13 +6285,13 @@ elif test "$_tremor" = yes ; then
def_tremor='#define CONFIG_TREMOR 1'
_codecmodules="tremor(external) $_codecmodules"
_res_comment="external Tremor"
- _ld_extra="$_ld_extra -logg -lvorbisidec"
+ extra_ldflags="$extra_ldflags -logg -lvorbisidec"
elif test "$_libvorbis" = yes ; then
_vorbis=yes
def_vorbis='#define CONFIG_OGGVORBIS 1'
_codecmodules="libvorbis $_codecmodules"
_res_comment="libvorbis"
- _ld_extra="$_ld_extra -lvorbis -logg"
+ extra_ldflags="$extra_ldflags -lvorbis -logg"
else
_vorbis=no
_nocodecmodules="libvorbis $_nocodecmodules"
@@ -6301,7 +6309,7 @@ EOF
fi
if test "$_speex" = yes ; then
def_speex='#define CONFIG_SPEEX 1'
- _ld_extra="$_ld_extra -lspeex"
+ extra_ldflags="$extra_ldflags -lspeex"
_codecmodules="speex $_codecmodules"
else
def_speex='#undef CONFIG_SPEEX'
@@ -6346,22 +6354,22 @@ int main(void) {
EOF
_ld_theora=$($_pkg_config --silence-errors --libs theora)
_inc_theora=$($_pkg_config --silence-errors --cflags theora)
- cc_check $_inc_theora $_ld_theora && _ld_extra="$_ld_extra $_ld_theora" &&
- _inc_extra="$_inc_extra $_inc_theora" && _theora=yes
+ cc_check $_inc_theora $_ld_theora && extra_ldflags="$extra_ldflags $_ld_theora" &&
+ extra_cflags="$extra_cflags $_inc_theora" && _theora=yes
if test _theora = no; then
_ld_theora="-ltheora -logg"
- cc_check $_ld_theora && _ld_extra="$_ld_extra $_ld_theora" && _theora=yes
+ cc_check $_ld_theora && extra_ldflags="$extra_ldflags $_ld_theora" && _theora=yes
fi
if test "$_theora" = no && test "$_tremor_internal" = yes; then
_ld_theora=$($_pkg_config --silence-errors --libs theora)
_inc_theora=$($_pkg_config --silence-errors --cflags theora)
cc_check tremor/bitwise.c $_inc_theora $_ld_theora &&
- _ld_extra="$_ld_extra $_ld_theora" &&
- _inc_extra="$_inc_extra $_inc_theora" && _theora=yes
+ extra_ldflags="$extra_ldflags $_ld_theora" &&
+ extra_cflags="$extra_cflags $_inc_theora" && _theora=yes
if test _theora = no; then
_ld_theora="-ltheora -logg"
cc_check tremor/bitwise.c $_ld_theora &&
- _ld_extra="$_ld_extra $_ld_theora" && _theora=yes
+ extra_ldflags="$extra_ldflags $_ld_theora" && _theora=yes
fi
fi
fi
@@ -6370,7 +6378,7 @@ if test "$_theora" = yes ; then
_codecmodules="libtheora $_codecmodules"
# when --enable-theora is forced, we'd better provide a probably sane
# $_ld_theora than nothing
- test -z "$_ld_theora" && _ld_extra="$_ld_extra -ltheora -logg"
+ test -z "$_ld_theora" && extra_ldflags="$extra_ldflags -ltheora -logg"
else
def_theora='#undef CONFIG_OGGTHEORA'
_nocodecmodules="libtheora $_nocodecmodules"
@@ -6407,7 +6415,7 @@ elif test "$_liba52_internal" = no && test "$_liba52" = auto ; then
#include <a52dec/a52.h>
int main(void) { a52_state_t *testHand; testHand=a52_init(0); return 0; }
EOF
- cc_check -la52 && _liba52=yes && _res_comment="external" && _ld_extra="$_ld_extra -la52"
+ cc_check -la52 && _liba52=yes && _res_comment="external" && extra_ldflags="$extra_ldflags -