X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fautoconf%2Fconfigure.in;h=006287616cfb1303456d5fab7775d2879d64f583;hb=e78e69bdcd74470750eeec179d188ebae14fc381;hp=4ba634568aa84ce6877a62a2e902be6bd0c5dc6b;hpb=e7ff02c25382a326ba53ceaf03642c1007817adb;p=bacula%2Fbacula diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 4ba634568a..006287616c 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -196,6 +196,7 @@ support_smartalloc=yes support_readline=yes support_conio=yes support_gnome=no +support_bat=no support_wx_console=no support_tls=no support_crypto=no @@ -248,6 +249,28 @@ if test x$support_gnome = xyes; then fi AC_SUBST(GNOME_DIR) +# ------------------------------------------- +# bat (default off) +# ------------------------------------------- +AC_ARG_ENABLE(bat, + [ --enable-bat enable build of bat Qt4 GUI [disabled]], + [if test x$enableval = xyes; then + AC_DEFINE(HAVE_BAT, 1, [Set if Bacula bat Qt4 GUI support enabled]) + support_bat=yes + fi]) + +BAT_DIR= +if test x$support_bat = xyes; then + abc=`$PKGCONFIG --atleast-version=4.2 QtGui` + pkg=$? + if test $pkg = 0; then + BAT_DIR=src/qt-console + else + AC_MSG_ERROR(Unable to find Qt4 installation needed by bat) + fi +fi +AC_SUBST(BAT_DIR) + # ------------------------------------------- # wx-console (default off) @@ -2182,6 +2205,7 @@ Configuration on `date`: Encryption support: ${support_crypto} ZLIB support: ${have_zlib} enable-smartalloc: ${support_smartalloc} + enable-bat: ${support_bat} enable-gnome: ${support_gnome} ${gnome_version} enable-wx-console: ${support_wx_console} ${wx_version} enable-tray-monitor: ${support_tray_monitor}