1# Try to configure the Qt-client (gui-qt)
2
3dnl FC_QT_CLIENT
4dnl Test for Qt and needed libraries for gui-qt
5
6AC_DEFUN([FC_QT_CLIENT],
7[
8if test "x$gui_qt" = "xyes" || test "x$client" = "xall" ||
9   test "x$client" = "xauto" ; then
10
11  if test "x$cxx_works" = "xyes" ; then
12
13    FC_QT5
14
15    if test x$fc_qt5_usable = xtrue ; then
16      gui_qt_cppflags=$FC_QT5_CPPFLAGS
17      gui_qt_cxxflags=$FC_QT5_CXXFLAGS
18      gui_qt_libs="$FC_QT5_LIBS $MWINDOWS_FLAG"
19    else
20      qt_fail_reason="Missing Qt5 development files"
21    fi
22
23  else
24     qt_fail_reason="C++ compiler does not work"
25  fi
26
27  if test "x$fc_qt5_usable" = "xtrue" ; then
28    gui_qt=yes
29    if test "x$client" = "xauto" ; then
30      client=yes
31    fi
32  elif test "x$gui_qt" = "xyes" ; then
33    AC_MSG_ERROR([selected client 'qt' cannot be built: $qt_fail_reason])
34  fi
35fi
36])
37