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

Contents of /trunk/js/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 507 - (show annotations)
Sun Jan 10 07:23:34 2010 UTC (10 years, 9 months ago) by siliconforks
File size: 403228 byte(s)
Update SpiderMonkey from Firefox 3.6rc1.

1 #! /bin/sh
2
3 if test `uname -s | grep -c MINGW 2>/dev/null` != "0"; then
4 msyshost=1
5 fi
6
7 # 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 --with-symbian-sdk=SYMBIAN_SDK_DIR
27 The path to the Symbian SDK"
28 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 --disable-windows-mobile-components
39 Disable Windows Mobile specific components from CE build"
40 ac_help="$ac_help
41 --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 --with-nspr-exec-prefix or --with-nspr-prefix.
51 (Those flags are only checked if you specify
52 --with-system-nspr.)"
53 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 --enable-tracevis Enable TraceVis tracing tool (default=no)"
100 ac_help="$ac_help
101 --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 --enable-gczeal Enable zealous GCing"
114 ac_help="$ac_help
115 --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 --enable-readline Link js shell to system readline library"
165 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 echo "configure:732: checking host system type" >&5
732
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 echo "configure:753: checking target system type" >&5
753
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 echo "configure:771: checking build system type" >&5
771
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 for ac_prog in gawk mawk nawk awk
826 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 echo "configure:831: checking for $ac_word" >&5
831 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 echo "configure:946: checking for host c compiler" >&5
946 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 echo "configure:952: checking for $ac_word" >&5
952 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 echo "configure:987: checking for host c++ compiler" >&5
987 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 echo "configure:993: checking for $ac_word" >&5
993 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 echo "configure:1042: checking for $ac_word" >&5
1042 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 echo "configure:1077: checking for $ac_word" >&5
1077 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 echo "configure:1112: checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
1112 cat > conftest.$ac_ext <<EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1115
1116 int main() {
1117 return(0);
1118 ; return 0; }
1119 EOF
1120 if { (eval echo configure:1121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1121 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 echo "configure:1136: checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works" >&5
1136 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1139
1140 int main() {
1141 return(0);
1142 ; return 0; }
1143 EOF
1144 if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1145 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 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 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 echo "configure:1209: checking for $ac_word" >&5
1209 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 echo "configure:1243: checking for $ac_word" >&5
1243 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 echo "configure:1273: checking for $ac_word" >&5
1273 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 echo "configure:1324: checking for $ac_word" >&5
1324 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 echo "configure:1356: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1356
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 #line 1367 "configure"
1367 #include "confdefs.h"
1368
1369 main(){return(0);}
1370 EOF
1371 if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1372 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 echo "configure:1398: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1398 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 echo "configure:1403: checking whether we are using GNU C" >&5
1403 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 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 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 echo "configure:1431: checking whether ${CC-cc} accepts -g" >&5
1431 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 echo "configure:1467: checking for $ac_word" >&5
1467 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 echo "configure:1503: checking for $ac_word" >&5
1503 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 echo "configure:1535: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1535
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 #line 1546 "configure"
1546 #include "confdefs.h"
1547
1548 int main(){return(0);}
1549 EOF
1550 if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1551 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 echo "configure:1577: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1577 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 echo "configure:1582: checking whether we are using GNU C++" >&5
1582 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 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 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 echo "configure:1610: checking whether ${CXX-g++} accepts -g" >&5
1610 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 for ac_declaration in \
1641 ''\
1642 '#include <stdlib.h>' \
1643 'extern "C" void std::exit (int) throw (); using std::exit;' \
1644 'extern "C" void std::exit (int); using std::exit;' \
1645 'extern "C" void exit (int) throw ();' \
1646 'extern "C" void exit (int);' \
1647 'void exit (int);'
1648 do
1649 cat > conftest.$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1652 #include <stdlib.h>
1653 $ac_declaration
1654 int main() {
1655 exit (42);
1656 ; return 0; }
1657 EOF
1658 if { (eval echo configure:1659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1659 :
1660 else
1661 echo "configure: failed program was:" >&5
1662 cat conftest.$ac_ext >&5
1663 rm -rf conftest*
1664 continue
1665 fi
1666 rm -f conftest*
1667 cat > conftest.$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1670 $ac_declaration
1671 int main() {
1672 exit (42);
1673 ; return 0; }
1674 EOF
1675 if { (eval echo configure:1676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1676 rm -rf conftest*
1677 break
1678 else
1679 echo "configure: failed program was:" >&5
1680 cat conftest.$ac_ext >&5
1681 fi
1682 rm -f conftest*
1683 done
1684 if test -n "$ac_declaration"; then
1685 echo '#ifdef __cplusplus' >>confdefs.h
1686 echo $ac_declaration >>confdefs.h
1687 echo '#endif' >>confdefs.h
1688 fi
1689
1690
1691
1692 case "$build:$target" in
1693 powerpc-apple-darwin8*:i?86-apple-darwin*)
1694 CFLAGS=$_SAVE_CFLAGS
1695 CXXFLAGS=$_SAVE_CXXFLAGS
1696 ;;
1697 esac
1698
1699 for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib"
1700 do
1701 # Extract the first word of "$ac_prog", so it can be a program name with args.
1702 set dummy $ac_prog; ac_word=$2
1703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1704 echo "configure:1705: checking for $ac_word" >&5
1705 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1707 else
1708 if test -n "$RANLIB"; then
1709 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1710 else
1711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1712 ac_dummy="$PATH"
1713 for ac_dir in $ac_dummy; do
1714 test -z "$ac_dir" && ac_dir=.
1715 if test -f $ac_dir/$ac_word; then
1716 ac_cv_prog_RANLIB="$ac_prog"
1717 break
1718 fi
1719 done
1720 IFS="$ac_save_ifs"
1721 fi
1722 fi
1723 RANLIB="$ac_cv_prog_RANLIB"
1724 if test -n "$RANLIB"; then
1725 echo "$ac_t""$RANLIB" 1>&6
1726 else
1727 echo "$ac_t""no" 1>&6
1728 fi
1729
1730 test -n "$RANLIB" && break
1731 done
1732 test -n "$RANLIB" || RANLIB=":"
1733
1734 for ac_prog in $AR "${target_alias}-ar" "${target}-ar"
1735 do
1736 # Extract the first word of "$ac_prog", so it can be a program name with args.
1737 set dummy $ac_prog; ac_word=$2
1738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1739 echo "configure:1740: checking for $ac_word" >&5
1740 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1742 else
1743 if test -n "$AR"; then
1744 ac_cv_prog_AR="$AR" # Let the user override the test.
1745 else
1746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1747 ac_dummy="$PATH"
1748 for ac_dir in $ac_dummy; do
1749 test -z "$ac_dir" && ac_dir=.
1750 if test -f $ac_dir/$ac_word; then
1751 ac_cv_prog_AR="$ac_prog"
1752 break
1753 fi
1754 done
1755 IFS="$ac_save_ifs"
1756 fi
1757 fi
1758 AR="$ac_cv_prog_AR"
1759 if test -n "$AR"; then
1760 echo "$ac_t""$AR" 1>&6
1761 else
1762 echo "$ac_t""no" 1>&6
1763 fi
1764
1765 test -n "$AR" && break
1766 done
1767 test -n "$AR" || AR=":"
1768
1769 for ac_prog in $AS "${target_alias}-as" "${target}-as"
1770 do
1771 # Extract the first word of "$ac_prog", so it can be a program name with args.
1772 set dummy $ac_prog; ac_word=$2
1773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1774 echo "configure:1775: checking for $ac_word" >&5
1775 if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1777 else
1778 case "$AS" in
1779 /*)
1780 ac_cv_path_AS="$AS" # Let the user override the test with a path.
1781 ;;
1782 ?:/*)
1783 ac_cv_path_AS="$AS" # Let the user override the test with a dos path.
1784 ;;
1785 *)
1786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1787 ac_dummy="$PATH"
1788 for ac_dir in $ac_dummy; do
1789 test -z "$ac_dir" && ac_dir=.
1790 if test -f $ac_dir/$ac_word; then
1791 ac_cv_path_AS="$ac_dir/$ac_word"
1792 break
1793 fi
1794 done
1795 IFS="$ac_save_ifs"
1796 ;;
1797 esac
1798 fi
1799 AS="$ac_cv_path_AS"
1800 if test -n "$AS"; then
1801 echo "$ac_t""$AS" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1804 fi
1805
1806 test -n "$AS" && break
1807 done
1808 test -n "$AS" || AS=":"
1809
1810 if test "$msyshost"; then
1811 case "$AS" in
1812 /*)
1813 tmp_DIRNAME=`dirname "$AS"`
1814 tmp_BASENAME=`basename "$AS"`
1815 tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
1816 AS="$tmp_PWD/$tmp_BASENAME"
1817 if test -e "$AS.exe"; then
1818 AS="$AS.exe"
1819 fi
1820 esac
1821 fi
1822
1823 for ac_prog in $LD "${target_alias}-ld" "${target}-ld"
1824 do
1825 # Extract the first word of "$ac_prog", so it can be a program name with args.
1826 set dummy $ac_prog; ac_word=$2
1827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1828 echo "configure:1829: checking for $ac_word" >&5
1829 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832 if test -n "$LD"; then
1833 ac_cv_prog_LD="$LD" # Let the user override the test.
1834 else
1835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1836 ac_dummy="$PATH"
1837 for ac_dir in $ac_dummy; do
1838 test -z "$ac_dir" && ac_dir=.
1839 if test -f $ac_dir/$ac_word; then
1840 ac_cv_prog_LD="$ac_prog"
1841 break
1842 fi
1843 done
1844 IFS="$ac_save_ifs"
1845 fi
1846 fi
1847 LD="$ac_cv_prog_LD"
1848 if test -n "$LD"; then
1849 echo "$ac_t""$LD" 1>&6
1850 else
1851 echo "$ac_t""no" 1>&6
1852 fi
1853
1854 test -n "$LD" && break
1855 done
1856 test -n "$LD" || LD=":"
1857
1858 for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip"
1859 do
1860 # Extract the first word of "$ac_prog", so it can be a program name with args.
1861 set dummy $ac_prog; ac_word=$2
1862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1863 echo "configure:1864: checking for $ac_word" >&5
1864 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1866 else
1867 if test -n "$STRIP"; then
1868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1869 else
1870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1871 ac_dummy="$PATH"
1872 for ac_dir in $ac_dummy; do
1873 test -z "$ac_dir" && ac_dir=.
1874 if test -f $ac_dir/$ac_word; then
1875 ac_cv_prog_STRIP="$ac_prog"
1876 break
1877 fi
1878 done
1879 IFS="$ac_save_ifs"
1880 fi
1881 fi
1882 STRIP="$ac_cv_prog_STRIP"
1883 if test -n "$STRIP"; then
1884 echo "$ac_t""$STRIP" 1>&6
1885 else
1886 echo "$ac_t""no" 1>&6
1887 fi
1888
1889 test -n "$STRIP" && break
1890 done
1891 test -n "$STRIP" || STRIP=":"
1892
1893 for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres"
1894 do
1895 # Extract the first word of "$ac_prog", so it can be a program name with args.
1896 set dummy $ac_prog; ac_word=$2
1897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1898 echo "configure:1899: checking for $ac_word" >&5
1899 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1901 else
1902 if test -n "$WINDRES"; then
1903 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
1904 else
1905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1906 ac_dummy="$PATH"
1907 for ac_dir in $ac_dummy; do
1908 test -z "$ac_dir" && ac_dir=.
1909 if test -f $ac_dir/$ac_word; then
1910 ac_cv_prog_WINDRES="$ac_prog"
1911 break
1912 fi
1913 done
1914 IFS="$ac_save_ifs"
1915 fi
1916 fi
1917 WINDRES="$ac_cv_prog_WINDRES"
1918 if test -n "$WINDRES"; then
1919 echo "$ac_t""$WINDRES" 1>&6
1920 else
1921 echo "$ac_t""no" 1>&6
1922 fi
1923
1924 test -n "$WINDRES" && break
1925 done
1926 test -n "$WINDRES" || WINDRES=":"
1927
1928 cat >> confdefs.h <<\EOF
1929 #define CROSS_COMPILE 1
1930 EOF
1931
1932
1933 cross_compiling=yes
1934 else
1935 # Extract the first word of "gcc", so it can be a program name with args.
1936 set dummy gcc; ac_word=$2
1937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_word" >&5
1939 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1941 else
1942 if test -n "$CC"; then
1943 ac_cv_prog_CC="$CC" # Let the user override the test.
1944 else
1945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1946 ac_dummy="$PATH"
1947 for ac_dir in $ac_dummy; do
1948 test -z "$ac_dir" && ac_dir=.
1949 if test -f $ac_dir/$ac_word; then
1950 ac_cv_prog_CC="gcc"
1951 break
1952 fi
1953 done
1954 IFS="$ac_save_ifs"
1955 fi
1956 fi
1957 CC="$ac_cv_prog_CC"
1958 if test -n "$CC"; then
1959 echo "$ac_t""$CC" 1>&6
1960 else
1961 echo "$ac_t""no" 1>&6
1962 fi
1963
1964 if test -z "$CC"; then
1965 # Extract the first word of "cc", so it can be a program name with args.
1966 set dummy cc; ac_word=$2
1967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1968 echo "configure:1969: checking for $ac_word" >&5
1969 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_prog_rejected=no
1977 ac_dummy="$PATH"
1978 for ac_dir in $ac_dummy; do
1979 test -z "$ac_dir" && ac_dir=.
1980 if test -f $ac_dir/$ac_word; then
1981 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1982 ac_prog_rejected=yes
1983 continue
1984 fi
1985 ac_cv_prog_CC="cc"
1986 break
1987 fi
1988 done
1989 IFS="$ac_save_ifs"
1990 if test $ac_prog_rejected = yes; then
1991 # We found a bogon in the path, so make sure we never use it.
1992 set dummy $ac_cv_prog_CC
1993 shift
1994 if test $# -gt 0; then
1995 # We chose a different compiler from the bogus one.
1996 # However, it has the same basename, so the bogon will be chosen
1997 # first if we set CC to just the basename; use the full file name.
1998 shift
1999 set dummy "$ac_dir/$ac_word" "$@"
2000 shift
2001 ac_cv_prog_CC="$@"
2002 fi
2003 fi
2004 fi
2005 fi
2006 CC="$ac_cv_prog_CC"
2007 if test -n "$CC"; then
2008 echo "$ac_t""$CC" 1>&6
2009 else
2010 echo "$ac_t""no" 1>&6
2011 fi
2012
2013 if test -z "$CC"; then
2014 case "`uname -s`" in
2015 *win32* | *WIN32*)
2016 # Extract the first word of "cl", so it can be a program name with args.
2017 set dummy cl; ac_word=$2
2018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2019 echo "configure:2020: checking for $ac_word" >&5
2020 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2022 else
2023 if test -n "$CC"; then
2024 ac_cv_prog_CC="$CC" # Let the user override the test.
2025 else
2026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2027 ac_dummy="$PATH"
2028 for ac_dir in $ac_dummy; do
2029 test -z "$ac_dir" && ac_dir=.
2030 if test -f $ac_dir/$ac_word; then
2031 ac_cv_prog_CC="cl"
2032 break
2033 fi
2034 done
2035 IFS="$ac_save_ifs"
2036 fi
2037 fi
2038 CC="$ac_cv_prog_CC"
2039 if test -n "$CC"; then
2040 echo "$ac_t""$CC" 1>&6
2041 else
2042 echo "$ac_t""no" 1>&6
2043 fi
2044 ;;
2045 esac
2046 fi
2047 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2048 fi
2049
2050 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2051 echo "configure:2052: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2052
2053 ac_ext=c
2054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2055 ac_cpp='$CPP $CPPFLAGS'
2056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2058 cross_compiling=$ac_cv_prog_cc_cross
2059
2060 cat > conftest.$ac_ext << EOF
2061
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064
2065 main(){return(0);}
2066 EOF
2067 if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2068 ac_cv_prog_cc_works=yes
2069 # If we can't run a trivial program, we are probably using a cross compiler.
2070 if (./conftest; exit) 2>/dev/null; then
2071 ac_cv_prog_cc_cross=no
2072 else
2073 ac_cv_prog_cc_cross=yes
2074 fi
2075 else
2076 echo "configure: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2078 ac_cv_prog_cc_works=no
2079 fi
2080 rm -fr conftest*
2081 ac_ext=c
2082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2083 ac_cpp='$CPP $CPPFLAGS'
2084 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2085 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2086 cross_compiling=$ac_cv_prog_cc_cross
2087
2088 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2089 if test $ac_cv_prog_cc_works = no; then
2090 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2091 fi
2092 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2093 echo "configure:2094: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2094 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2095 cross_compiling=$ac_cv_prog_cc_cross
2096
2097 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2098 echo "configure:2099: checking whether we are using GNU C" >&5
2099 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2101 else
2102 cat > conftest.c <<EOF
2103 #ifdef __GNUC__
2104 yes;
2105 #endif
2106 EOF
2107 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2108 ac_cv_prog_gcc=yes
2109 else
2110 ac_cv_prog_gcc=no
2111 fi
2112 fi
2113
2114 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2115
2116 if test $ac_cv_prog_gcc = yes; then
2117 GCC=yes
2118 else
2119 GCC=
2120 fi
2121
2122 ac_test_CFLAGS="${CFLAGS+set}"
2123 ac_save_CFLAGS="$CFLAGS"
2124 CFLAGS=
2125 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2126 echo "configure:2127: checking whether ${CC-cc} accepts -g" >&5
2127 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2129 else
2130 echo 'void f(){}' > conftest.c
2131 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2132 ac_cv_prog_cc_g=yes
2133 else
2134 ac_cv_prog_cc_g=no
2135 fi
2136 rm -f conftest*
2137
2138 fi
2139
2140 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2141 if test "$ac_test_CFLAGS" = set; then
2142 CFLAGS="$ac_save_CFLAGS"
2143 elif test $ac_cv_prog_cc_g = yes; then
2144 if test "$GCC" = yes; then
2145 CFLAGS="-g -O2"
2146 else
2147 CFLAGS="-g"
2148 fi
2149 else
2150 if test "$GCC" = yes; then
2151 CFLAGS="-O2"
2152 else
2153 CFLAGS=
2154 fi
2155 fi
2156
2157 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2158 do
2159 # Extract the first word of "$ac_prog", so it can be a program name with args.
2160 set dummy $ac_prog; ac_word=$2
2161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2162 echo "configure:2163: checking for $ac_word" >&5
2163 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2165 else
2166 if test -n "$CXX"; then
2167 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2168 else
2169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2170 ac_dummy="$PATH"
2171 for ac_dir in $ac_dummy; do
2172 test -z "$ac_dir" && ac_dir=.
2173 if test -f $ac_dir/$ac_word; then
2174 ac_cv_prog_CXX="$ac_prog"
2175 break
2176 fi
2177 done
2178 IFS="$ac_save_ifs"
2179 fi
2180 fi
2181 CXX="$ac_cv_prog_CXX"
2182 if test -n "$CXX"; then
2183 echo "$ac_t""$CXX" 1>&6
2184 else
2185 echo "$ac_t""no" 1>&6
2186 fi
2187
2188 test -n "$CXX" && break
2189 done
2190 test -n "$CXX" || CXX="gcc"
2191
2192
2193 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2194 echo "configure:2195: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2195
2196 ac_ext=C
2197 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2198 ac_cpp='$CXXCPP $CPPFLAGS'
2199 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2200 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2201 cross_compiling=$ac_cv_prog_cxx_cross
2202
2203 cat > conftest.$ac_ext << EOF
2204
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207
2208 int main(){return(0);}
2209 EOF
2210 if { (eval echo configure:2211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2211 ac_cv_prog_cxx_works=yes
2212 # If we can't run a trivial program, we are probably using a cross compiler.
2213 if (./conftest; exit) 2>/dev/null; then
2214 ac_cv_prog_cxx_cross=no
2215 else
2216 ac_cv_prog_cxx_cross=yes
2217 fi
2218 else
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 ac_cv_prog_cxx_works=no
2222 fi
2223 rm -fr conftest*
2224 ac_ext=c
2225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2229 cross_compiling=$ac_cv_prog_cc_cross
2230
2231 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2232 if test $ac_cv_prog_cxx_works = no; then
2233 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2234 fi
2235 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2236 echo "configure:2237: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2237 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2238 cross_compiling=$ac_cv_prog_cxx_cross
2239
2240 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2241 echo "configure:2242: checking whether we are using GNU C++" >&5
2242 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2244 else
2245 cat > conftest.C <<EOF
2246 #ifdef __GNUC__
2247 yes;
2248 #endif
2249 EOF
2250 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2251 ac_cv_prog_gxx=yes
2252 else
2253 ac_cv_prog_gxx=no
2254 fi
2255 fi
2256
2257 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2258
2259 if test $ac_cv_prog_gxx = yes; then
2260 GXX=yes
2261 else
2262 GXX=
2263 fi
2264
2265 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2266 ac_save_CXXFLAGS="$CXXFLAGS"
2267 CXXFLAGS=
2268 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2269 echo "configure:2270: checking whether ${CXX-g++} accepts -g" >&5
2270 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2272 else
2273 echo 'void f(){}' > conftest.cc
2274 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2275 ac_cv_prog_cxx_g=yes
2276 else
2277 ac_cv_prog_cxx_g=no
2278 fi
2279 rm -f conftest*
2280
2281 fi
2282
2283 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2284 if test "$ac_test_CXXFLAGS" = set; then
2285 CXXFLAGS="$ac_save_CXXFLAGS"
2286 elif test $ac_cv_prog_cxx_g = yes; then
2287 if test "$GXX" = yes; then
2288 CXXFLAGS="-g -O2"
2289 else
2290 CXXFLAGS="-g"
2291 fi
2292 else
2293 if test "$GXX" = yes; then
2294 CXXFLAGS="-O2"
2295 else
2296 CXXFLAGS=
2297 fi
2298 fi
2299
2300 for ac_declaration in \
2301 ''\
2302 '#include <stdlib.h>' \
2303 'extern "C" void std::exit (int) throw (); using std::exit;' \
2304 'extern "C" void std::exit (int); using std::exit;' \
2305 'extern "C" void exit (int) throw ();' \
2306 'extern "C" void exit (int);' \
2307 'void exit (int);'
2308 do
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 #include <stdlib.h>
2313 $ac_declaration
2314 int main() {
2315 exit (42);
2316 ; return 0; }
2317 EOF
2318 if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2319 :
2320 else
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2323 rm -rf conftest*
2324 continue
2325 fi
2326 rm -f conftest*
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 $ac_declaration
2331 int main() {
2332 exit (42);
2333 ; return 0; }
2334 EOF
2335 if { (eval echo configure:2336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2336 rm -rf conftest*
2337 break
2338 else
2339 echo "configure: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2341 fi
2342 rm -f conftest*
2343 done
2344 if test -n "$ac_declaration"; then
2345 echo '#ifdef __cplusplus' >>confdefs.h
2346 echo $ac_declaration >>confdefs.h
2347 echo '#endif' >>confdefs.h
2348 fi
2349
2350
2351 # Extract the first word of "ranlib", so it can be a program name with args.
2352 set dummy ranlib; ac_word=$2
2353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2354 echo "configure:2355: checking for $ac_word" >&5
2355 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2357 else
2358 if test -n "$RANLIB"; then
2359 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2360 else
2361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2362 ac_dummy="$PATH"
2363 for ac_dir in $ac_dummy; do
2364 test -z "$ac_dir" && ac_dir=.
2365 if test -f $ac_dir/$ac_word; then
2366 ac_cv_prog_RANLIB="ranlib"
2367 break
2368 fi
2369 done
2370 IFS="$ac_save_ifs"
2371 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2372 fi
2373 fi
2374 RANLIB="$ac_cv_prog_RANLIB"
2375 if test -n "$RANLIB"; then
2376 echo "$ac_t""$RANLIB" 1>&6
2377 else
2378 echo "$ac_t""no" 1>&6
2379 fi
2380
2381 for ac_prog in $AS as
2382 do
2383 # Extract the first word of "$ac_prog", so it can be a program name with args.
2384 set dummy $ac_prog; ac_word=$2
2385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2386 echo "configure:2387: checking for $ac_word" >&5
2387 if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2389 else
2390 case "$AS" in
2391 /*)
2392 ac_cv_path_AS="$AS" # Let the user override the test with a path.
2393 ;;
2394 ?:/*)
2395 ac_cv_path_AS="$AS" # Let the user override the test with a dos path.
2396 ;;
2397 *)
2398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2399 ac_dummy="$PATH"
2400 for ac_dir in $ac_dummy; do
2401 test -z "$ac_dir" && ac_dir=.
2402 if test -f $ac_dir/$ac_word; then
2403 ac_cv_path_AS="$ac_dir/$ac_word"
2404 break
2405 fi
2406 done
2407 IFS="$ac_save_ifs"
2408 ;;
2409 esac
2410 fi
2411 AS="$ac_cv_path_AS"
2412 if test -n "$AS"; then
2413 echo "$ac_t""$AS" 1>&6
2414 else
2415 echo "$ac_t""no" 1>&6
2416 fi
2417
2418 test -n "$AS" && break
2419 done
2420 test -n "$AS" || AS="$CC"
2421
2422 if test "$msyshost"; then
2423 case "$AS" in
2424 /*)
2425 tmp_DIRNAME=`dirname "$AS"`
2426 tmp_BASENAME=`basename "$AS"`
2427 tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
2428 AS="$tmp_PWD/$tmp_BASENAME"
2429 if test -e "$AS.exe"; then
2430 AS="$AS.exe"
2431 fi
2432 esac
2433 fi
2434
2435 for ac_prog in ar
2436 do
2437 # Extract the first word of "$ac_prog", so it can be a program name with args.
2438 set dummy $ac_prog; ac_word=$2
2439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2440 echo "configure:2441: checking for $ac_word" >&5
2441 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2443 else
2444 if test -n "$AR"; then
2445 ac_cv_prog_AR="$AR" # Let the user override the test.
2446 else
2447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2448 ac_dummy="$PATH"
2449 for ac_dir in $ac_dummy; do
2450 test -z "$ac_dir" && ac_dir=.
2451 if test -f $ac_dir/$ac_word; then
2452 ac_cv_prog_AR="$ac_prog"
2453 break
2454 fi
2455 done
2456 IFS="$ac_save_ifs"
2457 fi
2458 fi
2459 AR="$ac_cv_prog_AR"
2460 if test -n "$AR"; then
2461 echo "$ac_t""$AR" 1>&6
2462 else
2463 echo "$ac_t""no" 1>&6
2464 fi
2465
2466 test -n "$AR" && break
2467 done
2468 test -n "$AR" || AR=":"
2469
2470 for ac_prog in ld
2471 do
2472 # Extract the first word of "$ac_prog", so it can be a program name with args.
2473 set dummy $ac_prog; ac_word=$2
2474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2475 echo "configure:2476: checking for $ac_word" >&5
2476 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2478 else
2479 if test -n "$LD"; then
2480 ac_cv_prog_LD="$LD" # Let the user override the test.
2481 else
2482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2483 ac_dummy="$PATH"
2484 for ac_dir in $ac_dummy; do
2485 test -z "$ac_dir" && ac_dir=.
2486 if test -f $ac_dir/$ac_word; then
2487 ac_cv_prog_LD="$ac_prog"
2488 break
2489 fi
2490 done
2491 IFS="$ac_save_ifs"
2492 fi
2493 fi
2494 LD="$ac_cv_prog_LD"
2495 if test -n "$LD"; then
2496 echo "$ac_t""$LD" 1>&6
2497 else
2498 echo "$ac_t""no" 1>&6
2499 fi
2500
2501 test -n "$LD" && break
2502 done
2503 test -n "$LD" || LD=":"
2504
2505 for ac_prog in strip
2506 do
2507 # Extract the first word of "$ac_prog", so it can be a program name with args.
2508 set dummy $ac_prog; ac_word=$2
2509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2510 echo "configure:2511: checking for $ac_word" >&5
2511 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2513 else
2514 if test -n "$STRIP"; then
2515 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2516 else
2517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2518 ac_dummy="$PATH"
2519 for ac_dir in $ac_dummy; do
2520 test -z "$ac_dir" && ac_dir=.
2521 if test -f $ac_dir/$ac_word; then
2522 ac_cv_prog_STRIP="$ac_prog"
2523 break
2524 fi
2525 done
2526 IFS="$ac_save_ifs"
2527 fi
2528 fi
2529 STRIP="$ac_cv_prog_STRIP"
2530 if test -n "$STRIP"; then
2531 echo "$ac_t""$STRIP" 1>&6
2532 else
2533 echo "$ac_t""no" 1>&6
2534 fi
2535
2536 test -n "$STRIP" && break
2537 done
2538 test -n "$STRIP" || STRIP=":"
2539
2540 for ac_prog in windres
2541 do
2542 # Extract the first word of "$ac_prog", so it can be a program name with args.
2543 set dummy $ac_prog; ac_word=$2
2544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2545 echo "configure:2546: checking for $ac_word" >&5
2546 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
2548 else
2549 if test -n "$WINDRES"; then
2550 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2551 else
2552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2553 ac_dummy="$PATH"
2554 for ac_dir in $ac_dummy; do
2555 test -z "$ac_dir" && ac_dir=.
2556 if test -f $ac_dir/$ac_word; then
2557 ac_cv_prog_WINDRES="$ac_prog"
2558 break
2559 fi
2560 done
2561 IFS="$ac_save_ifs"
2562 fi
2563 fi
2564 WINDRES="$ac_cv_prog_WINDRES"
2565 if test -n "$WINDRES"; then
2566 echo "$ac_t""$WINDRES" 1>&6
2567 else
2568 echo "$ac_t""no" 1>&6
2569 fi
2570
2571 test -n "$WINDRES" && break
2572 done
2573 test -n "$WINDRES" || WINDRES=":"
2574
2575 if test -z "$HOST_CC"; then
2576 HOST_CC="$CC"
2577 fi
2578 if test -z "$HOST_CFLAGS"; then
2579 HOST_CFLAGS="$CFLAGS"
2580 fi
2581 if test -z "$HOST_CXX"; then
2582 HOST_CXX="$CXX"
2583 fi
2584 if test -z "$HOST_CXXFLAGS"; then
2585 HOST_CXXFLAGS="$CXXFLAGS"
2586 fi
2587 if test -z "$HOST_LDFLAGS"; then
2588 HOST_LDFLAGS="$LDFLAGS"
2589 fi
2590 if test -z "$HOST_RANLIB"; then
2591 HOST_RANLIB="$RANLIB"
2592 fi
2593 if test -z "$HOST_AR"; then
2594 HOST_AR="$AR"
2595 fi
2596 fi
2597
2598 GNU_AS=
2599 GNU_LD=
2600 GNU_CC=
2601 GNU_CXX=
2602 CC_VERSION='N/A'
2603 CXX_VERSION='N/A'
2604 if test "$GCC" = "yes"; then
2605 GNU_CC=1
2606 CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'`
2607 fi
2608 if test "$GXX" = "yes"; then
2609 GNU_CXX=1
2610 CXX_VERSION=`$CXX -v 2>&1 | grep 'gcc version'`
2611 fi
2612 if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then
2613 GNU_AS=1
2614 fi
2615 if test "`echo | $LD -v 2>&1 | grep -c GNU`" != "0"; then
2616 GNU_LD=1
2617 fi
2618 if test "$GNU_CC"; then
2619 if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then
2620 GCC_USE_GNU_LD=1
2621 fi
2622 fi
2623
2624 INTEL_CC=
2625 INTEL_CXX=
2626 if test "$GCC" = yes; then
2627 if test "`$CC -help 2>&1 | grep -c 'Intel(R) C Compiler'`" != "0"; then
2628 INTEL_CC=1
2629 fi
2630 fi
2631
2632 if test "$GXX" = yes; then
2633 if test "`$CXX -help 2>&1 | grep -c 'Intel(R) C++ Compiler'`" != "0"; then
2634 INTEL_CXX=1
2635 fi
2636 fi
2637
2638 case "$target" in
2639 *-wince)
2640 WINVER=500
2641 ;;
2642 *)
2643 if test -n "$GNU_CC"; then
2644 WINVER=501
2645 else
2646 WINVER=500
2647 fi
2648 ;;
2649 esac
2650
2651 case "$target" in
2652 *-cygwin*|*-mingw*|*-msvc*|*-mks*|*-wince)
2653 if test "$GCC" != "yes"; then
2654 # Check to see if we are really running in a msvc environemnt
2655 _WIN32_MSVC=1
2656
2657 # Make sure compilers are valid
2658 CFLAGS="$CFLAGS -TC -nologo"
2659 CXXFLAGS="$CXXFLAGS -TP -nologo"
2660
2661 ac_ext=c
2662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2663 ac_cpp='$CPP $CPPFLAGS'
2664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2666 cross_compiling=$ac_cv_prog_cc_cross
2667
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671 #include <stdio.h>
2672 int main() {
2673 printf("Hello World\n");
2674 ; return 0; }
2675 EOF
2676 if { (eval echo configure:2677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2677 :
2678 else
2679 echo "configure: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2681 rm -rf conftest*
2682 { echo "configure: error: \$(CC) test failed. You must have MS VC++ in your path to build." 1>&2; exit 1; }
2683 fi
2684 rm -f conftest*
2685
2686 ac_ext=C
2687 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2688 ac_cpp='$CXXCPP $CPPFLAGS'
2689 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2690 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2691 cross_compiling=$ac_cv_prog_cxx_cross
2692
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 #include <new.h>
2697 int main() {
2698 unsigned *test = new unsigned(42);
2699 ; return 0; }
2700 EOF
2701 if { (eval echo configure:2702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2702 :
2703 else
2704 echo "configure: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 rm -rf conftest*
2707 { echo "configure: error: \$(CXX) test failed. You must have MS VC++ in your path to build." 1>&2; exit 1; }
2708 fi
2709 rm -f conftest*
2710 ac_ext=c
2711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2712 ac_cpp='$CPP $CPPFLAGS'
2713 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2714 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2715 cross_compiling=$ac_cv_prog_cc_cross
2716
2717
2718
2719 _MSVC_VER_FILTER='s|.* ([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?).*|\1|p'
2720
2721
2722 # Determine compiler version
2723 CC_VERSION=`"${CC}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"`
2724 _CC_MAJOR_VERSION=`echo ${CC_VERSION} | $AWK -F\. '{ print $1 }'`
2725 _CC_MINOR_VERSION=`echo ${CC_VERSION} | $AWK -F\. '{ print $2 }'`
2726 _CC_RELEASE=`echo ${CC_VERSION} | $AWK -F\. '{ print $3 }'`
2727 _CC_BUILD=`echo ${CC_VERSION} | $AWK -F\. '{ print $4 }'`
2728 _MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION}
2729
2730 CXX_VERSION=`"${CXX}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"`
2731 _CXX_MAJOR_VERSION=`echo ${CXX_VERSION} | $AWK -F\. '{ print $1 }'`
2732
2733 if test "$_CC_MAJOR_VERSION" != "$_CXX_MAJOR_VERSION"; then
2734 { echo "configure: error: The major versions of \$CC and \$CXX do not match." 1>&2; exit 1; }
2735 fi
2736 if test "$_CC_MAJOR_VERSION" = "13"; then
2737 _CC_SUITE=7
2738 elif test "$_CC_MAJOR_VERSION" = "14"; then
2739 _CC_SUITE=8
2740 CXXFLAGS="$CXXFLAGS -Zc:wchar_t-"
2741 if test $_CC_RELEASE -gt 50727; then
2742 _USE_DYNAMICBASE=1
2743 elif test $_CC_BUILD -ge 762; then
2744 _USE_DYNAMICBASE=1
2745 fi
2746 cat >> confdefs.h <<\EOF
2747 #define _CRT_SECURE_NO_DEPRECATE 1
2748 EOF
2749
2750 cat >> confdefs.h <<\EOF
2751 #define _CRT_NONSTDC_NO_DEPRECATE 1
2752 EOF
2753
2754 elif test "$_CC_MAJOR_VERSION" = "15"; then
2755 _CC_SUITE=9
2756 CXXFLAGS="$CXXFLAGS -Zc:wchar_t-"
2757 LDFLAGS="$LDFLAGS -MANIFESTUAC:NO"
2758 _USE_DYNAMICBASE=1
2759 cat >> confdefs.h <<\EOF
2760 #define _CRT_SECURE_NO_WARNINGS 1
2761 EOF
2762
2763 cat >> confdefs.h <<\EOF
2764 #define _CRT_NONSTDC_NO_WARNINGS 1
2765 EOF
2766
2767 else
2768 { echo "configure: error: This version of the MSVC compiler, $CC_VERSION , is unsupported." 1>&2; exit 1; }
2769 fi
2770
2771 _MOZ_RTTI_FLAGS_ON='-GR'
2772 _MOZ_RTTI_FLAGS_OFF='-GR-'
2773 _MOZ_EXCEPTIONS_FLAGS_ON='-EHsc'
2774 _MOZ_EXCEPTIONS_FLAGS_OFF=''
2775
2776 if test -n "$WIN32_REDIST_DIR"; then
2777 WIN32_REDIST_DIR=`cd "$WIN32_REDIST_DIR" && pwd`
2778 fi
2779
2780 # bug #249782
2781 # ensure that mt.exe is Microsoft (R) Manifest Tool and not magnetic tape manipulation utility (or something else)
2782 if test "$_CC_SUITE" -ge "8"; then
2783
2784 _MSMT_VER_FILTER='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p'
2785
2786
2787 MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'`
2788 if test -n "$MSMT_TOOL"; then
2789 MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"`
2790 if test -z "$MSMANIFEST_TOOL_VERSION"; then
2791 echo "configure: warning: Unknown version of the Microsoft (R) Manifest Tool." 1>&2
2792 fi
2793 MSMANIFEST_TOOL=1
2794 unset MSMT_TOOL
2795 else
2796 { echo "configure: error: Microsoft (R) Manifest Tool must be in your \$PATH." 1>&2; exit 1; }
2797 fi
2798 fi
2799
2800 # Check linker version
2801 _LD_FULL_VERSION=`"${LD}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"`
2802 _LD_MAJOR_VERSION=`echo ${_LD_FULL_VERSION} | $AWK -F\. '{ print $1 }'`
2803 if test "$_LD_MAJOR_VERSION" != "$_CC_SUITE"; then
2804 { echo "configure: error: The linker major version, $_LD_FULL_VERSION, does not match the compiler suite version, $_CC_SUITE." 1>&2; exit 1; }
2805 fi
2806 INCREMENTAL_LINKER=1
2807
2808 unset _MSVC_VER_FILTER
2809
2810 else
2811 # Check w32api version
2812 _W32API_MAJOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $1 }'`
2813 _W32API_MINOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $2 }'`
2814 echo $ac_n "checking for w32api version >= $W32API_VERSION""... $ac_c" 1>&6
2815 echo "configure:2816: checking for w32api version >= $W32API_VERSION" >&5
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 #include <w32api.h>
2820 int main() {
2821 #if (__W32API_MAJOR_VERSION < $_W32API_MAJOR_VERSION) || \
2822 (__W32API_MAJOR_VERSION == $_W32API_MAJOR_VERSION && \
2823 __W32API_MINOR_VERSION < $_W32API_MINOR_VERSION)
2824 #error "test failed."
2825 #endif
2826
2827 ; return 0; }
2828 EOF
2829 if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2830 rm -rf conftest*
2831 res=yes
2832 else
2833 echo "configure: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2835 rm -rf conftest*
2836 res=no
2837 fi
2838 rm -f conftest*
2839 echo "$ac_t""$res" 1>&6
2840 if test "$res" != "yes"; then
2841 { echo "configure: error: w32api version $W32API_VERSION or higher required." 1>&2; exit 1; }
2842 fi
2843 # Check windres version
2844 echo $ac_n "checking for windres version >= $WINDRES_VERSION""... $ac_c" 1>&6
2845 echo "configure:2846: checking for windres version >= $WINDRES_VERSION" >&5
2846 _WINDRES_VERSION=`${WINDRES} --version 2>&1 | grep -i windres 2>/dev/null | $AWK '{ print $3 }'`
2847 echo "$ac_t""$_WINDRES_VERSION" 1>&6
2848 _WINDRES_MAJOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $1 }'`
2849 _WINDRES_MINOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $2 }'`
2850 _WINDRES_RELEASE_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $3 }'`
2851 WINDRES_MAJOR_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $1 }'`
2852 WINDRES_MINOR_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $2 }'`
2853 WINDRES_RELEASE_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $3 }'`
2854 if test "$_WINDRES_MAJOR_VERSION" -lt "$WINDRES_MAJOR_VERSION" -o \
2855 "$_WINDRES_MAJOR_VERSION" -eq "$WINDRES_MAJOR_VERSION" -a \
2856 "$_WINDRES_MINOR_VERSION" -lt "$WINDRES_MINOR_VERSION" -o \
2857 "$_WINDRES_MAJOR_VERSION" -eq "$WINDRES_MAJOR_VERSION" -a \
2858 "$_WINDRES_MINOR_VERSION" -eq "$WINDRES_MINOR_VERSION" -a \
2859 "$_WINDRES_RELEASE_VERSION" -lt "$WINDRES_RELEASE_VERSION"
2860 then
2861 { echo "configure: error: windres version $WINDRES_VERSION or higher is required to build." 1>&2; exit 1; }
2862 fi
2863 fi # !GNU_CC
2864
2865 cat >> confdefs.h <<EOF
2866 #define WINVER 0x$WINVER
2867 EOF
2868
2869 cat >> confdefs.h <<EOF
2870 #define _WIN32_WINNT 0x$WINVER
2871 EOF
2872
2873 # Require OS features provided by IE 5.0
2874 cat >> confdefs.h <<EOF
2875 #define _WIN32_IE 0x0500
2876 EOF
2877
2878 ;;
2879 esac
2880
2881 if test "$CC" != "icc" -a -z "$_WIN32_MSVC"; then
2882 if test "x$CC" != xcc; then
2883 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
2884 echo "configure:2885: checking whether $CC and cc understand -c and -o together" >&5
2885 else
2886 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
2887 echo "configure:2888: checking whether cc understands -c and -o together" >&5
2888 fi
2889 set dummy $CC; ac_cc="`echo $2 |
2890 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
2891 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2893 else
2894 echo 'foo(){}' > conftest.c
2895 # Make sure it works both with $CC and with simple cc.
2896 # We do the test twice because some compilers refuse to overwrite an
2897 # existing .o file with -o, though they will create one.
2898 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
2899 if { (eval echo configure:2900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
2900 test -f conftest.o && { (eval echo configure:2901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
2901 then
2902 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2903 if test "x$CC" != xcc; then
2904 # Test first that cc exists at all.
2905 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:2906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2906 ac_try='cc -c conftest.c -o conftest.o 1>&5'
2907 if { (eval echo configure:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
2908 test -f conftest.o && { (eval echo configure:2909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
2909 then
2910 # cc works too.
2911 :
2912 else
2913 # cc exists but doesn't like -o.
2914 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2915 fi
2916 fi
2917 fi
2918 else
2919 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2920 fi
2921 rm -f conftest*
2922
2923 fi
2924 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2925 echo "$ac_t""yes" 1>&6
2926 else
2927 echo "$ac_t""no" 1>&6
2928 cat >> confdefs.h <<\EOF
2929 #define NO_MINUS_C_MINUS_O 1
2930 EOF
2931
2932 fi
2933
2934 if grep "NO_MINUS_C_MINUS_O 1" ./confdefs.h >/dev/null; then
2935 USING_HCC=1
2936 _OLDCC=$CC
2937 _OLDCXX=$CXX
2938 CC="${srcdir}/build/hcc '$CC'"
2939 CXX="${srcdir}/build/hcpp '$CXX'"
2940 fi
2941 fi
2942
2943 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2944 echo "configure:2945: checking how to run the C preprocessor" >&5
2945 # On Suns, sometimes $CPP names a directory.
2946 if test -n "$CPP" && test -d "$CPP"; then
2947 CPP=
2948 fi
2949 if test -z "$CPP"; then
2950 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2951 echo $ac_n "(cached) $ac_c" 1>&6
2952 else
2953 # This must be in double quotes, not single quotes, because CPP may get
2954 # substituted into the Makefile and "${CC-cc}" will confuse make.
2955 CPP="${CC-cc} -E"
2956 # On the NeXT, cc -E runs the code through the compiler's parser,
2957 # not just through cpp.
2958 cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 #include <assert.h>
2962 Syntax Error
2963 EOF
2964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2965 { (eval echo configure:2966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2967 if test -z "$ac_err"; then
2968 :
2969 else
2970 echo "$ac_err" >&5
2971 echo "configure: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2973 rm -rf conftest*
2974 CPP="${CC-cc} -E -traditional-cpp"
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <assert.h>
2979 Syntax Error
2980 EOF
2981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2982 { (eval echo configure:2983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2984 if test -z "$ac_err"; then
2985 :
2986 else
2987 echo "$ac_err" >&5
2988 echo "configure: failed program was:" >&5
2989 cat conftest.$ac_ext >&5
2990 rm -rf conftest*
2991 CPP="${CC-cc} -nologo -E"
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 #include <assert.h>
2996 Syntax Error
2997 EOF
2998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2999 { (eval echo configure:3000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3001 if test -z "$ac_err"; then
3002 :
3003 else
3004 echo "$ac_err" >&5
3005 echo "configure: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3007 rm -rf conftest*
3008 CPP=/lib/cpp
3009 fi
3010 rm -f conftest*
3011 fi
3012 rm -f conftest*
3013 fi
3014 rm -f conftest*
3015 ac_cv_prog_CPP="$CPP"
3016 fi
3017 CPP="$ac_cv_prog_CPP"
3018 else
3019 ac_cv_prog_CPP="$CPP"
3020 fi
3021 echo "$ac_t""$CPP" 1>&6
3022
3023 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
3024 echo "configure:3025: checking how to run the C++ preprocessor" >&5
3025 if test -z "$CXXCPP"; then
3026 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3028 else
3029 ac_ext=C
3030 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3031 ac_cpp='$CXXCPP $CPPFLAGS'
3032 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3033 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3034 cross_compiling=$ac_cv_prog_cxx_cross
3035 CXXCPP="${CXX-g++} -E"
3036 cat > conftest.$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3039 #include <stdlib.h>
3040 EOF
3041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3042 { (eval echo configure:3043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3044 if test -z "$ac_err"; then
3045 :
3046 else
3047 echo "$ac_err" >&5
3048 echo "configure: failed program was:" >&5
3049 cat conftest.$ac_ext >&5
3050 rm -rf conftest*
3051 CXXCPP=/lib/cpp
3052 fi
3053 rm -f conftest*
3054 ac_cv_prog_CXXCPP="$CXXCPP"
3055 ac_ext=c
3056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3057 ac_cpp='$CPP $CPPFLAGS'
3058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3060 cross_compiling=$ac_cv_prog_cc_cross
3061 fi
3062 fi
3063 CXXCPP="$ac_cv_prog_CXXCPP"
3064 echo "$ac_t""$CXXCPP" 1>&6
3065
3066
3067 if test -n "$_WIN32_MSVC"; then
3068 SKIP_PATH_CHECKS=1
3069 SKIP_COMPILER_CHECKS=1
3070 SKIP_LIBRARY_CHECKS=1
3071
3072 # Since we're skipping compiler and library checks, hard-code
3073 # some facts here.
3074
3075 # Common to all MSVC environments:
3076 # Windows lacks <stdint.h>, but has __int8, and so on.
3077 cat >> confdefs.h <<\EOF
3078 #define JS_HAVE___INTN 1
3079 EOF
3080
3081
3082 case "$target" in
3083 *-wince)
3084 cat >> confdefs.h <<\EOF
3085 #define HAVE_SYSTEMTIMETOFILETIME 1
3086 EOF
3087
3088 cat >> confdefs.h <<\EOF
3089 #define JS_CRTDEFS_H_HAS_INTPTR_T 1
3090 EOF
3091
3092 ;;
3093 *)
3094 cat >> confdefs.h <<\EOF
3095 #define HAVE_SYSTEMTIMETOFILETIME 1
3096 EOF
3097
3098 cat >> confdefs.h <<\EOF
3099 #define HAVE_GETSYSTEMTIMEASFILETIME 1
3100 EOF
3101
3102 # Windows <stddef.h> defines intptr_t and uintptr_t.
3103 # VS2005: http://msdn.microsoft.com/en-us/library/323b6b3k(VS.80).aspx
3104 # VS2008: http://msdn.microsoft.com/en-us/library/323b6b3k.aspx
3105 cat >> confdefs.h <<\EOF
3106 #define JS_STDDEF_H_HAS_INTPTR_T 1
3107 EOF
3108
3109 ;;
3110 esac
3111 fi
3112
3113 fi # COMPILE_ENVIRONMENT
3114
3115 if test "$cross_compiling" = "yes"; then
3116 CROSS_COMPILE=1
3117 else
3118 CROSS_COMPILE=
3119 fi
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130 # Find a good install program. We prefer a C program (faster),
3131 # so one script is as good as another. But avoid the broken or
3132 # incompatible versions:
3133 # SysV /etc/install, /usr/sbin/install
3134 # SunOS /usr/etc/install
3135 # IRIX /sbin/install
3136 # AIX /bin/install
3137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3140 # ./install, which can be erroneously created by make from ./install.sh.
3141 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3142 echo "configure:3143: checking for a BSD compatible install" >&5
3143 if test -z "$INSTALL"; then
3144 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3146 else
3147 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3148 for ac_dir in $PATH; do
3149 # Account for people who put trailing slashes in PATH elements.
3150 case "$ac_dir/" in
3151 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3152 *)
3153 # OSF1 and SCO ODT 3.0 have their own names for install.
3154 # Don't use installbsd from OSF since it installs stuff as root
3155 # by default.
3156 for ac_prog in ginstall scoinst install; do
3157 if test -f $ac_dir/$ac_prog; then
3158 if test $ac_prog = install &&
3159 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3160 # AIX install. It has an incompatible calling convention.
3161 :
3162 else
3163 ac_cv_path_install="$ac_dir/$ac_prog -c"
3164 break 2
3165 fi
3166 fi
3167 done
3168 ;;
3169 esac
3170 done
3171 IFS="$ac_save_IFS"
3172
3173 fi
3174 if test "${ac_cv_path_install+set}" = set; then
3175 INSTALL="$ac_cv_path_install"
3176 else
3177 # As a last resort, use the slow shell script. We don't cache a
3178 # path for INSTALL within a source directory, because that will
3179 # break other packages using the cache if that directory is
3180 # removed, or if the path is relative.
3181 INSTALL="$ac_install_sh"
3182 fi
3183 fi
3184 echo "$ac_t""$INSTALL" 1>&6
3185
3186 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3187 # It thinks the first close brace ends the variable substitution.
3188 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3189
3190 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3191
3192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3193
3194 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3195 echo "configure:3196: checking whether ln -s works" >&5
3196 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3198 else
3199 rm -f conftestdata
3200 if ln -s X conftestdata 2>/dev/null
3201 then
3202 rm -f conftestdata
3203 ac_cv_prog_LN_S="ln -s"
3204 else
3205 ac_cv_prog_LN_S=ln
3206 fi
3207 fi
3208 LN_S="$ac_cv_prog_LN_S"
3209 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3210 echo "$ac_t""yes" 1>&6
3211 else
3212 echo "$ac_t""no" 1>&6
3213 fi
3214
3215 for ac_prog in $PERL perl5 perl
3216 do
3217 # Extract the first word of "$ac_prog", so it can be a program name with args.
3218 set dummy $ac_prog; ac_word=$2
3219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_word" >&5
3221 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3223 else
3224 case "$PERL" in
3225 /*)
3226 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3227 ;;
3228 ?:/*)
3229 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3230 ;;
3231 *)
3232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3233 ac_dummy="$PATH"
3234 for ac_dir in $ac_dummy; do
3235 test -z "$ac_dir" && ac_dir=.
3236 if test -f $ac_dir/$ac_word; then
3237 ac_cv_path_PERL="$ac_dir/$ac_word"
3238 break
3239 fi
3240 done
3241 IFS="$ac_save_ifs"
3242 ;;
3243 esac
3244 fi
3245 PERL="$ac_cv_path_PERL"
3246 if test -n "$PERL"; then
3247 echo "$ac_t""$PERL" 1>&6
3248 else
3249 echo "$ac_t""no" 1>&6
3250 fi
3251
3252 test -n "$PERL" && break
3253 done
3254
3255 if test "$msyshost"; then
3256 case "$PERL" in
3257 /*)
3258 tmp_DIRNAME=`dirname "$PERL"`
3259 tmp_BASENAME=`basename "$PERL"`
3260 tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3261 PERL="$tmp_PWD/$tmp_BASENAME"
3262 if test -e "$PERL.exe"; then
3263 PERL="$PERL.exe"
3264 fi
3265 esac
3266 fi
3267
3268 if test -z "$PERL" || test "$PERL" = ":"; then
3269 { echo "configure: error: perl not found in \$PATH" 1>&2; exit 1; }
3270 fi
3271
3272 if test -z "$TINDERBOX_SKIP_PERL_VERSION_CHECK"; then
3273 echo $ac_n "checking for minimum required perl version >= $PERL_VERSION""... $ac_c" 1>&6
3274 echo "configure:3275: checking for minimum required perl version >= $PERL_VERSION" >&5
3275 _perl_version=`PERL_VERSION=$PERL_VERSION $PERL -e 'print "$]"; if ($] >= $ENV{PERL_VERSION}) { exit(0); } else { exit(1); }' 2>&5`
3276 _perl_res=$?
3277 echo "$ac_t""$_perl_version" 1>&6
3278
3279 if test "$_perl_res" != 0; then
3280 { echo "configure: error: Perl $PERL_VERSION or higher is required." 1>&2; exit 1; }
3281 fi
3282 fi
3283
3284 echo $ac_n "checking for full perl installation""... $ac_c" 1>&6
3285 echo "configure:3286: checking for full perl installation" >&5
3286 _perl_archlib=`$PERL -e 'use Config; if ( -d $Config{archlib} ) { exit(0); } else { exit(1); }' 2>&5`
3287 _perl_res=$?
3288 if test "$_perl_res" != 0; then
3289 echo "$ac_t""no" 1>&6
3290 { echo "configure: error: Cannot find Config.pm or \$Config{archlib}. A full perl installation is required." 1>&2; exit 1; }
3291 else
3292 echo "$ac_t""yes" 1>&6
3293 fi
3294
3295 for ac_prog in $PYTHON python
3296 do
3297 # Extract the first word of "$ac_prog", so it can be a program name with args.
3298 set dummy $ac_prog; ac_word=$2
3299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3300 echo "configure:3301: checking for $ac_word" >&5
3301 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3303 else
3304 case "$PYTHON" in
3305 /*)
3306 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3307 ;;
3308 ?:/*)
3309 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
3310 ;;
3311 *)
3312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3313 ac_dummy="$PATH"
3314 for ac_dir in $ac_dummy; do
3315 test -z "$ac_dir" && ac_dir=.
3316 if test -f $ac_dir/$ac_word; then
3317 ac_cv_path_PYTHON="$ac_dir/$ac_word"
3318 break
3319 fi
3320 done
3321 IFS="$ac_save_ifs"
3322 ;;
3323 esac
3324 fi
3325 PYTHON="$ac_cv_path_PYTHON"
3326 if test -n "$PYTHON"; then
3327 echo "$ac_t""$PYTHON" 1>&6
3328 else
3329 echo "$ac_t""no" 1>&6
3330 fi
3331
3332 test -n "$PYTHON" && break
3333 done
3334
3335 if test "$msyshost"; then
3336 case "$PYTHON" in
3337 /*)
3338 tmp_DIRNAME=`dirname "$PYTHON"`
3339 tmp_BASENAME=`basename "$PYTHON"`
3340 tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3341 PYTHON="$tmp_PWD/$tmp_BASENAME"
3342 if test -e "$PYTHON.exe"; then
3343 PYTHON="$PYTHON.exe"
3344 fi
3345 esac
3346 fi
3347
3348 if test -z "$PYTHON"; then
3349 { echo "configure: error: python was not found in \$PATH" 1>&2; exit 1; }
3350 fi
3351
3352 if test -z "$COMPILE_ENVIRONMENT"; then
3353 NSINSTALL_BIN='$(PYTHON) $(topsrcdir)/config/nsinstall.py'
3354 fi
3355
3356
3357 # Extract the first word of "doxygen", so it can be a program name with args.
3358 set dummy doxygen; ac_word=$2
3359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3360 echo "configure:3361: checking for $ac_word" >&5
3361 if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3363 else
3364 case "$DOXYGEN" in
3365 /*)
3366 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
3367 ;;
3368 ?:/*)
3369 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a dos path.
3370 ;;
3371 *)
3372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3373 ac_dummy="$PATH"
3374 for ac_dir in $ac_dummy; do
3375 test -z "$ac_dir" && ac_dir=.
3376 if test -f $ac_dir/$ac_word; then
3377 ac_cv_path_DOXYGEN="$ac_dir/$ac_word"
3378 break
3379 fi
3380 done
3381 IFS="$ac_save_ifs"
3382 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN=":"
3383 ;;
3384 esac
3385 fi
3386 DOXYGEN="$ac_cv_path_DOXYGEN"
3387 if test -n "$DOXYGEN"; then
3388 echo "$ac_t""$DOXYGEN" 1>&6
3389 else
3390 echo "$ac_t""no" 1>&6
3391 fi
3392
3393 if test "$msyshost"; then
3394 case "$DOXYGEN" in
3395 /*)
3396 tmp_DIRNAME=`dirname "$DOXYGEN"`
3397 tmp_BASENAME=`basename "$DOXYGEN"`
3398 tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3399 DOXYGEN="$tmp_PWD/$tmp_BASENAME"
3400 if test -e "$DOXYGEN.exe"; then
3401 DOXYGEN="$DOXYGEN.exe"
3402 fi
3403 esac
3404 fi
3405
3406 # Extract the first word of "whoami", so it can be a program name with args.
3407 set dummy whoami; ac_word=$2
3408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3409 echo "configure:3410: checking for $ac_word" >&5
3410 if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3412 else
3413 case "$WHOAMI" in
3414 /*)
3415 ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
3416 ;;
3417 ?:/*)
3418 ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a dos path.
3419 ;;
3420 *)
3421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3422 ac_dummy="$PATH"
3423 for ac_dir in $ac_dummy; do
3424 test -z "$ac_dir" && ac_dir=.
3425 if test -f $ac_dir/$ac_word; then
3426 ac_cv_path_WHOAMI="$ac_dir/$ac_word"
3427 break
3428 fi
3429