Skip to content

Commit 1739eb2

Browse files
committed
build: Drop unused use_pkgconfig variable
1 parent a661449 commit 1739eb2

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

configure.ac

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,6 @@ AC_ARG_WITH([daemon],
573573
[build_bitcoind=$withval],
574574
[build_bitcoind=yes])
575575

576-
use_pkgconfig=yes
577576
case $host in
578577
*mingw*)
579578
TARGET_OS=windows
@@ -678,14 +677,10 @@ case $host in
678677
;;
679678
esac
680679

681-
if test x$use_pkgconfig = xyes; then
682-
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.)])
683-
m4_ifdef([PKG_PROG_PKG_CONFIG], [
684-
PKG_PROG_PKG_CONFIG
685-
if test x"$PKG_CONFIG" = "x"; then
686-
AC_MSG_ERROR(pkg-config not found.)
687-
fi
688-
])
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])
689684
fi
690685

691686
if test x$use_extended_functional_tests != xno; then

0 commit comments

Comments
 (0)