Merge pull request #1588 from kleisauke/expat-pkgconf
Prefer to find expat with pkg-config
This commit is contained in:
commit
080ecbb54e
13
configure.ac
13
configure.ac
@ -576,9 +576,16 @@ PKG_CHECK_MODULES(HAVE_CHECKED_MUL, glib-2.0 >= 2.48,
|
|||||||
# check for gtk-doc
|
# check for gtk-doc
|
||||||
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
|
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
|
||||||
|
|
||||||
# we need expat ... we'd love to use expat.pc, but sadly this is only available
|
# we need expat ... the .pc file for expat is only available
|
||||||
# for recent linuxes, so we have to use the old and horrible expat.m4
|
# for recent linuxes, so we fall back to AM_WITH_EXPAT
|
||||||
AM_WITH_EXPAT
|
PKG_CHECK_MODULES(EXPAT, expat,
|
||||||
|
[expat_found=yes
|
||||||
|
PACKAGES_USED="$PACKAGES_USED expat"
|
||||||
|
],
|
||||||
|
[AM_WITH_EXPAT
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
if test x"$expat_found" = x"no"; then
|
if test x"$expat_found" = x"no"; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user