configure.ac: detect libsmbclient without pkg-config
The pkg-config file has been added in Samba 4.0. This commits adds a fallback for older libsmbclient versions.
This commit is contained in:
parent
5273900b0e
commit
36bab6ef06
@ -837,7 +837,8 @@ fi
|
|||||||
AM_CONDITIONAL(ENABLE_CURL, test x$enable_curl = xyes)
|
AM_CONDITIONAL(ENABLE_CURL, test x$enable_curl = xyes)
|
||||||
|
|
||||||
dnl ----------------------------------- smbclient -----------------------------
|
dnl ----------------------------------- smbclient -----------------------------
|
||||||
MPD_AUTO_PKG(smbclient, SMBCLIENT, [smbclient >= 0.2],
|
MPD_AUTO_PKG_LIB(smbclient, SMBCLIENT, [smbclient >= 0.2],
|
||||||
|
[smbclient], [smbc_init], [-lsmbclient], [],
|
||||||
[smbclient input plugin], [libsmbclient not found])
|
[smbclient input plugin], [libsmbclient not found])
|
||||||
if test x$enable_smbclient = xyes; then
|
if test x$enable_smbclient = xyes; then
|
||||||
AC_DEFINE(ENABLE_SMBCLIENT, 1, [Define when libsmbclient is used])
|
AC_DEFINE(ENABLE_SMBCLIENT, 1, [Define when libsmbclient is used])
|
||||||
|
Loading…
Reference in New Issue
Block a user