diff mbox series

[23/25] configure.ac: fix smbclient detection

Message ID 20220209222610.438470-24-mcgrof@kernel.org (mailing list archive)
State New, archived
Headers show
Series dbench: fix compile warnings and update a bit | expand

Commit Message

Luis Chamberlain Feb. 9, 2022, 10:26 p.m. UTC
We need to ask smbclient for the cflags, otherwise
the headers won't be found.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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>