]> git.mxchange.org Git - flightgear.git/blob - configure.ac
Updates for 0.9.1
[flightgear.git] / configure.ac
1 dnl Process this file with aclocal ; automake -a ; autoconf to produce a 
2 dnl working configure script.
3
4 #
5 # $Id$
6 #
7
8 AC_INIT
9 AC_CONFIG_SRCDIR([src/Aircraft/aircraft.cxx])
10
11 # Require at least automake 2.52
12 AC_PREREQ(2.52)
13
14 # Initialize the automake stuff
15 AM_INIT_AUTOMAKE(FlightGear, 0.9.1)
16
17 # Checks for programs.
18 AC_PROG_MAKE_SET
19 AC_PROG_CC
20 AC_PROG_CPP
21 AC_PROG_CXX
22 AC_PROG_RANLIB
23 AC_PROG_INSTALL
24 AC_PROG_LN_S
25
26 # Initialize libtool
27 # AM_PROG_LIBTOOL
28
29 # Initialize maintainer mode
30 # AM_MAINTAINER_MODE
31
32 # This is needed for AC_TRY_COMPILE later
33 # AC_ISC_POSIX
34
35 # Check to see if this `configure' is being run in the `Cygwin32' environment
36 AC_EGREP_CPP(yes,
37 [#ifdef __MINGW32__
38  yes
39  #endif
40 ],is_mingw=yes, is_mingw=no)
41
42 echo "IS_MINGW = $is_mingw"
43 AM_CONDITIONAL(IS_MINGW, test "x$is_mingw" = "xyes")
44
45 AC_EGREP_CPP(yes,
46 [#ifdef __CYGWIN__
47  yes
48  #endif
49 ],is_cygwin=yes, is_cygwin=no)
50
51 echo "IS_CYGWIN = $is_cygwin"
52 AM_CONDITIONAL(IS_CYGWIN, test "x$is_cygwin" = "xyes")
53
54 # Used by JSBSim
55 AC_DEFINE([FGFS], 1, [Define so that JSBSim compiles in 'library' mode])
56
57
58 # Used on the Irix platform
59 AR="ar"
60 ARFLAGS="cru"
61 OS=`uname -s`
62 if test "$OS" = "IRIX" -o "$OS" = "IRIX64"; then
63     if test "$CXX" = "CC"; then
64         AR="CC -ar"
65         ARFLAGS="-o"
66     fi
67 fi
68 AC_SUBST(AR)
69 AC_SUBST(ARFLAGS)
70
71
72 # Specify if we want logging (testing build) or not (release build)
73 # set logging default value
74 # with_logging=yes
75 AC_ARG_WITH(logging, [  --with-logging          Include logging output (default)])
76 if test "x$with_logging" = "xno" ; then
77     AC_DEFINE([FG_NDEBUG], 1, [Define for no logging output])
78 fi
79
80 # Specify if we want to build with Oliver's networking support
81 # default to with_network=yes
82 AC_ARG_WITH(network_olk, [  --with-network-olk      Include Oliver's multi-pilot networking support])
83 if test "x$with_network_olk" = "xno" ; then
84     echo "Building without Oliver's multi-pilot network support"
85 else
86     echo "Building with Oliver's multi-pilot network support"
87     AC_DEFINE([FG_NETWORK_OLK], 1, [Define to build with Oliver's networking])
88 fi
89 AM_CONDITIONAL(ENABLE_NETWORK_OLK, test "x$with_network_olk" != "xno")
90
91
92 # Specify if we want to use WeatherCM instead of FGEnvironment.
93 # default to with_weathercm=no
94 AC_ARG_WITH(new-environment, [  --with-weathercm        Use WeatherCM instead of FGEnvironment])
95 if test "x$with_weathercm" = "xyes" ; then
96     echo "Building with WeatherCM"
97     AC_DEFINE([FG_WEATHERCM], 1,
98               [Define to build with Christian Mayer's weather code])
99 else
100     echo "Building with FGEnvironment"
101 fi
102 AM_CONDITIONAL(ENABLE_WEATHERCM, test "x$with_weathercm" = "xyes")
103
104 # Let the Win32 user specify if they want to build with the SGI
105 # opengl.dll as opposed to the more standard openg32.dll
106 AC_ARG_WITH(sgi-opengl, [  --with-sgi-opengl       Build against SGI's opengl.dll glu.dll and glut.dll])
107
108 dnl Thread related checks
109 AC_ARG_WITH(threads, [  --with-threads          Include tile loading threads [default=no]])
110 if test "x$with_threads" = "xyes"; then
111     AC_DEFINE([ENABLE_THREADS], 1, [Define to enable threaded tile paging])
112     CXXFLAGS="$CXXFLAGS -D_REENTRANT"
113     CFLAGS="$CFLAGS -D_REENTRANT"
114     AC_CHECK_HEADER(pthread.h)
115 fi
116 AM_CONDITIONAL(WITH_THREADS, test "x$with_threads" = "xyes")
117
118 # specify the plib location
119 AC_ARG_WITH(plib, [  --with-plib=PREFIX      Specify the prefix path to plib])
120
121 if test "x$with_plib" != "x" ; then
122     echo "plib prefix is $with_plib"
123     EXTRA_DIRS="${EXTRA_DIRS} $with_plib"
124 fi
125
126 # specify the metakit location
127 AC_ARG_WITH(metakit, [  --with-metakit=PREFIX   Specify the prefix path to metakit])
128
129 if test "x$with_metakit" != "x" ; then
130     echo "metakit prefix is $with_metakit"
131     EXTRA_DIRS="${EXTRA_DIRS} $with_metakit"
132 fi
133
134 # specify the simgear location
135 AC_ARG_WITH(simgear, [  --with-simgear=PREFIX   Specify the prefix path to simgear])
136
137 if test "x$with_simgear" != "x" ; then
138     echo "SimGear prefix path is $with_simgear"
139     EXTRA_DIRS="${EXTRA_DIRS} $with_simgear"
140 fi
141
142 # Check for MS Windows environment
143 AC_CHECK_HEADER(windows.h)
144
145 # extra library and include directories
146 if test "x$ac_cv_header_windows_h" != "xyes" ; then
147     EXTRA_DIRS="${EXTRA_DIRS} /usr/X11R6"
148
149     if test -d /opt/X11R6 ; then
150         EXTRA_DIRS="${EXTRA_DIRS} /opt/X11R6"
151     fi
152 else
153     if test  "x$is_cygwin" = "xyes" ; then
154         EXTRA_DIRS="${EXTRA_DIRS} /usr/local"
155     fi
156 fi
157
158 wi_EXTRA_DIRS(no, ${EXTRA_DIRS})
159
160 # Using AM_CONDITIONAL is a step out of the protected little 
161 # automake fold so it is potentially dangerous.  But, we are
162 # beginning to run into cases where the standard checks are not
163 # enough.  AM_CONDITIONALS are then referenced to conditionally
164 # build a Makefile.in from a Makefile.am which lets us define custom
165 # includes, compile alternative source files, etc.
166
167 # Check for external variables daylight and timezone.
168 AC_EXT_DAYLIGHT
169 if test "$have_daylight" = yes; then
170     AC_DEFINE([HAVE_DAYLIGHT], 1, [Define if system has daylight variable])
171 fi
172 # AM_CONDITIONAL(HAVE_DAYLIGHT, test "$have_daylight" = yes )
173
174 AC_EXT_TIMEZONE
175 if test "$have_timezone" = yes; then
176     AC_DEFINE([HAVE_TIMEZONE], 1, [Define if system has timezone variable])
177 fi
178 # AM_CONDITIONAL(HAVE_TIMEZONE, test "$have_timezone" = yes )
179
180 # Check for audio support
181 AC_MSG_CHECKING(for audio support)
182 audio_LIBS=""
183 if test -r /usr/include/soundcard.h \
184         -o -r /usr/include/linux/soundcard.h \
185         -o -r /usr/include/machine/soundcard.h \
186         -o -r /usr/include/audio.h \
187         -o "x$ac_cv_header_windows_h" = "xyes" \
188         -o "$HOSTTYPE" = "macintosh"; then
189
190     AC_DEFINE([ENABLE_AUDIO_SUPPORT], 1, [Define for audio support])
191     audio_LIBS="-lplibsl -lplibsm"
192     AC_MSG_RESULT(yes)
193     if test -r /usr/include/audio.h; then
194         audio_LIBS="$audio_LIBS -laudio"
195     fi
196
197     if test "x$ac_cv_header_windows_h" = "xyes"; then
198         audio_LIBS="$audio_LIBS -lwinmm"
199     fi
200
201     if test "$HOSTTYPE" = "macintosh"; then
202         audio_LIBS="$audio_LIBS -framework Carbon"
203     fi
204 else
205     AC_MSG_RESULT(no)
206 fi
207 AC_SUBST(audio_LIBS)
208
209 # Check for X11 (fancy)
210 if test "x$no_x" != "xyes"; then
211     AC_PATH_XTRA
212 fi
213
214 # Checks for libraries.
215
216 null_LIBS="$LIBS"
217
218 AC_CHECK_LIB(m, cos)
219
220 dnl MINGW requires libwsock32
221 if test  "x$is_mingw" = "xyes" ; then
222     LIBS="$LIBS -lws2_32"
223 fi
224
225 base_LIBS="$LIBS"
226
227 dnl Mesa >= 3.2 requires pthreads
228 AC_CHECK_LIB(pthread, pthread_exit)
229 AC_CHECK_LIB(socket, socket)
230
231 dnl Skip X library tests.
232 if test "x$no_x" != "xyes"; then
233     AC_CHECK_LIB(X11, XCreateWindow)
234     AC_CHECK_LIB(Xext, XShmCreateImage)
235     AC_CHECK_LIB(Xi, XGetExtensionVersion)
236     AC_CHECK_LIB(ICE, IceOpenConnection)
237     AC_CHECK_LIB(SM, SmcOpenConnection)
238     AC_CHECK_LIB(Xt, XtMalloc)
239     AC_CHECK_LIB(Xmu, XmuLookupStandardColormap)
240 fi
241
242 # check for OpenGL related libraries
243
244 if test "$HOSTTYPE" = "macintosh"; then
245     LIBS="$LIBS -framework OpenGL -framework GLUT -lobjc"
246 elif test "x$ac_cv_header_windows_h" != "xyes" ; then
247     # Reasonable stuff for non-windoze variants ... :-)
248
249     AC_CHECK_LIB(GLcore, glNewList)
250     if test "x$ac_cv_lib_GLcore_glNewList" = "xno" ; then
251         # if no GLcore, check for GL
252         AC_CHECK_LIB(GL, glNewList)
253         if test "x$ac_cv_lib_GL_glNewList" = "xno" ; then
254             # if no GL, check for MesaGL
255             AC_CHECK_LIB(MesaGL, glNewList)
256         fi
257     else
258         # if GLcore found, then also check for GL
259         AC_CHECK_LIB(GL, glXCreateContext)
260     fi
261
262     # check for xmesa.h and if found enable XMESA / FX
263     AC_CHECK_HEADER(GL/fxmesa.h)
264     if test "x$ac_cv_header_GL_fxmesa_h" = "xyes"; then
265         save_LIBS="$LIBS"
266         AC_CHECK_LIB(GL, XMesaSetFXmode)
267         if test "x$ac_cv_lib_GL_XMesaSetFXmode" = "xyes" ; then
268             AC_DEFINE([XMESA], 1, [Define for Mesa FX mode])
269             AC_DEFINE([FX], 1, [Define for Mesa FX mode])
270         else
271             AC_CHECK_LIB(MesaGL, XMesaSetFXmode)
272             if test "x$ac_cv_lib_MesaGL_XMesaSetFXmode" = "xyes" ; then
273                 AC_DEFINE([XMESA], 1, [Define for Mesa FX mode])
274                 AC_DEFINE([FX], 1, [Define for Mesa FX mode])
275             fi
276         fi
277         LIBS="$save_LIBS"
278     fi
279
280     AC_CHECK_LIB(GLU, gluLookAt)
281     if test "x$ac_cv_lib_GLU_gluLookAt" = "xno" ; then
282         # if no GLU, check for MesaGLU
283         AC_CHECK_LIB(MesaGLU, gluLookAt)
284     fi
285
286     # check for glut
287     AC_CHECK_LIB(glut, glutGetModifiers)
288
289     # test for glutGameModeString, but avoid adding glut a second time into
290     # the list of libraries
291     save_LIBS="$LIBS"
292     AC_CHECK_LIB(glut, glutGameModeString)
293     LIBS="$save_LIBS"
294 else
295     # Win32 is a little wierd because it has to try to handle the various
296     # winbloze-isms.  We'll just do this manually for now.
297
298     echo Win32 specific hacks...
299     AC_DEFINE([WIN32], 1, [Define if building on a Win32 platform])
300     AC_DEFINE([NOMINMAX], 1, [Define for Win32 platforms])
301
302     # just define these to true and hope for the best
303     ac_cv_lib_glut_glutGetModifiers="yes"
304     ac_cv_lib_glut_glutGameModeString="yes"
305
306     if test "x$with_sgi_opengl" = "xyes" ; then
307         echo "Building with glut.dll, glu.dll, and opengl.dll"
308         WIN32_GLUT=glut
309         WIN32_GLU=glu
310         WIN32_OPENGL=opengl
311     else 
312         echo "Building with glut32.dll, glu32.dll, and opengl32.dll"
313         WIN32_GLUT=glut32
314         WIN32_GLU=glu32
315         WIN32_OPENGL=opengl32
316     fi
317
318     LIBS="$LIBS -l${WIN32_GLUT} -l${WIN32_GLU} -l${WIN32_OPENGL}"
319     LIBS="$LIBS -luser32 -lgdi32"
320     echo "Will link apps with $LIBS"
321 fi
322
323 if test "x$ac_cv_lib_glut_glutGetModifiers" = "xno"; then
324     echo 
325     echo "Unable to find the necessary OpenGL or GLUT libraries."
326     echo "See config.log for automated test details and results ..."
327     exit 1
328 fi
329
330 if test "x$ac_cv_lib_glut_glutGameModeString" = "xno"; then
331     echo
332     echo "Your version of glut doesn't support game mode."
333     echo "You need to install the latest version.  If your distribution doesn't"
334     echo "provide a newer version, you can get the latest source code from:"
335     echo
336     echo "    http://reality.sgi.com/opengl/glut3/glut3.html"
337     exit 1
338 fi
339
340 opengl_LIBS="$LIBS"
341 LIBS="$base_LIBS"
342
343 AC_SUBST(base_LIBS)
344 AC_SUBST(opengl_LIBS)
345
346 AM_CONDITIONAL(HAVE_XWINDOWS, test "x$ac_cv_lib_X11_XCreateWindow" = "xyes" )
347
348 # The following are C++ items that need to be tested for with the c++
349 # compiler
350
351 AC_LANG_PUSH(C++)
352
353 # Check for "plib" without which we cannot go on
354 AC_CHECK_HEADER(plib/ul.h)
355 if test "x$ac_cv_header_plib_ul_h" != "xyes"; then
356     echo
357     echo "You *must* have the plib library installed on your system to build"
358     echo "the FGFS simulator!"
359     echo
360     echo "Please see README.plib for more details."
361     echo
362     echo "configure aborted."
363     exit
364 fi
365
366 AC_MSG_CHECKING([for plib 1.6.0 or newer])
367 AC_TRY_RUN([
368 #include <plib/ul.h>
369
370 #define MIN_PLIB_VERSION 160
371
372 int main() {
373     int major, minor, micro;
374
375     if ( PLIB_VERSION < MIN_PLIB_VERSION ) {
376          return -1;
377     }
378
379     return 0;
380 }
381
382 ],
383   AC_MSG_RESULT(yes),
384   [AC_MSG_RESULT(wrong version);
385    AC_MSG_ERROR([Install plib 1.6.0 or later first...])],
386   AC_MSG_RESULT(yes)
387 )
388
389 # If we get here then plib is available, so force use of plib joystick lib
390 AC_DEFINE([ENABLE_PLIB_JOYSTICK], 1, [Define to enable plib joystick support])
391
392 # Do we have a new CVS plib version with jsJoystick::getName?
393 echo -n "Testing for Plib joystick getName support: "
394 AC_EGREP_HEADER( getName, plib/js.h,
395                  plib_js_has_getname=yes, plib_js_has_getname=no )
396 echo $plib_js_has_getname
397 if test $plib_js_has_getname = 'yes'; then
398     AC_DEFINE([FG_PLIB_JOYSTICK_GETNAME], 1,
399               [Define to enable plib joystick name support])
400 fi
401
402 # Check for the presence of SimGear
403 AC_CHECK_HEADER(simgear/version.h)
404 if test "x$ac_cv_header_simgear_version_h" != "xyes"; then
405     echo
406     echo "You *must* have the SimGear support library installed on your system"
407     echo "to build the FGFS simulator!"
408     echo
409     echo "Please see README.SimGear for more details."
410     echo
411     echo "configure aborted."
412     exit
413 fi
414
415 AC_MSG_CHECKING([for simgear 0.3.0 or newer])
416 AC_TRY_RUN([
417 #include <stdio.h>
418
419 #include <simgear/version.h>
420
421 #define STRINGIFY(X) XSTRINGIFY(X)
422 #define XSTRINGIFY(X) #X
423
424 #define MIN_MAJOR 0
425 #define MIN_MINOR 3
426 #define MIN_MICRO 0
427
428 int main() {
429     int major, minor, micro;
430
431     printf("%d.%d.%d or greater... ", MIN_MAJOR, MIN_MINOR, MIN_MICRO);
432
433     sscanf( STRINGIFY(SIMGEAR_VERSION), "%d.%d.%d", &major, &minor, &micro );
434
435     if ( major < MIN_MAJOR ) {
436          return -1;
437     } else if ( major == MIN_MAJOR && minor < MIN_MINOR ) {
438          return -1;
439     } else if ( major == MIN_MAJOR && minor == MIN_MINOR && micro < MIN_MICRO ){
440          return -1;
441     }
442
443     return 0;
444 }
445
446 ],
447   AC_MSG_RESULT(yes),
448   [AC_MSG_RESULT(wrong version);
449    AC_MSG_ERROR([Install latest simgear first...])],
450   AC_MSG_RESULT(yes)
451 )
452
453 # Check for MetaKit
454 AC_CHECK_HEADER(mk4.h)
455 if test "x$ac_cv_header_mk4_h" != "xyes"; then
456     echo
457     echo "MetaKit library not found."
458     echo
459     echo "If your OS does not provide an installable package for MetaKit"
460     echo "you will have to compile and install it first yourself.  A copy"
461     echo "of metakit-$(VERSION).tar.gz is included with SimGear.  You will"
462     echo "have to untar this source code, and follow it's included instructions"
463     echo "to compile and install on your system."
464     echo
465     echo "configure aborted."
466     exit
467 fi
468
469 AC_MSG_CHECKING([for metakit 2.4.3 or newer])
470 saved_LIBS="$LIBS"
471 LIBS="$saved_LIBS -lmk4"
472 AC_TRY_RUN([
473 #include <mk4.h>
474
475 #define MIN_MK4_VERSION 243
476
477 int main() {
478     int major, minor, micro;
479
480     if ( d4_MetaKitLibraryVersion < MIN_MK4_VERSION ) {
481          return -1;
482     }
483
484     return 0;
485 }
486
487 ],
488   AC_MSG_RESULT(yes),
489   [AC_MSG_RESULT(wrong version);
490    AC_MSG_ERROR([
491
492 Install metakit 2.4.3 or later first.
493
494 Or, the compiler may not be finding your libmk4.so library.
495 Please check the config.log file for specific details of the
496 failure if you believe you have the correct metakit version.
497 Also, look up this issue in the FlightGear FAQ.])],
498   AC_MSG_RESULT(yes)
499 )
500 LIBS="$saved_LIBS"
501
502 # Check if SimGear was built with Norman JPEG factory support
503 AC_CHECK_HEADER(simgear/screen/jpgfactory.hxx)
504 if test "x$ac_cv_header_simgear_screen_jpgfactory_hxx" = "xyes"; then
505     AC_CHECK_LIB(jpeg, jpeg_start_compress)
506     if test "x$ac_cv_lib_jpeg_jpeg_start_compress" != "xyes" ; then
507         echo
508         echo "The JPEG factory code was built and installed with SimGear."
509         echo "However it appears the libjpeg is no longer installed."
510         echo "You need to install libjpeg or remove jpgfactory support from"
511         echo "SimGear"
512         echo
513         echo "libjpeg is available at :"
514         echo "  ftp://ftp.uu.net in the directory graphics/jpeg"
515         exit 1
516     fi
517     AC_DEFINE([FG_JPEG_SERVER], 1,
518               [Define to build with jpeg screen shot server])
519 fi
520 AM_CONDITIONAL(ENABLE_JPEG_SERVER, test "x$ac_cv_header_simgear_screen_jpgfactory_hxx" = "xyes")
521
522 AC_LANG_POP
523
524 # Check for system installed zlib
525 AC_CHECK_HEADER(zlib.h)
526 if test "x$ac_cv_header_zlib_h" != "xyes"; then
527     echo
528     echo "zlib library not found."
529     echo
530     echo "If your OS does not provide an installable package for zlib"
531     echo "you will have to compile and install it first yourself.  A copy"
532     echo "of zlib-1.1.4.tar.gz is included with SimGear.  You will"
533     echo "have to untar this source code, and follow it's included instructions"
534     echo "to compile and install on your system."
535     echo
536     echo "configure aborted."
537     echo
538 fi
539
540 # Checks for header files.
541 AC_HEADER_STDC
542 AC_CHECK_HEADERS( \
543         fcntl.h getopt.h malloc.h memory.h stdlib.h sys/param.h sys/stat.h \
544         sys/time.h sys/timeb.h unistd.h windows.h winbase.h values.h )
545
546 # Checks for typedefs, structures, and compiler characteristics.
547 AC_C_CONST
548 AC_TYPE_SIZE_T
549 AC_HEADER_TIME
550 AC_STRUCT_TM
551
552 # Checks for library functions.
553 AC_TYPE_SIGNAL
554 AC_FUNC_VPRINTF
555 AC_CHECK_FUNCS( ftime gettimeofday timegm memcpy bcopy mktime strstr rand \
556         random setitimer getitimer signal GetLocalTime rint getrusage )
557
558 AM_CONFIG_HEADER(src/Include/config.h)
559
560 AC_CONFIG_FILES([ \
561         Makefile \
562         man/Makefile \
563         man/est-epsilon.1 \
564         man/fgfs.1 \
565         man/fgjs.1 \
566         man/gl-info.1 \
567         man/js_demo.1 \
568         man/pstest.1 \
569         scripts/Makefile \
570         scripts/debug/Makefile \
571         scripts/python/Makefile \
572         src/Makefile \
573         src/Include/Makefile \
574         src/Include/version.h \
575         src/Aircraft/Makefile \
576         src/Airports/Makefile \
577         src/ATC/Makefile \
578         src/Autopilot/Makefile \
579         src/Cockpit/Makefile \
580         src/Cockpit/built_in/Makefile \
581         src/Controls/Makefile \
582         src/Environment/Makefile \
583         src/FDM/Balloon/Makefile \
584         src/FDM/ExternalNet/Makefile \
585         src/FDM/JSBSim/Makefile \
586         src/FDM/JSBSim/filtersjb/Makefile \
587         src/FDM/LaRCsim/Makefile \
588         src/FDM/UIUCModel/Makefile \
589         src/FDM/YASim/Makefile \
590         src/FDM/Makefile \
591         src/GUI/Makefile \
592         src/Input/Makefile \
593         src/Instrumentation/Makefile \
594         src/Main/Makefile \
595         src/Main/runfgfs \
596         src/Main/runfgfs.bat \
597         src/Model/Makefile \
598         src/Navaids/Makefile \
599         src/Network/Makefile \
600         src/NetworkOLK/Makefile \
601         src/Objects/Makefile \
602         src/Scenery/Makefile \
603         src/Sound/Makefile \
604         src/Systems/Makefile \
605         src/Time/Makefile \
606         src/WeatherCM/Makefile \
607         tests/Makefile \
608         utils/Makefile \
609         utils/TerraSync/Makefile \
610 ])
611 AC_OUTPUT
612
613 AC_OUTPUT_COMMANDS([chmod 755 src/Main/runfgfs])
614
615 echo ""
616 echo "Configure Summary"
617 echo "================="
618
619 echo "Prefix: $prefix"
620
621 if test "x$with_logging" != "x"; then
622     echo "Debug messages: $with_logging"
623 else
624     echo "Debug messages: yes"
625 fi
626
627 echo -n "Automake version: ($AUTO_MAKE_VERSION) "
628 automake --version | head -1
629
630 echo "New plib joystick name support: $plib_js_has_getname"
631
632 if test "x$with_weathercm" != "x"; then
633     echo "WeatherCM instead of FGEnvironment: $with_weathercm"
634 else
635     echo "Using FGEnvironment"
636 fi
637
638 if test "x$with_threads" = "xyes"; then
639     echo "threads: yes"
640 else
641     echo "threads: no"
642 fi