We need to ask smbclient for the cflags, otherwise the headers won't be found. Signed-off-by: Luis Chamberlain <mcgrof@xxxxxxxxxx> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b8c26fe..93763d4 100644 --- a/configure.ac +++ b/configure.ac @@ -113,7 +113,7 @@ fi AC_MSG_CHECKING(whether libsmbclient is available) ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" -CFLAGS="$CFLAGS $GLIB_CFLAGS" +CFLAGS="$CFLAGS $GLIB_CFLAGS $(pkg-config --cflags smbclient)" LIBS="$GLIB_LIBS $LIBS -lsmbclient" AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <stdio.h> -- 2.34.1