]> git.mxchange.org Git - simgear.git/blob - configure.ac
Add an initial implementation of a rti/hla dispatcher.
[simgear.git] / configure.ac
1 dnl Process this file with autoget.sh to produce a working configure
2 dnl script.
3
4 AC_INIT
5 AC_CONFIG_SRCDIR([simgear/bucket/newbucket.cxx])
6
7 dnl Require at least automake 2.52
8 AC_PREREQ(2.52)
9
10 dnl Initialize the automake stuff
11 AM_INIT_AUTOMAKE(SimGear, 2.2.0)
12
13 dnl Specify KAI C++ compiler and flags.
14 dnl Borrowed with slight modification from blitz distribution.
15 AC_ARG_WITH(cxx,
16   [  --with-cxx=COMPILER[:name-flags] set options for COMPILER (KCC)],
17   [case "$withval" in
18     KCC*)    # KAI C++ http://www.kai.com/
19       echo "Configuring for KAI C++"
20       AC_SG_SET_COMPILER($withval,"KCC","--restrict --strict_warnings")
21       CXX_OPTIMIZE_FLAGS=="+K3 -O3"
22       CXX_DEBUG_FLAGS="-g +K0"
23     ;;
24   esac
25 ])
26
27 AC_ARG_ENABLE(headless,
28         AS_HELP_STRING([--enable-headless],[Enable only packages for headless build]))
29
30 AC_MSG_CHECKING([for headless mode])
31 AC_MSG_RESULT([$enable_headless])
32
33 AM_CONDITIONAL(WANT_HEADLESS,[test "x$enable_headless" = "xyes"])
34
35 AC_MSG_CHECKING([CXX])
36 AC_MSG_RESULT([$CXX])
37 AC_MSG_CHECKING([CC])
38 AC_MSG_RESULT([$CC])
39
40 dnl Checks for programs.
41 AC_PROG_MAKE_SET
42 AC_PROG_CC
43 AC_PROG_CPP
44 AC_PROG_CXX
45 AC_PROG_CXXCPP
46 AC_PROG_RANLIB
47 AC_PROG_INSTALL
48 AC_PROG_LN_S
49 AX_BOOST_BASE([1.37.0])
50
51 if test "x$BOOST_CPPFLAGS" != "x-I/usr/include" ; then
52    CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
53 fi
54
55 dnl set the $host variable based on local machine/os
56 AC_CANONICAL_HOST
57
58 dnl Used on the Irix platform
59 case "${host}" in
60 *-*-irix*)
61     if test "x$CXX" = "xCC" -o "x$CXX" = "xccache CC"; then
62         AR="$CXX -ar"
63         ARFLAGS="-o"
64         CXXFLAGS="$CXXFLAGS -I$(top_srcdir)/simgear/compatibility/MIPSpro740"
65         compatibility_DIR="compatibility"
66         MIPSpro_DIRS="MIPSpro740"
67         AC_MSG_CHECKING([for MIPSpro compiler version 7.4 or newer])
68         AC_TRY_RUN([
69            int main() {
70               if ( _COMPILER_VERSION < 740 ) {
71                  return -1;
72               }
73               return 0;
74            }
75
76         ], AC_MSG_RESULT(yes),
77         [  AC_MSG_RESULT(no)
78            CXXFLAGS="$CXXFLAGS -I$(top_srcdir)/simgear/compatibility/MIPSpro721"
79            MIPSpro_DIRS="$(MIPSpro_DIRS) MIPSpro721"
80            AC_MSG_WARN([Using our own subset of the STL headers])
81         ], AC_MSG_RESULT(yes))
82         AC_SUBST(MIPSpro_DIRS)
83     fi
84     ;;
85 *)
86     AR="ar"
87     ARFLAGS="cru"
88     compatibility_DIR=
89     ;;
90 esac
91 AC_SUBST(AR)
92 AC_SUBST(ARFLAGS)
93 AC_SUBST(compatibility_DIR)
94
95 # Show all compiler warnings by default
96 CXXFLAGS="$CXXFLAGS -Wall"
97 CFLAGS="$CFLAGS -Wall"
98
99 if echo $includedir | egrep "simgear$" > /dev/null; then
100     echo "includedir is" $includedir "libdir is" $libdir
101 else
102     includedir="${includedir}/simgear"
103     echo "includedir changed to" $includedir "libdir is" $libdir
104 fi
105
106 dnl set logging; default value of with_logging=yes
107 AC_ARG_WITH(logging, [  --with-logging          Include logging output (default)])
108 if test "x$with_logging" = "xno" ; then
109     AC_DEFINE([FG_NDEBUG], 1, [Define for no logging output])
110 fi
111
112 # Specify if we want to build with Norman's jpeg image server support.
113 # This requires libjpeg to be installed and available.
114 # Default to with_jpeg_server=no
115 JPEGLIB=''
116 AC_ARG_WITH(jpeg_factory, [  --with-jpeg-factory     Include Norman's jpeg image factory support code])
117 if test "x$with_jpeg_factory" = "xyes" ; then
118     echo "Building with Norman's jpeg image factory support"
119     AC_CHECK_LIB(jpeg, jpeg_start_compress)
120     if test "x$ac_cv_lib_jpeg_jpeg_start_compress" != "xyes" ; then
121         echo
122         echo "In order to build the jpeg factory code you need libjpeg installed."
123         echo "otherwise please configure with the --with-jpeg-sever=no option"
124         echo
125         echo "libjpeg is available at :"
126         echo "  ftp://ftp.uu.net in the directory graphics/jpeg"
127         exit 1
128     fi
129 else
130     echo "Building without Norman's jpeg image server support"
131 fi
132 AM_CONDITIONAL(ENABLE_JPEG_SERVER, test "x$with_jpeg_factory" = "xyes")
133
134 # specify the osg location
135 AC_ARG_WITH(osg, [  --with-osg=PREFIX       Specify the prefix path to osg])
136
137 if test "x$with_osg" != "x" ; then
138     echo "osg prefix is $with_osg"
139     EXTRA_DIRS="${EXTRA_DIRS} $with_osg"
140 fi
141
142 AC_ARG_WITH(osg_framework, [  --with-osg-framework=PREFIX     Specify the prefix path to OSG.framework ])
143
144 if test "x$with_osg_framework" != "x"; then
145     echo "osg framework prefix is $with_osg_framework"
146     CPPFLAGS = "$CPPFLAGS -F$with-osg-framework"
147     export DYLD_FRAMEWORK_PATH="$DYLD_FRAMEWORK_PATH:$with_osg_framework"
148 fi
149
150 dnl specifying ALUT.framework (for user provided ALUT.framework)
151 AC_ARG_WITH(alut_framework, [  --with-alut-framework=PREFIX    Specify the prefix path to ALUT.framework ])
152
153 if test "x$with_alut_framework" != "x"; then
154     echo "ALUT framework prefix is $with_alut_framework"
155 fi
156
157 # specify the rti13 location
158 AC_ARG_WITH(rti13, [  --with-rti13=PREFIX       Specify the prefix path to a HLA13 rti])
159
160 if test "x$with_rti13" != "x" ; then
161     echo "rti13 prefix is $with_rti13"
162     EXTRA_DIRS="${EXTRA_DIRS} $with_rti13"
163 fi
164
165 # specify the rti13 location
166 AC_ARG_WITH(rti1516, [  --with-rti1516=PREFIX     Specify the prefix path to a HLA1516 rti])
167
168 if test "x$with_rti1516" != "x" ; then
169     echo "rti1516 prefix is $with_rti1516"
170     EXTRA_DIRS="${EXTRA_DIRS} $with_rti1516"
171 fi
172
173 dnl Determine an extra directories to add to include/lib search paths
174 case "${host}" in
175 *-apple-darwin* | *-*-cygwin* | *-*-mingw32*)
176     echo no EXTRA_DIRS for $host
177     ;;
178
179 *)
180     if test -d /usr/X11R6 ; then
181         EXTRA_DIR1="/usr/X11R6"
182     fi
183     if test -d /opt/X11R6 ; then
184         EXTRA_DIR2="/opt/X11R6"
185     fi
186     EXTRA_DIRS="${EXTRA_DIRS} $EXTRA_DIR1 $EXTRA_DIR2"
187     ;;
188
189 esac
190 wi_EXTRA_DIRS(no, ${EXTRA_DIRS})
191
192
193 dnl Using AM_CONDITIONAL is a step out of the protected little
194 dnl automake fold so it is potentially dangerous.  But, we are
195 dnl beginning to run into cases where the standard checks are not
196 dnl enough.  AM_CONDITIONALS are then referenced to conditionally
197 dnl build a Makefile.in from a Makefile.am which lets us define custom
198 dnl includes, compile alternative source files, etc.
199
200 dnl X11 might be installed on Mac OS X or cygwin/mingwin, we don't want
201 dnl to use it if it is.
202 case "${host}" in
203 *-apple-darwin* | *-*-cygwin* | *-*-mingw32*)
204     echo no fancy X11 check
205     ;;
206
207 *)
208     AC_PATH_XTRA
209     ;;
210
211 esac
212
213 dnl Checks for libraries.
214
215 dnl Thread related checks
216 AC_CHECK_HEADER(pthread.h)
217 AC_SEARCH_LIBS(pthread_exit, [pthread c_r])
218 if test "x$ac_cv_header_pthread_h" = "xyes"; then
219     CXXFLAGS="$CXXFLAGS -D_REENTRANT"
220     CFLAGS="$CFLAGS -D_REENTRANT"
221
222   if test "x$ac_cv_search_pthread_exit" = "x-lc_r"; then
223     CXXFLAGS="-pthread $CXXFLAGS"
224     CFLAGS="-pthread $CFLAGS"
225   fi
226 fi
227
228 AM_CONDITIONAL(HAVE_THREADS, test "x$ac_cv_header_pthread_h" = "xyes")
229
230 thread_LIBS="$LIBS"
231 LIBS=""
232
233 dnl search for network related libraries
234 AC_SEARCH_LIBS(inet_addr, xnet)
235 AC_SEARCH_LIBS(socket, socket)
236
237 network_LIBS="$LIBS"
238 LIBS=""
239
240 dnl check for some default libraries
241 AC_SEARCH_LIBS(cos, m)
242 AC_SEARCH_LIBS(clock_gettime, rt)
243
244 base_LIBS="$LIBS"
245
246 dnl check for OpenGL related libraries
247 case "${host}" in
248 *-*-cygwin* | *-*-mingw32*)
249     dnl CygWin under Windoze.
250
251     echo Win32 specific hacks...
252     AC_DEFINE([WIN32], 1, [Define for Win32 platforms])
253     AC_DEFINE([NOMINMAX], 1, [Define for Win32 platforms])
254
255     LIBS="$LIBS -lglu32 -lopengl32"
256     LIBS="$LIBS -luser32 -lgdi32 -lwinmm"
257
258     dnl add -lwsock32 for mingwin
259     case "${host}" in
260     *-*-mingw32*)
261         base_LIBS="$base_LIBS -lws2_32"
262         ;;
263     esac
264
265     echo "Will link apps with $LIBS"
266     ;;
267
268 *-apple-darwin*)
269     dnl Mac OS X
270
271     LIBS="$LIBS -framework OpenGL -framework Carbon -lobjc"
272     ;;
273
274 *)
275     dnl X-Windows based machines
276
277     AC_SEARCH_LIBS(XCreateWindow, X11)
278     AC_SEARCH_LIBS(XShmCreateImage, Xext)
279     AC_SEARCH_LIBS(XGetExtensionVersion, Xi)
280     AC_SEARCH_LIBS(IceOpenConnection, ICE)
281     AC_SEARCH_LIBS(SmcOpenConnection, SM)
282     AC_SEARCH_LIBS(XtMalloc, Xt)
283     AC_SEARCH_LIBS(XmuLookupStandardColormap, Xmu)
284
285     AC_SEARCH_LIBS(glNewList, [ GL GLcore MesaGL ])
286     if test "x$ac_cv_search_glNewList" = "x-lGLcore"; then
287         dnl if GLcore found, then also check for GL
288         AC_SEARCH_LIBS(glXCreateContext, GL)
289     fi
290
291     dnl if using mesa, check for xmesa.h
292     if test "x$ac_cv_search_glNewList" = "x-lMesaGL"; then
293         AC_CHECK_HEADER(GL/fxmesa.h)
294         if test "x$ac_cv_header_GL_fxmesa_h" = "xyes"; then
295             AC_DEFINE([XMESA], 1, [Define for fxmesa])
296             AC_DEFINE([FX], 1, [Define for fxmesa])
297         fi
298     fi
299
300     AC_SEARCH_LIBS(gluLookAt, [ GLU MesaGLU ])
301     ;;
302
303 esac
304
305 opengl_LIBS="$LIBS"
306 LIBS="$base_LIBS"
307
308 dnl check for OpenAL libraries
309 OPENAL_OK="no"
310 ALUT_OK="no"
311 case "${host}" in
312 *-*-cygwin* | *-*-mingw32*)
313     dnl CygWin under Windoze.
314     INCLUDES="$INCLUDES -I/usr/local/include/"
315     LIBS="$LIBS -L/usr/local/lib"
316     AC_SEARCH_LIBS(alGenBuffers, [ openal32 openal 'openal -ldsound -lwinmm' ] )
317     AC_SEARCH_LIBS(alutInit, [ openal32 ALut alut ] )
318     LIBS="$LIBS -lwinmm -ldsound -ldxguid -lole32"
319     openal_LIBS="$LIBS"
320     OPENAL_OK="$ac_cv_search_alGenBuffers"
321     ALUT_OK="$ac_cv_search_alutInit"
322     ;;
323
324 *-apple-darwin*)
325     dnl Mac OS X
326
327     LIBS="$LIBS -framework IOKit -framework OpenAL -framework ALUT"
328     openal_LIBS="$LIBS"
329
330     if test "x$with_openal_lib" != "x"; then
331         echo "libopenal is not supported on Mac OS platform."
332         openal_LIBS=""
333     fi
334
335     AC_CHECK_HEADERS([OpenAL/al.h],[OPENAL_OK="yes"])
336     # Looking for alut.h
337     AC_CHECK_HEADERS([ALUT/alut.h],[ALUT_OK="yes"])
338
339     dnl Thank you Christian Bauer from SheepSaver
340     dnl Modified by Tatsuhiro Nishioka for accepting a given framework path
341     dnl AC_CHECK_FRAMEWORK($1=NAME, $2=INCLUDES, $3=FRAMEWORK_PATH, $4=ACTION_IF_TRUE) ; $3 is optional
342     AC_DEFUN([AC_CHECK_FRAMEWORK], [
343     AS_VAR_PUSHDEF([ac_Framework], [ac_cv_framework_$1])dnl
344     AC_CACHE_CHECK([whether compiler supports framework $1],
345         ac_Framework, [
346         saved_LIBS="$LIBS"
347         FRAMEWORKS="$FRAMEWORKS -framework $1"
348         if test "$3" = ""; then
349             FRAMEWORKS="$FRAMEWORKS $ADD2LD"
350         elif test "`echo $FRAMEWORKS | grep -- -F$3`" = ""; then
351             FRAMEWORKS="$FRAMEWORKS -F$3"
352             CXXFLAGS="$CXXFLAGS -F$3"
353             CPPFLAGS="$CPPFLAGS -F$3"
354             CCFLAGS="$CCFLAGS -F$3"
355             dnl This is needed for AC_TRY_LINK when a framework path is specified
356             export DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}:$3"
357         fi
358         AC_TRY_LINK(
359         [$2], [],
360         [AS_VAR_SET(ac_Framework, yes)], [AS_VAR_SET(ac_Framework, no); LIBS="$saved_LIBS"]
361         )
362     ])
363     AS_IF([test AS_VAR_GET(ac_Framework) = yes],
364         [AC_DEFINE(AS_TR_CPP(HAVE_FRAMEWORK_$1), 1, [Define if framework $1 is available.])]
365     )
366     AS_IF([test AS_VAR_GET(ac_Framework) = yes], $4)
367
368     AS_VAR_POPDEF([ac_Framework])dnl
369     ])
370
371     dnl Check for ALUT.framework when --with-alut-framework is specified
372     if test "x$with_alut_framework" != "x"; then
373       AC_CHECK_FRAMEWORK(ALUT, [#include <ALUT/alut.h>], $with_alut_framework, [ALUT_OK="yes"])
374     fi
375
376     ;;
377
378 *)
379     dnl default unix style machines
380
381     save_LIBS=$LIBS
382     LIBS="$LIBS $thread_LIBS"
383     AC_SEARCH_LIBS(alGenBuffers, openal)
384     AC_SEARCH_LIBS(alutInit, [ alut openal ] )
385     OPENAL_OK="$ac_cv_search_alGenBuffers"
386     ALUT_OK="$ac_cv_search_alutInit"
387     openal_LIBS="$LIBS"
388     LIBS=$save_LIBS
389     ;;
390
391 esac
392
393 if test "$OPENAL_OK" == "no" -a "x$enable_headless" != "xyes"; then
394     echo
395     echo "You *must* have the openal library installed on your system to build"
396     echo "SimGear!"
397     echo
398     echo "Please see README.OpenAL for more details."
399     echo
400     echo "configure aborted."
401     exit
402 fi
403
404 if test "$ALUT_OK" == "no" -a "x$enable_headless" != "xyes"; then
405     echo
406     echo "You *must* have the alut library installed on your system to build"
407     echo "SimGear!"
408     echo
409     echo "Please see README.OpenAL for more details."
410     echo
411     echo "configure aborted."
412     exit
413 fi
414
415
416
417 LIBS="$base_LIBS"
418
419 AC_SUBST(base_LIBS)
420 AC_SUBST(openal_LIBS)
421 AC_SUBST(opengl_LIBS)
422 AC_SUBST(thread_LIBS)
423 AC_SUBST(network_LIBS)
424
425 dnl Check for MS Windows environment
426 AC_CHECK_HEADER(windows.h)
427 AM_CONDITIONAL(EXTGL_NEEDED, test "x$ac_cv_header_windows_h" = "xyes")
428
429 # The following are C++ items that need to be tested for with the c++
430 # compiler
431
432 CXXCPP="g++ -E"
433 AC_LANG_PUSH(C++)
434
435 # OpenSceneGraph
436 case "${host}" in
437 *-apple-darwin*)
438     if test "x$with_osg_framework" != "x"; then
439 #       AC_CHECK_FRAMEWORK(osgViewer, [#include <osgViewer/Version>], $with_osg_framework)
440 #       AC_CHECK_FRAMEWORK(osgGA, [#include <osgGA/Version>], $with_osg_framework)
441 #       AC_CHECK_FRAMEWORK(osgText, [#include <osgText/Version>], $with_osg_framework)
442 #       AC_CHECK_FRAMEWORK(osgFX, [#include <osgFX/AnisotropicLighting>], $with_osg_framework)
443 #       AC_CHECK_FRAMEWORK(osgUtil, [#include <osgUtil/Version>], $with_osg_framework)
444 #       AC_CHECK_FRAMEWORK(osgDB, [#include <osgDB/Version>], $with_osg_framework)
445 #       AC_CHECK_FRAMEWORK(osgSim, [#include <osgSim/Version>], $with_osg_framework)
446 #       AC_CHECK_FRAMEWORK(osgParticle, [#include <osgParticle/Version>], $with_osg_framework)
447         AC_CHECK_FRAMEWORK(osg, [#include <osg/Version>], $with_osg_framework)
448 #       osg_FRAMEWORKS="$FRAMEWORKS"
449 #       FRAMEWORKS=""
450 #       AC_SUBST(osg_FRAMEWORKS)
451         AC_CHECK_FRAMEWORK(OpenThreads, [#include <OpenThreads/Version>], $with_osg_framework)
452         openthreads_FRAMEWORK="$FRAMEWORKS"
453         FRAMEWORKS=""
454         AC_SUBST(openthreads_FRAMEWORK)
455     else
456         dnl
457         dnl This is needed when osg dynamic libs are specified
458         dnl instead of OSG frameworks on Mac OS X
459         dnl
460         AC_CHECK_LIB(OpenThreads,OpenThreadsGetVersion)
461     fi
462     ;;
463 *)
464     if test "x$enable_osgdebug" = "xyes"; then
465         AC_CHECK_LIB(OpenThreadsd,OpenThreadsGetVersion)
466     else
467         AC_CHECK_LIB(OpenThreads,OpenThreadsGetVersion)
468     fi
469     ;;
470 esac
471
472 AM_CONDITIONAL(HAVE_FRAMEWORK_OSG, test "x$ac_cv_framework_osg" != "x")
473
474 AC_CHECK_HEADER(osg/Version)
475
476 if test "x$ac_cv_header_osg_Version" != "xyes" -o "x$ac_cv_lib_OpenThreads_OpenThreadsGetVersion" != "xyes"; then
477   if test "x$ac_cv_framework_osg" != "xyes"; then
478     echo
479     echo "You *must* have the OpenThreads library installed on your system"
480     echo "to build this version of SimGear!"
481     echo "   Maybe you need to specify --with-osg=DIR."
482     echo "   Maybe you need to specify some LDFLAGS to help the linker."
483     echo
484     echo "     LIBS: '$LIBS'"
485     echo "  LDFLAGS: '$LDFLAGS'"
486     echo " CPPFLAGS: '$CPPFLAGS'"
487     echo
488     echo "Please see README.OSG for more details."
489     echo
490     echo "configure aborted."
491     exit
492   fi
493 fi
494
495 AC_CHECK_HEADER(boost/version.hpp)
496 if test "x$ac_cv_header_boost_version_hpp" != "xyes"; then
497     echo
498     echo "You *must* have the Boost library installed on your system"
499     echo "to build this version of SimGear!"
500     echo
501     echo "     LIBS: '$LIBS'"
502     echo "  LDFLAGS: '$LDFLAGS'"
503     echo " CPPFLAGS: '$CPPFLAGS'"
504     echo
505     echo "configure aborted."
506     exit
507 fi
508
509 dnl Check for a HLA13 rti.
510 dnl This is really tricky because of the ancient iostream stuff in RTI13
511 saved_CPPFLAGS="$CPPFLAGS"
512 CPPFLAGS="$CPPFLAGS -DRTI_USES_STD_FSTREAM"
513 AC_CHECK_HEADER(RTI.hh)
514 CPPFLAGS="${saved_CPPFLAGS}"
515
516 dnl Up to now only RTI13
517 AM_CONDITIONAL(ENABLE_HLA, test "x$ac_cv_header_RTI_hh" = "xyes")
518 AM_CONDITIONAL(ENABLE_HLA13, test "x$ac_cv_header_RTI_hh" = "xyes")
519
520 AC_LANG_POP
521
522 dnl Check for system installed zlib
523 AC_CHECK_HEADER(zlib.h)
524 if test "x$ac_cv_header_zlib_h" != "xyes"; then
525     echo
526     echo "zlib library not found."
527     echo
528     echo "If your OS does not provide an installable package for zlib"
529     echo "you will have to compile and install it first yourself.  A copy"
530     echo "of zlib-1.1.4.tar.gz is included with SimGear.  You will"
531     echo "have to untar this source code, and follow its included instructions"
532     echo "to compile and install on your system."
533     echo
534     echo "configure aborted."
535     echo
536 fi
537
538 dnl Checks for header files.
539 AC_HEADER_STDC
540 AC_CHECK_HEADERS( \
541         fcntl.h getopt.h malloc.h memory.h stdint.h stdlib.h sys/param.h \
542         sys/stat.h sys/time.h sys/timeb.h unistd.h values.h )
543
544 if test "x$ac_cv_header_stdint_h" = "xyes"; then
545     AC_DEFINE([HAVE_STDINT_H], 1, [Define if stdint.h exists])
546 fi
547
548 dnl Checks for typedefs, structures, and compiler characteristics.
549 AC_C_CONST
550 AC_TYPE_SIZE_T
551 AC_TYPE_MODE_T
552 AC_HEADER_TIME
553 AC_STRUCT_TM
554
555 dnl Checks for library functions.
556 old_LIBS=$LIBS
557 LIBS="$base_LIBS $network_LIBS $opengl_LIBS"
558 AC_TYPE_SIGNAL
559 AC_FUNC_VPRINTF
560 AC_CHECK_FUNCS( [ \
561         ftime gettimeofday timegm memcpy bcopy mktime strstr rand \
562         random drand48 setitimer getitimer signal GetLocalTime rint getrusage ] )
563 LIBS=$old_LIBS
564
565 AM_CONFIG_HEADER(simgear/simgear_config.h)
566
567 AC_CONFIG_FILES([ \
568         Makefile \
569         SimGear.spec \
570         simgear/Makefile \
571         simgear/version.h \
572         simgear/compatibility/Makefile \
573         simgear/compatibility/MIPSpro721/Makefile \
574         simgear/compatibility/MIPSpro740/Makefile \
575         simgear/bucket/Makefile \
576         simgear/debug/Makefile \
577         simgear/ephemeris/Makefile \
578         simgear/hla/Makefile \
579         simgear/io/Makefile \
580         simgear/magvar/Makefile \
581         simgear/math/Makefile \
582         simgear/environment/Makefile \
583         simgear/misc/Makefile \
584         simgear/nasal/Makefile \
585         simgear/props/Makefile \
586         simgear/route/Makefile \
587         simgear/scene/Makefile \
588         simgear/scene/bvh/Makefile \
589         simgear/scene/material/Makefile \
590         simgear/scene/model/Makefile \
591         simgear/scene/sky/Makefile \
592         simgear/scene/tgdb/Makefile \
593         simgear/scene/util/Makefile \
594         simgear/screen/Makefile \
595         simgear/serial/Makefile \
596         simgear/sound/Makefile \
597         simgear/structure/Makefile \
598         simgear/threads/Makefile \
599         simgear/timing/Makefile \
600         simgear/xml/Makefile \
601 ])
602 AC_OUTPUT
603
604
605 echo ""
606 echo "Configure Summary"
607 echo "================="
608
609 echo "Prefix: $prefix"
610
611 if test "x$with_logging" != "x"; then
612     echo "Debug messages: $with_logging"
613 else
614     echo "Debug messages: yes"
615 fi
616
617 echo -n "Automake version: "
618 automake --version | head -1
619
620 if test "x$with_jpeg_factory" = "xyes"; then
621    echo "With JPEG Factory support"
622 else
623    echo "Without JPEG Factory support"
624 fi
625
626 if test "x$ac_cv_header_pthread_h" = "xyes"; then
627    echo "Threads: pthread lib found."
628 else
629    echo "Threads: no threads (pthread lib not found.)"
630 fi
631