Mercurial > mplayer.hg
comparison configure @ 19548:42f586994f97
Make --with-x11libdir and --with-mlibdir consistent with --with-*libdir.
author | diego |
---|---|
date | Sat, 26 Aug 2006 22:13:07 +0000 |
parents | 8f42b470ae8d |
children | b3cc74e28541 |
comparison
equal
deleted
inserted
replaced
19547:8f42b470ae8d | 19548:42f586994f97 |
---|---|
407 multiple paths separated by ':'): | 407 multiple paths separated by ':'): |
408 --with-extraincdir=DIR extra headers (png, mad, sdl, ...) in DIR (*) | 408 --with-extraincdir=DIR extra headers (png, mad, sdl, ...) in DIR (*) |
409 --with-extralibdir=DIR extra linker search paths in DIR (*) | 409 --with-extralibdir=DIR extra linker search paths in DIR (*) |
410 --extra-libs=FLAGS extra linker flags | 410 --extra-libs=FLAGS extra linker flags |
411 --with-x11libdir=DIR X library files in DIR (*) | 411 --with-x11libdir=DIR X library files in DIR (*) |
412 --with-mlibdir=DIR libmlib (mediaLib support) in DIR (Solaris only) | 412 --with-mliblibdir=DIR libmlib (mediaLib support) in DIR (Solaris only) |
413 --with-codecsdir=DIR Binary codec files in DIR | 413 --with-codecsdir=DIR Binary codec files in DIR |
414 --with-win32libdir=DIR W*ndows DLL files in DIR | 414 --with-win32libdir=DIR W*ndows DLL files in DIR |
415 --with-xanimlibdir=DIR XAnim DLL files in DIR | 415 --with-xanimlibdir=DIR XAnim DLL files in DIR |
416 --with-reallibdir=DIR RealPlayer DLL files in DIR | 416 --with-reallibdir=DIR RealPlayer DLL files in DIR |
417 --with-xvidlibdir=DIR libxvidcore (XviD) in DIR (*) | 417 --with-xvidlibdir=DIR libxvidcore (XviD) in DIR (*) |
2063 _reallibdir=`echo $ac_option | cut -d '=' -f 2` | 2063 _reallibdir=`echo $ac_option | cut -d '=' -f 2` |
2064 ;; | 2064 ;; |
2065 --with-livelibdir=*) | 2065 --with-livelibdir=*) |
2066 _livelibdir=`echo $ac_option | cut -d '=' -f 2` | 2066 _livelibdir=`echo $ac_option | cut -d '=' -f 2` |
2067 ;; | 2067 ;; |
2068 --with-mlibdir=*) | |
2069 _mlibdir=`echo $ac_option | cut -d '=' -f 2` | |
2070 ;; | |
2071 | 2068 |
2072 --with-xmmslibdir=*) | 2069 --with-xmmslibdir=*) |
2073 _xmmslibdir=`echo $ac_option | cut -d '=' -f 2` | 2070 _xmmslibdir=`echo $ac_option | cut -d '=' -f 2` |
2074 ;; | 2071 ;; |
2075 | 2072 |
2108 | 2105 |
2109 --enable-win32) _win32=yes ;; | 2106 --enable-win32) _win32=yes ;; |
2110 --disable-win32) _win32=no ;; | 2107 --disable-win32) _win32=no ;; |
2111 | 2108 |
2112 --with-x11libdir=*) | 2109 --with-x11libdir=*) |
2113 _x11libdir=`echo $ac_option | cut -d '=' -f 2` | 2110 _ld_x11=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` |
2114 ;; | 2111 ;; |
2115 --with-xvmclib=*) | 2112 --with-xvmclib=*) |
2116 _xvmclib=`echo $ac_option | cut -d '=' -f 2` | 2113 _xvmclib=`echo $ac_option | cut -d '=' -f 2` |
2117 ;; | 2114 ;; |
2118 --with-xvidlibdir=*) | 2115 --with-xvidlibdir=*) |
2121 --with-libdtslibdir=*) | 2118 --with-libdtslibdir=*) |
2122 _ld_libdts=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` | 2119 _ld_libdts=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` |
2123 ;; | 2120 ;; |
2124 --with-x264libdir=*) | 2121 --with-x264libdir=*) |
2125 _ld_x264=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` | 2122 _ld_x264=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` |
2123 ;; | |
2124 --with-mliblibdir=*) | |
2125 _ld_mlib=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` | |
2126 ;; | 2126 ;; |
2127 --with-sdl-config=*) | 2127 --with-sdl-config=*) |
2128 _sdlconfig=`echo $ac_option | cut -d '=' -f 2` | 2128 _sdlconfig=`echo $ac_option | cut -d '=' -f 2` |
2129 ;; | 2129 ;; |
2130 --with-freetype-config=*) | 2130 --with-freetype-config=*) |
2179 test -z "$_bindir" && _bindir="$_prefix/bin" | 2179 test -z "$_bindir" && _bindir="$_prefix/bin" |
2180 test -z "$_datadir" && _datadir="$_prefix/share/mplayer" | 2180 test -z "$_datadir" && _datadir="$_prefix/share/mplayer" |
2181 test -z "$_mandir" && _mandir="$_prefix/man" | 2181 test -z "$_mandir" && _mandir="$_prefix/man" |
2182 test -z "$_confdir" && _confdir="$_prefix/etc/mplayer" | 2182 test -z "$_confdir" && _confdir="$_prefix/etc/mplayer" |
2183 test -z "$_libdir" && _libdir="$_prefix/lib" | 2183 test -z "$_libdir" && _libdir="$_prefix/lib" |
2184 test -z "$_mlibdir" && _mlibdir="$MLIBHOME" | |
2185 | 2184 |
2186 if x86 ; then | 2185 if x86 ; then |
2187 # Checking assembler (_as) compatibility... | 2186 # Checking assembler (_as) compatibility... |
2188 # Added workaround for older as that reads from stdin by default - atmos | 2187 # Added workaround for older as that reads from stdin by default - atmos |
2189 as_version=`echo '' | $_as -version 2>&1 | sed -n 's/^.*assembler \(version \)*\([0-9.]*\).*$/\2/p'` | 2188 as_version=`echo '' | $_as -version 2>&1 | sed -n 's/^.*assembler \(version \)*\([0-9.]*\).*$/\2/p'` |
3742 cat > $TMPC <<EOF | 3741 cat > $TMPC <<EOF |
3743 #include <X11/Xlib.h> | 3742 #include <X11/Xlib.h> |
3744 #include <X11/Xutil.h> | 3743 #include <X11/Xutil.h> |
3745 int main(void) { (void) XCreateWindow(0,0,0,0,0,0,0,0,0,0,0,0); return 0; } | 3744 int main(void) { (void) XCreateWindow(0,0,0,0,0,0,0,0,0,0,0,0); return 0; } |
3746 EOF | 3745 EOF |
3747 if test -z "$_x11libdir" ; then | 3746 for I in $_ld_x11 "" -L/usr/X11R6/lib -L/usr/lib/X11R6 -L/usr/X11/lib \ |
3748 _x11libdir="/usr/X11R6/lib /usr/lib/X11R6 /usr/X11/lib /usr/lib32 /usr/openwin/lib /usr/X11R6/lib64 /usr/lib" | 3747 -L/usr/lib32 -L/usr/openwin/lib -L/usr/X11R6/lib64 -L/usr/lib ; do |
3749 fi | 3748 _ld_x11="$I -lXext -lX11 $_ld_sock $_ld_pthread" |
3750 for I in $_x11libdir ; do | |
3751 _ld_x11="-L$I -lXext -lX11 $_ld_sock $_ld_pthread" | |
3752 if netbsd; then | 3749 if netbsd; then |
3753 _ld_x11="$_ld_x11 -Wl,-R$I" | 3750 _ld_x11="$_ld_x11 -Wl,-R`echo $I | sed s/^-L//`" |
3754 fi | 3751 fi |
3755 if test -d "$I" && cc_check $_ld_x11 ; then | 3752 cc_check $_ld_x11 && _x11=yes && break |
3756 _x11=yes | |
3757 break | |
3758 fi | |
3759 done | 3753 done |
3760 fi | 3754 fi |
3761 if test "$_x11" = yes ; then | 3755 if test "$_x11" = yes ; then |
3762 _def_x11='#define HAVE_X11 1' | 3756 _def_x11='#define HAVE_X11 1' |
3763 _vosrc="$_vosrc x11_common.c vo_x11.c vo_xover.c" | 3757 _vosrc="$_vosrc x11_common.c vo_x11.c vo_xover.c" |
3764 _vomodules="x11 xover $_vomodules" | 3758 _vomodules="x11 xover $_vomodules" |
3765 _res_comment="using $I" | |
3766 else | 3759 else |
3767 _x11=no | 3760 _x11=no |
3768 _def_x11='#undef HAVE_X11' | 3761 _def_x11='#undef HAVE_X11' |
3769 _ld_x11='' | 3762 _ld_x11='' |
3770 _novomodules="x11 $_novomodules" | 3763 _novomodules="x11 $_novomodules" |
5011 | 5004 |
5012 if sunos; then | 5005 if sunos; then |
5013 echocheck "Sun mediaLib" | 5006 echocheck "Sun mediaLib" |
5014 if test "$_mlib" = auto ; then | 5007 if test "$_mlib" = auto ; then |
5015 _mlib=no | 5008 _mlib=no |
5016 test -z "$_mlibdir" && _mlibdir=/opt/SUNWmlib | |
5017 cat > $TMPC << EOF | 5009 cat > $TMPC << EOF |
5018 #include <mlib.h> | 5010 #include <mlib.h> |
5019 int main(void) { mlib_VideoColorYUV2ABGR420(0,0,0,0,0,0,0,0,0); return 0; } | 5011 int main(void) { mlib_VideoColorYUV2ABGR420(0,0,0,0,0,0,0,0,0); return 0; } |
5020 EOF | 5012 EOF |
5021 cc_check -I${_mlibdir}/include -L${_mlibdir}/lib -lmlib && _mlib=yes | 5013 cc_check $_ld_mlib -lmlib && _mlib=yes |
5022 fi | 5014 fi |
5023 if test "$_mlib" = yes ; then | 5015 if test "$_mlib" = yes ; then |
5024 _def_mlib='#define HAVE_MLIB 1' | 5016 _def_mlib='#define HAVE_MLIB 1' |
5025 _inc_extra="$_inc_extra -I${_mlibdir}/include" | 5017 _ld_mlib="$_ld_mlib `echo $_ld_mlib | sed s/^-L/-R/` -lmlib" |
5026 _ld_mlib=" -L${_mlibdir}/lib -R${_mlibdir}/lib -lmlib " | |
5027 else | 5018 else |
5028 _def_mlib='#undef HAVE_MLIB' | 5019 _def_mlib='#undef HAVE_MLIB' |
5029 fi | 5020 fi |
5030 echores "$_mlib" | 5021 echores "$_mlib" |
5031 fi #if sunos | 5022 fi #if sunos |