[Mplayer-cvslog] CVS: main configure,1.758,1.759
Dmitry Baryshkov CVS
lumag at mplayerhq.hu
Mon Sep 1 12:51:41 CEST 2003
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv18188
Modified Files:
configure
Log Message:
Fixed smbclient (added probbing if we need -lnsl-ldl ) & lirc detection (/dev/lirc may be a directory, so right device is /dev/lirc/0)
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.758
retrieving revision 1.759
diff -u -r1.758 -r1.759
--- configure 31 Aug 2003 23:23:22 -0000 1.758
+++ configure 1 Sep 2003 10:51:11 -0000 1.759
@@ -2539,9 +2539,18 @@
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 @@
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; }
More information about the MPlayer-cvslog
mailing list