summaryrefslogtreecommitdiffstats
path: root/subsurface-configure.pri
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-01-15 09:27:38 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-15 15:49:41 +0700
commit93c73ccc6815e1980a5300c75803d98aedb55b70 (patch)
tree96baba88aa79bc30e6f0ed2e416e5f048d50d046 /subsurface-configure.pri
parent11dd5bda57578bd6e89e67dd5da38bfce9c37771 (diff)
downloadsubsurface-93c73ccc6815e1980a5300c75803d98aedb55b70.tar.gz
Query pkg-config with libxml2 via default name to
On Ubuntu and in the source package, libxml2 defaults to naming its pkg-config file to libxml-2.0.pc so query after the package with that name to. I don't know what platform ships it as libxml2, so that might be a typo. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-configure.pri')
-rw-r--r--subsurface-configure.pri4
1 files changed, 4 insertions, 0 deletions
diff --git a/subsurface-configure.pri b/subsurface-configure.pri
index 242a186ef..b61ff4275 100644
--- a/subsurface-configure.pri
+++ b/subsurface-configure.pri
@@ -99,6 +99,10 @@ link_pkgconfig {
XML2_CFLAGS = $$system($$PKG_CONFIG --cflags libxml2 2> $$NUL)
XML2_LIBS = $$system($$PKG_CONFIG --libs libxml2 2> $$NUL)
}
+ isEmpty(XML2_CFLAGS)|isEmpty(XML2_LIBS) {
+ XML2_CFLAGS = $$system($$PKG_CONFIG --cflags libxml-2.0 2> $$NUL)
+ XML2_LIBS = $$system($$PKG_CONFIG --libs libxml-2.0 2> $$NUL)
+ }
isEmpty(XSLT_CFLAGS)|isEmpty(XSLT_LIBS) {
XSLT_CFLAGS = $$system($$PKG_CONFIG --cflags libxslt 2> $$NUL)
XSLT_LIBS = $$system($$PKG_CONFIG --libs libxslt 2> $$NUL)