/[jscoverage]/trunk/js/configure
ViewVC logotype

Annotation of /trunk/js/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 511 - (hide annotations)
Mon Jan 11 05:17:18 2010 UTC (10 years, 9 months ago) by siliconforks
File size: 399960 byte(s)
Regenerate "configure".

1 siliconforks 460 #! /bin/sh
2    
3 siliconforks 507 if test `uname -s | grep -c MINGW 2>/dev/null` != "0"; then
4     msyshost=1
5     fi
6    
7 siliconforks 460 # Guess values for system-dependent variables and create Makefiles.
8     # Generated automatically using autoconf version 2.13
9     # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
10     #
11     # This configure script is free software; the Free Software Foundation
12     # gives unlimited permission to copy, distribute and modify it.
13    
14     # Defaults:
15     ac_help=
16     ac_default_prefix=/usr/local
17     # Any additions from configure.in:
18     ac_help="$ac_help
19     --with-dist-dir=DIR Use DIR as 'dist' staging area. DIR may be
20     relative to the top of SpiderMonkey build tree,
21     or absolute."
22     ac_help="$ac_help
23     --disable-compile-environment
24     Disable compiler/library checks."
25     ac_help="$ac_help
26 siliconforks 507 --with-symbian-sdk=SYMBIAN_SDK_DIR
27     The path to the Symbian SDK"
28 siliconforks 460 ac_help="$ac_help
29     --enable-macos-target=VER (default=10.4)
30     Set the minimum MacOS version needed at runtime"
31     ac_help="$ac_help
32     --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only)"
33     ac_help="$ac_help
34     --with-x use the X Window System"
35     ac_help="$ac_help
36     --disable-os2-high-mem Disable high-memory support on OS/2"
37     ac_help="$ac_help
38 siliconforks 507 --disable-windows-mobile-components
39     Disable Windows Mobile specific components from CE build"
40     ac_help="$ac_help
41 siliconforks 460 --disable-jit Disable JIT support"
42     ac_help="$ac_help
43     --enable-dtrace build with dtrace support if available (default=no)"
44     ac_help="$ac_help
45     --with-pthreads Force use of system pthread library with NSPR "
46     ac_help="$ac_help
47     --with-system-nspr Use an NSPR that is already built and installed.
48     Use the 'nspr-config' script in the current path,
49     or look for the script in the directories given with
50 siliconforks 507 --with-nspr-exec-prefix or --with-nspr-prefix.
51     (Those flags are only checked if you specify
52     --with-system-nspr.)"
53 siliconforks 460 ac_help="$ac_help
54     --with-nspr-cflags=FLAGS Pass FLAGS to CC when building code that uses NSPR.
55     Use this when there's no accurate nspr-config
56     script available. This is the case when building
57     SpiderMonkey as part of the Mozilla tree: the
58     top-level configure script computes NSPR flags
59     that accomodate the quirks of that environment."
60     ac_help="$ac_help
61     --with-nspr-libs=LIBS Pass LIBS to LD when linking code that uses NSPR.
62     See --with-nspr-cflags for more details."
63     ac_help="$ac_help
64     --with-nspr-prefix=PFX Prefix where NSPR is installed"
65     ac_help="$ac_help
66     --with-nspr-exec-prefix=PFX
67     Exec prefix where NSPR is installed"
68     ac_help="$ac_help
69     --with-arm-kuser Use kuser helpers (Linux/ARM only -- requires kernel 2.6.13 or later)"
70     ac_help="$ac_help
71     --enable-ui-locale=ab-CD
72     Select the user interface locale (default: en-US)"
73     ac_help="$ac_help
74     --disable-tests Do not build test libraries & programs"
75     ac_help="$ac_help
76     --enable-debug[=DBG] Enable building with developer debug info
77     (Using compiler flags DBG)"
78     ac_help="$ac_help
79     --disable-optimize Disable compiler optimization
80     --enable-optimize=[OPT] Specify compiler optimization flags [OPT=-O]"
81     ac_help="$ac_help
82     --enable-debug-modules Enable/disable debug info for specific modules"
83     ac_help="$ac_help
84     --enable-debugger-info-modules
85     Enable/disable debugger info for specific modules"
86     ac_help="$ac_help
87     --enable-boehm Enable the Boehm Garbage Collector"
88     ac_help="$ac_help
89     --enable-narcissus Build with Narcissus code enabled"
90     ac_help="$ac_help
91     --enable-trace-malloc Enable malloc tracing"
92     ac_help="$ac_help
93     --enable-jemalloc Replace memory allocator with jemalloc"
94     ac_help="$ac_help
95     --enable-wrap-malloc Wrap malloc calls (gnu linker only)"
96     ac_help="$ac_help
97     --with-wrap-malloc=DIR Location of malloc wrapper library"
98     ac_help="$ac_help
99 siliconforks 507 --enable-tracevis Enable TraceVis tracing tool (default=no)"
100     ac_help="$ac_help
101 siliconforks 460 --enable-valgrind Enable Valgrind integration hooks (default=no)"
102     ac_help="$ac_help
103     --enable-efence Link with Electric Fence"
104     ac_help="$ac_help
105     --enable-jprof Enable jprof profiling tool (needs mozilla/tools/jprof)"
106     ac_help="$ac_help
107     --enable-shark Enable shark remote profiling (needs CHUD framework)"
108     ac_help="$ac_help
109     --enable-callgrind Enable callgrind profiling"
110     ac_help="$ac_help
111     --enable-vtune Enable vtune profiling"
112     ac_help="$ac_help
113 siliconforks 507 --enable-gczeal Enable zealous GCing"
114     ac_help="$ac_help
115 siliconforks 460 --with-static-checking=path/to/gcc_dehydra.so
116     Enable static checking of code using GCC-dehydra"
117     ac_help="$ac_help
118     --enable-strip Enable stripping of libs & executables "
119     ac_help="$ac_help
120     --enable-install-strip Enable stripping of libs & executables when packaging "
121     ac_help="$ac_help
122     --enable-old-abi-compat-wrappers
123     Support old GCC ABI symbols to ease the pain
124     of the linux compiler change"
125     ac_help="$ac_help
126     --enable-timeline Enable timeline services "
127     ac_help="$ac_help
128     --enable-eazel-profiler-support
129     Enable Corel/Eazel profiler support"
130     ac_help="$ac_help
131     --enable-profile-modules
132     Enable/disable profiling for specific modules"
133     ac_help="$ac_help
134     --enable-insure Enable insure++ instrumentation (linux only)"
135     ac_help="$ac_help
136     --with-insure-dirs=DIRS
137     Dirs to instrument with insure "
138     ac_help="$ac_help
139     --with-insure-exclude-dirs=DIRS
140     Dirs to not instrument with insure "
141     ac_help="$ac_help
142     --enable-quantify Enable Quantify support (Windows only) "
143     ac_help="$ac_help
144     --enable-xterm-updates Update XTERM titles with current command."
145     ac_help="$ac_help
146     --enable-long-long-warning
147     Warn about use of non-ANSI long long type"
148     ac_help="$ac_help
149     --disable-profile-guided-optimization
150     Don't build with PGO even if called via make profiledbuild"
151     ac_help="$ac_help
152     --disable-pedantic Issue all warnings demanded by strict ANSI C "
153     ac_help="$ac_help
154     --enable-cpp-rtti Enable C++ RTTI "
155     ac_help="$ac_help
156     --enable-cpp-exceptions Enable C++ exceptions "
157     ac_help="$ac_help
158     --disable-auto-deps Do not automatically generate dependency info"
159     ac_help="$ac_help
160     --disable-md Do not use compiler-based dependencies "
161     ac_help="$ac_help
162     --enable-static Enable building of internal static libs"
163     ac_help="$ac_help
164 siliconforks 507 --enable-readline Link js shell to system readline library"
165 siliconforks 460 ac_help="$ac_help
166     --with-sync-build-files=DIR
167     Check that files in 'config' and 'build' match
168     their originals in 'DIR/config' and 'DIR/build'.
169     This helps keep the SpiderMonkey build machinery
170     in sync with Mozilla's, on which it is based."
171     ac_help="$ac_help
172     --enable-threadsafe Enable support for multiple threads."
173    
174     # Initialize some variables set by options.
175     # The variables have the same names as the options, with
176     # dashes changed to underlines.
177     build=NONE
178     cache_file=./config.cache
179     exec_prefix=NONE
180     host=NONE
181     no_create=
182     nonopt=NONE
183     no_recursion=
184     prefix=NONE
185     program_prefix=NONE
186     program_suffix=NONE
187     program_transform_name=s,x,x,
188     silent=
189     site=
190     srcdir=
191     target=NONE
192     verbose=
193     x_includes=NONE
194     x_libraries=NONE
195     bindir='${exec_prefix}/bin'
196     sbindir='${exec_prefix}/sbin'
197     libexecdir='${exec_prefix}/libexec'
198     datadir='${prefix}/share'
199     sysconfdir='${prefix}/etc'
200     sharedstatedir='${prefix}/com'
201     localstatedir='${prefix}/var'
202     libdir='${exec_prefix}/lib'
203     includedir='${prefix}/include'
204     oldincludedir='/usr/include'
205     infodir='${prefix}/info'
206     mandir='${prefix}/man'
207    
208     # Initialize some other variables.
209     subdirs=
210     MFLAGS= MAKEFLAGS=
211     SHELL=${CONFIG_SHELL-/bin/sh}
212     # Maximum number of lines to put in a shell here document.
213     ac_max_here_lines=12
214    
215     ac_prev=
216     for ac_option
217     do
218    
219     # If the previous option needs an argument, assign it.
220     if test -n "$ac_prev"; then
221     eval "$ac_prev=\$ac_option"
222     ac_prev=
223     continue
224     fi
225    
226     case "$ac_option" in
227     -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
228     *) ac_optarg= ;;
229     esac
230    
231     # Accept the important Cygnus configure options, so we can diagnose typos.
232    
233     case "$ac_option" in
234    
235     -bindir | --bindir | --bindi | --bind | --bin | --bi)
236     ac_prev=bindir ;;
237     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
238     bindir="$ac_optarg" ;;
239    
240     -build | --build | --buil | --bui | --bu)
241     ac_prev=build ;;
242     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
243     build="$ac_optarg" ;;
244    
245     -cache-file | --cache-file | --cache-fil | --cache-fi \
246     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
247     ac_prev=cache_file ;;
248     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
249     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
250     cache_file="$ac_optarg" ;;
251    
252     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
253     ac_prev=datadir ;;
254     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
255     | --da=*)
256     datadir="$ac_optarg" ;;
257    
258     -disable-* | --disable-*)
259     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
260     # Reject names that are not valid shell variable names.
261     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
262     { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
263     fi
264     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
265     eval "enable_${ac_feature}=no" ;;
266    
267     -enable-* | --enable-*)
268     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
269     # Reject names that are not valid shell variable names.
270     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
271     { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
272     fi
273     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
274     case "$ac_option" in
275     *=*) ;;
276     *) ac_optarg=yes ;;
277     esac
278     eval "enable_${ac_feature}='$ac_optarg'" ;;
279    
280     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
281     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
282     | --exec | --exe | --ex)
283     ac_prev=exec_prefix ;;
284     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
285     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
286     | --exec=* | --exe=* | --ex=*)
287     exec_prefix="$ac_optarg" ;;
288    
289     -gas | --gas | --ga | --g)
290     # Obsolete; use --with-gas.
291     with_gas=yes ;;
292    
293     -help | --help | --hel | --he)
294     # Omit some internal or obsolete options to make the list less imposing.
295     # This message is too long to be a string in the A/UX 3.1 sh.
296     cat << EOF
297     Usage: configure [options] [host]
298     Options: [defaults in brackets after descriptions]
299     Configuration:
300     --cache-file=FILE cache test results in FILE
301     --help print this message
302     --no-create do not create output files
303     --quiet, --silent do not print \`checking...' messages
304     --version print the version of autoconf that created configure
305     Directory and file names:
306     --prefix=PREFIX install architecture-independent files in PREFIX
307     [$ac_default_prefix]
308     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
309     [same as prefix]
310     --bindir=DIR user executables in DIR [EPREFIX/bin]
311     --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
312     --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
313     --datadir=DIR read-only architecture-independent data in DIR
314     [PREFIX/share]
315     --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
316     --sharedstatedir=DIR modifiable architecture-independent data in DIR
317     [PREFIX/com]
318     --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
319     --libdir=DIR object code libraries in DIR [EPREFIX/lib]
320     --includedir=DIR C header files in DIR [PREFIX/include]
321     --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
322     --infodir=DIR info documentation in DIR [PREFIX/info]
323     --mandir=DIR man documentation in DIR [PREFIX/man]
324     --srcdir=DIR find the sources in DIR [configure dir or ..]
325     --program-prefix=PREFIX prepend PREFIX to installed program names
326     --program-suffix=SUFFIX append SUFFIX to installed program names
327     --program-transform-name=PROGRAM
328     run sed PROGRAM on installed program names
329     EOF
330     cat << EOF
331     Host type:
332     --build=BUILD configure for building on BUILD [BUILD=HOST]
333     --host=HOST configure for HOST [guessed]
334     --target=TARGET configure for TARGET [TARGET=HOST]
335     Features and packages:
336     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
337     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
338     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
339     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
340     --x-includes=DIR X include files are in DIR
341     --x-libraries=DIR X library files are in DIR
342     EOF
343     if test -n "$ac_help"; then
344     echo "--enable and --with options recognized:$ac_help"
345     fi
346     exit 0 ;;
347    
348     -host | --host | --hos | --ho)
349     ac_prev=host ;;
350     -host=* | --host=* | --hos=* | --ho=*)
351     host="$ac_optarg" ;;
352    
353     -includedir | --includedir | --includedi | --included | --include \
354     | --includ | --inclu | --incl | --inc)
355     ac_prev=includedir ;;
356     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
357     | --includ=* | --inclu=* | --incl=* | --inc=*)
358     includedir="$ac_optarg" ;;
359    
360     -infodir | --infodir | --infodi | --infod | --info | --inf)
361     ac_prev=infodir ;;
362     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
363     infodir="$ac_optarg" ;;
364    
365     -libdir | --libdir | --libdi | --libd)
366     ac_prev=libdir ;;
367     -libdir=* | --libdir=* | --libdi=* | --libd=*)
368     libdir="$ac_optarg" ;;
369    
370     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
371     | --libexe | --libex | --libe)
372     ac_prev=libexecdir ;;
373     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
374     | --libexe=* | --libex=* | --libe=*)
375     libexecdir="$ac_optarg" ;;
376    
377     -localstatedir | --localstatedir | --localstatedi | --localstated \
378     | --localstate | --localstat | --localsta | --localst \
379     | --locals | --local | --loca | --loc | --lo)
380     ac_prev=localstatedir ;;
381     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
382     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
383     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
384     localstatedir="$ac_optarg" ;;
385    
386     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
387     ac_prev=mandir ;;
388     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
389     mandir="$ac_optarg" ;;
390    
391     -nfp | --nfp | --nf)
392     # Obsolete; use --without-fp.
393     with_fp=no ;;
394    
395     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
396     | --no-cr | --no-c)
397     no_create=yes ;;
398    
399     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
400     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
401     no_recursion=yes ;;
402    
403     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
404     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
405     | --oldin | --oldi | --old | --ol | --o)
406     ac_prev=oldincludedir ;;
407     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
408     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
409     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
410     oldincludedir="$ac_optarg" ;;
411    
412     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
413     ac_prev=prefix ;;
414     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
415     prefix="$ac_optarg" ;;
416    
417     -program-prefix | --program-prefix | --program-prefi | --program-pref \
418     | --program-pre | --program-pr | --program-p)
419     ac_prev=program_prefix ;;
420     -program-prefix=* | --program-prefix=* | --program-prefi=* \
421     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
422     program_prefix="$ac_optarg" ;;
423    
424     -program-suffix | --program-suffix | --program-suffi | --program-suff \
425     | --program-suf | --program-su | --program-s)
426     ac_prev=program_suffix ;;
427     -program-suffix=* | --program-suffix=* | --program-suffi=* \
428     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
429     program_suffix="$ac_optarg" ;;
430    
431     -program-transform-name | --program-transform-name \
432     | --program-transform-nam | --program-transform-na \
433     | --program-transform-n | --program-transform- \
434     | --program-transform | --program-transfor \
435     | --program-transfo | --program-transf \
436     | --program-trans | --program-tran \
437     | --progr-tra | --program-tr | --program-t)
438     ac_prev=program_transform_name ;;
439     -program-transform-name=* | --program-transform-name=* \
440     | --program-transform-nam=* | --program-transform-na=* \
441     | --program-transform-n=* | --program-transform-=* \
442     | --program-transform=* | --program-transfor=* \
443     | --program-transfo=* | --program-transf=* \
444     | --program-trans=* | --program-tran=* \
445     | --progr-tra=* | --program-tr=* | --program-t=*)
446     program_transform_name="$ac_optarg" ;;
447    
448     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
449     | -silent | --silent | --silen | --sile | --sil)
450     silent=yes ;;
451    
452     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
453     ac_prev=sbindir ;;
454     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
455     | --sbi=* | --sb=*)
456     sbindir="$ac_optarg" ;;
457    
458     -sharedstatedir | --sharedstatedir | --sharedstatedi \
459     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
460     | --sharedst | --shareds | --shared | --share | --shar \
461     | --sha | --sh)
462     ac_prev=sharedstatedir ;;
463     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
464     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
465     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
466     | --sha=* | --sh=*)
467     sharedstatedir="$ac_optarg" ;;
468    
469     -site | --site | --sit)
470     ac_prev=site ;;
471     -site=* | --site=* | --sit=*)
472     site="$ac_optarg" ;;
473    
474     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
475     ac_prev=srcdir ;;
476     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
477     srcdir="$ac_optarg" ;;
478    
479     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
480     | --syscon | --sysco | --sysc | --sys | --sy)
481     ac_prev=sysconfdir ;;
482     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
483     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
484     sysconfdir="$ac_optarg" ;;
485    
486     -target | --target | --targe | --targ | --tar | --ta | --t)
487     ac_prev=target ;;
488     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
489     target="$ac_optarg" ;;
490    
491     -v | -verbose | --verbose | --verbos | --verbo | --verb)
492     verbose=yes ;;
493    
494     -version | --version | --versio | --versi | --vers)
495     echo "configure generated by autoconf version 2.13"
496     exit 0 ;;
497    
498     -with-* | --with-*)
499     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
500     # Reject names that are not valid shell variable names.
501     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
502     { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
503     fi
504     ac_package=`echo $ac_package| sed 's/-/_/g'`
505     case "$ac_option" in
506     *=*) ;;
507     *) ac_optarg=yes ;;
508     esac
509     eval "with_${ac_package}='$ac_optarg'" ;;
510    
511     -without-* | --without-*)
512     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
513     # Reject names that are not valid shell variable names.
514     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
515     { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
516     fi
517     ac_package=`echo $ac_package| sed 's/-/_/g'`
518     eval "with_${ac_package}=no" ;;
519    
520     --x)
521     # Obsolete; use --with-x.
522     with_x=yes ;;
523    
524     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
525     | --x-incl | --x-inc | --x-in | --x-i)
526     ac_prev=x_includes ;;
527     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
528     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
529     x_includes="$ac_optarg" ;;
530    
531     -x-libraries | --x-libraries | --x-librarie | --x-librari \
532     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
533     ac_prev=x_libraries ;;
534     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
535     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
536     x_libraries="$ac_optarg" ;;
537    
538     -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
539     ;;
540    
541     *)
542     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
543     echo "configure: warning: $ac_option: invalid host type" 1>&2
544     fi
545     if test "x$nonopt" != xNONE; then
546     { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
547     fi
548     nonopt="$ac_option"
549     ;;
550    
551     esac
552     done
553    
554     if test -n "$ac_prev"; then
555     { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
556     fi
557    
558     trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
559    
560     # File descriptor usage:
561     # 0 standard input
562     # 1 file creation
563     # 2 errors and warnings
564     # 3 some systems may open it to /dev/tty
565     # 4 used on the Kubota Titan
566     # 6 checking for... messages and results
567     # 5 compiler messages saved in config.log
568     if test "$silent" = yes; then
569     exec 6>/dev/null
570     else
571     exec 6>&1
572     fi
573     exec 5>./config.log
574    
575     echo "\
576     This file contains any messages produced by compilers while
577     running configure, to aid debugging if configure makes a mistake.
578     " 1>&5
579    
580     # Strip out --no-create and --no-recursion so they do not pile up.
581     # Also quote any args containing shell metacharacters.
582     ac_configure_args=
583     for ac_arg
584     do
585     case "$ac_arg" in
586     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
587     | --no-cr | --no-c) ;;
588     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
589     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
590     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
591     ac_configure_args="$ac_configure_args '$ac_arg'" ;;
592     *) ac_configure_args="$ac_configure_args $ac_arg" ;;
593     esac
594     done
595    
596     # NLS nuisances.
597     # Only set these to C if already set. These must not be set unconditionally
598     # because not all systems understand e.g. LANG=C (notably SCO).
599     # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
600     # Non-C LC_CTYPE values break the ctype check.
601     if test "${LANG+set}" = set; then LANG=C; export LANG; fi
602     if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
603     if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
604     if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
605    
606     # confdefs.h avoids OS command line length limits that DEFS can exceed.
607     rm -rf conftest* confdefs.h
608     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
609     echo > confdefs.h
610    
611     # A filename unique to this package, relative to the directory that
612     # configure is in, which we can look for to find out if srcdir is correct.
613     ac_unique_file=jsapi.h
614    
615     # Find the source files, if location was not specified.
616     if test -z "$srcdir"; then
617     ac_srcdir_defaulted=yes
618     # Try the directory containing this script, then its parent.
619     ac_prog=$0
620     ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
621     test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
622     srcdir=$ac_confdir
623     if test ! -r $srcdir/$ac_unique_file; then
624     srcdir=..
625     fi
626     else
627     ac_srcdir_defaulted=no
628     fi
629     if test ! -r $srcdir/$ac_unique_file; then
630     if test "$ac_srcdir_defaulted" = yes; then
631     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
632     else
633     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
634     fi
635     fi
636     srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
637    
638     # Prefer explicitly selected file to automatically selected ones.
639     if test -z "$CONFIG_SITE"; then
640     if test "x$prefix" != xNONE; then
641     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
642     else
643     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
644     fi
645     fi
646     for ac_site_file in $CONFIG_SITE; do
647     if test -r "$ac_site_file"; then
648     echo "loading site script $ac_site_file"
649     . "$ac_site_file"
650     fi
651     done
652    
653     if test -r "$cache_file"; then
654     echo "loading cache $cache_file"
655     . $cache_file
656     else
657     echo "creating cache $cache_file"
658     > $cache_file
659     fi
660    
661     ac_ext=c
662     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
663     ac_cpp='$CPP $CPPFLAGS'
664     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
665     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
666     cross_compiling=$ac_cv_prog_cc_cross
667    
668     ac_exeext=
669     ac_objext=o
670     if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
671     # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
672     if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
673     ac_n= ac_c='
674     ' ac_t=' '
675     else
676     ac_n=-n ac_c= ac_t=
677     fi
678     else
679     ac_n= ac_c='\c' ac_t=
680     fi
681    
682    
683     ac_aux_dir=
684     for ac_dir in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf; do
685     if test -f $ac_dir/install-sh; then
686     ac_aux_dir=$ac_dir
687     ac_install_sh="$ac_aux_dir/install-sh -c"
688     break
689     elif test -f $ac_dir/install.sh; then
690     ac_aux_dir=$ac_dir
691     ac_install_sh="$ac_aux_dir/install.sh -c"
692     break
693     fi
694     done
695     if test -z "$ac_aux_dir"; then
696     { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf" 1>&2; exit 1; }
697     fi
698     ac_config_guess=$ac_aux_dir/config.guess
699     ac_config_sub=$ac_aux_dir/config.sub
700     ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
701    
702    
703    
704     # Do some error checking and defaulting for the host and target type.
705     # The inputs are:
706     # configure --host=HOST --target=TARGET --build=BUILD NONOPT
707     #
708     # The rules are:
709     # 1. You are not allowed to specify --host, --target, and nonopt at the
710     # same time.
711     # 2. Host defaults to nonopt.
712     # 3. If nonopt is not specified, then host defaults to the current host,
713     # as determined by config.guess.
714     # 4. Target and build default to nonopt.
715     # 5. If nonopt is not specified, then target and build default to host.
716    
717     # The aliases save the names the user supplied, while $host etc.
718     # will get canonicalized.
719     case $host---$target---$nonopt in
720     NONE---*---* | *---NONE---* | *---*---NONE) ;;
721     *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
722     esac
723    
724    
725     # Make sure we can run config.sub.
726     if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
727     else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
728     fi
729    
730     echo $ac_n "checking host system type""... $ac_c" 1>&6
731 siliconforks 507 echo "configure:732: checking host system type" >&5
732 siliconforks 460
733     host_alias=$host
734     case "$host_alias" in
735     NONE)
736     case $nonopt in
737     NONE)
738     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
739     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
740     fi ;;
741     *) host_alias=$nonopt ;;
742     esac ;;
743     esac
744    
745     host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
746     host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747     host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748     host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
749     echo "$ac_t""$host" 1>&6
750    
751     echo $ac_n "checking target system type""... $ac_c" 1>&6
752 siliconforks 507 echo "configure:753: checking target system type" >&5
753 siliconforks 460
754     target_alias=$target
755     case "$target_alias" in
756     NONE)
757     case $nonopt in
758     NONE) target_alias=$host_alias ;;
759     *) target_alias=$nonopt ;;
760     esac ;;
761     esac
762    
763     target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
764     target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
765     target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
766     target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
767     echo "$ac_t""$target" 1>&6
768    
769     echo $ac_n "checking build system type""... $ac_c" 1>&6
770 siliconforks 507 echo "configure:771: checking build system type" >&5
771 siliconforks 460
772     build_alias=$build
773     case "$build_alias" in
774     NONE)
775     case $nonopt in
776     NONE) build_alias=$host_alias ;;
777     *) build_alias=$nonopt ;;
778     esac ;;
779     esac
780    
781     build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
782     build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
783     build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
784     build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
785     echo "$ac_t""$build" 1>&6
786    
787     test "$host_alias" != "$target_alias" &&
788     test "$program_prefix$program_suffix$program_transform_name" = \
789     NONENONEs,x,x, &&
790     program_prefix=${target_alias}-
791    
792     TARGET_CPU="${target_cpu}"
793     TARGET_VENDOR="${target_vendor}"
794     TARGET_OS="${target_os}"
795    
796     CFLAGS="${CFLAGS=}"
797     CPPFLAGS="${CPPFLAGS=}"
798     CXXFLAGS="${CXXFLAGS=}"
799     LDFLAGS="${LDFLAGS=}"
800     HOST_CFLAGS="${HOST_CFLAGS=}"
801     HOST_CXXFLAGS="${HOST_CXXFLAGS=}"
802     HOST_LDFLAGS="${HOST_LDFLAGS=}"
803    
804     _SUBDIR_CC="$CC"
805     _SUBDIR_CXX="$CXX"
806     _SUBDIR_CFLAGS="$CFLAGS"
807     _SUBDIR_CPPFLAGS="$CPPFLAGS"
808     _SUBDIR_CXXFLAGS="$CXXFLAGS"
809     _SUBDIR_LDFLAGS="$LDFLAGS"
810     _SUBDIR_HOST_CC="$HOST_CC"
811     _SUBDIR_HOST_CFLAGS="$HOST_CFLAGS"
812     _SUBDIR_HOST_CXXFLAGS="$HOST_CXXFLAGS"
813     _SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS"
814     _SUBDIR_CONFIG_ARGS="$ac_configure_args"
815    
816     NSPR_VERSION=4
817    
818     PERL_VERSION=5.006
819     WINDRES_VERSION=2.14.90
820     W32API_VERSION=3.8
821    
822     MSMANIFEST_TOOL=
823    
824     MISSING_X=
825 siliconforks 511 for ac_prog in mawk gawk nawk awk
826 siliconforks 460 do
827     # Extract the first word of "$ac_prog", so it can be a program name with args.
828     set dummy $ac_prog; ac_word=$2
829     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
830 siliconforks 507 echo "configure:831: checking for $ac_word" >&5
831 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
832     echo $ac_n "(cached) $ac_c" 1>&6
833     else
834     if test -n "$AWK"; then
835     ac_cv_prog_AWK="$AWK" # Let the user override the test.
836     else
837     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
838     ac_dummy="$PATH"
839     for ac_dir in $ac_dummy; do
840     test -z "$ac_dir" && ac_dir=.
841     if test -f $ac_dir/$ac_word; then
842     ac_cv_prog_AWK="$ac_prog"
843     break
844     fi
845     done
846     IFS="$ac_save_ifs"
847     fi
848     fi
849     AWK="$ac_cv_prog_AWK"
850     if test -n "$AWK"; then
851     echo "$ac_t""$AWK" 1>&6
852     else
853     echo "$ac_t""no" 1>&6
854     fi
855    
856     test -n "$AWK" && break
857     done
858    
859    
860     USE_PTHREADS=
861     _PTHREAD_LDFLAGS=""
862    
863     _topsrcdir=`cd \`dirname $0\`; pwd`
864     _objdir=`pwd`
865    
866     if test "$_topsrcdir" != "$_objdir"
867     then
868     # Check for a couple representative files in the source tree
869     _conflict_files=
870     for file in $_topsrcdir/Makefile $_topsrcdir/config/autoconf.mk; do
871     if test -f $file; then
872     _conflict_files="$_conflict_files $file"
873     fi
874     done
875     if test "$_conflict_files"; then
876     echo "***"
877     echo "* Your source tree contains these files:"
878     for file in $_conflict_files; do
879     echo "* $file"
880     done
881     cat 1>&2 <<-EOF
882     * This indicates that you previously built in the source tree.
883     * A source tree build can confuse the separate objdir build.
884     *
885     * To clean up the source tree:
886     * 1. cd $_topsrcdir
887     * 2. gmake distclean
888     ***
889     EOF
890     exit 1
891     break
892     fi
893     fi
894     MOZ_BUILD_ROOT=`pwd`
895    
896    
897     # Check whether --with-dist-dir or --without-dist-dir was given.
898     if test "${with_dist_dir+set}" = set; then
899     withval="$with_dist_dir"
900     TOP_DIST=$withval
901     else
902     TOP_DIST=dist
903     fi
904    
905    
906    
907     if test -z "$CROSS_COMPILE"; then
908     case "$target" in
909     *-cygwin*|*-mingw*|*-msvc*|*-mks*)
910     if test -z "$CC"; then CC=cl; fi
911     if test -z "$CXX"; then CXX=cl; fi
912     if test -z "$CPP"; then CPP="cl -E -nologo"; fi
913     if test -z "$CXXCPP"; then CXXCPP="cl -TP -E -nologo"; ac_cv_prog_CXXCPP="$CXXCPP"; fi
914     if test -z "$LD"; then LD=link; fi
915     if test -z "$AS"; then AS=ml; fi
916     ;;
917     esac
918     fi
919    
920     COMPILE_ENVIRONMENT=1
921     # Check whether --enable-compile-environment or --disable-compile-environment was given.
922     if test "${enable_compile_environment+set}" = set; then
923     enableval="$enable_compile_environment"
924     if test "$enableval" = "yes"; then
925     COMPILE_ENVIRONMENT=1
926     elif test "$enableval" = "no"; then
927     COMPILE_ENVIRONMENT=
928     else
929     { echo "configure: error: Option, compile-environment, does not take an argument ($enableval)." 1>&2; exit 1; }
930     fi
931     fi
932    
933    
934    
935     if test "$COMPILE_ENVIRONMENT"; then
936    
937     if test "$target" != "$host"; then
938     echo "cross compiling from $host to $target"
939    
940     _SAVE_CC="$CC"
941     _SAVE_CFLAGS="$CFLAGS"
942     _SAVE_LDFLAGS="$LDFLAGS"
943    
944     echo $ac_n "checking for host c compiler""... $ac_c" 1>&6
945 siliconforks 507 echo "configure:946: checking for host c compiler" >&5
946 siliconforks 460 for ac_prog in $HOST_CC gcc cc /usr/ucb/cc cl icc
947     do
948     # Extract the first word of "$ac_prog", so it can be a program name with args.
949     set dummy $ac_prog; ac_word=$2
950     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
951 siliconforks 507 echo "configure:952: checking for $ac_word" >&5
952 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
953     echo $ac_n "(cached) $ac_c" 1>&6
954     else
955     if test -n "$HOST_CC"; then
956     ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test.
957     else
958     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
959     ac_dummy="$PATH"
960     for ac_dir in $ac_dummy; do
961     test -z "$ac_dir" && ac_dir=.
962     if test -f $ac_dir/$ac_word; then
963     ac_cv_prog_HOST_CC="$ac_prog"
964     break
965     fi
966     done
967     IFS="$ac_save_ifs"
968     fi
969     fi
970     HOST_CC="$ac_cv_prog_HOST_CC"
971     if test -n "$HOST_CC"; then
972     echo "$ac_t""$HOST_CC" 1>&6
973     else
974     echo "$ac_t""no" 1>&6
975     fi
976    
977     test -n "$HOST_CC" && break
978     done
979     test -n "$HOST_CC" || HOST_CC=""""
980    
981     if test -z "$HOST_CC"; then
982     { echo "configure: error: no acceptable c compiler found in \$PATH" 1>&2; exit 1; }
983     fi
984     echo "$ac_t""$HOST_CC" 1>&6
985     echo $ac_n "checking for host c++ compiler""... $ac_c" 1>&6
986 siliconforks 507 echo "configure:987: checking for host c++ compiler" >&5
987 siliconforks 460 for ac_prog in $HOST_CXX $CCC c++ g++ gcc CC cxx cc++ cl icc
988     do
989     # Extract the first word of "$ac_prog", so it can be a program name with args.
990     set dummy $ac_prog; ac_word=$2
991     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
992 siliconforks 507 echo "configure:993: checking for $ac_word" >&5
993 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_HOST_CXX'+set}'`\" = set"; then
994     echo $ac_n "(cached) $ac_c" 1>&6
995     else
996     if test -n "$HOST_CXX"; then
997     ac_cv_prog_HOST_CXX="$HOST_CXX" # Let the user override the test.
998     else
999     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1000     ac_dummy="$PATH"
1001     for ac_dir in $ac_dummy; do
1002     test -z "$ac_dir" && ac_dir=.
1003     if test -f $ac_dir/$ac_word; then
1004     ac_cv_prog_HOST_CXX="$ac_prog"
1005     break
1006     fi
1007     done
1008     IFS="$ac_save_ifs"
1009     fi
1010     fi
1011     HOST_CXX="$ac_cv_prog_HOST_CXX"
1012     if test -n "$HOST_CXX"; then
1013     echo "$ac_t""$HOST_CXX" 1>&6
1014     else
1015     echo "$ac_t""no" 1>&6
1016     fi
1017    
1018     test -n "$HOST_CXX" && break
1019     done
1020     test -n "$HOST_CXX" || HOST_CXX=""""
1021    
1022     if test -z "$HOST_CXX"; then
1023     { echo "configure: error: no acceptable c++ compiler found in \$PATH" 1>&2; exit 1; }
1024     fi
1025     echo "$ac_t""$HOST_CXX" 1>&6
1026    
1027     if test -z "$HOST_CFLAGS"; then
1028     HOST_CFLAGS="$CFLAGS"
1029     fi
1030     if test -z "$HOST_CXXFLAGS"; then
1031     HOST_CXXFLAGS="$CXXFLAGS"
1032     fi
1033     if test -z "$HOST_LDFLAGS"; then
1034     HOST_LDFLAGS="$LDFLAGS"
1035     fi
1036     for ac_prog in $HOST_RANLIB ranlib
1037     do
1038     # Extract the first word of "$ac_prog", so it can be a program name with args.
1039     set dummy $ac_prog; ac_word=$2
1040     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1041 siliconforks 507 echo "configure:1042: checking for $ac_word" >&5
1042 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_HOST_RANLIB'+set}'`\" = set"; then
1043     echo $ac_n "(cached) $ac_c" 1>&6
1044     else
1045     if test -n "$HOST_RANLIB"; then
1046     ac_cv_prog_HOST_RANLIB="$HOST_RANLIB" # Let the user override the test.
1047     else
1048     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1049     ac_dummy=":"
1050     for ac_dir in $ac_dummy; do
1051     test -z "$ac_dir" && ac_dir=.
1052     if test -f $ac_dir/$ac_word; then
1053     ac_cv_prog_HOST_RANLIB="$ac_prog"
1054     break
1055     fi
1056     done
1057     IFS="$ac_save_ifs"
1058     fi
1059     fi
1060     HOST_RANLIB="$ac_cv_prog_HOST_RANLIB"
1061     if test -n "$HOST_RANLIB"; then
1062     echo "$ac_t""$HOST_RANLIB" 1>&6
1063     else
1064     echo "$ac_t""no" 1>&6
1065     fi
1066    
1067     test -n "$HOST_RANLIB" && break
1068     done
1069     test -n "$HOST_RANLIB" || HOST_RANLIB="ranlib"
1070    
1071     for ac_prog in $HOST_AR ar
1072     do
1073     # Extract the first word of "$ac_prog", so it can be a program name with args.
1074     set dummy $ac_prog; ac_word=$2
1075     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 siliconforks 507 echo "configure:1077: checking for $ac_word" >&5
1077 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_HOST_AR'+set}'`\" = set"; then
1078     echo $ac_n "(cached) $ac_c" 1>&6
1079     else
1080     if test -n "$HOST_AR"; then
1081     ac_cv_prog_HOST_AR="$HOST_AR" # Let the user override the test.
1082     else
1083     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1084     ac_dummy=":"
1085     for ac_dir in $ac_dummy; do
1086     test -z "$ac_dir" && ac_dir=.
1087     if test -f $ac_dir/$ac_word; then
1088     ac_cv_prog_HOST_AR="$ac_prog"
1089     break
1090     fi
1091     done
1092     IFS="$ac_save_ifs"
1093     fi
1094     fi
1095     HOST_AR="$ac_cv_prog_HOST_AR"
1096     if test -n "$HOST_AR"; then
1097     echo "$ac_t""$HOST_AR" 1>&6
1098     else
1099     echo "$ac_t""no" 1>&6
1100     fi
1101    
1102     test -n "$HOST_AR" && break
1103     done
1104     test -n "$HOST_AR" || HOST_AR="ar"
1105    
1106     CC="$HOST_CC"
1107     CFLAGS="$HOST_CFLAGS"
1108     LDFLAGS="$HOST_LDFLAGS"
1109    
1110     echo $ac_n "checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
1111 siliconforks 507 echo "configure:1112: checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
1112 siliconforks 460 cat > conftest.$ac_ext <<EOF
1113 siliconforks 507 #line 1114 "configure"
1114 siliconforks 460 #include "confdefs.h"
1115    
1116     int main() {
1117     return(0);
1118     ; return 0; }
1119     EOF
1120 siliconforks 507 if { (eval echo configure:1121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1121 siliconforks 460 rm -rf conftest*
1122     ac_cv_prog_hostcc_works=1 echo "$ac_t""yes" 1>&6
1123     else
1124     echo "configure: failed program was:" >&5
1125     cat conftest.$ac_ext >&5
1126     rm -rf conftest*
1127     { echo "configure: error: installation or configuration problem: host compiler $HOST_CC cannot create executables." 1>&2; exit 1; }
1128     fi
1129     rm -f conftest*
1130    
1131     CC="$HOST_CXX"
1132     CFLAGS="$HOST_CXXFLAGS"
1133    
1134     echo $ac_n "checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
1135 siliconforks 507 echo "configure:1136: checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works" >&5
1136 siliconforks 460 cat > conftest.$ac_ext <<EOF
1137 siliconforks 507 #line 1138 "configure"
1138 siliconforks 460 #include "confdefs.h"
1139    
1140     int main() {
1141     return(0);
1142     ; return 0; }
1143     EOF
1144 siliconforks 507 if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1145 siliconforks 460 rm -rf conftest*
1146     ac_cv_prog_hostcxx_works=1 echo "$ac_t""yes" 1>&6
1147     else
1148     echo "configure: failed program was:" >&5
1149     cat conftest.$ac_ext >&5
1150     rm -rf conftest*
1151     { echo "configure: error: installation or configuration problem: host compiler $HOST_CXX cannot create executables." 1>&2; exit 1; }
1152     fi
1153     rm -f conftest*
1154    
1155     CC=$_SAVE_CC
1156     CFLAGS=$_SAVE_CFLAGS
1157     LDFLAGS=$_SAVE_LDFLAGS
1158    
1159     case "$build:$target" in
1160     powerpc-apple-darwin8*:i?86-apple-darwin*)
1161     _SAVE_CFLAGS=$CFLAGS
1162     _SAVE_CXXFLAGS=$CXXLAGS
1163     CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS"
1164     CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS"
1165     ;;
1166     esac
1167    
1168 siliconforks 507 case "$target" in
1169     *symbian*)
1170     # Check whether --with-symbian-sdk or --without-symbian-sdk was given.
1171     if test "${with_symbian_sdk+set}" = set; then
1172     withval="$with_symbian_sdk"
1173     SYMBIAN_SDK_DIR=$withval
1174     fi
1175    
1176    
1177     OS_EXE_CFLAGS="$OS_EXE_CFLAGS -D__EXE__"
1178     CFLAGS="-MD -nostdinc"
1179     SYMBIAN_SYS_INCLUDE="-I$SYMBIAN_SDK_DIR/Epoc32/include -I$SYMBIAN_SDK_DIR/Epoc32/include/variant -I$SYMBIAN_SDK_DIR/Epoc32/include/stdapis"
1180    
1181     case "$target" in
1182     *-symbianelf)
1183     OS_TARGET=GCCE
1184     CC=arm-none-symbianelf-gcc.exe
1185     CXX=arm-none-symbianelf-g++.exe
1186     LD=arm-none-symbianelf-ld.exe
1187     AR=arm-none-symbianelf-ar.exe
1188     CPP=arm-none-symbianelf-cpp.exe
1189     CFLAGS="$CFLAGS -c -Wall -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -msoft-float"
1190     CXXFLAGS="$CFLAGS -Wno-ctor-dtor-privacy"
1191     GCCE_INCLUDE="-include $SYMBIAN_SDK_DIR/EPOC32/INCLUDE/GCCE/GCCE.h -D__PRODUCT_INCLUDE__=$SYMBIAN_SDK_DIR/Epoc32/include/variant/Symbian_OS_v9.2.hrh"
1192     CFLAGS="$CFLAGS ${GCCE_INCLUDE} -x c"
1193     CXXFLAGS="$CXXFLAGS ${GCCE_INCLUDE} -x c++"
1194     CPPFLAGS="$CPPFLAGS ${SYMBIAN_SYS_INCLUDE}"
1195     ;;
1196     *-symbianwinscw)
1197     OS_TARGET=WINSCW
1198     ;;
1199     esac
1200     ;;
1201     esac
1202    
1203 siliconforks 460 for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc"
1204     do
1205     # Extract the first word of "$ac_prog", so it can be a program name with args.
1206     set dummy $ac_prog; ac_word=$2
1207     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1208 siliconforks 507 echo "configure:1209: checking for $ac_word" >&5
1209 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1210     echo $ac_n "(cached) $ac_c" 1>&6
1211     else
1212     if test -n "$CC"; then
1213     ac_cv_prog_CC="$CC" # Let the user override the test.
1214     else
1215     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1216     ac_dummy="$PATH"
1217     for ac_dir in $ac_dummy; do
1218     test -z "$ac_dir" && ac_dir=.
1219     if test -f $ac_dir/$ac_word; then
1220     ac_cv_prog_CC="$ac_prog"
1221     break
1222     fi
1223     done
1224     IFS="$ac_save_ifs"
1225     fi
1226     fi
1227     CC="$ac_cv_prog_CC"
1228     if test -n "$CC"; then
1229     echo "$ac_t""$CC" 1>&6
1230     else
1231     echo "$ac_t""no" 1>&6
1232     fi
1233    
1234     test -n "$CC" && break
1235     done
1236     test -n "$CC" || CC=":"
1237    
1238     unset ac_cv_prog_CC
1239     # Extract the first word of "gcc", so it can be a program name with args.
1240     set dummy gcc; ac_word=$2
1241     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1242 siliconforks 507 echo "configure:1243: checking for $ac_word" >&5
1243 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1244     echo $ac_n "(cached) $ac_c" 1>&6
1245     else
1246     if test -n "$CC"; then
1247     ac_cv_prog_CC="$CC" # Let the user override the test.
1248     else
1249     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1250     ac_dummy="$PATH"
1251     for ac_dir in $ac_dummy; do
1252     test -z "$ac_dir" && ac_dir=.
1253     if test -f $ac_dir/$ac_word; then
1254     ac_cv_prog_CC="gcc"
1255     break
1256     fi
1257     done
1258     IFS="$ac_save_ifs"
1259     fi
1260     fi
1261     CC="$ac_cv_prog_CC"
1262     if test -n "$CC"; then
1263     echo "$ac_t""$CC" 1>&6
1264     else
1265     echo "$ac_t""no" 1>&6
1266     fi
1267    
1268     if test -z "$CC"; then
1269     # Extract the first word of "cc", so it can be a program name with args.
1270     set dummy cc; ac_word=$2
1271     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1272 siliconforks 507 echo "configure:1273: checking for $ac_word" >&5
1273 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1274     echo $ac_n "(cached) $ac_c" 1>&6
1275     else
1276     if test -n "$CC"; then
1277     ac_cv_prog_CC="$CC" # Let the user override the test.
1278     else
1279     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1280     ac_prog_rejected=no
1281     ac_dummy="$PATH"
1282     for ac_dir in $ac_dummy; do
1283     test -z "$ac_dir" && ac_dir=.
1284     if test -f $ac_dir/$ac_word; then
1285     if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1286     ac_prog_rejected=yes
1287     continue
1288     fi
1289     ac_cv_prog_CC="cc"
1290     break
1291     fi
1292     done
1293     IFS="$ac_save_ifs"
1294     if test $ac_prog_rejected = yes; then
1295     # We found a bogon in the path, so make sure we never use it.
1296     set dummy $ac_cv_prog_CC
1297     shift
1298     if test $# -gt 0; then
1299     # We chose a different compiler from the bogus one.
1300     # However, it has the same basename, so the bogon will be chosen
1301     # first if we set CC to just the basename; use the full file name.
1302     shift
1303     set dummy "$ac_dir/$ac_word" "$@"
1304     shift
1305     ac_cv_prog_CC="$@"
1306     fi
1307     fi
1308     fi
1309     fi
1310     CC="$ac_cv_prog_CC"
1311     if test -n "$CC"; then
1312     echo "$ac_t""$CC" 1>&6
1313     else
1314     echo "$ac_t""no" 1>&6
1315     fi
1316    
1317     if test -z "$CC"; then
1318     case "`uname -s`" in
1319     *win32* | *WIN32*)
1320     # Extract the first word of "cl", so it can be a program name with args.
1321     set dummy cl; ac_word=$2
1322     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1323 siliconforks 507 echo "configure:1324: checking for $ac_word" >&5
1324 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1325     echo $ac_n "(cached) $ac_c" 1>&6
1326     else
1327     if test -n "$CC"; then
1328     ac_cv_prog_CC="$CC" # Let the user override the test.
1329     else
1330     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1331     ac_dummy="$PATH"
1332     for ac_dir in $ac_dummy; do
1333     test -z "$ac_dir" && ac_dir=.
1334     if test -f $ac_dir/$ac_word; then
1335     ac_cv_prog_CC="cl"
1336     break
1337     fi
1338     done
1339     IFS="$ac_save_ifs"
1340     fi
1341     fi
1342     CC="$ac_cv_prog_CC"
1343     if test -n "$CC"; then
1344     echo "$ac_t""$CC" 1>&6
1345     else
1346     echo "$ac_t""no" 1>&6
1347     fi
1348     ;;
1349     esac
1350     fi
1351     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1352     fi
1353    
1354     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1355 siliconforks 507 echo "configure:1356: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1356 siliconforks 460
1357     ac_ext=c
1358     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1359     ac_cpp='$CPP $CPPFLAGS'
1360     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1361     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1362     cross_compiling=$ac_cv_prog_cc_cross
1363    
1364     cat > conftest.$ac_ext << EOF
1365    
1366 siliconforks 507 #line 1367 "configure"
1367 siliconforks 460 #include "confdefs.h"
1368    
1369     main(){return(0);}
1370     EOF
1371 siliconforks 507 if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1372 siliconforks 460 ac_cv_prog_cc_works=yes
1373     # If we can't run a trivial program, we are probably using a cross compiler.
1374     if (./conftest; exit) 2>/dev/null; then
1375     ac_cv_prog_cc_cross=no
1376     else
1377     ac_cv_prog_cc_cross=yes
1378     fi
1379     else
1380     echo "configure: failed program was:" >&5
1381     cat conftest.$ac_ext >&5
1382     ac_cv_prog_cc_works=no
1383     fi
1384     rm -fr conftest*
1385     ac_ext=c
1386     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1387     ac_cpp='$CPP $CPPFLAGS'
1388     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1389     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1390     cross_compiling=$ac_cv_prog_cc_cross
1391    
1392     echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1393     if test $ac_cv_prog_cc_works = no; then
1394     { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1395     fi
1396     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1397 siliconforks 507 echo "configure:1398: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1398 siliconforks 460 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1399     cross_compiling=$ac_cv_prog_cc_cross
1400    
1401     echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1402 siliconforks 507 echo "configure:1403: checking whether we are using GNU C" >&5
1403 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1404     echo $ac_n "(cached) $ac_c" 1>&6
1405     else
1406     cat > conftest.c <<EOF
1407     #ifdef __GNUC__
1408     yes;
1409     #endif
1410     EOF
1411 siliconforks 507 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1412 siliconforks 460 ac_cv_prog_gcc=yes
1413     else
1414     ac_cv_prog_gcc=no
1415     fi
1416     fi
1417    
1418     echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1419    
1420     if test $ac_cv_prog_gcc = yes; then
1421     GCC=yes
1422     else
1423     GCC=
1424     fi
1425    
1426     ac_test_CFLAGS="${CFLAGS+set}"
1427     ac_save_CFLAGS="$CFLAGS"
1428     CFLAGS=
1429     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1430 siliconforks 507 echo "configure:1431: checking whether ${CC-cc} accepts -g" >&5
1431 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1432     echo $ac_n "(cached) $ac_c" 1>&6
1433     else
1434     echo 'void f(){}' > conftest.c
1435     if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1436     ac_cv_prog_cc_g=yes
1437     else
1438     ac_cv_prog_cc_g=no
1439     fi
1440     rm -f conftest*
1441    
1442     fi
1443    
1444     echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1445     if test "$ac_test_CFLAGS" = set; then
1446     CFLAGS="$ac_save_CFLAGS"
1447     elif test $ac_cv_prog_cc_g = yes; then
1448     if test "$GCC" = yes; then
1449     CFLAGS="-g -O2"
1450     else
1451     CFLAGS="-g"
1452     fi
1453     else
1454     if test "$GCC" = yes; then
1455     CFLAGS="-O2"
1456     else
1457     CFLAGS=
1458     fi
1459     fi
1460    
1461     for ac_prog in $CXX "${target_alias}-g++" "${target}-g++"
1462     do
1463     # Extract the first word of "$ac_prog", so it can be a program name with args.
1464     set dummy $ac_prog; ac_word=$2
1465     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1466 siliconforks 507 echo "configure:1467: checking for $ac_word" >&5
1467 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1468     echo $ac_n "(cached) $ac_c" 1>&6
1469     else
1470     if test -n "$CXX"; then
1471     ac_cv_prog_CXX="$CXX" # Let the user override the test.
1472     else
1473     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1474     ac_dummy="$PATH"
1475     for ac_dir in $ac_dummy; do
1476     test -z "$ac_dir" && ac_dir=.
1477     if test -f $ac_dir/$ac_word; then
1478     ac_cv_prog_CXX="$ac_prog"
1479     break
1480     fi
1481     done
1482     IFS="$ac_save_ifs"
1483     fi
1484     fi
1485     CXX="$ac_cv_prog_CXX"
1486     if test -n "$CXX"; then
1487     echo "$ac_t""$CXX" 1>&6
1488     else
1489     echo "$ac_t""no" 1>&6
1490     fi
1491    
1492     test -n "$CXX" && break
1493     done
1494     test -n "$CXX" || CXX=":"
1495    
1496     unset ac_cv_prog_CXX
1497     for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1498     do
1499     # Extract the first word of "$ac_prog", so it can be a program name with args.
1500     set dummy $ac_prog; ac_word=$2
1501     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1502 siliconforks 507 echo "configure:1503: checking for $ac_word" >&5
1503 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1504     echo $ac_n "(cached) $ac_c" 1>&6
1505     else
1506     if test -n "$CXX"; then
1507     ac_cv_prog_CXX="$CXX" # Let the user override the test.
1508     else
1509     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1510     ac_dummy="$PATH"
1511     for ac_dir in $ac_dummy; do
1512     test -z "$ac_dir" && ac_dir=.
1513     if test -f $ac_dir/$ac_word; then
1514     ac_cv_prog_CXX="$ac_prog"
1515     break
1516     fi
1517     done
1518     IFS="$ac_save_ifs"
1519     fi
1520     fi
1521     CXX="$ac_cv_prog_CXX"
1522     if test -n "$CXX"; then
1523     echo "$ac_t""$CXX" 1>&6
1524     else
1525     echo "$ac_t""no" 1>&6
1526     fi
1527    
1528     test -n "$CXX" && break
1529     done
1530     test -n "$CXX" || CXX="gcc"
1531    
1532    
1533     echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1534 siliconforks 507 echo "configure:1535: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1535 siliconforks 460
1536     ac_ext=C
1537     # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1538     ac_cpp='$CXXCPP $CPPFLAGS'
1539     ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1540     ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1541     cross_compiling=$ac_cv_prog_cxx_cross
1542    
1543     cat > conftest.$ac_ext << EOF
1544    
1545 siliconforks 507 #line 1546 "configure"
1546 siliconforks 460 #include "confdefs.h"
1547    
1548     int main(){return(0);}
1549     EOF
1550 siliconforks 507 if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1551 siliconforks 460 ac_cv_prog_cxx_works=yes
1552     # If we can't run a trivial program, we are probably using a cross compiler.
1553     if (./conftest; exit) 2>/dev/null; then
1554     ac_cv_prog_cxx_cross=no
1555     else
1556     ac_cv_prog_cxx_cross=yes
1557     fi
1558     else
1559     echo "configure: failed program was:" >&5
1560     cat conftest.$ac_ext >&5
1561     ac_cv_prog_cxx_works=no
1562     fi
1563     rm -fr conftest*
1564     ac_ext=c
1565     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1566     ac_cpp='$CPP $CPPFLAGS'
1567     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1568     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1569     cross_compiling=$ac_cv_prog_cc_cross
1570    
1571     echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1572     if test $ac_cv_prog_cxx_works = no; then
1573     { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1574     fi
1575     echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1576 siliconforks 507 echo "configure:1577: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1577 siliconforks 460 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1578     cross_compiling=$ac_cv_prog_cxx_cross
1579    
1580     echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1581 siliconforks 507 echo "configure:1582: checking whether we are using GNU C++" >&5
1582 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1583     echo $ac_n "(cached) $ac_c" 1>&6
1584     else
1585     cat > conftest.C <<EOF
1586     #ifdef __GNUC__
1587     yes;
1588     #endif
1589     EOF
1590 siliconforks 507 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1591 siliconforks 460 ac_cv_prog_gxx=yes
1592     else
1593     ac_cv_prog_gxx=no
1594     fi
1595     fi
1596    
1597     echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1598    
1599     if test $ac_cv_prog_gxx = yes; then
1600     GXX=yes
1601     else
1602     GXX=
1603     fi
1604    
1605     ac_test_CXXFLAGS="${CXXFLAGS+set}"
1606     ac_save_CXXFLAGS="$CXXFLAGS"
1607     CXXFLAGS=
1608     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1609 siliconforks 507 echo "configure:1610: checking whether ${CXX-g++} accepts -g" >&5
1610 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1611     echo $ac_n "(cached) $ac_c" 1>&6
1612     else
1613     echo 'void f(){}' > conftest.cc
1614     if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1615     ac_cv_prog_cxx_g=yes
1616     else
1617     ac_cv_prog_cxx_g=no
1618     fi
1619     rm -f conftest*
1620    
1621     fi
1622    
1623     echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1624     if test "$ac_test_CXXFLAGS" = set; then
1625     CXXFLAGS="$ac_save_CXXFLAGS"
1626     elif test $ac_cv_prog_cxx_g = yes; then
1627     if test "$GXX" = yes; then
1628     CXXFLAGS="-g -O2"
1629     else
1630     CXXFLAGS="-g"
1631     fi
1632     else
1633     if test "$GXX" = yes; then
1634     CXXFLAGS="-O2"
1635     else
1636     CXXFLAGS=
1637     fi
1638     fi
1639    
1640    
1641     case "$build:$target" in
1642     powerpc-apple-darwin8*:i?86-apple-darwin*)
1643     CFLAGS=$_SAVE_CFLAGS
1644     CXXFLAGS=$_SAVE_CXXFLAGS
1645     ;;
1646     esac
1647    
1648     for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib"
1649     do
1650     # Extract the first word of "$ac_prog", so it can be a program name with args.
1651     set dummy $ac_prog; ac_word=$2
1652     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1653 siliconforks 511 echo "configure:1654: checking for $ac_word" >&5
1654 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1655     echo $ac_n "(cached) $ac_c" 1>&6
1656     else
1657     if test -n "$RANLIB"; then
1658     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1659     else
1660     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1661     ac_dummy="$PATH"
1662     for ac_dir in $ac_dummy; do
1663     test -z "$ac_dir" && ac_dir=.
1664     if test -f $ac_dir/$ac_word; then
1665     ac_cv_prog_RANLIB="$ac_prog"
1666     break
1667     fi
1668     done
1669     IFS="$ac_save_ifs"
1670     fi
1671     fi
1672     RANLIB="$ac_cv_prog_RANLIB"
1673     if test -n "$RANLIB"; then
1674     echo "$ac_t""$RANLIB" 1>&6
1675     else
1676     echo "$ac_t""no" 1>&6
1677     fi
1678    
1679     test -n "$RANLIB" && break
1680     done
1681     test -n "$RANLIB" || RANLIB=":"
1682    
1683     for ac_prog in $AR "${target_alias}-ar" "${target}-ar"
1684     do
1685     # Extract the first word of "$ac_prog", so it can be a program name with args.
1686     set dummy $ac_prog; ac_word=$2
1687     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1688 siliconforks 511 echo "configure:1689: checking for $ac_word" >&5
1689 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1690     echo $ac_n "(cached) $ac_c" 1>&6
1691     else
1692     if test -n "$AR"; then
1693     ac_cv_prog_AR="$AR" # Let the user override the test.
1694     else
1695     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1696     ac_dummy="$PATH"
1697     for ac_dir in $ac_dummy; do
1698     test -z "$ac_dir" && ac_dir=.
1699     if test -f $ac_dir/$ac_word; then
1700     ac_cv_prog_AR="$ac_prog"
1701     break
1702     fi
1703     done
1704     IFS="$ac_save_ifs"
1705     fi
1706     fi
1707     AR="$ac_cv_prog_AR"
1708     if test -n "$AR"; then
1709     echo "$ac_t""$AR" 1>&6
1710     else
1711     echo "$ac_t""no" 1>&6
1712     fi
1713    
1714     test -n "$AR" && break
1715     done
1716     test -n "$AR" || AR=":"
1717    
1718 siliconforks 507 for ac_prog in $AS "${target_alias}-as" "${target}-as"
1719 siliconforks 460 do
1720     # Extract the first word of "$ac_prog", so it can be a program name with args.
1721     set dummy $ac_prog; ac_word=$2
1722     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1723 siliconforks 511 echo "configure:1724: checking for $ac_word" >&5
1724 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
1725     echo $ac_n "(cached) $ac_c" 1>&6
1726     else
1727     case "$AS" in
1728     /*)
1729     ac_cv_path_AS="$AS" # Let the user override the test with a path.
1730     ;;
1731     ?:/*)
1732     ac_cv_path_AS="$AS" # Let the user override the test with a dos path.
1733     ;;
1734     *)
1735     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1736     ac_dummy="$PATH"
1737     for ac_dir in $ac_dummy; do
1738     test -z "$ac_dir" && ac_dir=.
1739     if test -f $ac_dir/$ac_word; then
1740     ac_cv_path_AS="$ac_dir/$ac_word"
1741     break
1742     fi
1743     done
1744     IFS="$ac_save_ifs"
1745     ;;
1746     esac
1747     fi
1748     AS="$ac_cv_path_AS"
1749     if test -n "$AS"; then
1750     echo "$ac_t""$AS" 1>&6
1751     else
1752     echo "$ac_t""no" 1>&6
1753     fi
1754    
1755     test -n "$AS" && break
1756     done
1757     test -n "$AS" || AS=":"
1758    
1759 siliconforks 507 if test "$msyshost"; then
1760     case "$AS" in
1761     /*)
1762     tmp_DIRNAME=`dirname "$AS"`
1763     tmp_BASENAME=`basename "$AS"`
1764     tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
1765     AS="$tmp_PWD/$tmp_BASENAME"
1766     if test -e "$AS.exe"; then
1767     AS="$AS.exe"
1768     fi
1769     esac
1770     fi
1771    
1772 siliconforks 460 for ac_prog in $LD "${target_alias}-ld" "${target}-ld"
1773     do
1774     # Extract the first word of "$ac_prog", so it can be a program name with args.
1775     set dummy $ac_prog; ac_word=$2
1776     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1777 siliconforks 511 echo "configure:1778: checking for $ac_word" >&5
1778 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1779     echo $ac_n "(cached) $ac_c" 1>&6
1780     else
1781     if test -n "$LD"; then
1782     ac_cv_prog_LD="$LD" # Let the user override the test.
1783     else
1784     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1785     ac_dummy="$PATH"
1786     for ac_dir in $ac_dummy; do
1787     test -z "$ac_dir" && ac_dir=.
1788     if test -f $ac_dir/$ac_word; then
1789     ac_cv_prog_LD="$ac_prog"
1790     break
1791     fi
1792     done
1793     IFS="$ac_save_ifs"
1794     fi
1795     fi
1796     LD="$ac_cv_prog_LD"
1797     if test -n "$LD"; then
1798     echo "$ac_t""$LD" 1>&6
1799     else
1800     echo "$ac_t""no" 1>&6
1801     fi
1802    
1803     test -n "$LD" && break
1804     done
1805     test -n "$LD" || LD=":"
1806    
1807     for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip"
1808     do
1809     # Extract the first word of "$ac_prog", so it can be a program name with args.
1810     set dummy $ac_prog; ac_word=$2
1811     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1812 siliconforks 511 echo "configure:1813: checking for $ac_word" >&5
1813 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1814     echo $ac_n "(cached) $ac_c" 1>&6
1815     else
1816     if test -n "$STRIP"; then
1817     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1818     else
1819     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1820     ac_dummy="$PATH"
1821     for ac_dir in $ac_dummy; do
1822     test -z "$ac_dir" && ac_dir=.
1823     if test -f $ac_dir/$ac_word; then
1824     ac_cv_prog_STRIP="$ac_prog"
1825     break
1826     fi
1827     done
1828     IFS="$ac_save_ifs"
1829     fi
1830     fi
1831     STRIP="$ac_cv_prog_STRIP"
1832     if test -n "$STRIP"; then
1833     echo "$ac_t""$STRIP" 1>&6
1834     else
1835     echo "$ac_t""no" 1>&6
1836     fi
1837    
1838     test -n "$STRIP" && break
1839     done
1840     test -n "$STRIP" || STRIP=":"
1841    
1842     for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres"
1843     do
1844     # Extract the first word of "$ac_prog", so it can be a program name with args.
1845     set dummy $ac_prog; ac_word=$2
1846     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1847 siliconforks 511 echo "configure:1848: checking for $ac_word" >&5
1848 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
1849     echo $ac_n "(cached) $ac_c" 1>&6
1850     else
1851     if test -n "$WINDRES"; then
1852     ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
1853     else
1854     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1855     ac_dummy="$PATH"
1856     for ac_dir in $ac_dummy; do
1857     test -z "$ac_dir" && ac_dir=.
1858     if test -f $ac_dir/$ac_word; then
1859     ac_cv_prog_WINDRES="$ac_prog"
1860     break
1861     fi
1862     done
1863     IFS="$ac_save_ifs"
1864     fi
1865     fi
1866     WINDRES="$ac_cv_prog_WINDRES"
1867     if test -n "$WINDRES"; then
1868     echo "$ac_t""$WINDRES" 1>&6
1869     else
1870     echo "$ac_t""no" 1>&6
1871     fi
1872    
1873     test -n "$WINDRES" && break
1874     done
1875     test -n "$WINDRES" || WINDRES=":"
1876    
1877     cat >> confdefs.h <<\EOF
1878     #define CROSS_COMPILE 1
1879     EOF
1880    
1881    
1882     cross_compiling=yes
1883     else
1884     # Extract the first word of "gcc", so it can be a program name with args.
1885     set dummy gcc; ac_word=$2
1886     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1887 siliconforks 511 echo "configure:1888: checking for $ac_word" >&5
1888 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1889     echo $ac_n "(cached) $ac_c" 1>&6
1890     else
1891     if test -n "$CC"; then
1892     ac_cv_prog_CC="$CC" # Let the user override the test.
1893     else
1894     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1895     ac_dummy="$PATH"
1896     for ac_dir in $ac_dummy; do
1897     test -z "$ac_dir" && ac_dir=.
1898     if test -f $ac_dir/$ac_word; then
1899     ac_cv_prog_CC="gcc"
1900     break
1901     fi
1902     done
1903     IFS="$ac_save_ifs"
1904     fi
1905     fi
1906     CC="$ac_cv_prog_CC"
1907     if test -n "$CC"; then
1908     echo "$ac_t""$CC" 1>&6
1909     else
1910     echo "$ac_t""no" 1>&6
1911     fi
1912    
1913     if test -z "$CC"; then
1914     # Extract the first word of "cc", so it can be a program name with args.
1915     set dummy cc; ac_word=$2
1916     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1917 siliconforks 511 echo "configure:1918: checking for $ac_word" >&5
1918 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1919     echo $ac_n "(cached) $ac_c" 1>&6
1920     else
1921     if test -n "$CC"; then
1922     ac_cv_prog_CC="$CC" # Let the user override the test.
1923     else
1924     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1925     ac_prog_rejected=no
1926     ac_dummy="$PATH"
1927     for ac_dir in $ac_dummy; do
1928     test -z "$ac_dir" && ac_dir=.
1929     if test -f $ac_dir/$ac_word; then
1930     if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1931     ac_prog_rejected=yes
1932     continue
1933     fi
1934     ac_cv_prog_CC="cc"
1935     break
1936     fi
1937     done
1938     IFS="$ac_save_ifs"
1939     if test $ac_prog_rejected = yes; then
1940     # We found a bogon in the path, so make sure we never use it.
1941     set dummy $ac_cv_prog_CC
1942     shift
1943     if test $# -gt 0; then
1944     # We chose a different compiler from the bogus one.
1945     # However, it has the same basename, so the bogon will be chosen
1946     # first if we set CC to just the basename; use the full file name.
1947     shift
1948     set dummy "$ac_dir/$ac_word" "$@"
1949     shift
1950     ac_cv_prog_CC="$@"
1951     fi
1952     fi
1953     fi
1954     fi
1955     CC="$ac_cv_prog_CC"
1956     if test -n "$CC"; then
1957     echo "$ac_t""$CC" 1>&6
1958     else
1959     echo "$ac_t""no" 1>&6
1960     fi
1961    
1962     if test -z "$CC"; then
1963     case "`uname -s`" in
1964     *win32* | *WIN32*)
1965     # Extract the first word of "cl", so it can be a program name with args.
1966     set dummy cl; ac_word=$2
1967     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1968 siliconforks 511 echo "configure:1969: checking for $ac_word" >&5
1969 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1970     echo $ac_n "(cached) $ac_c" 1>&6
1971     else
1972     if test -n "$CC"; then
1973     ac_cv_prog_CC="$CC" # Let the user override the test.
1974     else
1975     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1976     ac_dummy="$PATH"
1977     for ac_dir in $ac_dummy; do
1978     test -z "$ac_dir" && ac_dir=.
1979     if test -f $ac_dir/$ac_word; then
1980     ac_cv_prog_CC="cl"
1981     break
1982     fi
1983     done
1984     IFS="$ac_save_ifs"
1985     fi
1986     fi
1987     CC="$ac_cv_prog_CC"
1988     if test -n "$CC"; then
1989     echo "$ac_t""$CC" 1>&6
1990     else
1991     echo "$ac_t""no" 1>&6
1992     fi
1993     ;;
1994     esac
1995     fi
1996     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1997     fi
1998    
1999     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2000 siliconforks 511 echo "configure:2001: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2001 siliconforks 460
2002     ac_ext=c
2003     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2004     ac_cpp='$CPP $CPPFLAGS'
2005     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2006     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2007     cross_compiling=$ac_cv_prog_cc_cross
2008    
2009     cat > conftest.$ac_ext << EOF
2010    
2011 siliconforks 511 #line 2012 "configure"
2012 siliconforks 460 #include "confdefs.h"
2013    
2014     main(){return(0);}
2015     EOF
2016 siliconforks 511 if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2017 siliconforks 460 ac_cv_prog_cc_works=yes
2018     # If we can't run a trivial program, we are probably using a cross compiler.
2019     if (./conftest; exit) 2>/dev/null; then
2020     ac_cv_prog_cc_cross=no
2021     else
2022     ac_cv_prog_cc_cross=yes
2023     fi
2024     else
2025     echo "configure: failed program was:" >&5
2026     cat conftest.$ac_ext >&5
2027     ac_cv_prog_cc_works=no
2028     fi
2029     rm -fr conftest*
2030     ac_ext=c
2031     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2032     ac_cpp='$CPP $CPPFLAGS'
2033     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2034     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2035     cross_compiling=$ac_cv_prog_cc_cross
2036    
2037     echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2038     if test $ac_cv_prog_cc_works = no; then
2039     { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2040     fi
2041     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2042 siliconforks 511 echo "configure:2043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2043 siliconforks 460 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2044     cross_compiling=$ac_cv_prog_cc_cross
2045    
2046     echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2047 siliconforks 511 echo "configure:2048: checking whether we are using GNU C" >&5
2048 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2049     echo $ac_n "(cached) $ac_c" 1>&6
2050     else
2051     cat > conftest.c <<EOF
2052     #ifdef __GNUC__
2053     yes;
2054     #endif
2055     EOF
2056 siliconforks 511 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2057 siliconforks 460 ac_cv_prog_gcc=yes
2058     else
2059     ac_cv_prog_gcc=no
2060     fi
2061     fi
2062    
2063     echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2064    
2065     if test $ac_cv_prog_gcc = yes; then
2066     GCC=yes
2067     else
2068     GCC=
2069     fi
2070    
2071     ac_test_CFLAGS="${CFLAGS+set}"
2072     ac_save_CFLAGS="$CFLAGS"
2073     CFLAGS=
2074     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2075 siliconforks 511 echo "configure:2076: checking whether ${CC-cc} accepts -g" >&5
2076 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2077     echo $ac_n "(cached) $ac_c" 1>&6
2078     else
2079     echo 'void f(){}' > conftest.c
2080     if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2081     ac_cv_prog_cc_g=yes
2082     else
2083     ac_cv_prog_cc_g=no
2084     fi
2085     rm -f conftest*
2086    
2087     fi
2088    
2089     echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2090     if test "$ac_test_CFLAGS" = set; then
2091     CFLAGS="$ac_save_CFLAGS"
2092     elif test $ac_cv_prog_cc_g = yes; then
2093     if test "$GCC" = yes; then
2094     CFLAGS="-g -O2"
2095     else
2096     CFLAGS="-g"
2097     fi
2098     else
2099     if test "$GCC" = yes; then
2100     CFLAGS="-O2"
2101     else
2102     CFLAGS=
2103     fi
2104     fi
2105    
2106     for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2107     do
2108     # Extract the first word of "$ac_prog", so it can be a program name with args.
2109     set dummy $ac_prog; ac_word=$2
2110     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2111 siliconforks 511 echo "configure:2112: checking for $ac_word" >&5
2112 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2113     echo $ac_n "(cached) $ac_c" 1>&6
2114     else
2115     if test -n "$CXX"; then
2116     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2117     else
2118     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2119     ac_dummy="$PATH"
2120     for ac_dir in $ac_dummy; do
2121     test -z "$ac_dir" && ac_dir=.
2122     if test -f $ac_dir/$ac_word; then
2123     ac_cv_prog_CXX="$ac_prog"
2124     break
2125     fi
2126     done
2127     IFS="$ac_save_ifs"
2128     fi
2129     fi
2130     CXX="$ac_cv_prog_CXX"
2131     if test -n "$CXX"; then
2132     echo "$ac_t""$CXX" 1>&6
2133     else
2134     echo "$ac_t""no" 1>&6
2135     fi
2136    
2137     test -n "$CXX" && break
2138     done
2139     test -n "$CXX" || CXX="gcc"
2140    
2141    
2142     echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2143 siliconforks 511 echo "configure:2144: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2144 siliconforks 460
2145     ac_ext=C
2146     # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2147     ac_cpp='$CXXCPP $CPPFLAGS'
2148     ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2149     ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2150     cross_compiling=$ac_cv_prog_cxx_cross
2151    
2152     cat > conftest.$ac_ext << EOF
2153    
2154 siliconforks 511 #line 2155 "configure"
2155 siliconforks 460 #include "confdefs.h"
2156    
2157     int main(){return(0);}
2158     EOF
2159 siliconforks 511 if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2160 siliconforks 460 ac_cv_prog_cxx_works=yes
2161     # If we can't run a trivial program, we are probably using a cross compiler.
2162     if (./conftest; exit) 2>/dev/null; then
2163     ac_cv_prog_cxx_cross=no
2164     else
2165     ac_cv_prog_cxx_cross=yes
2166     fi
2167     else
2168     echo "configure: failed program was:" >&5
2169     cat conftest.$ac_ext >&5
2170     ac_cv_prog_cxx_works=no
2171     fi
2172     rm -fr conftest*
2173     ac_ext=c
2174     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2175     ac_cpp='$CPP $CPPFLAGS'
2176     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2177     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2178     cross_compiling=$ac_cv_prog_cc_cross
2179    
2180     echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2181     if test $ac_cv_prog_cxx_works = no; then
2182     { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2183     fi
2184     echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2185 siliconforks 511 echo "configure:2186: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2186 siliconforks 460 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2187     cross_compiling=$ac_cv_prog_cxx_cross
2188    
2189     echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2190 siliconforks 511 echo "configure:2191: checking whether we are using GNU C++" >&5
2191 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2192     echo $ac_n "(cached) $ac_c" 1>&6
2193     else
2194     cat > conftest.C <<EOF
2195     #ifdef __GNUC__
2196     yes;
2197     #endif
2198     EOF
2199 siliconforks 511 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2200 siliconforks 460 ac_cv_prog_gxx=yes
2201     else
2202     ac_cv_prog_gxx=no
2203     fi
2204     fi
2205    
2206     echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2207    
2208     if test $ac_cv_prog_gxx = yes; then
2209     GXX=yes
2210     else
2211     GXX=
2212     fi
2213    
2214     ac_test_CXXFLAGS="${CXXFLAGS+set}"
2215     ac_save_CXXFLAGS="$CXXFLAGS"
2216     CXXFLAGS=
2217     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2218 siliconforks 511 echo "configure:2219: checking whether ${CXX-g++} accepts -g" >&5
2219 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2220     echo $ac_n "(cached) $ac_c" 1>&6
2221     else
2222     echo 'void f(){}' > conftest.cc
2223     if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2224     ac_cv_prog_cxx_g=yes
2225     else
2226     ac_cv_prog_cxx_g=no
2227     fi
2228     rm -f conftest*
2229    
2230     fi
2231    
2232     echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2233     if test "$ac_test_CXXFLAGS" = set; then
2234     CXXFLAGS="$ac_save_CXXFLAGS"
2235     elif test $ac_cv_prog_cxx_g = yes; then
2236     if test "$GXX" = yes; then
2237     CXXFLAGS="-g -O2"
2238     else
2239     CXXFLAGS="-g"
2240     fi
2241     else
2242     if test "$GXX" = yes; then
2243     CXXFLAGS="-O2"
2244     else
2245     CXXFLAGS=
2246     fi
2247     fi
2248    
2249     # Extract the first word of "ranlib", so it can be a program name with args.
2250     set dummy ranlib; ac_word=$2
2251     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2252 siliconforks 511 echo "configure:2253: checking for $ac_word" >&5
2253 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2254     echo $ac_n "(cached) $ac_c" 1>&6
2255     else
2256     if test -n "$RANLIB"; then
2257     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2258     else
2259     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2260     ac_dummy="$PATH"
2261     for ac_dir in $ac_dummy; do
2262     test -z "$ac_dir" && ac_dir=.
2263     if test -f $ac_dir/$ac_word; then
2264     ac_cv_prog_RANLIB="ranlib"
2265     break
2266     fi
2267     done
2268     IFS="$ac_save_ifs"
2269     test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2270     fi
2271     fi
2272     RANLIB="$ac_cv_prog_RANLIB"
2273     if test -n "$RANLIB"; then
2274     echo "$ac_t""$RANLIB" 1>&6
2275     else
2276     echo "$ac_t""no" 1>&6
2277     fi
2278    
2279 siliconforks 507 for ac_prog in $AS as
2280 siliconforks 460 do
2281     # Extract the first word of "$ac_prog", so it can be a program name with args.
2282     set dummy $ac_prog; ac_word=$2
2283     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2284 siliconforks 511 echo "configure:2285: checking for $ac_word" >&5
2285 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
2286     echo $ac_n "(cached) $ac_c" 1>&6
2287     else
2288     case "$AS" in
2289     /*)
2290     ac_cv_path_AS="$AS" # Let the user override the test with a path.
2291     ;;
2292     ?:/*)
2293     ac_cv_path_AS="$AS" # Let the user override the test with a dos path.
2294     ;;
2295     *)
2296     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2297     ac_dummy="$PATH"
2298     for ac_dir in $ac_dummy; do
2299     test -z "$ac_dir" && ac_dir=.
2300     if test -f $ac_dir/$ac_word; then
2301     ac_cv_path_AS="$ac_dir/$ac_word"
2302     break
2303     fi
2304     done
2305     IFS="$ac_save_ifs"
2306     ;;
2307     esac
2308     fi
2309     AS="$ac_cv_path_AS"
2310     if test -n "$AS"; then
2311     echo "$ac_t""$AS" 1>&6
2312     else
2313     echo "$ac_t""no" 1>&6
2314     fi
2315    
2316     test -n "$AS" && break
2317     done
2318     test -n "$AS" || AS="$CC"
2319    
2320 siliconforks 507 if test "$msyshost"; then
2321     case "$AS" in
2322     /*)
2323     tmp_DIRNAME=`dirname "$AS"`
2324     tmp_BASENAME=`basename "$AS"`
2325     tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
2326     AS="$tmp_PWD/$tmp_BASENAME"
2327     if test -e "$AS.exe"; then
2328     AS="$AS.exe"
2329     fi
2330     esac
2331     fi
2332    
2333 siliconforks 460 for ac_prog in ar
2334     do
2335     # Extract the first word of "$ac_prog", so it can be a program name with args.
2336     set dummy $ac_prog; ac_word=$2
2337     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2338 siliconforks 511 echo "configure:2339: checking for $ac_word" >&5
2339 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2340     echo $ac_n "(cached) $ac_c" 1>&6
2341     else
2342     if test -n "$AR"; then
2343     ac_cv_prog_AR="$AR" # Let the user override the test.
2344     else
2345     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2346     ac_dummy="$PATH"
2347     for ac_dir in $ac_dummy; do
2348     test -z "$ac_dir" && ac_dir=.
2349     if test -f $ac_dir/$ac_word; then
2350     ac_cv_prog_AR="$ac_prog"
2351     break
2352     fi
2353     done
2354     IFS="$ac_save_ifs"
2355     fi
2356     fi
2357     AR="$ac_cv_prog_AR"
2358     if test -n "$AR"; then
2359     echo "$ac_t""$AR" 1>&6
2360     else
2361     echo "$ac_t""no" 1>&6
2362     fi
2363    
2364     test -n "$AR" && break
2365     done
2366     test -n "$AR" || AR=":"
2367    
2368     for ac_prog in ld
2369     do
2370     # Extract the first word of "$ac_prog", so it can be a program name with args.
2371     set dummy $ac_prog; ac_word=$2
2372     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2373 siliconforks 511 echo "configure:2374: checking for $ac_word" >&5
2374 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
2375     echo $ac_n "(cached) $ac_c" 1>&6
2376     else
2377     if test -n "$LD"; then
2378     ac_cv_prog_LD="$LD" # Let the user override the test.
2379     else
2380     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2381     ac_dummy="$PATH"
2382     for ac_dir in $ac_dummy; do
2383     test -z "$ac_dir" && ac_dir=.
2384     if test -f $ac_dir/$ac_word; then
2385     ac_cv_prog_LD="$ac_prog"
2386     break
2387     fi
2388     done
2389     IFS="$ac_save_ifs"
2390     fi
2391     fi
2392     LD="$ac_cv_prog_LD"
2393     if test -n "$LD"; then
2394     echo "$ac_t""$LD" 1>&6
2395     else
2396     echo "$ac_t""no" 1>&6
2397     fi
2398    
2399     test -n "$LD" && break
2400     done
2401     test -n "$LD" || LD=":"
2402    
2403     for ac_prog in strip
2404     do
2405     # Extract the first word of "$ac_prog", so it can be a program name with args.
2406     set dummy $ac_prog; ac_word=$2
2407     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2408 siliconforks 511 echo "configure:2409: checking for $ac_word" >&5
2409 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2410     echo $ac_n "(cached) $ac_c" 1>&6
2411     else
2412     if test -n "$STRIP"; then
2413     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2414     else
2415     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2416     ac_dummy="$PATH"
2417     for ac_dir in $ac_dummy; do
2418     test -z "$ac_dir" && ac_dir=.
2419     if test -f $ac_dir/$ac_word; then
2420     ac_cv_prog_STRIP="$ac_prog"
2421     break
2422     fi
2423     done
2424     IFS="$ac_save_ifs"
2425     fi
2426     fi
2427     STRIP="$ac_cv_prog_STRIP"
2428     if test -n "$STRIP"; then
2429     echo "$ac_t""$STRIP" 1>&6
2430     else
2431     echo "$ac_t""no" 1>&6
2432     fi
2433    
2434     test -n "$STRIP" && break
2435     done
2436     test -n "$STRIP" || STRIP=":"
2437    
2438     for ac_prog in windres
2439     do
2440     # Extract the first word of "$ac_prog", so it can be a program name with args.
2441     set dummy $ac_prog; ac_word=$2
2442     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2443 siliconforks 511 echo "configure:2444: checking for $ac_word" >&5
2444 siliconforks 460 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
2445     echo $ac_n "(cached) $ac_c" 1>&6
2446     else
2447     if test -n "$WINDRES"; then
2448     ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2449     else
2450     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2451     ac_dummy="$PATH"
2452     for ac_dir in $ac_dummy; do
2453     test -z "$ac_dir" && ac_dir=.
2454     if test -f $ac_dir/$ac_word; then
2455     ac_cv_prog_WINDRES="$ac_prog"
2456     break
2457     fi
2458     done
2459     IFS="$ac_save_ifs"
2460     fi
2461     fi
2462     WINDRES="$ac_cv_prog_WINDRES"
2463     if test -n "$WINDRES"; then
2464     echo "$ac_t""$WINDRES" 1>&6
2465     else
2466     echo "$ac_t""no" 1>&6
2467     fi
2468    
2469     test -n "$WINDRES" && break
2470     done
2471     test -n "$WINDRES" || WINDRES=":"
2472    
2473     if test -z "$HOST_CC"; then
2474     HOST_CC="$CC"
2475     fi
2476     if test -z "$HOST_CFLAGS"; then
2477     HOST_CFLAGS="$CFLAGS"
2478     fi
2479     if test -z "$HOST_CXX"; then
2480     HOST_CXX="$CXX"
2481     fi
2482     if test -z "$HOST_CXXFLAGS"; then
2483     HOST_CXXFLAGS="$CXXFLAGS"
2484     fi
2485     if test -z "$HOST_LDFLAGS"; then
2486     HOST_LDFLAGS="$LDFLAGS"
2487     fi
2488     if test -z "$HOST_RANLIB"; then
2489     HOST_RANLIB="$RANLIB"
2490     fi
2491     if test -z "$HOST_AR"; then
2492     HOST_AR="$AR"
2493     fi
2494     fi
2495    
2496     GNU_AS=
2497     GNU_LD=
2498     GNU_CC=
2499     GNU_CXX=
2500     CC_VERSION='N/A'
2501     CXX_VERSION='N/A'
2502     if test "$GCC" = "yes"; then
2503     GNU_CC=1
2504     CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'`
2505     fi
2506     if test "$GXX" = "yes"; then
2507     GNU_CXX=1
2508     CXX_VERSION=`$CXX -v 2>&1 | grep 'gcc version'`
2509     fi
2510     if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then
2511     GNU_AS=1
2512     fi
2513     if test "`echo | $LD -v 2>&1 | grep -c GNU`" != "0"; then
2514     GNU_LD=1
2515     fi
2516     if test "$GNU_CC"; then
2517     if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then
2518     GCC_USE_GNU_LD=1
2519     fi
2520     fi
2521    
2522     INTEL_CC=
2523     INTEL_CXX=
2524     if test "$GCC" = yes; then
2525     if test "`$CC -help 2>&1 | grep -c 'Intel(R) C Compiler'`" != "0"; then
2526     INTEL_CC=1
2527     fi
2528     fi
2529    
2530     if test "$GXX" = yes; then
2531     if test "`$CXX -help 2>&1 | grep -c 'Intel(R) C++ Compiler'`" != "0"; then
2532     INTEL_CXX=1
2533     fi
2534     fi
2535    
2536     case "$target" in
2537     *-wince)
2538     WINVER=500
2539     ;;
2540     *)
2541     if test -n "$GNU_CC"; then
2542     WINVER=501
2543     else
2544     WINVER=500
2545     fi
2546     ;;
2547     esac
2548    
2549     case "$target" in
2550     *-cygwin*|*-mingw*|*-msvc*|*-mks*|*-wince)
2551     if test "$GCC" != "yes"; then
2552     # Check to see if we are really running in a msvc environemnt
2553     _WIN32_MSVC=1
2554    
2555     # Make sure compilers are valid
2556     CFLAGS="$CFLAGS -TC -nologo"
2557     CXXFLAGS="$CXXFLAGS -TP -nologo"
2558    
2559     ac_ext=c
2560     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2561     ac_cpp='$CPP $CPPFLAGS'
2562     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2563     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2564     cross_compiling=$ac_cv_prog_cc_cross
2565    
2566     cat > conftest.$ac_ext <<EOF
2567 siliconforks 511 #line 2568 "configure"
2568 siliconforks 460 #include "confdefs.h"
2569     #include <stdio.h>
2570     int main() {
2571     printf("Hello World\n");
2572     ; return 0; }
2573     EOF
2574 siliconforks 511 if { (eval echo configure:2575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2575 siliconforks 460 :
2576     else
2577     echo "configure: failed program was:" >&5
2578     cat conftest.$ac_ext >&5
2579     rm -rf conftest*
2580     { echo "configure: error: \$(CC) test failed. You must have MS VC++ in your path to build." 1>&2; exit 1; }
2581     fi
2582     rm -f conftest*
2583    
2584     ac_ext=C
2585     # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2586     ac_cpp='$CXXCPP $CPPFLAGS'
2587     ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2588     ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2589     cross_compiling=$ac_cv_prog_cxx_cross
2590    
2591     cat > conftest.$ac_ext <<EOF
2592 siliconforks 511 #line 2593 "configure"
2593 siliconforks 460 #include "confdefs.h"
2594     #include <new.h>
2595     int main() {
2596     unsigned *test = new unsigned(42);
2597     ; return 0; }
2598     EOF
2599 siliconforks 511 if { (eval echo configure:2600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2600 siliconforks 460 :
2601     else
2602     echo "configure: failed program was:" >&5
2603     cat conftest.$ac_ext >&5
2604     rm -rf conftest*
2605     { echo "configure: error: \$(CXX) test failed. You must have MS VC++ in your path to build." 1>&2; exit 1; }
2606     fi
2607     rm -f conftest*
2608     ac_ext=c
2609     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2610     ac_cpp='$CPP $CPPFLAGS'
2611     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2612     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2613     cross_compiling=$ac_cv_prog_cc_cross
2614    
2615    
2616    
2617     _MSVC_VER_FILTER='s|.* ([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?).*|\1|p'
2618    
2619    
2620     # Determine compiler version
2621     CC_VERSION=`"${CC}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"`
2622     _CC_MAJOR_VERSION=`echo ${CC_VERSION} | $AWK -F\. '{ print $1 }'`
2623     _CC_MINOR_VERSION=`echo ${CC_VERSION} | $AWK -F\. '{ print $2 }'`
2624     _CC_RELEASE=`echo ${CC_VERSION} | $AWK -F\. '{ print $3 }'`
2625     _CC_BUILD=`echo ${CC_VERSION} | $AWK -F\. '{ print $4 }'`
2626     _MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION}
2627    
2628     CXX_VERSION=`"${CXX}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"`
2629     _CXX_MAJOR_VERSION=`echo ${CXX_VERSION} | $AWK -F\. '{ print $1 }'`
2630