From e1bf344ee47ed0cfe768e662739366fcd9736eaf Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 10 Mar 2000 20:58:04 +0000 Subject: [PATCH] --without-gtk option for configure disables building GTK frontend git-svn-id: http://svn.irssi.org/repos/irssi/trunk@139 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- README | 5 +++-- configure.in | 29 +++++++++++++++++++++++++---- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/README b/README index d62d9134..d93420d7 100644 --- a/README +++ b/README @@ -73,12 +73,13 @@ Configure can use these parameters (all of these defaults to yes): irc clients --with-socks Build with socks library --with-mysql=dir Build with mysql plugin + --without-gtk Build without GTK frontend + --without-textui Build without text frontend + --without-bot Build without irssibot --without-gnome Build without GNOME libraries --without-gnome-panel Build without GNOME panel --without-imlib Build without Imlib library (you can use only .xpm files as backgrounds) - --without-textui Build without text mode version - --without-bot Build without irssibot --enable-memdebug Enable memory debugging, great for finding memory leaks --enable-gtk-hebrew Enable Hebrew support - see README-HEBREW diff --git a/configure.in b/configure.in index 41d49590..0af65e12 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ AC_INIT(src) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(irssi, 0.7.27) +AM_INIT_AUTOMAKE(irssi, 0.7.28) AM_MAINTAINER_MODE @@ -64,6 +64,19 @@ AC_ARG_WITH(imlib, fi, want_imlib=yes) +AC_ARG_WITH(gtk, +[ --with-gtk Build GTK frontend], + if test x$withval = xyes; then + want_gtk=yes + else + if test "x$withval" = xno; then + want_gtk=no + else + want_gtk=yes + fi + fi, + want_gtk=yes) + AC_ARG_WITH(gnome-panel, [ --with-gnome-panel Build with gnome panel applet support], if test x$withval = xyes; then @@ -78,7 +91,7 @@ AC_ARG_WITH(gnome-panel, want_gnome_panel=yes) AC_ARG_WITH(textui, -[ --with-textui Build irssi-text], +[ --with-textui Build text frontend], if test x$withval = xyes; then want_textui=yes else @@ -248,6 +261,9 @@ if test "x$want_gnome" = "xyes"; then if test "x$GNOME_LIBS" = "x"; then want_gnome="no"; fi + if test "x$want_gtk" = "xno"; then + want_gnome="no"; + fi fi if test "x$want_gnome" = "xyes"; then @@ -274,8 +290,13 @@ if test "x$want_gnome" = "xyes"; then fi else want_gnome_panel="no" - AC_DEFINE(HAVE_GTK) - AM_PATH_GTK(1.2.0) + + if test "x$want_gtk" = "xyes"; then + AC_DEFINE(HAVE_GTK) + AM_PATH_GTK(1.2.0) + else + GTK_LIBS= + fi if test "x$GTK_LIBS" != "x"; then GUI_CFLAGS="$GTK_CFLAGS"