@@ -53,8 +53,8 @@ dnl CAUTION: Do not use this inside of a conditional.
5353AC_DEFUN ( [ BITCOIN_QT_INIT] ,[
5454 dnl enable qt support
5555 AC_ARG_WITH ( [ gui] ,
56- [ AS_HELP_STRING ( [ --with-gui@<:@ =no|qt4| qt5|auto@:>@ ] ,
57- [ build pivx-qt GUI (default=auto, qt5 tried first )] ) ] ,
56+ [ AS_HELP_STRING ( [ --with-gui@<:@ =no|qt5|auto@:>@ ] ,
57+ [ build pivx-qt GUI (default=auto)] ) ] ,
5858 [
5959 bitcoin_qt_want_version=$withval
6060 if test "x$bitcoin_qt_want_version" = xyes; then
@@ -94,83 +94,66 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
9494 fi
9595
9696 if test "x$use_pkgconfig" = xyes; then
97- BITCOIN_QT_CHECK([ _BITCOIN_QT_FIND_LIBS_WITH_PKGCONFIG( [ $2 ] ) ] )
97+ BITCOIN_QT_CHECK([ _BITCOIN_QT_FIND_LIBS_WITH_PKGCONFIG] )
9898 else
9999 BITCOIN_QT_CHECK([ _BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG] )
100100 fi
101101
102102 dnl This is ugly and complicated. Yuck. Works as follows:
103- dnl We can't discern whether Qt4 builds are static or not. For Qt5, we can
104- dnl check a header to find out. When Qt is built statically, some plugins must
105- dnl be linked into the final binary as well. These plugins have changed between
106- dnl Qt4 and Qt5. With Qt5, languages moved into core and the WindowsIntegration
107- dnl plugin was added. Since we can't tell if Qt4 is static or not, it is
108- dnl assumed for windows builds.
103+ dnl For Qt5, we can check a header to find out whether Qt is build
104+ dnl statically. When Qt is built statically, some plugins must be linked into
105+ dnl the final binary as well.
106+ dnl With Qt5, languages moved into core and the WindowsIntegration plugin was
107+ dnl added.
109108 dnl _BITCOIN_QT_CHECK_STATIC_PLUGINS does a quick link-check and appends the
110109 dnl results to QT_LIBS.
111110 BITCOIN_QT_CHECK([
112111 TEMP_CPPFLAGS=$CPPFLAGS
113112 TEMP_CXXFLAGS=$CXXFLAGS
114113 CPPFLAGS="$QT_INCLUDES $CPPFLAGS"
115114 CXXFLAGS="$PIC_FLAGS $CXXFLAGS"
116- if test "x$bitcoin_qt_got_major_vers" = x5; then
117- TEMP_CPPFLAGS="$TEMP_CPPFLAGS -DHAVE_QT5"
118- _BITCOIN_QT_IS_STATIC
119- if test "x$bitcoin_cv_static_qt" = xyes; then
120- _BITCOIN_QT_FIND_STATIC_PLUGINS
121- AC_DEFINE ( QT_STATICPLUGIN , 1 , [ Define this symbol if qt plugins are static] )
122- AC_CACHE_CHECK ( for Qt < 5.4 , bitcoin_cv_need_acc_widget ,[
123- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
124- #include <QtCore/qconfig.h>
125- #ifndef QT_VERSION
126- # include <QtCore/qglobal.h>
127- #endif
128- ] ] ,
129- [ [
130- #if QT_VERSION >= 0x050400
131- choke
132- #endif
133- ] ] ) ] ,
134- [ bitcoin_cv_need_acc_widget=yes] ,
135- [ bitcoin_cv_need_acc_widget=no] )
136- ] )
137- if test "x$bitcoin_cv_need_acc_widget" = xyes; then
138- _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(AccessibleFactory)] , [ -lqtaccessiblewidgets] )
139- fi
140- _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QMinimalIntegrationPlugin)] ,[ -lqminimal] )
141- AC_DEFINE ( QT_QPA_PLATFORM_MINIMAL , 1 , [ Define this symbol if the minimal qt platform exists] )
142- if test "x$TARGET_OS" = xwindows; then
143- _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)] ,[ -lqwindows] )
144- AC_DEFINE ( QT_QPA_PLATFORM_WINDOWS , 1 , [ Define this symbol if the qt platform is windows] )
145- elif test "x$TARGET_OS" = xlinux; then
146- _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)] ,[ -lqxcb -lxcb-static] )
147- AC_DEFINE ( QT_QPA_PLATFORM_XCB , 1 , [ Define this symbol if the qt platform is xcb] )
148- elif test "x$TARGET_OS" = xdarwin; then
149- AX_CHECK_LINK_FLAG ( [ [ -framework IOKit] ] ,[ QT_LIBS="$QT_LIBS -framework IOKit"] ,[ AC_MSG_ERROR ( could not iokit framework ) ] )
150- _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin)] ,[ -lqcocoa] )
151- AC_DEFINE ( QT_QPA_PLATFORM_COCOA , 1 , [ Define this symbol if the qt platform is cocoa] )
152- fi
115+ _BITCOIN_QT_IS_STATIC
116+ if test "x$bitcoin_cv_static_qt" = xyes; then
117+ _BITCOIN_QT_FIND_STATIC_PLUGINS
118+ AC_DEFINE ( QT_STATICPLUGIN , 1 , [ Define this symbol if qt plugins are static] )
119+ AC_CACHE_CHECK ( for Qt < 5.4 , bitcoin_cv_need_acc_widget ,[
120+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
121+ #include <QtCore/qconfig.h>
122+ #ifndef QT_VERSION
123+ # include <QtCore/qglobal.h>
124+ #endif
125+ ] ] ,
126+ [ [
127+ #if QT_VERSION >= 0x050400
128+ choke
129+ #endif
130+ ] ] ) ] ,
131+ [ bitcoin_cv_need_acc_widget=yes] ,
132+ [ bitcoin_cv_need_acc_widget=no] )
133+ ] )
134+ if test "x$bitcoin_cv_need_acc_widget" = xyes; then
135+ _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(AccessibleFactory)] , [ -lqtaccessiblewidgets] )
153136 fi
154- else
137+ _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QMinimalIntegrationPlugin)] ,[ -lqminimal] )
138+ AC_DEFINE ( QT_QPA_PLATFORM_MINIMAL , 1 , [ Define this symbol if the minimal qt platform exists] )
155139 if test "x$TARGET_OS" = xwindows; then
156- AC_DEFINE ( QT_STATICPLUGIN , 1 , [ Define this symbol if qt plugins are static] )
157- _BITCOIN_QT_CHECK_STATIC_PLUGINS([
158- Q_IMPORT_PLUGIN(qcncodecs)
159- Q_IMPORT_PLUGIN(qjpcodecs)
160- Q_IMPORT_PLUGIN(qtwcodecs)
161- Q_IMPORT_PLUGIN(qkrcodecs)
162- Q_IMPORT_PLUGIN(AccessibleFactory)] ,
163- [ -lqcncodecs -lqjpcodecs -lqtwcodecs -lqkrcodecs -lqtaccessiblewidgets] )
140+ _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)] ,[ -lqwindows] )
141+ AC_DEFINE ( QT_QPA_PLATFORM_WINDOWS , 1 , [ Define this symbol if the qt platform is windows] )
142+ elif test "x$TARGET_OS" = xlinux; then
143+ _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)] ,[ -lqxcb -lxcb-static] )
144+ AC_DEFINE ( QT_QPA_PLATFORM_XCB , 1 , [ Define this symbol if the qt platform is xcb] )
145+ elif test "x$TARGET_OS" = xdarwin; then
146+ AX_CHECK_LINK_FLAG ( [ [ -framework IOKit] ] ,[ QT_LIBS="$QT_LIBS -framework IOKit"] ,[ AC_MSG_ERROR ( could not iokit framework ) ] )
147+ _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin)] ,[ -lqcocoa] )
148+ AC_DEFINE ( QT_QPA_PLATFORM_COCOA , 1 , [ Define this symbol if the qt platform is cocoa] )
164149 fi
165150 fi
166151 CPPFLAGS=$TEMP_CPPFLAGS
167152 CXXFLAGS=$TEMP_CXXFLAGS
168153 ] )
169154
170155 if test "x$use_pkgconfig$qt_bin_path" = xyes; then
171- if test "x$bitcoin_qt_got_major_vers" = x5; then
172- qt_bin_path="`$PKG_CONFIG --variable=host_bins Qt5Core 2>/dev/null`"
173- fi
156+ qt_bin_path="`$PKG_CONFIG --variable=host_bins Qt5Core 2>/dev/null`"
174157 fi
175158
176159 if test "x$use_hardening" != xno; then
@@ -220,11 +203,11 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
220203 ] )
221204 fi
222205
223- BITCOIN_QT_PATH_PROGS([ MOC] , [ moc-qt${bitcoin_qt_got_major_vers} moc${bitcoin_qt_got_major_vers} moc] , $qt_bin_path)
224- BITCOIN_QT_PATH_PROGS([ UIC] , [ uic-qt${bitcoin_qt_got_major_vers} uic${bitcoin_qt_got_major_vers} uic] , $qt_bin_path)
225- BITCOIN_QT_PATH_PROGS([ RCC] , [ rcc-qt${bitcoin_qt_got_major_vers} rcc${bitcoin_qt_got_major_vers} rcc] , $qt_bin_path)
226- BITCOIN_QT_PATH_PROGS([ LRELEASE] , [ lrelease-qt${bitcoin_qt_got_major_vers} lrelease${bitcoin_qt_got_major_vers} lrelease] , $qt_bin_path)
227- BITCOIN_QT_PATH_PROGS([ LUPDATE] , [ lupdate-qt${bitcoin_qt_got_major_vers} lupdate${bitcoin_qt_got_major_vers} lupdate] ,$qt_bin_path, yes)
206+ BITCOIN_QT_PATH_PROGS([ MOC] , [ moc-qt5 moc5 moc] , $qt_bin_path)
207+ BITCOIN_QT_PATH_PROGS([ UIC] , [ uic-qt5 uic5 uic] , $qt_bin_path)
208+ BITCOIN_QT_PATH_PROGS([ RCC] , [ rcc-qt5 rcc5 rcc] , $qt_bin_path)
209+ BITCOIN_QT_PATH_PROGS([ LRELEASE] , [ lrelease-qt5 lrelease5 lrelease] , $qt_bin_path)
210+ BITCOIN_QT_PATH_PROGS([ LUPDATE] , [ lupdate-qt5 lupdate5 lupdate] ,$qt_bin_path, yes)
228211
229212 MOC_DEFS='-DHAVE_CONFIG_H -I$(srcdir)'
230213 case $host in
@@ -263,7 +246,7 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
263246 ] ,[
264247 bitcoin_enable_qt=no
265248 ] )
266- AC_MSG_RESULT ( [ $bitcoin_enable_qt (Qt${bitcoin_qt_got_major_vers} )] )
249+ AC_MSG_RESULT ( [ $bitcoin_enable_qt (Qt5 )] )
267250
268251 AC_SUBST ( QT_PIE_FLAGS )
269252 AC_SUBST ( QT_INCLUDES )
@@ -273,7 +256,7 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
273256 AC_SUBST ( QT_DBUS_LIBS )
274257 AC_SUBST ( QT_TEST_INCLUDES )
275258 AC_SUBST ( QT_TEST_LIBS )
276- AC_SUBST ( QT_SELECT , qt${bitcoin_qt_got_major_vers} )
259+ AC_SUBST ( QT_SELECT , qt5 )
277260 AC_SUBST ( MOC_DEFS )
278261] )
279262
@@ -302,7 +285,7 @@ AC_DEFUN([_BITCOIN_QT_CHECK_QT5],[
302285] ) ] )
303286
304287dnl Internal. Check if the linked version of Qt was built as static libs.
305- dnl Requires: Qt5. This check cannot determine if Qt4 is static.
288+ dnl Requires: Qt5.
306289dnl Requires: INCLUDES and LIBS must be populated as necessary.
307290dnl Output: bitcoin_cv_static_qt=yes|no
308291dnl Output: Defines QT_STATICPLUGIN if plugins are static.
@@ -347,58 +330,50 @@ AC_DEFUN([_BITCOIN_QT_CHECK_STATIC_PLUGINS],[
347330] )
348331
349332dnl Internal. Find paths necessary for linking qt static plugins
350- dnl Inputs: bitcoin_qt_got_major_vers. 4 or 5.
351333dnl Inputs: qt_plugin_path. optional.
352334dnl Outputs: QT_LIBS is appended
353335AC_DEFUN ( [ _BITCOIN_QT_FIND_STATIC_PLUGINS] ,[
354- if test "x$bitcoin_qt_got_major_vers" = x5; then
355- if test "x$qt_plugin_path" != x; then
356- QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms"
357- if test -d "$qt_plugin_path/accessible"; then
358- QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
359- fi
336+ if test "x$qt_plugin_path" != x; then
337+ QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms"
338+ if test -d "$qt_plugin_path/accessible"; then
339+ QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
360340 fi
361- if test "x$use_pkgconfig" = xyes; then
362- : dnl
363- m4_ifdef ( [ PKG_CHECK_MODULES] ,[
364- PKG_CHECK_MODULES([ QTPLATFORM] , [ Qt5PlatformSupport] , [ QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS"] )
365- if test "x$TARGET_OS" = xlinux; then
366- PKG_CHECK_MODULES([ X11XCB] , [ x11-xcb] , [ QT_LIBS="$X11XCB_LIBS $QT_LIBS"] )
367- if ${PKG_CONFIG} --exists "Qt5Core >= 5.5" 2>/dev/null; then
368- PKG_CHECK_MODULES([ QTXCBQPA] , [ Qt5XcbQpa] , [ QT_LIBS="$QTXCBQPA_LIBS $QT_LIBS"] )
369- fi
370- elif test "x$TARGET_OS" = xdarwin; then
371- PKG_CHECK_MODULES([ QTPRINT] , [ Qt5PrintSupport] , [ QT_LIBS="$QTPRINT_LIBS $QT_LIBS"] )
341+ fi
342+ if test "x$use_pkgconfig" = xyes; then
343+ : dnl
344+ m4_ifdef ( [ PKG_CHECK_MODULES] ,[
345+ PKG_CHECK_MODULES([ QTPLATFORM] , [ Qt5PlatformSupport] , [ QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS"] )
346+ if test "x$TARGET_OS" = xlinux; then
347+ PKG_CHECK_MODULES([ X11XCB] , [ x11-xcb] , [ QT_LIBS="$X11XCB_LIBS $QT_LIBS"] )
348+ if ${PKG_CONFIG} --exists "Qt5Core >= 5.5" 2>/dev/null; then
349+ PKG_CHECK_MODULES([ QTXCBQPA] , [ Qt5XcbQpa] , [ QT_LIBS="$QTXCBQPA_LIBS $QT_LIBS"] )
372350 fi
373- ] )
374- else
375- if test "x$TARGET_OS" = xwindows; then
376- AC_CACHE_CHECK ( for Qt >= 5.6 , bitcoin_cv_need_platformsupport ,[
377- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
378- #include <QtCore/qconfig.h>
379- #ifndef QT_VERSION
380- # include <QtCore/qglobal.h>
381- #endif
382- ] ] ,
383- [ [
384- #if QT_VERSION < 0x050600
385- choke
386- #endif
387- ] ] ) ] ,
388- [ bitcoin_cv_need_platformsupport=yes] ,
389- [ bitcoin_cv_need_platformsupport=no] )
390- ] )
391- if test "x$bitcoin_cv_need_platformsupport" = xyes; then
392- BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}PlatformSupport] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}PlatformSupport not found )) )
393- fi
351+ elif test "x$TARGET_OS" = xdarwin; then
352+ PKG_CHECK_MODULES([ QTPRINT] , [ Qt5PrintSupport] , [ QT_LIBS="$QTPRINT_LIBS $QT_LIBS"] )
353+ fi
354+ ] )
355+ else
356+ if test "x$TARGET_OS" = xwindows; then
357+ AC_CACHE_CHECK ( for Qt >= 5.6 , bitcoin_cv_need_platformsupport ,[
358+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
359+ #include <QtCore/qconfig.h>
360+ #ifndef QT_VERSION
361+ # include <QtCore/qglobal.h>
362+ #endif
363+ ] ] ,
364+ [ [
365+ #if QT_VERSION < 0x050600
366+ choke
367+ #endif
368+ ] ] ) ] ,
369+ [ bitcoin_cv_need_platformsupport=yes] ,
370+ [ bitcoin_cv_need_platformsupport=no] )
371+ ] )
372+ if test "x$bitcoin_cv_need_platformsupport" = xyes; then
373+ BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}PlatformSupport] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}PlatformSupport not found )) )
394374 fi
395375 fi
396- else
397- if test "x$qt_plugin_path" != x; then
398- QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
399- QT_LIBS="$QT_LIBS -L$qt_plugin_path/codecs"
400- fi
401- fi
376+ fi
402377] )
403378
404379dnl Internal. Find Qt libraries using pkg-config.
@@ -407,38 +382,14 @@ dnl first.
407382dnl Inputs: $1 : If bitcoin_qt_want_version is "auto", check for this version
408383dnl first.
409384dnl Outputs: All necessary QT_* variables are set.
410- dnl Outputs: bitcoin_qt_got_major_vers is set to "4" or "5".
411385dnl Outputs: have_qt_test and have_qt_dbus are set (if applicable) to yes|no.
412386AC_DEFUN ( [ _BITCOIN_QT_FIND_LIBS_WITH_PKGCONFIG] ,[
413387 m4_ifdef ( [ PKG_CHECK_MODULES] ,[
414- auto_priority_version=$1
415- if test "x$auto_priority_version" = x; then
416- auto_priority_version=qt5
417- fi
418- if test "x$bitcoin_qt_want_version" = xqt5 || ( test "x$bitcoin_qt_want_version" = xauto && test "x$auto_priority_version" = xqt5 ); then
419- QT_LIB_PREFIX=Qt5
420- bitcoin_qt_got_major_vers=5
421- else
422- QT_LIB_PREFIX=Qt
423- bitcoin_qt_got_major_vers=4
424- fi
388+ QT_LIB_PREFIX=Qt5
425389 qt5_modules="Qt5Core Qt5Gui Qt5Network Qt5Widgets"
426- qt4_modules="QtCore QtGui QtNetwork"
427390 BITCOIN_QT_CHECK([
428- if test "x$bitcoin_qt_want_version" = xqt5 || ( test "x$bitcoin_qt_want_version" = xauto && test "x$auto_priority_version" = xqt5 ); then
429- PKG_CHECK_MODULES([ QT5] , [ $qt5_modules] , [ QT_INCLUDES="$QT5_CFLAGS"; QT_LIBS="$QT5_LIBS" have_qt=yes] ,[ have_qt=no] )
430- elif test "x$bitcoin_qt_want_version" = xqt4 || ( test "x$bitcoin_qt_want_version" = xauto && test "x$auto_priority_version" = xqt4 ); then
431- PKG_CHECK_MODULES([ QT4] , [ $qt4_modules] , [ QT_INCLUDES="$QT4_CFLAGS"; QT_LIBS="$QT4_LIBS" ; have_qt=yes] , [ have_qt=no] )
432- fi
391+ PKG_CHECK_MODULES([ QT5] , [ $qt5_modules] , [ QT_INCLUDES="$QT5_CFLAGS"; QT_LIBS="$QT5_LIBS" have_qt=yes] ,[ have_qt=no] )
433392
434- dnl qt version is set to 'auto' and the preferred version wasn't found. Now try the other.
435- if test "x$have_qt" = xno && test "x$bitcoin_qt_want_version" = xauto; then
436- if test "x$auto_priority_version" = xqt5; then
437- PKG_CHECK_MODULES([ QT4] , [ $qt4_modules] , [ QT_INCLUDES="$QT4_CFLAGS"; QT_LIBS="$QT4_LIBS" ; have_qt=yes; QT_LIB_PREFIX=Qt; bitcoin_qt_got_major_vers=4] , [ have_qt=no] )
438- else
439- PKG_CHECK_MODULES([ QT5] , [ $qt5_modules] , [ QT_INCLUDES="$QT5_CFLAGS"; QT_LIBS="$QT5_LIBS" ; have_qt=yes; QT_LIB_PREFIX=Qt5; bitcoin_qt_got_major_vers=5] , [ have_qt=no] )
440- fi
441- fi
442393 if test "x$have_qt" != xyes; then
443394 have_qt=no
444395 BITCOIN_QT_FAIL([ Qt dependencies not found] )
@@ -459,7 +410,6 @@ dnl from the discovered headers.
459410dnl Inputs: bitcoin_qt_want_version (from --with-gui=). The version to use.
460411dnl If "auto", the version will be discovered by _BITCOIN_QT_CHECK_QT5.
461412dnl Outputs: All necessary QT_* variables are set.
462- dnl Outputs: bitcoin_qt_got_major_vers is set to "4" or "5".
463413dnl Outputs: have_qt_test and have_qt_dbus are set (if applicable) to yes|no.
464414AC_DEFUN ( [ _BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG] ,[
465415 TEMP_CPPFLAGS="$CPPFLAGS"
@@ -481,13 +431,7 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG],[
481431 if test "x$bitcoin_qt_want_version" = xauto; then
482432 _BITCOIN_QT_CHECK_QT5
483433 fi
484- if test "x$bitcoin_cv_qt5" = xyes || test "x$bitcoin_qt_want_version" = xqt5; then
485- QT_LIB_PREFIX=Qt5
486- bitcoin_qt_got_major_vers=5
487- else
488- QT_LIB_PREFIX=Qt
489- bitcoin_qt_got_major_vers=4
490- fi
434+ QT_LIB_PREFIX=Qt5
491435 ] )
492436
493437 BITCOIN_QT_CHECK([
@@ -509,9 +453,7 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG],[
509453 BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Core] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}Core not found )) )
510454 BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Gui] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}Gui not found )) )
511455 BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Network] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}Network not found )) )
512- if test "x$bitcoin_qt_got_major_vers" = x5; then
513- BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Widgets] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}Widgets not found )) )
514- fi
456+ BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Widgets] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}Widgets not found )) )
515457 QT_LIBS="$LIBS"
516458 LIBS="$TEMP_LIBS"
517459
0 commit comments