1# Process this file with autoconf to produce a configure script.
2#
3# Alien Arena auto configuration source
4#
5# Copyright (C) 2010 COR Entertainment, LLC.
6#
7# This program is free software; you can redistribute it and/or
8# modify it under the terms of the GNU General Public License
9# as published by the Free Software Foundation; either version 2
10# of the License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15#
16# See the GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License along
19# with this program; if not, write to the Free Software Foundation, Inc.,
20# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21#
22
23# configure.ac for
24#  GNU/Linux, Unix
25#  Windows (32-bit) using MinGW - Experimental
26#  Mac OS X / Darwin using X11 - Experimental
27
28AC_PREREQ([2.69])
29AC_INIT([alienarena],[7.66],[alienrace@comcast.net])
30
31AC_CONFIG_SRCDIR([source/ref_gl/r_image.h])
32AC_CONFIG_MACRO_DIR([m4])
33AC_CONFIG_AUX_DIR([config])
34AC_CONFIG_HEADERS([config/config.h])
35
36dnl insure default prefix
37AX_EXPAND_PREFIX
38
39dnl 1.14 = require automake 1.14 or greater
40dnl foreign = do not apply GNU doc requirements
41dnl subdir-objects = compile objects into their sub directories
42dnl silent-rules = less output (--disable-silent-rules for more output)
43dnl add dist-zip, dist-bzip2 for other distributions besides tar.gz
44AM_INIT_AUTOMAKE([ 1.14 foreign subdir-objects silent-rules ])
45AM_SILENT_RULES([yes])
46
47dnl use --enable-maintainer-mode to get full set of make targets.
48dnl autotools generated files will not be updated otherwise.
49dnl without --enable-maintainer-mode, autotools programs are not needed
50dnl to build the program, which is better for non-developers.
51AM_MAINTAINER_MODE
52
53AC_CANONICAL_HOST
54
55#
56# Checks for programs.
57#
58AC_PROG_CXX
59AC_PROG_AWK
60AC_PROG_CC
61AC_PROG_CPP
62AC_PROG_INSTALL
63AC_PROG_LN_S
64AC_PROG_MAKE_SET
65AC_PROG_RANLIB
66AC_PROG_MKDIR_P
67AM_PROG_CC_C_O
68PKG_PROG_PKG_CONFIG
69
70
71#
72# check host environment
73#
74cond_build_win32=no
75cond_build_unix=no
76unix_host=generic
77AS_CASE([ ${host} ],
78	[ *-*-mingw* ],[ cond_build_win32=yes ],
79	[ *-*-darwin*],
80		[
81		cond_build_unix=yes
82		unix_host=darwin
83		],
84	[ *-*-linux* ],
85		[
86		cond_build_unix=yes
87		unix_host=linux
88		],
89	[ cond_build_unix=yes ])
90
91AM_CONDITIONAL([BUILD_WIN32],[ test "x${cond_build_win32}" = xyes ])
92AM_CONDITIONAL([BUILD_UNIX],[ test "x${cond_build_unix}" = xyes ])
93
94#
95# Environment variable for specifying libGL.dylib path for Darwin when it
96# is not in the dlopen() search path. see dlopen (3) for Mac OS X.
97# Either export or in command line: GL_LIBDIR=/usr/Xll/lib, for example.
98# If this GL_LIBDIR is not given, use the shell variable x_libraries from
99# the AC_PATH_X macro (which may be empty)
100#
101gl_dlopen_path=default
102AS_IF([ test x"${unix_host}" = xdarwin ],
103	[
104	AC_PATH_X
105	AC_MSG_CHECKING([for GL_LIBDIR (location of libGL.dylib)])
106	AC_ARG_VAR( GL_LIBDIR, [directory containing libGL.dylib])
107	AC_MSG_RESULT([${GL_LIBDIR}])
108	AS_IF([ test x"${GL_LIBDIR}" = x ],
109		[gl_dlopen_path=${x_libraries}],
110		[gl_dlopen_path=${GL_LIBDIR}])
111])
112
113#
114# Unix/Linux/Darwin dedicated server only build option
115#
116AC_MSG_CHECKING([whether to build the client])
117AM_COND_IF([BUILD_UNIX],
118	[
119	AC_ARG_ENABLE(
120		[client],
121		[AS_HELP_STRING([--disable-client],
122			[build dedicated server only, not the client (default:no)])],
123		[build_client=${enableval}],
124		[build_client=yes])
125	],
126	[build_client=yes])
127AC_MSG_RESULT([${build_client}])
128AM_CONDITIONAL([BUILD_CLIENT],[ test "x${build_client}" = xyes ])
129
130#
131# Alternate Install. Install in the traditional single directory way.
132# Might be required for map making tools to work. Also, good when updating
133# from SVN regularly. Affects how Makefile sets DATADIR and does make-install.
134# for now, win32/mingw is always alternate install
135#
136AM_COND_IF([BUILD_WIN32],
137	[alternate_install=yes],
138	[
139	AC_MSG_CHECKING([for traditional single directory, in place installation])
140	AC_ARG_ENABLE(
141		[alternate_install],
142		[AS_HELP_STRING([--enable-alternate-install],
143			[traditional single directory, in-place installation (default:no)])],
144		[alternate_install=${enableval}],
145		[alternate_install=no])
146	AC_MSG_RESULT([${alternate_install}])
147])
148
149AM_CONDITIONAL([ALTERNATE_INSTALL],[ test "x${alternate_install}" = xyes ])
150
151dnl
152dnl symbols for config.h
153dnl
154AM_COND_IF([BUILD_UNIX],
155	[
156	AC_DEFINE([UNIX_VARIANT],1,[unix-specific conditional compile])
157
158	AS_CASE([ ${unix_host} ],
159		[ darwin ],
160			[
161			AC_DEFINE([DARWIN_SPECIAL_CASE],1,[darwin-specific conditional compile])
162			dnl
163			dnl possible error from select() in unix/net_udp.c::Net_Sleep()
164			dnl
165			AC_DEFINE([_DARWIN_UNLIMITED_SELECT],1,[see select (2) man page for Mac OS X])
166			],
167		[ linux ],
168			[AC_DEFINE([LINUX_SPECIAL_CASE],1,[linux-specific conditional compile])],
169		[ generic ]
170			[AC_DEFINE([GENERIC_UNIX],1,[non-specific unix conditional compile])])
171
172	AC_ARG_ENABLE([ansi-color],
173	[AS_HELP_STRING([--enable-ansi-color],[ANSI terminal color (default: no)])],
174	[ansi_color=${enableval}],[ansi_color=no])
175	AS_IF([ test "x$ansi_color" = "xyes" ],[
176		AC_DEFINE([ANSI_COLOR],1,[Enable ANSI terminal color codes in stdout])
177		])
178])
179
180AM_COND_IF([BUILD_WIN32],
181	[AC_DEFINE([WIN32_VARIANT],1,[win32-specific conditional compile])])
182
183AC_DEFINE_UNQUOTED(CPUSTRING, "${host_cpu}", [Canonical CPU identification])
184AC_DEFINE_UNQUOTED(BUILDSTRING, "${host_os}", [Canonical OS identification])
185
186#
187# ODE (Open Dynamic Engine) Library
188#
189# if no option or "--without-system-libode" is specified, use the recommended
190#  integrated ODE.
191# if "--with-system-libode" is specified, check. look under BUILD_CLIENT
192#  for details.
193#
194AC_ARG_WITH([system-libode],
195	[AS_HELP_STRING([--with(out)-system-libode],
196		[use system-supplied libode (default:without)])],
197	[system_ode=${withval}],
198	[system_ode=no])
199
200#
201# Option for disabling installation of documents to allow for custom
202# documentation installation. Normally only useful for distro packagers.
203# Do not put in status message, because  documents probably are being
204# installed in a custom way.
205#
206AC_ARG_ENABLE([documents],
207	[AS_HELP_STRING([--disable-documents],
208			[Disable document installation (default: no)])],
209	[no_docs=${documents}],
210	[no_docs=no])
211AM_CONDITIONAL([INSTALL_DOCS],[ test "x${no_docs}" = "xno" ])
212
213#
214# Option for specifying where icon is installed.
215#
216AC_ARG_WITH(icondir,
217	[AS_HELP_STRING([--with-icondir=DIR],
218		[icon install directory (default:DATADIR/icons)])],
219	[ with_icondir=${withval} ], [ with_icondir=${datadir}/icons ])
220AC_SUBST([icondir], [${with_icondir}])
221
222#
223# User writable data and configuration subdirectory in $HOME
224#  normally this is a hidden subdirectory
225#  default is .codered. but distros modify this
226#  can be overridden by environment variable, COR_GAME
227#
228# (These also are #defined in qcommon.h, but changing them is not a good idea
229# BASE_GAMEDATA  "data1", GAME_GAMEDATA  "arena", BOT_GAMEDATA   "botinfo")
230#
231# AC_ARG_VAR creates ALIENARENA_HOMEDIR entry for ./configure --help
232# AC_DEFINE_UNQUOTED adds the setting to config.h,
233#  overriding the define in qcommon.h
234#   and
235#  using the default, if not specified in the commandline
236#  (Note: could also be specified in enviroment. That is not recommended
237#   but is the reason for the package specific variable name.)
238#
239alienarena_homedir=".codered"
240AC_ARG_VAR([ALIENARENA_HOMEDIR],[User data and cfg subdirectory in $HOME])
241AS_IF([ test "x${ALIENARENA_HOMEDIR}" = "x" ],
242	[ALIENARENA_HOMEDIR=${alienarena_homedir}],
243	[alienarena_homedir=${ALIENARENA_HOMEDIR}])
244AC_DEFINE_UNQUOTED([USER_GAMEDATA],["${alienarena_homedir}"],
245	[User data and cfg subdirectory in $HOME])
246
247#
248# Checks for libraries.
249#
250AC_SEARCH_LIBS([acos],[m])
251AC_SEARCH_LIBS([dlopen],[dl])
252AC_SEARCH_LIBS([clock_gettime],[rt])
253
254dnl
255dnl start of client-only library requirements
256dnl
257AM_COND_IF([BUILD_CLIENT],
258	[
259
260	AX_PTHREAD([],[AC_MSG_ERROR(["Required pthreads support not found."])])
261#
262# This might be a workaround for DSO missing pthread library error
263#
264	AS_IF([ test "x$PTHREAD_LIBS" = "x" ],[PTHREAD_LIBS="-pthread"])
265
266	dnl
267	dnl zlib support
268	dnl
269	dnl If no option is specified, then check for the library and act accordingly.
270	dnl If "--without-zlib" is specified, do not check, and disable the library.
271	dnl If "--with-zlib" is specified, check and bail out if it cannot be found.
272	dnl
273	AC_ARG_WITH([zlib],
274		[AS_HELP_STRING([--with(out)-zlib],[include Zlib compression support (default: check)])],
275		[],
276		[with_zlib=check])
277	have_zlib=no
278	AS_IF([ test "x$with_zlib" != "xno" ],[
279		PKG_CHECK_MODULES([ZLIB],[zlib],[
280			have_zlib=yes
281			AC_DEFINE([HAVE_ZLIB],1,[Enable ZLib support])
282		],[
283			have_zlib=no
284			AS_IF([ test "x$with_zlib" = "xyes" ],[
285				AC_MSG_FAILURE([--with-zlib specified, but the library or headers could not be found])
286			])
287		])
288	])
289
290
291	dnl IJG libjpeg required
292	AC_SEARCH_LIBS([jpeg_read_header],[jpeg],,
293		[AC_MSG_ERROR(["Required jpeg library not found."])])
294
295
296	AM_COND_IF([BUILD_UNIX],
297	[
298		dnl
299		dnl XF86
300		dnl
301		PKG_CHECK_MODULES([X11],[x11])
302
303		dnl
304		dnl XF86 VidMode extension
305		dnl  Note: supports full-screen display. if it is not installed, the
306		dnl   build will succeed but full-screen will not work.
307		dnl
308		dnl If no option is specified, then check for the library and act accordingly.
309		dnl If "--without-xf86vm" is specified, do not check, and disable the library.
310		dnl If "--with-xf86vm" is specified, check and bail out if it cannot be found.
311		dnl
312		AC_ARG_WITH([xf86vm],
313			[AS_HELP_STRING([--with(out)-xf86vm],[include XF86 VidMode support (default: check)])],
314			[],
315			[with_xf86vm=check])
316		have_Xxf86vm=no
317		AS_IF([ test "x$with_xf86vm" != "xno" ],[
318			PKG_CHECK_MODULES([XXF86VM],[xxf86vm],[
319				have_Xxf86vm=yes
320				AC_DEFINE([HAVE_XXF86VM],1,[Enable X86 VidMode support])
321			],[
322				have_Xxf86vm=no
323				AS_IF([ test "x$with_xf86vm" = "xyes" ],[
324					AC_MSG_FAILURE([--with-xf86vm specified, but the library or headers could not be found])
325				])
326			])
327		])
328
329		dnl
330		dnl XF86 DGA extension
331		dnl  Note: this is changed to default to "without",
332		dnl    so "--with-xf86dga" must be specified to use this library
333		dnl
334		dnl If no option is specified, disable the library.
335		dnl If "--without-xf86dga" is specified, do not check, and disable the library.
336		dnl If "--with-xf86dga" is specified, check and bail out if it cannot be found.
337		dnl
338		AC_ARG_WITH([xf86dga],
339			[AS_HELP_STRING([--with(out)-xf86dga],[include XF86 DGA support (default: without)])],
340			[],
341			[with_xf86dga=no])
342		have_Xxf86dga=no
343		AS_IF([ test "x$with_xf86dga" != "xno" ],[
344			PKG_CHECK_MODULES([XXF86DGA],[xxf86dga],[
345				have_Xxf86dga=yes
346				AC_DEFINE([HAVE_XXF86DGA],1,[Enable X86 DGA support])
347				AC_CHECK_HEADERS([X11/extensions/Xxf86dga.h],[],[],[
348#include <X11/Xlib.h>
349#include <X11/Xatom.h>
350])
351			],[
352				have_Xxf86dga=no
353				AS_IF([ test "x$with_xf86dga" = "xyes" ],[
354					AC_MSG_FAILURE([--with-xf86dga specified, but the library or headers could not be found])
355				])
356			])
357		])
358	])
359
360#
361# if option to use system libode, rather than integrated ODE, is selected
362#  use pkg-config to get cflags and libs. do not default to
363#  integrated ODE on failure, as that is probably not what is wanted.
364#
365# for recommended integrated ODE build, setup client dependencies,
366#  and configuration. Double precision math is "hardwired" here and
367#  is not considered to be a user-specifiable option.
368#
369	AS_IF([ test "x$system_ode" = "xyes" ],[
370		PKG_CHECK_MODULES([ODE],[ode],,[
371			AC_MSG_FAILURE(
372				[--with-system-libode specified, but the library or headers could not be found])
373			])
374		],[
375		AC_SUBST([ODE_CFLAGS],[-DdDOUBLE])
376		AC_DEFINE([dEpsilon],[DBL_EPSILON],[Define to DBL_EPSILON for ODE])
377	])
378
379	dnl
380	dnl Check common client dependencies:
381	dnl Curl, Ogg/Vorbis and vorbisfile
382	dnl
383	PKG_CHECK_MODULES([DEPS],[libcurl ogg vorbis vorbisfile freetype2])
384
385	dnl Hack in the extras for Win32
386	dnl TODO: this may not be the best way to do this
387	win32_syslibs=""
388	AM_COND_IF([BUILD_WIN32],
389		[ win32_syslibs="-lmingw32 -lwinmm -lwsock32 -lws2_32 -lgdi32 -luser32"])
390	AC_SUBST([WIN32_LIBS],[$win32_syslibs])
391
392
393])
394
395AM_CONDITIONAL([USE_SYSTEM_LIBODE],[ test "x$system_ode" = "xyes" ])
396
397dnl
398dnl end of client-only library requirements
399dnl
400
401#
402# Checks for header files
403#
404
405AC_CHECK_HEADERS(
406	[inttypes.h stdint.h stddef.h stdlib.h unistd.h],
407	[],[],[])
408
409AC_CHECK_HEADERS(
410	[float.h limits.h],
411	[],[],[])
412
413AC_CHECK_HEADERS(
414	[arpa/inet.h netinet/in.h sys/ioctl.h sys/socket.h netdb.h termios.h sys/select.h]
415	[],[],[])
416
417AC_CHECK_HEADERS(
418	[dlfcn.h fcntl.h malloc.h string.h sys/param.h sys/stat.h]
419	[],[],[])
420
421AC_CHECK_HEADERS(
422	[time.h sys/time.h]
423	[],[],[])
424
425AC_CHECK_HEADERS([windows.h winsock.h winsock2.h])
426
427dnl
428dnl start of client-only header requirements
429dnl
430AM_COND_IF([BUILD_CLIENT],[
431
432	jpeglib_h_found=no
433	AC_CHECK_HEADERS([jpeglib.h jpeg/jpeglib.h],[ jpeglib_h_found=yes ])
434	AS_IF([ test "x${jpeglib_h_found}" = xno ],
435		[AC_MSG_ERROR("Required JPEG header file not found.")])
436
437	openal_h_found=no
438	AC_CHECK_HEADERS([AL/al.h al.h OpenAL/al.h],[ openal_h_found=yes ])
439	AS_IF([ test "x${openal_h_found}" = xno ],
440		[AC_MSG_ERROR("Required OpenAL header file not found.")])
441
442	openalc_h_found=no
443	AC_CHECK_HEADERS([AL/alc.h alc.h OpenAL/alc.h],[ openalc_h_found=yes ])
444	AS_IF([ test "x${openalc_h_found}" = xno ],
445		[AC_MSG_ERROR("Required OpenAL header file not found.")])
446
447	AC_CHECK_HEADERS([GL/gl.h],,
448		[AC_MSG_ERROR("Required OpenGL header files not found.")])
449	AM_COND_IF([BUILD_UNIX],
450		[AC_CHECK_HEADERS([GL/glx.h],,
451			[AC_MSG_ERROR("Required OpenGL header files not found.")
452		])
453	])
454])
455dnl
456dnl end of client-only header requirements
457dnl
458
459#
460# Checks for typedefs, structures, and compiler characteristics.
461#
462AC_HEADER_STDBOOL
463AC_C_INLINE
464AC_TYPE_SIZE_T
465AC_TYPE_UID_T
466AC_TYPE_INT32_T
467AC_TYPE_INT64_T
468AC_TYPE_UINT64_T
469AC_CHECK_TYPES([ptrdiff_t])
470AC_CHECK_TYPES([uintptr_t])
471
472
473#
474# Checks for library functions.
475#
476AC_FUNC_ERROR_AT_LINE
477AC_FUNC_ALLOCA
478AC_FUNC_MALLOC
479AC_FUNC_MMAP
480AC_FUNC_REALLOC
481AC_FUNC_OBSTACK
482
483dnl network functions
484AC_CHECK_FUNCS([closesocket socket gethostbyname select])
485
486dnl thread functions
487AC_CHECK_FUNCS([pthread_create _begin_thread])
488
489dnl string functions
490AC_CHECK_FUNCS([strchr strerror strrchr strstr strlcpy isascii])
491AC_CHECK_FUNCS([strcasecmp strncasecmp ])
492AC_CHECK_FUNCS([strdup _strdup stricmp _stricmp strnicmp _strnicmp])
493
494dnl file system functions
495AC_CHECK_FUNCS([filelength stat fstat getcwd _getcwd unlink _unlink mkdir _mkdir])
496
497dnl math functions
498AC_CHECK_FUNCS([pow sqrt floor])
499
500dnl mem mgmt functions
501AC_CHECK_FUNCS([memmove memset munmap mremap])
502
503dnl time functions
504AC_CHECK_FUNCS([gettimeofday clock_gettime])
505
506dnl other functions
507AC_CHECK_FUNCS([ putenv _putenv])
508
509dnl
510dnl Set names of dlopened libraries for config.h
511dnl
512AM_COND_IF([BUILD_UNIX],
513	[AS_CASE([ ${unix_host} ],
514		[ darwin ],
515			[AS_IF([ test x"${gl_dlopen_path}" = xdefault ],
516				[AC_DEFINE([OPENGL_DRIVER],
517					["libGL.dylib"],
518					[OpenAL dynamic lib name])
519				],
520				[AC_DEFINE_UNQUOTED([OPENGL_DRIVER],
521					["${gl_dlopen_path}/libGL.dylib"],
522					[OpenGL dynamic lib path])
523			])
524
525			AC_DEFINE([OPENAL_DRIVER],
526				["/System/Library/Frameworks/OpenAL.framework/OpenAL"],
527				[OpenAl dynamic lib path])
528			],
529
530		[
531		AC_DEFINE([OPENGL_DRIVER],
532			["libGL.so.1"],[OpenGL shared lib name])
533
534		AC_DEFINE([OPENAL_DRIVER],
535			["libopenal.so.1"],[OpenAL shared lib name])
536	])
537])
538
539AM_COND_IF([BUILD_WIN32],
540	[
541	AC_DEFINE([OPENGL_DRIVER],["opengl32"],[OpenGL DLL name])
542
543	AC_DEFINE([OPENAL_DRIVER],["OpenAL32.dll"],[OpenAL dll name])
544])
545
546#
547# required gcc/g++ options.
548#  fast-math because strict adherence to IEEE standard is not needed.
549#  no-strict-aliasing because strict aliasing is not adhered to in places.
550#
551AX_APPEND_FLAG([-ffast-math],[CFLAGS])
552AX_APPEND_FLAG([-ffast-math],[CXXFLAGS])
553AX_APPEND_FLAG([-fno-strict-aliasing],[CFLAGS])
554AX_APPEND_FLAG([-fno-strict-aliasing],[CXXFLAGS])
555
556# outputs
557AC_CONFIG_FILES([ Makefile source/Makefile ])
558
559AC_OUTPUT
560
561dnl Option to disable this message.
562AC_ARG_ENABLE([build-status],[AS_HELP_STRING([--disable-build-status],
563			[hide the status message at the end of the configuration script (default:no)])],
564			[hide_status=${enableval}],[hide_status=no])
565
566AS_IF([test "x$hide_status" = "xno"],[
567	AS_ECHO()
568	AS_ECHO(["-------------------------------------------"])
569	AS_ECHO(["Package: ${PACKAGE_NAME} Version: ${PACKAGE_VERSION}"])
570	AS_ECHO([" OS: .................... ${host_os}"])
571	AS_ECHO([" CPU: ................... ${host_cpu}"])
572	AM_COND_IF([BUILD_WIN32],,[
573		AS_IF([ test "x$build_client" = "xyes" ],[dedicated_only=no],[dedicated_only=yes])
574		AS_ECHO([" Dedicated Only: ........ ${dedicated_only}"])
575		AS_ECHO([" Server terminal color: . ${ansi_color}"])
576	])
577	AS_ECHO([" Alternate install: ..... ${alternate_install}"])
578
579	AM_COND_IF([ALTERNATE_INSTALL],[
580		AM_COND_IF([BUILD_CLIENT],[
581			AS_ECHO([" System ODE library ..... ${system_ode}"])
582			AS_ECHO([" XF86 DGA support: ...... ${have_Xxf86dga}"])
583			AS_ECHO([" XF86 VidMode support: .. ${have_Xxf86vm}"])
584			AS_ECHO([" Zlib support: .......... ${have_zlib}"])
585			])
586		AS_ECHO([" Shared Data ............ ${srcdir}"])
587		AS_ECHO(["   note: with alternate install, data is located relative to CWD."])
588		AS_ECHO([" User Home R/W Data ..... ${alienarena_homedir}"])
589		],[
590dnl
591dnl try to generate the full path for automake pkgdatadir
592dnl  which determines DATADIR that locates data1, arena, and botinfo
593dnl
594		game_data=${datadir}/${PACKAGE_NAME}
595		game_data_a=`eval "echo ${game_data}"`
596		game_data=`eval "echo ${game_data_a}"`
597		AM_COND_IF([BUILD_CLIENT],[
598			AS_ECHO([" System ODE library ..... ${system_ode}"])
599			AS_ECHO([" XF86 DGA support: ...... ${have_Xxf86dga}"])
600			AS_ECHO([" XF86 VidMode support: .. ${have_Xxf86vm}"])
601			AS_ECHO([" Zlib support: .......... ${have_zlib}"])
602			AS_IF([ test x"${unix_host}" = xdarwin ],[
603				AS_ECHO([" GL_LIBDIR: ............. ${gl_dlopen_path}"])
604			])
605		])
606		AS_ECHO([" Prefix ................. ${prefix}"])
607		AS_ECHO([" Shared RO Data: ........ ${game_data}"])
608		AS_ECHO([" User Home R/W Data ..... ${alienarena_homedir}"])
609	])
610
611	AS_ECHO()
612
613	AM_COND_IF([ALTERNATE_INSTALL],
614		[AS_ECHO(["Run \"make\" to build, then \"make install-alternate\" to install."])],
615		[AS_ECHO(["Run \"make\" to build, then \"sudo make install\" to install."])])
616
617	AS_ECHO()
618	AS_ECHO(["Advanced Build Information:"])
619	AS_ECHO([" See README for information and recommendations."])
620	AS_ECHO([" Run ./configure --help for configure options."])
621	AS_ECHO([" Compiler options:"])
622	AS_ECHO(["  CFLAGS:.... ${CFLAGS}"])
623	AS_ECHO(["  CXXFLAGS:.. ${CXXFLAGS}"])
624	AS_ECHO()
625
626	AS_ECHO(["--------------------------------------------"])
627])
628