[PATCH] configure: Use pkg-config(1) to find libnetapi.
Charles Davis
cdavis5x at gmail.com
Fri Feb 12 02:58:27 CST 2016
Some distros and package managers put it in non-standard places.
MacPorts, for example, puts it in ${macports_prefix}/lib/samba3.
Signed-off-by: Charles Davis <cdavis5x at gmail.com>
---
configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 5abd665..1700ae2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1720,7 +1720,8 @@ WINE_CHECK_SONAME(odbc,SQLConnect,,
dnl **** Check for libnetapi ****
if test "x$with_netapi" != "xno"
then
- WINE_CHECK_SONAME(netapi,libnetapi_init,,[AC_DEFINE_UNQUOTED(SONAME_LIBNETAPI,["libnetapi.$LIBEXT"])])
+ WINE_PACKAGE_FLAGS(NETAPI,[netapi],,,,
+ [WINE_CHECK_SONAME(netapi,libnetapi_init,,[AC_DEFINE_UNQUOTED(SONAME_LIBNETAPI,["libnetapi.$LIBEXT"])],[$NETAPI_LIBS])])
fi
dnl **** Check for any sound system ****
--
2.7.1
More information about the wine-patches
mailing list