diff --git a/config.h.in b/config.h.in index 465afc8b..b334a3bc 100644 --- a/config.h.in +++ b/config.h.in @@ -17,6 +17,9 @@ /* Compile new binkp driver */ #undef USE_NEWBINKP +/* Compile full newsgate */ +#undef USE_NEWSGATE + /* Has strcasestr function */ #undef HAVE_STRCASESTR diff --git a/configure b/configure index 1d96668f..25583d4b 100755 --- a/configure +++ b/configure @@ -845,6 +845,7 @@ Optional Features: --enable-debugging Compile for debugging --enable-optimize Enable CPU optimize --enable-newbinkp Compile New Binkp code + --enable-newsgate Compile with newsgate Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1309,7 +1310,7 @@ SUBDIRS="lib mbcico mbfido mbmon mbsebbs mbnntp mbtask mbsetup unix lang example PACKAGE="mbsebbs" MAJOR="0" MINOR="61" -REVISION="0" +REVISION="1" VERSION="$MAJOR.$MINOR.$REVISION" COPYRIGHT="Copyright (C) 1997-2004 Michiel Broek, All Rights Reserved" SHORTRIGHT="Copyright (C) 1997-2004 M. Broek" @@ -3058,6 +3059,20 @@ _ACEOF fi +# Check whether --enable-newsgate or --disable-newsgate was given. +if test "${enable_newsgate+set}" = set; then + enableval="$enable_newsgate" + newsgate=$enableval +else + newsgate=no +fi; +if test "$newsgate" = "ues"; then + cat >>confdefs.h <<\_ACEOF +#define USE_NEWSGATE 1 +_ACEOF + +fi + cat >>confdefs.h <<_ACEOF #define RESTAMP_OLD_POSTINGS 21 diff --git a/configure.in b/configure.in index 44a25377..a86b4c5d 100644 --- a/configure.in +++ b/configure.in @@ -13,7 +13,7 @@ dnl PACKAGE="mbsebbs" MAJOR="0" MINOR="61" -REVISION="0" +REVISION="1" VERSION="$MAJOR.$MINOR.$REVISION" COPYRIGHT="Copyright (C) 1997-2004 Michiel Broek, All Rights Reserved" SHORTRIGHT="Copyright (C) 1997-2004 M. Broek" @@ -98,6 +98,14 @@ if test "$newbinkp" = "yes"; then AC_DEFINE(USE_NEWBINKP) fi +dnl +dnl Enable full newsgate, this was default upto 0.50.0 +dnl +AC_ARG_ENABLE(newsgate, [ --enable-newsgate Compile with newsgate], [ newsgate=$enableval ], [ newsgate=no ]) +if test "$newsgate" = "ues"; then + AC_DEFINE(USE_NEWSGATE) +fi + dnl dnl Defines for MBSE BBS (must use tests or --enable-stuff later)