mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2026-01-26 21:41:34 +03:00
Fix build with older pkg-config versions
The PKG_CHECK_VAR macro was introduced in pkg-config 0.28. Guard the invocation with m4_ifdef. Fixes #374.
This commit is contained in:
@@ -1226,7 +1226,8 @@ else
|
||||
[have_libicu=no])
|
||||
|
||||
if test "x$have_libicu" = "xyes"; then
|
||||
PKG_CHECK_VAR([ICU_DEFS], [icu-i18n], [DEFS])
|
||||
m4_ifdef([PKG_CHECK_VAR],
|
||||
[PKG_CHECK_VAR([ICU_DEFS], [icu-i18n], [DEFS])])
|
||||
if test "x$ICU_DEFS" != "x"; then
|
||||
CPPFLAGS="$CPPFLAGS $ICU_DEFS"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user