]>
Commit | Line | Data |
---|---|---|
1530be84 TT |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.13 | |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
54ce7452 | 15 | --enable-multilib build many library versions (default)" |
1530be84 TT |
16 | ac_help="$ac_help |
17 | --enable-maintainer-mode enable make rules and dependencies not useful | |
18 | (and sometimes confusing) to the casual installer" | |
66deb2be TT |
19 | ac_help="$ac_help |
20 | --enable-shared[=PKGS] build shared libraries [default=yes]" | |
21 | ac_help="$ac_help | |
22 | --enable-static[=PKGS] build static libraries [default=yes]" | |
115dabb8 TT |
23 | ac_help="$ac_help |
24 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" | |
66deb2be TT |
25 | ac_help="$ac_help |
26 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" | |
115dabb8 | 27 | ac_help="$ac_help |
20bbd3cd | 28 | --disable-libtool-lock avoid locking (might break parallel builds)" |
2f7bf5b7 AO |
29 | ac_help="$ac_help |
30 | --with-pic try to use only PIC/non-PIC objects [default=use both]" | |
1530be84 | 31 | ac_help="$ac_help |
61e922d2 RO |
32 | --with-target-subdir=SUBDIR |
33 | configuring with a cross compiler" | |
1530be84 | 34 | ac_help="$ac_help |
61e922d2 | 35 | --with-cross-host=HOST configuring with a cross compiler" |
1530be84 TT |
36 | ac_help="$ac_help |
37 | --enable-maintainer-mode enable make rules and dependencies not useful | |
38 | (and sometimes confusing) to the casual installer" | |
5a2586cf TT |
39 | ac_help="$ac_help |
40 | --enable-parallel-mark parallelize marking and free list construction" | |
1530be84 | 41 | ac_help="$ac_help |
61e922d2 | 42 | --with-ecos enable runtime eCos target support" |
4c7726b1 BM |
43 | ac_help="$ac_help |
44 | --enable-shared[=PKGS] build shared libraries [default=no]" | |
5a2586cf TT |
45 | ac_help="$ac_help |
46 | --enable-full-debug include full support for pointer backtracing etc." | |
1530be84 TT |
47 | |
48 | # Initialize some variables set by options. | |
49 | # The variables have the same names as the options, with | |
50 | # dashes changed to underlines. | |
51 | build=NONE | |
52 | cache_file=./config.cache | |
53 | exec_prefix=NONE | |
54 | host=NONE | |
55 | no_create= | |
56 | nonopt=NONE | |
57 | no_recursion= | |
58 | prefix=NONE | |
59 | program_prefix=NONE | |
60 | program_suffix=NONE | |
61 | program_transform_name=s,x,x, | |
62 | silent= | |
63 | site= | |
64 | srcdir= | |
65 | target=NONE | |
66 | verbose= | |
67 | x_includes=NONE | |
68 | x_libraries=NONE | |
69 | bindir='${exec_prefix}/bin' | |
70 | sbindir='${exec_prefix}/sbin' | |
71 | libexecdir='${exec_prefix}/libexec' | |
72 | datadir='${prefix}/share' | |
73 | sysconfdir='${prefix}/etc' | |
74 | sharedstatedir='${prefix}/com' | |
75 | localstatedir='${prefix}/var' | |
76 | libdir='${exec_prefix}/lib' | |
77 | includedir='${prefix}/include' | |
78 | oldincludedir='/usr/include' | |
79 | infodir='${prefix}/info' | |
80 | mandir='${prefix}/man' | |
81 | ||
82 | # Initialize some other variables. | |
83 | subdirs= | |
84 | MFLAGS= MAKEFLAGS= | |
85 | SHELL=${CONFIG_SHELL-/bin/sh} | |
86 | # Maximum number of lines to put in a shell here document. | |
87 | ac_max_here_lines=12 | |
88 | ||
89 | ac_prev= | |
90 | for ac_option | |
91 | do | |
92 | ||
93 | # If the previous option needs an argument, assign it. | |
94 | if test -n "$ac_prev"; then | |
95 | eval "$ac_prev=\$ac_option" | |
96 | ac_prev= | |
97 | continue | |
98 | fi | |
99 | ||
100 | case "$ac_option" in | |
101 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
102 | *) ac_optarg= ;; | |
103 | esac | |
104 | ||
105 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
106 | ||
107 | case "$ac_option" in | |
108 | ||
109 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
110 | ac_prev=bindir ;; | |
111 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
112 | bindir="$ac_optarg" ;; | |
113 | ||
114 | -build | --build | --buil | --bui | --bu) | |
115 | ac_prev=build ;; | |
116 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
117 | build="$ac_optarg" ;; | |
118 | ||
119 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
120 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
121 | ac_prev=cache_file ;; | |
122 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
123 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
124 | cache_file="$ac_optarg" ;; | |
125 | ||
126 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
127 | ac_prev=datadir ;; | |
128 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
129 | | --da=*) | |
130 | datadir="$ac_optarg" ;; | |
131 | ||
132 | -disable-* | --disable-*) | |
133 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
134 | # Reject names that are not valid shell variable names. | |
135 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
136 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
137 | fi | |
138 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
139 | eval "enable_${ac_feature}=no" ;; | |
140 | ||
141 | -enable-* | --enable-*) | |
142 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
143 | # Reject names that are not valid shell variable names. | |
144 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
145 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
146 | fi | |
147 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
148 | case "$ac_option" in | |
149 | *=*) ;; | |
150 | *) ac_optarg=yes ;; | |
151 | esac | |
152 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
153 | ||
154 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
155 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
156 | | --exec | --exe | --ex) | |
157 | ac_prev=exec_prefix ;; | |
158 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
159 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
160 | | --exec=* | --exe=* | --ex=*) | |
161 | exec_prefix="$ac_optarg" ;; | |
162 | ||
163 | -gas | --gas | --ga | --g) | |
164 | # Obsolete; use --with-gas. | |
165 | with_gas=yes ;; | |
166 | ||
167 | -help | --help | --hel | --he) | |
168 | # Omit some internal or obsolete options to make the list less imposing. | |
169 | # This message is too long to be a string in the A/UX 3.1 sh. | |
170 | cat << EOF | |
171 | Usage: configure [options] [host] | |
172 | Options: [defaults in brackets after descriptions] | |
173 | Configuration: | |
174 | --cache-file=FILE cache test results in FILE | |
175 | --help print this message | |
176 | --no-create do not create output files | |
177 | --quiet, --silent do not print \`checking...' messages | |
178 | --version print the version of autoconf that created configure | |
179 | Directory and file names: | |
180 | --prefix=PREFIX install architecture-independent files in PREFIX | |
181 | [$ac_default_prefix] | |
182 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
183 | [same as prefix] | |
184 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
185 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
186 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
187 | --datadir=DIR read-only architecture-independent data in DIR | |
188 | [PREFIX/share] | |
189 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
190 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
191 | [PREFIX/com] | |
192 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
193 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
194 | --includedir=DIR C header files in DIR [PREFIX/include] | |
195 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
196 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
197 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
198 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
199 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
200 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
201 | --program-transform-name=PROGRAM | |
202 | run sed PROGRAM on installed program names | |
203 | EOF | |
204 | cat << EOF | |
205 | Host type: | |
206 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
207 | --host=HOST configure for HOST [guessed] | |
208 | --target=TARGET configure for TARGET [TARGET=HOST] | |
209 | Features and packages: | |
210 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
211 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
212 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
213 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
214 | --x-includes=DIR X include files are in DIR | |
215 | --x-libraries=DIR X library files are in DIR | |
216 | EOF | |
217 | if test -n "$ac_help"; then | |
218 | echo "--enable and --with options recognized:$ac_help" | |
219 | fi | |
220 | exit 0 ;; | |
221 | ||
222 | -host | --host | --hos | --ho) | |
223 | ac_prev=host ;; | |
224 | -host=* | --host=* | --hos=* | --ho=*) | |
225 | host="$ac_optarg" ;; | |
226 | ||
227 | -includedir | --includedir | --includedi | --included | --include \ | |
228 | | --includ | --inclu | --incl | --inc) | |
229 | ac_prev=includedir ;; | |
230 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
231 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
232 | includedir="$ac_optarg" ;; | |
233 | ||
234 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
235 | ac_prev=infodir ;; | |
236 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
237 | infodir="$ac_optarg" ;; | |
238 | ||
239 | -libdir | --libdir | --libdi | --libd) | |
240 | ac_prev=libdir ;; | |
241 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
242 | libdir="$ac_optarg" ;; | |
243 | ||
244 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
245 | | --libexe | --libex | --libe) | |
246 | ac_prev=libexecdir ;; | |
247 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
248 | | --libexe=* | --libex=* | --libe=*) | |
249 | libexecdir="$ac_optarg" ;; | |
250 | ||
251 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
252 | | --localstate | --localstat | --localsta | --localst \ | |
253 | | --locals | --local | --loca | --loc | --lo) | |
254 | ac_prev=localstatedir ;; | |
255 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
256 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
257 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
258 | localstatedir="$ac_optarg" ;; | |
259 | ||
260 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
261 | ac_prev=mandir ;; | |
262 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
263 | mandir="$ac_optarg" ;; | |
264 | ||
265 | -nfp | --nfp | --nf) | |
266 | # Obsolete; use --without-fp. | |
267 | with_fp=no ;; | |
268 | ||
269 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
270 | | --no-cr | --no-c) | |
271 | no_create=yes ;; | |
272 | ||
273 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
274 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
275 | no_recursion=yes ;; | |
276 | ||
277 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
278 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
279 | | --oldin | --oldi | --old | --ol | --o) | |
280 | ac_prev=oldincludedir ;; | |
281 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
282 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
283 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
284 | oldincludedir="$ac_optarg" ;; | |
285 | ||
286 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
287 | ac_prev=prefix ;; | |
288 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
289 | prefix="$ac_optarg" ;; | |
290 | ||
291 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
292 | | --program-pre | --program-pr | --program-p) | |
293 | ac_prev=program_prefix ;; | |
294 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
295 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
296 | program_prefix="$ac_optarg" ;; | |
297 | ||
298 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
299 | | --program-suf | --program-su | --program-s) | |
300 | ac_prev=program_suffix ;; | |
301 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
302 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
303 | program_suffix="$ac_optarg" ;; | |
304 | ||
305 | -program-transform-name | --program-transform-name \ | |
306 | | --program-transform-nam | --program-transform-na \ | |
307 | | --program-transform-n | --program-transform- \ | |
308 | | --program-transform | --program-transfor \ | |
309 | | --program-transfo | --program-transf \ | |
310 | | --program-trans | --program-tran \ | |
311 | | --progr-tra | --program-tr | --program-t) | |
312 | ac_prev=program_transform_name ;; | |
313 | -program-transform-name=* | --program-transform-name=* \ | |
314 | | --program-transform-nam=* | --program-transform-na=* \ | |
315 | | --program-transform-n=* | --program-transform-=* \ | |
316 | | --program-transform=* | --program-transfor=* \ | |
317 | | --program-transfo=* | --program-transf=* \ | |
318 | | --program-trans=* | --program-tran=* \ | |
319 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
320 | program_transform_name="$ac_optarg" ;; | |
321 | ||
322 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
323 | | -silent | --silent | --silen | --sile | --sil) | |
324 | silent=yes ;; | |
325 | ||
326 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
327 | ac_prev=sbindir ;; | |
328 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
329 | | --sbi=* | --sb=*) | |
330 | sbindir="$ac_optarg" ;; | |
331 | ||
332 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
333 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
334 | | --sharedst | --shareds | --shared | --share | --shar \ | |
335 | | --sha | --sh) | |
336 | ac_prev=sharedstatedir ;; | |
337 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
338 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
339 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
340 | | --sha=* | --sh=*) | |
341 | sharedstatedir="$ac_optarg" ;; | |
342 | ||
343 | -site | --site | --sit) | |
344 | ac_prev=site ;; | |
345 | -site=* | --site=* | --sit=*) | |
346 | site="$ac_optarg" ;; | |
347 | ||
348 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
349 | ac_prev=srcdir ;; | |
350 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
351 | srcdir="$ac_optarg" ;; | |
352 | ||
353 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
354 | | --syscon | --sysco | --sysc | --sys | --sy) | |
355 | ac_prev=sysconfdir ;; | |
356 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
357 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
358 | sysconfdir="$ac_optarg" ;; | |
359 | ||
360 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
361 | ac_prev=target ;; | |
362 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
363 | target="$ac_optarg" ;; | |
364 | ||
365 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
366 | verbose=yes ;; | |
367 | ||
368 | -version | --version | --versio | --versi | --vers) | |
369 | echo "configure generated by autoconf version 2.13" | |
370 | exit 0 ;; | |
371 | ||
372 | -with-* | --with-*) | |
373 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
374 | # Reject names that are not valid shell variable names. | |
375 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
376 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
377 | fi | |
378 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
379 | case "$ac_option" in | |
380 | *=*) ;; | |
381 | *) ac_optarg=yes ;; | |
382 | esac | |
383 | eval "with_${ac_package}='$ac_optarg'" ;; | |
384 | ||
385 | -without-* | --without-*) | |
386 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
387 | # Reject names that are not valid shell variable names. | |
388 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
389 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
390 | fi | |
391 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
392 | eval "with_${ac_package}=no" ;; | |
393 | ||
394 | --x) | |
395 | # Obsolete; use --with-x. | |
396 | with_x=yes ;; | |
397 | ||
398 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
399 | | --x-incl | --x-inc | --x-in | --x-i) | |
400 | ac_prev=x_includes ;; | |
401 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
402 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
403 | x_includes="$ac_optarg" ;; | |
404 | ||
405 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
406 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
407 | ac_prev=x_libraries ;; | |
408 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
409 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
410 | x_libraries="$ac_optarg" ;; | |
411 | ||
412 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
413 | ;; | |
414 | ||
415 | *) | |
416 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
417 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
418 | fi | |
419 | if test "x$nonopt" != xNONE; then | |
420 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
421 | fi | |
422 | nonopt="$ac_option" | |
423 | ;; | |
424 | ||
425 | esac | |
426 | done | |
427 | ||
428 | if test -n "$ac_prev"; then | |
429 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
430 | fi | |
431 | ||
432 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
433 | ||
434 | # File descriptor usage: | |
435 | # 0 standard input | |
436 | # 1 file creation | |
437 | # 2 errors and warnings | |
438 | # 3 some systems may open it to /dev/tty | |
439 | # 4 used on the Kubota Titan | |
440 | # 6 checking for... messages and results | |
441 | # 5 compiler messages saved in config.log | |
442 | if test "$silent" = yes; then | |
443 | exec 6>/dev/null | |
444 | else | |
445 | exec 6>&1 | |
446 | fi | |
447 | exec 5>./config.log | |
448 | ||
449 | echo "\ | |
450 | This file contains any messages produced by compilers while | |
451 | running configure, to aid debugging if configure makes a mistake. | |
452 | " 1>&5 | |
453 | ||
454 | # Strip out --no-create and --no-recursion so they do not pile up. | |
455 | # Also quote any args containing shell metacharacters. | |
456 | ac_configure_args= | |
457 | for ac_arg | |
458 | do | |
459 | case "$ac_arg" in | |
460 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
461 | | --no-cr | --no-c) ;; | |
462 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
463 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
464 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
465 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
466 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
467 | esac | |
468 | done | |
469 | ||
470 | # NLS nuisances. | |
471 | # Only set these to C if already set. These must not be set unconditionally | |
472 | # because not all systems understand e.g. LANG=C (notably SCO). | |
473 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
474 | # Non-C LC_CTYPE values break the ctype check. | |
475 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
476 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
477 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
478 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
479 | ||
480 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
481 | rm -rf conftest* confdefs.h | |
482 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
483 | echo > confdefs.h | |
484 | ||
485 | # A filename unique to this package, relative to the directory that | |
486 | # configure is in, which we can look for to find out if srcdir is correct. | |
9110a741 | 487 | ac_unique_file=gcj_mlc.c |
1530be84 TT |
488 | |
489 | # Find the source files, if location was not specified. | |
490 | if test -z "$srcdir"; then | |
491 | ac_srcdir_defaulted=yes | |
492 | # Try the directory containing this script, then its parent. | |
493 | ac_prog=$0 | |
494 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
495 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
496 | srcdir=$ac_confdir | |
497 | if test ! -r $srcdir/$ac_unique_file; then | |
498 | srcdir=.. | |
499 | fi | |
500 | else | |
501 | ac_srcdir_defaulted=no | |
502 | fi | |
503 | if test ! -r $srcdir/$ac_unique_file; then | |
504 | if test "$ac_srcdir_defaulted" = yes; then | |
505 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
506 | else | |
507 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
508 | fi | |
509 | fi | |
510 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
511 | ||
512 | # Prefer explicitly selected file to automatically selected ones. | |
1a8a749c PB |
513 | if test -z "$CONFIG_SITE"; then |
514 | if test "x$prefix" != xNONE; then | |
515 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
516 | else | |
517 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1530be84 TT |
518 | fi |
519 | fi | |
520 | for ac_site_file in $CONFIG_SITE; do | |
521 | if test -r "$ac_site_file"; then | |
522 | echo "loading site script $ac_site_file" | |
523 | . "$ac_site_file" | |
524 | fi | |
525 | done | |
526 | ||
527 | if test -r "$cache_file"; then | |
528 | echo "loading cache $cache_file" | |
529 | . $cache_file | |
530 | else | |
531 | echo "creating cache $cache_file" | |
532 | > $cache_file | |
533 | fi | |
534 | ||
535 | ac_ext=c | |
536 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
537 | ac_cpp='$CPP $CPPFLAGS' | |
538 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
539 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
540 | cross_compiling=$ac_cv_prog_cc_cross | |
541 | ||
542 | ac_exeext= | |
543 | ac_objext=o | |
544 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
545 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
546 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
547 | ac_n= ac_c=' | |
548 | ' ac_t=' ' | |
549 | else | |
550 | ac_n=-n ac_c= ac_t= | |
551 | fi | |
552 | else | |
553 | ac_n= ac_c='\c' ac_t= | |
554 | fi | |
555 | ||
556 | ||
557 | ||
5a2586cf TT |
558 | ac_aux_dir= |
559 | for ac_dir in . $srcdir/.; do | |
560 | if test -f $ac_dir/install-sh; then | |
561 | ac_aux_dir=$ac_dir | |
562 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
563 | break | |
564 | elif test -f $ac_dir/install.sh; then | |
565 | ac_aux_dir=$ac_dir | |
566 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
567 | break | |
568 | fi | |
569 | done | |
570 | if test -z "$ac_aux_dir"; then | |
571 | { echo "configure: error: can not find install-sh or install.sh in . $srcdir/." 1>&2; exit 1; } | |
572 | fi | |
573 | ac_config_guess=$ac_aux_dir/config.guess | |
574 | ac_config_sub=$ac_aux_dir/config.sub | |
575 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
576 | ||
577 | ||
1530be84 TT |
578 | # Find a good install program. We prefer a C program (faster), |
579 | # so one script is as good as another. But avoid the broken or | |
580 | # incompatible versions: | |
581 | # SysV /etc/install, /usr/sbin/install | |
582 | # SunOS /usr/etc/install | |
583 | # IRIX /sbin/install | |
584 | # AIX /bin/install | |
585 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
586 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
587 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
588 | # ./install, which can be erroneously created by make from ./install.sh. | |
589 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
4c7726b1 | 590 | echo "configure:591: checking for a BSD compatible install" >&5 |
1530be84 TT |
591 | if test -z "$INSTALL"; then |
592 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
593 | echo $ac_n "(cached) $ac_c" 1>&6 | |
594 | else | |
595 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
596 | for ac_dir in $PATH; do | |
597 | # Account for people who put trailing slashes in PATH elements. | |
598 | case "$ac_dir/" in | |
599 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
600 | *) | |
601 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
602 | # Don't use installbsd from OSF since it installs stuff as root | |
603 | # by default. | |
604 | for ac_prog in ginstall scoinst install; do | |
605 | if test -f $ac_dir/$ac_prog; then | |
606 | if test $ac_prog = install && | |
607 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
608 | # AIX install. It has an incompatible calling convention. | |
609 | : | |
610 | else | |
611 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
612 | break 2 | |
613 | fi | |
614 | fi | |
615 | done | |
616 | ;; | |
617 | esac | |
618 | done | |
619 | IFS="$ac_save_IFS" | |
620 | ||
621 | fi | |
622 | if test "${ac_cv_path_install+set}" = set; then | |
623 | INSTALL="$ac_cv_path_install" | |
624 | else | |
625 | # As a last resort, use the slow shell script. We don't cache a | |
626 | # path for INSTALL within a source directory, because that will | |
627 | # break other packages using the cache if that directory is | |
628 | # removed, or if the path is relative. | |
629 | INSTALL="$ac_install_sh" | |
630 | fi | |
631 | fi | |
632 | echo "$ac_t""$INSTALL" 1>&6 | |
633 | ||
634 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
635 | # It thinks the first close brace ends the variable substitution. | |
636 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
637 | ||
638 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
639 | ||
640 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
641 | ||
642 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
4c7726b1 | 643 | echo "configure:644: checking whether build environment is sane" >&5 |
1530be84 TT |
644 | # Just in case |
645 | sleep 1 | |
646 | echo timestamp > conftestfile | |
647 | # Do `set' in a subshell so we don't clobber the current shell's | |
648 | # arguments. Must try -L first in case configure is actually a | |
649 | # symlink; some systems play weird games with the mod time of symlinks | |
650 | # (eg FreeBSD returns the mod time of the symlink's containing | |
651 | # directory). | |
652 | if ( | |
653 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
654 | if test "$*" = "X"; then | |
655 | # -L didn't work. | |
656 | set X `ls -t $srcdir/configure conftestfile` | |
657 | fi | |
658 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
659 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
660 | ||
661 | # If neither matched, then we have a broken ls. This can happen | |
662 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
663 | # broken ls alias from the environment. This has actually | |
664 | # happened. Such a system could not be considered "sane". | |
665 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
666 | alias in your environment" 1>&2; exit 1; } | |
667 | fi | |
668 | ||
669 | test "$2" = conftestfile | |
670 | ) | |
671 | then | |
672 | # Ok. | |
673 | : | |
674 | else | |
675 | { echo "configure: error: newly created file is older than distributed files! | |
676 | Check your system clock" 1>&2; exit 1; } | |
677 | fi | |
678 | rm -f conftest* | |
679 | echo "$ac_t""yes" 1>&6 | |
680 | if test "$program_transform_name" = s,x,x,; then | |
681 | program_transform_name= | |
682 | else | |
683 | # Double any \ or $. echo might interpret backslashes. | |
684 | cat <<\EOF_SED > conftestsed | |
685 | s,\\,\\\\,g; s,\$,$$,g | |
686 | EOF_SED | |
687 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
688 | rm -f conftestsed | |
689 | fi | |
690 | test "$program_prefix" != NONE && | |
691 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
692 | # Use a double $ so make ignores it. | |
693 | test "$program_suffix" != NONE && | |
694 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
695 | ||
696 | # sed with no file args requires a program. | |
697 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
698 | ||
699 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
4c7726b1 | 700 | echo "configure:701: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
1530be84 TT |
701 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
702 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
703 | echo $ac_n "(cached) $ac_c" 1>&6 | |
704 | else | |
705 | cat > conftestmake <<\EOF | |
706 | all: | |
707 | @echo 'ac_maketemp="${MAKE}"' | |
708 | EOF | |
709 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
710 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
711 | if test -n "$ac_maketemp"; then | |
712 | eval ac_cv_prog_make_${ac_make}_set=yes | |
713 | else | |
714 | eval ac_cv_prog_make_${ac_make}_set=no | |
715 | fi | |
716 | rm -f conftestmake | |
717 | fi | |
718 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
719 | echo "$ac_t""yes" 1>&6 | |
720 | SET_MAKE= | |
721 | else | |
722 | echo "$ac_t""no" 1>&6 | |
723 | SET_MAKE="MAKE=${MAKE-make}" | |
724 | fi | |
725 | ||
726 | if test $host != $build; then | |
727 | ac_tool_prefix=${host_alias}- | |
728 | else | |
729 | ac_tool_prefix= | |
730 | fi | |
731 | ||
732 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
4c7726b1 | 733 | echo "configure:734: checking for Cygwin environment" >&5 |
1530be84 TT |
734 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
735 | echo $ac_n "(cached) $ac_c" 1>&6 | |
736 | else | |
737 | cat > conftest.$ac_ext <<EOF | |
4c7726b1 | 738 | #line 739 "configure" |
1530be84 TT |
739 | #include "confdefs.h" |
740 | ||
741 | int main() { | |
742 | ||
743 | #ifndef __CYGWIN__ | |
744 | #define __CYGWIN__ __CYGWIN32__ | |
745 | #endif | |
746 | return __CYGWIN__; | |
747 | ; return 0; } | |
748 | EOF | |
4c7726b1 | 749 | if { (eval echo configure:750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1530be84 TT |
750 | rm -rf conftest* |
751 | ac_cv_cygwin=yes | |
752 | else | |
753 | echo "configure: failed program was:" >&5 | |
754 | cat conftest.$ac_ext >&5 | |
755 | rm -rf conftest* | |
756 | ac_cv_cygwin=no | |
757 | fi | |
758 | rm -f conftest* | |
759 | rm -f conftest* | |
760 | fi | |
761 | ||
762 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
763 | CYGWIN= | |
764 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
765 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
4c7726b1 | 766 | echo "configure:767: checking for mingw32 environment" >&5 |
1530be84 TT |
767 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
769 | else | |
770 | cat > conftest.$ac_ext <<EOF | |
4c7726b1 | 771 | #line 772 "configure" |
1530be84 TT |
772 | #include "confdefs.h" |
773 | ||
774 | int main() { | |
775 | return __MINGW32__; | |
776 | ; return 0; } | |
777 | EOF | |
4c7726b1 | 778 | if { (eval echo configure:779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1530be84 TT |
779 | rm -rf conftest* |
780 | ac_cv_mingw32=yes | |
781 | else | |
782 | echo "configure: failed program was:" >&5 | |
783 | cat conftest.$ac_ext >&5 | |
784 | rm -rf conftest* | |
785 | ac_cv_mingw32=no | |
786 | fi | |
787 | rm -f conftest* | |
788 | rm -f conftest* | |
789 | fi | |
790 | ||
791 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
792 | MINGW32= | |
793 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
794 | ||
795 | # Check whether --enable-multilib or --disable-multilib was given. | |
796 | if test "${enable_multilib+set}" = set; then | |
797 | enableval="$enable_multilib" | |
798 | case "${enableval}" in | |
799 | yes) multilib=yes ;; | |
800 | no) multilib=no ;; | |
801 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; | |
802 | esac | |
803 | else | |
804 | multilib=yes | |
805 | fi | |
806 | ||
807 | ||
808 | if test "${srcdir}" = "."; then | |
5a2586cf TT |
809 | if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then |
810 | gc_basedir="${srcdir}/${with_multisrctop}../." | |
1530be84 | 811 | else |
5a2586cf | 812 | gc_basedir="${srcdir}/${with_multisrctop}." |
1530be84 TT |
813 | fi |
814 | else | |
5a2586cf | 815 | gc_basedir="${srcdir}/." |
1530be84 TT |
816 | fi |
817 | ||
a5440f9e | 818 | ac_aux_dir= |
5a2586cf | 819 | for ac_dir in $gc_basedir/.. $srcdir/$gc_basedir/..; do |
a5440f9e TT |
820 | if test -f $ac_dir/install-sh; then |
821 | ac_aux_dir=$ac_dir | |
822 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
823 | break | |
824 | elif test -f $ac_dir/install.sh; then | |
825 | ac_aux_dir=$ac_dir | |
826 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
827 | break | |
828 | fi | |
829 | done | |
830 | if test -z "$ac_aux_dir"; then | |
5a2586cf | 831 | { echo "configure: error: can not find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." 1>&2; exit 1; } |
a5440f9e TT |
832 | fi |
833 | ac_config_guess=$ac_aux_dir/config.guess | |
834 | ac_config_sub=$ac_aux_dir/config.sub | |
835 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
836 | ||
837 | if :; then :; else | |
838 | # This overrides the previous occurrence for automake, but not for | |
839 | # autoconf, which is exactly what we want. | |
840 | ac_aux_dir= | |
841 | for ac_dir in .. $srcdir/..; do | |
842 | if test -f $ac_dir/install-sh; then | |
843 | ac_aux_dir=$ac_dir | |
844 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
845 | break | |
846 | elif test -f $ac_dir/install.sh; then | |
847 | ac_aux_dir=$ac_dir | |
848 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
849 | break | |
850 | fi | |
851 | done | |
852 | if test -z "$ac_aux_dir"; then | |
853 | { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; } | |
854 | fi | |
855 | ac_config_guess=$ac_aux_dir/config.guess | |
856 | ac_config_sub=$ac_aux_dir/config.sub | |
857 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
858 | ||
859 | fi | |
860 | ||
861 | ||
862 | # Do some error checking and defaulting for the host and target type. | |
863 | # The inputs are: | |
864 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
865 | # | |
866 | # The rules are: | |
867 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
868 | # same time. | |
869 | # 2. Host defaults to nonopt. | |
870 | # 3. If nonopt is not specified, then host defaults to the current host, | |
871 | # as determined by config.guess. | |
872 | # 4. Target and build default to nonopt. | |
873 | # 5. If nonopt is not specified, then target and build default to host. | |
874 | ||
875 | # The aliases save the names the user supplied, while $host etc. | |
876 | # will get canonicalized. | |
877 | case $host---$target---$nonopt in | |
878 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
879 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
880 | esac | |
1530be84 TT |
881 | |
882 | ||
883 | # Make sure we can run config.sub. | |
884 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
885 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
886 | fi | |
887 | ||
888 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
4c7726b1 | 889 | echo "configure:890: checking host system type" >&5 |
1530be84 TT |
890 | |
891 | host_alias=$host | |
892 | case "$host_alias" in | |
893 | NONE) | |
894 | case $nonopt in | |
895 | NONE) | |
896 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
897 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
898 | fi ;; | |
899 | *) host_alias=$nonopt ;; | |
900 | esac ;; | |
901 | esac | |
902 | ||
903 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
904 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
905 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
906 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
907 | echo "$ac_t""$host" 1>&6 | |
908 | ||
a5440f9e | 909 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
4c7726b1 | 910 | echo "configure:911: checking target system type" >&5 |
a5440f9e TT |
911 | |
912 | target_alias=$target | |
913 | case "$target_alias" in | |
914 | NONE) | |
915 | case $nonopt in | |
916 | NONE) target_alias=$host_alias ;; | |
917 | *) target_alias=$nonopt ;; | |
918 | esac ;; | |
919 | esac | |
920 | ||
921 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
922 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
923 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
924 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
925 | echo "$ac_t""$target" 1>&6 | |
926 | ||
927 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
4c7726b1 | 928 | echo "configure:929: checking build system type" >&5 |
a5440f9e TT |
929 | |
930 | build_alias=$build | |
931 | case "$build_alias" in | |
932 | NONE) | |
933 | case $nonopt in | |
934 | NONE) build_alias=$host_alias ;; | |
935 | *) build_alias=$nonopt ;; | |
936 | esac ;; | |
937 | esac | |
938 | ||
939 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
940 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
941 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
942 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
943 | echo "$ac_t""$build" 1>&6 | |
944 | ||
945 | test "$host_alias" != "$target_alias" && | |
946 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
947 | NONENONEs,x,x, && | |
948 | program_prefix=${target_alias}- | |
949 | ||
1530be84 | 950 | |
57b74bf9 TT |
951 | # This works around an automake problem. |
952 | mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs" | |
953 | ||
954 | ||
1530be84 | 955 | |
5a2586cf | 956 | PACKAGE=gc |
1530be84 | 957 | |
5a2586cf | 958 | VERSION=6.0 |
1530be84 TT |
959 | |
960 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
961 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
962 | fi | |
963 | ||
964 | ||
965 | ||
966 | missing_dir=`cd $ac_aux_dir && pwd` | |
967 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
4c7726b1 | 968 | echo "configure:969: checking for working aclocal" >&5 |
1530be84 TT |
969 | # Run test in a subshell; some versions of sh will print an error if |
970 | # an executable is not found, even if stderr is redirected. | |
971 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
972 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
973 | ACLOCAL=aclocal | |
974 | echo "$ac_t""found" 1>&6 | |
975 | else | |
976 | ACLOCAL="$missing_dir/missing aclocal" | |
977 | echo "$ac_t""missing" 1>&6 | |
978 | fi | |
979 | ||
980 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
4c7726b1 | 981 | echo "configure:982: checking for working autoconf" >&5 |
1530be84 TT |
982 | # Run test in a subshell; some versions of sh will print an error if |
983 | # an executable is not found, even if stderr is redirected. | |
984 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
985 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
986 | AUTOCONF=autoconf | |
987 | echo "$ac_t""found" 1>&6 | |
988 | else | |
989 | AUTOCONF="$missing_dir/missing autoconf" | |
990 | echo "$ac_t""missing" 1>&6 | |
991 | fi | |
992 | ||
993 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
4c7726b1 | 994 | echo "configure:995: checking for working automake" >&5 |
1530be84 TT |
995 | # Run test in a subshell; some versions of sh will print an error if |
996 | # an executable is not found, even if stderr is redirected. | |
997 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
998 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
999 | AUTOMAKE=automake | |
1000 | echo "$ac_t""found" 1>&6 | |
1001 | else | |
1002 | AUTOMAKE="$missing_dir/missing automake" | |
1003 | echo "$ac_t""missing" 1>&6 | |
1004 | fi | |
1005 | ||
1006 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
4c7726b1 | 1007 | echo "configure:1008: checking for working autoheader" >&5 |
1530be84 TT |
1008 | # Run test in a subshell; some versions of sh will print an error if |
1009 | # an executable is not found, even if stderr is redirected. | |
1010 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1011 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1012 | AUTOHEADER=autoheader | |
1013 | echo "$ac_t""found" 1>&6 | |
1014 | else | |
1015 | AUTOHEADER="$missing_dir/missing autoheader" | |
1016 | echo "$ac_t""missing" 1>&6 | |
1017 | fi | |
1018 | ||
1019 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
4c7726b1 | 1020 | echo "configure:1021: checking for working makeinfo" >&5 |
1530be84 TT |
1021 | # Run test in a subshell; some versions of sh will print an error if |
1022 | # an executable is not found, even if stderr is redirected. | |
1023 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1024 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1025 | MAKEINFO=makeinfo | |
1026 | echo "$ac_t""found" 1>&6 | |
1027 | else | |
1028 | MAKEINFO="$missing_dir/missing makeinfo" | |
1029 | echo "$ac_t""missing" 1>&6 | |
1030 | fi | |
1031 | ||
1032 | ||
1033 | ||
1034 | # FIXME: We temporarily define our own version of AC_PROG_CC. This is | |
1035 | # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We | |
1036 | # are probably using a cross compiler, which will not be able to fully | |
1037 | # link an executable. This should really be fixed in autoconf | |
1038 | # itself. | |
1039 | ||
1040 | ||
1041 | ||
54ce7452 | 1042 | |
1530be84 TT |
1043 | # Extract the first word of "gcc", so it can be a program name with args. |
1044 | set dummy gcc; ac_word=$2 | |
1045 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4c7726b1 | 1046 | echo "configure:1047: checking for $ac_word" >&5 |
1530be84 TT |
1047 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1049 | else | |
1050 | if test -n "$CC"; then | |
1051 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1052 | else | |
1053 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1054 | ac_dummy="$PATH" | |
1055 | for ac_dir in $ac_dummy; do | |
1056 | test -z "$ac_dir" && ac_dir=. | |
1057 | if test -f $ac_dir/$ac_word; then | |
1058 | ac_cv_prog_CC="gcc" | |
1059 | break | |
1060 | fi | |
1061 | done | |
1062 | IFS="$ac_save_ifs" | |
1063 | fi | |
1064 | fi | |
1065 | CC="$ac_cv_prog_CC" | |
1066 | if test -n "$CC"; then | |
1067 | echo "$ac_t""$CC" 1>&6 | |
1068 | else | |
1069 | echo "$ac_t""no" 1>&6 | |
1070 | fi | |
1071 | ||
1072 | if test -z "$CC"; then | |
1073 | # Extract the first word of "cc", so it can be a program name with args. | |
1074 | set dummy cc; ac_word=$2 | |
1075 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4c7726b1 | 1076 | echo "configure:1077: checking for $ac_word" >&5 |
1530be84 TT |
1077 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1079 | else | |
1080 | if test -n "$CC"; then | |
1081 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1082 | else | |
1083 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1084 | ac_prog_rejected=no | |
1085 | ac_dummy="$PATH" | |
1086 | for ac_dir in $ac_dummy; do | |
1087 | test -z "$ac_dir" && ac_dir=. | |
1088 | if test -f $ac_dir/$ac_word; then | |
1089 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1090 | ac_prog_rejected=yes | |
1091 | continue | |
1092 | fi | |
1093 | ac_cv_prog_CC="cc" | |
1094 | break | |
1095 | fi | |
1096 | done | |
1097 | IFS="$ac_save_ifs" | |
1098 | if test $ac_prog_rejected = yes; then | |
1099 | # We found a bogon in the path, so make sure we never use it. | |
1100 | set dummy $ac_cv_prog_CC | |
1101 | shift | |
1102 | if test $# -gt 0; then | |
1103 | # We chose a different compiler from the bogus one. | |
1104 | # However, it has the same basename, so the bogon will be chosen | |
1105 | # first if we set CC to just the basename; use the full file name. | |
1106 | shift | |
1107 | set dummy "$ac_dir/$ac_word" "$@" | |
1108 | shift | |
1109 | ac_cv_prog_CC="$@" | |
1110 | fi | |
1111 | fi | |
1112 | fi | |
1113 | fi | |
1114 | CC="$ac_cv_prog_CC" | |
1115 | if test -n "$CC"; then | |
1116 | echo "$ac_t""$CC" 1>&6 | |
1117 | else | |
1118 | echo "$ac_t""no" 1>&6 | |
1119 | fi | |
1120 | ||
1121 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1122 | fi | |
1123 | ||
1124 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
4c7726b1 | 1125 | echo "configure:1126: checking whether we are using GNU C" >&5 |
1530be84 TT |
1126 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1127 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1128 | else | |
1129 | cat > conftest.c <<EOF | |
1130 | #ifdef __GNUC__ | |
1131 | yes; | |
1132 | #endif | |
1133 | EOF | |
4c7726b1 | 1134 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1530be84 TT |
1135 | ac_cv_prog_gcc=yes |
1136 | else | |
1137 | ac_cv_prog_gcc=no | |
1138 | fi | |
1139 | fi | |
1140 | ||
1141 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1142 | ||
1143 | if test $ac_cv_prog_gcc = yes; then | |
1144 | GCC=yes | |
1145 | ac_test_CFLAGS="${CFLAGS+set}" | |
1146 | ac_save_CFLAGS="$CFLAGS" | |
1147 | CFLAGS= | |
1148 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
4c7726b1 | 1149 | echo "configure:1150: checking whether ${CC-cc} accepts -g" >&5 |
1530be84 TT |
1150 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1152 | else | |
1153 | echo 'void f(){}' > conftest.c | |
1154 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1155 | ac_cv_prog_cc_g=yes | |
1156 | else | |
1157 | ac_cv_prog_cc_g=no | |
1158 | fi | |
1159 | rm -f conftest* | |
1160 | ||
1161 | fi | |
1162 | ||
1163 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1164 | if test "$ac_test_CFLAGS" = set; then | |
1165 | CFLAGS="$ac_save_CFLAGS" | |
1166 | elif test $ac_cv_prog_cc_g = yes; then | |
1167 | CFLAGS="-g -O2" | |
1168 | else | |
1169 | CFLAGS="-O2" | |
1170 | fi | |
1171 | else | |
1172 | GCC= | |
1173 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
1174 | fi | |
1175 | ||
1176 | ||
1177 | # Likewise for AC_PROG_CXX. | |
1178 | ||
1179 | ||
54ce7452 | 1180 | |
1530be84 TT |
1181 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ |
1182 | do | |
1183 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1184 | set dummy $ac_prog; ac_word=$2 | |
1185 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4c7726b1 | 1186 | echo "configure:1187: checking for $ac_word" >&5 |
1530be84 TT |
1187 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
1188 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1189 | else | |
1190 | if test -n "$CXX"; then | |
1191 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
1192 | else | |
1193 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1194 | ac_dummy="$PATH" | |
1195 | for ac_dir in $ac_dummy; do | |
1196 | test -z "$ac_dir" && ac_dir=. | |
1197 | if test -f $ac_dir/$ac_word; then | |
1198 | ac_cv_prog_CXX="$ac_prog" | |
1199 | break | |
1200 | fi | |
1201 | done | |
1202 | IFS="$ac_save_ifs" | |
1203 | fi | |
1204 | fi | |
1205 | CXX="$ac_cv_prog_CXX" | |
1206 | if test -n "$CXX"; then | |
1207 | echo "$ac_t""$CXX" 1>&6 | |
1208 | else | |
1209 | echo "$ac_t""no" 1>&6 | |
1210 | fi | |
1211 | ||
1212 | test -n "$CXX" && break | |
1213 | done | |
1214 | test -n "$CXX" || CXX="gcc" | |
1215 | ||
1216 | test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; } | |
1217 | ||
1218 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
4c7726b1 | 1219 | echo "configure:1220: checking whether we are using GNU C++" >&5 |
1530be84 TT |
1220 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
1221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1222 | else | |
1223 | cat > conftest.C <<EOF | |
1224 | #ifdef __GNUC__ | |
1225 | yes; | |
1226 | #endif | |
1227 | EOF | |
4c7726b1 | 1228 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1530be84 TT |
1229 | ac_cv_prog_gxx=yes |
1230 | else | |
1231 | ac_cv_prog_gxx=no | |
1232 | fi | |
1233 | fi | |
1234 | ||
1235 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
1236 | ||
1237 | if test $ac_cv_prog_gxx = yes; then | |
1238 | GXX=yes | |
1239 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
1240 | ac_save_CXXFLAGS="$CXXFLAGS" | |
1241 | CXXFLAGS= | |
1242 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
4c7726b1 | 1243 | echo "configure:1244: checking whether ${CXX-g++} accepts -g" >&5 |
1530be84 TT |
1244 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
1245 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1246 | else | |
1247 | echo 'void f(){}' > conftest.cc | |
1248 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
1249 | ac_cv_prog_cxx_g=yes | |
1250 | else | |
1251 | ac_cv_prog_cxx_g=no | |
1252 | fi | |
1253 | rm -f conftest* | |
1254 | ||
1255 | fi | |
1256 | ||
1257 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
1258 | if test "$ac_test_CXXFLAGS" = set; then | |
1259 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1260 | elif test $ac_cv_prog_cxx_g = yes; then | |
1261 | CXXFLAGS="-g -O2" | |
1262 | else | |
1263 | CXXFLAGS="-O2" | |
1264 | fi | |
1265 | else | |
1266 | GXX= | |
1267 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" | |
1268 | fi | |
1269 | ||
1270 | ||
1271 | # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't | |
1272 | # run it explicitly here, it will be run implicitly before | |
1273 | # NEWLIB_CONFIGURE, which doesn't work because that means that it will | |
1274 | # be run before AC_CANONICAL_HOST. | |
1275 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
4c7726b1 | 1276 | echo "configure:1277: checking build system type" >&5 |
1530be84 TT |
1277 | |
1278 | build_alias=$build | |
1279 | case "$build_alias" in | |
1280 | NONE) | |
1281 | case $nonopt in | |
1282 | NONE) build_alias=$host_alias ;; | |
1283 | *) build_alias=$nonopt ;; | |
1284 | esac ;; | |
1285 | esac | |
1286 | ||
1287 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1288 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1289 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1290 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1291 | echo "$ac_t""$build" 1>&6 | |
1292 | ||
1293 | ||
1294 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
1295 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
1296 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4c7726b1 | 1297 | echo "configure:1298: checking for $ac_word" >&5 |
1530be84 TT |
1298 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
1299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1300 | else | |
1301 | if test -n "$AS"; then | |
1302 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
1303 | else | |
1304 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1305 | ac_dummy="$PATH" | |
1306 | for ac_dir in $ac_dummy; do | |
1307 | test -z "$ac_dir" && ac_dir=. | |
1308 | if test -f $ac_dir/$ac_word; then | |
1309 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
1310 | break | |
1311 | fi | |
1312 | done | |
1313 | IFS="$ac_save_ifs" | |
1314 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" | |
1315 | fi | |
1316 | fi | |
1317 | AS="$ac_cv_prog_AS" | |
1318 | if test -n "$AS"; then | |
1319 | echo "$ac_t""$AS" 1>&6 | |
1320 | else | |
1321 | echo "$ac_t""no" 1>&6 | |
1322 | fi | |
1323 | ||
1324 | ||
1325 | ||
1326 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
1327 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
1328 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4c7726b1 | 1329 | echo "configure:1330: checking for $ac_word" >&5 |
1530be84 TT |
1330 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1332 | else | |
1333 | if test -n "$AR"; then | |
1334 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1335 | else | |
1336 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1337 | ac_dummy="$PATH" | |
1338 | for ac_dir in $ac_dummy; do | |
1339 | test -z "$ac_dir" && ac_dir=. | |
1340 | if test -f $ac_dir/$ac_word; then | |
1341 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
1342 | break | |
1343 | fi | |
1344 | done | |
1345 | IFS="$ac_save_ifs" | |
1346 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1347 | fi | |
1348 | fi | |
1349 | AR="$ac_cv_prog_AR" | |
1350 | if test -n "$AR"; then | |
1351 | echo "$ac_t""$AR" 1>&6 | |
1352 | else | |
1353 | echo "$ac_t""no" 1>&6 | |
1354 | fi | |
1355 | ||
1356 | ||
1357 | ||
1358 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1359 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1360 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4c7726b1 | 1361 | echo "configure:1362: checking for $ac_word" >&5 |
1530be84 TT |
1362 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1364 | else | |
1365 | if test -n "$RANLIB"; then | |
1366 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1367 | else | |
1368 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1369 | ac_dummy="$PATH" | |
1370 | for ac_dir in $ac_dummy; do | |
1371 | test -z "$ac_dir" && ac_dir=. | |
1372 | if test -f $ac_dir/$ac_word; then | |
1373 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1374 | break | |
1375 | fi | |
1376 | done | |
1377 | IFS="$ac_save_ifs" | |
1378 | fi | |
1379 | fi | |
1380 | RANLIB="$ac_cv_prog_RANLIB" | |
1381 | if test -n "$RANLIB"; then | |
1382 | echo "$ac_t""$RANLIB" 1>&6 | |
1383 | else | |
1384 | echo "$ac_t""no" 1>&6 | |
1385 | fi | |
1386 | ||
1387 | ||
1388 | if test -z "$ac_cv_prog_RANLIB"; then | |
1389 | if test -n "$ac_tool_prefix"; then | |
1390 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1391 | set dummy ranlib; ac_word=$2 | |
1392 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4c7726b1 | 1393 | echo "configure:1394: checking for $ac_word" >&5 |
1530be84 TT |
1394 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1396 | else | |
1397 | if test -n "$RANLIB"; then | |
1398 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1399 | else | |
1400 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1401 | ac_dummy="$PATH" | |
1402 | for ac_dir in $ac_dummy; do | |
1403 | test -z "$ac_dir" && ac_dir=. | |
1404 | if test -f $ac_dir/$ac_word; then | |
1405 | ac_cv_prog_RANLIB="ranlib" | |
1406 | break | |
1407 | fi | |
1408 | done | |
1409 | IFS="$ac_save_ifs" | |
1410 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1411 | fi | |
1412 | fi | |
1413 | RANLIB="$ac_cv_prog_RANLIB" | |
1414 | if test -n "$RANLIB"; then | |
1415 | echo "$ac_t""$RANLIB" 1>&6 | |
1416 | else | |
1417 | echo "$ac_t""no" 1>&6 | |
1418 | fi | |
1419 | ||
1420 | else | |
1421 | RANLIB=":" | |
1422 | fi | |
1423 | fi | |
1424 | ||
1425 | ||
1426 | # Find a good install program. We prefer a C program (faster), | |
1427 | # so one script is as good as another. But avoid the broken or | |
1428 | # incompatible versions: | |
1429 | # SysV /etc/install, /usr/sbin/install | |
1430 | # SunOS /usr/etc/install | |
1431 | # IRIX /sbin/install | |
1432 | # AIX /bin/install | |
1433 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1434 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1435 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1436 | # ./install, which can be erroneously created by make from ./install.sh. | |
1437 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
4c7726b1 | 1438 | echo "configure:1439: checking for a BSD compatible install" >&5 |
1530be84 TT |
1439 | if test -z "$INSTALL"; then |
1440 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1442 | else | |
1443 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
1444 | for ac_dir in $PATH; do | |
1445 | # Account for people who put trailing slashes in PATH elements. | |
1446 | case "$ac_dir/" in | |
1447 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1448 | *) | |
1449 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1450 | # Don't use installbsd from OSF since it installs stuff as root | |
1451 | # by default. | |
1452 | for ac_prog in ginstall scoinst install; do | |
1453 | if test -f $ac_dir/$ac_prog; then | |
1454 | if test $ac_prog = install && | |
1455 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1456 | # AIX install. It has an incompatible calling convention. | |
1457 | : | |
1458 | else | |
1459 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1460 | break 2 | |
1461 | fi | |
1462 | fi | |
1463 | done | |
1464 | ;; | |
1465 | esac | |
1466 | done | |
1467 | IFS="$ac_save_IFS" | |
1468 | ||
1469 | fi | |
1470 | if test "${ac_cv_path_install+set}" = set; then | |
1471 | INSTALL="$ac_cv_path_install" | |
1472 | else | |
1473 | # As a last resort, use the slow shell script. We don't cache a | |
1474 | # path for INSTALL within a source directory, because that will | |
1475 | # break other packages using the cache if that directory is | |
1476 | # removed, or if the path is relative. | |
1477 | INSTALL="$ac_install_sh" | |
1478 | fi | |
1479 | fi | |
1480 | echo "$ac_t""$INSTALL" 1>&6 | |
1481 | ||
1482 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1483 | # It thinks the first close brace ends the variable substitution. | |
1484 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1485 | ||
1486 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
1487 | ||
1488 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1489 | ||
1490 | ||
1491 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
4c7726b1 | 1492 | echo "configure:1493: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
1530be84 TT |
1493 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1494 | if test "${enable_maintainer_mode+set}" = set; then | |
1495 | enableval="$enable_maintainer_mode" | |
1496 | USE_MAINTAINER_MODE=$enableval | |
1497 | else | |
1498 | USE_MAINTAINER_MODE=no | |
1499 | fi | |
1500 | ||
1501 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
1502 | ||
1503 | ||
1504 | if test $USE_MAINTAINER_MODE = yes; then | |
1505 | MAINTAINER_MODE_TRUE= | |
1506 | MAINTAINER_MODE_FALSE='#' | |
1507 | else | |
1508 | MAINTAINER_MODE_TRUE='#' | |
1509 | MAINTAINER_MODE_FALSE= | |
1510 | fi | |
1511 | MAINT=$MAINTAINER_MODE_TRUE | |
1512 | ||
1513 | ||
1514 | ||
1515 | # We need AC_EXEEXT to keep automake happy in cygnus mode. However, | |
1516 | # at least currently, we never actually build a program, so we never | |
1517 | # need to use $(EXEEXT). Moreover, the test for EXEEXT normally | |
1518 | # fails, because we are probably configuring with a cross compiler | |
1519 | # which can't create executables. So we include AC_EXEEXT to keep | |
1520 | # automake happy, but we don't execute it, since we don't care about | |
1521 | # the result. | |
1522 | if false; then | |
4a849291 AO |
1523 | # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands |
1524 | # to nothing, so nothing would remain between `then' and `fi' if it | |
1525 | # were not for the `:' below. | |
1526 | : | |
1530be84 TT |
1527 | |
1528 | ||
1529 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
4c7726b1 | 1530 | echo "configure:1531: checking for executable suffix" >&5 |
1530be84 TT |
1531 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1532 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1533 | else | |
1534 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
1535 | ac_cv_exeext=.exe | |
1536 | else | |
1537 | rm -f conftest* | |
1538 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
1539 | ac_cv_exeext= | |
4c7726b1 | 1540 | if { (eval echo configure:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
1530be84 TT |
1541 | for file in conftest.*; do |
1542 | case $file in | |
f28c857f | 1543 | *.c | *.o | *.obj) ;; |
1530be84 TT |
1544 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
1545 | esac | |
1546 | done | |
1547 | else | |
1548 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1549 | fi | |
1550 | rm -f conftest* | |
1551 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1552 | fi | |
1553 | fi | |
1554 | ||
1555 | EXEEXT="" | |
1556 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1557 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1558 | ac_exeext=$EXEEXT | |
1559 | ||
1560 | fi | |
1561 | ||
c3b48847 | 1562 | . ${srcdir}/configure.host |
1530be84 | 1563 | |
5a2586cf TT |
1564 | case ${gc_basedir} in |
1565 | /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;; | |
1566 | *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;; | |
1530be84 TT |
1567 | esac |
1568 | ||
5a2586cf | 1569 | gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include" |
1530be84 TT |
1570 | case "${host}" in |
1571 | *-*-cygwin32*) | |
5a2586cf | 1572 | gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include" |
1530be84 TT |
1573 | ;; |
1574 | esac | |
1575 | ||
1530be84 | 1576 | |
5a2586cf | 1577 | GC_CFLAGS=${gc_cflags} |
1530be84 TT |
1578 | |
1579 | ||
1580 | ||
66deb2be TT |
1581 | # Check whether --enable-shared or --disable-shared was given. |
1582 | if test "${enable_shared+set}" = set; then | |
1583 | enableval="$enable_shared" | |
1584 | p=${PACKAGE-default} | |
2d65a52e | 1585 | case $enableval in |
66deb2be TT |
1586 | yes) enable_shared=yes ;; |
1587 | no) enable_shared=no ;; | |
1588 | *) | |
1589 | enable_shared=no | |
1590 | # Look at the argument we got. We use all the common list separators. | |
1591 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1592 | for pkg in $enableval; do | |
1593 | if test "X$pkg" = "X$p"; then | |
1594 | enable_shared=yes | |
1595 | fi | |
1596 | done | |
1597 | IFS="$ac_save_ifs" | |
1598 | ;; | |
1599 | esac | |
1600 | else | |
1601 | enable_shared=yes | |
1602 | fi | |
1603 | ||
1604 | # Check whether --enable-static or --disable-static was given. | |
1605 | if test "${enable_static+set}" = set; then | |
1606 | enableval="$enable_static" | |
1607 | p=${PACKAGE-default} | |
2d65a52e | 1608 | case $enableval in |
66deb2be TT |
1609 | yes) enable_static=yes ;; |
1610 | no) enable_static=no ;; | |
1611 | *) | |
1612 | enable_static=no | |
1613 | # Look at the argument we got. We use all the common list separators. | |
1614 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1615 | for pkg in $enableval; do | |
1616 | if test "X$pkg" = "X$p"; then | |
1617 | enable_static=yes | |
1618 | fi | |
1619 | done | |
1620 | IFS="$ac_save_ifs" | |
1621 | ;; | |
1622 | esac | |
1623 | else | |
1624 | enable_static=yes | |
1625 | fi | |
1626 | ||
115dabb8 TT |
1627 | # Check whether --enable-fast-install or --disable-fast-install was given. |
1628 | if test "${enable_fast_install+set}" = set; then | |
1629 | enableval="$enable_fast_install" | |
1630 | p=${PACKAGE-default} | |
2d65a52e | 1631 | case $enableval in |
115dabb8 TT |
1632 | yes) enable_fast_install=yes ;; |
1633 | no) enable_fast_install=no ;; | |
1634 | *) | |
1635 | enable_fast_install=no | |
1636 | # Look at the argument we got. We use all the common list separators. | |
1637 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1638 | for pkg in $enableval; do | |
1639 | if test "X$pkg" = "X$p"; then | |
1640 | enable_fast_install=yes | |
1641 | fi | |
1642 | done | |
1643 | IFS="$ac_save_ifs" | |
1644 | ;; | |
1645 | esac | |
1646 | else | |
1647 | enable_fast_install=yes | |
1648 | fi | |
1649 | ||
66deb2be TT |
1650 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
1651 | if test "${with_gnu_ld+set}" = set; then | |
1652 | withval="$with_gnu_ld" | |
1653 | test "$withval" = no || with_gnu_ld=yes | |
1654 | else | |
1655 | with_gnu_ld=no | |
1656 | fi | |
1657 | ||
66deb2be | 1658 | ac_prog=ld |
2d65a52e | 1659 | if test "$GCC" = yes; then |
66deb2be TT |
1660 | # Check if gcc -print-prog-name=ld gives a path. |
1661 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
4c7726b1 | 1662 | echo "configure:1663: checking for ld used by GCC" >&5 |
2f7bf5b7 AO |
1663 | case $host in |
1664 | *-*-mingw*) | |
1665 | # gcc leaves a trailing carriage return which upsets mingw | |
1666 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1667 | *) | |
1668 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
1669 | esac | |
2d65a52e | 1670 | case $ac_prog in |
115dabb8 | 1671 | # Accept absolute paths. |
20bbd3cd | 1672 | [\\/]* | [A-Za-z]:[\\/]*) |
115dabb8 TT |
1673 | re_direlt='/[^/][^/]*/\.\./' |
1674 | # Canonicalize the path of ld | |
1675 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1676 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1677 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1678 | done | |
1679 | test -z "$LD" && LD="$ac_prog" | |
1680 | ;; | |
66deb2be TT |
1681 | "") |
1682 | # If it fails, then pretend we aren't using GCC. | |
1683 | ac_prog=ld | |
1684 | ;; | |
1685 | *) | |
1686 | # If it is relative, then search for the first ld in PATH. | |
1687 | with_gnu_ld=unknown | |
1688 | ;; | |
1689 | esac | |
1690 | elif test "$with_gnu_ld" = yes; then | |
1691 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
4c7726b1 | 1692 | echo "configure:1693: checking for GNU ld" >&5 |
66deb2be TT |
1693 | else |
1694 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
4c7726b1 | 1695 | echo "configure:1696: checking for non-GNU ld" >&5 |
66deb2be | 1696 | fi |
2d65a52e | 1697 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then |
66deb2be TT |
1698 | echo $ac_n "(cached) $ac_c" 1>&6 |
1699 | else | |
1700 | if test -z "$LD"; then | |
20bbd3cd | 1701 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
66deb2be TT |
1702 | for ac_dir in $PATH; do |
1703 | test -z "$ac_dir" && ac_dir=. | |
20bbd3cd | 1704 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
2d65a52e | 1705 | lt_cv_path_LD="$ac_dir/$ac_prog" |
66deb2be TT |
1706 | # Check to see if the program is GNU ld. I'd rather use --version, |
1707 | # but apparently some GNU ld's only accept -v. | |
1708 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
2d65a52e | 1709 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
66deb2be TT |
1710 | test "$with_gnu_ld" != no && break |
1711 | else | |
115dabb8 | 1712 | test "$with_gnu_ld" != yes && break |
66deb2be TT |
1713 | fi |
1714 | fi | |
1715 | done | |
1716 | IFS="$ac_save_ifs" | |
1717 | else | |
2d65a52e | 1718 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
66deb2be TT |
1719 | fi |
1720 | fi | |
1721 | ||
2d65a52e | 1722 | LD="$lt_cv_path_LD" |
66deb2be TT |
1723 | if test -n "$LD"; then |
1724 | echo "$ac_t""$LD" 1>&6 | |
1725 | else | |
1726 | echo "$ac_t""no" 1>&6 | |
1727 | fi | |
1728 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
66deb2be | 1729 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
4c7726b1 | 1730 | echo "configure:1731: checking if the linker ($LD) is GNU ld" >&5 |
2d65a52e | 1731 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
66deb2be TT |
1732 | echo $ac_n "(cached) $ac_c" 1>&6 |
1733 | else | |
1734 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1735 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
2d65a52e | 1736 | lt_cv_prog_gnu_ld=yes |
66deb2be | 1737 | else |
2d65a52e | 1738 | lt_cv_prog_gnu_ld=no |
66deb2be TT |
1739 | fi |
1740 | fi | |
1741 | ||
2d65a52e AO |
1742 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 |
1743 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
2f7bf5b7 AO |
1744 | |
1745 | ||
1746 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 | |
4c7726b1 | 1747 | echo "configure:1748: checking for $LD option to reload object files" >&5 |
2f7bf5b7 AO |
1748 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
1749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1750 | else | |
1751 | lt_cv_ld_reload_flag='-r' | |
1752 | fi | |
66deb2be | 1753 | |
2f7bf5b7 AO |
1754 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 |
1755 | reload_flag=$lt_cv_ld_reload_flag | |
1756 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
66deb2be TT |
1757 | |
1758 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
4c7726b1 | 1759 | echo "configure:1760: checking for BSD-compatible nm" >&5 |
2d65a52e | 1760 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
66deb2be TT |
1761 | echo $ac_n "(cached) $ac_c" 1>&6 |
1762 | else | |
1763 | if test -n "$NM"; then | |
1764 | # Let the user override the test. | |
2d65a52e | 1765 | lt_cv_path_NM="$NM" |
66deb2be | 1766 | else |
20bbd3cd | 1767 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
115dabb8 | 1768 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
66deb2be | 1769 | test -z "$ac_dir" && ac_dir=. |
2f7bf5b7 AO |
1770 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
1771 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
66deb2be TT |
1772 | # Check to see if the nm accepts a BSD-compat flag. |
1773 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1774 | # nm: unknown option "B" ignored | |
2f7bf5b7 AO |
1775 | # Tru64's nm complains that /dev/null is an invalid object file |
1776 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
2d65a52e | 1777 | lt_cv_path_NM="$tmp_nm -B" |
115dabb8 | 1778 | break |
2f7bf5b7 | 1779 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
2d65a52e | 1780 | lt_cv_path_NM="$tmp_nm -p" |
115dabb8 | 1781 | break |
66deb2be | 1782 | else |
2d65a52e | 1783 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
115dabb8 | 1784 | continue # so that we can try to find one that supports BSD flags |
66deb2be | 1785 | fi |
66deb2be TT |
1786 | fi |
1787 | done | |
1788 | IFS="$ac_save_ifs" | |
2d65a52e | 1789 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
66deb2be TT |
1790 | fi |
1791 | fi | |
1792 | ||
2d65a52e | 1793 | NM="$lt_cv_path_NM" |
66deb2be TT |
1794 | echo "$ac_t""$NM" 1>&6 |
1795 | ||
66deb2be | 1796 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
4c7726b1 | 1797 | echo "configure:1798: checking whether ln -s works" >&5 |
66deb2be TT |
1798 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1800 | else | |
1801 | rm -f conftestdata | |
1802 | if ln -s X conftestdata 2>/dev/null | |
1803 | then | |
1804 | rm -f conftestdata | |
1805 | ac_cv_prog_LN_S="ln -s" | |
1806 | else | |
1807 | ac_cv_prog_LN_S=ln | |
1808 | fi | |
1809 | fi | |
1810 | LN_S="$ac_cv_prog_LN_S" | |
1811 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1812 | echo "$ac_t""yes" 1>&6 | |
1813 | else | |
1814 | echo "$ac_t""no" 1>&6 | |
1815 | fi | |
1816 | ||
2f7bf5b7 | 1817 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
4c7726b1 | 1818 | echo "configure:1819: checking how to recognise dependant libraries" >&5 |
2f7bf5b7 AO |
1819 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
1820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1821 | else | |
5f527203 | 1822 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
2f7bf5b7 AO |
1823 | lt_cv_file_magic_test_file= |
1824 | lt_cv_deplibs_check_method='unknown' | |
1825 | # Need to set the preceding variable on all platforms that support | |
1826 | # interlibrary dependencies. | |
1827 | # 'none' -- dependencies not supported. | |
1828 | # `unknown' -- same as none, but documents that we really don't know. | |
1829 | # 'pass_all' -- all dependencies passed with no checks. | |
1830 | # 'test_compile' -- check by making test program. | |
1831 | # 'file_magic [regex]' -- check by looking for files in library path | |
1832 | # which responds to the $file_magic_cmd with a given egrep regex. | |
1833 | # If you have `file' or equivalent on your system and you're not sure | |
1834 | # whether `pass_all' will *always* work, you probably want this one. | |
1835 | ||
2d65a52e AO |
1836 | case $host_os in |
1837 | aix*) | |
2f7bf5b7 AO |
1838 | lt_cv_deplibs_check_method=pass_all |
1839 | ;; | |
1840 | ||
1841 | beos*) | |
1842 | lt_cv_deplibs_check_method=pass_all | |
1843 | ;; | |
1844 | ||
1845 | bsdi4*) | |
2d65a52e AO |
1846 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
1847 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
2f7bf5b7 AO |
1848 | lt_cv_file_magic_test_file=/shlib/libc.so |
1849 | ;; | |
1850 | ||
5f527203 | 1851 | cygwin* | mingw* |pw32*) |
2f7bf5b7 | 1852 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
5f527203 | 1853 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
2f7bf5b7 AO |
1854 | ;; |
1855 | ||
2d65a52e AO |
1856 | darwin* | rhapsody*) |
1857 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
1858 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
1859 | case "$host_os" in | |
1860 | rhapsody* | darwin1.012) | |
1861 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
1862 | ;; | |
1863 | *) # Darwin 1.3 on | |
1864 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
1865 | ;; | |
1866 | esac | |
1867 | ;; | |
1868 | ||
2f7bf5b7 AO |
1869 | freebsd* ) |
1870 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
2d65a52e | 1871 | case $host_cpu in |
2f7bf5b7 AO |
1872 | i*86 ) |
1873 | # Not sure whether the presence of OpenBSD here was a mistake. | |
1874 | # Let's accept both of them until this is cleared up. | |
2d65a52e AO |
1875 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
1876 | lt_cv_file_magic_cmd=/usr/bin/file | |
2f7bf5b7 AO |
1877 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
1878 | ;; | |
1879 | esac | |
1880 | else | |
1881 | lt_cv_deplibs_check_method=pass_all | |
1882 | fi | |
1883 | ;; | |
1884 | ||
1885 | gnu*) | |
1886 | lt_cv_deplibs_check_method=pass_all | |
1887 | ;; | |
1888 | ||
2d65a52e AO |
1889 | hpux10.20*|hpux11*) |
1890 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
2f7bf5b7 AO |
1891 | lt_cv_file_magic_cmd=/usr/bin/file |
1892 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
1893 | ;; | |
1894 | ||
1895 | irix5* | irix6*) | |
2d65a52e | 1896 | case $host_os in |
2f7bf5b7 AO |
1897 | irix5*) |
1898 | # this will be overridden with pass_all, but let us keep it just in case | |
1899 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
1900 | ;; | |
1901 | *) | |
2d65a52e | 1902 | case $LD in |
2f7bf5b7 AO |
1903 | *-32|*"-32 ") libmagic=32-bit;; |
1904 | *-n32|*"-n32 ") libmagic=N32;; | |
1905 | *-64|*"-64 ") libmagic=64-bit;; | |
1906 | *) libmagic=never-match;; | |
1907 | esac | |
1908 | # this will be overridden with pass_all, but let us keep it just in case | |
2d65a52e AO |
1909 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
1910 | ;; | |
2f7bf5b7 AO |
1911 | esac |
1912 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
1913 | lt_cv_deplibs_check_method=pass_all | |
1914 | ;; | |
1915 | ||
1916 | # This must be Linux ELF. | |
1917 | linux-gnu*) | |
2d65a52e | 1918 | case $host_cpu in |
33456445 | 1919 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
2f7bf5b7 AO |
1920 | lt_cv_deplibs_check_method=pass_all ;; |
1921 | *) | |
1922 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
2d65a52e AO |
1923 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
1924 | esac | |
2f7bf5b7 AO |
1925 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
1926 | ;; | |
1927 | ||
1928 | netbsd*) | |
2d65a52e AO |
1929 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
1930 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
2f7bf5b7 | 1931 | else |
2d65a52e | 1932 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
2f7bf5b7 AO |
1933 | fi |
1934 | ;; | |
1935 | ||
2d65a52e AO |
1936 | newsos6) |
1937 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
1938 | lt_cv_file_magic_cmd=/usr/bin/file | |
1939 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
1940 | ;; | |
1941 | ||
2f7bf5b7 AO |
1942 | osf3* | osf4* | osf5*) |
1943 | # this will be overridden with pass_all, but let us keep it just in case | |
1944 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
1945 | lt_cv_file_magic_test_file=/shlib/libc.so | |
1946 | lt_cv_deplibs_check_method=pass_all | |
1947 | ;; | |
66deb2be | 1948 | |
2f7bf5b7 AO |
1949 | sco3.2v5*) |
1950 | lt_cv_deplibs_check_method=pass_all | |
1951 | ;; | |
1952 | ||
1953 | solaris*) | |
1954 | lt_cv_deplibs_check_method=pass_all | |
1955 | lt_cv_file_magic_test_file=/lib/libc.so | |
1956 | ;; | |
1957 | ||
33456445 AO |
1958 | sysv5uw[78]* | sysv4*uw2*) |
1959 | lt_cv_deplibs_check_method=pass_all | |
1960 | ;; | |
1961 | ||
2f7bf5b7 | 1962 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
2d65a52e | 1963 | case $host_vendor in |
2f7bf5b7 AO |
1964 | ncr) |
1965 | lt_cv_deplibs_check_method=pass_all | |
1966 | ;; | |
1967 | motorola) | |
2d65a52e AO |
1968 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
1969 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
2f7bf5b7 AO |
1970 | ;; |
1971 | esac | |
1972 | ;; | |
1973 | esac | |
1974 | ||
1975 | fi | |
1976 | ||
1977 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | |
1978 | file_magic_cmd=$lt_cv_file_magic_cmd | |
1979 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1980 | ||
1981 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | |
4c7726b1 | 1982 | echo "configure:1983: checking for object suffix" >&5 |
2f7bf5b7 AO |
1983 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
1984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1985 | else | |
1986 | rm -f conftest* | |
1987 | echo 'int i = 1;' > conftest.$ac_ext | |
4c7726b1 | 1988 | if { (eval echo configure:1989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2f7bf5b7 AO |
1989 | for ac_file in conftest.*; do |
1990 | case $ac_file in | |
1991 | *.c) ;; | |
1992 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
1993 | esac | |
1994 | done | |
1995 | else | |
1996 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | |
1997 | fi | |
1998 | rm -f conftest* | |
1999 | fi | |
2000 | ||
2001 | echo "$ac_t""$ac_cv_objext" 1>&6 | |
2002 | OBJEXT=$ac_cv_objext | |
2003 | ac_objext=$ac_cv_objext | |
2004 | ||
2005 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
2006 | ||
2007 | # Only perform the check for file, if the check method requires it | |
2d65a52e | 2008 | case $deplibs_check_method in |
2f7bf5b7 | 2009 | file_magic*) |
5f527203 | 2010 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
2f7bf5b7 | 2011 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 |
4c7726b1 | 2012 | echo "configure:2013: checking for ${ac_tool_prefix}file" >&5 |
5f527203 | 2013 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
2f7bf5b7 AO |
2014 | echo $ac_n "(cached) $ac_c" 1>&6 |
2015 | else | |
2d65a52e | 2016 | case $MAGIC_CMD in |
2f7bf5b7 | 2017 | /*) |
5f527203 | 2018 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
2f7bf5b7 AO |
2019 | ;; |
2020 | ?:/*) | |
5f527203 | 2021 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
2f7bf5b7 AO |
2022 | ;; |
2023 | *) | |
5f527203 | 2024 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
2f7bf5b7 AO |
2025 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2026 | ac_dummy="/usr/bin:$PATH" | |
2027 | for ac_dir in $ac_dummy; do | |
2028 | test -z "$ac_dir" && ac_dir=. | |
2029 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
5f527203 | 2030 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
2f7bf5b7 | 2031 | if test -n "$file_magic_test_file"; then |
2d65a52e | 2032 | case $deplibs_check_method in |
2f7bf5b7 AO |
2033 | "file_magic "*) |
2034 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
5f527203 | 2035 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2f7bf5b7 AO |
2036 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2037 | egrep "$file_magic_regex" > /dev/null; then | |
2038 | : | |
2039 | else | |
2040 | cat <<EOF 1>&2 | |
2041 | ||
2042 | *** Warning: the command libtool uses to detect shared libraries, | |
2043 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
2044 | *** The result is that libtool may fail to recognize shared libraries | |
2045 | *** as such. This will affect the creation of libtool libraries that | |
2046 | *** depend on shared libraries, but programs linked with such libtool | |
2047 | *** libraries will work regardless of this problem. Nevertheless, you | |
2048 | *** may want to report the problem to your system manager and/or to | |
2049 | *** bug-libtool@gnu.org | |
2050 | ||
2051 | EOF | |
2052 | fi ;; | |
2053 | esac | |
2054 | fi | |
2055 | break | |
2056 | fi | |
2057 | done | |
2058 | IFS="$ac_save_ifs" | |
5f527203 | 2059 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
2f7bf5b7 | 2060 | ;; |
70635f1e | 2061 | esac |
2f7bf5b7 AO |
2062 | fi |
2063 | ||
5f527203 AO |
2064 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2065 | if test -n "$MAGIC_CMD"; then | |
2066 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
2f7bf5b7 AO |
2067 | else |
2068 | echo "$ac_t""no" 1>&6 | |
2069 | fi | |
2070 | ||
5f527203 | 2071 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
2f7bf5b7 AO |
2072 | if test -n "$ac_tool_prefix"; then |
2073 | echo $ac_n "checking for file""... $ac_c" 1>&6 | |
4c7726b1 | 2074 | echo "configure:2075: checking for file" >&5 |
5f527203 | 2075 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
2f7bf5b7 AO |
2076 | echo $ac_n "(cached) $ac_c" 1>&6 |
2077 | else | |
2d65a52e | 2078 | case $MAGIC_CMD in |
2f7bf5b7 | 2079 | /*) |
5f527203 | 2080 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
2f7bf5b7 AO |
2081 | ;; |
2082 | ?:/*) | |
5f527203 | 2083 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
2f7bf5b7 AO |
2084 | ;; |
2085 | *) | |
5f527203 | 2086 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
2f7bf5b7 AO |
2087 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2088 | ac_dummy="/usr/bin:$PATH" | |
2089 | for ac_dir in $ac_dummy; do | |
2090 | test -z "$ac_dir" && ac_dir=. | |
2091 | if test -f $ac_dir/file; then | |
5f527203 | 2092 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
2f7bf5b7 | 2093 | if test -n "$file_magic_test_file"; then |
2d65a52e | 2094 | case $deplibs_check_method in |
2f7bf5b7 AO |
2095 | "file_magic "*) |
2096 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
5f527203 | 2097 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2f7bf5b7 AO |
2098 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2099 | egrep "$file_magic_regex" > /dev/null; then | |
2100 | : | |
2101 | else | |
2102 | cat <<EOF 1>&2 | |
2103 | ||
2104 | *** Warning: the command libtool uses to detect shared libraries, | |
2105 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
2106 | *** The result is that libtool may fail to recognize shared libraries | |
2107 | *** as such. This will affect the creation of libtool libraries that | |
2108 | *** depend on shared libraries, but programs linked with such libtool | |
2109 | *** libraries will work regardless of this problem. Nevertheless, you | |
2110 | *** may want to report the problem to your system manager and/or to | |
2111 | *** bug-libtool@gnu.org | |
2112 | ||
2113 | EOF | |
2114 | fi ;; | |
2115 | esac | |
2116 | fi | |
2117 | break | |
2118 | fi | |
2119 | done | |
2120 | IFS="$ac_save_ifs" | |
5f527203 | 2121 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
2f7bf5b7 AO |
2122 | ;; |
2123 | esac | |
2124 | fi | |
2125 | ||
5f527203 AO |
2126 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2127 | if test -n "$MAGIC_CMD"; then | |
2128 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
2f7bf5b7 AO |
2129 | else |
2130 | echo "$ac_t""no" 1>&6 | |
2131 | fi | |
2132 | ||
2133 | else | |
5f527203 | 2134 | MAGIC_CMD=: |
2f7bf5b7 AO |
2135 | fi |
2136 | fi | |
2137 | ||
2138 | fi | |
2139 | ;; | |
2140 | esac | |
2141 | ||
2142 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2143 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2144 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4c7726b1 | 2145 | echo "configure:2146: checking for $ac_word" >&5 |
2f7bf5b7 AO |
2146 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2148 | else | |
2149 | if test -n "$RANLIB"; then | |
2150 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2151 | else | |
2152 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2153 | ac_dummy="$PATH" | |
2154 | for ac_dir in $ac_dummy; do | |
2155 | test -z "$ac_dir" && ac_dir=. | |
2156 | if test -f $ac_dir/$ac_word; then | |
2157 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2158 | break | |
2159 | fi | |
2160 | done | |
2161 | IFS="$ac_save_ifs" | |
2162 | fi | |
2163 | fi | |
2164 | RANLIB="$ac_cv_prog_RANLIB" | |
2165 | if test -n "$RANLIB"; then | |
2166 | echo "$ac_t""$RANLIB" 1>&6 | |
2167 | else | |
2168 | echo "$ac_t""no" 1>&6 | |
2169 | fi | |
2170 | ||
2171 | ||
2172 | if test -z "$ac_cv_prog_RANLIB"; then | |
2173 | if test -n "$ac_tool_prefix"; then | |
2174 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2175 | set dummy ranlib; ac_word=$2 | |
2176 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4c7726b1 | 2177 | echo "configure:2178: checking for $ac_word" >&5 |
2f7bf5b7 AO |
2178 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2180 | else | |
2181 | if test -n "$RANLIB"; then | |
2182 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2183 | else | |
2184 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2185 | ac_dummy="$PATH" | |
2186 | for ac_dir in $ac_dummy; do | |
2187 | test -z "$ac_dir" && ac_dir=. | |
2188 | if test -f $ac_dir/$ac_word; then | |
2189 | ac_cv_prog_RANLIB="ranlib" | |
2190 | break | |
2191 | fi | |
2192 | done | |
2193 | IFS="$ac_save_ifs" | |
2194 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2195 | fi | |
2196 | fi | |
2197 | RANLIB="$ac_cv_prog_RANLIB" | |
2198 | if test -n "$RANLIB"; then | |
2199 | echo "$ac_t""$RANLIB" 1>&6 | |
2200 | else | |
2201 | echo "$ac_t""no" 1>&6 | |
2202 | fi | |
2203 | ||
2204 | else | |
2205 | RANLIB=":" | |
2206 | fi | |
2207 | fi | |
2208 | ||
2209 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2210 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2211 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4c7726b1 | 2212 | echo "configure:2213: checking for $ac_word" >&5 |
2f7bf5b7 AO |
2213 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2215 | else | |
2216 | if test -n "$STRIP"; then | |
2217 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2218 | else | |
2219 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2220 | ac_dummy="$PATH" | |
2221 | for ac_dir in $ac_dummy; do | |
2222 | test -z "$ac_dir" && ac_dir=. | |
2223 | if test -f $ac_dir/$ac_word; then | |
2224 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2225 | break | |
2226 | fi | |
2227 | done | |
2228 | IFS="$ac_save_ifs" | |
2229 | fi | |
2230 | fi | |
2231 | STRIP="$ac_cv_prog_STRIP" | |
2232 | if test -n "$STRIP"; then | |
2233 | echo "$ac_t""$STRIP" 1>&6 | |
2234 | else | |
2235 | echo "$ac_t""no" 1>&6 | |
2236 | fi | |
2237 | ||
2238 | ||
2239 | if test -z "$ac_cv_prog_STRIP"; then | |
2240 | if test -n "$ac_tool_prefix"; then | |
2241 | # Extract the first word of "strip", so it can be a program name with args. | |
2242 | set dummy strip; ac_word=$2 | |
2243 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4c7726b1 | 2244 | echo "configure:2245: checking for $ac_word" >&5 |
2f7bf5b7 AO |
2245 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2247 | else | |
2248 | if test -n "$STRIP"; then | |
2249 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2250 | else | |
2251 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2252 | ac_dummy="$PATH" | |
2253 | for ac_dir in $ac_dummy; do | |
2254 | test -z "$ac_dir" && ac_dir=. | |
2255 | if test -f $ac_dir/$ac_word; then | |
2256 | ac_cv_prog_STRIP="strip" | |
2257 | break | |
2258 | fi | |
2259 | done | |
2260 | IFS="$ac_save_ifs" | |
2261 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
2262 | fi | |
2263 | fi | |
2264 | STRIP="$ac_cv_prog_STRIP" | |
2265 | if test -n "$STRIP"; then | |
2266 | echo "$ac_t""$STRIP" 1>&6 | |
2267 | else | |
2268 | echo "$ac_t""no" 1>&6 | |
2269 | fi | |
2270 | ||
2271 | else | |
2272 | STRIP=":" | |
2273 | fi | |
2274 | fi | |
2275 | ||
70635f1e | 2276 | |
66deb2be | 2277 | # Check for any special flags to pass to ltconfig. |
115dabb8 | 2278 | libtool_flags="--cache-file=$cache_file" |
66deb2be TT |
2279 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
2280 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
115dabb8 | 2281 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
2d65a52e AO |
2282 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
2283 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
66deb2be | 2284 | |
20bbd3cd TT |
2285 | |
2286 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
2287 | if test "${enable_libtool_lock+set}" = set; then | |
2288 | enableval="$enable_libtool_lock" | |
2289 | : | |
2290 | fi | |
2291 | ||
2292 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
2293 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
2294 | ||
2f7bf5b7 AO |
2295 | # Check whether --with-pic or --without-pic was given. |
2296 | if test "${with_pic+set}" = set; then | |
2297 | withval="$with_pic" | |
2298 | pic_mode="$withval" | |
2299 | else | |
2300 | pic_mode=default | |
2301 | fi | |
2302 | ||
2303 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
2304 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
2305 | ||
66deb2be TT |
2306 | # Some flags need to be propagated to the compiler or linker for good |
2307 | # libtool support. | |
2d65a52e | 2308 | case $host in |
66deb2be TT |
2309 | *-*-irix6*) |
2310 | # Find out which ABI we are using. | |
4c7726b1 BM |
2311 | echo '#line 2312 "configure"' > conftest.$ac_ext |
2312 | if { (eval echo configure:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2d65a52e | 2313 | case `/usr/bin/file conftest.$ac_objext` in |
66deb2be TT |
2314 | *32-bit*) |
2315 | LD="${LD-ld} -32" | |
2316 | ;; | |
2317 | *N32*) | |
2318 | LD="${LD-ld} -n32" | |
2319 | ;; | |
2320 | *64-bit*) | |
2321 | LD="${LD-ld} -64" | |
2322 | ;; | |
2323 | esac | |
2324 | fi | |
2325 | rm -rf conftest* | |
2326 | ;; | |
2327 | ||
2328 | *-*-sco3.2v5*) | |
2329 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
115dabb8 | 2330 | SAVE_CFLAGS="$CFLAGS" |
66deb2be | 2331 | CFLAGS="$CFLAGS -belf" |
115dabb8 | 2332 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
4c7726b1 | 2333 | echo "configure:2334: checking whether the C compiler needs -belf" >&5 |
115dabb8 TT |
2334 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
2335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2336 | else | |
2f7bf5b7 AO |
2337 | |
2338 | ac_ext=c | |
2339 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2340 | ac_cpp='$CPP $CPPFLAGS' | |
2341 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2342 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2343 | cross_compiling=$ac_cv_prog_cc_cross | |
2344 | ||
2345 | cat > conftest.$ac_ext <<EOF | |
4c7726b1 | 2346 | #line 2347 "configure" |
115dabb8 TT |
2347 | #include "confdefs.h" |
2348 | ||
2349 | int main() { | |
2350 | ||
2351 | ; return 0; } | |
2352 | EOF | |
4c7726b1 | 2353 | if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
115dabb8 TT |
2354 | rm -rf conftest* |
2355 | lt_cv_cc_needs_belf=yes | |
2356 | else | |
2357 | echo "configure: failed program was:" >&5 | |
2358 | cat conftest.$ac_ext >&5 | |
2359 | rm -rf conftest* | |
2360 | lt_cv_cc_needs_belf=no | |
2361 | fi | |
2362 | rm -f conftest* | |
2f7bf5b7 AO |
2363 | ac_ext=c |
2364 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2365 | ac_cpp='$CPP $CPPFLAGS' | |
2366 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2367 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2368 | cross_compiling=$ac_cv_prog_cc_cross | |
2369 | ||
115dabb8 TT |
2370 | fi |
2371 | ||
2372 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
2373 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
2374 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2375 | CFLAGS="$SAVE_CFLAGS" | |
2376 | fi | |
66deb2be TT |
2377 | ;; |
2378 | ||
66deb2be TT |
2379 | |
2380 | esac | |
2381 | ||
2f7bf5b7 | 2382 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
4c7726b1 | 2383 | echo "configure:2384: checking how to run the C++ preprocessor" >&5 |
2f7bf5b7 AO |
2384 | if test -z "$CXXCPP"; then |
2385 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
2386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2387 | else | |
2388 | ac_ext=C | |
2389 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2390 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2391 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2392 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2393 | cross_compiling=$ac_cv_prog_cxx_cross | |
2394 | CXXCPP="${CXX-g++} -E" | |
2395 | cat > conftest.$ac_ext <<EOF | |
4c7726b1 | 2396 | #line 2397 "configure" |
2f7bf5b7 AO |
2397 | #include "confdefs.h" |
2398 | #include <stdlib.h> | |
2399 | EOF | |
2400 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4c7726b1 | 2401 | { (eval echo configure:2402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2f7bf5b7 AO |
2402 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2403 | if test -z "$ac_err"; then | |
2404 | : | |
2405 | else | |
2406 | echo "$ac_err" >&5 | |
2407 | echo "configure: failed program was:" >&5 | |
2408 | cat conftest.$ac_ext >&5 | |
2409 | rm -rf conftest* | |
2410 | CXXCPP=/lib/cpp | |
2411 | fi | |
2412 | rm -f conftest* | |
2413 | ac_cv_prog_CXXCPP="$CXXCPP" | |
2414 | ac_ext=c | |
2415 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2416 | ac_cpp='$CPP $CPPFLAGS' | |
2417 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2418 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2419 | cross_compiling=$ac_cv_prog_cc_cross | |
2420 | fi | |
2421 | fi | |
2422 | CXXCPP="$ac_cv_prog_CXXCPP" | |
2423 | echo "$ac_t""$CXXCPP" 1>&6 | |
2424 | ||
115dabb8 TT |
2425 | |
2426 | # Save cache, so that ltconfig can load it | |
2427 | cat > confcache <<\EOF | |
2428 | # This file is a shell script that caches the results of configure | |
2429 | # tests run on this system so they can be shared between configure | |
2430 | # scripts and configure runs. It is not useful on other systems. | |
2431 | # If it contains results you don't want to keep, you may remove or edit it. | |
2432 | # | |
2433 | # By default, configure uses ./config.cache as the cache file, | |
2434 | # creating it if it does not exist already. You can give configure | |
2435 | # the --cache-file=FILE option to use a different cache file; that is | |
2436 | # what configure does when it calls configure scripts in | |
2437 | # subdirectories, so they share the cache. | |
2438 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2439 | # config.status only pays attention to the cache file if you give it the | |
2440 | # --recheck option to rerun configure. | |
2441 | # | |
2442 | EOF | |
2443 | # The following way of writing the cache mishandles newlines in values, | |
2444 | # but we know of no workaround that is simple, portable, and efficient. | |
2445 | # So, don't put newlines in cache variables' values. | |
2446 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2447 | # and sets the high bit in the cache file unless we assign to the vars. | |
2448 | (set) 2>&1 | | |
2449 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2450 | *ac_space=\ *) | |
2451 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2452 | # turns \\\\ into \\, and sed turns \\ into \). | |
2453 | sed -n \ | |
2454 | -e "s/'/'\\\\''/g" \ | |
2455 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2456 | ;; | |
2457 | *) | |
2458 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2459 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2460 | ;; | |
2461 | esac >> confcache | |
2462 | if cmp -s $cache_file confcache; then | |
2463 | : | |
2464 | else | |
2465 | if test -w $cache_file; then | |
2466 | echo "updating cache $cache_file" | |
2467 | cat confcache > $cache_file | |
2468 | else | |
2469 | echo "not updating unwritable cache $cache_file" | |
2470 | fi | |
2471 | fi | |
2472 | rm -f confcache | |
2473 | ||
2474 | ||
66deb2be | 2475 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
2f7bf5b7 | 2476 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
5f527203 | 2477 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
2f7bf5b7 AO |
2478 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
2479 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2480 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2481 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
66deb2be | 2482 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
2f7bf5b7 | 2483 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
66deb2be TT |
2484 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
2485 | ||
115dabb8 TT |
2486 | # Reload cache, that may have been modified by ltconfig |
2487 | if test -r "$cache_file"; then | |
2488 | echo "loading cache $cache_file" | |
2489 | . $cache_file | |
2490 | else | |
2491 | echo "creating cache $cache_file" | |
2492 | > $cache_file | |
2493 | fi | |
2494 | ||
2495 | ||
2496 | # This can be used to rebuild libtool when needed | |
2f7bf5b7 | 2497 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
115dabb8 TT |
2498 | |
2499 | # Always use our own libtool. | |
2500 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
2501 | ||
66deb2be TT |
2502 | # Redirect the config.log output again, so that the ltconfig log is not |
2503 | # clobbered by the next message. | |
2504 | exec 5>>./config.log | |
2505 | ||
2506 | ||
2f7bf5b7 | 2507 | |
2f7bf5b7 AO |
2508 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh" |
2509 | lt_save_CC="$CC" | |
2510 | lt_save_CFLAGS="$CFLAGS" | |
2511 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
2d65a52e | 2512 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
2f7bf5b7 AO |
2513 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
2514 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2515 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2516 | deplibs_check_method="$deplibs_check_method" \ | |
2517 | file_magic_cmd="$file_magic_cmd" \ | |
2518 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \ | |
2519 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \ | |
2520 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; } | |
2521 | CC="$lt_save_CC" | |
2522 | CFLAGS="$lt_save_CFLAGS" | |
2523 | ||
2524 | # Redirect the config.log output again, so that the ltconfig log is not | |
2525 | # clobbered by the next message. | |
2526 | exec 5>>./config.log | |
2527 | ||
2f7bf5b7 AO |
2528 | |
2529 | ||
2530 | ||
2531 | ||
5f527203 | 2532 | |
2f7bf5b7 | 2533 | |
1530be84 TT |
2534 | # Check whether --with-target-subdir or --without-target-subdir was given. |
2535 | if test "${with_target_subdir+set}" = set; then | |
2536 | withval="$with_target_subdir" | |
2537 | : | |
2538 | fi | |
2539 | ||
2540 | # Check whether --with-cross-host or --without-cross-host was given. | |
2541 | if test "${with_cross_host+set}" = set; then | |
2542 | withval="$with_cross_host" | |
2543 | : | |
2544 | fi | |
2545 | ||
2546 | ||
2547 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
4c7726b1 | 2548 | echo "configure:2549: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
1530be84 TT |
2549 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
2550 | if test "${enable_maintainer_mode+set}" = set; then | |
2551 | enableval="$enable_maintainer_mode" | |
2552 | USE_MAINTAINER_MODE=$enableval | |
2553 | else | |
2554 | USE_MAINTAINER_MODE=no | |
2555 | fi | |
2556 | ||
2557 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
2558 | ||
2559 | ||
2560 | if test $USE_MAINTAINER_MODE = yes; then | |
2561 | MAINTAINER_MODE_TRUE= | |
2562 | MAINTAINER_MODE_FALSE='#' | |
2563 | else | |
2564 | MAINTAINER_MODE_TRUE='#' | |
2565 | MAINTAINER_MODE_FALSE= | |
2566 | fi | |
2567 | MAINT=$MAINTAINER_MODE_TRUE | |
2568 | ||
2569 | ||
2570 | # automake wants to see AC_EXEEXT. But we don't need it. And having | |
2571 | # it is actually a problem, because the compiler we're passed can't | |
2572 | # necessarily do a full link. So we fool automake here. | |
01ef8751 AO |
2573 | if false; then |
2574 | # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands | |
2575 | # to nothing, so nothing would remain between `then' and `fi' if it | |
2576 | # were not for the `:' below. | |
2577 | : | |
2578 | ||
1530be84 TT |
2579 | |
2580 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
4c7726b1 | 2581 | echo "configure:2582: checking for executable suffix" >&5 |
1530be84 TT |
2582 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
2583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2584 | else | |
2585 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
2586 | ac_cv_exeext=.exe | |
2587 | else | |
2588 | rm -f conftest* | |
2589 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
2590 | ac_cv_exeext= | |
4c7726b1 | 2591 | if { (eval echo configure:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
1530be84 TT |
2592 | for file in conftest.*; do |
2593 | case $file in | |
f28c857f | 2594 | *.c | *.o | *.obj) ;; |
1530be84 TT |
2595 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
2596 | esac | |
2597 | done | |
2598 | else | |
2599 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
2600 | fi | |
2601 | rm -f conftest* | |
2602 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
2603 | fi | |
2604 | fi | |
2605 | ||
2606 | EXEEXT="" | |
2607 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
2608 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
2609 | ac_exeext=$EXEEXT | |
2610 | ||
2611 | fi | |
2612 | ||
0ff95153 | 2613 | echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6 |
4c7726b1 | 2614 | echo "configure:2615: checking for thread model used by GCC" >&5 |
0ff95153 TT |
2615 | THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` |
2616 | if test -z "$THREADS"; then | |
2617 | THREADS=no | |
5a2586cf | 2618 | fi |
0ff95153 | 2619 | echo "$ac_t""$THREADS" 1>&6 |
5a2586cf TT |
2620 | |
2621 | # Check whether --enable-parallel-mark or --disable-parallel-mark was given. | |
2622 | if test "${enable_parallel_mark+set}" = set; then | |
2623 | enableval="$enable_parallel_mark" | |
2624 | case "$THREADS" in | |
2625 | no | none | single) | |
2626 | { echo "configure: error: Parallel mark requires --enable-threads=x spec" 1>&2; exit 1; } | |
2627 | ;; | |
2628 | esac | |
2629 | ||
2630 | fi | |
2631 | ||
1530be84 | 2632 | |
9110a741 | 2633 | INCLUDES=-I${srcdir}/include |
e301621d | 2634 | THREADLIBS= |
1530be84 TT |
2635 | case "$THREADS" in |
2636 | no | none | single) | |
2637 | THREADS=none | |
2638 | ;; | |
2639 | posix | pthreads) | |
2640 | THREADS=posix | |
62aa6b06 | 2641 | THREADLIBS=-lpthread |
1530be84 | 2642 | case "$host" in |
5a2586cf TT |
2643 | x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux*) |
2644 | cat >> confdefs.h <<\EOF | |
2645 | #define GC_LINUX_THREADS 1 | |
2646 | EOF | |
2647 | ||
2648 | cat >> confdefs.h <<\EOF | |
2649 | #define _REENTRANT 1 | |
2650 | EOF | |
2651 | ||
2652 | if test "${enable_parallel_mark}"; then | |
2653 | cat >> confdefs.h <<\EOF | |
2654 | #define PARALLEL_MARK 1 | |
2655 | EOF | |
2656 | ||
2657 | fi | |
2658 | cat >> confdefs.h <<\EOF | |
2659 | #define THREAD_LOCAL_ALLOC 1 | |
2660 | EOF | |
2661 | ||
2662 | ;; | |
1530be84 TT |
2663 | *-*-linux*) |
2664 | cat >> confdefs.h <<\EOF | |
5a2586cf | 2665 | #define GC_LINUX_THREADS 1 |
1530be84 TT |
2666 | EOF |
2667 | ||
2668 | cat >> confdefs.h <<\EOF | |
2669 | #define _REENTRANT 1 | |
2670 | EOF | |
2671 | ||
5a2586cf TT |
2672 | ;; |
2673 | *-*-hpux*) | |
2674 | echo "configure: warning: "Only HP/UX 11 threads are supported."" 1>&2 | |
2675 | cat >> confdefs.h <<\EOF | |
2676 | #define GC_HPUX_THREADS 1 | |
2677 | EOF | |
2678 | ||
2679 | cat >> confdefs.h <<\EOF | |
2680 | #define _POSIX_C_SOURCE 199506L | |
2681 | EOF | |
2682 | ||
2683 | if test "${enable_parallel_mark}" = yes; then | |
2684 | cat >> confdefs.h <<\EOF | |
2685 | #define PARALLEL_MARK 1 | |
2686 | EOF | |
2687 | ||
2688 | fi | |
2689 | cat >> confdefs.h <<\EOF | |
2690 | #define THREAD_LOCAL_ALLOC 1 | |
2691 | EOF | |
2692 | ||
2693 | THREADLIBS="-lpthread -lrt" | |
1530be84 | 2694 | ;; |
62aa6b06 | 2695 | *-*-freebsd*) |
2b2ec3fb LR |
2696 | echo "configure: warning: "Threaded GC is prone to deadlock before FreeBSD 4.5."" 1>&2 |
2697 | echo "configure: warning: "Related symptom is pthread_join returns spurious EINTR."" 1>&2 | |
62aa6b06 | 2698 | cat >> confdefs.h <<\EOF |
4c7726b1 | 2699 | #define GC_FREEBSD_THREADS 1 |
62aa6b06 LR |
2700 | EOF |
2701 | ||
9110a741 | 2702 | INCLUDES="$INCLUDES -pthread" |
62aa6b06 LR |
2703 | THREADLIBS=-pthread |
2704 | ;; | |
1530be84 TT |
2705 | *-*-solaris*) |
2706 | cat >> confdefs.h <<\EOF | |
5a2586cf | 2707 | #define GC_SOLARIS_THREADS 1 |
1530be84 TT |
2708 | EOF |
2709 | ||
2710 | cat >> confdefs.h <<\EOF | |
5a2586cf | 2711 | #define GC_SOLARIS_PTHREADS 1 |
14caa62f GZ |
2712 | EOF |
2713 | ||
2714 | ;; | |
2715 | *-*-irix*) | |
2716 | cat >> confdefs.h <<\EOF | |
5a2586cf | 2717 | #define GC_IRIX_THREADS 1 |
1530be84 TT |
2718 | EOF |
2719 | ||
a2d6e915 DB |
2720 | ;; |
2721 | *-*-cygwin*) | |
2722 | THREADLIBS= | |
1530be84 TT |
2723 | ;; |
2724 | esac | |
2725 | ;; | |
df61a3d2 AM |
2726 | win32) |
2727 | cat >> confdefs.h <<\EOF | |
2728 | #define GC_WIN32_THREADS 1 | |
2729 | EOF | |
2730 | ||
2731 | ;; | |
2732 | decosf1 | irix | mach | os2 | solaris | dce | vxworks) | |
1530be84 TT |
2733 | { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; } |
2734 | ;; | |
2735 | *) | |
2736 | { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; } | |
2737 | ;; | |
2738 | esac | |
1530be84 | 2739 | |
20bbd3cd | 2740 | |
f2beb7ef | 2741 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
df61a3d2 | 2742 | echo "configure:2743: checking for dlopen in -ldl" >&5 |
f2beb7ef APB |
2743 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
2744 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2745 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2746 | else | |
2747 | ac_save_LIBS="$LIBS" | |
2748 | LIBS="-ldl $LIBS" | |
2749 | cat > conftest.$ac_ext <<EOF | |
df61a3d2 | 2750 | #line 2751 "configure" |
f2beb7ef APB |
2751 | #include "confdefs.h" |
2752 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2753 | /* We use char because int might match the return type of a gcc2 | |
2754 | builtin and then its argument prototype would still apply. */ | |
2755 | char dlopen(); | |
2756 | ||
2757 | int main() { | |
2758 | dlopen() | |
2759 | ; return 0; } | |
2760 | EOF | |
df61a3d2 | 2761 | if { (eval echo configure:2762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f2beb7ef APB |
2762 | rm -rf conftest* |
2763 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2764 | else | |
2765 | echo "configure: failed program was:" >&5 | |
2766 | cat conftest.$ac_ext >&5 | |
2767 | rm -rf conftest* | |
2768 | eval "ac_cv_lib_$ac_lib_var=no" | |
2769 | fi | |
2770 | rm -f conftest* | |
2771 | LIBS="$ac_save_LIBS" | |
2772 | ||
2773 | fi | |
2774 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2775 | echo "$ac_t""yes" 1>&6 | |
2776 | EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl" | |
2777 | else | |
2778 | echo "$ac_t""no" 1>&6 | |
2779 | fi | |
2780 | ||
2781 | ||
2782 | ||
5a2586cf | 2783 | target_all=libgcjgc.la |
1530be84 TT |
2784 | |
2785 | ||
f28c857f | 2786 | |
1530be84 TT |
2787 | TARGET_ECOS="no" |
2788 | # Check whether --with-ecos or --without-ecos was given. | |
2789 | if test "${with_ecos+set}" = set; then | |
2790 | withval="$with_ecos" | |
2791 | TARGET_ECOS="$with_ecos" | |
2792 | ||
2793 | fi | |
2794 | ||
2795 | ||
2796 | addobjs= | |
2797 | CXXINCLUDES= | |
2798 | case "$TARGET_ECOS" in | |
2799 | no) | |
2800 | ;; | |
2801 | *) | |
2802 | cat >> confdefs.h <<\EOF | |
2803 | #define ECOS 1 | |
2804 | EOF | |
2805 | ||
2806 | CXXINCLUDES="-I${TARGET_ECOS}/include" | |
66deb2be | 2807 | addobjs="$addobjs ecos.lo" |
1530be84 TT |
2808 | ;; |
2809 | esac | |
2810 | ||
2811 | ||
2812 | ||
2813 | ||
2814 | ||
2815 | machdep= | |
2816 | case "$host" in | |
f6823cb5 RH |
2817 | alpha*-*-*) |
2818 | machdep="alpha_mach_dep.lo" | |
9c383523 | 2819 | ;; |
4c7726b1 BM |
2820 | alpha-*-openbsd*) |
2821 | if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then | |
2822 | echo "configure: warning: OpenBSD/Alpha without dlopen(). Shared library support is disabled" 1>&2 | |
2823 | # Check whether --enable-shared or --disable-shared was given. | |
2824 | if test "${enable_shared+set}" = set; then | |
2825 | enableval="$enable_shared" | |
2826 | p=${PACKAGE-default} | |
2827 | case $enableval in | |
2828 | yes) enable_shared=yes ;; | |
2829 | no) enable_shared=no ;; | |
2830 | *) | |
2831 | enable_shared=no | |
2832 | # Look at the argument we got. We use all the common list separators. | |
2833 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
2834 | for pkg in $enableval; do | |
2835 | if test "X$pkg" = "X$p"; then | |
2836 | enable_shared=yes | |
2837 | fi | |
2838 | done | |
2839 | IFS="$ac_save_ifs" | |
2840 | ;; | |
2841 | esac | |
2842 | else | |
2843 | enable_shared=no | |
2844 | fi | |
2845 | ||
2846 | fi | |
2847 | ;; | |
9c383523 RO |
2848 | i?86-*-solaris2.[89]*) |
2849 | cat >> confdefs.h <<\EOF | |
2850 | #define SOLARIS25_PROC_VDB_BUG_FIXED 1 | |
2851 | EOF | |
2852 | ||
f6823cb5 | 2853 | ;; |
1530be84 | 2854 | mipstx39-*-elf*) |
66deb2be | 2855 | machdep="mips_ultrix_mach_dep.lo" |
1530be84 TT |
2856 | cat >> confdefs.h <<\EOF |
2857 | #define STACKBASE __stackbase | |
2858 | EOF | |
2859 | ||
2860 | cat >> confdefs.h <<\EOF | |
2861 | #define DATASTART_IS_ETEXT 1 | |
2862 | EOF | |
2863 | ||
2864 | ;; | |
276836f0 RO |
2865 | mips-dec-ultrix*) |
2866 | machdep="mips_ultrix_mach-dep.lo" | |
2867 | ;; | |
2868 | mips-*-*) | |
2869 | machdep="mips_sgi_mach_dep.lo" | |
2870 | cat >> confdefs.h <<\EOF | |
2871 | #define NO_EXECUTE_PERMISSION 1 | |
2872 | EOF | |
2873 | ||
d42058b1 | 2874 | ;; |
1530be84 TT |
2875 | sparc-sun-solaris2.3*) |
2876 | cat >> confdefs.h <<\EOF | |
2877 | #define SUNOS53_SHARED_LIB 1 | |
2878 | EOF | |
2879 | ||
4c7726b1 BM |
2880 | ;; |
2881 | ia64-*-hpux*) | |
2882 | machdep="mach_dep.lo ia64_save_regs_in_stack.lo" | |
1530be84 TT |
2883 | ;; |
2884 | esac | |
2885 | if test x"$machdep" = x; then | |
66deb2be | 2886 | machdep="mach_dep.lo" |
1530be84 TT |
2887 | fi |
2888 | addobjs="$addobjs $machdep" | |
2889 | ||
2890 | ||
2891 | case "$host" in | |
2892 | sparc-sun-solaris2*) | |
2893 | if test "$GCC" = yes; then | |
2894 | new_CFLAGS= | |
2895 | for i in $CFLAGS; do | |
2896 | case "$i" in | |
2897 | -O*) | |
2898 | ;; | |
2899 | *) | |
2900 | new_CFLAGS="$new_CFLAGS $i" | |
2901 | ;; | |
2902 | esac | |
2903 | done | |
2904 | CFLAGS="$new_CFLAGS" | |
2905 | fi | |
2906 | ;; | |
2907 | esac | |
2908 | ||
2909 | MY_CFLAGS="$CFLAGS" | |
2910 | ||
2911 | ||
2912 | cat >> confdefs.h <<\EOF | |
2913 | #define SILENT 1 | |
2914 | EOF | |
2915 | ||
2916 | cat >> confdefs.h <<\EOF | |
2917 | #define NO_SIGNALS 1 | |
2918 | EOF | |
2919 | ||
5a2586cf TT |
2920 | cat >> confdefs.h <<\EOF |
2921 | #define NO_EXECUTE_PERMISSION 1 | |
2922 | EOF | |
2923 | ||
2924 | cat >> confdefs.h <<\EOF | |
2925 | #define ALL_INTERIOR_POINTERS 1 | |
2926 | EOF | |
2927 | ||
2928 | ||
1530be84 | 2929 | cat >> confdefs.h <<\EOF |
0476f098 | 2930 | #define JAVA_FINALIZATION 1 |
1530be84 TT |
2931 | EOF |
2932 | ||
2933 | cat >> confdefs.h <<\EOF | |
0476f098 | 2934 | #define GC_GCJ_SUPPORT 1 |
1530be84 TT |
2935 | EOF |
2936 | ||
5a2586cf TT |
2937 | cat >> confdefs.h <<\EOF |
2938 | #define ATOMIC_UNCOLLECTABLE 1 | |
2939 | EOF | |
2940 | ||
1530be84 | 2941 | |
1530be84 TT |
2942 | if test -n "${with_cross_host}"; then |
2943 | cat >> confdefs.h <<\EOF | |
2944 | #define NO_SIGSET 1 | |
0476f098 BM |
2945 | EOF |
2946 | ||
2947 | cat >> confdefs.h <<\EOF | |
2948 | #define NO_DEBUGGING 1 | |
1530be84 TT |
2949 | EOF |
2950 | ||
2951 | fi | |
2952 | ||
5a2586cf TT |
2953 | # Check whether --enable-full-debug or --disable-full-debug was given. |
2954 | if test "${enable_full_debug+set}" = set; then | |
2955 | enableval="$enable_full_debug" | |
2956 | if test "$enable_full_debug" = "yes"; then | |
2957 | echo "configure: warning: "Must define GC_DEBUG and use debug alloc. in clients."" 1>&2 | |
2958 | cat >> confdefs.h <<\EOF | |
2959 | #define KEEP_BACK_PTRS 1 | |
2960 | EOF | |
2961 | ||
2962 | cat >> confdefs.h <<\EOF | |
2963 | #define DBG_HDRS_ALL 1 | |
2964 | EOF | |
2965 | ||
2966 | case $host in | |
2967 | x86-*-linux* | i586-*-linux* | i686-*-linux* ) | |
2968 | echo "configure: warning: "Client must not use -fomit-frame-pointer."" 1>&2 | |
2969 | cat >> confdefs.h <<\EOF | |
2970 | #define SAVE_CALL_COUNT 8 | |
2971 | EOF | |
2972 | ||
2973 | ;; | |
2974 | esac | |
2975 | fi | |
2976 | fi | |
2977 | ||
2978 | ||
b48ed568 TT |
2979 | |
2980 | ||
2981 | if test -z "$with_cross_host"; then | |
2982 | USE_LIBDIR_TRUE= | |
2983 | USE_LIBDIR_FALSE='#' | |
2984 | else | |
2985 | USE_LIBDIR_TRUE='#' | |
2986 | USE_LIBDIR_FALSE= | |
2987 | fi | |
2988 | ||
1530be84 TT |
2989 | if test "${multilib}" = "yes"; then |
2990 | multilib_arg="--enable-multilib" | |
2991 | else | |
2992 | multilib_arg= | |
2993 | fi | |
2994 | ||
2995 | trap '' 1 2 15 | |
2996 | cat > confcache <<\EOF | |
2997 | # This file is a shell script that caches the results of configure | |
2998 | # tests run on this system so they can be shared between configure | |
2999 | # scripts and configure runs. It is not useful on other systems. | |
3000 | # If it contains results you don't want to keep, you may remove or edit it. | |
3001 | # | |
3002 | # By default, configure uses ./config.cache as the cache file, | |
3003 | # creating it if it does not exist already. You can give configure | |
3004 | # the --cache-file=FILE option to use a different cache file; that is | |
3005 | # what configure does when it calls configure scripts in | |
3006 | # subdirectories, so they share the cache. | |
3007 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
3008 | # config.status only pays attention to the cache file if you give it the | |
3009 | # --recheck option to rerun configure. | |
3010 | # | |
3011 | EOF | |
3012 | # The following way of writing the cache mishandles newlines in values, | |
3013 | # but we know of no workaround that is simple, portable, and efficient. | |
3014 | # So, don't put newlines in cache variables' values. | |
3015 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3016 | # and sets the high bit in the cache file unless we assign to the vars. | |
3017 | (set) 2>&1 | | |
3018 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
3019 | *ac_space=\ *) | |
3020 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
3021 | # turns \\\\ into \\, and sed turns \\ into \). | |
3022 | sed -n \ | |
3023 | -e "s/'/'\\\\''/g" \ | |
3024 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
3025 | ;; | |
3026 | *) | |
3027 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3028 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
3029 | ;; | |
3030 | esac >> confcache | |
3031 | if cmp -s $cache_file confcache; then | |
3032 | : | |
3033 | else | |
3034 | if test -w $cache_file; then | |
3035 | echo "updating cache $cache_file" | |
3036 | cat confcache > $cache_file | |
3037 | else | |
3038 | echo "not updating unwritable cache $cache_file" | |
3039 | fi | |
3040 | fi | |
3041 | rm -f confcache | |
3042 | ||
3043 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
3044 | ||
3045 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3046 | # Let make expand exec_prefix. | |
3047 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3048 | ||
3049 | # Any assignment to VPATH causes Sun make to only execute | |
3050 | # the first set of double-colon rules, so remove it if not needed. | |
3051 | # If there is a colon in the path, we need to keep it. | |
3052 | if test "x$srcdir" = x.; then | |
3053 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
3054 | fi | |
3055 | ||
3056 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
3057 | ||
3058 | # Transform confdefs.h into DEFS. | |
3059 | # Protect against shell expansion while executing Makefile rules. | |
3060 | # Protect against Makefile macro expansion. | |
3061 | cat > conftest.defs <<\EOF | |
3062 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
3063 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
3064 | s%\[%\\&%g | |
3065 | s%\]%\\&%g | |
3066 | s%\$%$$%g | |
3067 | EOF | |
3068 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
3069 | rm -f conftest.defs | |
3070 | ||
3071 | ||
3072 | # Without the "./", some shells look in PATH for config.status. | |
3073 | : ${CONFIG_STATUS=./config.status} | |
3074 | ||
3075 | echo creating $CONFIG_STATUS | |
3076 | rm -f $CONFIG_STATUS | |
3077 | cat > $CONFIG_STATUS <<EOF | |
3078 | #! /bin/sh | |
3079 | # Generated automatically by configure. | |
3080 | # Run this file to recreate the current configuration. | |
3081 | # This directory was configured as follows, | |
3082 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
3083 | # | |
3084 | # $0 $ac_configure_args | |
3085 | # | |
3086 | # Compiler output produced by configure, useful for debugging | |
3087 | # configure, is in ./config.log if it exists. | |
3088 | ||
3089 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
3090 | for ac_option | |
3091 | do | |
3092 | case "\$ac_option" in | |
3093 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3094 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
3095 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
3096 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
3097 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
3098 | exit 0 ;; | |
3099 | -help | --help | --hel | --he | --h) | |
3100 | echo "\$ac_cs_usage"; exit 0 ;; | |
3101 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
3102 | esac | |
3103 | done | |
3104 | ||
3105 | ac_given_srcdir=$srcdir | |
3106 | ac_given_INSTALL="$INSTALL" | |
3107 | ||
1a8a749c | 3108 | trap 'rm -fr `echo "Makefile include/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
1530be84 TT |
3109 | EOF |
3110 | cat >> $CONFIG_STATUS <<EOF | |
3111 | ||
3112 | # Protect against being on the right side of a sed subst in config.status. | |
3113 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
3114 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
3115 | $ac_vpsub | |
3116 | $extrasub | |
3117 | s%@SHELL@%$SHELL%g | |
3118 | s%@CFLAGS@%$CFLAGS%g | |
3119 | s%@CPPFLAGS@%$CPPFLAGS%g | |
3120 | s%@CXXFLAGS@%$CXXFLAGS%g | |
3121 | s%@FFLAGS@%$FFLAGS%g | |
3122 | s%@DEFS@%$DEFS%g | |
3123 | s%@LDFLAGS@%$LDFLAGS%g | |
3124 | s%@LIBS@%$LIBS%g | |
3125 | s%@exec_prefix@%$exec_prefix%g | |
3126 | s%@prefix@%$prefix%g | |
3127 | s%@program_transform_name@%$program_transform_name%g | |
3128 | s%@bindir@%$bindir%g | |
3129 | s%@sbindir@%$sbindir%g | |
3130 | s%@libexecdir@%$libexecdir%g | |
3131 | s%@datadir@%$datadir%g | |
3132 | s%@sysconfdir@%$sysconfdir%g | |
3133 | s%@sharedstatedir@%$sharedstatedir%g | |
3134 | s%@localstatedir@%$localstatedir%g | |
3135 | s%@libdir@%$libdir%g | |
3136 | s%@includedir@%$includedir%g | |
3137 | s%@oldincludedir@%$oldincludedir%g | |
3138 | s%@infodir@%$infodir%g | |
3139 | s%@mandir@%$mandir%g | |
5a2586cf | 3140 | s%@gc_basedir@%$gc_basedir%g |
1530be84 TT |
3141 | s%@host@%$host%g |
3142 | s%@host_alias@%$host_alias%g | |
3143 | s%@host_cpu@%$host_cpu%g | |
3144 | s%@host_vendor@%$host_vendor%g | |
3145 | s%@host_os@%$host_os%g | |
3146 | s%@target@%$target%g | |
3147 | s%@target_alias@%$target_alias%g | |
3148 | s%@target_cpu@%$target_cpu%g | |
3149 | s%@target_vendor@%$target_vendor%g | |
3150 | s%@target_os@%$target_os%g | |
3151 | s%@build@%$build%g | |
3152 | s%@build_alias@%$build_alias%g | |
3153 | s%@build_cpu@%$build_cpu%g | |
3154 | s%@build_vendor@%$build_vendor%g | |
3155 | s%@build_os@%$build_os%g | |
57b74bf9 | 3156 | s%@mkinstalldirs@%$mkinstalldirs%g |
1530be84 TT |
3157 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
3158 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
3159 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
3160 | s%@PACKAGE@%$PACKAGE%g | |
3161 | s%@VERSION@%$VERSION%g | |
3162 | s%@ACLOCAL@%$ACLOCAL%g | |
3163 | s%@AUTOCONF@%$AUTOCONF%g | |
3164 | s%@AUTOMAKE@%$AUTOMAKE%g | |
3165 | s%@AUTOHEADER@%$AUTOHEADER%g | |
3166 | s%@MAKEINFO@%$MAKEINFO%g | |
3167 | s%@SET_MAKE@%$SET_MAKE%g | |
3168 | s%@CC@%$CC%g | |
3169 | s%@CXX@%$CXX%g | |
3170 | s%@AS@%$AS%g | |
3171 | s%@AR@%$AR%g | |
3172 | s%@RANLIB@%$RANLIB%g | |
3173 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | |
3174 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
3175 | s%@MAINT@%$MAINT%g | |
3176 | s%@EXEEXT@%$EXEEXT%g | |
5a2586cf | 3177 | s%@GC_CFLAGS@%$GC_CFLAGS%g |
66deb2be | 3178 | s%@LN_S@%$LN_S%g |
2f7bf5b7 AO |
3179 | s%@OBJEXT@%$OBJEXT%g |
3180 | s%@STRIP@%$STRIP%g | |
115dabb8 | 3181 | s%@LIBTOOL@%$LIBTOOL%g |
2f7bf5b7 | 3182 | s%@CXXCPP@%$CXXCPP%g |
e301621d | 3183 | s%@THREADLIBS@%$THREADLIBS%g |
f2beb7ef | 3184 | s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g |
1530be84 TT |
3185 | s%@target_all@%$target_all%g |
3186 | s%@INCLUDES@%$INCLUDES%g | |
3187 | s%@CXXINCLUDES@%$CXXINCLUDES%g | |
3188 | s%@addobjs@%$addobjs%g | |
3189 | s%@MY_CFLAGS@%$MY_CFLAGS%g | |
b48ed568 TT |
3190 | s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g |
3191 | s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g | |
1530be84 TT |
3192 | |
3193 | CEOF | |
3194 | EOF | |
3195 | ||
3196 | cat >> $CONFIG_STATUS <<\EOF | |
3197 | ||
3198 | # Split the substitutions into bite-sized pieces for seds with | |
3199 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
3200 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
3201 | ac_file=1 # Number of current file. | |
3202 | ac_beg=1 # First line for current file. | |
3203 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
3204 | ac_more_lines=: | |
3205 | ac_sed_cmds="" | |
3206 | while $ac_more_lines; do | |
3207 | if test $ac_beg -gt 1; then | |
3208 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
3209 | else | |
3210 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
3211 | fi | |
3212 | if test ! -s conftest.s$ac_file; then | |
3213 | ac_more_lines=false | |
3214 | rm -f conftest.s$ac_file | |
3215 | else | |
3216 | if test -z "$ac_sed_cmds"; then | |
3217 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
3218 | else | |
3219 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
3220 | fi | |
3221 | ac_file=`expr $ac_file + 1` | |
3222 | ac_beg=$ac_end | |
3223 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
3224 | fi | |
3225 | done | |
3226 | if test -z "$ac_sed_cmds"; then | |
3227 | ac_sed_cmds=cat | |
3228 | fi | |
3229 | EOF | |
3230 | ||
3231 | cat >> $CONFIG_STATUS <<EOF | |
3232 | ||
1a8a749c | 3233 | CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile"} |
1530be84 TT |
3234 | EOF |
3235 | cat >> $CONFIG_STATUS <<\EOF | |
3236 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
3237 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3238 | case "$ac_file" in | |
3239 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
3240 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
3241 | *) ac_file_in="${ac_file}.in" ;; | |
3242 | esac | |
3243 | ||
3244 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
3245 | ||
3246 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3247 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3248 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3249 | # The file is in a subdirectory. | |
3250 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3251 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
3252 | # A "../" for each directory in $ac_dir_suffix. | |
3253 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
3254 | else | |
3255 | ac_dir_suffix= ac_dots= | |
3256 | fi | |
3257 | ||
3258 | case "$ac_given_srcdir" in | |
3259 | .) srcdir=. | |
3260 | if test -z "$ac_dots"; then top_srcdir=. | |
3261 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
3262 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
3263 | *) # Relative path. | |
3264 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
3265 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
3266 | esac | |
3267 | ||
3268 | case "$ac_given_INSTALL" in | |
3269 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
3270 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
3271 | esac | |
3272 | ||
3273 | echo creating "$ac_file" | |
3274 | rm -f "$ac_file" | |
3275 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
3276 | case "$ac_file" in | |
3277 | *Makefile*) ac_comsub="1i\\ | |
3278 | # $configure_input" ;; | |
3279 | *) ac_comsub= ;; | |
3280 | esac | |
3281 | ||
3282 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
3283 | sed -e "$ac_comsub | |
3284 | s%@configure_input@%$configure_input%g | |
3285 | s%@srcdir@%$srcdir%g | |
3286 | s%@top_srcdir@%$top_srcdir%g | |
3287 | s%@INSTALL@%$INSTALL%g | |
3288 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
3289 | fi; done | |
3290 | rm -f conftest.s* | |
3291 | ||
1530be84 TT |
3292 | EOF |
3293 | cat >> $CONFIG_STATUS <<EOF | |
3294 | srcdir=${srcdir} | |
3295 | host=${host} | |
3296 | target=${target} | |
3297 | with_multisubdir=${with_multisubdir} | |
3298 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
3299 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
5a2586cf | 3300 | gc_basedir=${gc_basedir} |
1530be84 TT |
3301 | CC="${CC}" |
3302 | DEFS="$DEFS" | |
3303 | ||
3304 | EOF | |
3305 | cat >> $CONFIG_STATUS <<\EOF | |
3306 | ||
3307 | echo "$DEFS" > boehm-cflags | |
3308 | ||
3309 | if test -n "$CONFIG_FILES"; then | |
5a2586cf | 3310 | ac_file=Makefile . ${gc_basedir}/../config-ml.in |
1530be84 TT |
3311 | fi |
3312 | exit 0 | |
3313 | EOF | |
3314 | chmod +x $CONFIG_STATUS | |
3315 | rm -fr confdefs* $ac_clean_files | |
3316 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
3317 |