From 9ee194fc281e5a1384c10a5dd11282eceb15bf58 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 8 Apr 2022 00:23:24 +0300 Subject: [PATCH 35/35] Add FREECIV_CROSSER macro to public freeciv_config.h See osdn #44293 Signed-off-by: Marko Lindqvist --- configure.ac | 3 ++- gen_headers/freeciv_config.h.in | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 04f2be6b33..f71e2ec3b1 100644 --- a/configure.ac +++ b/configure.ac @@ -944,7 +944,8 @@ AC_ARG_ENABLE([crosser], AS_HELP_STRING([--enable-crosser], [build version to be used with crosser environment]), [case "${enableval}" in yes) crosser=yes - AC_DEFINE([CROSSER], [1], [this is crosser based build]) ;; + AC_DEFINE([CROSSER], [1], [this is crosser based build]) + AC_DEFINE([FREECIV_CROSSER], [1], [this is crosser based build]) ;; no) crosser=no ;; *) AC_MSG_ERROR([bad value ${enableval} for --enable-crosser]) ;; esac], [crosser=no]) diff --git a/gen_headers/freeciv_config.h.in b/gen_headers/freeciv_config.h.in index 34c0b4a93b..73e48d53ef 100644 --- a/gen_headers/freeciv_config.h.in +++ b/gen_headers/freeciv_config.h.in @@ -53,6 +53,9 @@ /* Native language support enabled */ #undef FREECIV_ENABLE_NLS +/* This is crosser-based build */ +#undef FREECIV_CROSSER + /* MagickWand version 7 API in use */ #undef FREECIV_MWAND7 -- 2.35.1