Mercurial > mplayer.hg
comparison configure @ 32302:6d3212dd47b2
Drop two unnecessary Xlib.h #includes and use helper functions.
author | diego |
---|---|
date | Mon, 27 Sep 2010 17:18:39 +0000 |
parents | b3c27e5c4bd3 |
children | 50f2498749da |
comparison
equal
deleted
inserted
replaced
32301:a65635702512 | 32302:6d3212dd47b2 |
---|---|
4240 echores "$_x11_headers" | 4240 echores "$_x11_headers" |
4241 | 4241 |
4242 | 4242 |
4243 echocheck "X11" | 4243 echocheck "X11" |
4244 if test "$_x11" = auto && test "$_x11_headers" = yes ; then | 4244 if test "$_x11" = auto && test "$_x11_headers" = yes ; then |
4245 cat > $TMPC <<EOF | |
4246 #include <X11/Xlib.h> | |
4247 #include <X11/Xutil.h> | |
4248 int main(void) { XCreateWindow(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); return 0; } | |
4249 EOF | |
4250 for I in "" -L/usr/X11R7/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib/X11R6 \ | 4245 for I in "" -L/usr/X11R7/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib/X11R6 \ |
4251 -L/usr/X11/lib -L/usr/lib32 -L/usr/openwin/lib -L/usr/local/lib64 -L/usr/X11R6/lib64 \ | 4246 -L/usr/X11/lib -L/usr/lib32 -L/usr/openwin/lib -L/usr/local/lib64 -L/usr/X11R6/lib64 \ |
4252 -L/usr/lib ; do | 4247 -L/usr/lib ; do |
4253 if netbsd; then | 4248 if netbsd; then |
4254 _ld_tmp="$I -lXext -lX11 $_ld_pthread -Wl,-R$(echo $I | sed s/^-L//)" | 4249 _ld_tmp="$I -lXext -lX11 $_ld_pthread -Wl,-R$(echo $I | sed s/^-L//)" |
4255 else | 4250 else |
4256 _ld_tmp="$I -lXext -lX11 $_ld_pthread" | 4251 _ld_tmp="$I -lXext -lX11 $_ld_pthread" |
4257 fi | 4252 fi |
4258 cc_check $_ld_tmp && libs_mplayer="$libs_mplayer $_ld_tmp" \ | 4253 statement_check X11/Xutil.h 'XCreateWindow(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)' $_ld_tmp && |
4259 && _x11=yes && break | 4254 libs_mplayer="$libs_mplayer $_ld_tmp" && _x11=yes && break |
4260 done | 4255 done |
4261 fi | 4256 fi |
4262 if test "$_x11" = yes ; then | 4257 if test "$_x11" = yes ; then |
4263 def_x11='#define CONFIG_X11 1' | 4258 def_x11='#define CONFIG_X11 1' |
4264 vomodules="x11 xover $vomodules" | 4259 vomodules="x11 xover $vomodules" |
4404 echores "$_vdpau" | 4399 echores "$_vdpau" |
4405 | 4400 |
4406 | 4401 |
4407 echocheck "Xinerama" | 4402 echocheck "Xinerama" |
4408 if test "$_xinerama" = auto ; then | 4403 if test "$_xinerama" = auto ; then |
4409 cat > $TMPC <<EOF | |
4410 #include <X11/Xlib.h> | |
4411 #include <X11/extensions/Xinerama.h> | |
4412 int main(void) { XineramaIsActive(0); return 0; } | |
4413 EOF | |
4414 _xinerama=no | 4404 _xinerama=no |
4415 cc_check -lXinerama && _xinerama=yes | 4405 statement_check X11/extensions/Xinerama.h 'XineramaIsActive(0)' -lXinerama && _xinerama=yes |
4416 fi | 4406 fi |
4417 | 4407 |
4418 if test "$_xinerama" = yes ; then | 4408 if test "$_xinerama" = yes ; then |
4419 def_xinerama='#define CONFIG_XINERAMA 1' | 4409 def_xinerama='#define CONFIG_XINERAMA 1' |
4420 libs_mplayer="$libs_mplayer -lXinerama" | 4410 libs_mplayer="$libs_mplayer -lXinerama" |