diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-06-15 23:20:00 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-07-22 22:08:54 +0200 |
| commit | cb17c3035bbd80bd8ea6718bae4c57cfb2555653 (patch) | |
| tree | f454181a2f58071f5f2ba4408e7e179838ed3fb4 /configure.ac | |
| parent | face8e0a7d5f530ee3e5e63ab1e3d6ecd497326b (diff) | |
Initial monitor GUI
Basic monitor functionality, GTK-3.0 and QT5 backends
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7564309..73270bc 100644 --- a/configure.ac +++ b/configure.ac @@ -116,6 +116,25 @@ AM_CONDITIONAL([HAVE_SSL],[test "x$have_ssl" = "x1"]) AM_CONDITIONAL([HAVE_MBEDTLS],[test "x$ssl_mbedtls" = "x1"]) AM_CONDITIONAL([HAVE_OPENSSL],[test "x$ssl_openssl" = "x1"]) +# GTK +have_gtk=0 +gtk_need="gtk+-3.0 >= 3.20" +PKG_CHECK_EXISTS([$gtk_need], + [PKG_CHECK_MODULES([GTK], [$gtk_need]) + have_gtk=1]) +AM_CONDITIONAL([HAVE_GTK],[test "x$have_gtk" = "x1"]) + +# QT +have_qt=0 +qt_need="Qt5Widgets >= 5.8.0" +PKG_CHECK_EXISTS([$qt_need], + [PKG_CHECK_MODULES([QT], [$qt_need]) + PKG_CHECK_VAR([QT_CONFIG], [Qt5Core], [qt_config]) + AS_IF([echo $QT_CONFIG | grep -q reduce_relocations], + [QT_CFLAGS="$QT_CFLAGS -fPIC"]) + have_qt=1]) +AM_CONDITIONAL([HAVE_QT],[test "x$have_qt" = "x1"]) + # Finish up AC_CONFIG_HEADERS([src/config.h]) |
