Parent Directory
|
Revision Log
Update SpiderMonkey from Firefox 3.6rc1.
1 | siliconforks | 460 | #! /bin/sh |
2 | |||
3 | siliconforks | 507 | if test `uname -s | grep -c MINGW 2>/dev/null` != "0"; then |
4 | msyshost=1 | ||
5 | fi | ||
6 | |||
7 | siliconforks | 460 | # Guess values for system-dependent variables and create Makefiles. |
8 | # Generated automatically using autoconf version 2.13 | ||
9 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | ||
10 | # | ||
11 | # This configure script is free software; the Free Software Foundation | ||
12 | # gives unlimited permission to copy, distribute and modify it. | ||
13 | |||
14 | # Defaults: | ||
15 | ac_help= | ||
16 | ac_default_prefix=/usr/local | ||
17 | # Any additions from configure.in: | ||
18 | ac_help="$ac_help | ||
19 | --with-dist-dir=DIR Use DIR as 'dist' staging area. DIR may be | ||
20 | relative to the top of SpiderMonkey build tree, | ||
21 | or absolute." | ||
22 | ac_help="$ac_help | ||
23 | --disable-compile-environment | ||
24 | Disable compiler/library checks." | ||
25 | ac_help="$ac_help | ||
26 | siliconforks | 507 | --with-symbian-sdk=SYMBIAN_SDK_DIR |
27 | The path to the Symbian SDK" | ||
28 | siliconforks | 460 | ac_help="$ac_help |
29 | --enable-macos-target=VER (default=10.4) | ||
30 | Set the minimum MacOS version needed at runtime" | ||
31 | ac_help="$ac_help | ||
32 | --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only)" | ||
33 | ac_help="$ac_help | ||
34 | --with-x use the X Window System" | ||
35 | ac_help="$ac_help | ||
36 | --disable-os2-high-mem Disable high-memory support on OS/2" | ||
37 | ac_help="$ac_help | ||
38 | siliconforks | 507 | --disable-windows-mobile-components |
39 | Disable Windows Mobile specific components from CE build" | ||
40 | ac_help="$ac_help | ||
41 | siliconforks | 460 | --disable-jit Disable JIT support" |
42 | ac_help="$ac_help | ||
43 | --enable-dtrace build with dtrace support if available (default=no)" | ||
44 | ac_help="$ac_help | ||
45 | --with-pthreads Force use of system pthread library with NSPR " | ||
46 | ac_help="$ac_help | ||
47 | --with-system-nspr Use an NSPR that is already built and installed. | ||
48 | Use the 'nspr-config' script in the current path, | ||
49 | or look for the script in the directories given with | ||
50 | siliconforks | 507 | --with-nspr-exec-prefix or --with-nspr-prefix. |
51 | (Those flags are only checked if you specify | ||
52 | --with-system-nspr.)" | ||
53 | siliconforks | 460 | ac_help="$ac_help |
54 | --with-nspr-cflags=FLAGS Pass FLAGS to CC when building code that uses NSPR. | ||
55 | Use this when there's no accurate nspr-config | ||
56 | script available. This is the case when building | ||
57 | SpiderMonkey as part of the Mozilla tree: the | ||
58 | top-level configure script computes NSPR flags | ||
59 | that accomodate the quirks of that environment." | ||
60 | ac_help="$ac_help | ||
61 | --with-nspr-libs=LIBS Pass LIBS to LD when linking code that uses NSPR. | ||
62 | See --with-nspr-cflags for more details." | ||
63 | ac_help="$ac_help | ||
64 | --with-nspr-prefix=PFX Prefix where NSPR is installed" | ||
65 | ac_help="$ac_help | ||
66 | --with-nspr-exec-prefix=PFX | ||
67 | Exec prefix where NSPR is installed" | ||
68 | ac_help="$ac_help | ||
69 | --with-arm-kuser Use kuser helpers (Linux/ARM only -- requires kernel 2.6.13 or later)" | ||
70 | ac_help="$ac_help | ||
71 | --enable-ui-locale=ab-CD | ||
72 | Select the user interface locale (default: en-US)" | ||
73 | ac_help="$ac_help | ||
74 | --disable-tests Do not build test libraries & programs" | ||
75 | ac_help="$ac_help | ||
76 | --enable-debug[=DBG] Enable building with developer debug info | ||
77 | (Using compiler flags DBG)" | ||
78 | ac_help="$ac_help | ||
79 | --disable-optimize Disable compiler optimization | ||
80 | --enable-optimize=[OPT] Specify compiler optimization flags [OPT=-O]" | ||
81 | ac_help="$ac_help | ||
82 | --enable-debug-modules Enable/disable debug info for specific modules" | ||
83 | ac_help="$ac_help | ||
84 | --enable-debugger-info-modules | ||
85 | Enable/disable debugger info for specific modules" | ||
86 | ac_help="$ac_help | ||
87 | --enable-boehm Enable the Boehm Garbage Collector" | ||
88 | ac_help="$ac_help | ||
89 | --enable-narcissus Build with Narcissus code enabled" | ||
90 | ac_help="$ac_help | ||
91 | --enable-trace-malloc Enable malloc tracing" | ||
92 | ac_help="$ac_help | ||
93 | --enable-jemalloc Replace memory allocator with jemalloc" | ||
94 | ac_help="$ac_help | ||
95 | --enable-wrap-malloc Wrap malloc calls (gnu linker only)" | ||
96 | ac_help="$ac_help | ||
97 | --with-wrap-malloc=DIR Location of malloc wrapper library" | ||
98 | ac_help="$ac_help | ||
99 | siliconforks | 507 | --enable-tracevis Enable TraceVis tracing tool (default=no)" |
100 | ac_help="$ac_help | ||
101 | siliconforks | 460 | --enable-valgrind Enable Valgrind integration hooks (default=no)" |
102 | ac_help="$ac_help | ||
103 | --enable-efence Link with Electric Fence" | ||
104 | ac_help="$ac_help | ||
105 | --enable-jprof Enable jprof profiling tool (needs mozilla/tools/jprof)" | ||
106 | ac_help="$ac_help | ||
107 | --enable-shark Enable shark remote profiling (needs CHUD framework)" | ||
108 | ac_help="$ac_help | ||
109 | --enable-callgrind Enable callgrind profiling" | ||
110 | ac_help="$ac_help | ||
111 | --enable-vtune Enable vtune profiling" | ||
112 | ac_help="$ac_help | ||
113 | siliconforks | 507 | --enable-gczeal Enable zealous GCing" |
114 | ac_help="$ac_help | ||
115 | siliconforks | 460 | --with-static-checking=path/to/gcc_dehydra.so |
116 | Enable static checking of code using GCC-dehydra" | ||
117 | ac_help="$ac_help | ||
118 | --enable-strip Enable stripping of libs & executables " | ||
119 | ac_help="$ac_help | ||
120 | --enable-install-strip Enable stripping of libs & executables when packaging " | ||
121 | ac_help="$ac_help | ||
122 | --enable-old-abi-compat-wrappers | ||
123 | Support old GCC ABI symbols to ease the pain | ||
124 | of the linux compiler change" | ||
125 | ac_help="$ac_help | ||
126 | --enable-timeline Enable timeline services " | ||
127 | ac_help="$ac_help | ||
128 | --enable-eazel-profiler-support | ||
129 | Enable Corel/Eazel profiler support" | ||
130 | ac_help="$ac_help | ||
131 | --enable-profile-modules | ||
132 | Enable/disable profiling for specific modules" | ||
133 | ac_help="$ac_help | ||
134 | --enable-insure Enable insure++ instrumentation (linux only)" | ||
135 | ac_help="$ac_help | ||
136 | --with-insure-dirs=DIRS | ||
137 | Dirs to instrument with insure " | ||
138 | ac_help="$ac_help | ||
139 | --with-insure-exclude-dirs=DIRS | ||
140 | Dirs to not instrument with insure " | ||
141 | ac_help="$ac_help | ||
142 | --enable-quantify Enable Quantify support (Windows only) " | ||
143 | ac_help="$ac_help | ||
144 | --enable-xterm-updates Update XTERM titles with current command." | ||
145 | ac_help="$ac_help | ||
146 | --enable-long-long-warning | ||
147 | Warn about use of non-ANSI long long type" | ||
148 | ac_help="$ac_help | ||
149 | --disable-profile-guided-optimization | ||
150 | Don't build with PGO even if called via make profiledbuild" | ||
151 | ac_help="$ac_help | ||
152 | --disable-pedantic Issue all warnings demanded by strict ANSI C " | ||
153 | ac_help="$ac_help | ||
154 | --enable-cpp-rtti Enable C++ RTTI " | ||
155 | ac_help="$ac_help | ||
156 | --enable-cpp-exceptions Enable C++ exceptions " | ||
157 | ac_help="$ac_help | ||
158 | --disable-auto-deps Do not automatically generate dependency info" | ||
159 | ac_help="$ac_help | ||
160 | --disable-md Do not use compiler-based dependencies " | ||
161 | ac_help="$ac_help | ||
162 | --enable-static Enable building of internal static libs" | ||
163 | ac_help="$ac_help | ||
164 | siliconforks | 507 | --enable-readline Link js shell to system readline library" |
165 | siliconforks | 460 | ac_help="$ac_help |
166 | --with-sync-build-files=DIR | ||
167 | Check that files in 'config' and 'build' match | ||
168 | their originals in 'DIR/config' and 'DIR/build'. | ||
169 | This helps keep the SpiderMonkey build machinery | ||
170 | in sync with Mozilla's, on which it is based." | ||
171 | ac_help="$ac_help | ||
172 | --enable-threadsafe Enable support for multiple threads." | ||
173 | |||
174 | # Initialize some variables set by options. | ||
175 | # The variables have the same names as the options, with | ||
176 | # dashes changed to underlines. | ||
177 | build=NONE | ||
178 | cache_file=./config.cache | ||
179 | exec_prefix=NONE | ||
180 | host=NONE | ||
181 | no_create= | ||
182 | nonopt=NONE | ||
183 | no_recursion= | ||
184 | prefix=NONE | ||
185 | program_prefix=NONE | ||
186 | program_suffix=NONE | ||
187 | program_transform_name=s,x,x, | ||
188 | silent= | ||
189 | site= | ||
190 | srcdir= | ||
191 | target=NONE | ||
192 | verbose= | ||
193 | x_includes=NONE | ||
194 | x_libraries=NONE | ||
195 | bindir='${exec_prefix}/bin' | ||
196 | sbindir='${exec_prefix}/sbin' | ||
197 | libexecdir='${exec_prefix}/libexec' | ||
198 | datadir='${prefix}/share' | ||
199 | sysconfdir='${prefix}/etc' | ||
200 | sharedstatedir='${prefix}/com' | ||
201 | localstatedir='${prefix}/var' | ||
202 | libdir='${exec_prefix}/lib' | ||
203 | includedir='${prefix}/include' | ||
204 | oldincludedir='/usr/include' | ||
205 | infodir='${prefix}/info' | ||
206 | mandir='${prefix}/man' | ||
207 | |||
208 | # Initialize some other variables. | ||
209 | subdirs= | ||
210 | MFLAGS= MAKEFLAGS= | ||
211 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
212 | # Maximum number of lines to put in a shell here document. | ||
213 | ac_max_here_lines=12 | ||
214 | |||
215 | ac_prev= | ||
216 | for ac_option | ||
217 | do | ||
218 | |||
219 | # If the previous option needs an argument, assign it. | ||
220 | if test -n "$ac_prev"; then | ||
221 | eval "$ac_prev=\$ac_option" | ||
222 | ac_prev= | ||
223 | continue | ||
224 | fi | ||
225 | |||
226 | case "$ac_option" in | ||
227 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | ||
228 | *) ac_optarg= ;; | ||
229 | esac | ||
230 | |||
231 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
232 | |||
233 | case "$ac_option" in | ||
234 | |||
235 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
236 | ac_prev=bindir ;; | ||
237 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
238 | bindir="$ac_optarg" ;; | ||
239 | |||
240 | -build | --build | --buil | --bui | --bu) | ||
241 | ac_prev=build ;; | ||
242 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
243 | build="$ac_optarg" ;; | ||
244 | |||
245 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
246 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
247 | ac_prev=cache_file ;; | ||
248 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
249 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
250 | cache_file="$ac_optarg" ;; | ||
251 | |||
252 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
253 | ac_prev=datadir ;; | ||
254 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
255 | | --da=*) | ||
256 | datadir="$ac_optarg" ;; | ||
257 | |||
258 | -disable-* | --disable-*) | ||
259 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | ||
260 | # Reject names that are not valid shell variable names. | ||
261 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | ||
262 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | ||
263 | fi | ||
264 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | ||
265 | eval "enable_${ac_feature}=no" ;; | ||
266 | |||
267 | -enable-* | --enable-*) | ||
268 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | ||
269 | # Reject names that are not valid shell variable names. | ||
270 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | ||
271 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | ||
272 | fi | ||
273 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | ||
274 | case "$ac_option" in | ||
275 | *=*) ;; | ||
276 | *) ac_optarg=yes ;; | ||
277 | esac | ||
278 | eval "enable_${ac_feature}='$ac_optarg'" ;; | ||
279 | |||
280 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
281 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
282 | | --exec | --exe | --ex) | ||
283 | ac_prev=exec_prefix ;; | ||
284 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
285 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
286 | | --exec=* | --exe=* | --ex=*) | ||
287 | exec_prefix="$ac_optarg" ;; | ||
288 | |||
289 | -gas | --gas | --ga | --g) | ||
290 | # Obsolete; use --with-gas. | ||
291 | with_gas=yes ;; | ||
292 | |||
293 | -help | --help | --hel | --he) | ||
294 | # Omit some internal or obsolete options to make the list less imposing. | ||
295 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
296 | cat << EOF | ||
297 | Usage: configure [options] [host] | ||
298 | Options: [defaults in brackets after descriptions] | ||
299 | Configuration: | ||
300 | --cache-file=FILE cache test results in FILE | ||
301 | --help print this message | ||
302 | --no-create do not create output files | ||
303 | --quiet, --silent do not print \`checking...' messages | ||
304 | --version print the version of autoconf that created configure | ||
305 | Directory and file names: | ||
306 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
307 | [$ac_default_prefix] | ||
308 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
309 | [same as prefix] | ||
310 | --bindir=DIR user executables in DIR [EPREFIX/bin] | ||
311 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | ||
312 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | ||
313 | --datadir=DIR read-only architecture-independent data in DIR | ||
314 | [PREFIX/share] | ||
315 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | ||
316 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | ||
317 | [PREFIX/com] | ||
318 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | ||
319 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | ||
320 | --includedir=DIR C header files in DIR [PREFIX/include] | ||
321 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | ||
322 | --infodir=DIR info documentation in DIR [PREFIX/info] | ||
323 | --mandir=DIR man documentation in DIR [PREFIX/man] | ||
324 | --srcdir=DIR find the sources in DIR [configure dir or ..] | ||
325 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
326 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
327 | --program-transform-name=PROGRAM | ||
328 | run sed PROGRAM on installed program names | ||
329 | EOF | ||
330 | cat << EOF | ||
331 | Host type: | ||
332 | --build=BUILD configure for building on BUILD [BUILD=HOST] | ||
333 | --host=HOST configure for HOST [guessed] | ||
334 | --target=TARGET configure for TARGET [TARGET=HOST] | ||
335 | Features and packages: | ||
336 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
337 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
338 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
339 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
340 | --x-includes=DIR X include files are in DIR | ||
341 | --x-libraries=DIR X library files are in DIR | ||
342 | EOF | ||
343 | if test -n "$ac_help"; then | ||
344 | echo "--enable and --with options recognized:$ac_help" | ||
345 | fi | ||
346 | exit 0 ;; | ||
347 | |||
348 | -host | --host | --hos | --ho) | ||
349 | ac_prev=host ;; | ||
350 | -host=* | --host=* | --hos=* | --ho=*) | ||
351 | host="$ac_optarg" ;; | ||
352 | |||
353 | -includedir | --includedir | --includedi | --included | --include \ | ||
354 | | --includ | --inclu | --incl | --inc) | ||
355 | ac_prev=includedir ;; | ||
356 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
357 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
358 | includedir="$ac_optarg" ;; | ||
359 | |||
360 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
361 | ac_prev=infodir ;; | ||
362 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
363 | infodir="$ac_optarg" ;; | ||
364 | |||
365 | -libdir | --libdir | --libdi | --libd) | ||
366 | ac_prev=libdir ;; | ||
367 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
368 | libdir="$ac_optarg" ;; | ||
369 | |||
370 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
371 | | --libexe | --libex | --libe) | ||
372 | ac_prev=libexecdir ;; | ||
373 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
374 | | --libexe=* | --libex=* | --libe=*) | ||
375 | libexecdir="$ac_optarg" ;; | ||
376 | |||
377 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
378 | | --localstate | --localstat | --localsta | --localst \ | ||
379 | | --locals | --local | --loca | --loc | --lo) | ||
380 | ac_prev=localstatedir ;; | ||
381 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
382 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
383 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
384 | localstatedir="$ac_optarg" ;; | ||
385 | |||
386 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
387 | ac_prev=mandir ;; | ||
388 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
389 | mandir="$ac_optarg" ;; | ||
390 | |||
391 | -nfp | --nfp | --nf) | ||
392 | # Obsolete; use --without-fp. | ||
393 | with_fp=no ;; | ||
394 | |||
395 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
396 | | --no-cr | --no-c) | ||
397 | no_create=yes ;; | ||
398 | |||
399 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
400 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
401 | no_recursion=yes ;; | ||
402 | |||
403 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
404 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
405 | | --oldin | --oldi | --old | --ol | --o) | ||
406 | ac_prev=oldincludedir ;; | ||
407 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
408 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
409 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
410 | oldincludedir="$ac_optarg" ;; | ||
411 | |||
412 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
413 | ac_prev=prefix ;; | ||
414 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
415 | prefix="$ac_optarg" ;; | ||
416 | |||
417 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
418 | | --program-pre | --program-pr | --program-p) | ||
419 | ac_prev=program_prefix ;; | ||
420 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
421 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
422 | program_prefix="$ac_optarg" ;; | ||
423 | |||
424 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
425 | | --program-suf | --program-su | --program-s) | ||
426 | ac_prev=program_suffix ;; | ||
427 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
428 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
429 | program_suffix="$ac_optarg" ;; | ||
430 | |||
431 | -program-transform-name | --program-transform-name \ | ||
432 | | --program-transform-nam | --program-transform-na \ | ||
433 | | --program-transform-n | --program-transform- \ | ||
434 | | --program-transform | --program-transfor \ | ||
435 | | --program-transfo | --program-transf \ | ||
436 | | --program-trans | --program-tran \ | ||
437 | | --progr-tra | --program-tr | --program-t) | ||
438 | ac_prev=program_transform_name ;; | ||
439 | -program-transform-name=* | --program-transform-name=* \ | ||
440 | | --program-transform-nam=* | --program-transform-na=* \ | ||
441 | | --program-transform-n=* | --program-transform-=* \ | ||
442 | | --program-transform=* | --program-transfor=* \ | ||
443 | | --program-transfo=* | --program-transf=* \ | ||
444 | | --program-trans=* | --program-tran=* \ | ||
445 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
446 | program_transform_name="$ac_optarg" ;; | ||
447 | |||
448 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
449 | | -silent | --silent | --silen | --sile | --sil) | ||
450 | silent=yes ;; | ||
451 | |||
452 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
453 | ac_prev=sbindir ;; | ||
454 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
455 | | --sbi=* | --sb=*) | ||
456 | sbindir="$ac_optarg" ;; | ||
457 | |||
458 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
459 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
460 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
461 | | --sha | --sh) | ||
462 | ac_prev=sharedstatedir ;; | ||
463 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
464 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
465 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
466 | | --sha=* | --sh=*) | ||
467 | sharedstatedir="$ac_optarg" ;; | ||
468 | |||
469 | -site | --site | --sit) | ||
470 | ac_prev=site ;; | ||
471 | -site=* | --site=* | --sit=*) | ||
472 | site="$ac_optarg" ;; | ||
473 | |||
474 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
475 | ac_prev=srcdir ;; | ||
476 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
477 | srcdir="$ac_optarg" ;; | ||
478 | |||
479 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
480 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
481 | ac_prev=sysconfdir ;; | ||
482 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
483 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
484 | sysconfdir="$ac_optarg" ;; | ||
485 | |||
486 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
487 | ac_prev=target ;; | ||
488 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
489 | target="$ac_optarg" ;; | ||
490 | |||
491 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
492 | verbose=yes ;; | ||
493 | |||
494 | -version | --version | --versio | --versi | --vers) | ||
495 | echo "configure generated by autoconf version 2.13" | ||
496 | exit 0 ;; | ||
497 | |||
498 | -with-* | --with-*) | ||
499 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | ||
500 | # Reject names that are not valid shell variable names. | ||
501 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | ||
502 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | ||
503 | fi | ||
504 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
505 | case "$ac_option" in | ||
506 | *=*) ;; | ||
507 | *) ac_optarg=yes ;; | ||
508 | esac | ||
509 | eval "with_${ac_package}='$ac_optarg'" ;; | ||
510 | |||
511 | -without-* | --without-*) | ||
512 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | ||
513 | # Reject names that are not valid shell variable names. | ||
514 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | ||
515 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | ||
516 | fi | ||
517 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
518 | eval "with_${ac_package}=no" ;; | ||
519 | |||
520 | --x) | ||
521 | # Obsolete; use --with-x. | ||
522 | with_x=yes ;; | ||
523 | |||
524 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
525 | | --x-incl | --x-inc | --x-in | --x-i) | ||
526 | ac_prev=x_includes ;; | ||
527 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
528 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
529 | x_includes="$ac_optarg" ;; | ||
530 | |||
531 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
532 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
533 | ac_prev=x_libraries ;; | ||
534 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
535 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
536 | x_libraries="$ac_optarg" ;; | ||
537 | |||
538 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | ||
539 | ;; | ||
540 | |||
541 | *) | ||
542 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | ||
543 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | ||
544 | fi | ||
545 | if test "x$nonopt" != xNONE; then | ||
546 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | ||
547 | fi | ||
548 | nonopt="$ac_option" | ||
549 | ;; | ||
550 | |||
551 | esac | ||
552 | done | ||
553 | |||
554 | if test -n "$ac_prev"; then | ||
555 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | ||
556 | fi | ||
557 | |||
558 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | ||
559 | |||
560 | # File descriptor usage: | ||
561 | # 0 standard input | ||
562 | # 1 file creation | ||
563 | # 2 errors and warnings | ||
564 | # 3 some systems may open it to /dev/tty | ||
565 | # 4 used on the Kubota Titan | ||
566 | # 6 checking for... messages and results | ||
567 | # 5 compiler messages saved in config.log | ||
568 | if test "$silent" = yes; then | ||
569 | exec 6>/dev/null | ||
570 | else | ||
571 | exec 6>&1 | ||
572 | fi | ||
573 | exec 5>./config.log | ||
574 | |||
575 | echo "\ | ||
576 | This file contains any messages produced by compilers while | ||
577 | running configure, to aid debugging if configure makes a mistake. | ||
578 | " 1>&5 | ||
579 | |||
580 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
581 | # Also quote any args containing shell metacharacters. | ||
582 | ac_configure_args= | ||
583 | for ac_arg | ||
584 | do | ||
585 | case "$ac_arg" in | ||
586 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
587 | | --no-cr | --no-c) ;; | ||
588 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
589 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | ||
590 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | ||
591 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
592 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | ||
593 | esac | ||
594 | done | ||
595 | |||
596 | # NLS nuisances. | ||
597 | # Only set these to C if already set. These must not be set unconditionally | ||
598 | # because not all systems understand e.g. LANG=C (notably SCO). | ||
599 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | ||
600 | # Non-C LC_CTYPE values break the ctype check. | ||
601 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | ||
602 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | ||
603 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | ||
604 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | ||
605 | |||
606 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
607 | rm -rf conftest* confdefs.h | ||
608 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
609 | echo > confdefs.h | ||
610 | |||
611 | # A filename unique to this package, relative to the directory that | ||
612 | # configure is in, which we can look for to find out if srcdir is correct. | ||
613 | ac_unique_file=jsapi.h | ||
614 | |||
615 | # Find the source files, if location was not specified. | ||
616 | if test -z "$srcdir"; then | ||
617 | ac_srcdir_defaulted=yes | ||
618 | # Try the directory containing this script, then its parent. | ||
619 | ac_prog=$0 | ||
620 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | ||
621 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | ||
622 | srcdir=$ac_confdir | ||
623 | if test ! -r $srcdir/$ac_unique_file; then | ||
624 | srcdir=.. | ||
625 | fi | ||
626 | else | ||
627 | ac_srcdir_defaulted=no | ||
628 | fi | ||
629 | if test ! -r $srcdir/$ac_unique_file; then | ||
630 | if test "$ac_srcdir_defaulted" = yes; then | ||
631 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | ||
632 | else | ||
633 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | ||
634 | fi | ||
635 | fi | ||
636 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | ||
637 | |||
638 | # Prefer explicitly selected file to automatically selected ones. | ||
639 | if test -z "$CONFIG_SITE"; then | ||
640 | if test "x$prefix" != xNONE; then | ||
641 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
642 | else | ||
643 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
644 | fi | ||
645 | fi | ||
646 | for ac_site_file in $CONFIG_SITE; do | ||
647 | if test -r "$ac_site_file"; then | ||
648 | echo "loading site script $ac_site_file" | ||
649 | . "$ac_site_file" | ||
650 | fi | ||
651 | done | ||
652 | |||
653 | if test -r "$cache_file"; then | ||
654 | echo "loading cache $cache_file" | ||
655 | . $cache_file | ||
656 | else | ||
657 | echo "creating cache $cache_file" | ||
658 | > $cache_file | ||
659 | fi | ||
660 | |||
661 | ac_ext=c | ||
662 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
663 | ac_cpp='$CPP $CPPFLAGS' | ||
664 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
665 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
666 | cross_compiling=$ac_cv_prog_cc_cross | ||
667 | |||
668 | ac_exeext= | ||
669 | ac_objext=o | ||
670 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | ||
671 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | ||
672 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | ||
673 | ac_n= ac_c=' | ||
674 | ' ac_t=' ' | ||
675 | else | ||
676 | ac_n=-n ac_c= ac_t= | ||
677 | fi | ||
678 | else | ||
679 | ac_n= ac_c='\c' ac_t= | ||
680 | fi | ||
681 | |||
682 | |||
683 | ac_aux_dir= | ||
684 | for ac_dir in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf; do | ||
685 | if test -f $ac_dir/install-sh; then | ||
686 | ac_aux_dir=$ac_dir | ||
687 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
688 | break | ||
689 | elif test -f $ac_dir/install.sh; then | ||
690 | ac_aux_dir=$ac_dir | ||
691 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
692 | break | ||
693 | fi | ||
694 | done | ||
695 | if test -z "$ac_aux_dir"; then | ||
696 | { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf" 1>&2; exit 1; } | ||
697 | fi | ||
698 | ac_config_guess=$ac_aux_dir/config.guess | ||
699 | ac_config_sub=$ac_aux_dir/config.sub | ||
700 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | ||
701 | |||
702 | |||
703 | |||
704 | # Do some error checking and defaulting for the host and target type. | ||
705 | # The inputs are: | ||
706 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | ||
707 | # | ||
708 | # The rules are: | ||
709 | # 1. You are not allowed to specify --host, --target, and nonopt at the | ||
710 | # same time. | ||
711 | # 2. Host defaults to nonopt. | ||
712 | # 3. If nonopt is not specified, then host defaults to the current host, | ||
713 | # as determined by config.guess. | ||
714 | # 4. Target and build default to nonopt. | ||
715 | # 5. If nonopt is not specified, then target and build default to host. | ||
716 | |||
717 | # The aliases save the names the user supplied, while $host etc. | ||
718 | # will get canonicalized. | ||
719 | case $host---$target---$nonopt in | ||
720 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | ||
721 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | ||
722 | esac | ||
723 | |||
724 | |||
725 | # Make sure we can run config.sub. | ||
726 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | ||
727 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | ||
728 | fi | ||
729 | |||
730 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | ||
731 | siliconforks | 507 | echo "configure:732: checking host system type" >&5 |
732 | siliconforks | 460 | |
733 | host_alias=$host | ||
734 | case "$host_alias" in | ||
735 | NONE) | ||
736 | case $nonopt in | ||
737 | NONE) | ||
738 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | ||
739 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | ||
740 | fi ;; | ||
741 | *) host_alias=$nonopt ;; | ||
742 | esac ;; | ||
743 | esac | ||
744 | |||
745 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | ||
746 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
747 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
748 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
749 | echo "$ac_t""$host" 1>&6 | ||
750 | |||
751 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | ||
752 | siliconforks | 507 | echo "configure:753: checking target system type" >&5 |
753 | siliconforks | 460 | |
754 | target_alias=$target | ||
755 | case "$target_alias" in | ||
756 | NONE) | ||
757 | case $nonopt in | ||
758 | NONE) target_alias=$host_alias ;; | ||
759 | *) target_alias=$nonopt ;; | ||
760 | esac ;; | ||
761 | esac | ||
762 | |||
763 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | ||
764 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
765 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
766 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
767 | echo "$ac_t""$target" 1>&6 | ||
768 | |||
769 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | ||
770 | siliconforks | 507 | echo "configure:771: checking build system type" >&5 |
771 | siliconforks | 460 | |
772 | build_alias=$build | ||
773 | case "$build_alias" in | ||
774 | NONE) | ||
775 | case $nonopt in | ||
776 | NONE) build_alias=$host_alias ;; | ||
777 | *) build_alias=$nonopt ;; | ||
778 | esac ;; | ||
779 | esac | ||
780 | |||
781 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | ||
782 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
783 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
784 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
785 | echo "$ac_t""$build" 1>&6 | ||
786 | |||
787 | test "$host_alias" != "$target_alias" && | ||
788 | test "$program_prefix$program_suffix$program_transform_name" = \ | ||
789 | NONENONEs,x,x, && | ||
790 | program_prefix=${target_alias}- | ||
791 | |||
792 | TARGET_CPU="${target_cpu}" | ||
793 | TARGET_VENDOR="${target_vendor}" | ||
794 | TARGET_OS="${target_os}" | ||
795 | |||
796 | CFLAGS="${CFLAGS=}" | ||
797 | CPPFLAGS="${CPPFLAGS=}" | ||
798 | CXXFLAGS="${CXXFLAGS=}" | ||
799 | LDFLAGS="${LDFLAGS=}" | ||
800 | HOST_CFLAGS="${HOST_CFLAGS=}" | ||
801 | HOST_CXXFLAGS="${HOST_CXXFLAGS=}" | ||
802 | HOST_LDFLAGS="${HOST_LDFLAGS=}" | ||
803 | |||
804 | _SUBDIR_CC="$CC" | ||
805 | _SUBDIR_CXX="$CXX" | ||
806 | _SUBDIR_CFLAGS="$CFLAGS" | ||
807 | _SUBDIR_CPPFLAGS="$CPPFLAGS" | ||
808 | _SUBDIR_CXXFLAGS="$CXXFLAGS" | ||
809 | _SUBDIR_LDFLAGS="$LDFLAGS" | ||
810 | _SUBDIR_HOST_CC="$HOST_CC" | ||
811 | _SUBDIR_HOST_CFLAGS="$HOST_CFLAGS" | ||
812 | _SUBDIR_HOST_CXXFLAGS="$HOST_CXXFLAGS" | ||
813 | _SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS" | ||
814 | _SUBDIR_CONFIG_ARGS="$ac_configure_args" | ||
815 | |||
816 | NSPR_VERSION=4 | ||
817 | |||
818 | PERL_VERSION=5.006 | ||
819 | WINDRES_VERSION=2.14.90 | ||
820 | W32API_VERSION=3.8 | ||
821 | |||
822 | MSMANIFEST_TOOL= | ||
823 | |||
824 | MISSING_X= | ||
825 | 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 | siliconforks | 507 | echo "configure:831: checking for $ac_word" >&5 |
831 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
832 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
833 | else | ||
834 | if test -n "$AWK"; then | ||
835 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
836 | else | ||
837 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
838 | ac_dummy="$PATH" | ||
839 | for ac_dir in $ac_dummy; do | ||
840 | test -z "$ac_dir" && ac_dir=. | ||
841 | if test -f $ac_dir/$ac_word; then | ||
842 | ac_cv_prog_AWK="$ac_prog" | ||
843 | break | ||
844 | fi | ||
845 | done | ||
846 | IFS="$ac_save_ifs" | ||
847 | fi | ||
848 | fi | ||
849 | AWK="$ac_cv_prog_AWK" | ||
850 | if test -n "$AWK"; then | ||
851 | echo "$ac_t""$AWK" 1>&6 | ||
852 | else | ||
853 | echo "$ac_t""no" 1>&6 | ||
854 | fi | ||
855 | |||
856 | test -n "$AWK" && break | ||
857 | done | ||
858 | |||
859 | |||
860 | USE_PTHREADS= | ||
861 | _PTHREAD_LDFLAGS="" | ||
862 | |||
863 | _topsrcdir=`cd \`dirname $0\`; pwd` | ||
864 | _objdir=`pwd` | ||
865 | |||
866 | if test "$_topsrcdir" != "$_objdir" | ||
867 | then | ||
868 | # Check for a couple representative files in the source tree | ||
869 | _conflict_files= | ||
870 | for file in $_topsrcdir/Makefile $_topsrcdir/config/autoconf.mk; do | ||
871 | if test -f $file; then | ||
872 | _conflict_files="$_conflict_files $file" | ||
873 | fi | ||
874 | done | ||
875 | if test "$_conflict_files"; then | ||
876 | echo "***" | ||
877 | echo "* Your source tree contains these files:" | ||
878 | for file in $_conflict_files; do | ||
879 | echo "* $file" | ||
880 | done | ||
881 | cat 1>&2 <<-EOF | ||
882 | * This indicates that you previously built in the source tree. | ||
883 | * A source tree build can confuse the separate objdir build. | ||
884 | * | ||
885 | * To clean up the source tree: | ||
886 | * 1. cd $_topsrcdir | ||
887 | * 2. gmake distclean | ||
888 | *** | ||
889 | EOF | ||
890 | exit 1 | ||
891 | break | ||
892 | fi | ||
893 | fi | ||
894 | MOZ_BUILD_ROOT=`pwd` | ||
895 | |||
896 | |||
897 | # Check whether --with-dist-dir or --without-dist-dir was given. | ||
898 | if test "${with_dist_dir+set}" = set; then | ||
899 | withval="$with_dist_dir" | ||
900 | TOP_DIST=$withval | ||
901 | else | ||
902 | TOP_DIST=dist | ||
903 | fi | ||
904 | |||
905 | |||
906 | |||
907 | if test -z "$CROSS_COMPILE"; then | ||
908 | case "$target" in | ||
909 | *-cygwin*|*-mingw*|*-msvc*|*-mks*) | ||
910 | if test -z "$CC"; then CC=cl; fi | ||
911 | if test -z "$CXX"; then CXX=cl; fi | ||
912 | if test -z "$CPP"; then CPP="cl -E -nologo"; fi | ||
913 | if test -z "$CXXCPP"; then CXXCPP="cl -TP -E -nologo"; ac_cv_prog_CXXCPP="$CXXCPP"; fi | ||
914 | if test -z "$LD"; then LD=link; fi | ||
915 | if test -z "$AS"; then AS=ml; fi | ||
916 | ;; | ||
917 | esac | ||
918 | fi | ||
919 | |||
920 | COMPILE_ENVIRONMENT=1 | ||
921 | # Check whether --enable-compile-environment or --disable-compile-environment was given. | ||
922 | if test "${enable_compile_environment+set}" = set; then | ||
923 | enableval="$enable_compile_environment" | ||
924 | if test "$enableval" = "yes"; then | ||
925 | COMPILE_ENVIRONMENT=1 | ||
926 | elif test "$enableval" = "no"; then | ||
927 | COMPILE_ENVIRONMENT= | ||
928 | else | ||
929 | { echo "configure: error: Option, compile-environment, does not take an argument ($enableval)." 1>&2; exit 1; } | ||
930 | fi | ||
931 | fi | ||
932 | |||
933 | |||
934 | |||
935 | if test "$COMPILE_ENVIRONMENT"; then | ||
936 | |||
937 | if test "$target" != "$host"; then | ||
938 | echo "cross compiling from $host to $target" | ||
939 | |||
940 | _SAVE_CC="$CC" | ||
941 | _SAVE_CFLAGS="$CFLAGS" | ||
942 | _SAVE_LDFLAGS="$LDFLAGS" | ||
943 | |||
944 | echo $ac_n "checking for host c compiler""... $ac_c" 1>&6 | ||
945 | siliconforks | 507 | echo "configure:946: checking for host c compiler" >&5 |
946 | siliconforks | 460 | for ac_prog in $HOST_CC gcc cc /usr/ucb/cc cl icc |
947 | do | ||
948 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
949 | set dummy $ac_prog; ac_word=$2 | ||
950 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
951 | siliconforks | 507 | echo "configure:952: checking for $ac_word" >&5 |
952 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then |
953 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
954 | else | ||
955 | if test -n "$HOST_CC"; then | ||
956 | ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test. | ||
957 | else | ||
958 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
959 | ac_dummy="$PATH" | ||
960 | for ac_dir in $ac_dummy; do | ||
961 | test -z "$ac_dir" && ac_dir=. | ||
962 | if test -f $ac_dir/$ac_word; then | ||
963 | ac_cv_prog_HOST_CC="$ac_prog" | ||
964 | break | ||
965 | fi | ||
966 | done | ||
967 | IFS="$ac_save_ifs" | ||
968 | fi | ||
969 | fi | ||
970 | HOST_CC="$ac_cv_prog_HOST_CC" | ||
971 | if test -n "$HOST_CC"; then | ||
972 | echo "$ac_t""$HOST_CC" 1>&6 | ||
973 | else | ||
974 | echo "$ac_t""no" 1>&6 | ||
975 | fi | ||
976 | |||
977 | test -n "$HOST_CC" && break | ||
978 | done | ||
979 | test -n "$HOST_CC" || HOST_CC="""" | ||
980 | |||
981 | if test -z "$HOST_CC"; then | ||
982 | { echo "configure: error: no acceptable c compiler found in \$PATH" 1>&2; exit 1; } | ||
983 | fi | ||
984 | echo "$ac_t""$HOST_CC" 1>&6 | ||
985 | echo $ac_n "checking for host c++ compiler""... $ac_c" 1>&6 | ||
986 | siliconforks | 507 | echo "configure:987: checking for host c++ compiler" >&5 |
987 | siliconforks | 460 | for ac_prog in $HOST_CXX $CCC c++ g++ gcc CC cxx cc++ cl icc |
988 | do | ||
989 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
990 | set dummy $ac_prog; ac_word=$2 | ||
991 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
992 | siliconforks | 507 | echo "configure:993: checking for $ac_word" >&5 |
993 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_HOST_CXX'+set}'`\" = set"; then |
994 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
995 | else | ||
996 | if test -n "$HOST_CXX"; then | ||
997 | ac_cv_prog_HOST_CXX="$HOST_CXX" # Let the user override the test. | ||
998 | else | ||
999 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1000 | ac_dummy="$PATH" | ||
1001 | for ac_dir in $ac_dummy; do | ||
1002 | test -z "$ac_dir" && ac_dir=. | ||
1003 | if test -f $ac_dir/$ac_word; then | ||
1004 | ac_cv_prog_HOST_CXX="$ac_prog" | ||
1005 | break | ||
1006 | fi | ||
1007 | done | ||
1008 | IFS="$ac_save_ifs" | ||
1009 | fi | ||
1010 | fi | ||
1011 | HOST_CXX="$ac_cv_prog_HOST_CXX" | ||
1012 | if test -n "$HOST_CXX"; then | ||
1013 | echo "$ac_t""$HOST_CXX" 1>&6 | ||
1014 | else | ||
1015 | echo "$ac_t""no" 1>&6 | ||
1016 | fi | ||
1017 | |||
1018 | test -n "$HOST_CXX" && break | ||
1019 | done | ||
1020 | test -n "$HOST_CXX" || HOST_CXX="""" | ||
1021 | |||
1022 | if test -z "$HOST_CXX"; then | ||
1023 | { echo "configure: error: no acceptable c++ compiler found in \$PATH" 1>&2; exit 1; } | ||
1024 | fi | ||
1025 | echo "$ac_t""$HOST_CXX" 1>&6 | ||
1026 | |||
1027 | if test -z "$HOST_CFLAGS"; then | ||
1028 | HOST_CFLAGS="$CFLAGS" | ||
1029 | fi | ||
1030 | if test -z "$HOST_CXXFLAGS"; then | ||
1031 | HOST_CXXFLAGS="$CXXFLAGS" | ||
1032 | fi | ||
1033 | if test -z "$HOST_LDFLAGS"; then | ||
1034 | HOST_LDFLAGS="$LDFLAGS" | ||
1035 | fi | ||
1036 | for ac_prog in $HOST_RANLIB ranlib | ||
1037 | do | ||
1038 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1039 | set dummy $ac_prog; ac_word=$2 | ||
1040 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1041 | siliconforks | 507 | echo "configure:1042: checking for $ac_word" >&5 |
1042 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_HOST_RANLIB'+set}'`\" = set"; then |
1043 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1044 | else | ||
1045 | if test -n "$HOST_RANLIB"; then | ||
1046 | ac_cv_prog_HOST_RANLIB="$HOST_RANLIB" # Let the user override the test. | ||
1047 | else | ||
1048 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1049 | ac_dummy=":" | ||
1050 | for ac_dir in $ac_dummy; do | ||
1051 | test -z "$ac_dir" && ac_dir=. | ||
1052 | if test -f $ac_dir/$ac_word; then | ||
1053 | ac_cv_prog_HOST_RANLIB="$ac_prog" | ||
1054 | break | ||
1055 | fi | ||
1056 | done | ||
1057 | IFS="$ac_save_ifs" | ||
1058 | fi | ||
1059 | fi | ||
1060 | HOST_RANLIB="$ac_cv_prog_HOST_RANLIB" | ||
1061 | if test -n "$HOST_RANLIB"; then | ||
1062 | echo "$ac_t""$HOST_RANLIB" 1>&6 | ||
1063 | else | ||
1064 | echo "$ac_t""no" 1>&6 | ||
1065 | fi | ||
1066 | |||
1067 | test -n "$HOST_RANLIB" && break | ||
1068 | done | ||
1069 | test -n "$HOST_RANLIB" || HOST_RANLIB="ranlib" | ||
1070 | |||
1071 | for ac_prog in $HOST_AR ar | ||
1072 | do | ||
1073 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1074 | set dummy $ac_prog; ac_word=$2 | ||
1075 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1076 | siliconforks | 507 | echo "configure:1077: checking for $ac_word" >&5 |
1077 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_HOST_AR'+set}'`\" = set"; then |
1078 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1079 | else | ||
1080 | if test -n "$HOST_AR"; then | ||
1081 | ac_cv_prog_HOST_AR="$HOST_AR" # Let the user override the test. | ||
1082 | else | ||
1083 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1084 | ac_dummy=":" | ||
1085 | for ac_dir in $ac_dummy; do | ||
1086 | test -z "$ac_dir" && ac_dir=. | ||
1087 | if test -f $ac_dir/$ac_word; then | ||
1088 | ac_cv_prog_HOST_AR="$ac_prog" | ||
1089 | break | ||
1090 | fi | ||
1091 | done | ||
1092 | IFS="$ac_save_ifs" | ||
1093 | fi | ||
1094 | fi | ||
1095 | HOST_AR="$ac_cv_prog_HOST_AR" | ||
1096 | if test -n "$HOST_AR"; then | ||
1097 | echo "$ac_t""$HOST_AR" 1>&6 | ||
1098 | else | ||
1099 | echo "$ac_t""no" 1>&6 | ||
1100 | fi | ||
1101 | |||
1102 | test -n "$HOST_AR" && break | ||
1103 | done | ||
1104 | test -n "$HOST_AR" || HOST_AR="ar" | ||
1105 | |||
1106 | CC="$HOST_CC" | ||
1107 | CFLAGS="$HOST_CFLAGS" | ||
1108 | LDFLAGS="$HOST_LDFLAGS" | ||
1109 | |||
1110 | echo $ac_n "checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6 | ||
1111 | siliconforks | 507 | echo "configure:1112: checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5 |
1112 | siliconforks | 460 | cat > conftest.$ac_ext <<EOF |
1113 | siliconforks | 507 | #line 1114 "configure" |
1114 | siliconforks | 460 | #include "confdefs.h" |
1115 | |||
1116 | int main() { | ||
1117 | return(0); | ||
1118 | ; return 0; } | ||
1119 | EOF | ||
1120 | siliconforks | 507 | if { (eval echo configure:1121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1121 | siliconforks | 460 | rm -rf conftest* |
1122 | ac_cv_prog_hostcc_works=1 echo "$ac_t""yes" 1>&6 | ||
1123 | else | ||
1124 | echo "configure: failed program was:" >&5 | ||
1125 | cat conftest.$ac_ext >&5 | ||
1126 | rm -rf conftest* | ||
1127 | { echo "configure: error: installation or configuration problem: host compiler $HOST_CC cannot create executables." 1>&2; exit 1; } | ||
1128 | fi | ||
1129 | rm -f conftest* | ||
1130 | |||
1131 | CC="$HOST_CXX" | ||
1132 | CFLAGS="$HOST_CXXFLAGS" | ||
1133 | |||
1134 | echo $ac_n "checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6 | ||
1135 | siliconforks | 507 | echo "configure:1136: checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works" >&5 |
1136 | siliconforks | 460 | cat > conftest.$ac_ext <<EOF |
1137 | siliconforks | 507 | #line 1138 "configure" |
1138 | siliconforks | 460 | #include "confdefs.h" |
1139 | |||
1140 | int main() { | ||
1141 | return(0); | ||
1142 | ; return 0; } | ||
1143 | EOF | ||
1144 | siliconforks | 507 | if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1145 | siliconforks | 460 | rm -rf conftest* |
1146 | ac_cv_prog_hostcxx_works=1 echo "$ac_t""yes" 1>&6 | ||
1147 | else | ||
1148 | echo "configure: failed program was:" >&5 | ||
1149 | cat conftest.$ac_ext >&5 | ||
1150 | rm -rf conftest* | ||
1151 | { echo "configure: error: installation or configuration problem: host compiler $HOST_CXX cannot create executables." 1>&2; exit 1; } | ||
1152 | fi | ||
1153 | rm -f conftest* | ||
1154 | |||
1155 | CC=$_SAVE_CC | ||
1156 | CFLAGS=$_SAVE_CFLAGS | ||
1157 | LDFLAGS=$_SAVE_LDFLAGS | ||
1158 | |||
1159 | case "$build:$target" in | ||
1160 | powerpc-apple-darwin8*:i?86-apple-darwin*) | ||
1161 | _SAVE_CFLAGS=$CFLAGS | ||
1162 | _SAVE_CXXFLAGS=$CXXLAGS | ||
1163 | CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS" | ||
1164 | CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS" | ||
1165 | ;; | ||
1166 | esac | ||
1167 | |||
1168 | siliconforks | 507 | case "$target" in |
1169 | *symbian*) | ||
1170 | # Check whether --with-symbian-sdk or --without-symbian-sdk was given. | ||
1171 | if test "${with_symbian_sdk+set}" = set; then | ||
1172 | withval="$with_symbian_sdk" | ||
1173 | SYMBIAN_SDK_DIR=$withval | ||
1174 | fi | ||
1175 | |||
1176 | |||
1177 | OS_EXE_CFLAGS="$OS_EXE_CFLAGS -D__EXE__" | ||
1178 | CFLAGS="-MD -nostdinc" | ||
1179 | SYMBIAN_SYS_INCLUDE="-I$SYMBIAN_SDK_DIR/Epoc32/include -I$SYMBIAN_SDK_DIR/Epoc32/include/variant -I$SYMBIAN_SDK_DIR/Epoc32/include/stdapis" | ||
1180 | |||
1181 | case "$target" in | ||
1182 | *-symbianelf) | ||
1183 | OS_TARGET=GCCE | ||
1184 | CC=arm-none-symbianelf-gcc.exe | ||
1185 | CXX=arm-none-symbianelf-g++.exe | ||
1186 | LD=arm-none-symbianelf-ld.exe | ||
1187 | AR=arm-none-symbianelf-ar.exe | ||
1188 | CPP=arm-none-symbianelf-cpp.exe | ||
1189 | CFLAGS="$CFLAGS -c -Wall -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -msoft-float" | ||
1190 | CXXFLAGS="$CFLAGS -Wno-ctor-dtor-privacy" | ||
1191 | GCCE_INCLUDE="-include $SYMBIAN_SDK_DIR/EPOC32/INCLUDE/GCCE/GCCE.h -D__PRODUCT_INCLUDE__=$SYMBIAN_SDK_DIR/Epoc32/include/variant/Symbian_OS_v9.2.hrh" | ||
1192 | CFLAGS="$CFLAGS ${GCCE_INCLUDE} -x c" | ||
1193 | CXXFLAGS="$CXXFLAGS ${GCCE_INCLUDE} -x c++" | ||
1194 | CPPFLAGS="$CPPFLAGS ${SYMBIAN_SYS_INCLUDE}" | ||
1195 | ;; | ||
1196 | *-symbianwinscw) | ||
1197 | OS_TARGET=WINSCW | ||
1198 | ;; | ||
1199 | esac | ||
1200 | ;; | ||
1201 | esac | ||
1202 | |||
1203 | siliconforks | 460 | for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc" |
1204 | do | ||
1205 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1206 | set dummy $ac_prog; ac_word=$2 | ||
1207 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1208 | siliconforks | 507 | echo "configure:1209: checking for $ac_word" >&5 |
1209 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1210 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1211 | else | ||
1212 | if test -n "$CC"; then | ||
1213 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1214 | else | ||
1215 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1216 | ac_dummy="$PATH" | ||
1217 | for ac_dir in $ac_dummy; do | ||
1218 | test -z "$ac_dir" && ac_dir=. | ||
1219 | if test -f $ac_dir/$ac_word; then | ||
1220 | ac_cv_prog_CC="$ac_prog" | ||
1221 | break | ||
1222 | fi | ||
1223 | done | ||
1224 | IFS="$ac_save_ifs" | ||
1225 | fi | ||
1226 | fi | ||
1227 | CC="$ac_cv_prog_CC" | ||
1228 | if test -n "$CC"; then | ||
1229 | echo "$ac_t""$CC" 1>&6 | ||
1230 | else | ||
1231 | echo "$ac_t""no" 1>&6 | ||
1232 | fi | ||
1233 | |||
1234 | test -n "$CC" && break | ||
1235 | done | ||
1236 | test -n "$CC" || CC=":" | ||
1237 | |||
1238 | unset ac_cv_prog_CC | ||
1239 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1240 | set dummy gcc; ac_word=$2 | ||
1241 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1242 | siliconforks | 507 | echo "configure:1243: checking for $ac_word" >&5 |
1243 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1244 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1245 | else | ||
1246 | if test -n "$CC"; then | ||
1247 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1248 | else | ||
1249 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1250 | ac_dummy="$PATH" | ||
1251 | for ac_dir in $ac_dummy; do | ||
1252 | test -z "$ac_dir" && ac_dir=. | ||
1253 | if test -f $ac_dir/$ac_word; then | ||
1254 | ac_cv_prog_CC="gcc" | ||
1255 | break | ||
1256 | fi | ||
1257 | done | ||
1258 | IFS="$ac_save_ifs" | ||
1259 | fi | ||
1260 | fi | ||
1261 | CC="$ac_cv_prog_CC" | ||
1262 | if test -n "$CC"; then | ||
1263 | echo "$ac_t""$CC" 1>&6 | ||
1264 | else | ||
1265 | echo "$ac_t""no" 1>&6 | ||
1266 | fi | ||
1267 | |||
1268 | if test -z "$CC"; then | ||
1269 | # Extract the first word of "cc", so it can be a program name with args. | ||
1270 | set dummy cc; ac_word=$2 | ||
1271 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1272 | siliconforks | 507 | echo "configure:1273: checking for $ac_word" >&5 |
1273 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1274 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1275 | else | ||
1276 | if test -n "$CC"; then | ||
1277 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1278 | else | ||
1279 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1280 | ac_prog_rejected=no | ||
1281 | ac_dummy="$PATH" | ||
1282 | for ac_dir in $ac_dummy; do | ||
1283 | test -z "$ac_dir" && ac_dir=. | ||
1284 | if test -f $ac_dir/$ac_word; then | ||
1285 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | ||
1286 | ac_prog_rejected=yes | ||
1287 | continue | ||
1288 | fi | ||
1289 | ac_cv_prog_CC="cc" | ||
1290 | break | ||
1291 | fi | ||
1292 | done | ||
1293 | IFS="$ac_save_ifs" | ||
1294 | if test $ac_prog_rejected = yes; then | ||
1295 | # We found a bogon in the path, so make sure we never use it. | ||
1296 | set dummy $ac_cv_prog_CC | ||
1297 | shift | ||
1298 | if test $# -gt 0; then | ||
1299 | # We chose a different compiler from the bogus one. | ||
1300 | # However, it has the same basename, so the bogon will be chosen | ||
1301 | # first if we set CC to just the basename; use the full file name. | ||
1302 | shift | ||
1303 | set dummy "$ac_dir/$ac_word" "$@" | ||
1304 | shift | ||
1305 | ac_cv_prog_CC="$@" | ||
1306 | fi | ||
1307 | fi | ||
1308 | fi | ||
1309 | fi | ||
1310 | CC="$ac_cv_prog_CC" | ||
1311 | if test -n "$CC"; then | ||
1312 | echo "$ac_t""$CC" 1>&6 | ||
1313 | else | ||
1314 | echo "$ac_t""no" 1>&6 | ||
1315 | fi | ||
1316 | |||
1317 | if test -z "$CC"; then | ||
1318 | case "`uname -s`" in | ||
1319 | *win32* | *WIN32*) | ||
1320 | # Extract the first word of "cl", so it can be a program name with args. | ||
1321 | set dummy cl; ac_word=$2 | ||
1322 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1323 | siliconforks | 507 | echo "configure:1324: checking for $ac_word" >&5 |
1324 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1325 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1326 | else | ||
1327 | if test -n "$CC"; then | ||
1328 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1329 | else | ||
1330 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1331 | ac_dummy="$PATH" | ||
1332 | for ac_dir in $ac_dummy; do | ||
1333 | test -z "$ac_dir" && ac_dir=. | ||
1334 | if test -f $ac_dir/$ac_word; then | ||
1335 | ac_cv_prog_CC="cl" | ||
1336 | break | ||
1337 | fi | ||
1338 | done | ||
1339 | IFS="$ac_save_ifs" | ||
1340 | fi | ||
1341 | fi | ||
1342 | CC="$ac_cv_prog_CC" | ||
1343 | if test -n "$CC"; then | ||
1344 | echo "$ac_t""$CC" 1>&6 | ||
1345 | else | ||
1346 | echo "$ac_t""no" 1>&6 | ||
1347 | fi | ||
1348 | ;; | ||
1349 | esac | ||
1350 | fi | ||
1351 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | ||
1352 | fi | ||
1353 | |||
1354 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | ||
1355 | siliconforks | 507 | echo "configure:1356: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1356 | siliconforks | 460 | |
1357 | ac_ext=c | ||
1358 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
1359 | ac_cpp='$CPP $CPPFLAGS' | ||
1360 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
1361 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
1362 | cross_compiling=$ac_cv_prog_cc_cross | ||
1363 | |||
1364 | cat > conftest.$ac_ext << EOF | ||
1365 | |||
1366 | siliconforks | 507 | #line 1367 "configure" |
1367 | siliconforks | 460 | #include "confdefs.h" |
1368 | |||
1369 | main(){return(0);} | ||
1370 | EOF | ||
1371 | siliconforks | 507 | if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1372 | siliconforks | 460 | ac_cv_prog_cc_works=yes |
1373 | # If we can't run a trivial program, we are probably using a cross compiler. | ||
1374 | if (./conftest; exit) 2>/dev/null; then | ||
1375 | ac_cv_prog_cc_cross=no | ||
1376 | else | ||
1377 | ac_cv_prog_cc_cross=yes | ||
1378 | fi | ||
1379 | else | ||
1380 | echo "configure: failed program was:" >&5 | ||
1381 | cat conftest.$ac_ext >&5 | ||
1382 | ac_cv_prog_cc_works=no | ||
1383 | fi | ||
1384 | rm -fr conftest* | ||
1385 | ac_ext=c | ||
1386 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
1387 | ac_cpp='$CPP $CPPFLAGS' | ||
1388 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
1389 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
1390 | cross_compiling=$ac_cv_prog_cc_cross | ||
1391 | |||
1392 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | ||
1393 | if test $ac_cv_prog_cc_works = no; then | ||
1394 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | ||
1395 | fi | ||
1396 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | ||
1397 | siliconforks | 507 | echo "configure:1398: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1398 | siliconforks | 460 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1399 | cross_compiling=$ac_cv_prog_cc_cross | ||
1400 | |||
1401 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | ||
1402 | siliconforks | 507 | echo "configure:1403: checking whether we are using GNU C" >&5 |
1403 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1404 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1405 | else | ||
1406 | cat > conftest.c <<EOF | ||
1407 | #ifdef __GNUC__ | ||
1408 | yes; | ||
1409 | #endif | ||
1410 | EOF | ||
1411 | siliconforks | 507 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1412 | siliconforks | 460 | ac_cv_prog_gcc=yes |
1413 | else | ||
1414 | ac_cv_prog_gcc=no | ||
1415 | fi | ||
1416 | fi | ||
1417 | |||
1418 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | ||
1419 | |||
1420 | if test $ac_cv_prog_gcc = yes; then | ||
1421 | GCC=yes | ||
1422 | else | ||
1423 | GCC= | ||
1424 | fi | ||
1425 | |||
1426 | ac_test_CFLAGS="${CFLAGS+set}" | ||
1427 | ac_save_CFLAGS="$CFLAGS" | ||
1428 | CFLAGS= | ||
1429 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | ||
1430 | siliconforks | 507 | echo "configure:1431: checking whether ${CC-cc} accepts -g" >&5 |
1431 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1432 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1433 | else | ||
1434 | echo 'void f(){}' > conftest.c | ||
1435 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | ||
1436 | ac_cv_prog_cc_g=yes | ||
1437 | else | ||
1438 | ac_cv_prog_cc_g=no | ||
1439 | fi | ||
1440 | rm -f conftest* | ||
1441 | |||
1442 | fi | ||
1443 | |||
1444 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | ||
1445 | if test "$ac_test_CFLAGS" = set; then | ||
1446 | CFLAGS="$ac_save_CFLAGS" | ||
1447 | elif test $ac_cv_prog_cc_g = yes; then | ||
1448 | if test "$GCC" = yes; then | ||
1449 | CFLAGS="-g -O2" | ||
1450 | else | ||
1451 | CFLAGS="-g" | ||
1452 | fi | ||
1453 | else | ||
1454 | if test "$GCC" = yes; then | ||
1455 | CFLAGS="-O2" | ||
1456 | else | ||
1457 | CFLAGS= | ||
1458 | fi | ||
1459 | fi | ||
1460 | |||
1461 | for ac_prog in $CXX "${target_alias}-g++" "${target}-g++" | ||
1462 | do | ||
1463 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1464 | set dummy $ac_prog; ac_word=$2 | ||
1465 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1466 | siliconforks | 507 | echo "configure:1467: checking for $ac_word" >&5 |
1467 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
1468 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1469 | else | ||
1470 | if test -n "$CXX"; then | ||
1471 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
1472 | else | ||
1473 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1474 | ac_dummy="$PATH" | ||
1475 | for ac_dir in $ac_dummy; do | ||
1476 | test -z "$ac_dir" && ac_dir=. | ||
1477 | if test -f $ac_dir/$ac_word; then | ||
1478 | ac_cv_prog_CXX="$ac_prog" | ||
1479 | break | ||
1480 | fi | ||
1481 | done | ||
1482 | IFS="$ac_save_ifs" | ||
1483 | fi | ||
1484 | fi | ||
1485 | CXX="$ac_cv_prog_CXX" | ||
1486 | if test -n "$CXX"; then | ||
1487 | echo "$ac_t""$CXX" 1>&6 | ||
1488 | else | ||
1489 | echo "$ac_t""no" 1>&6 | ||
1490 | fi | ||
1491 | |||
1492 | test -n "$CXX" && break | ||
1493 | done | ||
1494 | test -n "$CXX" || CXX=":" | ||
1495 | |||
1496 | unset ac_cv_prog_CXX | ||
1497 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | ||
1498 | do | ||
1499 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1500 | set dummy $ac_prog; ac_word=$2 | ||
1501 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1502 | siliconforks | 507 | echo "configure:1503: checking for $ac_word" >&5 |
1503 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
1504 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1505 | else | ||
1506 | if test -n "$CXX"; then | ||
1507 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
1508 | else | ||
1509 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1510 | ac_dummy="$PATH" | ||
1511 | for ac_dir in $ac_dummy; do | ||
1512 | test -z "$ac_dir" && ac_dir=. | ||
1513 | if test -f $ac_dir/$ac_word; then | ||
1514 | ac_cv_prog_CXX="$ac_prog" | ||
1515 | break | ||
1516 | fi | ||
1517 | done | ||
1518 | IFS="$ac_save_ifs" | ||
1519 | fi | ||
1520 | fi | ||
1521 | CXX="$ac_cv_prog_CXX" | ||
1522 | if test -n "$CXX"; then | ||
1523 | echo "$ac_t""$CXX" 1>&6 | ||
1524 | else | ||
1525 | echo "$ac_t""no" 1>&6 | ||
1526 | fi | ||
1527 | |||
1528 | test -n "$CXX" && break | ||
1529 | done | ||
1530 | test -n "$CXX" || CXX="gcc" | ||
1531 | |||
1532 | |||
1533 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | ||
1534 | siliconforks | 507 | echo "configure:1535: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
1535 | siliconforks | 460 | |
1536 | ac_ext=C | ||
1537 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
1538 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
1539 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
1540 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
1541 | cross_compiling=$ac_cv_prog_cxx_cross | ||
1542 | |||
1543 | cat > conftest.$ac_ext << EOF | ||
1544 | |||
1545 | siliconforks | 507 | #line 1546 "configure" |
1546 | siliconforks | 460 | #include "confdefs.h" |
1547 | |||
1548 | int main(){return(0);} | ||
1549 | EOF | ||
1550 | siliconforks | 507 | if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1551 | siliconforks | 460 | ac_cv_prog_cxx_works=yes |
1552 | # If we can't run a trivial program, we are probably using a cross compiler. | ||
1553 | if (./conftest; exit) 2>/dev/null; then | ||
1554 | ac_cv_prog_cxx_cross=no | ||
1555 | else | ||
1556 | ac_cv_prog_cxx_cross=yes | ||
1557 | fi | ||
1558 | else | ||
1559 | echo "configure: failed program was:" >&5 | ||
1560 | cat conftest.$ac_ext >&5 | ||
1561 | ac_cv_prog_cxx_works=no | ||
1562 | fi | ||
1563 | rm -fr conftest* | ||
1564 | ac_ext=c | ||
1565 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
1566 | ac_cpp='$CPP $CPPFLAGS' | ||
1567 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
1568 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
1569 | cross_compiling=$ac_cv_prog_cc_cross | ||
1570 | |||
1571 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | ||
1572 | if test $ac_cv_prog_cxx_works = no; then | ||
1573 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | ||
1574 | fi | ||
1575 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | ||
1576 | siliconforks | 507 | echo "configure:1577: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1577 | siliconforks | 460 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
1578 | cross_compiling=$ac_cv_prog_cxx_cross | ||
1579 | |||
1580 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | ||
1581 | siliconforks | 507 | echo "configure:1582: checking whether we are using GNU C++" >&5 |
1582 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
1583 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1584 | else | ||
1585 | cat > conftest.C <<EOF | ||
1586 | #ifdef __GNUC__ | ||
1587 | yes; | ||
1588 | #endif | ||
1589 | EOF | ||
1590 | siliconforks | 507 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1591 | siliconforks | 460 | ac_cv_prog_gxx=yes |
1592 | else | ||
1593 | ac_cv_prog_gxx=no | ||
1594 | fi | ||
1595 | fi | ||
1596 | |||
1597 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | ||
1598 | |||
1599 | if test $ac_cv_prog_gxx = yes; then | ||
1600 | GXX=yes | ||
1601 | else | ||
1602 | GXX= | ||
1603 | fi | ||
1604 | |||
1605 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | ||
1606 | ac_save_CXXFLAGS="$CXXFLAGS" | ||
1607 | CXXFLAGS= | ||
1608 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | ||
1609 | siliconforks | 507 | echo "configure:1610: checking whether ${CXX-g++} accepts -g" >&5 |
1610 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
1611 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1612 | else | ||
1613 | echo 'void f(){}' > conftest.cc | ||
1614 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | ||
1615 | ac_cv_prog_cxx_g=yes | ||
1616 | else | ||
1617 | ac_cv_prog_cxx_g=no | ||
1618 | fi | ||
1619 | rm -f conftest* | ||
1620 | |||
1621 | fi | ||
1622 | |||
1623 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | ||
1624 | if test "$ac_test_CXXFLAGS" = set; then | ||
1625 | CXXFLAGS="$ac_save_CXXFLAGS" | ||
1626 | elif test $ac_cv_prog_cxx_g = yes; then | ||
1627 | if test "$GXX" = yes; then | ||
1628 | CXXFLAGS="-g -O2" | ||
1629 | else | ||
1630 | CXXFLAGS="-g" | ||
1631 | fi | ||
1632 | else | ||
1633 | if test "$GXX" = yes; then | ||
1634 | CXXFLAGS="-O2" | ||
1635 | else | ||
1636 | CXXFLAGS= | ||
1637 | fi | ||
1638 | fi | ||
1639 | |||
1640 | 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 | siliconforks | 507 | #line 1651 "configure" |
1651 | siliconforks | 460 | #include "confdefs.h" |
1652 | #include <stdlib.h> | ||
1653 | $ac_declaration | ||
1654 | int main() { | ||
1655 | exit (42); | ||
1656 | ; return 0; } | ||
1657 | EOF | ||
1658 | siliconforks | 507 | if { (eval echo configure:1659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1659 | siliconforks | 460 | : |
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 | siliconforks | 507 | #line 1669 "configure" |
1669 | siliconforks | 460 | #include "confdefs.h" |
1670 | $ac_declaration | ||
1671 | int main() { | ||
1672 | exit (42); | ||
1673 | ; return 0; } | ||
1674 | EOF | ||
1675 | siliconforks | 507 | if { (eval echo configure:1676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1676 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:1705: checking for $ac_word" >&5 |
1705 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:1740: checking for $ac_word" >&5 |
1740 | siliconforks | 460 | 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 | siliconforks | 507 | for ac_prog in $AS "${target_alias}-as" "${target}-as" |
1770 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:1775: checking for $ac_word" >&5 |
1775 | siliconforks | 460 | 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 | siliconforks | 507 | 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 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:1829: checking for $ac_word" >&5 |
1829 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:1864: checking for $ac_word" >&5 |
1864 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:1899: checking for $ac_word" >&5 |
1899 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:1939: checking for $ac_word" >&5 |
1939 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:1969: checking for $ac_word" >&5 |
1969 | siliconforks | 460 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1970 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1971 | else | ||
1972 | if test -n "$CC"; then | ||
1973 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1974 | else | ||
1975 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1976 | ac_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 | siliconforks | 507 | echo "configure:2020: checking for $ac_word" >&5 |
2020 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2052: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
2052 | siliconforks | 460 | |
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 | siliconforks | 507 | #line 2063 "configure" |
2063 | siliconforks | 460 | #include "confdefs.h" |
2064 | |||
2065 | main(){return(0);} | ||
2066 | EOF | ||
2067 | siliconforks | 507 | if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2068 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2094: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
2094 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2099: checking whether we are using GNU C" >&5 |
2099 | siliconforks | 460 | 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 | siliconforks | 507 | 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 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2127: checking whether ${CC-cc} accepts -g" >&5 |
2127 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2163: checking for $ac_word" >&5 |
2163 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2195: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
2195 | siliconforks | 460 | |
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 | siliconforks | 507 | #line 2206 "configure" |
2206 | siliconforks | 460 | #include "confdefs.h" |
2207 | |||
2208 | int main(){return(0);} | ||
2209 | EOF | ||
2210 | siliconforks | 507 | if { (eval echo configure:2211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2211 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2237: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
2237 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2242: checking whether we are using GNU C++" >&5 |
2242 | siliconforks | 460 | 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 | siliconforks | 507 | 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 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2270: checking whether ${CXX-g++} accepts -g" >&5 |
2270 | siliconforks | 460 | 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 | siliconforks | 507 | #line 2311 "configure" |
2311 | siliconforks | 460 | #include "confdefs.h" |
2312 | #include <stdlib.h> | ||
2313 | $ac_declaration | ||
2314 | int main() { | ||
2315 | exit (42); | ||
2316 | ; return 0; } | ||
2317 | EOF | ||
2318 | siliconforks | 507 | if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2319 | siliconforks | 460 | : |
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 | siliconforks | 507 | #line 2329 "configure" |
2329 | siliconforks | 460 | #include "confdefs.h" |
2330 | $ac_declaration | ||
2331 | int main() { | ||
2332 | exit (42); | ||
2333 | ; return 0; } | ||
2334 | EOF | ||
2335 | siliconforks | 507 | if { (eval echo configure:2336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2336 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2355: checking for $ac_word" >&5 |
2355 | siliconforks | 460 | 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 | siliconforks | 507 | for ac_prog in $AS as |
2382 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2387: checking for $ac_word" >&5 |
2387 | siliconforks | 460 | 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 | siliconforks | 507 | 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 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2441: checking for $ac_word" >&5 |
2441 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2476: checking for $ac_word" >&5 |
2476 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2511: checking for $ac_word" >&5 |
2511 | siliconforks | 460 | 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 | siliconforks | 507 | echo "configure:2546: checking for $ac_word" >&5 |
2546 | siliconforks | 460 | 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 |