1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

GUILE_PKG bails out when 'pkg-config' is missing

* meta/guile.m4 (GUILE_PKG): Ensure that 'pkg-config' is available. Use
AC_REQUIRE for PKG_PROG_PKG_CONFIG to avoid unnecessary invocations.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Mathieu Lirzin 2020-05-09 01:02:01 +02:00 committed by Ludovic Courtès
parent f55740f0cd
commit 02a31d6885

View file

@ -60,7 +60,10 @@
# @code{AC_SUBST}. # @code{AC_SUBST}.
# #
AC_DEFUN([GUILE_PKG], AC_DEFUN([GUILE_PKG],
[PKG_PROG_PKG_CONFIG [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
if test "x$PKG_CONFIG" = x; then
AC_MSG_ERROR([pkg-config is missing, please install it])
fi
_guile_versions_to_search="m4_default([$1], [3.0 2.2 2.0])" _guile_versions_to_search="m4_default([$1], [3.0 2.2 2.0])"
if test -n "$GUILE_EFFECTIVE_VERSION"; then if test -n "$GUILE_EFFECTIVE_VERSION"; then
_guile_tmp="" _guile_tmp=""