diff options
| author | Xavier Bachelot <xavier@bachelot.org> | 2013-07-03 22:15:11 +0200 |
|---|---|---|
| committer | Xavier Bachelot <xavier@bachelot.org> | 2013-07-03 22:15:11 +0200 |
| commit | 7148615ab8baa05b27d2e8b190beccc55c92b37a (patch) | |
| tree | ab14241aebdce734c3a7b6fd672073f1f5ab1274 /m4 | |
| parent | 1a36b41cc18e93c4f6c9aac87953cb8a2ea360d6 (diff) | |
| download | xine-lib-7148615ab8baa05b27d2e8b190beccc55c92b37a.tar.gz xine-lib-7148615ab8baa05b27d2e8b190beccc55c92b37a.tar.bz2 | |
Use pkg-config to detect Samba client library.
Original patch for xine-lib 1.1 from Kevin Kofler <Kevin@tigcc.ticalc.org>.
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/input.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/input.m4 b/m4/input.m4 index 21d7e216f..0401bd999 100644 --- a/m4/input.m4 +++ b/m4/input.m4 @@ -79,8 +79,10 @@ AC_DEFUN([XINE_INPUT_PLUGINS], [ dnl libsmbclient XINE_ARG_ENABLE([samba], [Enable support for the Samba plugin]) if test x"$enable_samba" != x"no"; then - AC_CHECK_LIB([smbclient], [smbc_init], - [AC_CHECK_HEADERS([libsmbclient.h], [have_samba=yes LIBSMBCLIENT_LIBS="-lsmbclient"])]) + PKG_CHECK_MODULES([LIBSMBCLIENT], [smbclient], + [have_samba=yes], + AC_MSG_RESULT(*** All libsmbclient dependent parts will be disabled ***)) + AC_SUBST(LIBSMBCLIENT_CFLAGS) AC_SUBST(LIBSMBCLIENT_LIBS) if test x"$hard_enable_samba" = x"yes" && test x"$have_samba" != x"yes"; then AC_MSG_ERROR([Samba support requested, but Samba not found]) |
