build, qt: Always test plugins/subdir before adding to search paths

The existence of each subdir is not guaranteed for all platforms.
This commit is contained in:
Hennadii Stepanov 2021-03-12 12:51:18 +02:00
parent e0bc27a14c
commit cba4a7e416
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F
1 changed files with 6 additions and 1 deletions

View File

@ -123,7 +123,12 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
_BITCOIN_QT_CHECK_STATIC_LIBS
if test "x$qt_plugin_path" != x; then
QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms -L$qt_plugin_path/styles"
if test -d "$qt_plugin_path/platforms"; then
QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms"
fi
if test -d "$qt_plugin_path/styles"; then
QT_LIBS="$QT_LIBS -L$qt_plugin_path/styles"
fi
if test -d "$qt_plugin_path/accessible"; then
QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
fi