--- m4/input.m4 2012-02-09 00:41:11.000000000 +0100 +++ m4/input.m4 2013-01-21 05:52:13.937273812 +0100 @@ -79,9 +79,7 @@ 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"])]) - AC_SUBST(LIBSMBCLIENT_LIBS) + PKG_CHECK_MODULES([LIBSMBCLIENT], [smbclient], [have_samba=yes], [have_samba=no]) 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]) fi --- src/input/Makefile.am 2012-02-05 20:17:02.000000000 +0100 +++ src/input/Makefile.am 2013-01-21 05:50:04.652999494 +0100 @@ -145,6 +145,7 @@ xineplug_inp_smb_la_SOURCES = input_smb.c xineplug_inp_smb_la_LIBADD = $(XINE_LIB) $(LIBSMBCLIENT_LIBS) $(LTLIBINTL) +xineplug_inp_smb_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBSMBCLIENT_CFLAGS) xineplug_inp_pvr_la_SOURCES = input_pvr.c xineplug_inp_pvr_la_LIBADD = $(XINE_LIB) $(PTHREAD_LIBS) $(LTLIBINTL)