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