]> git.mxchange.org Git - flightgear.git/blob - configure.ac
ad735106a72fbb349ce6e0f68e98bd493964a183
[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.7.11pre1)
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 # Determine version of automake ... important becuase of
55 # incompatibilities between versions
56 AUTO_MAKE_VERSION=`automake --version | head -1 | awk '{print $4}' | sed -e 's/\.\([0-9]*\).*/\1/'`
57 if test $AUTO_MAKE_VERSION -lt 15; then
58     echo ""
59     echo "You need to upgrade to automake version 1.5 or greater."
60     echo "Most distributions have packages available to install or you can"
61     echo "find the source for the most recent version at"
62     echo "ftp://ftp.gnu.org/gnu/automake"
63     exit 1
64 fi
65
66 # Used by JSBSim
67 AC_DEFINE([FGFS], 1, [Define so that JSBSim compiles in 'library' mode])
68
69 # Used on the Irix platform
70 AR="ar"
71 OS=`uname -s`
72 if test "$OS" = "IRIX" -o "$OS" = "IRIX64"; then
73     if test "$CXX" = "CC"; then
74         AR="CC -ar"
75         AC_SUBST(AR)
76     fi
77 fi
78
79
80 # Specify if we want logging (testing build) or not (release build)
81 # set logging default value
82 # with_logging=yes
83 AC_ARG_WITH(logging, [  --with-logging          Include logging output (default)])
84 if test "x$with_logging" = "xno" ; then
85     AC_DEFINE([FG_NDEBUG], 1, [Define for no logging output])
86 fi
87
88 # Specify if we want to build with Oliver's networking support
89 # default to with_network=yes
90 AC_ARG_WITH(network_olk, [  --with-network-olk      Include Oliver's multi-pilot networking support])
91 if test "x$with_network_olk" = "xno" ; then
92     echo "Building without Oliver's multi-pilot network support"
93 else
94     echo "Building with Oliver's multi-pilot network support"
95     AC_DEFINE([FG_NETWORK_OLK], 1, [Define to build with Oliver's networking])
96 fi
97 AM_CONDITIONAL(ENABLE_NETWORK_OLK, test "x$with_network_olk" != "xno")
98
99
100 # Specify if we want to use WeatherCM instead of FGEnvironment.
101 # default to with_weathercm=no
102 AC_ARG_WITH(new-environment, [  --with-weathercm        Use WeatherCM instead of FGEnvironment])
103 if test "x$with_weathercm" = "xyes" ; then
104     echo "Building with WeatherCM"
105     AC_DEFINE([FG_WEATHERCM], 1,
106               [Define to build with Christian Mayer's weather code])
107 else
108     echo "Building with FGEnvironment"
109 fi
110 AM_CONDITIONAL(ENABLE_WEATHERCM, test "x$with_weathercm" = "xyes")
111
112 # Let the Win32 user specify if they want to build with the SGI
113 # opengl.dll as opposed to the more standard openg32.dll
114 AC_ARG_WITH(sgi-opengl, [  --with-sgi-opengl       Build against SGI's opengl.dll glu.dll and glut.dll])
115
116 dnl Thread related checks
117 AC_ARG_WITH(threads, [  --with-threads          Include tile loading threads [default=no]])
118 if test "x$with_threads" = "xyes"; then
119     AC_DEFINE([ENABLE_THREADS], 1, [Define to enable threaded tile paging])
120     CXXFLAGS="$CXXFLAGS -D_REENTRANT"
121     CFLAGS="$CFLAGS -D_REENTRANT"
122     AC_CHECK_HEADER(pthread.h)
123 fi
124 AM_CONDITIONAL(WITH_THREADS, test "x$with_threads" = "xyes")
125
126 # specify the plib location
127 AC_ARG_WITH(plib, [  --with-plib=PREFIX      Specify the prefix path to plib])
128
129 if test "x$with_plib" != "x" ; then
130     echo "plib prefix is $with_plib"
131     EXTRA_DIRS="${EXTRA_DIRS} $with_plib"
132 fi
133
134 # specify the metakit location
135 AC_ARG_WITH(metakit, [  --with-metakit=PREFIX   Specify the prefix path to metakit])
136
137 if test "x$with_metakit" != "x" ; then
138     echo "metakit prefix is $with_metakit"
139     EXTRA_DIRS="${EXTRA_DIRS} $with_metakit"
140 fi
141
142 # specify the simgear location
143 AC_ARG_WITH(simgear, [  --with-simgear=PREFIX   Specify the prefix path to simgear])
144
145 if test "x$with_simgear" != "x" ; then
146     echo "SimGear prefix path is $with_simgear"
147     EXTRA_DIRS="${EXTRA_DIRS} $with_simgear"
148 fi
149
150 # Check for MS Windows environment
151 AC_CHECK_HEADER(windows.h)
152
153 # extra library and include directories
154 if test "x$ac_cv_header_windows_h" != "xyes" ; then
155     EXTRA_DIRS="${EXTRA_DIRS} /usr/local /usr/X11R6"
156
157     if test -d /opt/X11R6 ; then
158         EXTRA_DIRS="${EXTRA_DIRS} /opt/X11R6"
159     fi
160 else
161     if test  "x$is_cygwin" = "xyes" ; then
162         EXTRA_DIRS="${EXTRA_DIRS} /usr/local"
163     fi
164 fi
165
166 wi_EXTRA_DIRS(no, ${EXTRA_DIRS})
167
168 # Using AM_CONDITIONAL is a step out of the protected little 
169 # automake fold so it is potentially dangerous.  But, we are
170 # beginning to run into cases where the standard checks are not
171 # enough.  AM_CONDITIONALS are then referenced to conditionally
172 # build a Makefile.in from a Makefile.am which lets us define custom
173 # includes, compile alternative source files, etc.
174
175 # Check for external variables daylight and timezone.
176 AC_EXT_DAYLIGHT
177 if test "$have_daylight" = yes; then
178     AC_DEFINE([HAVE_DAYLIGHT], 1, [Define if system has daylight variable])
179 fi
180 # AM_CONDITIONAL(HAVE_DAYLIGHT, test "$have_daylight" = yes )
181
182 AC_EXT_TIMEZONE
183 if test "$have_timezone" = yes; then
184     AC_DEFINE([HAVE_TIMEZONE], 1, [Define if system has timezone variable])
185 fi
186 # AM_CONDITIONAL(HAVE_TIMEZONE, test "$have_timezone" = yes )
187
188 # Check for audio support
189 AC_MSG_CHECKING(for audio support)
190 audio_LIBS=""
191 if test -r /usr/include/soundcard.h \
192         -o -r /usr/include/linux/soundcard.h \
193         -o -r /usr/include/machine/soundcard.h \
194         -o -r /usr/include/audio.h \
195         -o "x$ac_cv_header_windows_h" = "xyes" \
196         -o "$HOSTTYPE" = "macintosh"; then
197
198     AC_DEFINE([ENABLE_AUDIO_SUPPORT], 1, [Define for audio support])
199     audio_LIBS="-lplibsl -lplibsm"
200     AC_MSG_RESULT(yes)
201     if test -r /usr/include/audio.h; then
202         audio_LIBS="$audio_LIBS -laudio"
203     fi
204
205     if test "x$ac_cv_header_windows_h" = "xyes"; then
206         audio_LIBS="$audio_LIBS -lwinmm"
207     fi
208
209     if test "$HOSTTYPE" = "macintosh"; then
210         audio_LIBS="$audio_LIBS -framework Carbon"
211     fi
212 else
213     AC_MSG_RESULT(no)
214 fi
215 AC_SUBST(audio_LIBS)
216
217 # Check for X11 (fancy)
218 if test "x$no_x" != "xyes"; then
219     AC_PATH_XTRA
220 fi
221
222 # Checks for libraries.
223
224 null_LIBS="$LIBS"
225
226 AC_CHECK_LIB(m, cos)
227
228 dnl MINGW requires libwsock32
229 if test  "x$is_mingw" = "xyes" ; then
230     LIBS="$LIBS -lws2_32"
231 fi
232
233 base_LIBS="$LIBS"
234
235 dnl Mesa >= 3.2 requires pthreads
236 AC_CHECK_LIB(pthread, pthread_exit)
237 AC_CHECK_LIB(socket, socket)
238
239 dnl Skip X library tests.
240 if test "x$no_x" != "xyes"; then
241     AC_CHECK_LIB(X11, XCreateWindow)
242     AC_CHECK_LIB(Xext, XShmCreateImage)
243     AC_CHECK_LIB(Xi, XGetExtensionVersion)
244     AC_CHECK_LIB(ICE, IceOpenConnection)
245     AC_CHECK_LIB(SM, SmcOpenConnection)
246     AC_CHECK_LIB(Xt, XtMalloc)
247     AC_CHECK_LIB(Xmu, XmuLookupStandardColormap)
248 fi
249
250 # check for OpenGL related libraries
251
252 if test "$HOSTTYPE" = "macintosh"; then
253     LIBS="$LIBS -framework OpenGL -framework GLUT -lobjc"
254 elif test "x$ac_cv_header_windows_h" != "xyes" ; then
255     # Reasonable stuff for non-windoze variants ... :-)
256
257     AC_CHECK_LIB(GLcore, glNewList)
258     if test "x$ac_cv_lib_GLcore_glNewList" = "xno" ; then
259         # if no GLcore, check for GL
260         AC_CHECK_LIB(GL, glNewList)
261         if test "x$ac_cv_lib_GL_glNewList" = "xno" ; then
262             # if no GL, check for MesaGL
263             AC_CHECK_LIB(MesaGL, glNewList)
264         fi
265     else
266         # if GLcore found, then also check for GL
267         AC_CHECK_LIB(GL, glXCreateContext)
268     fi
269
270     # check for xmesa.h and if found enable XMESA / FX
271     AC_CHECK_HEADER(GL/fxmesa.h)
272     if test "x$ac_cv_header_GL_fxmesa_h" = "xyes"; then
273         save_LIBS="$LIBS"
274         AC_CHECK_LIB(GL, XMesaSetFXmode)
275         if test "x$ac_cv_lib_GL_XMesaSetFXmode" = "xyes" ; then
276             AC_DEFINE([XMESA], 1, [Define for Mesa FX mode])
277             AC_DEFINE([FX], 1, [Define for Mesa FX mode])
278         else
279             AC_CHECK_LIB(MesaGL, XMesaSetFXmode)
280             if test "x$ac_cv_lib_MesaGL_XMesaSetFXmode" = "xyes" ; then
281                 AC_DEFINE([XMESA], 1, [Define for Mesa FX mode])
282                 AC_DEFINE([FX], 1, [Define for Mesa FX mode])
283             fi
284         fi
285         LIBS="$save_LIBS"
286     fi
287
288     AC_CHECK_LIB(GLU, gluLookAt)
289     if test "x$ac_cv_lib_GLU_gluLookAt" = "xno" ; then
290         # if no GLU, check for MesaGLU
291         AC_CHECK_LIB(MesaGLU, gluLookAt)
292     fi
293
294     # check for glut
295     AC_CHECK_LIB(glut, glutGetModifiers)
296
297     # test for glutGameModeString, but avoid adding glut a second time into
298     # the list of libraries
299     save_LIBS="$LIBS"
300     AC_CHECK_LIB(glut, glutGameModeString)
301     LIBS="$save_LIBS"
302 else
303     # Win32 is a little wierd because it has to try to handle the various
304     # winbloze-isms.  We'll just do this manually for now.
305
306     echo Win32 specific hacks...
307     AC_DEFINE([WIN32], 1, [Define if building on a Win32 platform])
308
309     # just define these to true and hope for the best
310     ac_cv_lib_glut_glutGetModifiers="yes"
311     ac_cv_lib_glut_glutGameModeString="yes"
312
313     if test "x$with_sgi_opengl" = "xyes" ; then
314         echo "Building with glut.dll, glu.dll, and opengl.dll"
315         WIN32_GLUT=glut
316         WIN32_GLU=glu
317         WIN32_OPENGL=opengl
318     else 
319         echo "Building with glut32.dll, glu32.dll, and opengl32.dll"
320         WIN32_GLUT=glut32
321         WIN32_GLU=glu32
322         WIN32_OPENGL=opengl32
323     fi
324
325     LIBS="$LIBS -l${WIN32_GLUT} -l${WIN32_GLU} -l${WIN32_OPENGL}"
326     LIBS="$LIBS -luser32 -lgdi32"
327     echo "Will link apps with $LIBS"
328 fi
329
330 if test "x$ac_cv_lib_glut_glutGetModifiers" = "xno"; then
331     echo 
332     echo "Unable to find the necessary OpenGL or GLUT libraries."
333     echo "See config.log for automated test details and results ..."
334     exit 1
335 fi
336
337 if test "x$ac_cv_lib_glut_glutGameModeString" = "xno"; then
338     echo
339     echo "Your version of glut doesn't support game mode."
340     echo "You need to install the latest version.  If your distribution doesn't"
341     echo "provide a newer version, you can get the latest source code from:"
342     echo
343     echo "    http://reality.sgi.com/opengl/glut3/glut3.html"
344     exit 1
345 fi
346
347 opengl_LIBS="$LIBS"
348 LIBS="$base_LIBS"
349
350 AC_SUBST(base_LIBS)
351 AC_SUBST(opengl_LIBS)
352
353 AM_CONDITIONAL(HAVE_XWINDOWS, test "x$ac_cv_lib_X11_XCreateWindow" = "xyes" )
354
355 # The following are C++ items that need to be tested for with the c++
356 # compiler
357
358 AC_LANG_PUSH(C++)
359
360 # Check for "plib" without which we cannot go on
361 AC_CHECK_HEADER(plib/ul.h)
362 if test "x$ac_cv_header_plib_ul_h" != "xyes"; then
363     echo
364     echo "You *must* have the plib library installed on your system to build"
365     echo "the FGFS simulator!"
366     echo
367     echo "Please see README.plib for more details."
368     echo
369     echo "configure aborted."
370     exit
371 fi
372
373 AC_MSG_CHECKING([for plib 1.6.0 or newer])
374 AC_TRY_RUN([
375 #include <plib/ul.h>
376
377 #define MIN_PLIB_VERSION 160
378
379 int main() {
380     int major, minor, micro;
381
382     if ( PLIB_VERSION < MIN_PLIB_VERSION ) {
383          return -1;
384     }
385
386     return 0;
387 }
388
389 ],
390   AC_MSG_RESULT(yes),
391   [AC_MSG_RESULT(wrong version);
392    AC_MSG_ERROR([Install plib 1.6.0 or later first...])],
393   AC_MSG_RESULT(yes)
394 )
395
396 # If we get here then plib is available, so force use of plib joystick lib
397 AC_DEFINE([ENABLE_PLIB_JOYSTICK], 1, [Define to enable plib joystick support])
398
399 # Do we have a new CVS plib version with jsJoystick::getName?
400 echo -n "Testing for Plib joystick getName support: "
401 AC_EGREP_HEADER( getName, plib/js.h,
402                  plib_js_has_getname=yes, plib_js_has_getname=no )
403 echo $plib_js_has_getname
404 if test $plib_js_has_getname = 'yes'; then
405     AC_DEFINE([FG_PLIB_JOYSTICK_GETNAME], 1,
406               [Define to enable plib joystick name support])
407 fi
408
409 # Check for the presence of SimGear
410 AC_CHECK_HEADER(simgear/version.h)
411 if test "x$ac_cv_header_simgear_version_h" != "xyes"; then
412     echo
413     echo "You *must* have the SimGear support library installed on your system"
414     echo "to build the FGFS simulator!"
415     echo
416     echo "Please see README.SimGear for more details."
417     echo
418     echo "configure aborted."
419     exit
420 fi
421
422 AC_MSG_CHECKING([for simgear 0.0.19 or newer])
423 AC_TRY_RUN([
424 #include <stdio.h>
425
426 #include <simgear/version.h>
427
428 #define STRINGIFY(X) XSTRINGIFY(X)
429 #define XSTRINGIFY(X) #X
430
431 #define MIN_MAJOR 0
432 #define MIN_MINOR 0
433 #define MIN_MICRO 19
434
435 int main() {
436     int major, minor, micro;
437
438     printf("%d.%d.%d or greater... ", MIN_MAJOR, MIN_MINOR, MIN_MICRO);
439
440     sscanf( STRINGIFY(SIMGEAR_VERSION), "%d.%d.%d", &major, &minor, &micro );
441
442     if ( major < MIN_MAJOR ) {
443          return -1;
444     } else if ( major == MIN_MAJOR && minor < MIN_MINOR ) {
445          return -1;
446     } else if ( major == MIN_MAJOR && minor == MIN_MINOR && micro < MIN_MICRO ){
447          return -1;
448     }
449
450     return 0;
451 }
452
453 ],
454   AC_MSG_RESULT(yes),
455   [AC_MSG_RESULT(wrong version);
456    AC_MSG_ERROR([Install latest simgear first...])],
457   AC_MSG_RESULT(yes)
458 )
459
460 # Check for MetaKit
461 AC_CHECK_HEADER(mk4.h)
462 if test "x$ac_cv_header_mk4_h" != "xyes"; then
463     echo
464     echo "MetaKit library not found."
465     echo
466     echo "If your OS does not provide an installable package for MetaKit"
467     echo "you will have to compile and install it first yourself.  A copy"
468     echo "of metakit-$(VERSION).tar.gz is included with SimGear.  You will"
469     echo "have to untar this source code, and follow it's included instructions"
470     echo "to compile and install on your system."
471     echo
472     echo "configure aborted."
473     exit
474 fi
475
476 AC_MSG_CHECKING([for metakit 2.4.3 or newer])
477 saved_LIBS="$LIBS"
478 LIBS="$saved_LIBS -lmk4"
479 AC_TRY_RUN([
480 #include <mk4.h>
481
482 #define MIN_MK4_VERSION 243
483
484 int main() {
485     int major, minor, micro;
486
487     if ( d4_MetaKitLibraryVersion < MIN_MK4_VERSION ) {
488          return -1;
489     }
490
491     return 0;
492 }
493
494 ],
495   AC_MSG_RESULT(yes),
496   [AC_MSG_RESULT(wrong version);
497    AC_MSG_ERROR([Install metakit 2.4.3 or later first...])],
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/JSBSim/Makefile \
585         src/FDM/JSBSim/filtersjb/Makefile \
586         src/FDM/LaRCsim/Makefile \
587         src/FDM/UIUCModel/Makefile \
588         src/FDM/YASim/Makefile \
589         src/FDM/Makefile \
590         src/GUI/Makefile \
591         src/Input/Makefile \
592         src/Main/Makefile \
593         src/Main/runfgfs \
594         src/Main/runfgfs.bat \
595         src/Model/Makefile \
596         src/Navaids/Makefile \
597         src/Network/Makefile \
598         src/NetworkOLK/Makefile \
599         src/Objects/Makefile \
600         src/Scenery/Makefile \
601         src/Sound/Makefile \
602         src/Time/Makefile \
603         src/WeatherCM/Makefile \
604         tests/Makefile \
605 ])
606 AC_OUTPUT
607
608 AC_OUTPUT_COMMANDS([chmod 755 src/Main/runfgfs])
609
610 echo ""
611 echo "Configure Summary"
612 echo "================="
613
614 echo "Prefix: $prefix"
615
616 if test "x$with_logging" != "x"; then
617     echo "Debug messages: $with_logging"
618 else
619     echo "Debug messages: yes"
620 fi
621
622 echo -n "Automake version: ($AUTO_MAKE_VERSION) "
623 automake --version | head -1
624
625 echo "New plib joystick name support: $plib_js_has_getname"
626
627 if test "x$with_weathercm" != "x"; then
628     echo "WeatherCM instead of FGEnvironment: $with_weathercm"
629 else
630     echo "Using FGEnvironment"
631 fi
632
633 if test "x$with_threads" = "xyes"; then
634     echo "threads: yes"
635 else
636     echo "threads: no"
637 fi