]>
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: | |
14 | ac_help="$ac_help | |
15 | --enable-multilib build many library versions (default)" | |
16 | ac_help="$ac_help | |
17 | --enable-target-optspace optimize for space" | |
3ac6f3a7 JJ |
18 | ac_help="$ac_help |
19 | --enable-malloc-debugging indicate malloc debugging requested" | |
8a0efa53 CF |
20 | ac_help="$ac_help |
21 | --enable-newlib-mb enable multibyte support" | |
786ab12c JJ |
22 | ac_help="$ac_help |
23 | --enable-newlib-iconv enable iconv library support" | |
24 | ac_help="$ac_help | |
25 | --enable-newlib-builtin-converters enable specific comma-separated list of iconv converters to be built-in" | |
0c048a9a TF |
26 | ac_help="$ac_help |
27 | --enable-newlib-multithread enable support for multiple threads" | |
a8615092 JJ |
28 | ac_help="$ac_help |
29 | --enable-newlib-elix-level supply desired elix library level (1-4)" | |
afecf2fa JJ |
30 | ac_help="$ac_help |
31 | --disable-newlib-io-float disable printf/scanf family float support" | |
313f1349 JJ |
32 | ac_help="$ac_help |
33 | --disable-newlib-supplied-syscalls disable newlib from supplying syscalls" | |
8a0efa53 CF |
34 | ac_help="$ac_help |
35 | --enable-maintainer-mode enable make rules and dependencies not useful | |
36 | (and sometimes confusing) to the casual installer" | |
37 | ||
38 | # Initialize some variables set by options. | |
39 | # The variables have the same names as the options, with | |
40 | # dashes changed to underlines. | |
41 | build=NONE | |
42 | cache_file=./config.cache | |
43 | exec_prefix=NONE | |
44 | host=NONE | |
45 | no_create= | |
46 | nonopt=NONE | |
47 | no_recursion= | |
48 | prefix=NONE | |
49 | program_prefix=NONE | |
50 | program_suffix=NONE | |
51 | program_transform_name=s,x,x, | |
52 | silent= | |
53 | site= | |
8a0efa53 CF |
54 | srcdir= |
55 | target=NONE | |
56 | verbose= | |
57 | x_includes=NONE | |
58 | x_libraries=NONE | |
59 | bindir='${exec_prefix}/bin' | |
60 | sbindir='${exec_prefix}/sbin' | |
61 | libexecdir='${exec_prefix}/libexec' | |
62 | datadir='${prefix}/share' | |
63 | sysconfdir='${prefix}/etc' | |
64 | sharedstatedir='${prefix}/com' | |
65 | localstatedir='${prefix}/var' | |
66 | libdir='${exec_prefix}/lib' | |
67 | includedir='${prefix}/include' | |
68 | oldincludedir='/usr/include' | |
69 | infodir='${prefix}/info' | |
70 | mandir='${prefix}/man' | |
71 | ||
72 | # Initialize some other variables. | |
73 | subdirs= | |
74 | MFLAGS= MAKEFLAGS= | |
75 | SHELL=${CONFIG_SHELL-/bin/sh} | |
76 | # Maximum number of lines to put in a shell here document. | |
77 | ac_max_here_lines=12 | |
78 | ||
79 | ac_prev= | |
80 | for ac_option | |
81 | do | |
82 | ||
83 | # If the previous option needs an argument, assign it. | |
84 | if test -n "$ac_prev"; then | |
85 | eval "$ac_prev=\$ac_option" | |
86 | ac_prev= | |
87 | continue | |
88 | fi | |
89 | ||
90 | case "$ac_option" in | |
91 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
92 | *) ac_optarg= ;; | |
93 | esac | |
94 | ||
95 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
96 | ||
97 | case "$ac_option" in | |
98 | ||
99 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
100 | ac_prev=bindir ;; | |
101 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
102 | bindir="$ac_optarg" ;; | |
103 | ||
104 | -build | --build | --buil | --bui | --bu) | |
105 | ac_prev=build ;; | |
106 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
107 | build="$ac_optarg" ;; | |
108 | ||
109 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
110 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
111 | ac_prev=cache_file ;; | |
112 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
113 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
114 | cache_file="$ac_optarg" ;; | |
115 | ||
116 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
117 | ac_prev=datadir ;; | |
118 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
119 | | --da=*) | |
120 | datadir="$ac_optarg" ;; | |
121 | ||
122 | -disable-* | --disable-*) | |
123 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
124 | # Reject names that are not valid shell variable names. | |
125 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
126 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
127 | fi | |
128 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
129 | eval "enable_${ac_feature}=no" ;; | |
130 | ||
131 | -enable-* | --enable-*) | |
132 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
133 | # Reject names that are not valid shell variable names. | |
134 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
135 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
136 | fi | |
137 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
138 | case "$ac_option" in | |
139 | *=*) ;; | |
140 | *) ac_optarg=yes ;; | |
141 | esac | |
142 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
143 | ||
144 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
145 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
146 | | --exec | --exe | --ex) | |
147 | ac_prev=exec_prefix ;; | |
148 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
149 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
150 | | --exec=* | --exe=* | --ex=*) | |
151 | exec_prefix="$ac_optarg" ;; | |
152 | ||
153 | -gas | --gas | --ga | --g) | |
154 | # Obsolete; use --with-gas. | |
155 | with_gas=yes ;; | |
156 | ||
157 | -help | --help | --hel | --he) | |
158 | # Omit some internal or obsolete options to make the list less imposing. | |
159 | # This message is too long to be a string in the A/UX 3.1 sh. | |
160 | cat << EOF | |
161 | Usage: configure [options] [host] | |
162 | Options: [defaults in brackets after descriptions] | |
163 | Configuration: | |
164 | --cache-file=FILE cache test results in FILE | |
165 | --help print this message | |
166 | --no-create do not create output files | |
167 | --quiet, --silent do not print \`checking...' messages | |
8a0efa53 CF |
168 | --version print the version of autoconf that created configure |
169 | Directory and file names: | |
170 | --prefix=PREFIX install architecture-independent files in PREFIX | |
171 | [$ac_default_prefix] | |
172 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
173 | [same as prefix] | |
174 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
175 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
176 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
177 | --datadir=DIR read-only architecture-independent data in DIR | |
178 | [PREFIX/share] | |
179 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
180 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
181 | [PREFIX/com] | |
182 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
183 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
184 | --includedir=DIR C header files in DIR [PREFIX/include] | |
185 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
186 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
187 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
188 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
189 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
190 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
191 | --program-transform-name=PROGRAM | |
192 | run sed PROGRAM on installed program names | |
193 | EOF | |
194 | cat << EOF | |
195 | Host type: | |
196 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
197 | --host=HOST configure for HOST [guessed] | |
198 | --target=TARGET configure for TARGET [TARGET=HOST] | |
199 | Features and packages: | |
200 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
201 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
202 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
203 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
204 | --x-includes=DIR X include files are in DIR | |
205 | --x-libraries=DIR X library files are in DIR | |
206 | EOF | |
207 | if test -n "$ac_help"; then | |
208 | echo "--enable and --with options recognized:$ac_help" | |
209 | fi | |
210 | exit 0 ;; | |
211 | ||
212 | -host | --host | --hos | --ho) | |
213 | ac_prev=host ;; | |
214 | -host=* | --host=* | --hos=* | --ho=*) | |
215 | host="$ac_optarg" ;; | |
216 | ||
217 | -includedir | --includedir | --includedi | --included | --include \ | |
218 | | --includ | --inclu | --incl | --inc) | |
219 | ac_prev=includedir ;; | |
220 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
221 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
222 | includedir="$ac_optarg" ;; | |
223 | ||
224 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
225 | ac_prev=infodir ;; | |
226 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
227 | infodir="$ac_optarg" ;; | |
228 | ||
229 | -libdir | --libdir | --libdi | --libd) | |
230 | ac_prev=libdir ;; | |
231 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
232 | libdir="$ac_optarg" ;; | |
233 | ||
234 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
235 | | --libexe | --libex | --libe) | |
236 | ac_prev=libexecdir ;; | |
237 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
238 | | --libexe=* | --libex=* | --libe=*) | |
239 | libexecdir="$ac_optarg" ;; | |
240 | ||
241 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
242 | | --localstate | --localstat | --localsta | --localst \ | |
243 | | --locals | --local | --loca | --loc | --lo) | |
244 | ac_prev=localstatedir ;; | |
245 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
246 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
247 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
248 | localstatedir="$ac_optarg" ;; | |
249 | ||
250 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
251 | ac_prev=mandir ;; | |
252 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
253 | mandir="$ac_optarg" ;; | |
254 | ||
255 | -nfp | --nfp | --nf) | |
256 | # Obsolete; use --without-fp. | |
257 | with_fp=no ;; | |
258 | ||
259 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
260 | | --no-cr | --no-c) | |
261 | no_create=yes ;; | |
262 | ||
263 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
264 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
265 | no_recursion=yes ;; | |
266 | ||
267 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
268 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
269 | | --oldin | --oldi | --old | --ol | --o) | |
270 | ac_prev=oldincludedir ;; | |
271 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
272 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
273 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
274 | oldincludedir="$ac_optarg" ;; | |
275 | ||
276 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
277 | ac_prev=prefix ;; | |
278 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
279 | prefix="$ac_optarg" ;; | |
280 | ||
281 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
282 | | --program-pre | --program-pr | --program-p) | |
283 | ac_prev=program_prefix ;; | |
284 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
285 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
286 | program_prefix="$ac_optarg" ;; | |
287 | ||
288 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
289 | | --program-suf | --program-su | --program-s) | |
290 | ac_prev=program_suffix ;; | |
291 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
292 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
293 | program_suffix="$ac_optarg" ;; | |
294 | ||
295 | -program-transform-name | --program-transform-name \ | |
296 | | --program-transform-nam | --program-transform-na \ | |
297 | | --program-transform-n | --program-transform- \ | |
298 | | --program-transform | --program-transfor \ | |
299 | | --program-transfo | --program-transf \ | |
300 | | --program-trans | --program-tran \ | |
301 | | --progr-tra | --program-tr | --program-t) | |
302 | ac_prev=program_transform_name ;; | |
303 | -program-transform-name=* | --program-transform-name=* \ | |
304 | | --program-transform-nam=* | --program-transform-na=* \ | |
305 | | --program-transform-n=* | --program-transform-=* \ | |
306 | | --program-transform=* | --program-transfor=* \ | |
307 | | --program-transfo=* | --program-transf=* \ | |
308 | | --program-trans=* | --program-tran=* \ | |
309 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
310 | program_transform_name="$ac_optarg" ;; | |
311 | ||
312 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
313 | | -silent | --silent | --silen | --sile | --sil) | |
314 | silent=yes ;; | |
315 | ||
316 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
317 | ac_prev=sbindir ;; | |
318 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
319 | | --sbi=* | --sb=*) | |
320 | sbindir="$ac_optarg" ;; | |
321 | ||
322 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
323 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
324 | | --sharedst | --shareds | --shared | --share | --shar \ | |
325 | | --sha | --sh) | |
326 | ac_prev=sharedstatedir ;; | |
327 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
328 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
329 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
330 | | --sha=* | --sh=*) | |
331 | sharedstatedir="$ac_optarg" ;; | |
332 | ||
333 | -site | --site | --sit) | |
334 | ac_prev=site ;; | |
335 | -site=* | --site=* | --sit=*) | |
336 | site="$ac_optarg" ;; | |
337 | ||
8a0efa53 CF |
338 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
339 | ac_prev=srcdir ;; | |
340 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
341 | srcdir="$ac_optarg" ;; | |
342 | ||
343 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
344 | | --syscon | --sysco | --sysc | --sys | --sy) | |
345 | ac_prev=sysconfdir ;; | |
346 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
347 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
348 | sysconfdir="$ac_optarg" ;; | |
349 | ||
350 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
351 | ac_prev=target ;; | |
352 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
353 | target="$ac_optarg" ;; | |
354 | ||
355 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
356 | verbose=yes ;; | |
357 | ||
358 | -version | --version | --versio | --versi | --vers) | |
359 | echo "configure generated by autoconf version 2.13" | |
360 | exit 0 ;; | |
361 | ||
362 | -with-* | --with-*) | |
363 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
364 | # Reject names that are not valid shell variable names. | |
365 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
366 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
367 | fi | |
368 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
369 | case "$ac_option" in | |
370 | *=*) ;; | |
371 | *) ac_optarg=yes ;; | |
372 | esac | |
373 | eval "with_${ac_package}='$ac_optarg'" ;; | |
374 | ||
375 | -without-* | --without-*) | |
376 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
377 | # Reject names that are not valid shell variable names. | |
378 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
379 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
380 | fi | |
381 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
382 | eval "with_${ac_package}=no" ;; | |
383 | ||
384 | --x) | |
385 | # Obsolete; use --with-x. | |
386 | with_x=yes ;; | |
387 | ||
388 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
389 | | --x-incl | --x-inc | --x-in | --x-i) | |
390 | ac_prev=x_includes ;; | |
391 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
392 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
393 | x_includes="$ac_optarg" ;; | |
394 | ||
395 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
396 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
397 | ac_prev=x_libraries ;; | |
398 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
399 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
400 | x_libraries="$ac_optarg" ;; | |
401 | ||
402 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
403 | ;; | |
404 | ||
405 | *) | |
406 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
407 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
408 | fi | |
409 | if test "x$nonopt" != xNONE; then | |
410 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
411 | fi | |
412 | nonopt="$ac_option" | |
413 | ;; | |
414 | ||
415 | esac | |
416 | done | |
417 | ||
418 | if test -n "$ac_prev"; then | |
419 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
420 | fi | |
421 | ||
422 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
423 | ||
424 | # File descriptor usage: | |
425 | # 0 standard input | |
426 | # 1 file creation | |
427 | # 2 errors and warnings | |
428 | # 3 some systems may open it to /dev/tty | |
429 | # 4 used on the Kubota Titan | |
430 | # 6 checking for... messages and results | |
431 | # 5 compiler messages saved in config.log | |
432 | if test "$silent" = yes; then | |
433 | exec 6>/dev/null | |
434 | else | |
435 | exec 6>&1 | |
436 | fi | |
437 | exec 5>./config.log | |
438 | ||
439 | echo "\ | |
440 | This file contains any messages produced by compilers while | |
441 | running configure, to aid debugging if configure makes a mistake. | |
442 | " 1>&5 | |
443 | ||
444 | # Strip out --no-create and --no-recursion so they do not pile up. | |
445 | # Also quote any args containing shell metacharacters. | |
446 | ac_configure_args= | |
447 | for ac_arg | |
448 | do | |
449 | case "$ac_arg" in | |
450 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
451 | | --no-cr | --no-c) ;; | |
452 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
453 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
454 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
455 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
456 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
457 | esac | |
458 | done | |
459 | ||
460 | # NLS nuisances. | |
461 | # Only set these to C if already set. These must not be set unconditionally | |
462 | # because not all systems understand e.g. LANG=C (notably SCO). | |
463 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
464 | # Non-C LC_CTYPE values break the ctype check. | |
465 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
466 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
467 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
468 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
469 | ||
470 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
471 | rm -rf conftest* confdefs.h | |
472 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
473 | echo > confdefs.h | |
474 | ||
475 | # A filename unique to this package, relative to the directory that | |
476 | # configure is in, which we can look for to find out if srcdir is correct. | |
477 | ac_unique_file=fastmath.s | |
478 | ||
479 | # Find the source files, if location was not specified. | |
480 | if test -z "$srcdir"; then | |
481 | ac_srcdir_defaulted=yes | |
482 | # Try the directory containing this script, then its parent. | |
483 | ac_prog=$0 | |
484 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
485 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
486 | srcdir=$ac_confdir | |
487 | if test ! -r $srcdir/$ac_unique_file; then | |
488 | srcdir=.. | |
489 | fi | |
490 | else | |
491 | ac_srcdir_defaulted=no | |
492 | fi | |
493 | if test ! -r $srcdir/$ac_unique_file; then | |
494 | if test "$ac_srcdir_defaulted" = yes; then | |
495 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
496 | else | |
497 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
498 | fi | |
499 | fi | |
500 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
501 | ||
502 | # Prefer explicitly selected file to automatically selected ones. | |
786ab12c JJ |
503 | if test -z "$CONFIG_SITE"; then |
504 | if test "x$prefix" != xNONE; then | |
505 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
506 | else | |
507 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
8a0efa53 | 508 | fi |
8a0efa53 CF |
509 | fi |
510 | for ac_site_file in $CONFIG_SITE; do | |
511 | if test -r "$ac_site_file"; then | |
512 | echo "loading site script $ac_site_file" | |
513 | . "$ac_site_file" | |
514 | fi | |
515 | done | |
516 | ||
517 | if test -r "$cache_file"; then | |
518 | echo "loading cache $cache_file" | |
519 | . $cache_file | |
520 | else | |
521 | echo "creating cache $cache_file" | |
522 | > $cache_file | |
523 | fi | |
524 | ||
525 | ac_ext=c | |
526 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
527 | ac_cpp='$CPP $CPPFLAGS' | |
528 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
529 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
530 | cross_compiling=$ac_cv_prog_cc_cross | |
531 | ||
532 | ac_exeext= | |
533 | ac_objext=o | |
534 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
535 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
536 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
537 | ac_n= ac_c=' | |
538 | ' ac_t=' ' | |
539 | else | |
540 | ac_n=-n ac_c= ac_t= | |
541 | fi | |
542 | else | |
543 | ac_n= ac_c='\c' ac_t= | |
544 | fi | |
545 | ||
546 | ||
547 | ||
548 | ac_aux_dir= | |
549 | for ac_dir in ../../../.. $srcdir/../../../..; do | |
550 | if test -f $ac_dir/install-sh; then | |
551 | ac_aux_dir=$ac_dir | |
552 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
553 | break | |
554 | elif test -f $ac_dir/install.sh; then | |
555 | ac_aux_dir=$ac_dir | |
556 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
557 | break | |
558 | fi | |
559 | done | |
560 | if test -z "$ac_aux_dir"; then | |
561 | { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; } | |
562 | fi | |
563 | ac_config_guess=$ac_aux_dir/config.guess | |
564 | ac_config_sub=$ac_aux_dir/config.sub | |
565 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
566 | ||
567 | ||
568 | # Find a good install program. We prefer a C program (faster), | |
569 | # so one script is as good as another. But avoid the broken or | |
570 | # incompatible versions: | |
571 | # SysV /etc/install, /usr/sbin/install | |
572 | # SunOS /usr/etc/install | |
573 | # IRIX /sbin/install | |
574 | # AIX /bin/install | |
575 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
576 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
577 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
578 | # ./install, which can be erroneously created by make from ./install.sh. | |
579 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
786ab12c | 580 | echo "configure:581: checking for a BSD compatible install" >&5 |
8a0efa53 CF |
581 | if test -z "$INSTALL"; then |
582 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
584 | else | |
585 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
586 | for ac_dir in $PATH; do | |
587 | # Account for people who put trailing slashes in PATH elements. | |
588 | case "$ac_dir/" in | |
589 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
590 | *) | |
591 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
592 | # Don't use installbsd from OSF since it installs stuff as root | |
593 | # by default. | |
594 | for ac_prog in ginstall scoinst install; do | |
595 | if test -f $ac_dir/$ac_prog; then | |
596 | if test $ac_prog = install && | |
597 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
598 | # AIX install. It has an incompatible calling convention. | |
599 | : | |
600 | else | |
601 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
602 | break 2 | |
603 | fi | |
604 | fi | |
605 | done | |
606 | ;; | |
607 | esac | |
608 | done | |
609 | IFS="$ac_save_IFS" | |
610 | ||
611 | fi | |
612 | if test "${ac_cv_path_install+set}" = set; then | |
613 | INSTALL="$ac_cv_path_install" | |
614 | else | |
615 | # As a last resort, use the slow shell script. We don't cache a | |
616 | # path for INSTALL within a source directory, because that will | |
617 | # break other packages using the cache if that directory is | |
618 | # removed, or if the path is relative. | |
619 | INSTALL="$ac_install_sh" | |
620 | fi | |
621 | fi | |
622 | echo "$ac_t""$INSTALL" 1>&6 | |
623 | ||
624 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
625 | # It thinks the first close brace ends the variable substitution. | |
626 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
627 | ||
628 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
629 | ||
630 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
631 | ||
632 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
786ab12c | 633 | echo "configure:634: checking whether build environment is sane" >&5 |
8a0efa53 CF |
634 | # Just in case |
635 | sleep 1 | |
636 | echo timestamp > conftestfile | |
637 | # Do `set' in a subshell so we don't clobber the current shell's | |
638 | # arguments. Must try -L first in case configure is actually a | |
639 | # symlink; some systems play weird games with the mod time of symlinks | |
640 | # (eg FreeBSD returns the mod time of the symlink's containing | |
641 | # directory). | |
642 | if ( | |
643 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
644 | if test "$*" = "X"; then | |
645 | # -L didn't work. | |
646 | set X `ls -t $srcdir/configure conftestfile` | |
647 | fi | |
648 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
649 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
650 | ||
651 | # If neither matched, then we have a broken ls. This can happen | |
652 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
653 | # broken ls alias from the environment. This has actually | |
654 | # happened. Such a system could not be considered "sane". | |
655 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
656 | alias in your environment" 1>&2; exit 1; } | |
657 | fi | |
658 | ||
659 | test "$2" = conftestfile | |
660 | ) | |
661 | then | |
662 | # Ok. | |
663 | : | |
664 | else | |
665 | { echo "configure: error: newly created file is older than distributed files! | |
666 | Check your system clock" 1>&2; exit 1; } | |
667 | fi | |
668 | rm -f conftest* | |
669 | echo "$ac_t""yes" 1>&6 | |
670 | if test "$program_transform_name" = s,x,x,; then | |
671 | program_transform_name= | |
672 | else | |
673 | # Double any \ or $. echo might interpret backslashes. | |
674 | cat <<\EOF_SED > conftestsed | |
675 | s,\\,\\\\,g; s,\$,$$,g | |
676 | EOF_SED | |
677 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
678 | rm -f conftestsed | |
679 | fi | |
680 | test "$program_prefix" != NONE && | |
681 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
682 | # Use a double $ so make ignores it. | |
683 | test "$program_suffix" != NONE && | |
684 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
685 | ||
686 | # sed with no file args requires a program. | |
687 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
688 | ||
689 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
786ab12c | 690 | echo "configure:691: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
8a0efa53 CF |
691 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
692 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
694 | else | |
695 | cat > conftestmake <<\EOF | |
696 | all: | |
697 | @echo 'ac_maketemp="${MAKE}"' | |
698 | EOF | |
699 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
700 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
701 | if test -n "$ac_maketemp"; then | |
702 | eval ac_cv_prog_make_${ac_make}_set=yes | |
703 | else | |
704 | eval ac_cv_prog_make_${ac_make}_set=no | |
705 | fi | |
706 | rm -f conftestmake | |
707 | fi | |
708 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
709 | echo "$ac_t""yes" 1>&6 | |
710 | SET_MAKE= | |
711 | else | |
712 | echo "$ac_t""no" 1>&6 | |
713 | SET_MAKE="MAKE=${MAKE-make}" | |
714 | fi | |
715 | ||
716 | if test $host != $build; then | |
717 | ac_tool_prefix=${host_alias}- | |
718 | else | |
719 | ac_tool_prefix= | |
720 | fi | |
721 | ||
722 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
786ab12c | 723 | echo "configure:724: checking for Cygwin environment" >&5 |
8a0efa53 CF |
724 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
726 | else | |
727 | cat > conftest.$ac_ext <<EOF | |
786ab12c | 728 | #line 729 "configure" |
8a0efa53 CF |
729 | #include "confdefs.h" |
730 | ||
731 | int main() { | |
732 | ||
733 | #ifndef __CYGWIN__ | |
734 | #define __CYGWIN__ __CYGWIN32__ | |
735 | #endif | |
736 | return __CYGWIN__; | |
737 | ; return 0; } | |
738 | EOF | |
786ab12c | 739 | if { (eval echo configure:740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8a0efa53 CF |
740 | rm -rf conftest* |
741 | ac_cv_cygwin=yes | |
742 | else | |
743 | echo "configure: failed program was:" >&5 | |
744 | cat conftest.$ac_ext >&5 | |
745 | rm -rf conftest* | |
746 | ac_cv_cygwin=no | |
747 | fi | |
748 | rm -f conftest* | |
749 | rm -f conftest* | |
750 | fi | |
751 | ||
752 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
753 | CYGWIN= | |
754 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
755 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
786ab12c | 756 | echo "configure:757: checking for mingw32 environment" >&5 |
8a0efa53 CF |
757 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
758 | echo $ac_n "(cached) $ac_c" 1>&6 | |
759 | else | |
760 | cat > conftest.$ac_ext <<EOF | |
786ab12c | 761 | #line 762 "configure" |
8a0efa53 CF |
762 | #include "confdefs.h" |
763 | ||
764 | int main() { | |
765 | return __MINGW32__; | |
766 | ; return 0; } | |
767 | EOF | |
786ab12c | 768 | if { (eval echo configure:769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8a0efa53 CF |
769 | rm -rf conftest* |
770 | ac_cv_mingw32=yes | |
771 | else | |
772 | echo "configure: failed program was:" >&5 | |
773 | cat conftest.$ac_ext >&5 | |
774 | rm -rf conftest* | |
775 | ac_cv_mingw32=no | |
776 | fi | |
777 | rm -f conftest* | |
778 | rm -f conftest* | |
779 | fi | |
780 | ||
781 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
782 | MINGW32= | |
783 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
784 | ||
785 | # Check whether --enable-multilib or --disable-multilib was given. | |
786 | if test "${enable_multilib+set}" = set; then | |
787 | enableval="$enable_multilib" | |
788 | case "${enableval}" in | |
789 | yes) multilib=yes ;; | |
790 | no) multilib=no ;; | |
791 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; | |
792 | esac | |
793 | else | |
794 | multilib=yes | |
795 | fi | |
796 | ||
797 | # Check whether --enable-target-optspace or --disable-target-optspace was given. | |
798 | if test "${enable_target_optspace+set}" = set; then | |
799 | enableval="$enable_target_optspace" | |
800 | case "${enableval}" in | |
801 | yes) target_optspace=yes ;; | |
802 | no) target_optspace=no ;; | |
803 | *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;; | |
804 | esac | |
805 | else | |
806 | target_optspace= | |
807 | fi | |
808 | ||
3ac6f3a7 JJ |
809 | # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given. |
810 | if test "${enable_malloc_debugging+set}" = set; then | |
811 | enableval="$enable_malloc_debugging" | |
812 | case "${enableval}" in | |
813 | yes) malloc_debugging=yes ;; | |
814 | no) malloc_debugging=no ;; | |
815 | *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;; | |
816 | esac | |
817 | else | |
818 | malloc_debugging= | |
819 | fi | |
820 | ||
8a0efa53 CF |
821 | # Check whether --enable-newlib-mb or --disable-newlib-mb was given. |
822 | if test "${enable_newlib_mb+set}" = set; then | |
823 | enableval="$enable_newlib_mb" | |
824 | case "${enableval}" in | |
825 | yes) newlib_mb=yes ;; | |
826 | no) newlib_mb=no ;; | |
827 | *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;; | |
828 | esac | |
829 | else | |
a8615092 | 830 | newlib_mb= |
8a0efa53 CF |
831 | fi |
832 | ||
786ab12c JJ |
833 | # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given. |
834 | if test "${enable_newlib_iconv+set}" = set; then | |
835 | enableval="$enable_newlib_iconv" | |
836 | case "${enableval}" in | |
837 | yes) newlib_iconv=yes ;; | |
838 | no) newlib_iconv=no ;; | |
839 | *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;; | |
840 | esac | |
841 | else | |
842 | newlib_iconv= | |
843 | fi | |
844 | ||
845 | # Check whether --enable-newlib-builtin-converters or --disable-newlib-builtin-converters was given. | |
846 | if test "${enable_newlib_builtin_converters+set}" = set; then | |
847 | enableval="$enable_newlib_builtin_converters" | |
848 | if test x${enableval} = x; then | |
849 | { echo "configure: error: bad value ${enableval} for newlib-builtin-converters option - use comma-separated list" 1>&2; exit 1; } | |
850 | fi | |
851 | builtin_converters=${enableval} | |
852 | ||
853 | else | |
854 | builtin_converters= | |
855 | fi | |
856 | ||
0c048a9a TF |
857 | # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given. |
858 | if test "${enable_newlib_multithread+set}" = set; then | |
859 | enableval="$enable_newlib_multithread" | |
860 | case "${enableval}" in | |
861 | yes) newlib_multithread=yes ;; | |
862 | no) newlib_multithread=no ;; | |
863 | *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;; | |
864 | esac | |
865 | else | |
866 | newlib_multithread=yes | |
867 | fi | |
868 | ||
a8615092 JJ |
869 | # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given. |
870 | if test "${enable_newlib_elix_level+set}" = set; then | |
871 | enableval="$enable_newlib_elix_level" | |
872 | case "${enableval}" in | |
873 | 0) newlib_elix_level=0 ;; | |
874 | 1) newlib_elix_level=1 ;; | |
875 | 2) newlib_elix_level=2 ;; | |
876 | 3) newlib_elix_level=3 ;; | |
877 | 4) newlib_elix_level=4 ;; | |
878 | *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;; | |
879 | esac | |
880 | else | |
881 | newlib_elix_level=0 | |
882 | fi | |
883 | ||
afecf2fa JJ |
884 | # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given. |
885 | if test "${enable_newlib_io_float+set}" = set; then | |
886 | enableval="$enable_newlib_io_float" | |
887 | case "${enableval}" in | |
888 | yes) newlib_io_float=yes ;; | |
889 | no) newlib_io_float=no ;; | |
890 | *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;; | |
891 | esac | |
892 | else | |
893 | newlib_io_float=yes | |
894 | fi | |
895 | ||
313f1349 JJ |
896 | # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given. |
897 | if test "${enable_newlib_supplied_syscalls+set}" = set; then | |
898 | enableval="$enable_newlib_supplied_syscalls" | |
899 | case "${enableval}" in | |
900 | yes) newlib_may_supply_syscalls=yes ;; | |
901 | no) newlib_may_supply_syscalls=no ;; | |
902 | *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;; | |
903 | esac | |
904 | else | |
905 | newlib_may_supply_syscalls=yes | |
906 | fi | |
907 | ||
908 | ||
909 | ||
910 | if test x${newlib_may_supply_syscalls} = xyes; then | |
911 | MAY_SUPPLY_SYSCALLS_TRUE= | |
912 | MAY_SUPPLY_SYSCALLS_FALSE='#' | |
913 | else | |
914 | MAY_SUPPLY_SYSCALLS_TRUE='#' | |
915 | MAY_SUPPLY_SYSCALLS_FALSE= | |
916 | fi | |
afecf2fa | 917 | |
8a0efa53 CF |
918 | |
919 | test -z "${with_target_subdir}" && with_target_subdir=. | |
920 | ||
921 | if test "${srcdir}" = "."; then | |
922 | if test "${with_target_subdir}" != "."; then | |
923 | newlib_basedir="${srcdir}/${with_multisrctop}../../../.." | |
924 | else | |
925 | newlib_basedir="${srcdir}/${with_multisrctop}../../.." | |
926 | fi | |
927 | else | |
928 | newlib_basedir="${srcdir}/../../.." | |
929 | fi | |
930 | ||
931 | ||
932 | ||
eaa75b70 TF |
933 | # Do some error checking and defaulting for the host and target type. |
934 | # The inputs are: | |
935 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
936 | # | |
937 | # The rules are: | |
938 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
939 | # same time. | |
940 | # 2. Host defaults to nonopt. | |
941 | # 3. If nonopt is not specified, then host defaults to the current host, | |
942 | # as determined by config.guess. | |
943 | # 4. Target and build default to nonopt. | |
944 | # 5. If nonopt is not specified, then target and build default to host. | |
945 | ||
946 | # The aliases save the names the user supplied, while $host etc. | |
947 | # will get canonicalized. | |
948 | case $host---$target---$nonopt in | |
949 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
950 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
951 | esac | |
952 | ||
953 | ||
8a0efa53 CF |
954 | # Make sure we can run config.sub. |
955 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
956 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
957 | fi | |
958 | ||
959 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
786ab12c | 960 | echo "configure:961: checking host system type" >&5 |
8a0efa53 CF |
961 | |
962 | host_alias=$host | |
963 | case "$host_alias" in | |
964 | NONE) | |
965 | case $nonopt in | |
966 | NONE) | |
967 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
968 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
969 | fi ;; | |
970 | *) host_alias=$nonopt ;; | |
971 | esac ;; | |
972 | esac | |
973 | ||
974 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
975 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
976 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
977 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
978 | echo "$ac_t""$host" 1>&6 | |
979 | ||
eaa75b70 | 980 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
786ab12c | 981 | echo "configure:982: checking target system type" >&5 |
eaa75b70 TF |
982 | |
983 | target_alias=$target | |
984 | case "$target_alias" in | |
985 | NONE) | |
986 | case $nonopt in | |
987 | NONE) target_alias=$host_alias ;; | |
988 | *) target_alias=$nonopt ;; | |
989 | esac ;; | |
990 | esac | |
991 | ||
992 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
993 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
994 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
995 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
996 | echo "$ac_t""$target" 1>&6 | |
997 | ||
998 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
786ab12c | 999 | echo "configure:1000: checking build system type" >&5 |
eaa75b70 TF |
1000 | |
1001 | build_alias=$build | |
1002 | case "$build_alias" in | |
1003 | NONE) | |
1004 | case $nonopt in | |
1005 | NONE) build_alias=$host_alias ;; | |
1006 | *) build_alias=$nonopt ;; | |
1007 | esac ;; | |
1008 | esac | |
1009 | ||
1010 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1011 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1012 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1013 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1014 | echo "$ac_t""$build" 1>&6 | |
1015 | ||
1016 | test "$host_alias" != "$target_alias" && | |
1017 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1018 | NONENONEs,x,x, && | |
1019 | program_prefix=${target_alias}- | |
1020 | ||
8a0efa53 CF |
1021 | |
1022 | ||
1023 | PACKAGE=newlib | |
1024 | ||
60b0838f | 1025 | VERSION=1.11.0 |
8a0efa53 CF |
1026 | |
1027 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
1028 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
1029 | fi | |
1030 | cat >> confdefs.h <<EOF | |
1031 | #define PACKAGE "$PACKAGE" | |
1032 | EOF | |
1033 | ||
1034 | cat >> confdefs.h <<EOF | |
1035 | #define VERSION "$VERSION" | |
1036 | EOF | |
1037 | ||
1038 | ||
1039 | ||
1040 | missing_dir=`cd $ac_aux_dir && pwd` | |
1041 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
786ab12c | 1042 | echo "configure:1043: checking for working aclocal" >&5 |
8a0efa53 CF |
1043 | # Run test in a subshell; some versions of sh will print an error if |
1044 | # an executable is not found, even if stderr is redirected. | |
1045 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1046 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
1047 | ACLOCAL=aclocal | |
1048 | echo "$ac_t""found" 1>&6 | |
1049 | else | |
1050 | ACLOCAL="$missing_dir/missing aclocal" | |
1051 | echo "$ac_t""missing" 1>&6 | |
1052 | fi | |
1053 | ||
1054 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
786ab12c | 1055 | echo "configure:1056: checking for working autoconf" >&5 |
8a0efa53 CF |
1056 | # Run test in a subshell; some versions of sh will print an error if |
1057 | # an executable is not found, even if stderr is redirected. | |
1058 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1059 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
1060 | AUTOCONF=autoconf | |
1061 | echo "$ac_t""found" 1>&6 | |
1062 | else | |
1063 | AUTOCONF="$missing_dir/missing autoconf" | |
1064 | echo "$ac_t""missing" 1>&6 | |
1065 | fi | |
1066 | ||
1067 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
786ab12c | 1068 | echo "configure:1069: checking for working automake" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then | |
1073 | AUTOMAKE=automake | |
1074 | echo "$ac_t""found" 1>&6 | |
1075 | else | |
1076 | AUTOMAKE="$missing_dir/missing automake" | |
1077 | echo "$ac_t""missing" 1>&6 | |
1078 | fi | |
1079 | ||
1080 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
786ab12c | 1081 | echo "configure:1082: checking for working autoheader" >&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 (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1086 | AUTOHEADER=autoheader | |
1087 | echo "$ac_t""found" 1>&6 | |
1088 | else | |
1089 | AUTOHEADER="$missing_dir/missing autoheader" | |
1090 | echo "$ac_t""missing" 1>&6 | |
1091 | fi | |
1092 | ||
1093 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
786ab12c | 1094 | echo "configure:1095: checking for working makeinfo" >&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 (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1099 | MAKEINFO=makeinfo | |
1100 | echo "$ac_t""found" 1>&6 | |
1101 | else | |
1102 | MAKEINFO="$missing_dir/missing makeinfo" | |
1103 | echo "$ac_t""missing" 1>&6 | |
1104 | fi | |
1105 | ||
1106 | ||
1107 | ||
1108 | # FIXME: We temporarily define our own version of AC_PROG_CC. This is | |
1109 | # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We | |
1110 | # are probably using a cross compiler, which will not be able to fully | |
1111 | # link an executable. This should really be fixed in autoconf | |
1112 | # itself. | |
1113 | ||
1114 | ||
1115 | ||
1116 | # Extract the first word of "gcc", so it can be a program name with args. | |
1117 | set dummy gcc; ac_word=$2 | |
1118 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1119 | echo "configure:1120: checking for $ac_word" >&5 |
8a0efa53 CF |
1120 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1121 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1122 | else | |
1123 | if test -n "$CC"; then | |
1124 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1125 | else | |
1126 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1127 | ac_dummy="$PATH" | |
1128 | for ac_dir in $ac_dummy; do | |
1129 | test -z "$ac_dir" && ac_dir=. | |
1130 | if test -f $ac_dir/$ac_word; then | |
1131 | ac_cv_prog_CC="gcc" | |
1132 | break | |
1133 | fi | |
1134 | done | |
1135 | IFS="$ac_save_ifs" | |
1136 | fi | |
1137 | fi | |
1138 | CC="$ac_cv_prog_CC" | |
1139 | if test -n "$CC"; then | |
1140 | echo "$ac_t""$CC" 1>&6 | |
1141 | else | |
1142 | echo "$ac_t""no" 1>&6 | |
1143 | fi | |
1144 | ||
1145 | if test -z "$CC"; then | |
1146 | # Extract the first word of "cc", so it can be a program name with args. | |
1147 | set dummy cc; ac_word=$2 | |
1148 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1149 | echo "configure:1150: checking for $ac_word" >&5 |
8a0efa53 CF |
1150 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1152 | else | |
1153 | if test -n "$CC"; then | |
1154 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1155 | else | |
1156 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1157 | ac_prog_rejected=no | |
1158 | ac_dummy="$PATH" | |
1159 | for ac_dir in $ac_dummy; do | |
1160 | test -z "$ac_dir" && ac_dir=. | |
1161 | if test -f $ac_dir/$ac_word; then | |
1162 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1163 | ac_prog_rejected=yes | |
1164 | continue | |
1165 | fi | |
1166 | ac_cv_prog_CC="cc" | |
1167 | break | |
1168 | fi | |
1169 | done | |
1170 | IFS="$ac_save_ifs" | |
1171 | if test $ac_prog_rejected = yes; then | |
1172 | # We found a bogon in the path, so make sure we never use it. | |
1173 | set dummy $ac_cv_prog_CC | |
1174 | shift | |
1175 | if test $# -gt 0; then | |
1176 | # We chose a different compiler from the bogus one. | |
1177 | # However, it has the same basename, so the bogon will be chosen | |
1178 | # first if we set CC to just the basename; use the full file name. | |
1179 | shift | |
1180 | set dummy "$ac_dir/$ac_word" "$@" | |
1181 | shift | |
1182 | ac_cv_prog_CC="$@" | |
1183 | fi | |
1184 | fi | |
1185 | fi | |
1186 | fi | |
1187 | CC="$ac_cv_prog_CC" | |
1188 | if test -n "$CC"; then | |
1189 | echo "$ac_t""$CC" 1>&6 | |
1190 | else | |
1191 | echo "$ac_t""no" 1>&6 | |
1192 | fi | |
1193 | ||
1194 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1195 | fi | |
1196 | ||
1197 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
786ab12c | 1198 | echo "configure:1199: checking whether we are using GNU C" >&5 |
8a0efa53 CF |
1199 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1201 | else | |
1202 | cat > conftest.c <<EOF | |
1203 | #ifdef __GNUC__ | |
1204 | yes; | |
1205 | #endif | |
1206 | EOF | |
786ab12c | 1207 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
8a0efa53 CF |
1208 | ac_cv_prog_gcc=yes |
1209 | else | |
1210 | ac_cv_prog_gcc=no | |
1211 | fi | |
1212 | fi | |
1213 | ||
1214 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1215 | ||
1216 | if test $ac_cv_prog_gcc = yes; then | |
1217 | GCC=yes | |
1218 | ac_test_CFLAGS="${CFLAGS+set}" | |
1219 | ac_save_CFLAGS="$CFLAGS" | |
1220 | CFLAGS= | |
1221 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
786ab12c | 1222 | echo "configure:1223: checking whether ${CC-cc} accepts -g" >&5 |
8a0efa53 CF |
1223 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1224 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1225 | else | |
1226 | echo 'void f(){}' > conftest.c | |
1227 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1228 | ac_cv_prog_cc_g=yes | |
1229 | else | |
1230 | ac_cv_prog_cc_g=no | |
1231 | fi | |
1232 | rm -f conftest* | |
1233 | ||
1234 | fi | |
1235 | ||
1236 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1237 | if test "$ac_test_CFLAGS" = set; then | |
1238 | CFLAGS="$ac_save_CFLAGS" | |
1239 | elif test $ac_cv_prog_cc_g = yes; then | |
1240 | CFLAGS="-g -O2" | |
1241 | else | |
1242 | CFLAGS="-O2" | |
1243 | fi | |
1244 | else | |
1245 | GCC= | |
1246 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
1247 | fi | |
1248 | ||
1249 | ||
8a0efa53 CF |
1250 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
1251 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
1252 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1253 | echo "configure:1254: checking for $ac_word" >&5 |
8a0efa53 CF |
1254 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
1255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1256 | else | |
1257 | if test -n "$AS"; then | |
1258 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
1259 | else | |
1260 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1261 | ac_dummy="$PATH" | |
1262 | for ac_dir in $ac_dummy; do | |
1263 | test -z "$ac_dir" && ac_dir=. | |
1264 | if test -f $ac_dir/$ac_word; then | |
1265 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
1266 | break | |
1267 | fi | |
1268 | done | |
1269 | IFS="$ac_save_ifs" | |
1270 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" | |
1271 | fi | |
1272 | fi | |
1273 | AS="$ac_cv_prog_AS" | |
1274 | if test -n "$AS"; then | |
1275 | echo "$ac_t""$AS" 1>&6 | |
1276 | else | |
1277 | echo "$ac_t""no" 1>&6 | |
1278 | fi | |
1279 | ||
1280 | ||
1281 | ||
1282 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
1283 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
1284 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1285 | echo "configure:1286: checking for $ac_word" >&5 |
8a0efa53 CF |
1286 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1288 | else | |
1289 | if test -n "$AR"; then | |
1290 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1291 | else | |
1292 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1293 | ac_dummy="$PATH" | |
1294 | for ac_dir in $ac_dummy; do | |
1295 | test -z "$ac_dir" && ac_dir=. | |
1296 | if test -f $ac_dir/$ac_word; then | |
1297 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
1298 | break | |
1299 | fi | |
1300 | done | |
1301 | IFS="$ac_save_ifs" | |
1302 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1303 | fi | |
1304 | fi | |
1305 | AR="$ac_cv_prog_AR" | |
1306 | if test -n "$AR"; then | |
1307 | echo "$ac_t""$AR" 1>&6 | |
1308 | else | |
1309 | echo "$ac_t""no" 1>&6 | |
1310 | fi | |
1311 | ||
1312 | ||
1313 | ||
1314 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1315 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1316 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1317 | echo "configure:1318: checking for $ac_word" >&5 |
8a0efa53 CF |
1318 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1319 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1320 | else | |
1321 | if test -n "$RANLIB"; then | |
1322 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1323 | else | |
1324 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1325 | ac_dummy="$PATH" | |
1326 | for ac_dir in $ac_dummy; do | |
1327 | test -z "$ac_dir" && ac_dir=. | |
1328 | if test -f $ac_dir/$ac_word; then | |
1329 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1330 | break | |
1331 | fi | |
1332 | done | |
1333 | IFS="$ac_save_ifs" | |
1334 | fi | |
1335 | fi | |
1336 | RANLIB="$ac_cv_prog_RANLIB" | |
1337 | if test -n "$RANLIB"; then | |
1338 | echo "$ac_t""$RANLIB" 1>&6 | |
1339 | else | |
1340 | echo "$ac_t""no" 1>&6 | |
1341 | fi | |
1342 | ||
1343 | ||
1344 | if test -z "$ac_cv_prog_RANLIB"; then | |
1345 | if test -n "$ac_tool_prefix"; then | |
1346 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1347 | set dummy ranlib; ac_word=$2 | |
1348 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1349 | echo "configure:1350: checking for $ac_word" >&5 |
8a0efa53 CF |
1350 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1351 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1352 | else | |
1353 | if test -n "$RANLIB"; then | |
1354 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1355 | else | |
1356 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1357 | ac_dummy="$PATH" | |
1358 | for ac_dir in $ac_dummy; do | |
1359 | test -z "$ac_dir" && ac_dir=. | |
1360 | if test -f $ac_dir/$ac_word; then | |
1361 | ac_cv_prog_RANLIB="ranlib" | |
1362 | break | |
1363 | fi | |
1364 | done | |
1365 | IFS="$ac_save_ifs" | |
1366 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1367 | fi | |
1368 | fi | |
1369 | RANLIB="$ac_cv_prog_RANLIB" | |
1370 | if test -n "$RANLIB"; then | |
1371 | echo "$ac_t""$RANLIB" 1>&6 | |
1372 | else | |
1373 | echo "$ac_t""no" 1>&6 | |
1374 | fi | |
1375 | ||
1376 | else | |
1377 | RANLIB=":" | |
1378 | fi | |
1379 | fi | |
1380 | ||
1381 | ||
1382 | # Find a good install program. We prefer a C program (faster), | |
1383 | # so one script is as good as another. But avoid the broken or | |
1384 | # incompatible versions: | |
1385 | # SysV /etc/install, /usr/sbin/install | |
1386 | # SunOS /usr/etc/install | |
1387 | # IRIX /sbin/install | |
1388 | # AIX /bin/install | |
1389 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1390 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1391 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1392 | # ./install, which can be erroneously created by make from ./install.sh. | |
1393 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
786ab12c | 1394 | echo "configure:1395: checking for a BSD compatible install" >&5 |
8a0efa53 CF |
1395 | if test -z "$INSTALL"; then |
1396 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1398 | else | |
1399 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
1400 | for ac_dir in $PATH; do | |
1401 | # Account for people who put trailing slashes in PATH elements. | |
1402 | case "$ac_dir/" in | |
1403 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1404 | *) | |
1405 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1406 | # Don't use installbsd from OSF since it installs stuff as root | |
1407 | # by default. | |
1408 | for ac_prog in ginstall scoinst install; do | |
1409 | if test -f $ac_dir/$ac_prog; then | |
1410 | if test $ac_prog = install && | |
1411 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1412 | # AIX install. It has an incompatible calling convention. | |
1413 | : | |
1414 | else | |
1415 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1416 | break 2 | |
1417 | fi | |
1418 | fi | |
1419 | done | |
1420 | ;; | |
1421 | esac | |
1422 | done | |
1423 | IFS="$ac_save_IFS" | |
1424 | ||
1425 | fi | |
1426 | if test "${ac_cv_path_install+set}" = set; then | |
1427 | INSTALL="$ac_cv_path_install" | |
1428 | else | |
1429 | # As a last resort, use the slow shell script. We don't cache a | |
1430 | # path for INSTALL within a source directory, because that will | |
1431 | # break other packages using the cache if that directory is | |
1432 | # removed, or if the path is relative. | |
1433 | INSTALL="$ac_install_sh" | |
1434 | fi | |
1435 | fi | |
1436 | echo "$ac_t""$INSTALL" 1>&6 | |
1437 | ||
1438 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1439 | # It thinks the first close brace ends the variable substitution. | |
1440 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1441 | ||
1442 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
1443 | ||
1444 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1445 | ||
1446 | ||
1447 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
786ab12c | 1448 | echo "configure:1449: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
8a0efa53 CF |
1449 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1450 | if test "${enable_maintainer_mode+set}" = set; then | |
1451 | enableval="$enable_maintainer_mode" | |
1452 | USE_MAINTAINER_MODE=$enableval | |
1453 | else | |
1454 | USE_MAINTAINER_MODE=no | |
1455 | fi | |
1456 | ||
1457 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
1458 | ||
1459 | ||
1460 | if test $USE_MAINTAINER_MODE = yes; then | |
1461 | MAINTAINER_MODE_TRUE= | |
1462 | MAINTAINER_MODE_FALSE='#' | |
1463 | else | |
1464 | MAINTAINER_MODE_TRUE='#' | |
1465 | MAINTAINER_MODE_FALSE= | |
1466 | fi | |
1467 | MAINT=$MAINTAINER_MODE_TRUE | |
1468 | ||
1469 | ||
1470 | ||
1471 | # We need AC_EXEEXT to keep automake happy in cygnus mode. However, | |
1472 | # at least currently, we never actually build a program, so we never | |
1473 | # need to use $(EXEEXT). Moreover, the test for EXEEXT normally | |
1474 | # fails, because we are probably configuring with a cross compiler | |
1475 | # which can't create executables. So we include AC_EXEEXT to keep | |
1476 | # automake happy, but we don't execute it, since we don't care about | |
1477 | # the result. | |
1478 | if false; then | |
1479 | ||
1480 | ||
1481 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
786ab12c | 1482 | echo "configure:1483: checking for executable suffix" >&5 |
8a0efa53 CF |
1483 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1485 | else | |
1486 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
1487 | ac_cv_exeext=.exe | |
1488 | else | |
1489 | rm -f conftest* | |
1490 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
1491 | ac_cv_exeext= | |
786ab12c | 1492 | if { (eval echo configure:1493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
8a0efa53 CF |
1493 | for file in conftest.*; do |
1494 | case $file in | |
786ab12c | 1495 | *.c | *.o | *.obj) ;; |
8a0efa53 CF |
1496 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
1497 | esac | |
1498 | done | |
1499 | else | |
1500 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1501 | fi | |
1502 | rm -f conftest* | |
1503 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1504 | fi | |
1505 | fi | |
1506 | ||
1507 | EXEEXT="" | |
1508 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1509 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1510 | ac_exeext=$EXEEXT | |
1511 | ||
1512 | fi | |
1513 | ||
1514 | . ${newlib_basedir}/configure.host | |
1515 | ||
8a0efa53 CF |
1516 | newlib_cflags="${newlib_cflags} -fno-builtin" |
1517 | ||
1518 | NEWLIB_CFLAGS=${newlib_cflags} | |
1519 | ||
1520 | ||
2e1a7175 TF |
1521 | LDFLAGS=${ldflags} |
1522 | ||
1523 | ||
1524 | ||
1525 | ||
a8615092 JJ |
1526 | if test x${newlib_elix_level} = x0; then |
1527 | ELIX_LEVEL_0_TRUE= | |
1528 | ELIX_LEVEL_0_FALSE='#' | |
1529 | else | |
1530 | ELIX_LEVEL_0_TRUE='#' | |
1531 | ELIX_LEVEL_0_FALSE= | |
1532 | fi | |
1533 | ||
1534 | ||
1535 | if test x${newlib_elix_level} = x1; then | |
1536 | ELIX_LEVEL_1_TRUE= | |
1537 | ELIX_LEVEL_1_FALSE='#' | |
1538 | else | |
1539 | ELIX_LEVEL_1_TRUE='#' | |
1540 | ELIX_LEVEL_1_FALSE= | |
1541 | fi | |
1542 | ||
1543 | ||
1544 | if test x${newlib_elix_level} = x2; then | |
1545 | ELIX_LEVEL_2_TRUE= | |
1546 | ELIX_LEVEL_2_FALSE='#' | |
1547 | else | |
1548 | ELIX_LEVEL_2_TRUE='#' | |
1549 | ELIX_LEVEL_2_FALSE= | |
1550 | fi | |
1551 | ||
1552 | ||
1553 | if test x${newlib_elix_level} = x3; then | |
1554 | ELIX_LEVEL_3_TRUE= | |
1555 | ELIX_LEVEL_3_FALSE='#' | |
1556 | else | |
1557 | ELIX_LEVEL_3_TRUE='#' | |
1558 | ELIX_LEVEL_3_FALSE= | |
1559 | fi | |
1560 | ||
1561 | ||
1562 | if test x${newlib_elix_level} = x4; then | |
1563 | ELIX_LEVEL_4_TRUE= | |
1564 | ELIX_LEVEL_4_FALSE='#' | |
1565 | else | |
1566 | ELIX_LEVEL_4_TRUE='#' | |
1567 | ELIX_LEVEL_4_FALSE= | |
1568 | fi | |
1569 | ||
1570 | ||
1571 | ||
2e1a7175 TF |
1572 | if test x${use_libtool} = xyes; then |
1573 | USE_LIBTOOL_TRUE= | |
1574 | USE_LIBTOOL_FALSE='#' | |
1575 | else | |
1576 | USE_LIBTOOL_TRUE='#' | |
1577 | USE_LIBTOOL_FALSE= | |
1578 | fi | |
1579 | ||
0953fe64 TF |
1580 | # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we |
1581 | # use oext, which is set in configure.host based on the target platform. | |
1582 | OBJEXT=${oext} | |
1583 | ||
1584 | ||
1585 | ||
2e1a7175 TF |
1586 | |
1587 | ||
1588 | ||
8a0efa53 CF |
1589 | |
1590 | ||
1591 | ||
1592 | ||
1593 | trap '' 1 2 15 | |
1594 | cat > confcache <<\EOF | |
1595 | # This file is a shell script that caches the results of configure | |
1596 | # tests run on this system so they can be shared between configure | |
1597 | # scripts and configure runs. It is not useful on other systems. | |
1598 | # If it contains results you don't want to keep, you may remove or edit it. | |
1599 | # | |
1600 | # By default, configure uses ./config.cache as the cache file, | |
1601 | # creating it if it does not exist already. You can give configure | |
1602 | # the --cache-file=FILE option to use a different cache file; that is | |
1603 | # what configure does when it calls configure scripts in | |
1604 | # subdirectories, so they share the cache. | |
1605 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
1606 | # config.status only pays attention to the cache file if you give it the | |
1607 | # --recheck option to rerun configure. | |
1608 | # | |
1609 | EOF | |
1610 | # The following way of writing the cache mishandles newlines in values, | |
1611 | # but we know of no workaround that is simple, portable, and efficient. | |
1612 | # So, don't put newlines in cache variables' values. | |
1613 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
1614 | # and sets the high bit in the cache file unless we assign to the vars. | |
1615 | (set) 2>&1 | | |
1616 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
1617 | *ac_space=\ *) | |
1618 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
1619 | # turns \\\\ into \\, and sed turns \\ into \). | |
1620 | sed -n \ | |
1621 | -e "s/'/'\\\\''/g" \ | |
1622 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
1623 | ;; | |
1624 | *) | |
1625 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
1626 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
1627 | ;; | |
1628 | esac >> confcache | |
1629 | if cmp -s $cache_file confcache; then | |
1630 | : | |
1631 | else | |
1632 | if test -w $cache_file; then | |
1633 | echo "updating cache $cache_file" | |
1634 | cat confcache > $cache_file | |
1635 | else | |
1636 | echo "not updating unwritable cache $cache_file" | |
1637 | fi | |
1638 | fi | |
1639 | rm -f confcache | |
1640 | ||
1641 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
1642 | ||
1643 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
1644 | # Let make expand exec_prefix. | |
1645 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
1646 | ||
1647 | # Any assignment to VPATH causes Sun make to only execute | |
1648 | # the first set of double-colon rules, so remove it if not needed. | |
1649 | # If there is a colon in the path, we need to keep it. | |
1650 | if test "x$srcdir" = x.; then | |
1651 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
1652 | fi | |
1653 | ||
1654 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
1655 | ||
1656 | # Transform confdefs.h into DEFS. | |
1657 | # Protect against shell expansion while executing Makefile rules. | |
1658 | # Protect against Makefile macro expansion. | |
1659 | cat > conftest.defs <<\EOF | |
1660 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
1661 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
1662 | s%\[%\\&%g | |
1663 | s%\]%\\&%g | |
1664 | s%\$%$$%g | |
1665 | EOF | |
1666 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
1667 | rm -f conftest.defs | |
1668 | ||
1669 | ||
1670 | # Without the "./", some shells look in PATH for config.status. | |
1671 | : ${CONFIG_STATUS=./config.status} | |
1672 | ||
1673 | echo creating $CONFIG_STATUS | |
1674 | rm -f $CONFIG_STATUS | |
1675 | cat > $CONFIG_STATUS <<EOF | |
1676 | #! /bin/sh | |
1677 | # Generated automatically by configure. | |
1678 | # Run this file to recreate the current configuration. | |
1679 | # This directory was configured as follows, | |
1680 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
1681 | # | |
1682 | # $0 $ac_configure_args | |
1683 | # | |
1684 | # Compiler output produced by configure, useful for debugging | |
1685 | # configure, is in ./config.log if it exists. | |
1686 | ||
1687 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
1688 | for ac_option | |
1689 | do | |
1690 | case "\$ac_option" in | |
1691 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
1692 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
1693 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
1694 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
1695 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
1696 | exit 0 ;; | |
1697 | -help | --help | --hel | --he | --h) | |
1698 | echo "\$ac_cs_usage"; exit 0 ;; | |
1699 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
1700 | esac | |
1701 | done | |
1702 | ||
1703 | ac_given_srcdir=$srcdir | |
1704 | ac_given_INSTALL="$INSTALL" | |
1705 | ||
1706 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1707 | EOF | |
1708 | cat >> $CONFIG_STATUS <<EOF | |
1709 | ||
1710 | # Protect against being on the right side of a sed subst in config.status. | |
1711 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
1712 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
1713 | $ac_vpsub | |
1714 | $extrasub | |
1715 | s%@SHELL@%$SHELL%g | |
1716 | s%@CFLAGS@%$CFLAGS%g | |
1717 | s%@CPPFLAGS@%$CPPFLAGS%g | |
1718 | s%@CXXFLAGS@%$CXXFLAGS%g | |
1719 | s%@FFLAGS@%$FFLAGS%g | |
1720 | s%@DEFS@%$DEFS%g | |
1721 | s%@LDFLAGS@%$LDFLAGS%g | |
1722 | s%@LIBS@%$LIBS%g | |
1723 | s%@exec_prefix@%$exec_prefix%g | |
1724 | s%@prefix@%$prefix%g | |
1725 | s%@program_transform_name@%$program_transform_name%g | |
1726 | s%@bindir@%$bindir%g | |
1727 | s%@sbindir@%$sbindir%g | |
1728 | s%@libexecdir@%$libexecdir%g | |
1729 | s%@datadir@%$datadir%g | |
1730 | s%@sysconfdir@%$sysconfdir%g | |
1731 | s%@sharedstatedir@%$sharedstatedir%g | |
1732 | s%@localstatedir@%$localstatedir%g | |
1733 | s%@libdir@%$libdir%g | |
1734 | s%@includedir@%$includedir%g | |
1735 | s%@oldincludedir@%$oldincludedir%g | |
1736 | s%@infodir@%$infodir%g | |
1737 | s%@mandir@%$mandir%g | |
313f1349 JJ |
1738 | s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g |
1739 | s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g | |
8a0efa53 CF |
1740 | s%@newlib_basedir@%$newlib_basedir%g |
1741 | s%@host@%$host%g | |
1742 | s%@host_alias@%$host_alias%g | |
1743 | s%@host_cpu@%$host_cpu%g | |
1744 | s%@host_vendor@%$host_vendor%g | |
1745 | s%@host_os@%$host_os%g | |
eaa75b70 TF |
1746 | s%@target@%$target%g |
1747 | s%@target_alias@%$target_alias%g | |
1748 | s%@target_cpu@%$target_cpu%g | |
1749 | s%@target_vendor@%$target_vendor%g | |
1750 | s%@target_os@%$target_os%g | |
1751 | s%@build@%$build%g | |
1752 | s%@build_alias@%$build_alias%g | |
1753 | s%@build_cpu@%$build_cpu%g | |
1754 | s%@build_vendor@%$build_vendor%g | |
1755 | s%@build_os@%$build_os%g | |
8a0efa53 CF |
1756 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
1757 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
1758 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
1759 | s%@PACKAGE@%$PACKAGE%g | |
1760 | s%@VERSION@%$VERSION%g | |
1761 | s%@ACLOCAL@%$ACLOCAL%g | |
1762 | s%@AUTOCONF@%$AUTOCONF%g | |
1763 | s%@AUTOMAKE@%$AUTOMAKE%g | |
1764 | s%@AUTOHEADER@%$AUTOHEADER%g | |
1765 | s%@MAKEINFO@%$MAKEINFO%g | |
1766 | s%@SET_MAKE@%$SET_MAKE%g | |
1767 | s%@CC@%$CC%g | |
8a0efa53 CF |
1768 | s%@AS@%$AS%g |
1769 | s%@AR@%$AR%g | |
1770 | s%@RANLIB@%$RANLIB%g | |
1771 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | |
1772 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
1773 | s%@MAINT@%$MAINT%g | |
1774 | s%@EXEEXT@%$EXEEXT%g | |
1775 | s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g | |
a8615092 JJ |
1776 | s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g |
1777 | s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g | |
1778 | s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g | |
1779 | s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g | |
1780 | s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g | |
1781 | s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g | |
1782 | s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g | |
1783 | s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g | |
1784 | s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g | |
1785 | s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g | |
2e1a7175 TF |
1786 | s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g |
1787 | s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g | |
0953fe64 | 1788 | s%@OBJEXT@%$OBJEXT%g |
2e1a7175 TF |
1789 | s%@oext@%$oext%g |
1790 | s%@aext@%$aext%g | |
1791 | s%@libm_machine_dir@%$libm_machine_dir%g | |
8a0efa53 CF |
1792 | s%@machine_dir@%$machine_dir%g |
1793 | s%@sys_dir@%$sys_dir%g | |
1794 | ||
1795 | CEOF | |
1796 | EOF | |
1797 | ||
1798 | cat >> $CONFIG_STATUS <<\EOF | |
1799 | ||
1800 | # Split the substitutions into bite-sized pieces for seds with | |
1801 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
786ab12c | 1802 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
8a0efa53 CF |
1803 | ac_file=1 # Number of current file. |
1804 | ac_beg=1 # First line for current file. | |
1805 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
1806 | ac_more_lines=: | |
1807 | ac_sed_cmds="" | |
1808 | while $ac_more_lines; do | |
1809 | if test $ac_beg -gt 1; then | |
1810 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
1811 | else | |
1812 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
1813 | fi | |
1814 | if test ! -s conftest.s$ac_file; then | |
1815 | ac_more_lines=false | |
1816 | rm -f conftest.s$ac_file | |
1817 | else | |
1818 | if test -z "$ac_sed_cmds"; then | |
1819 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
1820 | else | |
1821 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
1822 | fi | |
1823 | ac_file=`expr $ac_file + 1` | |
1824 | ac_beg=$ac_end | |
1825 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
1826 | fi | |
1827 | done | |
1828 | if test -z "$ac_sed_cmds"; then | |
1829 | ac_sed_cmds=cat | |
1830 | fi | |
1831 | EOF | |
1832 | ||
1833 | cat >> $CONFIG_STATUS <<EOF | |
1834 | ||
1835 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | |
1836 | EOF | |
1837 | cat >> $CONFIG_STATUS <<\EOF | |
1838 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
1839 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
1840 | case "$ac_file" in | |
1841 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
1842 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
1843 | *) ac_file_in="${ac_file}.in" ;; | |
1844 | esac | |
1845 | ||
1846 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
1847 | ||
1848 | # Remove last slash and all that follows it. Not all systems have dirname. | |
1849 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
1850 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
1851 | # The file is in a subdirectory. | |
1852 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
1853 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
1854 | # A "../" for each directory in $ac_dir_suffix. | |
1855 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
1856 | else | |
1857 | ac_dir_suffix= ac_dots= | |
1858 | fi | |
1859 | ||
1860 | case "$ac_given_srcdir" in | |
1861 | .) srcdir=. | |
1862 | if test -z "$ac_dots"; then top_srcdir=. | |
1863 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
1864 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
1865 | *) # Relative path. | |
1866 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
1867 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
1868 | esac | |
1869 | ||
1870 | case "$ac_given_INSTALL" in | |
1871 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
1872 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
1873 | esac | |
1874 | ||
1875 | echo creating "$ac_file" | |
1876 | rm -f "$ac_file" | |
1877 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
1878 | case "$ac_file" in | |
1879 | *Makefile*) ac_comsub="1i\\ | |
1880 | # $configure_input" ;; | |
1881 | *) ac_comsub= ;; | |
1882 | esac | |
1883 | ||
1884 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
1885 | sed -e "$ac_comsub | |
1886 | s%@configure_input@%$configure_input%g | |
1887 | s%@srcdir@%$srcdir%g | |
1888 | s%@top_srcdir@%$top_srcdir%g | |
1889 | s%@INSTALL@%$INSTALL%g | |
1890 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
1891 | fi; done | |
1892 | rm -f conftest.s* | |
1893 | ||
1894 | EOF | |
1895 | cat >> $CONFIG_STATUS <<EOF | |
1896 | ||
1897 | EOF | |
1898 | cat >> $CONFIG_STATUS <<\EOF | |
1899 | ||
1900 | exit 0 | |
1901 | EOF | |
1902 | chmod +x $CONFIG_STATUS | |
1903 | rm -fr confdefs* $ac_clean_files | |
1904 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
1905 |