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