Permalink
Browse files

Merge pull request #3537 from wsnipex/samba4

configure: use pkgconfig to detect samba
  • Loading branch information...
2 parents 7366a67 + 21b4b86 commit 7cf271662b1cb10990ed09b2fbd9faa47c32ef46 @davilla davilla committed Nov 1, 2013
Showing with 6 additions and 3 deletions.
  1. +6 −3 configure.in
View
@@ -1522,9 +1522,12 @@ fi
# samba
if test "x$use_samba" != "xno"; then
- AC_CHECK_LIB([smbclient], [main],,
- use_samba=no;AC_MSG_ERROR($missing_library))
- USE_LIBSMBCLIENT=0
+ PKG_CHECK_MODULES([SAMBA], [smbclient],
+ [INCLUDES="$INCLUDES $SAMBA_CFLAGS"; LIBS="$LIBS $SAMBA_LIBS"],
+ [AC_CHECK_LIB([smbclient], [main],,
+ use_samba=no;AC_MSG_ERROR($missing_library))
+ USE_LIBSMBCLIENT=0
+ ])
else
AC_MSG_RESULT($samba_disabled)
USE_LIBSMBCLIENT=0

0 comments on commit 7cf2716

Please sign in to comment.