1# Pioneers - Implementation of the excellent Settlers of Catan board game.
2#   Go buy a copy.
3#
4# Copyright (C) 1999 Dave Cole
5# Copyright (C) 2003-2007 Bas Wijnen <shevek@fmf.nl>
6# Copyright (C) 2004-2014 Roland Clobus <rclobus@rclobus.nl>
7#
8# This program is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
22AC_PREREQ([2.68])
23AC_INIT([pioneers],[15.6],[pio-develop@lists.sourceforge.net])
24AC_CONFIG_MACRO_DIR([m4])
25AC_CONFIG_AUX_DIR([.])
26AM_INIT_AUTOMAKE([1.11])
27AC_CONFIG_SRCDIR([client])
28AC_CONFIG_HEADERS([config.h])
29
30META_PROTOCOL_VERSION=1.3
31PIONEERS_DEFAULT_GAME_PORT=5556
32PIONEERS_DEFAULT_GAME_HOST=localhost
33PIONEERS_DEFAULT_ADMIN_PORT=5555
34PIONEERS_DEFAULT_META_PORT=5557
35PIONEERS_DEFAULT_METASERVER=pioneers.debian.net
36
37GLIB_REQUIRED_VERSION=2.26
38GIO_REQUIRED_VERSION=2.28
39GTK_REQUIRED_VERSION=3.22
40GTK_OPTIMAL_VERSION=3.22
41LIBNOTIFY_REQUIRED_VERSION=0.7.4
42
43AC_SUBST(GLIB_REQUIRED_VERSION)
44AC_SUBST(GTK_REQUIRED_VERSION)
45
46AM_MAINTAINER_MODE
47
48# Work-around for the bug in automake
49#   ar: `u' modifier ignored since `D' is the default (see `U')
50#
51# Use 'cr' instead of 'cru' for the default ARFLAGS
52# See also https://bugzilla.redhat.com/show_bug.cgi?id=1155273
53# This fix was found in https://sources.debian.org/src/cinnamon/4.4.8-2/configure.ac
54m4_divert_text([DEFAULTS], [: "${ARFLAGS=cr} ${AR_FLAGS=cr}"])
55# Also export this variable
56AC_SUBST(ARFLAGS, "${ARFLAGS}")
57
58LT_INIT
59AC_PATH_PROG(ECHO, echo)
60
61AC_PROG_CC
62AM_PROG_CC_C_O
63AC_PROG_MKDIR_P
64AC_HEADER_STDC
65
66# The Windows ports (Cygwin and MinGW) are client-only
67pioneers_is_mingw_port=no;
68case $host in
69	*-*-cygwin*)
70		pioneers_is_windows_port=yes;;
71	*-*-mingw*)
72		pioneers_is_windows_port=yes;
73		pioneers_is_mingw_port=yes;;
74	*)
75		pioneers_is_windows_port=no;;
76esac
77
78if test $USE_MAINTAINER_MODE = yes; then
79	GOB2_CHECK([[2.0.0]])
80fi
81
82# Try to find a suitable renderer for the svg images
83AC_SUBST(whitespace_trick, [" "])
84AC_PATH_PROG(svg_renderer_path, rsvg-convert)
85if test x$svg_renderer_path != x; then
86	AC_SUBST(svg_renderer_width, ["--width \$(whitespace_trick)"])
87	AC_SUBST(svg_renderer_height, ["\$(whitespace_trick) --height \$(whitespace_trick)"])
88	AC_SUBST(svg_renderer_output, ["\$(whitespace_trick) -o \$(whitespace_trick)"])
89else
90AC_PATH_PROG(svg_renderer_path, rsvg)
91if test x$svg_renderer_path != x; then
92	AC_SUBST(svg_renderer_width, ["--width \$(whitespace_trick)"])
93	AC_SUBST(svg_renderer_height, ["\$(whitespace_trick) --height \$(whitespace_trick)"])
94	AC_SUBST(svg_renderer_output, ["\$(whitespace_trick)"])
95else
96AC_PATH_PROG(svg_renderer_path, convert)
97if test x$svg_renderer_path != x; then
98	AC_SUBST(svg_renderer_width, ["-background \"\#000001\" -transparent \"\#000001\" -resize \$(whitespace_trick)"])
99	AC_SUBST(svg_renderer_height, ["x"])
100	AC_SUBST(svg_renderer_output, ["\$(whitespace_trick)"])
101else
102	# Add other SVG rendering programs here
103	# Don't let configure fail, in the distributed tarballs is already
104	# a current .png file
105	AC_SUBST(svg_renderer_path, [false])
106fi
107fi
108fi
109
110AC_ARG_ENABLE([warnings], AS_HELP_STRING([--enable-warnings],
111	[Compile with check for compiler warnings (gcc-only).]),
112[case "${enableval}" in
113  full) pioneers_warnings=full;;
114  yes)  pioneers_warnings=yes ;;
115  "")   pioneers_warnings=yes ;;
116  *)    pioneers_warnings=no  ;;
117esac],
118	[pioneers_warnings=$USE_MAINTAINER_MODE])
119
120AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug],
121	[Enable debug information.]),
122[case "${enableval}" in
123  yes)  pioneers_debug=yes ;;
124  "")   pioneers_debug=yes ;;
125  *)    pioneers_debug=no  ;;
126esac],
127	[pioneers_debug=$USE_MAINTAINER_MODE])
128
129AC_ARG_ENABLE([deprecation-checks],
130	AS_HELP_STRING([--enable-deprecation-checks],
131		[Enable strict deprecation checks.]),
132[case "${enableval}" in
133  yes)  pioneers_deprecationChecks=yes ;;
134  "")   pioneers_deprecationChecks=yes ;;
135  *)    pioneers_deprecationChecks=no  ;;
136esac],
137	[pioneers_deprecationChecks=$USE_MAINTAINER_MODE])
138
139AC_ARG_ENABLE([help],
140	AS_HELP_STRING([--enable-help],
141		[Enable help in the programs that support it.]),
142[case "${enableval}" in
143  yes)  enable_help=yes ;;
144  "")   enable_help=yes ;;
145  *)    enable_help=no  ;;
146esac],
147	[enable_help=yes])
148
149AC_ARG_ENABLE([hardening],
150	AS_HELP_STRING([--enable-hardening],
151		[Enable hardening compiler options.]),
152[case "${enableval}" in
153  yes)  enable_hardening=yes ;;
154  "")   enable_hardening=yes ;;
155  *)    enable_hardening=no  ;;
156esac],
157	[enable_hardening=$USE_MAINTAINER_MODE])
158
159AC_ARG_WITH([gtk],
160	AS_HELP_STRING([--with-gtk],
161		[Use GTK+ for the graphical programs.]),
162[case "${withval}" in
163  yes)  with_gtk=yes ;;
164  "")   with_gtk=yes ;;
165  *)    with_gtk=no  ;;
166esac],
167	[with_gtk=yes])
168
169AC_ARG_WITH([avahi],
170	AS_HELP_STRING([--with-avahi],
171		[Use AVAHI for discovering games.]),
172[case "${withval}" in
173  yes)  with_avahi=yes ;;
174  "")   with_avahi=yes ;;
175  *)    with_avahi=no  ;;
176esac],
177	[with_avahi=yes])
178
179AC_ARG_WITH([notify],
180	AS_HELP_STRING([--with-notify],
181		[Use LIBNOTIFY to notify the player during the game.]),
182[case "${withval}" in
183  yes)  with_notify=yes ;;
184  "")   with_notify=yes ;;
185  *)    with_notify=no  ;;
186esac],
187	[with_notify=yes])
188
189AC_ARG_WITH([sound],
190	AS_HELP_STRING([--with-sound],
191		[Use libcanberra to play sounds.]),
192[case "${withval}" in
193  yes)  with_sound=yes ;;
194  "")   with_sound=yes ;;
195  *)    with_sound=no  ;;
196esac],
197	[with_sound=yes])
198
199if test "x$GCC" = xyes && test $enable_hardening = yes; then
200	if test "$pioneers_is_windows_port" = "no"; then
201		# Flags from Debian hardening (dpkg-buildflags --get CFLAGS)
202		AC_SUBST(AM_CFLAGS, ["$AM_CFLAGS -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security"])
203		AC_SUBST(AM_CFLAGS, ["$AM_CFLAGS -D_FORTIFY_SOURCE=2"])
204		AC_SUBST(AM_CFLAGS, ["$AM_CFLAGS -pie -fPIE"])
205
206	 	# Flags from Debian hardening (dpkg-buildflags --get LDFLAGS)
207		AC_SUBST(AM_LDFLAGS, ["$AM_LDFLAGS -Wl,-z,relro"])
208		AC_SUBST(AM_LDFLAGS, ["$AM_LDFLAGS -Wl,-z,now"])
209	else
210		enable_hardening="no, disabled for MS Windows"
211	fi
212fi
213
214## The warnings are in the same order as in 'man gcc'
215if test "x$GCC" = xyes; then
216	# Only link the directly needed libraries
217	AC_SUBST(AM_CFLAGS, ["$AM_CFLAGS -Wl,--as-needed"])
218
219	if test "$pioneers_warnings" = yes -o "$pioneers_warnings" = full; then
220		AC_SUBST(WARNINGS, "-Wall")
221		AC_SUBST(WARNINGS, "$WARNINGS -W")
222		AC_SUBST(WARNINGS, "$WARNINGS -Wpointer-arith")
223		AC_SUBST(WARNINGS, "$WARNINGS -Wwrite-strings")
224		AC_SUBST(WARNINGS, "$WARNINGS -Wsign-compare")
225		AC_SUBST(WARNINGS, "$WARNINGS -Waggregate-return")
226		AC_SUBST(WARNINGS, "$WARNINGS -Wstrict-prototypes")
227		AC_SUBST(WARNINGS, "$WARNINGS -Wmissing-prototypes")
228		AC_SUBST(WARNINGS, "$WARNINGS -Wmissing-declarations")
229		AC_SUBST(WARNINGS, "$WARNINGS -Wredundant-decls")
230		AC_SUBST(WARNINGS, "$WARNINGS -Wnested-externs")
231		AC_SUBST(WARNINGS, "$WARNINGS -O")
232		if test "$pioneers_deprecationChecks" = no; then
233			AC_SUBST(WARNINGS, "$WARNINGS -Wno-deprecated-declarations")
234		fi
235	fi
236	if test "$pioneers_warnings" = full; then
237		flags="-Wfloat-equal"
238		flags="$flags -Wdeclaration-after-statement"
239		flags="$flags -Wundef"
240		flags="$flags -Wendif-labels"
241		flags="$flags -Wshadow"
242		flags="$flags -Wbad-function-cast"
243		flags="$flags -Wconversion"
244		flags="$flags -Wold-style-definition"
245		flags="$flags -Wunreachable-code"
246		flags="$flags -Wcast-qual"
247		flags="$flags -pedantic"
248
249		# This for loop comes from gnome-compiler-flags.m4
250		for option in $flags; do
251			SAVE_CFLAGS="$CFLAGS"
252			CFLAGS="$CFLAGS $option"
253			AC_MSG_CHECKING([whether gcc understands $option])
254			AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[has_option=yes],[has_option=no])
255			CFLAGS="$SAVE_CFLAGS"
256			AC_MSG_RESULT($has_option)
257			if test $has_option = yes; then
258				AC_SUBST(WARNINGS, "$WARNINGS $option")
259			fi
260			unset has_option
261			unset SAVE_CFLAGS
262		done
263		unset option
264		unset flags
265	fi
266fi
267AC_SUBST(WARNINGS)
268
269if test "$pioneers_debug" = yes; then
270	AC_SUBST(DEBUGGING, "-ggdb3")
271fi
272AC_SUBST(DEBUGGING)
273
274if test "$pioneers_deprecationChecks" = yes; then
275	AC_SUBST(GLIB_DEPRECATION, "-DG_DISABLE_DEPRECATED")
276	AC_SUBST(GLIB_DEPRECATION, "$GLIB_DEPRECATION -DG_DISABLE_SINGLE_INCLUDES")
277	AC_SUBST(GTK_DEPRECATION, "-DGDK_DISABLE_DEPRECATED")
278	AC_SUBST(GTK_DEPRECATION, "$GTK_DEPRECATION -DGTK_DISABLE_DEPRECATED")
279	AC_SUBST(GTK_DEPRECATION, "$GTK_DEPRECATION -DGDK_DISABLE_SINGLE_INCLUDES")
280	AC_SUBST(GTK_DEPRECATION, "$GTK_DEPRECATION -DGTK_DISABLE_SINGLE_INCLUDES")
281	AC_SUBST(GTK_DEPRECATION, "$GTK_DEPRECATION -DGSEAL_ENABLE")
282fi
283AC_SUBST(GLIB_DEPRECATION)
284AC_SUBST(GTK_DEPRECATION)
285
286if test "$enable_help" = no; then
287	pioneers_help="no, disabled in configure"
288else
289	if test "$pioneers_is_windows_port" = "no"; then
290		# The help system is optional, it comes from yelp-tools
291		m4_ifndef([YELP_HELP_INIT], enable_help=no)
292		if test "$enable_help" = no; then
293			pioneers_help="no, yelp-tools is not installed"
294		else
295			pioneers_help="yes"
296			YELP_HELP_INIT
297		fi
298	else
299		pioneers_help="no, disabled for MS Windows"
300	fi
301fi
302AM_CONDITIONAL(BUILD_HELP, [test "$pioneers_help" = "yes"])
303
304if test "$pioneers_help" = "yes"; then
305	AC_DEFINE(HAVE_HELP, 1,
306		[Defined when online help is present])
307fi
308
309# glib is always needed
310PKG_CHECK_MODULES(GLIB2, glib-2.0 >= $GLIB_REQUIRED_VERSION)
311PKG_CHECK_MODULES(GOBJECT2, gobject-2.0 >= $GLIB_REQUIRED_VERSION)
312PKG_CHECK_MODULES(GIO2, gio-2.0 >= $GIO_REQUIRED_VERSION)
313
314#
315# Check for libnotify
316#
317if test $with_notify = no; then
318	have_libnotify="no, disabled in configure"
319else
320	PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED_VERSION,
321		[have_libnotify=yes],
322		[have_libnotify="no, libnotify not installed or too old"])
323	if test "$have_libnotify" = "yes"; then
324		AC_DEFINE(HAVE_NOTIFY, 1,
325			[Defined if libnotify is present])
326	fi
327fi
328
329# GTK+ support
330#
331if test $with_gtk = no; then
332	have_gtk="no, disabled in configure"
333else
334	# gmodule-2.0 is required for gtk_builder
335	PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED_VERSION gmodule-2.0,
336		have_gtk=yes,
337		[PKG_CHECK_EXISTS(gtk+-3.0,
338			[have_gtk="no, GTK+ version too old"],
339			[have_gtk="no, GTK+ not installed"])
340		AC_MSG_RESULT($have_gtk)
341	])
342fi
343if test "$have_gtk" = "yes"; then
344	PKG_CHECK_MODULES(GTK_OPTIMAL_VERSION, gtk+-3.0 >= $GTK_OPTIMAL_VERSION,
345		[],
346		AC_DEFINE(HAVE_OLD_GTK, [1],
347			[Defined if an older version of GTK+ is available]))
348fi
349
350have_graphical=$have_gtk;
351AM_CONDITIONAL(HAVE_GTK, [test "$have_graphical" = "yes"])
352
353#
354# Check for sound support
355#
356if test $with_sound = no; then
357	have_libcanberra="no, disabled in configure"
358else
359	PKG_CHECK_MODULES(LIBCANBERRA, libcanberra,
360		[have_libcanberra=yes],
361		[have_libcanberra="no, libcanberra not installed"])
362	if test "$have_gtk" = "yes"; then
363		if test "$have_libcanberra" = "yes"; then
364			AC_DEFINE(HAVE_CANBERRA, 1,
365				[Defined if libcanberra is present])
366		fi
367	else
368		have_libcanberra="no, GTK+ is not enabled"
369	fi
370fi
371
372# Avahi support
373if test $with_avahi = no; then
374	have_avahi="no, disabled in configure"
375else
376	PKG_CHECK_MODULES(AVAHI_CLIENT, avahi-client,
377		[PKG_CHECK_MODULES(AVAHI_GLIB, avahi-glib,
378			[have_avahi="yes"
379			AC_DEFINE(HAVE_AVAHI, [1], [Define if AVAHI available])
380			AC_DEFINE(AVAHI_ANNOUNCE_NAME, ["_pioneers._tcp"], [The name of the Avahi service])],
381			[have_avahi="no, avahi-glib is missing"
382			AC_MSG_RESULT($have_avahi)])],
383		[have_avahi="no, avahi-client is missing"
384		AC_MSG_RESULT($have_avahi)])
385
386fi
387
388AC_ARG_ENABLE([admin-gtk], AS_HELP_STRING([--enable-admin-gtk],
389	[Turn on (unstable) network administration support.]),
390[case "${enableval}" in
391  yes) admin_gtk_support=yes  ;;
392  "")  admin_gtk_support=yes  ;;
393  *)   admin_gtk_support=no ;;
394esac], [admin_gtk_support=no])
395AM_CONDITIONAL(ADMIN_GTK_SUPPORT, [test x$admin_gtk_support = xyes])
396
397AC_ARG_ENABLE([protocol],
398	AS_HELP_STRING([--enable-protocol],
399	[Specify the network protocol for Avahi (IPv4/unspecified)]),
400[case "${enableval}" in
401  IPv4)        avahi_network_protocol=AVAHI_PROTO_INET;;
402  *)           avahi_network_protocol=AVAHI_PROTO_UNSPEC;;
403esac], [avahi_network_protocol=AVAHI_PROTO_UNSPEC])
404AC_DEFINE_UNQUOTED([AVAHI_NETWORK_PROTOCOL],[$avahi_network_protocol],
405	[The Avahi network protocol value])
406
407AC_CHECK_HEADERS([fcntl.h])
408AC_CHECK_HEADERS([syslog.h],
409	[pioneers_have_syslog=yes;],
410	[pioneers_have_syslog=no;])
411AC_HEADER_TIME
412
413AC_C_CONST
414
415# Functions
416AC_FUNC_FORK
417
418# Mathematics
419AC_CHECK_FUNC(rint,
420	AC_DEFINE(HAVE_RINT, 1, [Define to 1 if you have the rint function.]),
421	AC_CHECK_LIB(m, rint,
422		[ AC_DEFINE(HAVE_RINT) LIBS="$LIBS -lm"]))
423AC_CHECK_FUNCS([sqrt])
424# String functions
425AC_CHECK_FUNCS([strchr strspn strstr strcspn])
426AC_CHECK_FUNCS([memmove memset])
427
428# Functions needed to support NLS
429AC_CHECK_FUNCS([setlocale])
430
431# Data types
432AC_STRUCT_TM
433AC_TYPE_PID_T
434AC_TYPE_SIZE_T
435
436# Defines, accessible for all source files
437AC_DEFINE_UNQUOTED(META_PROTOCOL_VERSION, "$META_PROTOCOL_VERSION",
438		   [Protocol version used by the metaserver])
439AC_DEFINE_UNQUOTED(PIONEERS_DEFAULT_GAME_PORT, "$PIONEERS_DEFAULT_GAME_PORT",
440		   [The default port for a new game])
441AC_DEFINE_UNQUOTED(PIONEERS_DEFAULT_GAME_HOST, "$PIONEERS_DEFAULT_GAME_HOST",
442		   [The default host for a new game])
443AC_DEFINE_UNQUOTED(PIONEERS_DEFAULT_ADMIN_PORT, "$PIONEERS_DEFAULT_ADMIN_PORT",
444		   [The default port for the admin interface])
445AC_DEFINE_UNQUOTED(PIONEERS_DEFAULT_META_PORT, "$PIONEERS_DEFAULT_META_PORT",
446		   [The port for the metaserver])
447AC_DEFINE_UNQUOTED(PIONEERS_DEFAULT_METASERVER,
448		   "$PIONEERS_DEFAULT_METASERVER", [The default metaserver])
449
450## internationalization support
451IT_PROG_INTLTOOL([0.35])
452AM_NLS
453if test $USE_NLS = yes; then
454	AC_DEFINE(ENABLE_NLS, 1, [Enable NLS])
455fi
456
457GETTEXT_PACKAGE=pioneers
458AC_SUBST(GETTEXT_PACKAGE)
459AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [The gettext package name])
460
461if test $pioneers_is_mingw_port = yes; then
462	# No console window for the graphical applications
463	AC_SUBST(GTK_LIBS, "$GTK_LIBS -mwindows")
464	# Don't use the share subdirectory for themes and pixmaps
465	datadir='${prefix}'
466	# Don't use bin subdirectories
467	bindir='${prefix}'
468	# Use a relative path, to make the executable relocatable
469	pioneers_datadir=.
470	pioneers_iconthemedir=$datadir/share/icons/hicolor
471	# Use a flat hierarchy for the themes
472	pioneers_themedir=$datadir/themes
473	pioneers_themedir_embed=themes
474	pioneers_localedir=share/locale
475else
476	pioneers_datadir=$datadir
477	pioneers_iconthemedir=$datadir/icons/hicolor
478	pioneers_themedir=$datadir/games/pioneers/themes
479	pioneers_themedir_embed=$pioneers_themedir
480	pioneers_localedir=$datadir/locale
481fi
482AC_SUBST(pioneers_datadir)
483AC_SUBST(pioneers_iconthemedir)
484AC_SUBST(pioneers_themedir)
485AC_SUBST(pioneers_themedir_embed)
486AC_SUBST(pioneers_localedir)
487
488# All checks are completed.
489# Determine which executables cannot be built
490pioneers_build_client_ai=yes;
491pioneers_build_client_gtk=yes;
492pioneers_build_editor=yes;
493pioneers_build_server_console=yes;
494pioneers_build_server_gtk=yes;
495pioneers_build_metaserver=yes;
496
497if test "$pioneers_have_syslog" = "no"; then
498	pioneers_build_metaserver=no;
499fi
500if test "$have_graphical" != "yes"; then
501	pioneers_build_client_gtk=$have_graphical;
502	pioneers_build_editor=$have_graphical;
503	pioneers_build_server_gtk=$have_graphical;
504fi
505
506# The metaserver functionality is not ported to MS Windows
507if test "$pioneers_is_windows_port" = "yes"; then
508	pioneers_build_metaserver="no, not implemented for MS Windows";
509fi
510
511AM_CONDITIONAL(USE_WINDOWS_ICON, [test $pioneers_is_windows_port = yes])
512
513AM_CONDITIONAL(BUILD_CLIENT, [test "$pioneers_build_client_gtk" = "yes" -o "$pioneers_build_client_ai" = yes])
514AM_CONDITIONAL(BUILD_EDITOR, [test "$pioneers_build_editor" = "yes"])
515AM_CONDITIONAL(BUILD_SERVER, [test "$pioneers_build_server_gtk" = "yes" -o "$pioneers_build_server_console" = "yes"])
516AM_CONDITIONAL(BUILD_METASERVER, [test "$pioneers_build_metaserver" = "yes"])
517AM_CONDITIONAL(IS_MINGW_PORT, [test "$pioneers_is_mingw_port" = "yes"])
518
519AC_CONFIG_FILES([Makefile])
520AC_CONFIG_FILES([pioneers.spec])
521AC_CONFIG_FILES([Doxyfile])
522AC_CONFIG_FILES([po/Makefile.in])
523AC_CONFIG_FILES([client/help/Makefile])
524
525AC_OUTPUT
526
527AC_MSG_NOTICE([
528$PACKAGE v$VERSION configuration:
529
530        Source code location:     ${srcdir}
531        Install location:         ${prefix}
532        Compiler:                 ${CC}
533        Build graphical client    $pioneers_build_client_gtk
534        Build computer player     $pioneers_build_client_ai
535        Build game editor         $pioneers_build_editor
536        Build graphical server    $pioneers_build_server_gtk
537        Build console server      $pioneers_build_server_console
538        Build metaserver          $pioneers_build_metaserver
539        Build help                $pioneers_help
540        AVAHI support             $have_avahi
541        LIBNOTIFY support         $have_libnotify
542        LIBCANBERRA support       $have_libcanberra
543    Developers only:
544        Use compiler warnings     $pioneers_warnings
545        Add debug information     $pioneers_debug
546        Enable deprecation checks $pioneers_deprecationChecks
547        Hardening compiler flags  $enable_hardening
548])
549