]>
Commit | Line | Data |
---|---|---|
28f540f4 RM |
1 | #! /bin/sh |
2 | ||
424f8c09 | 3 | # From configure.in CVSid |
28f540f4 | 4 | # Guess values for system-dependent variables and create Makefiles. |
f9c53d11 | 5 | # Generated automatically using autoconf version 2.12 |
c224a18a | 6 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
28f540f4 RM |
7 | # |
8 | # This configure script is free software; the Free Software Foundation | |
9 | # gives unlimited permission to copy, distribute and modify it. | |
10 | ||
11 | # Defaults: | |
12 | ac_help= | |
13 | ac_default_prefix=/usr/local | |
14 | # Any additions from configure.in: | |
15 | ac_help="$ac_help | |
16 | --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)" | |
75914335 RM |
17 | ac_help="$ac_help |
18 | --with-gettext=DIR find GNU gettext source code in DIR (not needed)" | |
e215c478 | 19 | ac_help="$ac_help |
8844bedd | 20 | --with-fp if using floating-point hardware [default=yes]" |
28f540f4 RM |
21 | ac_help="$ac_help |
22 | --with-gnu-binutils if using GNU binutils (as and ld)" | |
23 | ac_help="$ac_help | |
24 | --with-gnu-ld if using GNU ld (in the binutils package)" | |
25 | ac_help="$ac_help | |
26 | --with-gnu-as if using GNU as (in the binutils package)" | |
27 | ac_help="$ac_help | |
28 | --with-elf if using the ELF object format" | |
d17e960c RM |
29 | ac_help="$ac_help |
30 | --enable-libio build in GNU libio instead of GNU stdio" | |
f65fd747 UD |
31 | ac_help="$ac_help |
32 | --enable-new-malloc use the new malloc implementation. This is the | |
33 | default for Linux, others use the old malloc." | |
8844bedd TBB |
34 | ac_help="$ac_help |
35 | --disable-sanity-checks really do not use threads (should not be used | |
36 | except in special situations) [default=yes]" | |
424f8c09 RM |
37 | ac_help="$ac_help |
38 | --enable-shared build shared library [default=yes if GNU ld & ELF]" | |
39 | ac_help="$ac_help | |
40 | --enable-profile build profiled library [default=yes]" | |
41 | ac_help="$ac_help | |
6b3a2224 RM |
42 | --enable-omitfp build undebuggable optimized library [default=no]" |
43 | ac_help="$ac_help | |
44 | --enable-add-ons=DIR... configure and build named extra directories" | |
28f540f4 RM |
45 | |
46 | # Initialize some variables set by options. | |
47 | # The variables have the same names as the options, with | |
48 | # dashes changed to underlines. | |
49 | build=NONE | |
50 | cache_file=./config.cache | |
51 | exec_prefix=NONE | |
52 | host=NONE | |
53 | no_create= | |
54 | nonopt=NONE | |
55 | no_recursion= | |
56 | prefix=NONE | |
57 | program_prefix=NONE | |
58 | program_suffix=NONE | |
59 | program_transform_name=s,x,x, | |
60 | silent= | |
61 | site= | |
62 | srcdir= | |
63 | target=NONE | |
64 | verbose= | |
65 | x_includes=NONE | |
66 | x_libraries=NONE | |
b8dc6a10 RM |
67 | bindir='${exec_prefix}/bin' |
68 | sbindir='${exec_prefix}/sbin' | |
69 | libexecdir='${exec_prefix}/libexec' | |
70 | datadir='${prefix}/share' | |
71 | sysconfdir='${prefix}/etc' | |
72 | sharedstatedir='${prefix}/com' | |
73 | localstatedir='${prefix}/var' | |
74 | libdir='${exec_prefix}/lib' | |
75 | includedir='${prefix}/include' | |
76 | oldincludedir='/usr/include' | |
77 | infodir='${prefix}/info' | |
78 | mandir='${prefix}/man' | |
28f540f4 RM |
79 | |
80 | # Initialize some other variables. | |
81 | subdirs= | |
91c7b85d | 82 | MFLAGS= MAKEFLAGS= |
8a523922 UD |
83 | # Maximum number of lines to put in a shell here document. |
84 | ac_max_here_lines=12 | |
28f540f4 RM |
85 | |
86 | ac_prev= | |
87 | for ac_option | |
88 | do | |
89 | ||
90 | # If the previous option needs an argument, assign it. | |
91 | if test -n "$ac_prev"; then | |
92 | eval "$ac_prev=\$ac_option" | |
93 | ac_prev= | |
94 | continue | |
95 | fi | |
96 | ||
97 | case "$ac_option" in | |
98 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
99 | *) ac_optarg= ;; | |
100 | esac | |
101 | ||
102 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
103 | ||
104 | case "$ac_option" in | |
105 | ||
b8dc6a10 RM |
106 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
107 | ac_prev=bindir ;; | |
108 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
109 | bindir="$ac_optarg" ;; | |
110 | ||
111 | -build | --build | --buil | --bui | --bu) | |
28f540f4 | 112 | ac_prev=build ;; |
b8dc6a10 | 113 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
28f540f4 RM |
114 | build="$ac_optarg" ;; |
115 | ||
116 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
117 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
118 | ac_prev=cache_file ;; | |
119 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
120 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
121 | cache_file="$ac_optarg" ;; | |
122 | ||
b8dc6a10 RM |
123 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
124 | ac_prev=datadir ;; | |
125 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
126 | | --da=*) | |
127 | datadir="$ac_optarg" ;; | |
128 | ||
28f540f4 RM |
129 | -disable-* | --disable-*) |
130 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
131 | # Reject names that are not valid shell variable names. | |
132 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
133 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
134 | fi | |
135 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
136 | eval "enable_${ac_feature}=no" ;; | |
137 | ||
138 | -enable-* | --enable-*) | |
139 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
140 | # Reject names that are not valid shell variable names. | |
141 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
142 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
143 | fi | |
144 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
145 | case "$ac_option" in | |
146 | *=*) ;; | |
147 | *) ac_optarg=yes ;; | |
148 | esac | |
149 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
150 | ||
151 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
152 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
153 | | --exec | --exe | --ex) | |
154 | ac_prev=exec_prefix ;; | |
155 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
156 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
157 | | --exec=* | --exe=* | --ex=*) | |
158 | exec_prefix="$ac_optarg" ;; | |
159 | ||
160 | -gas | --gas | --ga | --g) | |
161 | # Obsolete; use --with-gas. | |
162 | with_gas=yes ;; | |
163 | ||
164 | -help | --help | --hel | --he) | |
165 | # Omit some internal or obsolete options to make the list less imposing. | |
166 | # This message is too long to be a string in the A/UX 3.1 sh. | |
167 | cat << EOF | |
168 | Usage: configure [options] [host] | |
169 | Options: [defaults in brackets after descriptions] | |
170 | Configuration: | |
171 | --cache-file=FILE cache test results in FILE | |
172 | --help print this message | |
173 | --no-create do not create output files | |
174 | --quiet, --silent do not print \`checking...' messages | |
175 | --version print the version of autoconf that created configure | |
176 | Directory and file names: | |
177 | --prefix=PREFIX install architecture-independent files in PREFIX | |
178 | [$ac_default_prefix] | |
b8dc6a10 | 179 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
28f540f4 | 180 | [same as prefix] |
b8dc6a10 RM |
181 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
182 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
183 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
1ed0083c RM |
184 | --datadir=DIR read-only architecture-independent data in DIR |
185 | [PREFIX/share] | |
b8dc6a10 | 186 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
1ed0083c RM |
187 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
188 | [PREFIX/com] | |
b8dc6a10 RM |
189 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
190 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
191 | --includedir=DIR C header files in DIR [PREFIX/include] | |
192 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
193 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
194 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
28f540f4 RM |
195 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
196 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
197 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1ed0083c RM |
198 | --program-transform-name=PROGRAM |
199 | run sed PROGRAM on installed program names | |
b8dc6a10 RM |
200 | EOF |
201 | cat << EOF | |
28f540f4 RM |
202 | Host type: |
203 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
204 | --host=HOST configure for HOST [guessed] | |
205 | --target=TARGET configure for TARGET [TARGET=HOST] | |
206 | Features and packages: | |
207 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
208 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
209 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
210 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
211 | --x-includes=DIR X include files are in DIR | |
212 | --x-libraries=DIR X library files are in DIR | |
28f540f4 | 213 | EOF |
1ed0083c RM |
214 | if test -n "$ac_help"; then |
215 | echo "--enable and --with options recognized:$ac_help" | |
216 | fi | |
28f540f4 RM |
217 | exit 0 ;; |
218 | ||
219 | -host | --host | --hos | --ho) | |
220 | ac_prev=host ;; | |
221 | -host=* | --host=* | --hos=* | --ho=*) | |
222 | host="$ac_optarg" ;; | |
223 | ||
b8dc6a10 RM |
224 | -includedir | --includedir | --includedi | --included | --include \ |
225 | | --includ | --inclu | --incl | --inc) | |
226 | ac_prev=includedir ;; | |
227 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
228 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
229 | includedir="$ac_optarg" ;; | |
230 | ||
231 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
232 | ac_prev=infodir ;; | |
233 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
234 | infodir="$ac_optarg" ;; | |
235 | ||
236 | -libdir | --libdir | --libdi | --libd) | |
237 | ac_prev=libdir ;; | |
238 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
239 | libdir="$ac_optarg" ;; | |
240 | ||
241 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
242 | | --libexe | --libex | --libe) | |
243 | ac_prev=libexecdir ;; | |
244 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
245 | | --libexe=* | --libex=* | --libe=*) | |
246 | libexecdir="$ac_optarg" ;; | |
247 | ||
248 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
249 | | --localstate | --localstat | --localsta | --localst \ | |
250 | | --locals | --local | --loca | --loc | --lo) | |
251 | ac_prev=localstatedir ;; | |
252 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
253 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
254 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
255 | localstatedir="$ac_optarg" ;; | |
256 | ||
257 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
258 | ac_prev=mandir ;; | |
259 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
260 | mandir="$ac_optarg" ;; | |
261 | ||
28f540f4 RM |
262 | -nfp | --nfp | --nf) |
263 | # Obsolete; use --without-fp. | |
264 | with_fp=no ;; | |
265 | ||
266 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
267 | | --no-cr | --no-c) | |
268 | no_create=yes ;; | |
269 | ||
270 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
271 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
272 | no_recursion=yes ;; | |
273 | ||
b8dc6a10 RM |
274 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
275 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
276 | | --oldin | --oldi | --old | --ol | --o) | |
277 | ac_prev=oldincludedir ;; | |
278 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
279 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
280 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
281 | oldincludedir="$ac_optarg" ;; | |
282 | ||
28f540f4 RM |
283 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
284 | ac_prev=prefix ;; | |
285 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
286 | prefix="$ac_optarg" ;; | |
287 | ||
288 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
289 | | --program-pre | --program-pr | --program-p) | |
290 | ac_prev=program_prefix ;; | |
291 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
292 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
293 | program_prefix="$ac_optarg" ;; | |
294 | ||
295 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
296 | | --program-suf | --program-su | --program-s) | |
297 | ac_prev=program_suffix ;; | |
298 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
299 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
300 | program_suffix="$ac_optarg" ;; | |
301 | ||
302 | -program-transform-name | --program-transform-name \ | |
303 | | --program-transform-nam | --program-transform-na \ | |
304 | | --program-transform-n | --program-transform- \ | |
305 | | --program-transform | --program-transfor \ | |
306 | | --program-transfo | --program-transf \ | |
307 | | --program-trans | --program-tran \ | |
308 | | --progr-tra | --program-tr | --program-t) | |
309 | ac_prev=program_transform_name ;; | |
310 | -program-transform-name=* | --program-transform-name=* \ | |
311 | | --program-transform-nam=* | --program-transform-na=* \ | |
312 | | --program-transform-n=* | --program-transform-=* \ | |
313 | | --program-transform=* | --program-transfor=* \ | |
314 | | --program-transfo=* | --program-transf=* \ | |
315 | | --program-trans=* | --program-tran=* \ | |
316 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
317 | program_transform_name="$ac_optarg" ;; | |
318 | ||
319 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
320 | | -silent | --silent | --silen | --sile | --sil) | |
321 | silent=yes ;; | |
322 | ||
b8dc6a10 RM |
323 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
324 | ac_prev=sbindir ;; | |
325 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
326 | | --sbi=* | --sb=*) | |
327 | sbindir="$ac_optarg" ;; | |
328 | ||
329 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
330 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
331 | | --sharedst | --shareds | --shared | --share | --shar \ | |
332 | | --sha | --sh) | |
333 | ac_prev=sharedstatedir ;; | |
334 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
335 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
336 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
337 | | --sha=* | --sh=*) | |
338 | sharedstatedir="$ac_optarg" ;; | |
339 | ||
28f540f4 RM |
340 | -site | --site | --sit) |
341 | ac_prev=site ;; | |
342 | -site=* | --site=* | --sit=*) | |
343 | site="$ac_optarg" ;; | |
344 | ||
345 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
346 | ac_prev=srcdir ;; | |
347 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
348 | srcdir="$ac_optarg" ;; | |
349 | ||
b8dc6a10 RM |
350 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
351 | | --syscon | --sysco | --sysc | --sys | --sy) | |
352 | ac_prev=sysconfdir ;; | |
353 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
354 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
355 | sysconfdir="$ac_optarg" ;; | |
356 | ||
28f540f4 RM |
357 | -target | --target | --targe | --targ | --tar | --ta | --t) |
358 | ac_prev=target ;; | |
359 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
360 | target="$ac_optarg" ;; | |
361 | ||
362 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
363 | verbose=yes ;; | |
364 | ||
365 | -version | --version | --versio | --versi | --vers) | |
f9c53d11 | 366 | echo "configure generated by autoconf version 2.12" |
28f540f4 RM |
367 | exit 0 ;; |
368 | ||
369 | -with-* | --with-*) | |
370 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
371 | # Reject names that are not valid shell variable names. | |
372 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
373 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
374 | fi | |
375 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
376 | case "$ac_option" in | |
377 | *=*) ;; | |
378 | *) ac_optarg=yes ;; | |
379 | esac | |
380 | eval "with_${ac_package}='$ac_optarg'" ;; | |
381 | ||
382 | -without-* | --without-*) | |
383 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
384 | # Reject names that are not valid shell variable names. | |
385 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
386 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
387 | fi | |
388 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
389 | eval "with_${ac_package}=no" ;; | |
390 | ||
391 | --x) | |
392 | # Obsolete; use --with-x. | |
393 | with_x=yes ;; | |
394 | ||
395 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
396 | | --x-incl | --x-inc | --x-in | --x-i) | |
397 | ac_prev=x_includes ;; | |
398 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
399 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
400 | x_includes="$ac_optarg" ;; | |
401 | ||
402 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
403 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
404 | ac_prev=x_libraries ;; | |
405 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
406 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
407 | x_libraries="$ac_optarg" ;; | |
408 | ||
409 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
410 | ;; | |
411 | ||
91c7b85d | 412 | *) |
28f540f4 RM |
413 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
414 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
415 | fi | |
416 | if test "x$nonopt" != xNONE; then | |
417 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
418 | fi | |
419 | nonopt="$ac_option" | |
420 | ;; | |
421 | ||
422 | esac | |
423 | done | |
424 | ||
425 | if test -n "$ac_prev"; then | |
426 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
427 | fi | |
428 | ||
429 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
430 | ||
431 | # File descriptor usage: | |
432 | # 0 standard input | |
433 | # 1 file creation | |
434 | # 2 errors and warnings | |
435 | # 3 some systems may open it to /dev/tty | |
436 | # 4 used on the Kubota Titan | |
f55814ff | 437 | # 6 checking for... messages and results |
28f540f4 RM |
438 | # 5 compiler messages saved in config.log |
439 | if test "$silent" = yes; then | |
f55814ff | 440 | exec 6>/dev/null |
28f540f4 | 441 | else |
f55814ff | 442 | exec 6>&1 |
28f540f4 RM |
443 | fi |
444 | exec 5>./config.log | |
445 | ||
446 | echo "\ | |
447 | This file contains any messages produced by compilers while | |
448 | running configure, to aid debugging if configure makes a mistake. | |
449 | " 1>&5 | |
450 | ||
451 | # Strip out --no-create and --no-recursion so they do not pile up. | |
452 | # Also quote any args containing shell metacharacters. | |
453 | ac_configure_args= | |
454 | for ac_arg | |
455 | do | |
456 | case "$ac_arg" in | |
457 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
458 | | --no-cr | --no-c) ;; | |
459 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
460 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
461 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
462 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
463 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
464 | esac | |
465 | done | |
466 | ||
467 | # NLS nuisances. | |
c6645251 UD |
468 | # Only set these to C if already set. These must not be set unconditionally |
469 | # because not all systems understand e.g. LANG=C (notably SCO). | |
470 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
471 | # Non-C LC_CTYPE values break the ctype check. | |
28f540f4 | 472 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
c6645251 UD |
473 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
474 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
475 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
28f540f4 RM |
476 | |
477 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
478 | rm -rf conftest* confdefs.h | |
479 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
480 | echo > confdefs.h | |
481 | ||
482 | # A filename unique to this package, relative to the directory that | |
483 | # configure is in, which we can look for to find out if srcdir is correct. | |
484 | ac_unique_file=features.h | |
485 | ||
486 | # Find the source files, if location was not specified. | |
487 | if test -z "$srcdir"; then | |
488 | ac_srcdir_defaulted=yes | |
489 | # Try the directory containing this script, then its parent. | |
490 | ac_prog=$0 | |
491 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
492 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
493 | srcdir=$ac_confdir | |
494 | if test ! -r $srcdir/$ac_unique_file; then | |
495 | srcdir=.. | |
496 | fi | |
497 | else | |
498 | ac_srcdir_defaulted=no | |
499 | fi | |
500 | if test ! -r $srcdir/$ac_unique_file; then | |
501 | if test "$ac_srcdir_defaulted" = yes; then | |
502 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
503 | else | |
504 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
505 | fi | |
506 | fi | |
507 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
508 | ||
509 | # Prefer explicitly selected file to automatically selected ones. | |
510 | if test -z "$CONFIG_SITE"; then | |
511 | if test "x$prefix" != xNONE; then | |
512 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
513 | else | |
514 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
515 | fi | |
516 | fi | |
517 | for ac_site_file in $CONFIG_SITE; do | |
518 | if test -r "$ac_site_file"; then | |
519 | echo "loading site script $ac_site_file" | |
520 | . "$ac_site_file" | |
521 | fi | |
522 | done | |
523 | ||
524 | if test -r "$cache_file"; then | |
525 | echo "loading cache $cache_file" | |
526 | . $cache_file | |
527 | else | |
528 | echo "creating cache $cache_file" | |
529 | > $cache_file | |
530 | fi | |
531 | ||
532 | ac_ext=c | |
533 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
c6de6968 RM |
534 | ac_cpp='$CPP $CPPFLAGS' |
535 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
536 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
c6645251 | 537 | cross_compiling=$ac_cv_prog_cc_cross |
28f540f4 RM |
538 | |
539 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
540 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
541 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
542 | ac_n= ac_c=' | |
543 | ' ac_t=' ' | |
544 | else | |
545 | ac_n=-n ac_c= ac_t= | |
546 | fi | |
547 | else | |
548 | ac_n= ac_c='\c' ac_t= | |
549 | fi | |
550 | ||
551 | if test -r /vmunix; then | |
552 | kernel_id=`strings /vmunix | grep UNIX` | |
553 | elif test -r /dynix; then | |
554 | kernel_id=`strings /dynix | grep DYNIX` | |
555 | else | |
556 | kernel_id= | |
557 | fi | |
558 | ||
559 | ||
560 | ||
561 | ||
562 | # This will get text that should go into config.make. | |
563 | config_vars= | |
564 | ||
565 | # Check for a --with-gmp argument and set gmp-srcdir in config.make. | |
566 | # Check whether --with-gmp or --without-gmp was given. | |
b8dc6a10 RM |
567 | if test "${with_gmp+set}" = set; then |
568 | withval="$with_gmp" | |
28f540f4 RM |
569 | case "$with_gmp" in |
570 | yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;; | |
571 | ''|no) ;; | |
572 | *) config_vars="$config_vars | |
573 | gmp-srcdir = $withval" ;; | |
574 | esac | |
575 | ||
576 | fi | |
577 | ||
75914335 RM |
578 | # Check for a --with-gettext argument and set gettext-srcdir in config.make. |
579 | # Check whether --with-gettext or --without-gettext was given. | |
580 | if test "${with_gettext+set}" = set; then | |
581 | withval="$with_gettext" | |
582 | case "$with_gettext" in | |
583 | yes) | |
584 | { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;; | |
585 | ''|no) ;; | |
586 | *) | |
587 | config_vars="$config_vars | |
588 | gettext-srcdir = $withval" ;; | |
589 | esac | |
590 | ||
591 | fi | |
592 | ||
28f540f4 | 593 | |
e215c478 | 594 | # Check whether --with-fp or --without-fp was given. |
b8dc6a10 RM |
595 | if test "${with_fp+set}" = set; then |
596 | withval="$with_fp" | |
e215c478 RM |
597 | with_fp=$withval |
598 | else | |
599 | with_fp=yes | |
600 | fi | |
601 | ||
28f540f4 | 602 | # Check whether --with-gnu-binutils or --without-gnu-binutils was given. |
b8dc6a10 RM |
603 | if test "${with_gnu_binutils+set}" = set; then |
604 | withval="$with_gnu_binutils" | |
e215c478 | 605 | gnu_binutils=$withval |
28f540f4 RM |
606 | else |
607 | gnu_binutils=no | |
608 | fi | |
609 | ||
610 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
b8dc6a10 RM |
611 | if test "${with_gnu_ld+set}" = set; then |
612 | withval="$with_gnu_ld" | |
e215c478 | 613 | gnu_ld=$withval |
28f540f4 RM |
614 | else |
615 | gnu_ld=no | |
616 | fi | |
617 | ||
618 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
b8dc6a10 RM |
619 | if test "${with_gnu_as+set}" = set; then |
620 | withval="$with_gnu_as" | |
e215c478 | 621 | gnu_as=$withval |
28f540f4 RM |
622 | else |
623 | gnu_as=no | |
624 | fi | |
625 | ||
626 | test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes | |
627 | # Check whether --with-elf or --without-elf was given. | |
b8dc6a10 RM |
628 | if test "${with_elf+set}" = set; then |
629 | withval="$with_elf" | |
e215c478 | 630 | elf=$withval |
28f540f4 RM |
631 | else |
632 | elf=no | |
633 | fi | |
634 | ||
28f540f4 | 635 | |
d17e960c RM |
636 | # Check whether --enable-libio or --disable-libio was given. |
637 | if test "${enable_libio+set}" = set; then | |
638 | enableval="$enable_libio" | |
1ed0083c RM |
639 | if test $enableval = yes; then |
640 | stdio=libio | |
641 | else | |
642 | stdio=stdio | |
643 | fi | |
d17e960c | 644 | else |
91c7b85d | 645 | stdio=default |
d17e960c RM |
646 | fi |
647 | ||
648 | ||
f65fd747 UD |
649 | # Check whether --enable-new-malloc or --disable-new-malloc was given. |
650 | if test "${enable_new_malloc+set}" = set; then | |
651 | enableval="$enable_new_malloc" | |
652 | if test $enableval = yes; then | |
653 | malloc=new-malloc | |
654 | else | |
655 | malloc=malloc | |
656 | fi | |
657 | else | |
658 | malloc=default | |
659 | fi | |
660 | ||
661 | ||
8844bedd TBB |
662 | # Check whether --enable-sanity-checks or --disable-sanity-checks was given. |
663 | if test "${enable_sanity_checks+set}" = set; then | |
664 | enableval="$enable_sanity_checks" | |
665 | enable_sanity=$enableval | |
666 | else | |
667 | enable_sanity=yes | |
668 | fi | |
669 | ||
670 | ||
424f8c09 | 671 | # Check whether --enable-shared or --disable-shared was given. |
b8dc6a10 RM |
672 | if test "${enable_shared+set}" = set; then |
673 | enableval="$enable_shared" | |
424f8c09 RM |
674 | shared=$enableval |
675 | else | |
676 | shared=default | |
677 | fi | |
678 | ||
679 | # Check whether --enable-profile or --disable-profile was given. | |
b8dc6a10 RM |
680 | if test "${enable_profile+set}" = set; then |
681 | enableval="$enable_profile" | |
424f8c09 RM |
682 | profile=$enableval |
683 | else | |
684 | profile=yes | |
685 | fi | |
686 | ||
687 | # Check whether --enable-omitfp or --disable-omitfp was given. | |
b8dc6a10 RM |
688 | if test "${enable_omitfp+set}" = set; then |
689 | enableval="$enable_omitfp" | |
424f8c09 RM |
690 | omitfp=$enableval |
691 | else | |
692 | omitfp=no | |
693 | fi | |
694 | ||
695 | ||
6b3a2224 RM |
696 | # Check whether --enable-add-ons or --disable-add-ons was given. |
697 | if test "${enable_add_ons+set}" = set; then | |
698 | enableval="$enable_add_ons" | |
ba3f9540 | 699 | add_ons=`echo "$enableval" | sed 's/,/ /g'` |
6b3a2224 | 700 | else |
ba3f9540 | 701 | add_ons= |
6b3a2224 RM |
702 | fi |
703 | ||
28f540f4 RM |
704 | ac_aux_dir= |
705 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
706 | if test -f $ac_dir/install-sh; then | |
707 | ac_aux_dir=$ac_dir | |
708 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
709 | break | |
710 | elif test -f $ac_dir/install.sh; then | |
711 | ac_aux_dir=$ac_dir | |
712 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
713 | break | |
714 | fi | |
715 | done | |
716 | if test -z "$ac_aux_dir"; then | |
717 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
718 | fi | |
719 | ac_config_guess=$ac_aux_dir/config.guess | |
720 | ac_config_sub=$ac_aux_dir/config.sub | |
721 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
722 | ||
6b3a2224 RM |
723 | subdirs="$add_ons" |
724 | ||
57ba7bb4 | 725 | add_ons_pfx= |
da74e902 | 726 | if test x"$add_ons" != x; then |
57ba7bb4 UD |
727 | for f in $add_ons; do |
728 | add_ons_pfx="$add_ons_pfx $f/" | |
729 | done | |
730 | fi | |
6b3a2224 | 731 | |
28f540f4 RM |
732 | |
733 | # Make sure we can run config.sub. | |
734 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
735 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
736 | fi | |
737 | ||
f55814ff | 738 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
f65fd747 | 739 | echo "configure:740: checking host system type" >&5 |
28f540f4 RM |
740 | |
741 | host_alias=$host | |
742 | case "$host_alias" in | |
743 | NONE) | |
744 | case $nonopt in | |
745 | NONE) | |
746 | if host_alias=`$ac_config_guess`; then : | |
747 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
748 | fi ;; | |
749 | *) host_alias=$nonopt ;; | |
750 | esac ;; | |
751 | esac | |
752 | ||
753 | host=`$ac_config_sub $host_alias` | |
ec4b0518 UD |
754 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
755 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
756 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
f55814ff | 757 | echo "$ac_t""$host" 1>&6 |
28f540f4 | 758 | |
8a523922 UD |
759 | |
760 | # The way shlib-versions is used to generate soversions.mk uses a | |
761 | # fairly simplistic model for name recognition that can't distinguish | |
762 | # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os | |
763 | # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can | |
764 | # tell. This doesn't get used much beyond that, so it's fairly safe. | |
765 | case "$host_os" in | |
766 | linux*) | |
767 | ;; | |
768 | gnu*) | |
769 | host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'` | |
770 | ;; | |
771 | esac | |
772 | ||
28f540f4 RM |
773 | # We keep the original values in `$config_*' and never modify them, so we |
774 | # can write them unchanged into config.make. Everything else uses | |
775 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
776 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
777 | ||
2b83a2a4 RM |
778 | # Some configurations imply other options. |
779 | case "$host_os" in | |
780 | gnu* | linux* | bsd4.4* | netbsd* | freebsd*) | |
781 | # These systems always use GNU tools. | |
c8cf0b14 | 782 | gnu_ld=yes gnu_as=yes ;; |
2b83a2a4 RM |
783 | esac |
784 | case "$host_os" in | |
d7126ae6 RM |
785 | linux*ecoff*) |
786 | ;; | |
2b83a2a4 | 787 | gnu* | linux* | sysv4* | solaris2*) |
d7126ae6 RM |
788 | # These systems (almost) always use the ELF format. |
789 | elf=yes | |
9004bc20 | 790 | ;; |
2b83a2a4 RM |
791 | esac |
792 | ||
f0523145 | 793 | machine=$config_machine |
28f540f4 RM |
794 | vendor=$config_vendor |
795 | os=$config_os | |
796 | ||
797 | # Expand the configuration machine name into a subdirectory by architecture | |
798 | # type and particular chip. | |
799 | case "$machine" in | |
f0523145 RM |
800 | a29k | am29000) base_machine=a29k machine=a29k ;; |
801 | alpha*) base_machine=alpha machine=alpha/$machine ;; | |
802 | hppa*) base_machine=hppa machine=hppa/$machine ;; | |
a5113b14 | 803 | i[3456]86) base_machine=i386 machine=i386/$machine ;; |
f0523145 RM |
804 | m680?0) base_machine=m68k machine=m68k/$machine ;; |
805 | m68k) base_machine=m68k machine=m68k/m68020 ;; | |
806 | m88???) base_machine=m88k machine=m88k/$machine ;; | |
807 | m88k) base_machine=m88k machine=m88k/m88100 ;; | |
808 | mips*) base_machine=mips machine=mips/$machine ;; | |
809 | mips64*) base_machine=mips64 machine=mips/mips64/$machine ;; | |
810 | sparc[6789]) base_machine=sparc machine=sparc/$machine ;; | |
811 | supersparc) base_machine=sparc machine=sparc/sparc8 ;; | |
28f540f4 RM |
812 | esac |
813 | ||
f0523145 RM |
814 | |
815 | # Compute the list of sysdep directories for this configuration. | |
f9496a7b | 816 | # This can take a while to compute. |
f0523145 | 817 | sysdep_dir=$srcdir/sysdeps |
f55814ff | 818 | echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6 |
f65fd747 | 819 | echo "configure:820: checking sysdep dirs" >&5 |
f9496a7b | 820 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. |
28f540f4 RM |
821 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" |
822 | ||
823 | case "$os" in | |
824 | gnu*) | |
825 | base_os=mach/hurd ;; | |
e215c478 | 826 | netbsd* | 386bsd* | freebsd* | bsdi*) |
28f540f4 | 827 | base_os=unix/bsd/bsd4.4 ;; |
222c4e71 | 828 | osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*) |
28f540f4 | 829 | base_os=unix/bsd ;; |
287fbbe7 | 830 | sysv* | isc* | esix* | sco* | minix* | irix4* | linux*) |
28f540f4 | 831 | base_os=unix/sysv ;; |
287fbbe7 | 832 | solaris[2-9]*) |
28f540f4 RM |
833 | base_os=unix/sysv/sysv4 ;; |
834 | none) | |
835 | base_os=standalone ;; | |
836 | *) | |
837 | base_os='' ;; | |
838 | esac | |
839 | ||
840 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. | |
841 | tail=$os | |
842 | ostry=$os | |
843 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
844 | ostry="$ostry /$o" | |
845 | tail=$o | |
75914335 | 846 | done |
28f540f4 RM |
847 | o=`echo $tail | sed 's/[0-9]*$//'` |
848 | if test $o != $tail; then | |
849 | ostry="$ostry /$o" | |
850 | fi | |
ec4b0518 UD |
851 | # For linux-gnu, try linux-gnu, then linux. |
852 | o=`echo $tail | sed 's/-.*$//'` | |
853 | if test $o != $tail; then | |
854 | ostry="$ostry /$o" | |
855 | fi | |
28f540f4 RM |
856 | |
857 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. | |
858 | base= | |
859 | tail=$base_os | |
860 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
861 | set $b | |
862 | base="$base /$1" | |
863 | tail="$2" | |
864 | done | |
865 | ||
866 | # For sparc/sparc9, try sparc/sparc9 and then sparc. | |
867 | mach= | |
868 | tail=$machine | |
869 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
870 | set $m | |
273d56ce RM |
871 | # Prepend the machine's FPU directory unless --without-fp. |
872 | if test "$with_fp" = yes; then | |
873 | mach="$mach /$1/fpu" | |
b96bdcd7 | 874 | fi |
28f540f4 RM |
875 | mach="$mach /$1" |
876 | tail="$2" | |
877 | done | |
878 | ||
879 | ||
880 | # Find what sysdep directories exist. | |
881 | sysnames= | |
57ba7bb4 UD |
882 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
883 | for d in $add_ons_pfx ''; do | |
884 | for b in $base ''; do | |
885 | for m0 in $mach ''; do | |
886 | for v in /$vendor ''; do | |
887 | for o in /$ostry ''; do | |
888 | for m in $mach ''; do | |
889 | if test "$m0$b$v$o$m"; then | |
890 | try="${d}sysdeps$m0$b$v$o$m" | |
891 | test -n "$enable_debug_configure" && | |
892 | echo "$0 DEBUG: try $try" >&2 | |
893 | case $try in | |
894 | /*) dest=$try ;; | |
895 | *) dest=$srcdir/$try ;; | |
896 | esac | |
897 | if test -d $dest; then | |
898 | sysnames="$sysnames $try" | |
899 | { test -n "$o" || test -n "$b"; } && os_used=t | |
900 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
901 | fi | |
902 | fi | |
903 | done | |
28f540f4 RM |
904 | done |
905 | done | |
906 | done | |
907 | done | |
908 | done | |
57ba7bb4 | 909 | IFS="$ac_save_ifs" |
28f540f4 RM |
910 | |
911 | if test -z "$os_used" && test "$os" != none; then | |
912 | { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; } | |
913 | fi | |
914 | if test -z "$machine_used" && test "$machine" != none; then | |
915 | { echo "configure: error: The $machine is not supported." 1>&2; exit 1; } | |
916 | fi | |
917 | ||
918 | # We have now validated the configuration. | |
919 | ||
e215c478 | 920 | |
273d56ce RM |
921 | # If using ELF, look for an `elf' subdirectory of each machine directory. |
922 | # We prepend these rather than inserting them whereever the machine appears | |
923 | # because things specified by the machine's ELF ABI should override | |
924 | # OS-specific things, and should always be the same for any OS on the | |
925 | # machine (otherwise what's the point of an ABI?). | |
926 | if test "$elf" = yes; then | |
927 | elf_dirs= | |
57ba7bb4 UD |
928 | for d in $add_ons_pfx ''; do |
929 | case $d in | |
930 | /*) xsrcdir= ;; | |
931 | *) xsrcdir=$srcdir/ ;; | |
932 | esac | |
933 | for m in $mach; do | |
934 | if test -d $xsrcdir${d}sysdeps$m/elf; then | |
c2bb8cab | 935 | elf_dirs="$elf_dirs ${d}sysdeps$m/elf" |
57ba7bb4 UD |
936 | fi |
937 | done | |
28f540f4 | 938 | done |
57ba7bb4 | 939 | sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames" |
28f540f4 RM |
940 | fi |
941 | ||
e215c478 | 942 | |
28f540f4 RM |
943 | # Expand the list of system names into a full list of directories |
944 | # from each element's parent name and Implies file (if present). | |
945 | set $sysnames | |
959c3674 | 946 | names= |
28f540f4 RM |
947 | while test $# -gt 0; do |
948 | name=$1 | |
949 | shift | |
950 | ||
959c3674 | 951 | case " $names " in *" $name "*) |
f9496a7b RM |
952 | # Already in the list. |
953 | continue | |
959c3674 | 954 | esac |
f9496a7b RM |
955 | |
956 | # Report each name as we discover it, so there is no long pause in output. | |
957 | echo $ac_n "$name $ac_c" >&6 | |
958 | ||
57ba7bb4 UD |
959 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` |
960 | ||
961 | case $name in | |
962 | /*) xsrcdir= ;; | |
963 | *) xsrcdir=$srcdir/ ;; | |
964 | esac | |
965 | test -n "$enable_debug_configure" && | |
966 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
967 | ||
968 | if test -f $xsrcdir$name/Implies; then | |
28f540f4 | 969 | # Collect more names from the `Implies' file (removing comments). |
57ba7bb4 UD |
970 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`" |
971 | implied= | |
972 | for x in $implied_candidate; do | |
973 | if test -d $xsrcdir$name_base/$x; then | |
974 | implied="$implied $name_base/$x"; | |
975 | else | |
976 | echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2 | |
977 | fi | |
28f540f4 RM |
978 | done |
979 | else | |
980 | implied= | |
981 | fi | |
982 | ||
983 | # Add NAME to the list of names. | |
984 | names="$names $name" | |
985 | ||
986 | # Find the parent of NAME, using the empty string if it has none. | |
57ba7bb4 | 987 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" |
28f540f4 RM |
988 | |
989 | # Add the names implied by NAME, and NAME's parent (if it has one), to | |
990 | # the list of names to be processed (the argument list). We prepend the | |
991 | # implied names to the list and append the parent. We want implied | |
992 | # directories to come before further directories inferred from the | |
993 | # configuration components; this ensures that for sysv4, unix/common | |
994 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
995 | # after sysv4). | |
996 | sysnames="`echo $implied $* $parent`" | |
997 | test -n "$sysnames" && set $sysnames | |
998 | done | |
999 | ||
1000 | # Add the default directories. | |
57ba7bb4 | 1001 | sysnames="$names sysdeps/generic sysdeps/stub" |
f9496a7b RM |
1002 | |
1003 | # The other names were emitted during the scan. | |
57ba7bb4 | 1004 | echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6 |
28f540f4 | 1005 | |
28f540f4 | 1006 | |
f9496a7b | 1007 | ### Locate tools. |
28f540f4 | 1008 | |
28f540f4 RM |
1009 | # Find a good install program. We prefer a C program (faster), |
1010 | # so one script is as good as another. But avoid the broken or | |
1011 | # incompatible versions: | |
1012 | # SysV /etc/install, /usr/sbin/install | |
1013 | # SunOS /usr/etc/install | |
1014 | # IRIX /sbin/install | |
1015 | # AIX /bin/install | |
1016 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1017 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1018 | # ./install, which can be erroneously created by make from ./install.sh. | |
f55814ff | 1019 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
f65fd747 | 1020 | echo "configure:1021: checking for a BSD compatible install" >&5 |
28f540f4 | 1021 | if test -z "$INSTALL"; then |
424f8c09 | 1022 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
f55814ff | 1023 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 | 1024 | else |
c6645251 | 1025 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
28f540f4 RM |
1026 | for ac_dir in $PATH; do |
1027 | # Account for people who put trailing slashes in PATH elements. | |
1028 | case "$ac_dir/" in | |
1029 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1030 | *) | |
1031 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1032 | for ac_prog in ginstall installbsd scoinst install; do | |
1033 | if test -f $ac_dir/$ac_prog; then | |
1034 | if test $ac_prog = install && | |
1035 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1036 | # AIX install. It has an incompatible calling convention. | |
1037 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1038 | : | |
1039 | else | |
1040 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1041 | break 2 | |
1042 | fi | |
1043 | fi | |
1044 | done | |
1045 | ;; | |
1046 | esac | |
1047 | done | |
c6645251 | 1048 | IFS="$ac_save_IFS" |
b8dc6a10 | 1049 | |
28f540f4 | 1050 | fi |
b8dc6a10 RM |
1051 | if test "${ac_cv_path_install+set}" = set; then |
1052 | INSTALL="$ac_cv_path_install" | |
1053 | else | |
1054 | # As a last resort, use the slow shell script. We don't cache a | |
1055 | # path for INSTALL within a source directory, because that will | |
1056 | # break other packages using the cache if that directory is | |
1057 | # removed, or if the path is relative. | |
1058 | INSTALL="$ac_install_sh" | |
1059 | fi | |
28f540f4 | 1060 | fi |
f55814ff | 1061 | echo "$ac_t""$INSTALL" 1>&6 |
28f540f4 RM |
1062 | |
1063 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1064 | # It thinks the first close brace ends the variable substitution. | |
1065 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1066 | ||
1067 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1068 | ||
26761c28 | 1069 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then |
28f540f4 | 1070 | # The makefiles need to use a different form to find it in $srcdir. |
8a523922 | 1071 | INSTALL='$(..)./install-sh -c' |
28f540f4 | 1072 | fi |
f55814ff | 1073 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
f65fd747 | 1074 | echo "configure:1075: checking whether ln -s works" >&5 |
ad41463d | 1075 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
f55814ff | 1076 | echo $ac_n "(cached) $ac_c" 1>&6 |
ad41463d RM |
1077 | else |
1078 | rm -f conftestdata | |
1079 | if ln -s X conftestdata 2>/dev/null | |
1080 | then | |
1081 | rm -f conftestdata | |
1082 | ac_cv_prog_LN_S="ln -s" | |
1083 | else | |
1084 | ac_cv_prog_LN_S=ln | |
1085 | fi | |
1086 | fi | |
1087 | LN_S="$ac_cv_prog_LN_S" | |
1088 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
f55814ff | 1089 | echo "$ac_t""yes" 1>&6 |
ad41463d | 1090 | else |
f55814ff | 1091 | echo "$ac_t""no" 1>&6 |
ad41463d RM |
1092 | fi |
1093 | ||
ce4d8b66 RM |
1094 | for ac_prog in msgfmt gmsgfmt |
1095 | do | |
1096 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1097 | set dummy $ac_prog; ac_word=$2 | |
f55814ff | 1098 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f65fd747 | 1099 | echo "configure:1100: checking for $ac_word" >&5 |
ce4d8b66 | 1100 | if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then |
f55814ff | 1101 | echo $ac_n "(cached) $ac_c" 1>&6 |
ce4d8b66 RM |
1102 | else |
1103 | if test -n "$MSGFMT"; then | |
1104 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
1105 | else | |
1106 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1107 | for ac_dir in $PATH; do | |
1108 | test -z "$ac_dir" && ac_dir=. | |
1109 | if test -f $ac_dir/$ac_word; then | |
1110 | ac_cv_prog_MSGFMT="$ac_prog" | |
1111 | break | |
1112 | fi | |
1113 | done | |
1114 | IFS="$ac_save_ifs" | |
1115 | fi | |
1116 | fi | |
1117 | MSGFMT="$ac_cv_prog_MSGFMT" | |
1118 | if test -n "$MSGFMT"; then | |
f55814ff | 1119 | echo "$ac_t""$MSGFMT" 1>&6 |
ce4d8b66 | 1120 | else |
f55814ff | 1121 | echo "$ac_t""no" 1>&6 |
ce4d8b66 RM |
1122 | fi |
1123 | ||
1124 | test -n "$MSGFMT" && break | |
1125 | done | |
f0523145 | 1126 | test -n "$MSGFMT" || MSGFMT=":" |
ce4d8b66 | 1127 | |
28f540f4 | 1128 | |
f55814ff | 1129 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
f65fd747 | 1130 | echo "configure:1131: checking build system type" >&5 |
28f540f4 RM |
1131 | |
1132 | build_alias=$build | |
1133 | case "$build_alias" in | |
1134 | NONE) | |
1135 | case $nonopt in | |
1136 | NONE) build_alias=$host_alias ;; | |
1137 | *) build_alias=$nonopt ;; | |
1138 | esac ;; | |
1139 | esac | |
1140 | ||
1141 | build=`$ac_config_sub $build_alias` | |
ec4b0518 UD |
1142 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1143 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1144 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
f55814ff | 1145 | echo "$ac_t""$build" 1>&6 |
28f540f4 RM |
1146 | |
1147 | if test $host != $build; then | |
1148 | ac_tool_prefix=${host_alias}- | |
1149 | else | |
1150 | ac_tool_prefix= | |
1151 | fi | |
1152 | ||
1153 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1154 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
f55814ff | 1155 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f65fd747 | 1156 | echo "configure:1157: checking for $ac_word" >&5 |
424f8c09 | 1157 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
f55814ff | 1158 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1159 | else |
1160 | if test -n "$CC"; then | |
1161 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1162 | else | |
1163 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3bbceb12 | 1164 | for ac_dir in $PATH; do |
28f540f4 RM |
1165 | test -z "$ac_dir" && ac_dir=. |
1166 | if test -f $ac_dir/$ac_word; then | |
1167 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1168 | break | |
1169 | fi | |
1170 | done | |
1171 | IFS="$ac_save_ifs" | |
1172 | test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc" | |
1173 | fi | |
1174 | fi | |
1175 | CC="$ac_cv_prog_CC" | |
1176 | if test -n "$CC"; then | |
f55814ff | 1177 | echo "$ac_t""$CC" 1>&6 |
28f540f4 | 1178 | else |
f55814ff | 1179 | echo "$ac_t""no" 1>&6 |
28f540f4 RM |
1180 | fi |
1181 | ||
1182 | ||
1183 | ||
7f811679 | 1184 | if test $host != $build; then |
40a4b79f RM |
1185 | # Extract the first word of "gcc cc", so it can be a program name with args. |
1186 | set dummy gcc cc; ac_word=$2 | |
1187 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f65fd747 | 1188 | echo "configure:1189: checking for $ac_word" >&5 |
40a4b79f RM |
1189 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
1190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1191 | else | |
1192 | if test -n "$BUILD_CC"; then | |
1193 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
1194 | else | |
1195 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1196 | for ac_dir in $PATH; do | |
1197 | test -z "$ac_dir" && ac_dir=. | |
1198 | if test -f $ac_dir/$ac_word; then | |
1199 | ac_cv_prog_BUILD_CC="" | |
1200 | break | |
1201 | fi | |
1202 | done | |
1203 | IFS="$ac_save_ifs" | |
1204 | fi | |
1205 | fi | |
1206 | BUILD_CC="$ac_cv_prog_BUILD_CC" | |
1207 | if test -n "$BUILD_CC"; then | |
1208 | echo "$ac_t""$BUILD_CC" 1>&6 | |
1209 | else | |
1210 | echo "$ac_t""no" 1>&6 | |
1211 | fi | |
1212 | ||
1213 | fi | |
f55814ff | 1214 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
f65fd747 | 1215 | echo "configure:1216: checking how to run the C preprocessor" >&5 |
8942a07a RM |
1216 | # On Suns, sometimes $CPP names a directory. |
1217 | if test -n "$CPP" && test -d "$CPP"; then | |
1218 | CPP= | |
1219 | fi | |
1220 | if test -z "$CPP"; then | |
1221 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
f55814ff | 1222 | echo $ac_n "(cached) $ac_c" 1>&6 |
8942a07a RM |
1223 | else |
1224 | # This must be in double quotes, not single quotes, because CPP may get | |
1225 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1226 | CPP="${CC-cc} -E" | |
1227 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1228 | # not just through cpp. | |
1229 | cat > conftest.$ac_ext <<EOF | |
f65fd747 | 1230 | #line 1231 "configure" |
8942a07a RM |
1231 | #include "confdefs.h" |
1232 | #include <assert.h> | |
1233 | Syntax Error | |
1234 | EOF | |
1235 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f65fd747 | 1236 | { (eval echo configure:1237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8942a07a RM |
1237 | ac_err=`grep -v '^ *+' conftest.out` |
1238 | if test -z "$ac_err"; then | |
1239 | : | |
1240 | else | |
1241 | echo "$ac_err" >&5 | |
26761c28 UD |
1242 | echo "configure: failed program was:" >&5 |
1243 | cat conftest.$ac_ext >&5 | |
8942a07a RM |
1244 | rm -rf conftest* |
1245 | CPP="${CC-cc} -E -traditional-cpp" | |
1246 | cat > conftest.$ac_ext <<EOF | |
f65fd747 | 1247 | #line 1248 "configure" |
8942a07a RM |
1248 | #include "confdefs.h" |
1249 | #include <assert.h> | |
1250 | Syntax Error | |
1251 | EOF | |
1252 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f65fd747 | 1253 | { (eval echo configure:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8942a07a RM |
1254 | ac_err=`grep -v '^ *+' conftest.out` |
1255 | if test -z "$ac_err"; then | |
1256 | : | |
1257 | else | |
1258 | echo "$ac_err" >&5 | |
26761c28 UD |
1259 | echo "configure: failed program was:" >&5 |
1260 | cat conftest.$ac_ext >&5 | |
8942a07a RM |
1261 | rm -rf conftest* |
1262 | CPP=/lib/cpp | |
1263 | fi | |
1264 | rm -f conftest* | |
1265 | fi | |
1266 | rm -f conftest* | |
1267 | ac_cv_prog_CPP="$CPP" | |
1268 | fi | |
1269 | CPP="$ac_cv_prog_CPP" | |
1270 | else | |
1271 | ac_cv_prog_CPP="$CPP" | |
1272 | fi | |
f55814ff | 1273 | echo "$ac_t""$CPP" 1>&6 |
8942a07a | 1274 | |
28f540f4 RM |
1275 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
1276 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
f55814ff | 1277 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f65fd747 | 1278 | echo "configure:1279: checking for $ac_word" >&5 |
424f8c09 | 1279 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
f55814ff | 1280 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1281 | else |
1282 | if test -n "$AR"; then | |
1283 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1284 | else | |
1285 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3bbceb12 | 1286 | for ac_dir in $PATH; do |
28f540f4 RM |
1287 | test -z "$ac_dir" && ac_dir=. |
1288 | if test -f $ac_dir/$ac_word; then | |
1289 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
1290 | break | |
1291 | fi | |
1292 | done | |
1293 | IFS="$ac_save_ifs" | |
1294 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1295 | fi | |
1296 | fi | |
1297 | AR="$ac_cv_prog_AR" | |
1298 | if test -n "$AR"; then | |
f55814ff | 1299 | echo "$ac_t""$AR" 1>&6 |
28f540f4 | 1300 | else |
f55814ff | 1301 | echo "$ac_t""no" 1>&6 |
28f540f4 RM |
1302 | fi |
1303 | ||
1304 | ||
1305 | ||
1306 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1307 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
f55814ff | 1308 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f65fd747 | 1309 | echo "configure:1310: checking for $ac_word" >&5 |
424f8c09 | 1310 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
f55814ff | 1311 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1312 | else |
1313 | if test -n "$RANLIB"; then | |
1314 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1315 | else | |
1316 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1317 | for ac_dir in $PATH; do | |
1318 | test -z "$ac_dir" && ac_dir=. | |
1319 | if test -f $ac_dir/$ac_word; then | |
1320 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1321 | break | |
1322 | fi | |
1323 | done | |
1324 | IFS="$ac_save_ifs" | |
1325 | fi | |
1326 | fi | |
1327 | RANLIB="$ac_cv_prog_RANLIB" | |
1328 | if test -n "$RANLIB"; then | |
f55814ff | 1329 | echo "$ac_t""$RANLIB" 1>&6 |
28f540f4 | 1330 | else |
f55814ff | 1331 | echo "$ac_t""no" 1>&6 |
28f540f4 RM |
1332 | fi |
1333 | ||
1334 | ||
1335 | if test -z "$ac_cv_prog_RANLIB"; then | |
1336 | if test -n "$ac_tool_prefix"; then | |
1337 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1338 | set dummy ranlib; ac_word=$2 | |
f55814ff | 1339 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f65fd747 | 1340 | echo "configure:1341: checking for $ac_word" >&5 |
424f8c09 | 1341 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
f55814ff | 1342 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1343 | else |
1344 | if test -n "$RANLIB"; then | |
1345 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1346 | else | |
1347 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3bbceb12 | 1348 | for ac_dir in $PATH; do |
28f540f4 RM |
1349 | test -z "$ac_dir" && ac_dir=. |
1350 | if test -f $ac_dir/$ac_word; then | |
1351 | ac_cv_prog_RANLIB="ranlib" | |
1352 | break | |
1353 | fi | |
1354 | done | |
1355 | IFS="$ac_save_ifs" | |
1356 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1357 | fi | |
1358 | fi | |
1359 | RANLIB="$ac_cv_prog_RANLIB" | |
1360 | if test -n "$RANLIB"; then | |
f55814ff | 1361 | echo "$ac_t""$RANLIB" 1>&6 |
28f540f4 | 1362 | else |
f55814ff | 1363 | echo "$ac_t""no" 1>&6 |
28f540f4 RM |
1364 | fi |
1365 | ||
1366 | else | |
1367 | RANLIB=":" | |
1368 | fi | |
1369 | fi | |
1370 | ||
28f540f4 | 1371 | |
84384f5b UD |
1372 | # Extract the first word of "bash", so it can be a program name with args. |
1373 | set dummy bash; ac_word=$2 | |
1374 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f65fd747 | 1375 | echo "configure:1376: checking for $ac_word" >&5 |
84384f5b UD |
1376 | if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then |
1377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1378 | else | |
1379 | case "$BASH" in | |
1380 | /*) | |
1381 | ac_cv_path_BASH="$BASH" # Let the user override the test with a path. | |
1382 | ;; | |
1383 | *) | |
1384 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1385 | for ac_dir in $PATH; do | |
1386 | test -z "$ac_dir" && ac_dir=. | |
1387 | if test -f $ac_dir/$ac_word; then | |
1388 | ac_cv_path_BASH="$ac_dir/$ac_word" | |
1389 | break | |
1390 | fi | |
1391 | done | |
1392 | IFS="$ac_save_ifs" | |
1393 | test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no" | |
1394 | ;; | |
1395 | esac | |
1396 | fi | |
1397 | BASH="$ac_cv_path_BASH" | |
1398 | if test -n "$BASH"; then | |
1399 | echo "$ac_t""$BASH" 1>&6 | |
1400 | else | |
1401 | echo "$ac_t""no" 1>&6 | |
1402 | fi | |
1403 | ||
a18f587d UD |
1404 | if test "$BASH" != no && |
1405 | $BASH -c 'test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then | |
84384f5b UD |
1406 | libc_cv_have_bash2=yes |
1407 | else | |
1408 | libc_cv_have_bash2=no | |
1409 | fi | |
1410 | ||
1411 | ||
5290baf0 UD |
1412 | if test "$BASH" = no; then |
1413 | # Extract the first word of "ksh", so it can be a program name with args. | |
1414 | set dummy ksh; ac_word=$2 | |
1415 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1416 | echo "configure:1417: checking for $ac_word" >&5 | |
1417 | if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then | |
1418 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1419 | else | |
1420 | case "$KSH" in | |
1421 | /*) | |
1422 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. | |
1423 | ;; | |
1424 | *) | |
1425 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1426 | for ac_dir in $PATH; do | |
1427 | test -z "$ac_dir" && ac_dir=. | |
1428 | if test -f $ac_dir/$ac_word; then | |
1429 | ac_cv_path_KSH="$ac_dir/$ac_word" | |
1430 | break | |
1431 | fi | |
1432 | done | |
1433 | IFS="$ac_save_ifs" | |
1434 | test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no" | |
1435 | ;; | |
1436 | esac | |
1437 | fi | |
1438 | KSH="$ac_cv_path_KSH" | |
1439 | if test -n "$KSH"; then | |
1440 | echo "$ac_t""$KSH" 1>&6 | |
1441 | else | |
1442 | echo "$ac_t""no" 1>&6 | |
1443 | fi | |
1444 | ||
1445 | if test "$KSH" = no; then | |
1446 | libc_cv_have_ksh=no | |
1447 | else | |
1448 | libc_cv_have_ksh=yes | |
1449 | fi | |
1450 | else | |
1451 | KSH="$BASH" | |
1452 | ||
1453 | libc_cv_have_ksh=yes | |
1454 | fi | |
1455 | ||
1456 | ||
f55814ff | 1457 | echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6 |
5290baf0 | 1458 | echo "configure:1459: checking for signed size_t type" >&5 |
424f8c09 | 1459 | if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then |
f55814ff | 1460 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1461 | else |
1462 | echo '#include <stddef.h> | |
1463 | FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c | |
1464 | if eval "$ac_cpp conftest.c 2>/dev/null" \ | |
1465 | | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then | |
1466 | libc_cv_signed_size_t=no | |
1467 | else | |
1468 | libc_cv_signed_size_t=yes | |
1469 | fi | |
1470 | rm -f conftest* | |
1471 | fi | |
1472 | ||
f55814ff | 1473 | echo "$ac_t""$libc_cv_signed_size_t" 1>&6 |
28f540f4 RM |
1474 | if test $libc_cv_signed_size_t = yes; then |
1475 | cat >> confdefs.h <<\EOF | |
1476 | #undef __SIZE_TYPE__ | |
1477 | #define __SIZE_TYPE__ unsigned | |
1478 | EOF | |
1479 | fi | |
1480 | ||
f55814ff | 1481 | echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6 |
5290baf0 | 1482 | echo "configure:1483: checking for libc-friendly stddef.h" >&5 |
424f8c09 | 1483 | if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then |
f55814ff | 1484 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1485 | else |
1486 | cat > conftest.$ac_ext <<EOF | |
5290baf0 | 1487 | #line 1488 "configure" |
28f540f4 RM |
1488 | #include "confdefs.h" |
1489 | #define __need_size_t | |
1490 | #define __need_wchar_t | |
1491 | #include <stddef.h> | |
1492 | #define __need_NULL | |
1493 | #include <stddef.h> | |
26761c28 | 1494 | int main() { |
28f540f4 RM |
1495 | size_t size; wchar_t wchar; |
1496 | #ifdef offsetof | |
1497 | #error stddef.h ignored __need_* | |
1498 | #endif | |
1499 | if (&size == NULL || &wchar == NULL) abort (); | |
1500 | ; return 0; } | |
1501 | EOF | |
5290baf0 | 1502 | if { (eval echo configure:1503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
28f540f4 RM |
1503 | rm -rf conftest* |
1504 | libc_cv_friendly_stddef=yes | |
1505 | else | |
26761c28 UD |
1506 | echo "configure: failed program was:" >&5 |
1507 | cat conftest.$ac_ext >&5 | |
28f540f4 RM |
1508 | rm -rf conftest* |
1509 | libc_cv_friendly_stddef=no | |
1510 | fi | |
1511 | rm -f conftest* | |
28f540f4 RM |
1512 | fi |
1513 | ||
f55814ff | 1514 | echo "$ac_t""$libc_cv_friendly_stddef" 1>&6 |
28f540f4 RM |
1515 | if test $libc_cv_friendly_stddef = yes; then |
1516 | config_vars="$config_vars | |
1517 | override stddef.h = # The installed <stddef.h> seems to be libc-friendly." | |
1518 | fi | |
1519 | ||
f55814ff | 1520 | echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6 |
5290baf0 | 1521 | echo "configure:1522: checking whether we need to use -P to assemble .S files" >&5 |
424f8c09 | 1522 | if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then |
f55814ff | 1523 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1524 | else |
1525 | cat > conftest.S <<EOF | |
1526 | #include "confdefs.h" | |
1527 | /* Nothing whatsoever. */ | |
1528 | EOF | |
1529 | if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then | |
1530 | libc_cv_need_minus_P=no | |
1531 | else | |
1532 | libc_cv_need_minus_P=yes | |
1533 | fi | |
1534 | rm -f conftest* | |
1535 | fi | |
1536 | ||
f55814ff | 1537 | echo "$ac_t""$libc_cv_need_minus_P" 1>&6 |
28f540f4 RM |
1538 | if test $libc_cv_need_minus_P = yes; then |
1539 | config_vars="$config_vars | |
1540 | asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives." | |
1541 | fi | |
1542 | ||
f55814ff | 1543 | echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6 |
5290baf0 | 1544 | echo "configure:1545: checking for assembler global-symbol directive" >&5 |
587dbc6f | 1545 | if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then |
f55814ff | 1546 | echo $ac_n "(cached) $ac_c" 1>&6 |
587dbc6f RM |
1547 | else |
1548 | libc_cv_asm_global_directive=UNKNOWN | |
1549 | for ac_globl in .globl .global; do | |
1550 | cat > conftest.s <<EOF | |
1551 | .text | |
1552 | ${ac_globl} foo | |
1553 | foo: .long 0 | |
1554 | EOF | |
1555 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
1556 | libc_cv_asm_global_directive=${ac_globl} | |
1557 | fi | |
1558 | rm -f conftest* | |
1559 | test $libc_cv_asm_global_directive != UNKNOWN && break | |
1560 | done | |
1561 | fi | |
1562 | ||
f55814ff | 1563 | echo "$ac_t""$libc_cv_asm_global_directive" 1>&6 |
587dbc6f RM |
1564 | if test $libc_cv_asm_global_directive = UNKNOWN; then |
1565 | { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; } | |
1566 | else | |
1567 | cat >> confdefs.h <<EOF | |
1568 | #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive} | |
1569 | EOF | |
1570 | ||
1571 | fi | |
1572 | ||
f55814ff | 1573 | echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6 |
5290baf0 | 1574 | echo "configure:1575: checking for .set assembler directive" >&5 |
e215c478 | 1575 | if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then |
f55814ff | 1576 | echo $ac_n "(cached) $ac_c" 1>&6 |
e215c478 | 1577 | else |
587dbc6f | 1578 | cat > conftest.s <<EOF |
e215c478 RM |
1579 | .text |
1580 | foo: .long 0 | |
df2a0c93 | 1581 | .set glibc_conftest_frobozz,foo |
587dbc6f | 1582 | $libc_cv_asm_global_directive glibc_conftest_frobozz |
e215c478 | 1583 | EOF |
df2a0c93 RM |
1584 | # The alpha-dec-osf1 assembler gives only a warning for `.set' |
1585 | # (but it doesn't work), so we must do a linking check to be sure. | |
1586 | cat > conftest1.c <<\EOF | |
1587 | extern int glibc_conftest_frobozz; | |
1588 | main () { printf ("%d\n", glibc_conftest_frobozz); } | |
1589 | EOF | |
1590 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
b3a59f40 | 1591 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then |
e215c478 RM |
1592 | libc_cv_asm_set_directive=yes |
1593 | else | |
1594 | libc_cv_asm_set_directive=no | |
1595 | fi | |
d02907df | 1596 | rm -f conftest* |
e215c478 RM |
1597 | fi |
1598 | ||
f55814ff | 1599 | echo "$ac_t""$libc_cv_asm_set_directive" 1>&6 |
e215c478 RM |
1600 | if test $libc_cv_asm_set_directive = yes; then |
1601 | cat >> confdefs.h <<\EOF | |
1602 | #define HAVE_ASM_SET_DIRECTIVE 1 | |
1603 | EOF | |
1604 | ||
1605 | fi | |
1606 | ||
fd26970f UD |
1607 | if test $elf = yes; then |
1608 | echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6 | |
1609 | echo "configure:1610: checking for .previous assembler directive" >&5 | |
1610 | if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then | |
1611 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1612 | else | |
1613 | cat > conftest.s <<EOF | |
1614 | .section foo_section | |
1615 | .previous | |
1616 | EOF | |
1617 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then | |
1618 | libc_cv_asm_previous_directive=yes | |
1619 | else | |
1620 | libc_cv_asm_previous_directive=no | |
1621 | fi | |
1622 | rm -f conftest* | |
1623 | fi | |
1624 | ||
1625 | echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6 | |
1626 | if test $libc_cv_asm_previous_directive = yes; then | |
1627 | cat >> confdefs.h <<\EOF | |
1628 | #define HAVE_ASM_PREVIOUS_DIRECTIVE 1 | |
1629 | EOF | |
1630 | ||
1631 | else | |
1632 | echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6 | |
1633 | echo "configure:1634: checking for .popsection assembler directive" >&5 | |
1634 | if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then | |
1635 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1636 | else | |
1637 | cat > conftest.s <<EOF | |
1638 | .pushsection foo_section | |
1639 | .popsection | |
1640 | EOF | |
1641 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then | |
1642 | libc_cv_asm_popsection_directive=yes | |
1643 | else | |
1644 | libc_cv_asm_popsection_directive=no | |
1645 | fi | |
1646 | rm -f conftest* | |
1647 | fi | |
1648 | ||
1649 | echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6 | |
1650 | if test $libc_cv_asm_popsection_directive = yes; then | |
1651 | cat >> confdefs.h <<\EOF | |
1652 | #define HAVE_ASM_POPSECTION_DIRECTIVE 1 | |
1653 | EOF | |
1654 | ||
1655 | fi | |
1656 | fi | |
1657 | fi | |
1658 | ||
b8dc6a10 | 1659 | if test $elf != yes; then |
f55814ff | 1660 | echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6 |
fd26970f | 1661 | echo "configure:1662: checking for .init and .fini sections" >&5 |
b8dc6a10 | 1662 | if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then |
f55814ff | 1663 | echo $ac_n "(cached) $ac_c" 1>&6 |
b8dc6a10 RM |
1664 | else |
1665 | cat > conftest.$ac_ext <<EOF | |
fd26970f | 1666 | #line 1667 "configure" |
b8dc6a10 RM |
1667 | #include "confdefs.h" |
1668 | ||
26761c28 | 1669 | int main() { |
b8dc6a10 RM |
1670 | asm (".section .init"); |
1671 | asm (".section .fini"); | |
9004bc20 | 1672 | asm (".text"); |
b8dc6a10 RM |
1673 | ; return 0; } |
1674 | EOF | |
fd26970f | 1675 | if { (eval echo configure:1676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b8dc6a10 RM |
1676 | rm -rf conftest* |
1677 | libc_cv_have_initfini=yes | |
1678 | else | |
26761c28 UD |
1679 | echo "configure: failed program was:" >&5 |
1680 | cat conftest.$ac_ext >&5 | |
b8dc6a10 RM |
1681 | rm -rf conftest* |
1682 | libc_cv_have_initfini=no | |
1683 | fi | |
1684 | rm -f conftest* | |
b8dc6a10 RM |
1685 | fi |
1686 | ||
f55814ff | 1687 | echo "$ac_t""$libc_cv_have_initfini" 1>&6 |
b8dc6a10 RM |
1688 | if test $libc_cv_have_initfini = yes; then |
1689 | cat >> confdefs.h <<\EOF | |
1690 | #define HAVE_INITFINI 1 | |
1691 | EOF | |
1692 | ||
1693 | fi | |
1694 | fi | |
e215c478 | 1695 | |
c224a18a RM |
1696 | if test $elf = yes; then |
1697 | libc_cv_asm_underscores=no | |
1698 | else | |
f55814ff | 1699 | echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6 |
fd26970f | 1700 | echo "configure:1701: checking for _ prefix on C symbol names" >&5 |
c224a18a | 1701 | if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then |
f55814ff | 1702 | echo $ac_n "(cached) $ac_c" 1>&6 |
c224a18a RM |
1703 | else |
1704 | cat > conftest.$ac_ext <<EOF | |
fd26970f | 1705 | #line 1706 "configure" |
c224a18a RM |
1706 | #include "confdefs.h" |
1707 | asm ("_glibc_foobar:"); | |
26761c28 | 1708 | int main() { |
c224a18a RM |
1709 | glibc_foobar (); |
1710 | ; return 0; } | |
1711 | EOF | |
fd26970f | 1712 | if { (eval echo configure:1713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c224a18a RM |
1713 | rm -rf conftest* |
1714 | libc_cv_asm_underscores=yes | |
1715 | else | |
26761c28 UD |
1716 | echo "configure: failed program was:" >&5 |
1717 | cat conftest.$ac_ext >&5 | |
c224a18a RM |
1718 | rm -rf conftest* |
1719 | libc_cv_asm_underscores=no | |
1720 | fi | |
1721 | rm -f conftest* | |
c224a18a RM |
1722 | fi |
1723 | ||
f55814ff | 1724 | echo "$ac_t""$libc_cv_asm_underscores" 1>&6 |
c224a18a RM |
1725 | fi |
1726 | if test $libc_cv_asm_underscores = no; then | |
1727 | cat >> confdefs.h <<\EOF | |
1728 | #define NO_UNDERSCORES 1 | |
1729 | EOF | |
1730 | ||
1731 | fi | |
1732 | ||
1733 | if test $elf = yes; then | |
1734 | libc_cv_weak_symbols=yes | |
1735 | libc_cv_asm_weak_directive=yes | |
1736 | libc_cv_asm_weakext_directive=no | |
1737 | else | |
f55814ff | 1738 | echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6 |
fd26970f | 1739 | echo "configure:1740: checking for assembler .weak directive" >&5 |
c224a18a | 1740 | if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then |
f55814ff | 1741 | echo $ac_n "(cached) $ac_c" 1>&6 |
c224a18a RM |
1742 | else |
1743 | cat > conftest.s <<EOF | |
1744 | .text | |
1745 | ${libc_cv_asm_global_directive} foo | |
1746 | foo: .long 0 | |
1747 | .weak foo | |
1748 | .weak bar; bar = foo | |
1749 | EOF | |
1750 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
1751 | libc_cv_asm_weak_directive=yes | |
1752 | else | |
1753 | libc_cv_asm_weak_directive=no | |
1754 | fi | |
1755 | rm -f conftest* | |
1756 | fi | |
1757 | ||
f55814ff | 1758 | echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6 |
c224a18a | 1759 | |
c8cf0b14 | 1760 | if test $libc_cv_asm_weak_directive = no; then |
f55814ff | 1761 | echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6 |
fd26970f | 1762 | echo "configure:1763: checking for assembler .weakext directive" >&5 |
c224a18a | 1763 | if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then |
f55814ff | 1764 | echo $ac_n "(cached) $ac_c" 1>&6 |
c224a18a RM |
1765 | else |
1766 | cat > conftest.s <<EOF | |
1767 | .text | |
1768 | ${libc_cv_asm_global_directive} foo | |
1769 | foo: .long 0 | |
1770 | .weakext foo | |
a1470b6f | 1771 | .weakext foo, bar |
c224a18a RM |
1772 | EOF |
1773 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
1774 | libc_cv_asm_weakext_directive=yes | |
1775 | else | |
1776 | libc_cv_asm_weakext_directive=no | |
1777 | fi | |
1778 | rm -f conftest* | |
1779 | fi | |
1780 | ||
f55814ff | 1781 | echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6 |
c224a18a RM |
1782 | |
1783 | fi # no .weak | |
1784 | fi # not ELF | |
1785 | ||
ffcf9634 | 1786 | if test $libc_cv_asm_weak_directive = yes; then |
c224a18a RM |
1787 | cat >> confdefs.h <<\EOF |
1788 | #define HAVE_ASM_WEAK_DIRECTIVE 1 | |
1789 | EOF | |
1790 | ||
ffcf9634 | 1791 | elif test $libc_cv_asm_weakext_directive = yes; then |
c224a18a RM |
1792 | cat >> confdefs.h <<\EOF |
1793 | #define HAVE_ASM_WEAKEXT_DIRECTIVE 1 | |
1794 | EOF | |
1795 | ||
1796 | fi | |
1797 | ||
f55814ff | 1798 | echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6 |
fd26970f | 1799 | echo "configure:1800: checking for ld --no-whole-archive" >&5 |
ad41463d | 1800 | if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then |
f55814ff | 1801 | echo $ac_n "(cached) $ac_c" 1>&6 |
ad41463d RM |
1802 | else |
1803 | cat > conftest.c <<\EOF | |
5f0e6fc7 | 1804 | _start () {} |
655a5796 UD |
1805 | int __eh_pc; |
1806 | __throw () {} | |
ad41463d | 1807 | EOF |
dcea62dd RM |
1808 | if { ac_try='${CC-cc} $CFLAGS |
1809 | -nostdlib -nostartfiles -Wl,--no-whole-archive | |
fd26970f | 1810 | -o conftest conftest.c'; { (eval echo configure:1811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
ad41463d RM |
1811 | libc_cv_ld_no_whole_archive=yes |
1812 | else | |
1813 | libc_cv_ld_no_whole_archive=no | |
1814 | fi | |
1815 | rm -f conftest* | |
1816 | fi | |
1817 | ||
f55814ff | 1818 | echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6 |
ad41463d | 1819 | |
59f63dc4 | 1820 | echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6 |
fd26970f | 1821 | echo "configure:1822: checking for gcc -fno-exceptions" >&5 |
59f63dc4 UD |
1822 | if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then |
1823 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1824 | else | |
1825 | cat > conftest.c <<\EOF | |
1826 | _start () {} | |
1827 | int __eh_pc; | |
1828 | __throw () {} | |
1829 | EOF | |
1830 | if { ac_try='${CC-cc} $CFLAGS | |
1831 | -nostdlib -nostartfiles -fno-exceptions | |
fd26970f | 1832 | -o conftest conftest.c'; { (eval echo configure:1833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
59f63dc4 UD |
1833 | libc_cv_gcc_no_exceptions=yes |
1834 | else | |
1835 | libc_cv_gcc_no_exceptions=no | |
1836 | fi | |
1837 | rm -f conftest* | |
1838 | fi | |
1839 | ||
1840 | echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6 | |
1841 | ||
c224a18a RM |
1842 | ### End of automated tests. |
1843 | ### Now run sysdeps configure fragments. | |
1844 | ||
28f540f4 RM |
1845 | # sysdeps configure fragments may set these with files to be linked below. |
1846 | libc_link_dests= | |
1847 | libc_link_sources= | |
1848 | ||
1849 | # Iterate over all the sysdep directories we will use, running their | |
1850 | # configure fragments, and looking for a uname implementation. | |
1851 | uname= | |
1852 | for dir in $sysnames; do | |
57ba7bb4 UD |
1853 | case $dir in |
1854 | /*) dest=$dir ;; | |
1855 | *) dest=$srcdir/$dir ;; | |
1856 | esac | |
1857 | if test -r $dest/configure; then | |
1858 | echo "$ac_t""running configure fragment for $dest" 1>&6 | |
1859 | . $dest/configure | |
28f540f4 | 1860 | fi |
c6de6968 | 1861 | |
28f540f4 | 1862 | if test -z "$uname"; then |
c6de6968 RM |
1863 | if test -r $sysdep_dir/$dir/uname.c || |
1864 | test -r $sysdep_dir/$dir/uname.S || | |
1865 | { test -r $sysdep_dir/$dir/syscalls.list && | |
1866 | grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then | |
1867 | uname=$dir | |
1868 | fi | |
28f540f4 RM |
1869 | fi |
1870 | done | |
1871 | ||
1872 | ||
1873 | ||
1874 | # If we will use the generic uname implementation, we must figure out what | |
1875 | # it will say by examining the system, and write the results in config-name.h. | |
1876 | if test "$uname" = generic; then | |
1877 | ||
1878 | uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'` | |
1879 | if test $uname_sysname != $config_os; then | |
1880 | config_release=`echo $config_os | sed s/$uname_sysname//` | |
1881 | fi | |
1882 | ||
f55814ff | 1883 | echo $ac_n "checking OS release for uname""... $ac_c" 1>&6 |
fd26970f | 1884 | echo "configure:1885: checking OS release for uname" >&5 |
b8dc6a10 | 1885 | if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then |
f55814ff | 1886 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1887 | else |
1888 | kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'` | |
1889 | if test x`echo "$config_release" | sed "s/^$kernel_release//"` \ | |
1890 | != x$config_release; then | |
1891 | # The configuration release is a substring of the kernel release. | |
1892 | libc_cv_uname_release=$kernel_release | |
1893 | elif test x$config_release != x; then | |
1894 | libc_cv_uname_release=$config_release | |
1895 | elif test x$kernel_release != x; then | |
1896 | libc_cv_uname_release=$kernel_release | |
1897 | else | |
1898 | libc_cv_uname_release=unknown | |
1899 | fi | |
1900 | fi | |
1901 | ||
f55814ff | 1902 | echo "$ac_t""$libc_cv_uname_release" 1>&6 |
28f540f4 RM |
1903 | uname_release="$libc_cv_uname_release" |
1904 | ||
f55814ff | 1905 | echo $ac_n "checking OS version for uname""... $ac_c" 1>&6 |
fd26970f | 1906 | echo "configure:1907: checking OS version for uname" >&5 |
b8dc6a10 | 1907 | if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then |
f55814ff | 1908 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1909 | else |
1910 | kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'` | |
1911 | if test -n "$kernel_version"; then | |
1912 | libc_cv_uname_version="$kernel_version" | |
1913 | else | |
1914 | libc_cv_uname_version=unknown | |
1915 | fi | |
1916 | fi | |
1917 | ||
f55814ff | 1918 | echo "$ac_t""$libc_cv_uname_version" 1>&6 |
28f540f4 RM |
1919 | uname_version="$libc_cv_uname_version" |
1920 | ||
1921 | config_uname=config-name.h:config-name.in | |
1922 | else | |
1923 | # For non-generic uname, we don't need to create config-name.h at all. | |
1924 | config_uname= | |
1925 | fi | |
1926 | ||
f55814ff | 1927 | echo $ac_n "checking stdio selection""... $ac_c" 1>&6 |
fd26970f | 1928 | echo "configure:1929: checking stdio selection" >&5 |
91c7b85d RM |
1929 | |
1930 | case $stdio in | |
1931 | libio) cat >> confdefs.h <<\EOF | |
1932 | #define USE_IN_LIBIO 1 | |
1933 | EOF | |
1934 | ;; | |
1935 | default) stdio=stdio ;; | |
1936 | esac | |
f55814ff | 1937 | echo "$ac_t""$stdio" 1>&6 |
91c7b85d | 1938 | |
f65fd747 | 1939 | echo $ac_n "checking malloc selection""... $ac_c" 1>&6 |
fd26970f | 1940 | echo "configure:1941: checking malloc selection" >&5 |
f65fd747 | 1941 | |
feb3c934 UD |
1942 | case $malloc in |
1943 | new-malloc) USE_NEW_MALLOC=-DUSE_NEW_MALLOC ;; | |
1944 | default) malloc=malloc ;; | |
1945 | esac | |
1946 | ||
f65fd747 UD |
1947 | echo "$ac_t""$malloc" 1>&6 |
1948 | ||
1949 | ||
84384f5b UD |
1950 | |
1951 | ||
1952 | ||
c224a18a | 1953 | |
28f540f4 RM |
1954 | if test $gnu_ld = yes; then |
1955 | cat >> confdefs.h <<\EOF | |
1956 | #define HAVE_GNU_LD 1 | |
1957 | EOF | |
1958 | ||
1959 | fi | |
1960 | if test $gnu_as = yes; then | |
1961 | cat >> confdefs.h <<\EOF | |
1962 | #define HAVE_GNU_AS 1 | |
1963 | EOF | |
1964 | ||
1965 | fi | |
1966 | if test $elf = yes; then | |
1967 | cat >> confdefs.h <<\EOF | |
1968 | #define HAVE_ELF 1 | |
1969 | EOF | |
1970 | ||
28f540f4 RM |
1971 | fi |
1972 | ||
1973 | ||
424f8c09 RM |
1974 | if test $shared = default; then |
1975 | if test $gnu_ld = yes; then | |
1976 | shared=$elf | |
f65fd747 UD |
1977 | else |
1978 | # For now we do not assume shared libs are available. In future more | |
1979 | # tests might become available. | |
1980 | shared=no | |
424f8c09 RM |
1981 | fi |
1982 | fi | |
1983 | ||
1984 | ||
1985 | ||
edf5b2d7 UD |
1986 | |
1987 | ||
28f540f4 RM |
1988 | if test "`(cd $srcdir; pwd)`" = "`pwd`"; then |
1989 | config_makefile= | |
1990 | else | |
1991 | config_makefile=Makefile | |
1992 | fi | |
1993 | ||
df4ef2ab UD |
1994 | VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h` |
1995 | ||
1996 | ||
28f540f4 | 1997 | trap '' 1 2 15 |
424f8c09 | 1998 | cat > confcache <<\EOF |
28f540f4 RM |
1999 | # This file is a shell script that caches the results of configure |
2000 | # tests run on this system so they can be shared between configure | |
2001 | # scripts and configure runs. It is not useful on other systems. | |
2002 | # If it contains results you don't want to keep, you may remove or edit it. | |
2003 | # | |
2004 | # By default, configure uses ./config.cache as the cache file, | |
2005 | # creating it if it does not exist already. You can give configure | |
2006 | # the --cache-file=FILE option to use a different cache file; that is | |
2007 | # what configure does when it calls configure scripts in | |
2008 | # subdirectories, so they share the cache. | |
2009 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2010 | # config.status only pays attention to the cache file if you give it the | |
2011 | # --recheck option to rerun configure. | |
2012 | # | |
2013 | EOF | |
c6645251 UD |
2014 | # The following way of writing the cache mishandles newlines in values, |
2015 | # but we know of no workaround that is simple, portable, and efficient. | |
2016 | # So, don't put newlines in cache variables' values. | |
28f540f4 RM |
2017 | # Ultrix sh set writes to stderr and can't be redirected directly, |
2018 | # and sets the high bit in the cache file unless we assign to the vars. | |
2019 | (set) 2>&1 | | |
f9c53d11 | 2020 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
c6645251 UD |
2021 | *ac_space=\ *) |
2022 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2023 | # turns \\\\ into \\, and sed turns \\ into \). | |
2024 | sed -n \ | |
2025 | -e "s/'/'\\\\''/g" \ | |
2026 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2027 | ;; | |
2028 | *) | |
2029 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2030 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2031 | ;; | |
2032 | esac >> confcache | |
424f8c09 RM |
2033 | if cmp -s $cache_file confcache; then |
2034 | : | |
28f540f4 | 2035 | else |
424f8c09 RM |
2036 | if test -w $cache_file; then |
2037 | echo "updating cache $cache_file" | |
2038 | cat confcache > $cache_file | |
2039 | else | |
2040 | echo "not updating unwritable cache $cache_file" | |
2041 | fi | |
28f540f4 | 2042 | fi |
424f8c09 | 2043 | rm -f confcache |
28f540f4 RM |
2044 | |
2045 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
2046 | ||
2047 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2048 | # Let make expand exec_prefix. | |
2049 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2050 | ||
2051 | # Any assignment to VPATH causes Sun make to only execute | |
2052 | # the first set of double-colon rules, so remove it if not needed. | |
2053 | # If there is a colon in the path, we need to keep it. | |
2054 | if test "x$srcdir" = x.; then | |
2055 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
2056 | fi | |
2057 | ||
2058 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
2059 | ||
2060 | DEFS=-DHAVE_CONFIG_H | |
2061 | ||
2062 | # Without the "./", some shells look in PATH for config.status. | |
2063 | : ${CONFIG_STATUS=./config.status} | |
2064 | ||
2065 | echo creating $CONFIG_STATUS | |
2066 | rm -f $CONFIG_STATUS | |
2067 | cat > $CONFIG_STATUS <<EOF | |
2068 | #! /bin/sh | |
2069 | # Generated automatically by configure. | |
2070 | # Run this file to recreate the current configuration. | |
2071 | # This directory was configured as follows, | |
2072 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
2073 | # | |
2074 | # $0 $ac_configure_args | |
2075 | # | |
2076 | # Compiler output produced by configure, useful for debugging | |
2077 | # configure, is in ./config.log if it exists. | |
2078 | ||
2079 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
2080 | for ac_option | |
2081 | do | |
2082 | case "\$ac_option" in | |
2083 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
2084 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
2085 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
2086 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
f9c53d11 | 2087 | echo "$CONFIG_STATUS generated by autoconf version 2.12" |
28f540f4 RM |
2088 | exit 0 ;; |
2089 | -help | --help | --hel | --he | --h) | |
2090 | echo "\$ac_cs_usage"; exit 0 ;; | |
2091 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
2092 | esac | |
2093 | done | |
2094 | ||
2095 | ac_given_srcdir=$srcdir | |
2096 | ac_given_INSTALL="$INSTALL" | |
2097 | ||
df4ef2ab | 2098 | trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
1ed0083c RM |
2099 | EOF |
2100 | cat >> $CONFIG_STATUS <<EOF | |
28f540f4 | 2101 | |
91c7b85d | 2102 | # Protect against being on the right side of a sed subst in config.status. |
1ed0083c RM |
2103 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
2104 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
28f540f4 RM |
2105 | $ac_vpsub |
2106 | $extrasub | |
2107 | s%@CFLAGS@%$CFLAGS%g | |
2108 | s%@CPPFLAGS@%$CPPFLAGS%g | |
2109 | s%@CXXFLAGS@%$CXXFLAGS%g | |
2110 | s%@DEFS@%$DEFS%g | |
2111 | s%@LDFLAGS@%$LDFLAGS%g | |
2112 | s%@LIBS@%$LIBS%g | |
2113 | s%@exec_prefix@%$exec_prefix%g | |
2114 | s%@prefix@%$prefix%g | |
2115 | s%@program_transform_name@%$program_transform_name%g | |
b8dc6a10 RM |
2116 | s%@bindir@%$bindir%g |
2117 | s%@sbindir@%$sbindir%g | |
2118 | s%@libexecdir@%$libexecdir%g | |
2119 | s%@datadir@%$datadir%g | |
2120 | s%@sysconfdir@%$sysconfdir%g | |
2121 | s%@sharedstatedir@%$sharedstatedir%g | |
2122 | s%@localstatedir@%$localstatedir%g | |
2123 | s%@libdir@%$libdir%g | |
2124 | s%@includedir@%$includedir%g | |
2125 | s%@oldincludedir@%$oldincludedir%g | |
2126 | s%@infodir@%$infodir%g | |
2127 | s%@mandir@%$mandir%g | |
6b3a2224 | 2128 | s%@subdirs@%$subdirs%g |
28f540f4 RM |
2129 | s%@host@%$host%g |
2130 | s%@host_alias@%$host_alias%g | |
2131 | s%@host_cpu@%$host_cpu%g | |
2132 | s%@host_vendor@%$host_vendor%g | |
2133 | s%@host_os@%$host_os%g | |
f0523145 | 2134 | s%@base_machine@%$base_machine%g |
28f540f4 RM |
2135 | s%@sysnames@%$sysnames%g |
2136 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
2137 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
ad41463d | 2138 | s%@LN_S@%$LN_S%g |
ce4d8b66 | 2139 | s%@MSGFMT@%$MSGFMT%g |
28f540f4 RM |
2140 | s%@build@%$build%g |
2141 | s%@build_alias@%$build_alias%g | |
2142 | s%@build_cpu@%$build_cpu%g | |
2143 | s%@build_vendor@%$build_vendor%g | |
2144 | s%@build_os@%$build_os%g | |
2145 | s%@CC@%$CC%g | |
40a4b79f | 2146 | s%@BUILD_CC@%$BUILD_CC%g |
8942a07a | 2147 | s%@CPP@%$CPP%g |
28f540f4 RM |
2148 | s%@AR@%$AR%g |
2149 | s%@RANLIB@%$RANLIB%g | |
84384f5b UD |
2150 | s%@BASH@%$BASH%g |
2151 | s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g | |
5290baf0 UD |
2152 | s%@KSH@%$KSH%g |
2153 | s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g | |
b8dc6a10 | 2154 | s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g |
ad41463d | 2155 | s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g |
0b72c47e | 2156 | s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g |
28f540f4 RM |
2157 | s%@uname_sysname@%$uname_sysname%g |
2158 | s%@uname_release@%$uname_release%g | |
2159 | s%@uname_version@%$uname_version%g | |
91c7b85d | 2160 | s%@stdio@%$stdio%g |
f65fd747 | 2161 | s%@malloc@%$malloc%g |
feb3c934 | 2162 | s%@USE_NEW_MALLOC@%$USE_NEW_MALLOC%g |
84384f5b UD |
2163 | s%@libc_cv_slibdir@%$libc_cv_slibdir%g |
2164 | s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g | |
28f540f4 RM |
2165 | s%@gnu_ld@%$gnu_ld%g |
2166 | s%@gnu_as@%$gnu_as%g | |
2167 | s%@elf@%$elf%g | |
424f8c09 RM |
2168 | s%@shared@%$shared%g |
2169 | s%@profile@%$profile%g | |
2170 | s%@omitfp@%$omitfp%g | |
edf5b2d7 | 2171 | s%@DEFINES@%$DEFINES%g |
df4ef2ab | 2172 | s%@VERSION@%$VERSION%g |
28f540f4 RM |
2173 | |
2174 | CEOF | |
2175 | EOF | |
26761c28 UD |
2176 | |
2177 | cat >> $CONFIG_STATUS <<\EOF | |
2178 | ||
2179 | # Split the substitutions into bite-sized pieces for seds with | |
2180 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8a523922 | 2181 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
26761c28 | 2182 | ac_file=1 # Number of current file. |
26761c28 | 2183 | ac_beg=1 # First line for current file. |
8a523922 | 2184 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
26761c28 UD |
2185 | ac_more_lines=: |
2186 | ac_sed_cmds="" | |
2187 | while $ac_more_lines; do | |
2188 | if test $ac_beg -gt 1; then | |
2189 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
2190 | else | |
2191 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
2192 | fi | |
2193 | if test ! -s conftest.s$ac_file; then | |
2194 | ac_more_lines=false | |
2195 | rm -f conftest.s$ac_file | |
2196 | else | |
2197 | if test -z "$ac_sed_cmds"; then | |
2198 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
2199 | else | |
2200 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
2201 | fi | |
2202 | ac_file=`expr $ac_file + 1` | |
2203 | ac_beg=$ac_end | |
8a523922 | 2204 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
26761c28 UD |
2205 | fi |
2206 | done | |
2207 | if test -z "$ac_sed_cmds"; then | |
2208 | ac_sed_cmds=cat | |
2209 | fi | |
2210 | EOF | |
2211 | ||
28f540f4 RM |
2212 | cat >> $CONFIG_STATUS <<EOF |
2213 | ||
df4ef2ab | 2214 | CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"} |
28f540f4 RM |
2215 | EOF |
2216 | cat >> $CONFIG_STATUS <<\EOF | |
2217 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
c6645251 | 2218 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
28f540f4 | 2219 | case "$ac_file" in |
c6645251 | 2220 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
28f540f4 RM |
2221 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
2222 | *) ac_file_in="${ac_file}.in" ;; | |
2223 | esac | |
2224 | ||
26761c28 | 2225 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
28f540f4 RM |
2226 | |
2227 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2228 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2229 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2230 | # The file is in a subdirectory. | |
2231 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2232 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
2233 | # A "../" for each directory in $ac_dir_suffix. | |
2234 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
2235 | else | |
2236 | ac_dir_suffix= ac_dots= | |
2237 | fi | |
2238 | ||
2239 | case "$ac_given_srcdir" in | |
2240 | .) srcdir=. | |
2241 | if test -z "$ac_dots"; then top_srcdir=. | |
2242 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
2243 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
2244 | *) # Relative path. | |
2245 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
2246 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
2247 | esac | |
2248 | ||
2249 | case "$ac_given_INSTALL" in | |
2250 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2251 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2252 | esac | |
26761c28 | 2253 | |
28f540f4 RM |
2254 | echo creating "$ac_file" |
2255 | rm -f "$ac_file" | |
2256 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
2257 | case "$ac_file" in | |
2258 | *Makefile*) ac_comsub="1i\\ | |
2259 | # $configure_input" ;; | |
2260 | *) ac_comsub= ;; | |
2261 | esac | |
c6645251 UD |
2262 | |
2263 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
28f540f4 RM |
2264 | sed -e "$ac_comsub |
2265 | s%@configure_input@%$configure_input%g | |
2266 | s%@srcdir@%$srcdir%g | |
2267 | s%@top_srcdir@%$top_srcdir%g | |
2268 | s%@INSTALL@%$INSTALL%g | |
c6645251 | 2269 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
28f540f4 | 2270 | fi; done |
26761c28 | 2271 | rm -f conftest.s* |
28f540f4 RM |
2272 | |
2273 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
2274 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
2275 | # | |
2276 | # ac_d sets the value in "#define NAME VALUE" lines. | |
2277 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
2278 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
2279 | ac_dC='\3' | |
2280 | ac_dD='%g' | |
2281 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
2282 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
2283 | ac_uB='\([ ]\)%\1#\2define\3' | |
2284 | ac_uC=' ' | |
2285 | ac_uD='\4%g' | |
2286 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
2287 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
2288 | ac_eB='$%\1#\2define\3' | |
2289 | ac_eC=' ' | |
2290 | ac_eD='%g' | |
2291 | ||
c6645251 | 2292 | if test "${CONFIG_HEADERS+set}" != set; then |
26761c28 UD |
2293 | EOF |
2294 | cat >> $CONFIG_STATUS <<EOF | |
2295 | CONFIG_HEADERS="config.h" | |
2296 | EOF | |
2297 | cat >> $CONFIG_STATUS <<\EOF | |
2298 | fi | |
28f540f4 | 2299 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
c6645251 | 2300 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
28f540f4 | 2301 | case "$ac_file" in |
c6645251 | 2302 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
28f540f4 RM |
2303 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
2304 | *) ac_file_in="${ac_file}.in" ;; | |
2305 | esac | |
2306 | ||
2307 | echo creating $ac_file | |
2308 | ||
2309 | rm -f conftest.frag conftest.in conftest.out | |
c6645251 UD |
2310 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
2311 | cat $ac_file_inputs > conftest.in | |
28f540f4 RM |
2312 | |
2313 | EOF | |
2314 | ||
2315 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
2316 | # the proper values into config.h.in to produce config.h. And first: | |
91c7b85d | 2317 | # Protect against being on the right side of a sed subst in config.status. |
28f540f4 RM |
2318 | # Protect against being in an unquoted here document in config.status. |
2319 | rm -f conftest.vals | |
2320 | cat > conftest.hdr <<\EOF | |
2321 | s/[\\&%]/\\&/g | |
2322 | s%[\\$`]%\\&%g | |
c224a18a | 2323 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
28f540f4 RM |
2324 | s%ac_d%ac_u%gp |
2325 | s%ac_u%ac_e%gp | |
2326 | EOF | |
2327 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
2328 | rm -f conftest.hdr | |
2329 | ||
2330 | # This sed command replaces #undef with comments. This is necessary, for | |
2331 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
2332 | # on some systems where configure will not decide to define it. | |
2333 | cat >> conftest.vals <<\EOF | |
2334 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
2335 | EOF | |
2336 | ||
2337 | # Break up conftest.vals because some shells have a limit on | |
2338 | # the size of here documents, and old seds have small limits too. | |
28f540f4 RM |
2339 | |
2340 | rm -f conftest.tail | |
2341 | while : | |
2342 | do | |
2343 | ac_lines=`grep -c . conftest.vals` | |
2344 | # grep -c gives empty output for an empty file on some AIX systems. | |
2345 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
2346 | # Write a limited-size here document to conftest.frag. | |
2347 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
2348 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
2349 | echo 'CEOF | |
2350 | sed -f conftest.frag conftest.in > conftest.out | |
2351 | rm -f conftest.in | |
2352 | mv conftest.out conftest.in | |
2353 | ' >> $CONFIG_STATUS | |
2354 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
2355 | rm -f conftest.vals | |
2356 | mv conftest.tail conftest.vals | |
2357 | done | |
2358 | rm -f conftest.vals | |
2359 | ||
2360 | cat >> $CONFIG_STATUS <<\EOF | |
2361 | rm -f conftest.frag conftest.h | |
2362 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
2363 | cat conftest.in >> conftest.h | |
2364 | rm -f conftest.in | |
2365 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
2366 | echo "$ac_file is unchanged" | |
2367 | rm -f conftest.h | |
2368 | else | |
ad41463d RM |
2369 | # Remove last slash and all that follows it. Not all systems have dirname. |
2370 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2371 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2372 | # The file is in a subdirectory. | |
2373 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2374 | fi | |
28f540f4 RM |
2375 | rm -f $ac_file |
2376 | mv conftest.h $ac_file | |
2377 | fi | |
2378 | fi; done | |
2379 | ||
2380 | EOF | |
2381 | ||
2382 | cat >> $CONFIG_STATUS <<EOF | |
2383 | ac_sources="`echo $libc_link_sources`" | |
2384 | ac_dests="`echo $libc_link_dests`" | |
2385 | EOF | |
2386 | ||
2387 | cat >> $CONFIG_STATUS <<\EOF | |
2388 | srcdir=$ac_given_srcdir | |
2389 | while test -n "$ac_sources"; do | |
2390 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
2391 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
2392 | ||
2393 | echo "linking $srcdir/$ac_source to $ac_dest" | |
2394 | ||
2395 | if test ! -r $srcdir/$ac_source; then | |
2396 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
2397 | fi | |
2398 | rm -f $ac_dest | |
2399 | ||
2400 | # Make relative symlinks. | |
2401 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2402 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
2403 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
2404 | # The dest file is in a subdirectory. | |
2405 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
2406 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
2407 | # A "../" for each directory in $ac_dest_dir_suffix. | |
2408 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
2409 | else | |
2410 | ac_dest_dir_suffix= ac_dots= | |
2411 | fi | |
2412 | ||
2413 | case "$srcdir" in | |
2414 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
2415 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
2416 | esac | |
2417 | ||
2418 | # Make a symlink if possible; otherwise try a hard link. | |
2419 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
2420 | ln $srcdir/$ac_source $ac_dest; then : | |
2421 | else | |
2422 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
2423 | fi | |
2424 | done | |
2425 | EOF | |
2426 | cat >> $CONFIG_STATUS <<EOF | |
2427 | echo '$config_vars' >> config.make | |
2428 | EOF | |
2429 | cat >> $CONFIG_STATUS <<\EOF | |
2430 | ||
2431 | exit 0 | |
2432 | EOF | |
2433 | chmod +x $CONFIG_STATUS | |
2434 | rm -fr confdefs* $ac_clean_files | |
2435 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
2436 | ||
6b3a2224 RM |
2437 | if test "$no_recursion" != yes; then |
2438 | ||
2439 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
2440 | ac_sub_configure_args= | |
2441 | ac_prev= | |
2442 | for ac_arg in $ac_configure_args; do | |
2443 | if test -n "$ac_prev"; then | |
2444 | ac_prev= | |
2445 | continue | |
2446 | fi | |
2447 | case "$ac_arg" in | |
2448 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
2449 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
2450 | ac_prev=cache_file ;; | |
2451 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
2452 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
2453 | ;; | |
2454 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
2455 | ac_prev=srcdir ;; | |
2456 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
2457 | ;; | |
2458 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
2459 | esac | |
2460 | done | |
2461 | ||
2462 | for ac_config_dir in $add_ons; do | |
2463 | ||
2464 | # Do not complain, so a configure script can configure whichever | |
2465 | # parts of a large source tree are present. | |
2466 | if test ! -d $srcdir/$ac_config_dir; then | |
2467 | continue | |
2468 | fi | |
2469 | ||
2470 | echo configuring in $ac_config_dir | |
2471 | ||
2472 | case "$srcdir" in | |
2473 | .) ;; | |
2474 | *) | |
2475 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
2476 | else | |
2477 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
2478 | fi | |
2479 | ;; | |
2480 | esac | |
2481 | ||
2482 | ac_popdir=`pwd` | |
2483 | cd $ac_config_dir | |
2484 | ||
26761c28 UD |
2485 | # A "../" for each directory in /$ac_config_dir. |
2486 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2487 | ||
6b3a2224 RM |
2488 | case "$srcdir" in |
2489 | .) # No --srcdir option. We are building in place. | |
2490 | ac_sub_srcdir=$srcdir ;; | |
2491 | /*) # Absolute path. | |
2492 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2493 | *) # Relative path. | |
26761c28 | 2494 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
6b3a2224 RM |
2495 | esac |
2496 | ||
2497 | # Check for guested configure; otherwise get Cygnus style configure. | |
2498 | if test -f $ac_sub_srcdir/configure; then | |
2499 | ac_sub_configure=$ac_sub_srcdir/configure | |
2500 | elif test -f $ac_sub_srcdir/configure.in; then | |
2501 | ac_sub_configure=$ac_configure | |
2502 | else | |
2503 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
2504 | ac_sub_configure= | |
2505 | fi | |
2506 | ||
2507 | # The recursion is here. | |
2508 | if test -n "$ac_sub_configure"; then | |
2509 | ||
2510 | # Make the cache file name correct relative to the subdirectory. | |
6b3a2224 RM |
2511 | case "$cache_file" in |
2512 | /*) ac_sub_cache_file=$cache_file ;; | |
2513 | *) # Relative path. | |
2514 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
2515 | esac | |
2516 | case "$ac_given_INSTALL" in | |
2517 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2518 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2519 | esac | |
2520 | ||
2521 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
2522 | # The eval makes quoting arguments work. | |
2523 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
2524 | then : | |
2525 | else | |
2526 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
2527 | fi | |
2528 | fi | |
2529 | ||
2530 | cd $ac_popdir | |
2531 | done | |
2532 | fi | |
2533 |