diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-08-27 15:04:23 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-08-27 15:04:23 +0200 |
commit | 898a0df8ede6fb58241daed7cbb993e7fb01da13 (patch) | |
tree | 91411fab424c04df0ec4738d27baee8531d29fe0 /configure.ac | |
parent | 63988ba095656ae0629a52a2ac8c2930ac4ddc20 (diff) | |
download | rsyslog-898a0df8ede6fb58241daed7cbb993e7fb01da13.tar.gz rsyslog-898a0df8ede6fb58241daed7cbb993e7fb01da13.tar.xz rsyslog-898a0df8ede6fb58241daed7cbb993e7fb01da13.zip |
added --enable-gui configure switch
... which now permits to enable/disable GUI components. This also
checks if Java is present and, if not, complains during ./configure.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7d1b50b4..07467c8b 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.61) -AC_INIT([rsyslog],[5.1.4],[rsyslog@lists.adiscon.com]) +AC_INIT([rsyslog],[5.3.0],[rsyslog@lists.adiscon.com]) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([ChangeLog]) AC_CONFIG_MACRO_DIR([m4]) @@ -773,6 +773,27 @@ AC_ARG_ENABLE(omstdout, ) AM_CONDITIONAL(ENABLE_OMSTDOUT, test x$enable_omstdout = xyes) + +# building the GUI (mostly for diagnostic reasons) +AC_ARG_ENABLE(gui, + [AS_HELP_STRING([--enable-gui],[Enable GUI programs @<:@default=no@:>@])], + [case "${enableval}" in + yes) enable_gui="yes" ;; + no) enable_gui="no" ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-gui) ;; + esac], + [enable_gui=no] +) +if test "x$enable_gui" = "xyes"; then + if test x$HAVE_JAVAC = x; then + AC_MSG_ERROR([GUI components need Java, but Java development system is not installed on this system]) + fi +fi +AM_CONDITIONAL(ENABLE_GUI, test x$enable_gui = xyes) + + +AC_SUBST(RELP_CFLAGS) +AC_SUBST(RELP_LIBS) # This provides a vehicle to integrate custom modules, that are not # part of rsyslog, into the build process. It is named cust1, so that # additional such modules can easily be added. @@ -875,6 +896,7 @@ echo " Regular expressions support enabled: $enable_regexp" echo " Zlib compression support enabled: $enable_zlib" echo " rsyslog runtime will be built: $enable_rsyslogrt" echo " rsyslogd will be built: $enable_rsyslogd" +echo " GUI components will be built: $enable_gui" echo " custom module 1 will be built: $enable_cust1" echo echo "---{ input plugins }---" |