summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorlumag <lumag@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-01 10:51:11 +0000
committerlumag <lumag@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-01 10:51:11 +0000
commit41020583677412ed9ef8946845a1d7ef56d95555 (patch)
treeb9ca6e53031fd5ba29a7db5a4112504f4da8e8b7 /configure
parentc97aba089910fdc7a8c5e12acddedc0bd341f005 (diff)
downloadmpv-41020583677412ed9ef8946845a1d7ef56d95555.tar.bz2
mpv-41020583677412ed9ef8946845a1d7ef56d95555.tar.xz
Fixed smbclient (added probbing if we need -lnsl-ldl ) & lirc detection (/dev/lirc may be a directory, so right device is /dev/lirc/0)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10776 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 12 insertions, 3 deletions
diff --git a/configure b/configure
index 908614d52b..25c7dd8228 100755
--- a/configure
+++ b/configure
@@ -2539,9 +2539,18 @@ if test "$_smbsupport" = auto; then
int main(void) { smbc_opendir("smb://"); return 0; }
EOF
if cc_check -lsmbclient ; then
-# this is not working for me becouse it needs -ldl and some NIS (YP) libs
-# $_ld_dl and -lyp ? should be added
_smbsupport=yes
+ _ld_smb="-lsmbclient"
+ else
+ if cc_check -lsmbclient $_ld_dl ; then
+ _smbsupport=yes
+ _ld_smb="-lsmbclient $_ld_dl"
+ else
+ if cc_check -lsmbclient $_ld_dl -lnsl ; then
+ _smbsupport=yes
+ _ld_smb="-lsmbclient $_ld_dl -lnsl"
+ fi
+ fi
fi
fi
@@ -5378,7 +5387,7 @@ echo Checking for joystick ... "$_joystick"
echocheck "lirc"
if test "$_lirc" = auto ; then
_lirc=no
- if test -c /dev/lirc ; then
+ if test -c /dev/lirc -o -c /dev/lirc/0 ; then
cat > $TMPC <<EOF
#include <lirc/lirc_client.h>
int main(void) { return 0; }