[libxslt] configure.ac: Invoke PKG_CHECK_MODULES for building shared libraries
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] configure.ac: Invoke PKG_CHECK_MODULES for building shared libraries
- Date: Fri, 2 Aug 2019 11:56:14 +0000 (UTC)
commit 20cadc71bda05542bb21cb0aded54dd27d369826
Author: Hugh McMaster <hugh mcmaster outlook com>
Date: Thu Aug 1 21:35:47 2019 +1000
configure.ac: Invoke PKG_CHECK_MODULES for building shared libraries
configure.ac | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b55ccb49..63915d4e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -530,11 +530,15 @@ dnl
dnl Try pkg-config first if nothing is set
dnl
-if test "x$LIBXML_CONFIG_PREFIX" = "x" -a "x$LIBXML_LIBS" = "x"
-then
- PKG_CHECK_MODULES([LIBXML], [libxml-2.0 >= $LIBXML_REQUIRED_VERSION], [
- WITH_MODULES="`$PKG_CONFIG --variable=modules libxml-2.0`"
- ], [ ])
+if test "x$LIBXML_CONFIG_PREFIX" = "x" -a "x$LIBXML_LIBS" = "x"; then
+ if test "$build_static_libs" = "no"; then
+ PKG_CHECK_MODULES([LIBXML], [libxml-2.0 >= $LIBXML_REQUIRED_VERSION], [
+ WITH_MODULES="`$PKG_CONFIG --variable=modules libxml-2.0`"
+ ], [ ])
+ else
+ PKG_CHECK_MODULES_STATIC([LIBXML], [libxml-2.0 >= $LIBXML_REQUIRED_VERSION],
+ [ ], [ ])
+ fi
fi
dnl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]