summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2022-08-14 01:19:21 +0400
committerGitHub <noreply@github.com>2022-08-14 01:19:21 +0400
commit2791d41bb3fef7f07fb9d49088db64e80e7dd8f8 (patch)
treeeaa5a743a5510c24180a213e881e5bb98892bbd9 /configure.ac
parent5dab337c7a42044a170e1e64b0a373f63be26973 (diff)
parenta36fdfad210b087949750c8edaadbe97965a63c9 (diff)
downloadlibrcc-2791d41bb3fef7f07fb9d49088db64e80e7dd8f8.tar.gz
librcc-2791d41bb3fef7f07fb9d49088db64e80e7dd8f8.tar.bz2
librcc-2791d41bb3fef7f07fb9d49088db64e80e7dd8f8.tar.xz
librcc-2791d41bb3fef7f07fb9d49088db64e80e7dd8f8.zip
Merge pull request #2 from hughmcmaster/debian-libxml2
configure.ac: Use pkg-config to detect libxml2
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 2 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index bff29bb..9248faa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,7 @@ dnl Checks for programs.
AC_PATH_PROG(RM, rm, /bin/rm)
AC_PATH_PROG(MV, mv, /bin/mv)
AC_PATH_PROG(TAR, tar, /bin/tar)
+PKG_PROG_PKG_CONFIG
dnl Fixing ugly libtool, see for details
dnl http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523750
@@ -78,14 +79,7 @@ dnl Checks for libraries.
dnl ***
dnl *** LibXML2 (Mandatory)
dnl ***
-AC_PATH_PROG(XML2_CONFIG, xml2-config, no)
-if test $XML2_CONFIG = no; then
- AC_MSG_ERROR(LibXML2 is required)
-fi
-XML_LIBS="\`xml2-config --libs\`"
-XML_INCLUDES="\`xml2-config --cflags\`"
-AC_SUBST(XML_LIBS)
-AC_SUBST(XML_INCLUDES)
+PKG_CHECK_MODULES([XML2], [libxml-2.0])
dnl ***
dnl *** GTK1 (Optional)