Skip to content

Commit

Permalink
Merge pull request #3537 from wsnipex/samba4
Browse files Browse the repository at this point in the history
configure: use pkgconfig to detect samba
  • Loading branch information
davilla committed Nov 1, 2013
2 parents 7366a67 + 21b4b86 commit 7cf2716
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions configure.in
Expand Up @@ -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
Expand Down

0 comments on commit 7cf2716

Please sign in to comment.