Mercurial > mplayer.hg
comparison configure @ 18978:9f97ca988ea7
Consistent option and variable naming for x11libdir and xvmclibdir.
author | diego |
---|---|
date | Sun, 09 Jul 2006 16:38:02 +0000 |
parents | 408714bc075c |
children | 494e8de479aa |
comparison
equal
deleted
inserted
replaced
18977:408714bc075c | 18978:9f97ca988ea7 |
---|---|
419 --with-toolamedir=DIR path to Toolame library and include file | 419 --with-toolamedir=DIR path to Toolame library and include file |
420 --with-xmmsplugindir=DIR XMMS plugins in DIR | 420 --with-xmmsplugindir=DIR XMMS plugins in DIR |
421 --with-xmmslibdir=DIR libxmms.so.1 in DIR | 421 --with-xmmslibdir=DIR libxmms.so.1 in DIR |
422 --with-cdparanoiaincdir=DIR cdparanoia headers in DIR (*) | 422 --with-cdparanoiaincdir=DIR cdparanoia headers in DIR (*) |
423 --with-cdparanoialibdir=DIR cdparanoia libraries (libcdda_*) in DIR (*) | 423 --with-cdparanoialibdir=DIR cdparanoia libraries (libcdda_*) in DIR (*) |
424 --with-xvmclib=NAME name of adapter-specific library (e.g. XvMCNVIDIA) | 424 --with-xvmclibdir=NAME name of adapter-specific library (e.g. XvMCNVIDIA) |
425 --with-termcaplib=NAME name of library with termcap functionality | 425 --with-termcaplib=NAME name of library with termcap functionality |
426 name should be given without leading "lib" | 426 name should be given without leading "lib" |
427 checks for "termcap" and "tinfo" | 427 checks for "termcap" and "tinfo" |
428 | 428 |
429 --with-freetype-config=PATH path to freetype-config | 429 --with-freetype-config=PATH path to freetype-config |
2095 | 2095 |
2096 --with-x11incdir=*) | 2096 --with-x11incdir=*) |
2097 _inc_x11=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` | 2097 _inc_x11=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` |
2098 ;; | 2098 ;; |
2099 --with-x11libdir=*) | 2099 --with-x11libdir=*) |
2100 _x11_paths=`echo $ac_option | cut -d '=' -f 2` | 2100 _x11libdir=`echo $ac_option | cut -d '=' -f 2` |
2101 ;; | 2101 ;; |
2102 --with-dxr2incdir=*) | 2102 --with-dxr2incdir=*) |
2103 _inc_dxr2=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` | 2103 _inc_dxr2=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` |
2104 ;; | 2104 ;; |
2105 --with-xvmclib=*) | 2105 --with-xvmclibdir=*) |
2106 _xvmclib=`echo $ac_option | cut -d '=' -f 2` | 2106 _xvmclibdir=`echo $ac_option | cut -d '=' -f 2` |
2107 ;; | 2107 ;; |
2108 --with-dvbincdir=*) | 2108 --with-dvbincdir=*) |
2109 _inc_dvb=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` | 2109 _inc_dvb=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` |
2110 ;; | 2110 ;; |
2111 --with-xvidlibdir=*) | 2111 --with-xvidlibdir=*) |
3759 cat > $TMPC <<EOF | 3759 cat > $TMPC <<EOF |
3760 #include <X11/Xlib.h> | 3760 #include <X11/Xlib.h> |
3761 #include <X11/Xutil.h> | 3761 #include <X11/Xutil.h> |
3762 int main(void) { (void) XCreateWindow(0,0,0,0,0,0,0,0,0,0,0,0); return 0; } | 3762 int main(void) { (void) XCreateWindow(0,0,0,0,0,0,0,0,0,0,0,0); return 0; } |
3763 EOF | 3763 EOF |
3764 if test -z "$_x11_paths" ; then | 3764 if test -z "$_x11libdir" ; then |
3765 _x11_paths="/usr/X11R6/lib /usr/lib/X11R6 /usr/X11/lib /usr/lib32 /usr/openwin/lib /usr/X11R6/lib64 /usr/lib" | 3765 _x11libdir="/usr/X11R6/lib /usr/lib/X11R6 /usr/X11/lib /usr/lib32 /usr/openwin/lib /usr/X11R6/lib64 /usr/lib" |
3766 fi | 3766 fi |
3767 for I in $_x11_paths ; do | 3767 for I in $_x11libdir ; do |
3768 _ld_x11="-L$I -lXext -lX11 $_ld_sock $_ld_pthread" | 3768 _ld_x11="-L$I -lXext -lX11 $_ld_sock $_ld_pthread" |
3769 if netbsd; then | 3769 if netbsd; then |
3770 _ld_x11="$_ld_x11 -Wl,-R$I" | 3770 _ld_x11="$_ld_x11 -Wl,-R$I" |
3771 fi | 3771 fi |
3772 if test -d "$I" && cc_check $_inc_x11 $_ld_x11 ; then | 3772 if test -d "$I" && cc_check $_inc_x11 $_ld_x11 ; then |
3867 int main(void) { | 3867 int main(void) { |
3868 (void) XvMCQueryExtension(0,0,0); | 3868 (void) XvMCQueryExtension(0,0,0); |
3869 (void) XvMCCreateContext(0,0,0,0,0,0,0); | 3869 (void) XvMCCreateContext(0,0,0,0,0,0,0); |
3870 return 0; } | 3870 return 0; } |
3871 EOF | 3871 EOF |
3872 for _ld_tmp in $_xvmclib XvMCNVIDIA XvMCW I810XvMC ; do | 3872 for _ld_tmp in $_xvmclibdir XvMCNVIDIA XvMCW I810XvMC ; do |
3873 cc_check $_inc_x11 -lXvMC -l$_ld_tmp $_ld_xv $_ld_x11 && _xvmc=yes && _xvmclib="$_ld_tmp" && break | 3873 cc_check $_inc_x11 -lXvMC -l$_ld_tmp $_ld_xv $_ld_x11 && _xvmc=yes && _xvmclibdir="$_ld_tmp" && break |
3874 done | 3874 done |
3875 fi | 3875 fi |
3876 if test "$_xvmc" = yes ; then | 3876 if test "$_xvmc" = yes ; then |
3877 _def_xvmc='#define HAVE_XVMC 1' | 3877 _def_xvmc='#define HAVE_XVMC 1' |
3878 _ld_xvmc="-lXvMC -l$_xvmclib" | 3878 _ld_xvmc="-lXvMC -l$_xvmclibdir" |
3879 _vosrc="$_vosrc vo_xvmc.c" | 3879 _vosrc="$_vosrc vo_xvmc.c" |
3880 _vomodules="xvmc $_vomodules" | 3880 _vomodules="xvmc $_vomodules" |
3881 _res_comment="using $_xvmclib" | 3881 _res_comment="using $_xvmclibdir" |
3882 else | 3882 else |
3883 _def_xvmc='#undef HAVE_XVMC' | 3883 _def_xvmc='#undef HAVE_XVMC' |
3884 _novomodules="xvmc $_novomodules" | 3884 _novomodules="xvmc $_novomodules" |
3885 fi | 3885 fi |
3886 echores "$_xvmc" | 3886 echores "$_xvmc" |