Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure.ac @ 7680

Last change on this file since 7680 was 7669, checked in by bensch, 19 years ago

orxonox/trunk: should compile on Windows, but it does not

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