summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-09 14:19:59 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-09 14:19:59 +0000
commitc9e6e6a2e7ac4731c72d7783d54ab69d952b9b18 (patch)
tree0317e190147f43ff4f9338ee5a80b7fdc7e4d73e /configure
parent4e289c8f4de3d71b7bf74c773ce9b1f073aae351 (diff)
downloadmpv-c9e6e6a2e7ac4731c72d7783d54ab69d952b9b18.tar.bz2
mpv-c9e6e6a2e7ac4731c72d7783d54ab69d952b9b18.tar.xz
Generalize runtime linker support.
patch by "Derek E. Lewis" dlewis..@..solnetworks.....net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18663 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 13 insertions, 7 deletions
diff --git a/configure b/configure
index d38953ba2c..637eb1d723 100755
--- a/configure
+++ b/configure
@@ -248,6 +248,7 @@ Optional features:
--disable-ftp Disable ftp support [enabled]
--disable-vstream Disable tivo vstream client support [autodetect]
--disable-pthreads Disable Posix threads support [autodetect]
+ --enable-rpath Enable runtime linker path for extra libs [disabled]
Codecs:
--enable-gif enable gif support [autodetect]
@@ -641,13 +642,6 @@ if freebsd ; then
_inc_extra="$_inc_extra -I/usr/local/include"
fi
-if netbsd ; then
- for I in `echo $_ld_extra | sed 's/-L//g'` ; do
- tmp="$tmp ` echo $I | sed 's/.*/ -L& -Wl,-R&/'`"
- done
- _ld_extra=$tmp
-fi
-
_ldd=ldd
if darwin; then
_ldd="otool -L"
@@ -1698,6 +1692,7 @@ _ftp=yes
_musepack=auto
_vstream=auto
_pthreads=yes
+_rpath=no
for ac_option do
case "$ac_option" in
# Skip 1st pass
@@ -1980,6 +1975,8 @@ for ac_option do
--disable-vstream) _vstream=no ;;
--enable-pthreads) _pthreads=yes ;;
--disable-pthreads) _pthreads=no ;;
+ --enable-rpath) _rpath=yes ;;
+ --disable-rpath) _rpath=no ;;
--enable-fribidi) _fribidi=yes ;;
--disable-fribidi) _fribidi=no ;;
@@ -2962,6 +2959,15 @@ else
fi
echores "$_pthreads"
+echocheck "rpath"
+netbsd &&_rpath=yes
+if test "$_rpath" = yes ; then
+ for I in `echo $_ld_extra | sed 's/-L//g'` ; do
+ tmp="$tmp ` echo $I | sed 's/.*/ -L& -Wl,-R&/'`"
+ done
+_ld_extra=$tmp
+fi
+echores "$_rpath"
echocheck "iconv"
if test "$_iconv" = auto ; then