From: Daniel Dugovic Date: Tue, 20 Nov 2012 04:35:05 +0000 (-0800) Subject: Fix configure script for --enable-zippy (tiny change) X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9c170c940d713535ee4c0e29fbe463df966b19f8;p=xboard.git Fix configure script for --enable-zippy (tiny change) reported and patch by Daniel. edited by Arun Persaud: - also fixed #ifndef ZIPPY -> #if !ZIPPY - didn't change #if -> #ifdef --- diff --git a/configure.ac b/configure.ac index d226c53..34a68ee 100644 --- a/configure.ac +++ b/configure.ac @@ -448,14 +448,15 @@ AC_DEFINE_UNQUOTED(USE_PTYS, $USE_PTYS) dnl | define not to build zippy as a default, so that autoheader is happy -AC_DEFINE(ZIPPY, 0,[should zippy be enabled]) AC_ARG_ENABLE( [zippy], [AS_HELP_STRING([--enable-zippy],[support interfacing a chess program to ICS (default)])], [], - [enable_zippy="yes"]) + [enable_zippy="no"]) if test x"$enable_zippy" != xno; then AC_DEFINE(ZIPPY, 1,[should zippy be enabled]) +else + AC_DEFINE(ZIPPY, 0,[should zippy be enabled]) fi AM_CONDITIONAL([ZIPPY], [test x$enable_zippy != xno]) diff --git a/menus.c b/menus.c index df0b733..52d91be 100644 --- a/menus.c +++ b/menus.c @@ -848,7 +848,7 @@ Enables icsEnables[] = { { "Mode.AnalyzeFile", False }, { "Mode.TwoMachines", False }, { "Mode.MachineMatch", False }, -#ifndef ZIPPY +#if !ZIPPY { "Engine.Hint", False }, { "Engine.Book", False }, { "Engine.MoveNow", False },