Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/shared_lib/configure.ac @ 7267

Last change on this file since 7267 was 7264, checked in by bensch, 19 years ago

shared_lib: compile again

File size: 20.0 KB
Line 
1
2##########################################################################
3#   orxonox - the future of 3D-vertical-scrollers                        #
4#                                                                        #
5#   Copyright (C) 2004 orx                                               #
6#                                                                        #
7#   This program is free software; you can redistribute it and/or modify #
8#   it under the terms of the GNU General Public License as published by #
9#   the Free Software Foundation; either version 2, or (at your option)  #
10#   any later version.                                                   #
11#                                                                        #
12#   ### File Specific:                                                   #
13#   main-programmer: Benjamin Grauer                                     #
14#   co-programmer: ...                                                   #
15#                                                                        #
16#   This is the main configuration File of autoconf.                     #
17#   Please edit this file only, if you exactly know what you are doing.  #
18#   It is quite fragile, and compiling orxonox on different Platforms    #
19#   is only guarantied, if build with the right config.                  #
20#                                                                        #
21#   You might also have a look at the acinclude.m4, where many macros    #
22#   for this configuration files are stored                              #
23#                                                                        #
24#   be sure to visit us at http://www.orxonox.net                        #
25##########################################################################
26
27#########################
28## AUTOCONF INIT PHASE ##
29#########################
30AC_PREREQ(2.59)
31AC_INIT([orxonox], [0.3.4_alpha], [orxonox-dev at mail.datacore.ch])
32
33## Detect the canonical host and target build environment.
34AC_CANONICAL_BUILD
35AC_CANONICAL_HOST
36AC_CANONICAL_TARGET
37
38AM_INIT_AUTOMAKE
39
40AC_CONFIG_SRCDIR([./src])
41AC_CONFIG_HEADER([config.h])
42
43#########################
44## Checks for programs ##
45#########################
46AC_PROG_CXX
47AC_LIBTOOL_DLOPEN
48AC_PROG_LIBTOOL
49AC_HEADER_STDC
50
51## THIS IS OUR DEFAULT-DATA-DIRECTORY
52
53##################################
54## CHECKING  OPTIONAL ARGUMENTS ##
55##################################
56#----------------#
57# Data-Directory #
58#----------------#
59DATA_DIR=$datadir
60echo \$\{prefix\}
61if test $DATA_DIR = \$\{prefix\}/share ; then
62        echo "not given"
63        DATA_DIR=/usr/share
64else
65        echo "given: $DATA_DIR"
66fi
67AC_DEFINE_UNQUOTED([DATADIR], ["$DATA_DIR"],
68                   [Define to the read-only architecture-independent
69                    data directory.])
70
71#-----------------#
72# shared-lib-path #
73#-----------------#
74SHARED_LIB_PATH=no
75AC_MSG_CHECKING([shared lib path])
76AC_ARG_WITH([shared-lib-path],
77        AS_HELP_STRING(--with-shared-lib-path,Tells the executable, where to look for the shared libraries.),
78         SHARED_LIB_PATH=$withval)
79if test x$SHARED_LIB_PATH != xno; then
80        echo "set to $SHARED_LIB_PATH"
81else
82        echo "no"
83fi
84
85
86#-----------------#
87# DEBUG-statement #
88#-----------------#
89DEBUG=no
90AC_MSG_CHECKING([if DEBUG-mode should be enabled])
91AC_ARG_ENABLE([debug],
92        AS_HELP_STRING(--enable-debug,compiles in debug mode. Lots of debug info about the game.),
93         DEBUG=$enableval)
94
95if test x$DEBUG = xno; then
96        echo "no"
97        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
98        DEBUG=4
99elif test x$DEBUG = xyes; then
100        echo "yes"
101        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
102        DEBUG=4
103else
104  if test x$DEBUG = x0 || test x$DEBUG = x1 || test x$DEBUG = x2 || test x$DEBUG = x3 || test x$DEBUG = x4 || test x$DEBUG = x5 ; then
105        echo "yes: setting debuglevel to to $DEBUG"
106  else
107        echo "yes: invalid Value for Debug ($DEBUG). setting to 4(DEBUG)"
108        DEBUG=4
109  fi
110fi
111AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are])
112AC_SUBST(DEBUG)
113
114#---------------#
115# Modular Debug #
116#---------------#
117MODULAR_DEBUG=yes
118AC_MSG_CHECKING([if Modular-DEBUG-mode should be ebabled])
119AC_ARG_ENABLE([modular-debug],
120        AS_HELP_STRING(--disable-modular-debug,compiles in modular-debug mode, that logs differently on the many modules of orxonox.),
121         MODULAR_DEBUG=$enableval)
122
123if test x$MODULAR_DEBUG = xno; then
124        echo "no"
125elif test x$MODULAR_DEBUG = xyes; then
126        echo "yes"
127        AC_DEFINE_UNQUOTED(MODULAR_DEBUG, 1, [if Modular-DUBUG mode is enabled])
128fi
129
130#--------------#
131# GTK-disabled #
132#--------------#
133AC_MSG_CHECKING([if gtk should be enabled])
134AC_ARG_ENABLE([gtk],
135        AS_HELP_STRING(--disable-gtk,Prevents GTK from being loaded), [def_gtk=no], [def_gtk=yes])
136if test x$def_gtk = xyes; then
137  echo "yes"
138fi
139if test x$def_gtk = xno; then
140  echo "no"
141fi
142
143#------------------#
144# libCurl-disabled #
145#------------------#
146AC_MSG_CHECKING([if libcURL should be enabled])
147AC_ARG_ENABLE([curl],
148        AS_HELP_STRING(--disable-curl,Prevents libcURL from being loaded), [def_curl=no], [def_curl=yes])
149if test x$def_curl = xyes; then
150  echo "yes"
151fi
152if test x$def_curl = xno; then
153  echo "no"
154fi
155
156#-------------------#
157# SubProject-enable #
158#-------------------#
159def_sub_projects=no
160AC_MSG_CHECKING([if the SubProjects should be built])
161AC_ARG_WITH([sub-projects],
162        AS_HELP_STRING(--with-sub-projects,also builds the subProjects while make from srcdir), [def_sub_projects=yes])
163if test x$def_sub_projects = xyes; then
164  echo "yes"
165fi
166if test x$def_sub_projects = xno; then
167  echo "no"
168fi
169AM_CONDITIONAL(SUB_PROJECTS, test x$def_sub_projects = xyes)
170
171#-------------------#
172# Profiling Enabled #
173#-------------------#
174def_profiling=no
175AC_MSG_CHECKING([if Profiling should be enabled])
176AC_ARG_ENABLE([profile],
177        AS_HELP_STRING(--enable-profile,builds orxonox with profiling support), [def_profiling=yes])
178if test x$def_profiling = xyes; then
179  echo "yes"
180  CXXFLAGS="$CXXFLAGS -pg"
181fi
182if test x$def_profiling = xno; then
183  echo "no"
184fi
185
186#----------------#
187# efence Enabled #
188#----------------#
189def_efence=no
190AC_MSG_CHECKING([if efence should be enabled])
191AC_ARG_ENABLE([efence],
192        AS_HELP_STRING(--enable-efence,builds orxonox with efence support), [def_efence=yes])
193if test x$def_efence = xyes; then
194  echo "yes"
195fi
196if test x$def_efence = xno; then
197  echo "no"
198fi
199
200#----------------------#
201# Documentation-enable #
202#----------------------#
203def_documentation=no
204AC_MSG_CHECKING([if the Documentation should be build by default])
205AC_ARG_ENABLE([documentation],
206        AS_HELP_STRING(--enable-documentation,also builds the sDocumentation while make from srcdir), [def_documentation=yes])
207if test x$def_documentation = xyes; then
208  echo "yes"
209fi
210if test x$def_documentation = xno; then
211  echo "no"
212fi
213AM_CONDITIONAL(DOCUMENTATION, test x$def_documentation = xyes)
214
215
216
217#---------------------------#
218# WITH TARDIS (convenience) #
219#---------------------------#
220def_tardis=no
221GTKPATH=""
222AC_MSG_CHECKING([convenience flag for working at the taris in the ETH zurich])
223AC_ARG_WITH([tardis],
224        AS_HELP_STRING(--with-tardis,sets all the necesary environment flags for linux-TARDIS boxes at the ETH Zurich), [def_tardis=yes])
225if test x$def_tardis = xyes; then
226  ARCH=i686-debian-linux3.1
227   ## GAMELIBS
228  PREFIX=/usr/pack/gamelibs-1.0-to
229  CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
230  LDFLAGS="${LDFLAGS} -L$PREFIX/${ARCH}/lib -Wl,-rpath -Wl,${PREFIX}/${ARCH}/lib"
231  ## GTK
232  GTKPREFIX=/usr/pack/gtk-2.8.3-mo
233  GTKPATH=${GTKPREFIX}/${ARCH}/bin
234  CPPFLAGS="${CPPFLAGS} -I${GTKPREFIX}/include"
235  LDFLAGS="${LDFLAGS} -L${GTKPREFIX}/${ARCH}/lib -Wl,-rpath -Wl,${GTKPREFIX}/${ARCH}/lib"
236  echo "yes"
237fi
238if test x$def_tardis = xno; then
239  echo "no"
240fi
241
242#######################
243## PROGRAMM CHECKING ##
244## 3. party Programs ##
245#######################
246
247#----------------------#
248# checking for Doxygen #
249#----------------------#
250AC_PATH_PROG(DOXYGEN, doxygen)
251AM_CONDITIONAL(DOXYGEN, test $DOXYGEN)
252
253#--------------------#
254# checking for gprof #
255#--------------------#
256AC_PATH_PROG(GPROF, gprof)
257
258#-------------------------#
259# checking for pkg-config #
260#-------------------------#
261if test x$def_gtk = xyes; then
262 if test x${GTKPATH} != x; then
263   AC_PATH_PROG([PKG_CONFIG], [pkg-config],[], $GTKPATH )
264 else
265   AC_PATH_PROG(PKG_CONFIG, pkg-config )
266 fi
267fi
268
269
270#########################
271## CHECKING FOR SYSTEM ##
272#########################
273## here the system is checked, and openGL is included
274## also checking for SDL on differen Systems
275
276CPPFLAGS="$CPPFLAGS -g"
277
278
279AC_MSG_CHECKING([for System])
280## checking for openGL-environment and other sys-specific parameters
281case "$target" in
282
283###########
284#---------#
285# WINDOWS #
286#---------#
287###########
288  *-*-mingw32*)
289echo "mingw-WINDOWS detected"
290
291CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS"
292
293    mingw="yes"
294    MSBITFIELDS="-mms-bitfields"
295    MWINDOWS="-mwindows"
296
297#--------#
298# MIN-GW #
299#--------#
300# checking for mingw32
301    AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes)
302    if test x$FOUND_mingw32 = xyes; then
303        LIBS="$LIBS -lmingw32"
304    fi
305
306#---------------#
307# open-GL (win) #
308#---------------#
309# checking gl header
310   AC_CHECK_HEADERS(GL/gl.h ,,
311      [AC_MSG_ERROR([cannot find opengl headers])])
312#   checking for Windows openGl library
313    AC_CHECK_LIB([opengl32], [main], [FOUND_GL=yes; LIBS="$LIBS -lopengl32"])
314    if test x$FOUND_GL != xyes ; then
315         echo "------------------"
316         echo "opengl not found."
317         echo "please install the opengl package which can be found at http://www.opengl.org"
318         echo "------------------"
319         exit -1
320    fi
321
322# cheking for GLU-header
323    AC_CHECK_HEADERS([GL/glu.h] ,,
324      [AC_MSG_ERROR([cannot find opengl headers]) ])
325
326# checking for libGLU
327    AC_CHECK_LIB([glu32], [main], [FOUND_GLU=yes; LIBS="$LIBS -lGLU32"])
328    if test x$FOUND_GLU != xyes ; then
329         echo "------------------"
330         echo "GLU library not found."
331         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
332         echo "------------------"
333         exit -1
334    fi
335
336# checking glew header
337   AC_CHECK_HEADERS(GL/glew.h ,,
338      [AC_MSG_ERROR([cannot find opengl extension wrangler headers]) ])
339#   checking for Windows glew library
340    AC_CHECK_LIB([glew32], [main], [FOUND_GLEW=yes; LIBS="$LIBS -lglew32"])
341    if test x$FOUND_GLEW != xyes ; then
342         echo "------------------"
343         echo "opengl extension wrangler not found."
344         echo "please install the glew package which can be found at http://glew.sourceforge.net"
345         echo "------------------"
346         exit -1
347    fi
348
349#--------#
350# openAL #
351#--------#
352AX_CHECK_REQUIRED_HEADER_LIB([AL/al.h], [OpenAL32], [main],,, [http://www.openal.org])
353
354#-----------#
355# SDL(win) #
356#-----------#
357# checking for SDL-headers
358    AC_CHECK_HEADERS([SDL/SDL.h] ,,
359      [AC_MSG_ERROR([cannot find SDL headers]) ])
360
361#checking for libSDL
362    AC_CHECK_LIB([sdlmain], [main], [FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain"])
363    if test x$FOUND_sdlmain != xyes ; then
364        echo "------------------"
365        echo "SDL library not found."
366        echo "please install the SDL library, which can be found at http://www.libsdl.org"
367        echo "------------------"
368        exit 1
369    fi
370    AC_CHECK_LIB([sdl], [main], [FOUND_SDL=yes; LIBS="$LIBS -lsdl"])
371    if test x$FOUND_SDL != xyes ; then
372        echo "------------------"
373        echo "SDL library not found."
374        echo "please install the SDL library, which can be found at http://www.libsdl.org"
375        echo "------------------"
376        exit -1
377    fi
378
379  ;;
380
381#########
382#-------#
383# LINUX #
384#-------#
385#########
386 *-*-linux*)
387echo "Linux detected"
388
389 Linux="yes"
390
391##CPPFLAGS="-I/usr/include $CPPFLAGS"
392##LDFLAGS="-L/usr/lib $LDFLAGS"
393if test x$SHARED_LIB_PATH != xno; then
394        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
395        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
396fi
397
398#--------#
399# openGL #
400#--------#
401AX_CHECK_REQUIRED_HEADER_LIB([GL/gl.h], [GL], [main],,, [http://www.opengl.org])
402AX_CHECK_REQUIRED_HEADER_LIB([GL/glu.h], [GLU], [main],,, [http://www.opengl.org])
403AX_CHECK_REQUIRED_HEADER_LIB([GL/glew.h], [GLEW], [main],,, [http://glew.sourceforge.net])
404
405#--------#
406# openAL #
407#--------#
408AX_CHECK_REQUIRED_HEADER_LIB([AL/al.h], [openal], [main],,, [http://www.openal.org])
409
410#-----#
411# SDL #
412#-----#
413# checking for SDL
414  AC_MSG_CHECKING([for SDL-version])
415  SDL_VERSION=`sdl-config --version`
416  echo $SDL_VERSION
417   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
418
419  AX_CHECK_REQUIRED_HEADER_LIB([SDL.h SDL/SDL.h], [SDL], [main],,, [http://www.libsdl.org])
420
421    ;;
422
423#############
424#-----------#
425# MAC -OS X #
426#-----------#
427#############
428 *darwin*)
429 echo "OS X detected"
430
431 osX="yes"
432
433 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
434 LDFLAGS="$LDFLAGS -L/sw/lib"
435# checking gl header
436   AC_CHECK_HEADERS([OpenGL/gl.h] ,,
437      [AC_MSG_ERROR([cannot find opengl headers]) ])
438# cheking for GLU-header
439    AC_CHECK_HEADERS([OpenGL/glu.h] ,,
440      [AC_MSG_ERROR([cannot find opengl headers]) ])
441
442   LIBS="$LIBS -framework OpenGL"
443
444
445
446# checking for GLEW-headers
447   AC_CHECK_HEADERS([GL/glew.h] ,,
448      [AC_MSG_ERROR([cannot find glew headers]) ])
449# checking for GLEW-lib
450  AC_CHECK_LIB([GLEW], [main], [FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"])
451   if test x$FOUND_GLEW != xyes ; then
452         echo "------------------"
453         echo "glew not found."
454         echo "please install the glew package which can be found at http://glew.sourceforge.net"
455         echo "------------------"
456         exit -1
457   fi
458
459
460   AC_CHECK_HEADERS([OpenAL/al.h] ,,
461      [AC_MSG_ERROR([cannot find opengl headers]) ])
462  HAVE_OPENAL=yes
463  LIBS="$LIBS -framework OpenAL"
464
465
466## SDL-check
467       SDL_CFLAGS=`sdl-config --cflags`
468       SDL_LIBS=`sdl-config --libs`
469       CXXFL\AGS="$CXXFLAGS $SDL_CFLAGS"
470       LIBS="$LIBS $SDL_LIBS"
471   AC_CHECK_HEADERS([SDL/SDL.h] ,,
472      [AC_MSG_ERROR([cannot find SDL headers]) ])
473   HAVE_SDL=yes
474#   LIBS="$LIBS -framework SDL"
475
476# checking for SDL-headers
477#    AC_CHECK_HEADERS(SDL/SDL.h ,,
478#      [AC_MSG_ERROR([cannot find SDL headers]) ])
479
480## checking for SDL
481#    SDL_VERSION=1.2.7
482#    AM_PATH_SDL($SDL_VERSION,
483#      :,
484#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
485#      )
486
487
488    ;;
489
490  *)
491    ;;
492esac
493
494AC_SUBST(MSBITFIELDS)
495
496###################################
497## CHECKING FOR HEADERS AND LIBS ##
498###################################
499
500AX_CHECK_REQUIRED_HEADER_LIB([ltdl.h], [ltdl], [main],,, [http://www.gnu.org/software/libtool])
501
502#---------#
503# SDL_ttf #
504#---------#
505AX_CHECK_REQUIRED_HEADER_LIB([SDL_ttf.h SDL/SDL_ttf.h], [SDL_ttf], [TTF_OpenFont],,, [http://www.libsdl.org/projects/SDL_ttf])
506#-----------#
507# SDL_Image #
508#-----------#
509AX_CHECK_REQUIRED_HEADER_LIB([SDL_image.h SDL/SDL_image.h], [SDL_image], [main],,, [http://www.libsdl.org/projects/SDL_image])
510#---------#
511# SDL_Net #
512#---------#
513AX_CHECK_REQUIRED_HEADER_LIB([SDL_net.h SDL/SDL_net.h], [SDL_net], [main],,, [http://www.libsdl.org/projects/SDL_net])
514
515#--------#
516# FFmpeg #
517#--------#
518# checking for FFmpeg-headers
519  AC_CHECK_HEADERS([avformat.h] ,,
520      [AC_CHECK_HEADERS([ffmpeg/avformat.h] ,,AC_MSG_ERROR([cannot find FFmpeg header.])]))
521# checking for ffmpeg-lib
522  AC_CHECK_LIB([avformat], [main], [FOUND_avformat=yes; LIBS="$LIBS -lavformat"])
523     if test x$FOUND_avformat != xyes ; then
524        echo "------------------"
525        echo "avformat library not found."
526        echo "please install the FFmpeg library, which can be found at http://ffmpeg.sourceforge.net"
527        echo "------------------"
528        exit -1
529     fi
530  AC_CHECK_HEADERS([avcodec.h] ,,
531      [AC_CHECK_HEADERS([ffmpeg/avcodec.h] ,,AC_MSG_ERROR([cannot find FFmpeg header.])]))
532  AC_CHECK_LIB([avcodec], [main], [FOUND_avcodec=yes; LIBS="$LIBS -lavcodec"])
533     if test x$FOUND_avcodec != xyes ; then
534        echo "------------------"
535        echo "avcodec library not found."
536        echo "please install the FFmpeg library, which can be found at http://ffmpeg.sourceforge.net"
537        echo "------------------"
538        exit -1
539     fi
540  AC_CHECK_LIB([avutil], [main], [FOUND_avutil=yes; LIBS="$LIBS -lavutil"])
541  AC_CHECK_LIB([xvid], [main], [FOUND_xvid=yes; LIBS="$LIBS -lxvid"])
542  AC_CHECK_LIB([gcj], [main], [FOUND_gcj=yes; LIBS="$LIBS -lgcj"])
543  AC_CHECK_LIB([theora], [main], [FOUND_theora=yes; LIBS="$LIBS -ltheora"])
544  AC_CHECK_LIB([dts], [main], [FOUND_dts=yes; LIBS="$LIBS -ldts"])
545  AC_CHECK_LIB([gsm], [main], [FOUND_gsm=yes; LIBS="$LIBS -lgsm"])
546  AC_CHECK_LIB([dc1394_control], [main], [FOUND_dc1394_control=yes; LIBS="$LIBS -ldc1394_control"])
547  AC_CHECK_LIB([vorbisenc], [main], [FOUND_vorbisenc=yes; LIBS="$LIBS -lvorbisenc"])
548
549
550#--------#
551# vorbis #
552#--------#
553AX_CHECK_REQUIRED_HEADER_LIB([vorbis/vorbisfile.h], [vorbisfile], [main],,, [http://www.xiph.org/ogg/vorbis/index.html])
554AX_CHECK_REQUIRED_HEADER_LIB([vorbis/codec.h], [vorbis], [main],,, [http://www.xiph.org/ogg/vorbis/index.html])
555
556#-----#
557# ogg #
558#-----#
559AX_CHECK_REQUIRED_HEADER_LIB([ogg/ogg.h], [ogg], [main],,, [http://www.xiph.org/ogg/vorbis/index.html])
560
561
562#---------#
563# libcURL #
564#---------#
565AX_CHECK_HEADER_LIB([curl/curl.h], [curl], [main], [
566 have_curl=yes
567  CURL_LIBS=`curl-config --libs`
568  CURLCFLAGS=`curl-config --cflags`
569  AC_DEFINE_UNQUOTED(HAVE_CURL, 1, [if we have CURL]) ]
570  ,, [http://curl.haxx.se/])
571
572AC_SUBST(CURL_LIBS)
573AC_SUBST(CURL_CFLAGS)
574AM_CONDITIONAL(HAVE_CURL, test "x$have_curl" = "xyes")
575
576#--------#
577# efence #
578#--------#
579if test x$def_efence = xyes ; then
580  AC_CHECK_LIB([efence], [main], [FOUND_efence=yes; LIBS="$LIBS -lefence"])
581   if test x$FOUND_efence != xyes ; then
582     echo "efence was requested, but is not installed!! going on"
583   fi
584
585fi
586
587#-----#
588# GTK #
589#-----#
590if test x$def_gtk = xyes; then
591#PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
592        AC_MSG_CHECKING([for gtk2.0])
593        if `$PKG_CONFIG --exists gtk+-2.0`; then
594                echo "yes"
595                have_gtk2=yes
596                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
597                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
598                AC_DEFINE_UNQUOTED(HAVE_GTK2, 1, [if we have GTK2])
599                if test $DEBUG -ge 3; then
600                 echo "cflags: $GTK2_CFLAGS"
601                 echo "libs: $GTK2_LIBS"
602                fi
603        else
604                echo "no"
605        fi
606
607fi
608AC_SUBST(GTK2_LIBS)
609AC_SUBST(GTK2_CFLAGS)
610AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes)
611
612
613# FIXME: Replace `main' with a function in `-lm':
614 AC_CHECK_LIB([m], [main])
615
616
617# Checks for header files.
618AC_HEADER_STDC
619AC_CHECK_HEADERS([stdlib.h string.h])
620
621# Checks for typedefs, structures, and compiler characteristics.
622AC_HEADER_STDBOOL
623
624# Checks for library functions.
625AC_FUNC_MALLOC
626AC_CHECK_FUNCS([bzero sqrt])
627
628######################
629## OUTPUT CONFIGURE ##
630######################
631AC_CONFIG_FILES([Makefile
632                 src/Makefile
633                 src/lib/Makefile
634                 src/lib/math/Makefile
635                 src/lib/graphics/Makefile
636                 src/lib/graphics/importer/Makefile
637                 src/lib/graphics/spatial_separation/Makefile
638                 src/lib/sound/Makefile
639                 src/lib/event/Makefile
640                 src/lib/physics/Makefile
641                 src/lib/particles/Makefile
642                 src/lib/collision_detection/Makefile
643                 src/lib/network/Makefile
644                 src/lib/shell/Makefile
645                 src/lib/gui/Makefile
646                 src/lib/gui/gtk_gui/Makefile
647                 src/lib/gui/gl_gui/Makefile
648                 src/lib/parser/Makefile
649                 src/lib/parser/tinyxml/Makefile
650                 src/lib/parser/ini_parser/Makefile
651                 src/lib/parser/cmdline_parser/Makefile
652                 src/lib/parser/preferences/Makefile
653                 src/util/Makefile
654                 src/world_entities/Makefile
655                 src/subprojects/Makefile
656                 src/subprojects/testmain/Makefile
657                 src/subprojects/importer/Makefile
658                 src/subprojects/particles/Makefile
659                 src/subprojects/collision_detection/Makefile
660                 src/subprojects/network/Makefile
661                 ])
662
663AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.