Skip to content

Commit 92bc268

Browse files
committed
build: Detect missed pkg-config early
1 parent 1739eb2 commit 92bc268

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

configure.ac

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ AC_CONFIG_HEADERS([src/config/bitcoin-config.h])
1414
AC_CONFIG_AUX_DIR([build-aux])
1515
AC_CONFIG_MACRO_DIR([build-aux/m4])
1616

17+
m4_ifndef([PKG_PROG_PKG_CONFIG], [AC_MSG_ERROR([PKG_PROG_PKG_CONFIG macro not found. Please install pkg-config and re-run autogen.sh])])
18+
PKG_PROG_PKG_CONFIG
19+
if test "x$PKG_CONFIG" = x; then
20+
AC_MSG_ERROR([pkg-config not found])
21+
fi
22+
1723
BITCOIN_DAEMON_NAME=bitcoind
1824
BITCOIN_GUI_NAME=bitcoin-qt
1925
BITCOIN_CLI_NAME=bitcoin-cli
@@ -677,12 +683,6 @@ case $host in
677683
;;
678684
esac
679685

680-
m4_ifndef([PKG_PROG_PKG_CONFIG], [AC_MSG_ERROR([PKG_PROG_PKG_CONFIG macro not found. Please install pkg-config and re-run autogen.sh])])
681-
PKG_PROG_PKG_CONFIG
682-
if test "x$PKG_CONFIG" = x; then
683-
AC_MSG_ERROR([pkg-config not found])
684-
fi
685-
686686
if test x$use_extended_functional_tests != xno; then
687687
AC_SUBST(EXTENDED_FUNCTIONAL_TESTS, --extended)
688688
fi

0 commit comments

Comments
 (0)