summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-20 15:11:49 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-20 15:11:49 +0000
commit1bff4ebaaa29fe0f18faa6a862b9e9a4c993299d (patch)
tree2b3c37a728d76a1a4cd6ad93ba83820b94533e9b /configure
parenta2d815af67d58c61d34fb9eb44925969dbaaaba7 (diff)
downloadmpv-1bff4ebaaa29fe0f18faa6a862b9e9a4c993299d.tar.bz2
mpv-1bff4ebaaa29fe0f18faa6a862b9e9a4c993299d.tar.xz
added dynamic linking flags runtime detection (-rdynamic - also now MPlayer compiles and runs fine under QNX)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3029 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure31
1 files changed, 27 insertions, 4 deletions
diff --git a/configure b/configure
index 827b65301d..27520cb695 100755
--- a/configure
+++ b/configure
@@ -978,6 +978,7 @@ fi
echores "$_kstat"
+# required for nanosleep on some systems
echocheck "posix4"
cat > $TMPC << EOF
int main(void) { return 0; }
@@ -998,7 +999,7 @@ EOF
cc_check $_ld_sock -lsocket && _ld_sock="$_ld_sock -lsocket"
cc_check $_ld_sock -lnsl && _ld_sock="$_ld_sock -lnsl"
if test "$_ld_sock" ; then
- echores "$_ld_sock"
+ echores "using $_ld_sock"
else
echores "not needed"
fi
@@ -1091,6 +1092,28 @@ fi
echores "$_dl"
+echocheck "dynamic linking"
+# FIXME !! make this dynamic detection to work
+# also gcc flags are different, but ld flags aren't (-Bdynamic/-Bstatic/-Bsymbolic)
+_ld_dl_dynamic=''
+if qnx ; then
+ _ld_dl_dynamic=''
+else
+ _ld_dl_dynamic='-rdynamic'
+fi
+#cat > $TMPC << EOF
+#int main(void) { return 0; }
+#EOF
+#if cc_check -rdynamic ; then
+# _ld_dl_dynamic='-rdynamic'
+#elif cc_check -Bdynamic ; then
+# _ld_dl_dynamic='-Bdynamic'
+#elif cc_check ; then
+# _ld_dl_dynamic=''
+#fi
+echores "using $_ld_dl_dynamic"
+
+
echocheck "pthread"
cat > $TMPC << EOF
#include <pthread.h>
@@ -1103,7 +1126,7 @@ elif cc_check -lpthread ; then
elif cc_check -pthread ; then
_ld_pthread='-pthread'
else
- die "Lib pthread not found."
+ die "Lib pthread not found. (needed by windows and networking stuff)"
fi
echores "using $_ld_pthread"
@@ -2342,8 +2365,8 @@ else
_confcygwin="TARGET_CYGWIN = no"
fi
-_ld_arch="$_ld_pthread $_ld_dl"
-bsd && _ld_arch="-rdynamic $_ld_arch"
+_ld_arch="$_ld_pthread $_ld_dl $_ld_dl_dynamic"
+#bsd && _ld_arch="-rdynamic $_ld_arch"
bsdos && _ld_arch="$_ld_arch -ldvd"
_def_debug='#undef MP_DEBUG'