message: build, qt: Make Qt static libs check regardless of plugindir
  Qt static libs reside in libdir.
diff: @@ -121,6 +121,17 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
  _BITCOIN_QT_IS_STATIC
  if test "x$bitcoin_cv_static_qt" = xyes; then
  _BITCOIN_QT_CHECK_STATIC_LIBS
  +
  + if test "x$qt_plugin_path" != x; then
  + QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms"
  + if test -d "$qt_plugin_path/accessible"; then
  + QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
  + fi
  + if test -d "$qt_plugin_path/platforms/android"; then
  + QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms/android -lqtfreetype -lEGL"
  + fi
  + fi
  +
  AC_DEFINE(QT_STATICPLUGIN, 1, [Define this symbol if qt plugins are static])
  if test "x$TARGET_OS" != xandroid; then
  _BITCOIN_QT_CHECK_STATIC_PLUGIN([QMinimalIntegrationPlugin], [-lqminimal])
  @@ -307,16 +318,8 @@ dnl _BITCOIN_QT_CHECK_STATIC_LIBS
  dnl -----------------------------
  dnl
  dnl Inputs: no inputs.
  -dnl Outputs: QT_LIBS is appended
  +dnl Outputs: QT_LIBS is prepended.
  AC_DEFUN([_BITCOIN_QT_CHECK_STATIC_LIBS], [
  - if test "x$qt_plugin_path" != x; then
  - QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms"
  - if test -d "$qt_plugin_path/accessible"; then
  - QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
  - fi
  - if test -d "$qt_plugin_path/platforms/android"; then
  - QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms/android -lqtfreetype -lEGL"
  - fi
  PKG_CHECK_MODULES([QTFONTDATABASE], [Qt5FontDatabaseSupport${qt_lib_suffix}], [QT_LIBS="-lQt5FontDatabaseSupport${qt_lib_suffix} $QT_LIBS"])
  PKG_CHECK_MODULES([QTEVENTDISPATCHER], [Qt5EventDispatcherSupport${qt_lib_suffix}], [QT_LIBS="-lQt5EventDispatcherSupport${qt_lib_suffix} $QT_LIBS"])
  PKG_CHECK_MODULES([QTTHEME], [Qt5ThemeSupport${qt_lib_suffix}], [QT_LIBS="-lQt5ThemeSupport${qt_lib_suffix} $QT_LIBS"])
  @@ -330,7 +333,6 @@ AC_DEFUN([_BITCOIN_QT_CHECK_STATIC_LIBS], [
  PKG_CHECK_MODULES([QTGRAPHICS], [Qt5GraphicsSupport${qt_lib_suffix}], [QT_LIBS="-lQt5GraphicsSupport${qt_lib_suffix} $QT_LIBS"])
  PKG_CHECK_MODULES([QTCGL], [Qt5CglSupport${qt_lib_suffix}], [QT_LIBS="-lQt5CglSupport${qt_lib_suffix} $QT_LIBS"])
  fi
  - fi
  ])
  dnl Internal. Find Qt libraries using pkg-config.
  