source: trunk/configure.ac @ 2856

Last change on this file since 2856 was 2856, checked in by benlitz, 6 years ago

fixed configure.ac

File size: 16.6 KB
Line 
1dnl configure script for Lol Engine
2
3AC_INIT(lolengine, 0.0)
4AC_PREREQ(2.50)
5AC_CONFIG_AUX_DIR(.auto)
6AC_CANONICAL_SYSTEM
7AM_INIT_AUTOMAKE([subdir-objects no-define tar-ustar silent-rules])
8dnl AM_MAINTAINER_MODE
9AM_DEFAULT_VERBOSITY=0
10
11dnl Versioning of the separate software we ship
12LOLUNIT_VERSION=0.1
13AC_SUBST(LOLUNIT_VERSION)
14LOLREMEZ_VERSION=0.2
15AC_SUBST(LOLREMEZ_VERSION)
16
17AC_CONFIG_HEADER(config.h)
18
19AM_PROG_CC_C_O
20AC_PROG_CPP
21AC_PROG_CXX
22AC_PROG_CXXCPP
23AC_PROG_RANLIB
24
25dnl  Check that the C++ compiler really works
26AC_LANG_PUSH(C++)
27AC_MSG_CHECKING(for a fully working C++ compiler)
28AC_TRY_LINK([], [],
29 [AC_MSG_RESULT(yes)],
30 [AC_MSG_RESULT(no)
31  AC_MSG_ERROR([[C++ compiler cannot link executables]])])
32AC_LANG_POP(C++)
33
34AC_LIBTOOL_WIN32_DLL
35AM_PROG_LIBTOOL
36AC_LIBTOOL_CXX
37
38AC_C_CONST
39AC_C_INLINE
40
41dnl Ensure an error is thrown if pkg-config M4 files are not found.
42m4_pattern_allow([^PKG_CONFIG_LIBDIR$])
43m4_pattern_forbid([^PKG_CHECK_MODULES$])
44m4_pattern_forbid([^PKG_PROG_PKG_CONFIG$])
45
46dnl  Same for Lol Engine M4 files.
47m4_pattern_forbid([^LOL_])
48
49
50dnl Do not use PKG_CONFIG_LIBDIR when cross-compiling.
51if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then
52  export PKG_CONFIG_LIBDIR=/dev/null
53fi
54
55dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
56dnl now otherwise it might be set in an obscure if statement. Same thing for
57dnl PKG_PROG_PKG_CONFIG which needs to be called first.
58AC_EGREP_CPP(yes, foo)
59PKG_PROG_PKG_CONFIG()
60
61
62dnl  Check for a working implementation of sed
63AC_PROG_SED
64AC_MSG_CHECKING(for a sed that understands \t)
65if test "$(echo 'x\x' | "${SED}" 's/.*@<:@^x\t@:>@//')" != x; then
66  AC_MSG_RESULT(no)
67  AC_MSG_ERROR([[consider installing GNU sed]])
68else
69  AC_MSG_RESULT(yes)
70fi
71
72
73dnl conditional builds
74AC_ARG_ENABLE(debug,
75  [  --enable-debug          build debug versions of the game (default no)])
76AC_ARG_ENABLE(release,
77  [  --enable-release        build final release of the game (default no)])
78AC_ARG_ENABLE(experimental,
79  [  --enable-experimental   experimental build (default no)])
80AC_ARG_ENABLE(doc,
81  [  --enable-doc            build documentation (needs doxygen and LaTeX)])
82
83
84dnl  Common C headers
85AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h)
86AC_CHECK_HEADERS(fastmath.h pthread.h libutil.h util.h pty.h glob.h unistd.h)
87AC_CHECK_HEADERS(execinfo.h)
88AC_CHECK_HEADERS(sys/ioctl.h sys/ptrace.h sys/stat.h sys/syscall.h sys/user.h)
89AC_CHECK_HEADERS(sys/wait.h sys/time.h)
90AC_CHECK_HEADERS(linux/kdev_t.h linux/major.h)
91AC_CHECK_HEADERS(security/pam_appl.h security/pam_misc.h)
92AC_CHECK_HEADERS(pam/pam_appl.h pam/pam_misc.h)
93
94dnl  Common C++ headers
95AC_LANG_PUSH(C++)
96AC_CHECK_HEADERS(cxxabi.h)
97AC_LANG_POP(C++)
98
99dnl  Common C functions
100AC_CHECK_FUNCS(getenv system tmpfile tmpnam getcwd _getcwd backtrace_symbols)
101AC_CHECK_FUNCS(gettimeofday usleep)
102
103
104dnl  Build mode
105ac_cv_my_build_mode="devel"
106if test "x${enable_release}" = "xyes"; then
107  ac_cv_my_build_mode="release"
108  CFLAGS=""
109  LDFLAGS=""
110  CXXFLAGS=""
111fi
112if test "x${enable_devel}" = "xyes"; then
113  ac_cv_my_build_mode="devel"
114  CFLAGS=""
115  LDFLAGS=""
116  CXXFLAGS=""
117fi
118if test "x${enable_debug}" = "xyes"; then
119  ac_cv_my_build_mode="debug"
120  CFLAGS=""
121  LDFLAGS=""
122  CXXFLAGS=""
123fi
124
125if test "x${ac_cv_my_build_mode}" = "xdebug"; then
126  AC_DEFINE(LOL_BUILD_DEBUG, 1, Define to 1 to activate debug build)
127  BUILD_CXXFLAGS="-O -g"
128elif test "x${ac_cv_my_build_mode}" = "xdevel"; then
129  AC_DEFINE(LOL_BUILD_DEVEL, 1, Define to 1 to activate development build)
130  BUILD_CXXFLAGS="-Os -g -ffast-math"
131else
132  AC_DEFINE(LOL_BUILD_RELEASE, 1, Define to 1 to activate final release)
133  BUILD_CXXFLAGS="-Os -ffast-math -fomit-frame-pointer"
134  BUILD_LDFLAGS="-fno-strength-reduce"
135fi
136
137
138dnl  Build documentation?
139DOXYGEN="no"
140LATEX="no"
141if test "${enable_doc}" != "no"; then
142  AC_PATH_PROG(DOXYGEN, doxygen, no)
143  if test "${DOXYGEN}" != "no"; then
144    # Build LaTeX documentation?
145    AC_PATH_PROG(LATEX, pdflatex, no)
146    AC_PATH_PROG(KPSEWHICH, kpsewhich, no)
147    AC_PATH_PROG(DVIPS, dvips, no)
148    if test "${DVIPS}" = "no" -o "${KPSEWHICH}" = "no"; then
149      LATEX="no"
150    fi
151    if test "${LATEX}" != "no"; then
152      AC_MSG_CHECKING(for a4.sty and a4wide.sty)
153      if "${KPSEWHICH}" a4.sty >/dev/null 2>&1; then
154        if "${KPSEWHICH}" a4wide.sty >/dev/null 2>&1; then
155          AC_MSG_RESULT(yes)
156        else
157          LATEX="no"
158          AC_MSG_RESULT(no)
159        fi
160      else
161        LATEX="no"
162        AC_MSG_RESULT(no)
163      fi
164    fi
165    AC_PATH_PROG(DOT, dot, no)
166    if test "${DOT}" != "no"; then
167      USE_DOT="YES"
168    else
169      USE_DOT="NO"
170    fi
171  fi
172fi
173dnl  XXX: disable LaTeX because we use too much memory
174LATEX=no
175AM_CONDITIONAL(BUILD_DOCUMENTATION, test "${DOXYGEN}" != "no")
176AM_CONDITIONAL(USE_LATEX, test "${LATEX}" != "no")
177AM_CONDITIONAL(USE_DOT, test "${DOT}" != "no")
178
179
180dnl  No exceptions
181LOL_TRY_CXXFLAGS(-fno-exceptions, [AM_CXXFLAGS="${AM_CXXFLAGS} -fno-exceptions"])
182LOL_TRY_CXXFLAGS(-fno-rtti, [AM_CXXFLAGS="${AM_CXXFLAGS} -fno-rtti"])
183
184dnl  Build mode specific flags
185AM_CXXFLAGS="${AM_CXXFLAGS} ${BUILD_CXXFLAGS}"
186AM_LDFLAGS="${AM_LDFLAGS} ${BUILD_LDFLAGS}"
187
188dnl  Debug symbols
189LOL_TRY_LDFLAGS(-rdynamic, [AM_LDFLAGS="${AM_LDFLAGS} -rdynamic"])
190
191dnl  Code qui fait des warnings == code de porc == deux baffes dans ta gueule
192LOL_TRY_CXXFLAGS(-Wall, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wall"])
193LOL_TRY_CXXFLAGS(-Wextra, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wextra"])
194LOL_TRY_CXXFLAGS(-Wpointer-arith, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wpointer-arith"])
195LOL_TRY_CXXFLAGS(-Wcast-align, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wcast-align"])
196LOL_TRY_CXXFLAGS(-Wcast-qual, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wcast-qual"])
197LOL_TRY_CXXFLAGS(-Wshadow, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wshadow"])
198LOL_TRY_CXXFLAGS(-Wsign-compare, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wsign-compare"])
199
200dnl  Add these even though they're implicitly set, so that we can safely
201dnl  remove them from within a Makefile.
202LOL_TRY_CXXFLAGS(-Wmaybe-uninitialized, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wmaybe-uninitialized"])
203LOL_TRY_CXXFLAGS(-Wnarrowing, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wnarrowing"])
204LOL_TRY_CXXFLAGS(-Wunused, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wunused"])
205LOL_TRY_CXXFLAGS(-Wstrict-aliasing, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wstrict-aliasing"])
206LOL_TRY_CXXFLAGS(-Wparentheses, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wparentheses"])
207LOL_TRY_CXXFLAGS(-Wreorder, [AM_CXXFLAGS="${AM_CXXFLAGS} -Wreorder"])
208
209
210AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm")
211AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
212
213
214dnl  Unix-specific libutil
215AC_CHECK_LIB(util, forkpty,
216 [UTIL_LIBS="${UTIL_LIBS} -lutil"
217  dnl  Override future forkpty detection
218  ac_cv_func_forkpty="yes"])
219AC_CHECK_FUNCS(forkpty)
220
221
222dnl  GCC-specific symbol demangling
223AC_LANG_PUSH(C++)
224AC_TRY_LINK(
225 [#include <cxxabi.h>],
226 [abi::__cxa_demangle(NULL, 0, 0, NULL);],
227 [AC_DEFINE(HAVE_CXA_DEMANGLE, 1, Define to 1 if abi::__cxa_demangle is available)])
228AC_LANG_POP(C++)
229
230
231dnl  Are we on the PS3?
232ac_cv_my_have_ps3="no"
233AC_CHECK_LIB(sysmodule_stub, cellSysmoduleLoadModule,
234 [ac_cv_my_have_ps3="yes"
235  LOL_LIBS="${LOL_LIBS} -lsysmodule_stub -lsysutil_stub -lresc_stub"
236  dnl  For PSGL
237  AC_DEFINE(HAVE_GLES_2X, 1, Define to 1 if GLES 2.x is available) # FIXME: hack
238  GL_LIBS="${GL_LIBS} -lPSGL -lgcm_cmd -lgcm_sys_stub"
239  dnl  This is the old way; we now use CELL_SDK instead of CELLSDK
240  if test "x${CELLSDK}" != x -a "x${CELL_SDK}" = x; then
241    CELL_SDK="${CELLSDK}"
242  fi
243  if test "x${enable_debug}" = xyes; then
244    GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/debug"
245  elif test "x${enable_release}" = xyes; then
246    GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/ultra-opt"
247  else
248    GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/opt"
249  fi
250  dnl  For the runtime Cg compiler
251  GL_LIBS="${GL_LIBS} -lcgc -lPSGLcgc"
252  dnl  For the PNG decoder
253  LOL_LIBS="${LOL_LIBS} -lpngdec_stub"
254  dnl  For the pad library
255  LOL_LIBS="${LOL_LIBS} -lio_stub -lusbd_stub -lpadfilter"
256  dnl  For the audio library
257  LOL_LIBS="${LOL_LIBS} -laudio_stub -lspurs_stub -lmstreamSPURSMP3"
258  dnl  For the filesystem support
259  LOL_LIBS="${LOL_LIBS} -lfs_stub"
260  dnl  Disable this warning, it's too verbose with vector.h
261  AM_CXXFLAGS="${AM_CXXFLAGS} -Wno-sign-compare"
262  AC_PATH_PROG(MAKE_FSELF, make_fself, no)
263  if test "${MAKE_FSELF}" = "no"; then
264    AC_MSG_ERROR([[Building for PS3 but make_fself not found]])
265  fi],
266 [MAKE_FSELF=no])
267AM_CONDITIONAL(USE_PS3, test "${ac_cv_my_have_ps3}" != "no")
268
269
270dnl  Are we building using MinGW?
271LOL_TRY_CXXFLAGS(-mwindows -mwin32,
272 [AM_CXXFLAGS="${AM_CXXFLAGS} -mwindows -mwin32"
273  LOL_LIBS="${LOL_LIBS} -uWinMain -u_WinMain@16"])
274
275
276dnl  Are we building using Emscripten?
277ac_cv_my_have_emscripten="no"
278AC_CHECK_HEADERS(emscripten.h,
279 [ac_cv_my_have_emscripten="yes"
280  dnl  XXX: activate this if memory heap is too small
281  #AM_CXXFLAGS="${AM_CXXFLAGS} -s ALLOW_MEMORY_GROWTH=1"
282  dnl  HACK: until emcc properly adds these to EMSDK_OPTS
283  CPPFLAGS="${CPPFLAGS} -U__i386__ -U__x86_64__ -U__i386 -U__x86_64 -Ui386 -Ux86_64"
284  CPPFLAGS="${CPPFLAGS} -U__SSE__ -U__SSE2__ -U__MMX__ -UX87_DOUBLE_ROUNDING"
285  CPPFLAGS="${CPPFLAGS} -UHAVE_GCC_ASM_FOR_X87 -DEMSCRIPTEN -U__STRICT_ANSI__"
286  CPPFLAGS="${CPPFLAGS} -U__CYGWIN__"])
287AM_CONDITIONAL(USE_EMSCRIPTEN, test "${ac_cv_my_have_emscripten}" != "no")
288
289
290dnl  Are we on the Xbox 360?
291dnl  Answer: NO! we don't know how to build for it anyway
292AM_CONDITIONAL(USE_X360, false)
293
294
295dnl  Are we on an OS X or iOS platform?
296LOL_TRY_LDFLAGS(-framework Foundation,
297 [LOL_LIBS="${LOL_LIBS} -framework Foundation"])
298LOL_TRY_LDFLAGS(-framework CoreGraphics,
299 [LOL_LIBS="${LOL_LIBS} -framework CoreGraphics"])
300LOL_TRY_LDFLAGS(-framework CoreData,
301 [LOL_LIBS="${LOL_LIBS} -framework CoreData"])
302LOL_TRY_LDFLAGS(-framework UIKit,
303 [LOL_LIBS="${LOL_LIBS} -framework UIKit"])
304
305
306dnl Are we on a Direct3D 9 platform?
307#ac_cv_my_have_d3d9="no"
308#AC_CHECK_HEADERS(d3d9.h, [ac_cv_my_have_d3d9="yes"])
309#if test "${ac_cv_my_have_d3d9}" != "no"; then
310#  D3D_LIBS="${D3D_LIBS} -ld3d9 -ld3dx9 -lxinput"
311#  AC_DEFINE(USE_D3D9, 1, Define to 1 to use DirectX 9)
312#fi
313#AM_CONDITIONAL(USE_D3D9, test "${ac_cv_my_have_d3d9}" != "no")
314
315LOL_CHECK_OPENGL
316
317LOL_CHECK_SDL
318
319dnl  Use Flex's FlexLexer.h or ours?
320ac_cv_my_have_flexlexer_h="no"
321AC_LANG_PUSH(C++)
322AC_CHECK_HEADERS(FlexLexer.h,
323 dnl  Ensure that FlexLexer::yleng is of type int, and not size_t like
324 dnl  on recent Apple systems. It would break all our existing code.
325 [AC_MSG_CHECKING(for FlexLexer.h validity)
326  AC_COMPILE_IFELSE(
327   [AC_LANG_PROGRAM([#include <FlexLexer.h>
328      class Foo : public FlexLexer
329      {
330          Foo() { int &test = yyleng; }
331      };],
332     [])],
333   [AC_MSG_RESULT(yes)
334    ac_cv_my_have_flexlexer_h="yes"],
335   [AC_MSG_RESULT(no)])])
336AC_LANG_POP(C++)
337if test "x${ac_cv_my_have_flexlexer_h}" = "xno"; then
338  LOL_CFLAGS="$LOL_CFLAGS -I\$(top_srcdir)/external/flex-2.5.35/include"
339fi
340
341
342dnl  Use NativeClient?
343ac_cv_my_have_nacl="no"
344AC_LANG_PUSH(C++)
345AC_CHECK_HEADERS(ppapi/cpp/instance.h,
346 [ac_cv_my_have_nacl="yes"
347  LOL_LIBS="${LOL_LIBS} -lnosys"])
348AC_LANG_POP(C++)
349AM_CONDITIONAL(USE_NACL, test "${ac_cv_my_have_nacl}" != "no")
350
351
352dnl  Use Android? FIXME: super hacks!
353ac_cv_my_have_android="no"
354AC_CHECK_LIB(log, __android_log_vprint,
355 [ac_cv_my_have_android="yes"
356  LOL_LIBS="${LOL_LIBS} -llog -landroid -module -lEGL -lGLESv2"])
357AM_CONDITIONAL(USE_ANDROID, test "${ac_cv_my_have_android}" != "no")
358
359
360dnl  Use EGL?
361ac_cv_my_have_egl="no"
362PKG_CHECK_MODULES(EGL, egl, [ac_cv_my_have_egl="yes"], [:])
363if test "${ac_cv_my_have_egl}" != "no"; then
364  AC_DEFINE(USE_EGL, 1, Define to 1 to use libegl)
365  EGL_LIBS="${EGL_LIBS} -lX11"
366fi
367AC_CHECK_LIB(EGL, main,
368 [ac_cv_my_have_egl="yes"
369  AC_DEFINE(USE_EGL, 1, Define to 1 to use libegl)
370  EGL_LIBS="-lEGL"])
371dnl  Raspberry Pi is different, check for it with extra libs; also we
372dnl  look for a different function to bypass autoconf caching
373AC_CHECK_LIB(EGL, eglGetDisplay,
374 [ac_cv_my_have_egl="yes"
375  AC_DEFINE(USE_EGL, 1, Define to 1 to use libegl)
376  EGL_LIBS="-lEGL -lvcos -lvchiq_arm -lbcm_host -lGLESv2"],
377 [:],
378 [-lvcos -lvchiq_arm -lbcm_host -lGLESv2])
379AM_CONDITIONAL(USE_EGL, test "${ac_cv_my_have_egl}" != "no")
380
381
382dnl Use libpng? (replacement for SDL_image)
383ac_cv_my_have_libpng="no"
384PKG_CHECK_MODULES(LIBPNG, libpng, [ac_cv_my_have_libpng="yes"], [:])
385if test "${ac_cv_my_have_libpng}" != "no"; then
386  AC_DEFINE(USE_LIBPNG, 1, Define to 1 to use libpng)
387fi
388AM_CONDITIONAL(USE_LIBPNG, test "${ac_cv_my_have_libpng}" != "no")
389
390
391dnl Use Windows GDI+?
392ac_cv_my_have_gdiplus="no"
393AC_LANG_PUSH(C++)
394AC_CHECK_HEADERS(gdiplus.h,
395 [ac_cv_my_have_gdiplus="yes"
396  LOL_LIBS="${LOL_LIBS} -lgdiplus"],
397 [ac_cv_my_have_gdiplus="no"],
398 [#include <algorithm>
399  using std::min;
400  using std::max;
401  #include <windows.h>])
402AC_LANG_POP(C++)
403if test "${ac_cv_my_have_gdiplus}" != "no"; then
404  AC_DEFINE(USE_GDIPLUS, 1, Define to 1 to use GDI+)
405fi
406AM_CONDITIONAL(USE_GDIPLUS, test "${ac_cv_my_have_gdiplus}" = "yes")
407
408
409dnl Use libcaca? (required for font generation)
410ac_cv_my_have_caca="no"
411PKG_CHECK_MODULES(CACA, caca >= 0.99.beta17, [ac_cv_my_have_caca="yes"], [:])
412if test "${ac_cv_my_have_caca}" != "no"; then
413  AC_DEFINE(USE_CACA, 1, Define to 1 to use libcaca)
414fi
415AM_CONDITIONAL(USE_CACA, test "${ac_cv_my_have_caca}" != "no")
416
417
418dnl Use libpipi? (required for video recording)
419ac_cv_my_have_pipi="no"
420PKG_CHECK_MODULES(PIPI, pipi, [ac_cv_my_have_pipi="yes"], [:])
421if test "${ac_cv_my_have_pipi}" != "no"; then
422  AC_DEFINE(USE_PIPI, 1, Define to 1 to use libpipi)
423  LOL_CFLAGS="${LOL_CFLAGS} ${PIPI_CFLAGS}"
424  LOL_LIBS="${LOL_LIBS} ${PIPI_LIBS}"
425fi
426AM_CONDITIONAL(USE_PIPI, test "${ac_cv_my_have_pipi}" != "no")
427
428
429dnl Use GTK+? (required for the deushax editor)
430ac_cv_my_have_gtkgl="no"
431PKG_CHECK_MODULES(GTK, gtk+-2.0, [ac_cv_my_have_gtkgl="yes"], [:])
432PKG_CHECK_MODULES(GTKGL, gtkgl-2.0, [:], [ac_cv_my_have_gtkgl="no"])
433if test "${ac_cv_my_have_gtkgl}" != "no"; then
434  AC_DEFINE(USE_GTKGL, 1, Define to 1 to use GtkGl)
435fi
436AM_CONDITIONAL(USE_GTKGL, test "${ac_cv_my_have_gtkgl}" != "no")
437
438
439dnl  Can we build neercs?
440AM_CONDITIONAL(BUILD_NEERCS, test "${ac_cv_my_have_caca}" != "no")
441
442
443dnl Should we ship non-free data?
444AM_CONDITIONAL(HAVE_NONFREE, true)
445
446
447dnl  Extra libraries we may need
448AC_SUBST(MATH_LIBS)
449AC_SUBST(PAM_LIBS)
450AC_SUBST(UTIL_LIBS)
451
452dnl  How to use the Lol Engine outside this tree
453LOL_CFLAGS="$LOL_CFLAGS $SDL_CFLAGS $GL_CFLAGS $EGL_CFLAGS $LIBPNG_CFLAGS"
454LOL_LIBS="$LOL_LIBS $SDL_LIBS $GL_LIBS $EGL_LIBS $LIBPNG_LIBS $D3D_LIBS"
455LOL_DEPS="${LOL_DEPS} \$(top_builddir)/src/liblolcore.a"
456LOL_DEPS="${LOL_DEPS} \$(top_builddir)/src/bullet/liblolbullet.a"
457LOL_DEPS="${LOL_DEPS} \$(top_builddir)/src/lua/liblollua.a"
458
459dnl  How to use the Lol Engine inside this tree
460AM_CPPFLAGS="${AM_CPPFLAGS} -I\$(top_srcdir)/src"
461AM_CPPFLAGS="${AM_CPPFLAGS} -DLOL_CONFIG_SOURCESUBDIR=\\\"\$(subdir)\\\""
462AM_CPPFLAGS="${AM_CPPFLAGS} ${LOL_CFLAGS}"
463AM_LDFLAGS="${AM_LDFLAGS} ${LOL_DEPS}"
464AM_LDFLAGS="${AM_LDFLAGS} ${LOL_LIBS}"
465
466dnl  Extra flags
467AC_SUBST(LOL_CFLAGS)
468AC_SUBST(LOL_LIBS)
469AC_SUBST(LOL_DEPS)
470
471AC_SUBST(AM_CFLAGS)
472AC_SUBST(AM_CPPFLAGS)
473AC_SUBST(AM_CXXFLAGS)
474AC_SUBST(AM_LDFLAGS)
475
476AC_SUBST(USE_DOT)
477
478AC_CONFIG_FILES(
479 [Makefile
480  src/Makefile
481  src/bullet/Makefile
482  src/lua/Makefile
483  src/data/Makefile
484  src/data/font/Makefile
485  test/Makefile
486  test/math/Makefile
487  test/sandbox/Makefile
488  test/xolotl/Makefile
489  build/Makefile
490  binaries/Makefile
491  people/Makefile
492  games/Makefile
493  demos/Makefile
494  tools/Makefile
495  tools/vimlol/Makefile
496  tools/vslol/Makefile
497  doc/Makefile
498  doc/doxygen.cfg
499])
500AC_CONFIG_FILES(
501 [games/monsterz/Makefile
502])
503AC_CONFIG_FILES(
504 [games/deushax/Makefile
505  games/deushax/art/Makefile
506  games/deushax/art/test/Makefile
507  games/deushax/gfx/Makefile
508  games/deushax/maps/Makefile
509])
510AC_CONFIG_FILES(
511 [games/mrpigeon/Makefile
512])
513AC_CONFIG_FILES(
514 [games/orbital/Makefile
515])
516AC_CONFIG_FILES(
517 [games/abuse/Makefile
518  games/abuse/src/Makefile
519  games/abuse/src/lisp/Makefile
520  games/abuse/src/imlib/Makefile
521  games/abuse/src/net/Makefile
522  games/abuse/src/sdlport/Makefile
523  games/abuse/data/Makefile
524  games/abuse/doc/Makefile
525  games/abuse/doc/abuse.6
526  games/abuse/doc/abuse-tool.6
527])
528AC_CONFIG_FILES(
529 [demos/tutorial/Makefile
530  demos/lol.js/Makefile
531])
532AC_CONFIG_FILES(
533 [tools/neercs/Makefile
534])
535AC_CONFIG_FILES(
536 [people/jnat/Makefile
537  people/jnat/TestProject/Makefile
538  people/peeweek/Makefile
539  people/peeweek/private/Makefile
540  people/benlitz/Makefile
541  people/benlitz/private/Makefile
542  people/touky/Makefile
543  people/touky/private/Makefile
544  people/touky/private/touky_demo/Makefile
545  people/touky/private/tactics/Makefile
546  people/touky/private/the_unfortunate_voronoid/Makefile
547  people/jylam/Makefile
548  people/jylam/private/Makefile
549  people/jylam/private/chat/Makefile
550  people/jylam/private/lander/Makefile
551  people/sam/Makefile
552  people/sam/private/Makefile
553  people/sam/private/kanagawa/Makefile
554  people/sam/private/sapp/Makefile
555])
556
557AC_OUTPUT
558
Note: See TracBrowser for help on using the repository browser.