message: fixup configure script
diff: @@ -88,9 +88,6 @@ AC_ARG_VAR(PYTHONPATH, Augments the default search path for python module files)
  # probably be removed when building on <= 10.6 is no longer supported.
  m4_include([pkg.m4])
  -dnl pkg-config check.
  -PKG_PROG_PKG_CONFIG
  -
  # Enable wallet
  AC_ARG_ENABLE([wallet],
  [AS_HELP_STRING([--enable-wallet],
  @@ -350,6 +347,16 @@ case $host in
  ;;
  esac
  +if test x$use_pkgconfig = xyes; then
  + 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.)])
  + m4_ifdef([PKG_PROG_PKG_CONFIG], [
  + PKG_PROG_PKG_CONFIG
  + if test x"$PKG_CONFIG" = "x"; then
  + AC_MSG_ERROR(pkg-config not found.)
  + fi
  + ])
  +fi
  +
  if test x$use_comparison_tool != xno; then
  AC_SUBST(JAVA_COMPARISON_TOOL, $use_comparison_tool)
  fi
  @@ -709,12 +716,7 @@ fi
  fi
  if test x$use_pkgconfig = xyes; then
  -
  - if test x"$PKG_CONFIG" = "x"; then
  - AC_MSG_ERROR(pkg-config not found.)
  - fi
  -
  - : #NOP
  + : dnl
  m4_ifdef(
  [PKG_CHECK_MODULES],
  [
  @@ -966,6 +968,13 @@ AC_SUBST(BUILD_QT)
  AC_SUBST(BUILD_TEST_QT)
  AC_SUBST(MINIUPNPC_CPPFLAGS)
  AC_SUBST(MINIUPNPC_LIBS)
  +AC_SUBST(CRYPTO_LIBS)
  +AC_SUBST(SSL_LIBS)
  +AC_SUBST(EVENT_LIBS)
  +AC_SUBST(EVENT_PTHREADS_LIBS)
  +AC_SUBST(ZMQ_LIBS)
  +AC_SUBST(PROTOBUF_LIBS)
  +AC_SUBST(QR_LIBS)
  AC_CONFIG_FILES([Makefile src/Makefile share/setup.nsi share/qt/Info.plist src/test/buildenv.py])
  AC_CONFIG_FILES([qa/pull-tester/run-bitcoind-for-test.sh],[chmod +x qa/pull-tester/run-bitcoind-for-test.sh])
  AC_CONFIG_FILES([qa/pull-tester/tests-config.sh],[chmod +x qa/pull-tester/tests-config.sh])
  