From: Art Cancro Date: Wed, 20 Dec 2006 20:49:31 +0000 (+0000) Subject: * Remove newt from the webcit build too. X-Git-Tag: v7.86~3770 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=b704264fe9f52b3db5bf45e450e2c39c2c36abee;p=citadel.git * Remove newt from the webcit build too. * Updated docs and internal version number to 7.01 * THIS IS 7.01 --- diff --git a/webcit/README.txt b/webcit/README.txt index e9d18b106..049874410 100644 --- a/webcit/README.txt +++ b/webcit/README.txt @@ -1,5 +1,5 @@ WEBCIT for the Citadel System - version 7.00 + version 7.01 Copyright (C) 1996-2006 by the authors. Portions written by: Art Cancro diff --git a/webcit/configure.in b/webcit/configure.in index 6fff96989..dd7337afe 100644 --- a/webcit/configure.in +++ b/webcit/configure.in @@ -19,7 +19,6 @@ AC_PREFIX_DEFAULT(/usr/local/webcit) AC_ARG_WITH(with_libical, [ --with-libical use libical calendaring library]) AC_ARG_WITH(with_zlib, [ --with-zlib use zlib compression if present]) -AC_ARG_WITH(with_newt, [ --with-newt use newt window library]) AC_ARG_WITH(ssl, [ --with-ssl=PATH Specify path to OpenSSL installation ], [ @@ -145,19 +144,6 @@ if test "x$ok_zlib" = xyes ; then AC_DEFINE(HAVE_ZLIB) fi -dnl Checks for the newt window library. -if test "x$with_newt" != xno ; then - AC_CHECK_HEADERS(newt.h, - [AC_CHECK_LIB(newt, newtInit, - [ok_newt=yes],, - )]) -fi - -if test "x$ok_newt" = xyes ; then - SETUP_LIBS="-lnewt $SETUP_LIBS" - AC_DEFINE(HAVE_NEWT) -fi - # The big search for OpenSSL if test "$with_ssl" != "no"; then saved_LIBS="$LIBS" diff --git a/webcit/setup.c b/webcit/setup.c index 7c4b2cba0..3e13ebe7f 100644 --- a/webcit/setup.c +++ b/webcit/setup.c @@ -12,15 +12,9 @@ #include "webserver.h" -#ifdef HAVE_NEWT -#include -#endif - - #define UI_TEXT 0 /* Default setup type -- text only */ #define UI_DIALOG 2 /* Use the 'dialog' program */ #define UI_SILENT 3 /* Silent running, for use in scripts */ -#define UI_NEWT 4 /* Use the "newt" window library */ int setup_type; char setup_directory[SIZ]; @@ -129,11 +123,6 @@ void delete_the_old_way(void) { void cleanup(int exitcode) { -#ifdef HAVE_NEWT - newtCls(); - newtRefresh(); - newtFinished(); -#endif exit(exitcode); } @@ -150,11 +139,6 @@ void title(char *text) int yesno(char *question) { -#ifdef HAVE_NEWT - newtComponent form = NULL; - newtComponent yesbutton = NULL; - newtComponent nobutton = NULL; -#endif int i = 0; int answer = 0; char buf[SIZ]; @@ -186,41 +170,12 @@ int yesno(char *question) } break; -#ifdef HAVE_NEWT - case UI_NEWT: - newtCenteredWindow(76, 10, "Question"); - form = newtForm(NULL, NULL, 0); - for (i=0; i 0) && (curr <= cmax)) { - newtScaleSet(scale, curr); - newtRefresh(); - } - if (curr == cmax) { - newtFormDestroy(form); - newtPopWindow(); - newtRefresh(); - } - break; -#endif - } } @@ -589,12 +473,6 @@ int discover_ui(void) return UI_DIALOG; } -#ifdef HAVE_NEWT - newtInit(); - newtCls(); - newtDrawRootText(0, 0, "WebCit Setup"); - return UI_NEWT; -#endif return UI_TEXT; }