1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-05 14:40:43 +00:00

Remove _ld_x11.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21169 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2006-11-22 16:42:04 +00:00
parent 12e31d0e27
commit a576d63a1b

48
configure vendored
View File

@ -3790,14 +3790,15 @@ if test "$_x11" != no ; then
#include <X11/Xutil.h> #include <X11/Xutil.h>
int main(void) { (void) XCreateWindow(0,0,0,0,0,0,0,0,0,0,0,0); return 0; } int main(void) { (void) XCreateWindow(0,0,0,0,0,0,0,0,0,0,0,0); return 0; }
EOF EOF
for I in $_ld_extra "" -L/usr/X11R6/lib -L/usr/lib/X11R6 -L/usr/X11/lib \ for I in "" -L/usr/X11R6/lib -L/usr/lib/X11R6 -L/usr/X11/lib \
-L/usr/lib32 -L/usr/openwin/lib -L/usr/X11R6/lib64 -L/usr/lib ; do -L/usr/lib32 -L/usr/openwin/lib -L/usr/X11R6/lib64 -L/usr/lib ; do
if netbsd; then if netbsd; then
_libs_mplayer="$_libs_mplayer $I -lXext -lX11 $_ld_sock $_ld_pthread -Wl,-R`echo $I | sed s/^-L//`" _ld_tmp="$I -lXext -lX11 $_ld_sock $_ld_pthread -Wl,-R`echo $I | sed s/^-L//`"
else else
_libs_mplayer="$_libs_mplayer $I -lXext -lX11 $_ld_sock $_ld_pthread" _ld_tmp="$I -lXext -lX11 $_ld_sock $_ld_pthread"
fi fi
cc_check $_ld_x11 && _x11=yes && break cc_check $_ld_tmp && _libs_mplayer="$_libs_mplayer $_ld_tmp" \
&& _x11=yes && break
done done
fi fi
if test "$_x11" = yes ; then if test "$_x11" = yes ; then
@ -3807,7 +3808,6 @@ if test "$_x11" = yes ; then
else else
_x11=no _x11=no
_def_x11='#undef HAVE_X11' _def_x11='#undef HAVE_X11'
_ld_x11=''
_novomodules="x11 $_novomodules" _novomodules="x11 $_novomodules"
_res_comment="check if the dev(el) packages are installed" _res_comment="check if the dev(el) packages are installed"
# disable stuff that depends on X # disable stuff that depends on X
@ -3830,7 +3830,7 @@ int main(void) {
(void) DPMSQueryExtension(0, 0, 0); (void) DPMSQueryExtension(0, 0, 0);
} }
EOF EOF
cc_check -lXdpms $_ld_x11 && _xdpms3=yes cc_check -lXdpms && _xdpms3=yes
cat > $TMPC <<EOF cat > $TMPC <<EOF
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/extensions/dpms.h> #include <X11/extensions/dpms.h>
@ -3838,7 +3838,7 @@ int main(void) {
(void) DPMSQueryExtension(0, 0, 0); (void) DPMSQueryExtension(0, 0, 0);
} }
EOF EOF
cc_check $_ld_x11 && _xdpms4=yes cc_check && _xdpms4=yes
fi fi
if test "$_xdpms4" = yes ; then if test "$_xdpms4" = yes ; then
_def_xdpms='#define HAVE_XDPMS 1' _def_xdpms='#define HAVE_XDPMS 1'
@ -3846,7 +3846,7 @@ if test "$_xdpms4" = yes ; then
echores "yes" echores "yes"
elif test "$_xdpms3" = yes ; then elif test "$_xdpms3" = yes ; then
_def_xdpms='#define HAVE_XDPMS 1' _def_xdpms='#define HAVE_XDPMS 1'
_ld_x11="-lXdpms $_ld_x11" _libs_mplayer="$_libs_mplayer -lXdpms"
_res_comment="using Xdpms 3" _res_comment="using Xdpms 3"
echores "yes" echores "yes"
else else
@ -3866,7 +3866,7 @@ int main(void) {
return 0; } return 0; }
EOF EOF
_xv=no _xv=no
cc_check -lXv $_ld_x11 && _xv=yes cc_check -lXv && _xv=yes
fi fi
if test "$_xv" = yes ; then if test "$_xv" = yes ; then
@ -3894,7 +3894,7 @@ int main(void) {
return 0; } return 0; }
EOF EOF
for _ld_tmp in $_xvmclib XvMCNVIDIA XvMCW I810XvMC ; do for _ld_tmp in $_xvmclib XvMCNVIDIA XvMCW I810XvMC ; do
cc_check -lXvMC -l$_ld_tmp $_ld_x11 && _xvmc=yes && _xvmclib="$_ld_tmp" && break cc_check -lXvMC -l$_ld_tmp && _xvmc=yes && _xvmclib="$_ld_tmp" && break
done done
fi fi
if test "$_xvmc" = yes ; then if test "$_xvmc" = yes ; then
@ -3918,7 +3918,7 @@ if test "$_xinerama" = auto ; then
int main(void) { (void) XineramaIsActive(0); return 0; } int main(void) { (void) XineramaIsActive(0); return 0; }
EOF EOF
_xinerama=no _xinerama=no
cc_check -lXinerama $_ld_x11 && _xinerama=yes cc_check -lXinerama && _xinerama=yes
fi fi
if test "$_xinerama" = yes ; then if test "$_xinerama" = yes ; then
@ -3943,7 +3943,7 @@ if test "$_vm" = auto ; then
int main(void) { (void) XF86VidModeQueryExtension(0, 0, 0); return 0; } int main(void) { (void) XF86VidModeQueryExtension(0, 0, 0); return 0; }
EOF EOF
_vm=no _vm=no
cc_check -lXxf86vm $_ld_x11 && _vm=yes cc_check -lXxf86vm && _vm=yes
fi fi
if test "$_vm" = yes ; then if test "$_vm" = yes ; then
_def_vm='#define HAVE_XF86VM 1' _def_vm='#define HAVE_XF86VM 1'
@ -3965,7 +3965,7 @@ if test "$_xf86keysym" = auto; then
#include <X11/XF86keysym.h> #include <X11/XF86keysym.h>
int main(void) { return XF86XK_AudioPause; } int main(void) { return XF86XK_AudioPause; }
EOF EOF
cc_check $_ld_x11 && _xf86keysym=yes cc_check && _xf86keysym=yes
fi fi
if test "$_xf86keysym" = yes ; then if test "$_xf86keysym" = yes ; then
_def_xf86keysym='#define HAVE_XF86XK 1' _def_xf86keysym='#define HAVE_XF86XK 1'
@ -3983,14 +3983,14 @@ if test "$_dga" = auto ; then
int main (void) { (void) XF86DGASetViewPort(0, 0, 0, 0); return 0; } int main (void) { (void) XF86DGASetViewPort(0, 0, 0, 0); return 0; }
EOF EOF
_dga=no _dga=no
cc_check -lXxf86dga -lXxf86vm $_ld_x11 && _dga=1 cc_check -lXxf86dga -lXxf86vm && _dga=1
cat > $TMPC << EOF cat > $TMPC << EOF
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/extensions/xf86dga.h> #include <X11/extensions/xf86dga.h>
int main (void) { (void) XDGASetViewport(0, 0, 0, 0, 0); return 0; } int main (void) { (void) XDGASetViewport(0, 0, 0, 0, 0); return 0; }
EOF EOF
cc_check -lXxf86dga $_ld_x11 && _dga=2 cc_check -lXxf86dga && _dga=2
fi fi
_def_dga='#undef HAVE_DGA' _def_dga='#undef HAVE_DGA'
@ -4024,10 +4024,10 @@ if (test "$_x11" = yes || win32 && test "$_macosx" != yes) && test "$_gl" != no
int main(void) { return 0; } int main(void) { return 0; }
EOF EOF
_gl=no _gl=no
if cc_check $_ld_x11 -lGL $_ld_lm ; then if cc_check -lGL $_ld_lm ; then
_gl=yes _gl=yes
_libs_mplayer="$_libs_mplayer -lGL $_ld_dl" _libs_mplayer="$_libs_mplayer -lGL $_ld_dl"
elif cc_check $_ld_x11 -lGL $_ld_lm $_ld_pthread ; then elif cc_check -lGL $_ld_lm $_ld_pthread ; then
_gl=yes _gl=yes
_libs_mplayer="$_libs_mplayer -lGL $_ld_pthread $_ld_dl" _libs_mplayer="$_libs_mplayer -lGL $_ld_pthread $_ld_dl"
elif cc_check -lopengl32 ; then elif cc_check -lopengl32 ; then
@ -4157,7 +4157,7 @@ aa_autoinitkbd(c,0);
return 0; } return 0; }
EOF EOF
_aa=no _aa=no
for _ld_tmp in "-laa" "$_ld_x11 -laa" ; do 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 done
fi fi
@ -4415,7 +4415,7 @@ int main(void) {
return 0; return 0;
} }
EOF EOF
for _ld_gif in "-lungif" "-lungif $_ld_x11" "-lgif" "-lgif $_ld_x11" ; do for _ld_gif in "-lungif" "-lgif" ; do
cc_check $_ld_gif && tmp_run && _gif=yes && break cc_check $_ld_gif && tmp_run && _gif=yes && break
done done
fi fi
@ -4627,11 +4627,11 @@ if test "$_nas" = auto ; then
int main(void) { return 0; } int main(void) { return 0; }
EOF EOF
_nas=no _nas=no
cc_check $_ld_lm -laudio -lXt $_ld_x11 && _nas=yes cc_check $_ld_lm -laudio -lXt && _nas=yes
fi fi
if test "$_nas" = yes ; then if test "$_nas" = yes ; then
_def_nas='#define HAVE_NAS 1' _def_nas='#define HAVE_NAS 1'
_libs_mplayer="$_libs_mplayer -laudio -lXt $_ld_x11" _libs_mplayer="$_libs_mplayer -laudio -lXt"
_aosrc="$_aosrc ao_nas.c" _aosrc="$_aosrc ao_nas.c"
_aomodules="nas $_aomodules" _aomodules="nas $_aomodules"
else else
@ -6418,7 +6418,7 @@ if test "$_x264" = auto ; then
int main(void) { x264_encoder_open((void*)0); return 0; } int main(void) { x264_encoder_open((void*)0); return 0; }
EOF EOF
_x264=no _x264=no
for _ld_x264 in "-lx264 $_ld_pthread" "-lx264 $_ld_pthread $_ld_x11 $_ld_lm" ; do for _ld_x264 in "-lx264 $_ld_pthread" "-lx264 $_ld_pthread $_ld_lm" ; do
cc_check $_ld_x264 && _libs_mencoder="$_libs_mencoder $_ld_x264" && _x264=yes && break cc_check $_ld_x264 && _libs_mencoder="$_libs_mencoder $_ld_x264" && _x264=yes && break
done done
fi fi
@ -6948,7 +6948,7 @@ int main(void) {
return exitvar; return exitvar;
} }
EOF EOF
cc_check $_ld_x11 && _xshape=yes cc_check && _xshape=yes
fi fi
if test "$_xshape" = yes ; then if test "$_xshape" = yes ; then
_def_xshape='#define HAVE_XSHAPE 1' _def_xshape='#define HAVE_XSHAPE 1'
@ -7363,7 +7363,7 @@ EXTRA_LIB = $_ld_extra \
$_ld_lm \ $_ld_lm \
$_ld_vorbis $_xmms_lib \ $_ld_vorbis $_xmms_lib \
$_ld_arch $_ld_arch
EXTRALIBS_MPLAYER = $_libs_mplayer $_ld_x11 $_ld_sock $_ld_static $_ld_gtk $_ld_glib EXTRALIBS_MPLAYER = $_libs_mplayer $_ld_sock $_ld_static $_ld_gtk $_ld_glib
EXTRALIBS_MENCODER = $_libs_mencoder EXTRALIBS_MENCODER = $_libs_mencoder
HAVE_MLIB = $_mlib HAVE_MLIB = $_mlib