]>
Commit | Line | Data |
---|---|---|
cd6ede75 UD |
1 | #! /bin/sh |
2 | ||
3 | # From configure.in CVSid | |
4 | ||
5 | ||
6 | ||
7 | ||
650425ce UD |
8 | |
9 | ||
10 | ||
11 | ||
63bda0c1 UD |
12 | |
13 | ||
cd6ede75 | 14 | # Guess values for system-dependent variables and create Makefiles. |
a808d541 | 15 | # Generated automatically using autoconf version 2.13 |
cd6ede75 UD |
16 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
17 | # | |
18 | # This configure script is free software; the Free Software Foundation | |
19 | # gives unlimited permission to copy, distribute and modify it. | |
20 | ||
21 | # Defaults: | |
22 | ac_help= | |
23 | ac_default_prefix=/usr/local | |
24 | # Any additions from configure.in: | |
25 | ac_help="$ac_help | |
26 | --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)" | |
c8f3e6db UD |
27 | ac_help="$ac_help |
28 | --with-gd=DIR find libgd include dir and library with prefix DIR" | |
e41db95b UD |
29 | ac_help="$ac_help |
30 | --with-gd-include=DIR find libgd include files in DIR" | |
31 | ac_help="$ac_help | |
32 | --with-gd-lib=DIR find libgd library files in DIR" | |
cd6ede75 UD |
33 | ac_help="$ac_help |
34 | --with-fp if using floating-point hardware [default=yes]" | |
35 | ac_help="$ac_help | |
a5a0310d | 36 | --with-binutils=PATH specify location of binutils (as and ld)" |
cd6ede75 UD |
37 | ac_help="$ac_help |
38 | --with-elf if using the ELF object format" | |
5af3245a UD |
39 | ac_help="$ac_help |
40 | --with-xcoff if using the XCOFF object format" | |
d67281a7 | 41 | ac_help="$ac_help |
4442d7e8 | 42 | --without-cvs if CVS should not be used" |
3c720987 UD |
43 | ac_help="$ac_help |
44 | --with-headers=PATH location of system headers to use | |
45 | [e.g. /usr/src/linux/include] | |
46 | [default=compiler default]" | |
cd6ede75 UD |
47 | ac_help="$ac_help |
48 | --disable-sanity-checks really do not use threads (should not be used | |
49 | except in special situations) [default=yes]" | |
50 | ac_help="$ac_help | |
51 | --enable-shared build shared library [default=yes if GNU ld & ELF]" | |
52 | ac_help="$ac_help | |
53 | --enable-profile build profiled library [default=yes]" | |
54 | ac_help="$ac_help | |
55 | --enable-omitfp build undebuggable optimized library [default=no]" | |
56 | ac_help="$ac_help | |
57 | --enable-bounded build with runtime bounds checking [default=no]" | |
650425ce UD |
58 | ac_help="$ac_help |
59 | --disable-versioning do not include versioning information in the | |
60 | library objects [default=yes if supported]" | |
62ab42d6 UD |
61 | ac_help="$ac_help |
62 | --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2] | |
63 | [default=glibc default]" | |
cd6ede75 | 64 | ac_help="$ac_help |
73237de3 UD |
65 | --enable-add-ons[=DIR1,DIR2]... |
66 | configure and build add-ons in DIR1,DIR2,... | |
67 | search for add-ons if no parameter given" | |
8d4b5a8a | 68 | ac_help="$ac_help |
9cce206e | 69 | --with-tls enable support for TLS" |
749a9a4f RM |
70 | ac_help="$ac_help |
71 | --disable-hidden-plt do not hide internal function calls to avoid PLT" | |
cd6ede75 UD |
72 | ac_help="$ac_help |
73 | --enable-static-nss build static NSS modules [default=no]" | |
73237de3 | 74 | ac_help="$ac_help |
310b3460 | 75 | --disable-force-install don't force installation of files from this package, |
73237de3 | 76 | even if they are older than the installed files" |
958f238f | 77 | ac_help="$ac_help |
4a307a98 | 78 | --enable-kernel=VERSION compile for compatibility with kernel not older |
958f238f | 79 | than VERSION" |
6cc7d725 UD |
80 | ac_help="$ac_help |
81 | --enable-all-warnings enable all useful warnings gcc can issue" | |
cd6ede75 UD |
82 | |
83 | # Initialize some variables set by options. | |
84 | # The variables have the same names as the options, with | |
85 | # dashes changed to underlines. | |
86 | build=NONE | |
87 | cache_file=./config.cache | |
88 | exec_prefix=NONE | |
89 | host=NONE | |
90 | no_create= | |
91 | nonopt=NONE | |
92 | no_recursion= | |
93 | prefix=NONE | |
94 | program_prefix=NONE | |
95 | program_suffix=NONE | |
96 | program_transform_name=s,x,x, | |
97 | silent= | |
98 | site= | |
99 | srcdir= | |
100 | target=NONE | |
101 | verbose= | |
102 | x_includes=NONE | |
103 | x_libraries=NONE | |
104 | bindir='${exec_prefix}/bin' | |
105 | sbindir='${exec_prefix}/sbin' | |
106 | libexecdir='${exec_prefix}/libexec' | |
107 | datadir='${prefix}/share' | |
108 | sysconfdir='${prefix}/etc' | |
109 | sharedstatedir='${prefix}/com' | |
110 | localstatedir='${prefix}/var' | |
111 | libdir='${exec_prefix}/lib' | |
112 | includedir='${prefix}/include' | |
113 | oldincludedir='/usr/include' | |
114 | infodir='${prefix}/info' | |
115 | mandir='${prefix}/man' | |
116 | ||
117 | # Initialize some other variables. | |
118 | subdirs= | |
119 | MFLAGS= MAKEFLAGS= | |
5c2a0669 | 120 | SHELL=${CONFIG_SHELL-/bin/sh} |
cd6ede75 UD |
121 | # Maximum number of lines to put in a shell here document. |
122 | ac_max_here_lines=12 | |
123 | ||
124 | ac_prev= | |
125 | for ac_option | |
126 | do | |
127 | ||
128 | # If the previous option needs an argument, assign it. | |
129 | if test -n "$ac_prev"; then | |
130 | eval "$ac_prev=\$ac_option" | |
131 | ac_prev= | |
132 | continue | |
133 | fi | |
134 | ||
135 | case "$ac_option" in | |
136 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
137 | *) ac_optarg= ;; | |
138 | esac | |
139 | ||
140 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
141 | ||
142 | case "$ac_option" in | |
143 | ||
144 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
145 | ac_prev=bindir ;; | |
146 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
147 | bindir="$ac_optarg" ;; | |
148 | ||
149 | -build | --build | --buil | --bui | --bu) | |
150 | ac_prev=build ;; | |
151 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
152 | build="$ac_optarg" ;; | |
153 | ||
154 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
155 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
156 | ac_prev=cache_file ;; | |
157 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
158 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
159 | cache_file="$ac_optarg" ;; | |
160 | ||
161 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
162 | ac_prev=datadir ;; | |
163 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
164 | | --da=*) | |
165 | datadir="$ac_optarg" ;; | |
166 | ||
167 | -disable-* | --disable-*) | |
168 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
169 | # Reject names that are not valid shell variable names. | |
170 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
171 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
172 | fi | |
173 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
174 | eval "enable_${ac_feature}=no" ;; | |
175 | ||
176 | -enable-* | --enable-*) | |
177 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
178 | # Reject names that are not valid shell variable names. | |
179 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
180 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
181 | fi | |
182 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
183 | case "$ac_option" in | |
184 | *=*) ;; | |
185 | *) ac_optarg=yes ;; | |
186 | esac | |
187 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
188 | ||
189 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
190 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
191 | | --exec | --exe | --ex) | |
192 | ac_prev=exec_prefix ;; | |
193 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
194 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
195 | | --exec=* | --exe=* | --ex=*) | |
196 | exec_prefix="$ac_optarg" ;; | |
197 | ||
198 | -gas | --gas | --ga | --g) | |
199 | # Obsolete; use --with-gas. | |
200 | with_gas=yes ;; | |
201 | ||
202 | -help | --help | --hel | --he) | |
203 | # Omit some internal or obsolete options to make the list less imposing. | |
204 | # This message is too long to be a string in the A/UX 3.1 sh. | |
205 | cat << EOF | |
206 | Usage: configure [options] [host] | |
207 | Options: [defaults in brackets after descriptions] | |
208 | Configuration: | |
209 | --cache-file=FILE cache test results in FILE | |
210 | --help print this message | |
211 | --no-create do not create output files | |
212 | --quiet, --silent do not print \`checking...' messages | |
213 | --version print the version of autoconf that created configure | |
214 | Directory and file names: | |
215 | --prefix=PREFIX install architecture-independent files in PREFIX | |
216 | [$ac_default_prefix] | |
217 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
218 | [same as prefix] | |
219 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
220 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
221 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
222 | --datadir=DIR read-only architecture-independent data in DIR | |
223 | [PREFIX/share] | |
224 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
225 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
226 | [PREFIX/com] | |
227 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
228 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
229 | --includedir=DIR C header files in DIR [PREFIX/include] | |
230 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
231 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
232 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
233 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
234 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
235 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
236 | --program-transform-name=PROGRAM | |
237 | run sed PROGRAM on installed program names | |
238 | EOF | |
239 | cat << EOF | |
240 | Host type: | |
241 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
242 | --host=HOST configure for HOST [guessed] | |
243 | --target=TARGET configure for TARGET [TARGET=HOST] | |
244 | Features and packages: | |
245 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
246 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
247 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
248 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
249 | --x-includes=DIR X include files are in DIR | |
250 | --x-libraries=DIR X library files are in DIR | |
251 | EOF | |
252 | if test -n "$ac_help"; then | |
253 | echo "--enable and --with options recognized:$ac_help" | |
254 | fi | |
255 | exit 0 ;; | |
256 | ||
257 | -host | --host | --hos | --ho) | |
258 | ac_prev=host ;; | |
259 | -host=* | --host=* | --hos=* | --ho=*) | |
260 | host="$ac_optarg" ;; | |
261 | ||
262 | -includedir | --includedir | --includedi | --included | --include \ | |
263 | | --includ | --inclu | --incl | --inc) | |
264 | ac_prev=includedir ;; | |
265 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
266 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
267 | includedir="$ac_optarg" ;; | |
268 | ||
269 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
270 | ac_prev=infodir ;; | |
271 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
272 | infodir="$ac_optarg" ;; | |
273 | ||
274 | -libdir | --libdir | --libdi | --libd) | |
275 | ac_prev=libdir ;; | |
276 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
277 | libdir="$ac_optarg" ;; | |
278 | ||
279 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
280 | | --libexe | --libex | --libe) | |
281 | ac_prev=libexecdir ;; | |
282 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
283 | | --libexe=* | --libex=* | --libe=*) | |
284 | libexecdir="$ac_optarg" ;; | |
285 | ||
286 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
287 | | --localstate | --localstat | --localsta | --localst \ | |
288 | | --locals | --local | --loca | --loc | --lo) | |
289 | ac_prev=localstatedir ;; | |
290 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
291 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
292 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
293 | localstatedir="$ac_optarg" ;; | |
294 | ||
295 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
296 | ac_prev=mandir ;; | |
297 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
298 | mandir="$ac_optarg" ;; | |
299 | ||
300 | -nfp | --nfp | --nf) | |
301 | # Obsolete; use --without-fp. | |
302 | with_fp=no ;; | |
303 | ||
304 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
305 | | --no-cr | --no-c) | |
306 | no_create=yes ;; | |
307 | ||
308 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
309 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
310 | no_recursion=yes ;; | |
311 | ||
312 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
313 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
314 | | --oldin | --oldi | --old | --ol | --o) | |
315 | ac_prev=oldincludedir ;; | |
316 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
317 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
318 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
319 | oldincludedir="$ac_optarg" ;; | |
320 | ||
321 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
322 | ac_prev=prefix ;; | |
323 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
324 | prefix="$ac_optarg" ;; | |
325 | ||
326 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
327 | | --program-pre | --program-pr | --program-p) | |
328 | ac_prev=program_prefix ;; | |
329 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
330 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
331 | program_prefix="$ac_optarg" ;; | |
332 | ||
333 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
334 | | --program-suf | --program-su | --program-s) | |
335 | ac_prev=program_suffix ;; | |
336 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
337 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
338 | program_suffix="$ac_optarg" ;; | |
339 | ||
340 | -program-transform-name | --program-transform-name \ | |
341 | | --program-transform-nam | --program-transform-na \ | |
342 | | --program-transform-n | --program-transform- \ | |
343 | | --program-transform | --program-transfor \ | |
344 | | --program-transfo | --program-transf \ | |
345 | | --program-trans | --program-tran \ | |
346 | | --progr-tra | --program-tr | --program-t) | |
347 | ac_prev=program_transform_name ;; | |
348 | -program-transform-name=* | --program-transform-name=* \ | |
349 | | --program-transform-nam=* | --program-transform-na=* \ | |
350 | | --program-transform-n=* | --program-transform-=* \ | |
351 | | --program-transform=* | --program-transfor=* \ | |
352 | | --program-transfo=* | --program-transf=* \ | |
353 | | --program-trans=* | --program-tran=* \ | |
354 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
355 | program_transform_name="$ac_optarg" ;; | |
356 | ||
357 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
358 | | -silent | --silent | --silen | --sile | --sil) | |
359 | silent=yes ;; | |
360 | ||
361 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
362 | ac_prev=sbindir ;; | |
363 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
364 | | --sbi=* | --sb=*) | |
365 | sbindir="$ac_optarg" ;; | |
366 | ||
367 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
368 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
369 | | --sharedst | --shareds | --shared | --share | --shar \ | |
370 | | --sha | --sh) | |
371 | ac_prev=sharedstatedir ;; | |
372 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
373 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
374 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
375 | | --sha=* | --sh=*) | |
376 | sharedstatedir="$ac_optarg" ;; | |
377 | ||
378 | -site | --site | --sit) | |
379 | ac_prev=site ;; | |
380 | -site=* | --site=* | --sit=*) | |
381 | site="$ac_optarg" ;; | |
382 | ||
383 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
384 | ac_prev=srcdir ;; | |
385 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
386 | srcdir="$ac_optarg" ;; | |
387 | ||
388 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
389 | | --syscon | --sysco | --sysc | --sys | --sy) | |
390 | ac_prev=sysconfdir ;; | |
391 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
392 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
393 | sysconfdir="$ac_optarg" ;; | |
394 | ||
395 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
396 | ac_prev=target ;; | |
397 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
398 | target="$ac_optarg" ;; | |
399 | ||
400 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
401 | verbose=yes ;; | |
402 | ||
403 | -version | --version | --versio | --versi | --vers) | |
a808d541 | 404 | echo "configure generated by autoconf version 2.13" |
cd6ede75 UD |
405 | exit 0 ;; |
406 | ||
407 | -with-* | --with-*) | |
408 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
409 | # Reject names that are not valid shell variable names. | |
410 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
411 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
412 | fi | |
413 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
414 | case "$ac_option" in | |
415 | *=*) ;; | |
416 | *) ac_optarg=yes ;; | |
417 | esac | |
418 | eval "with_${ac_package}='$ac_optarg'" ;; | |
419 | ||
420 | -without-* | --without-*) | |
421 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
422 | # Reject names that are not valid shell variable names. | |
423 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
424 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
425 | fi | |
426 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
427 | eval "with_${ac_package}=no" ;; | |
428 | ||
429 | --x) | |
430 | # Obsolete; use --with-x. | |
431 | with_x=yes ;; | |
432 | ||
433 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
434 | | --x-incl | --x-inc | --x-in | --x-i) | |
435 | ac_prev=x_includes ;; | |
436 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
437 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
438 | x_includes="$ac_optarg" ;; | |
439 | ||
440 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
441 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
442 | ac_prev=x_libraries ;; | |
443 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
444 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
445 | x_libraries="$ac_optarg" ;; | |
446 | ||
447 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
448 | ;; | |
449 | ||
450 | *) | |
451 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
452 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
453 | fi | |
454 | if test "x$nonopt" != xNONE; then | |
455 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
456 | fi | |
457 | nonopt="$ac_option" | |
458 | ;; | |
459 | ||
460 | esac | |
461 | done | |
462 | ||
463 | if test -n "$ac_prev"; then | |
464 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
465 | fi | |
466 | ||
467 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
468 | ||
469 | # File descriptor usage: | |
470 | # 0 standard input | |
471 | # 1 file creation | |
472 | # 2 errors and warnings | |
473 | # 3 some systems may open it to /dev/tty | |
474 | # 4 used on the Kubota Titan | |
475 | # 6 checking for... messages and results | |
476 | # 5 compiler messages saved in config.log | |
477 | if test "$silent" = yes; then | |
478 | exec 6>/dev/null | |
479 | else | |
480 | exec 6>&1 | |
481 | fi | |
482 | exec 5>./config.log | |
483 | ||
484 | echo "\ | |
485 | This file contains any messages produced by compilers while | |
486 | running configure, to aid debugging if configure makes a mistake. | |
487 | " 1>&5 | |
488 | ||
489 | # Strip out --no-create and --no-recursion so they do not pile up. | |
490 | # Also quote any args containing shell metacharacters. | |
491 | ac_configure_args= | |
492 | for ac_arg | |
493 | do | |
494 | case "$ac_arg" in | |
495 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
496 | | --no-cr | --no-c) ;; | |
497 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
498 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
499 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
500 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
501 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
502 | esac | |
503 | done | |
504 | ||
505 | # NLS nuisances. | |
506 | # Only set these to C if already set. These must not be set unconditionally | |
507 | # because not all systems understand e.g. LANG=C (notably SCO). | |
508 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
509 | # Non-C LC_CTYPE values break the ctype check. | |
510 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
511 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
512 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
513 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
514 | ||
515 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
516 | rm -rf conftest* confdefs.h | |
517 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
518 | echo > confdefs.h | |
519 | ||
520 | # A filename unique to this package, relative to the directory that | |
521 | # configure is in, which we can look for to find out if srcdir is correct. | |
522 | ac_unique_file=include/features.h | |
523 | ||
524 | # Find the source files, if location was not specified. | |
525 | if test -z "$srcdir"; then | |
526 | ac_srcdir_defaulted=yes | |
527 | # Try the directory containing this script, then its parent. | |
528 | ac_prog=$0 | |
529 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
530 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
531 | srcdir=$ac_confdir | |
532 | if test ! -r $srcdir/$ac_unique_file; then | |
533 | srcdir=.. | |
534 | fi | |
535 | else | |
536 | ac_srcdir_defaulted=no | |
537 | fi | |
538 | if test ! -r $srcdir/$ac_unique_file; then | |
539 | if test "$ac_srcdir_defaulted" = yes; then | |
540 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
541 | else | |
542 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
543 | fi | |
544 | fi | |
545 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
546 | ||
547 | # Prefer explicitly selected file to automatically selected ones. | |
548 | if test -z "$CONFIG_SITE"; then | |
549 | if test "x$prefix" != xNONE; then | |
550 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
551 | else | |
552 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
553 | fi | |
554 | fi | |
555 | for ac_site_file in $CONFIG_SITE; do | |
556 | if test -r "$ac_site_file"; then | |
557 | echo "loading site script $ac_site_file" | |
558 | . "$ac_site_file" | |
559 | fi | |
560 | done | |
561 | ||
562 | if test -r "$cache_file"; then | |
563 | echo "loading cache $cache_file" | |
a808d541 | 564 | . $cache_file |
cd6ede75 UD |
565 | else |
566 | echo "creating cache $cache_file" | |
567 | > $cache_file | |
568 | fi | |
569 | ||
570 | ac_ext=c | |
571 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
572 | ac_cpp='$CPP $CPPFLAGS' | |
573 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5c2a0669 | 574 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
cd6ede75 UD |
575 | cross_compiling=$ac_cv_prog_cc_cross |
576 | ||
5c2a0669 UD |
577 | ac_exeext= |
578 | ac_objext=o | |
cd6ede75 UD |
579 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
580 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
581 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
582 | ac_n= ac_c=' | |
583 | ' ac_t=' ' | |
584 | else | |
585 | ac_n=-n ac_c= ac_t= | |
586 | fi | |
587 | else | |
588 | ac_n= ac_c='\c' ac_t= | |
589 | fi | |
590 | ||
63bda0c1 UD |
591 | if test -r /vmunix; then |
592 | kernel_id=`strings /vmunix | grep UNIX` | |
593 | elif test -r /dynix; then | |
594 | kernel_id=`strings /dynix | grep DYNIX` | |
595 | else | |
596 | kernel_id= | |
597 | fi | |
598 | ||
cd6ede75 UD |
599 | |
600 | ||
444518fe UD |
601 | ac_aux_dir= |
602 | for ac_dir in scripts $srcdir/scripts; do | |
603 | if test -f $ac_dir/install-sh; then | |
604 | ac_aux_dir=$ac_dir | |
605 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
606 | break | |
607 | elif test -f $ac_dir/install.sh; then | |
608 | ac_aux_dir=$ac_dir | |
609 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
610 | break | |
611 | fi | |
612 | done | |
613 | if test -z "$ac_aux_dir"; then | |
614 | { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; } | |
615 | fi | |
a808d541 UD |
616 | ac_config_guess=$ac_aux_dir/config.guess |
617 | ac_config_sub=$ac_aux_dir/config.sub | |
618 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
444518fe | 619 | |
cd6ede75 UD |
620 | |
621 | # This will get text that should go into config.make. | |
622 | config_vars= | |
623 | ||
624 | # Check for a --with-gmp argument and set gmp-srcdir in config.make. | |
625 | # Check whether --with-gmp or --without-gmp was given. | |
626 | if test "${with_gmp+set}" = set; then | |
627 | withval="$with_gmp" | |
628 | case "$with_gmp" in | |
629 | yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;; | |
630 | ''|no) ;; | |
631 | *) config_vars="$config_vars | |
632 | gmp-srcdir = $withval" ;; | |
633 | esac | |
634 | ||
635 | fi | |
636 | ||
c8f3e6db UD |
637 | # Check for a --with-gd argument and set libgd-LDFLAGS in config.make. |
638 | # Check whether --with-gd or --without-gd was given. | |
639 | if test "${with_gd+set}" = set; then | |
640 | withval="$with_gd" | |
641 | case "$with_gd" in | |
e41db95b UD |
642 | yes|''|no) ;; |
643 | *) libgd_include="-I$withval/include" | |
c8f3e6db UD |
644 | libgd_ldflags="-L$withval/lib" ;; |
645 | esac | |
646 | ||
647 | fi | |
648 | ||
e41db95b UD |
649 | # Check whether --with-gd-include or --without-gd-include was given. |
650 | if test "${with_gd_include+set}" = set; then | |
651 | withval="$with_gd_include" | |
652 | case "$with_gd_include" in | |
653 | ''|no) ;; | |
654 | *) libgd_include="-I$withval" ;; | |
655 | esac | |
656 | ||
657 | fi | |
658 | ||
659 | # Check whether --with-gd-lib or --without-gd-lib was given. | |
660 | if test "${with_gd_lib+set}" = set; then | |
661 | withval="$with_gd_lib" | |
662 | case "$with_gd_lib" in | |
663 | ''|no) ;; | |
664 | *) libgd_ldflags="-L$withval" ;; | |
665 | esac | |
666 | ||
667 | fi | |
668 | ||
669 | ||
670 | if test -n "$libgd_include"; then | |
671 | config_vars="$config_vars | |
cf90163d | 672 | CFLAGS-memusagestat.c = $libgd_include" |
e41db95b UD |
673 | fi |
674 | if test -n "$libgd_ldflags"; then | |
675 | config_vars="$config_vars | |
676 | libgd-LDFLAGS = $libgd_ldflags" | |
677 | fi | |
cd6ede75 UD |
678 | |
679 | # Check whether --with-fp or --without-fp was given. | |
680 | if test "${with_fp+set}" = set; then | |
681 | withval="$with_fp" | |
682 | with_fp=$withval | |
683 | else | |
684 | with_fp=yes | |
685 | fi | |
686 | ||
675322a5 | 687 | |
650425ce UD |
688 | # Check whether --with-binutils or --without-binutils was given. |
689 | if test "${with_binutils+set}" = set; then | |
690 | withval="$with_binutils" | |
a5a0310d UD |
691 | path_binutils=$withval |
692 | else | |
650425ce | 693 | path_binutils='' |
cd6ede75 UD |
694 | fi |
695 | ||
cd6ede75 UD |
696 | # Check whether --with-elf or --without-elf was given. |
697 | if test "${with_elf+set}" = set; then | |
698 | withval="$with_elf" | |
699 | elf=$withval | |
700 | else | |
701 | elf=no | |
702 | fi | |
703 | ||
5af3245a UD |
704 | # Check whether --with-xcoff or --without-xcoff was given. |
705 | if test "${with_xcoff+set}" = set; then | |
706 | withval="$with_xcoff" | |
707 | xcoff=$withval | |
708 | else | |
709 | xcoff=no | |
710 | fi | |
711 | ||
d67281a7 UD |
712 | # Check whether --with-cvs or --without-cvs was given. |
713 | if test "${with_cvs+set}" = set; then | |
714 | withval="$with_cvs" | |
715 | with_cvs=$withval | |
716 | else | |
717 | with_cvs=yes | |
718 | fi | |
719 | ||
6b3f2b3d UD |
720 | if test "$with_cvs" = yes; then |
721 | if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null | |
722 | then | |
723 | with_cvs=no | |
724 | fi | |
4442d7e8 | 725 | fi |
d67281a7 | 726 | |
cd6ede75 | 727 | |
3c720987 UD |
728 | # Check whether --with-headers or --without-headers was given. |
729 | if test "${with_headers+set}" = set; then | |
730 | withval="$with_headers" | |
731 | sysheaders=$withval | |
732 | else | |
733 | sysheaders='' | |
734 | fi | |
735 | ||
736 | ||
cd6ede75 UD |
737 | # Check whether --enable-sanity-checks or --disable-sanity-checks was given. |
738 | if test "${enable_sanity_checks+set}" = set; then | |
739 | enableval="$enable_sanity_checks" | |
740 | enable_sanity=$enableval | |
741 | else | |
742 | enable_sanity=yes | |
743 | fi | |
744 | ||
745 | ||
5c2a0669 | 746 | static=yes |
cd6ede75 UD |
747 | # Check whether --enable-shared or --disable-shared was given. |
748 | if test "${enable_shared+set}" = set; then | |
749 | enableval="$enable_shared" | |
750 | shared=$enableval | |
751 | else | |
752 | shared=default | |
753 | fi | |
754 | ||
755 | # Check whether --enable-profile or --disable-profile was given. | |
756 | if test "${enable_profile+set}" = set; then | |
757 | enableval="$enable_profile" | |
758 | profile=$enableval | |
759 | else | |
760 | profile=yes | |
761 | fi | |
762 | ||
763 | # Check whether --enable-omitfp or --disable-omitfp was given. | |
764 | if test "${enable_omitfp+set}" = set; then | |
765 | enableval="$enable_omitfp" | |
766 | omitfp=$enableval | |
767 | else | |
768 | omitfp=no | |
769 | fi | |
770 | ||
771 | # Check whether --enable-bounded or --disable-bounded was given. | |
772 | if test "${enable_bounded+set}" = set; then | |
773 | enableval="$enable_bounded" | |
774 | bounded=$enableval | |
775 | else | |
776 | bounded=no | |
777 | fi | |
778 | ||
650425ce UD |
779 | # Check whether --enable-versioning or --disable-versioning was given. |
780 | if test "${enable_versioning+set}" = set; then | |
781 | enableval="$enable_versioning" | |
782 | enable_versioning=$enableval | |
783 | else | |
784 | enable_versioning=yes | |
785 | fi | |
786 | ||
cd6ede75 | 787 | |
62ab42d6 UD |
788 | # Check whether --enable-oldest-abi or --disable-oldest-abi was given. |
789 | if test "${enable_oldest_abi+set}" = set; then | |
790 | enableval="$enable_oldest_abi" | |
791 | oldest_abi=$enableval | |
792 | else | |
793 | oldest_abi=no | |
794 | fi | |
795 | ||
796 | if test "$oldest_abi" = yes || test "$oldest_abi" = no; then | |
797 | oldest_abi=default | |
798 | else | |
799 | cat >> confdefs.h <<EOF | |
800 | #define GLIBC_OLDEST_ABI "$oldest_abi" | |
801 | EOF | |
802 | ||
803 | fi | |
804 | ||
805 | ||
cd6ede75 UD |
806 | # Check whether --enable-add-ons or --disable-add-ons was given. |
807 | if test "${enable_add_ons+set}" = set; then | |
808 | enableval="$enable_add_ons" | |
61952351 | 809 | case "$enableval" in |
9c4c0024 UD |
810 | yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'` |
811 | test "$add_ons" = "*" && add_ons= ;; | |
61952351 UD |
812 | *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;; |
813 | esac | |
cd6ede75 UD |
814 | else |
815 | add_ons= | |
816 | fi | |
817 | ||
61952351 | 818 | |
8d4b5a8a UD |
819 | # Check whether --with-tls or --without-tls was given. |
820 | if test "${with_tls+set}" = set; then | |
821 | withval="$with_tls" | |
822 | usetls=$withval | |
823 | else | |
9cce206e | 824 | usetls=no |
8d4b5a8a UD |
825 | fi |
826 | ||
827 | ||
749a9a4f RM |
828 | # Check whether --enable-hidden-plt or --disable-hidden-plt was given. |
829 | if test "${enable_hidden_plt+set}" = set; then | |
830 | enableval="$enable_hidden_plt" | |
831 | hidden=$enableval | |
832 | else | |
833 | hidden=yes | |
834 | fi | |
835 | ||
836 | if test "x$hidden" = xno; then | |
837 | cat >> confdefs.h <<\EOF | |
838 | #define NO_HIDDEN 1 | |
839 | EOF | |
840 | ||
841 | fi | |
842 | ||
cd6ede75 UD |
843 | subdirs="$add_ons" |
844 | ||
845 | add_ons_pfx= | |
846 | if test x"$add_ons" != x; then | |
847 | for f in $add_ons; do | |
aa44a9de AJ |
848 | # Some sanity checks |
849 | if test "$f" = "crypt"; then | |
850 | { echo "configure: error: | |
851 | *** It seems that you're using an old \`crypt' add-on. crypt is now | |
852 | *** part of glibc and using the old add-on will not work with this | |
853 | *** release. Start again with fresh sources and without the old | |
854 | *** \`crypt' add-on." 1>&2; exit 1; } | |
855 | fi | |
856 | if test "$f" = "localedata"; then | |
857 | { echo "configure: error: | |
858 | *** It seems that you're using an old \`localedata' add-on. localedata | |
859 | *** is now part of glibc and using the old add-on will not work with | |
860 | *** this release. Start again with fresh sources and without the old | |
861 | *** \`localedata' add-on." 1>&2; exit 1; } | |
862 | fi | |
af6f3906 UD |
863 | # Test whether such a subdir really exists. |
864 | if test -d $srcdir/$f; then | |
865 | add_ons_pfx="$add_ons_pfx $f/" | |
866 | else | |
867 | { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; } | |
868 | fi | |
cd6ede75 UD |
869 | done |
870 | fi | |
871 | ||
872 | # Check whether --enable-static-nss or --disable-static-nss was given. | |
873 | if test "${enable_static_nss+set}" = set; then | |
874 | enableval="$enable_static_nss" | |
875 | static_nss=$enableval | |
876 | else | |
877 | static_nss=no | |
878 | fi | |
879 | ||
834cef7c | 880 | if test x"$static_nss" = xyes || test x"$shared" = xno; then |
3172f58f | 881 | static_nss=yes |
cd6ede75 UD |
882 | cat >> confdefs.h <<\EOF |
883 | #define DO_STATIC_NSS 1 | |
884 | EOF | |
885 | ||
886 | fi | |
887 | ||
73237de3 UD |
888 | # Check whether --enable-force-install or --disable-force-install was given. |
889 | if test "${enable_force_install+set}" = set; then | |
890 | enableval="$enable_force_install" | |
891 | force_install=$enableval | |
892 | else | |
893 | force_install=yes | |
894 | fi | |
895 | ||
896 | ||
897 | ||
958f238f UD |
898 | # Check whether --enable-kernel or --disable-kernel was given. |
899 | if test "${enable_kernel+set}" = set; then | |
900 | enableval="$enable_kernel" | |
901 | minimum_kernel=$enableval | |
cd6ede75 UD |
902 | fi |
903 | ||
654de60c UD |
904 | if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then |
905 | # Better nothing than this. | |
906 | minimum_kernel="" | |
78bba25c UD |
907 | else |
908 | if test "$minimum_kernel" = current; then | |
909 | minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel= | |
910 | fi | |
654de60c | 911 | fi |
958f238f | 912 | |
6cc7d725 UD |
913 | # Check whether --enable-all-warnings or --disable-all-warnings was given. |
914 | if test "${enable_all_warnings+set}" = set; then | |
915 | enableval="$enable_all_warnings" | |
916 | all_warnings=$enableval | |
917 | fi | |
918 | ||
919 | ||
958f238f | 920 | |
2a068d20 | 921 | |
958f238f | 922 | # Make sure we can run config.sub. |
a808d541 UD |
923 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
924 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
958f238f UD |
925 | fi |
926 | ||
a808d541 | 927 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
749a9a4f | 928 | echo "configure:929: checking host system type" >&5 |
958f238f | 929 | |
a808d541 UD |
930 | host_alias=$host |
931 | case "$host_alias" in | |
932 | NONE) | |
933 | case $nonopt in | |
934 | NONE) | |
935 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
936 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
937 | fi ;; | |
938 | *) host_alias=$nonopt ;; | |
939 | esac ;; | |
940 | esac | |
cd6ede75 | 941 | |
a808d541 UD |
942 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
943 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
944 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
945 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
946 | echo "$ac_t""$host" 1>&6 | |
cd6ede75 UD |
947 | |
948 | ||
949 | # The way shlib-versions is used to generate soversions.mk uses a | |
950 | # fairly simplistic model for name recognition that can't distinguish | |
951 | # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os | |
952 | # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can | |
953 | # tell. This doesn't get used much beyond that, so it's fairly safe. | |
954 | case "$host_os" in | |
955 | linux*) | |
956 | ;; | |
957 | gnu*) | |
958 | host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'` | |
959 | ;; | |
960 | esac | |
961 | ||
962 | # We keep the original values in `$config_*' and never modify them, so we | |
963 | # can write them unchanged into config.make. Everything else uses | |
964 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
965 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
966 | ||
0816838f UD |
967 | # Don't allow vendor == "unknown" |
968 | test "$config_vendor" = unknown && config_vendor= | |
969 | config_os="`echo $config_os | sed 's/^unknown-//'`" | |
970 | ||
cd6ede75 UD |
971 | # Some configurations imply other options. |
972 | case "$host_os" in | |
973 | gnu* | linux* | bsd4.4* | netbsd* | freebsd*) | |
974 | # These systems always use GNU tools. | |
975 | gnu_ld=yes gnu_as=yes ;; | |
976 | esac | |
977 | case "$host_os" in | |
978 | # i586-linuxaout is mangled into i586-pc-linux-gnuaout | |
979 | linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*) | |
980 | ;; | |
ffa8d2a0 | 981 | gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*) |
cd6ede75 UD |
982 | # These systems (almost) always use the ELF format. |
983 | elf=yes | |
984 | ;; | |
5af3245a UD |
985 | aix*) |
986 | # These systems are always xcoff | |
987 | xcoff=yes | |
a711b01d | 988 | elf=no |
5af3245a | 989 | ;; |
cd6ede75 UD |
990 | esac |
991 | ||
992 | machine=$config_machine | |
993 | vendor=$config_vendor | |
994 | os=$config_os | |
995 | ||
a808d541 UD |
996 | # config.guess on some IBM machines says `rs6000' instead of `powerpc'. |
997 | # Unify this here. | |
998 | if test "$machine" = rs6000; then | |
999 | machine="powerpc" | |
1000 | fi | |
1001 | ||
7efb9bd1 UD |
1002 | ### |
1003 | ### I put this here to prevent those annoying emails from people who cannot | |
1004 | ### read and try to compile glibc on unsupported platforms. --drepper | |
1005 | ### | |
1006 | ### By using the undocumented --enable-hacker-mode option for configure | |
1007 | ### one can skip this test to make the configuration not fail for unsupported | |
1008 | ### platforms. | |
1009 | ### | |
1010 | if test -z "$enable_hacker_mode"; then | |
1011 | case "$machine-$host_os" in | |
f0d8cfd7 | 1012 | *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*) |
7efb9bd1 UD |
1013 | ;; |
1014 | *) | |
1015 | echo "*** The GNU C library is currently not available for this platform." | |
1016 | echo "*** So far nobody cared to port it and if there is no volunteer it" | |
1017 | echo "*** might never happen. So, if you have interest to see glibc on" | |
1018 | echo "*** this platform visit" | |
1019 | echo "*** http://www.gnu.org/software/libc/porting.html" | |
1020 | echo "*** and join the group of porters" | |
1021 | exit 1 | |
1022 | ;; | |
1023 | esac | |
1024 | fi | |
1025 | ||
cd6ede75 UD |
1026 | # Expand the configuration machine name into a subdirectory by architecture |
1027 | # type and particular chip. | |
1028 | case "$machine" in | |
1029 | a29k | am29000) base_machine=a29k machine=a29k ;; | |
1030 | alpha*) base_machine=alpha machine=alpha/$machine ;; | |
0c8b61e6 | 1031 | arm*) base_machine=arm machine=arm/arm32/$machine ;; |
60c96635 UD |
1032 | c3[012]) base_machine=cx0 machine=cx0/c30 ;; |
1033 | c4[04]) base_machine=cx0 machine=cx0/c40 ;; | |
b15cb495 UD |
1034 | hppa*64*) base_machine=hppa machine=hppa/hppa64 ;; |
1035 | hppa*) base_machine=hppa machine=hppa/hppa1.1 ;; | |
cd6ede75 | 1036 | i[3456]86) base_machine=i386 machine=i386/$machine ;; |
9dfa9a5a | 1037 | ia64) base_machine=ia64 machine=ia64 ;; |
cd6ede75 UD |
1038 | m680?0) base_machine=m68k machine=m68k/$machine ;; |
1039 | m68k) base_machine=m68k machine=m68k/m68020 ;; | |
1040 | m88???) base_machine=m88k machine=m88k/$machine ;; | |
1041 | m88k) base_machine=m88k machine=m88k/m88100 ;; | |
1042 | mips64*) base_machine=mips64 machine=mips/mips64/$machine ;; | |
2b904739 | 1043 | mips*) base_machine=mips machine=mips/$machine ;; |
a8a20be0 UD |
1044 | powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;; |
1045 | powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;; | |
136d4332 UD |
1046 | s390) base_machine=s390 machine=s390/s390-32 ;; |
1047 | s390x) base_machine=s390 machine=s390/s390-64 ;; | |
0da2f50b UD |
1048 | sh3*) base_machine=sh machine=sh/sh3 ;; |
1049 | sh4*) base_machine=sh machine=sh/sh4 ;; | |
ca34d7a7 UD |
1050 | sparc | sparcv[67]) |
1051 | base_machine=sparc machine=sparc/sparc32 ;; | |
1052 | sparcv8 | supersparc | hypersparc) | |
1053 | base_machine=sparc machine=sparc/sparc32/sparcv8 ;; | |
ae6b8730 RH |
1054 | sparcv8plus | sparcv8plusa | sparcv9) |
1055 | base_machine=sparc machine=sparc/sparc32/sparcv9 ;; | |
bb769ab6 UD |
1056 | sparcv8plusb | sparcv9b) |
1057 | base_machine=sparc machine=sparc/sparc32/sparcv9b ;; | |
ca34d7a7 UD |
1058 | sparc64 | ultrasparc) |
1059 | base_machine=sparc machine=sparc/sparc64 ;; | |
bb769ab6 UD |
1060 | sparc64b | ultrasparc3) |
1061 | base_machine=sparc machine=sparc/sparc64/sparcv9b ;; | |
0c8b61e6 | 1062 | thumb*) base_machine=thumb machine=arm/thumb/$machine ;; |
3a2832a0 | 1063 | *) base_machine=$machine ;; |
cd6ede75 UD |
1064 | esac |
1065 | ||
1066 | ||
dfd2257a UD |
1067 | if test "$base_machine" = "i386"; then |
1068 | cat >> confdefs.h <<\EOF | |
1069 | #define USE_REGPARMS 1 | |
1070 | EOF | |
1071 | ||
1072 | fi | |
1073 | ||
cd6ede75 UD |
1074 | # Compute the list of sysdep directories for this configuration. |
1075 | # This can take a while to compute. | |
1076 | sysdep_dir=$srcdir/sysdeps | |
1077 | echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6 | |
749a9a4f | 1078 | echo "configure:1079: checking sysdep dirs" >&5 |
cd6ede75 UD |
1079 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. |
1080 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" | |
1081 | ||
1082 | case "$os" in | |
1083 | gnu*) | |
1084 | base_os=mach/hurd ;; | |
1085 | netbsd* | 386bsd* | freebsd* | bsdi*) | |
1086 | base_os=unix/bsd/bsd4.4 ;; | |
1087 | osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*) | |
1088 | base_os=unix/bsd ;; | |
1089 | sysv* | isc* | esix* | sco* | minix* | irix4* | linux*) | |
1090 | base_os=unix/sysv ;; | |
9a97d1f7 UD |
1091 | irix6*) |
1092 | base_os=unix/sysv/irix6/$os ;; | |
cd6ede75 UD |
1093 | solaris[2-9]*) |
1094 | base_os=unix/sysv/sysv4 ;; | |
908c3d5b UD |
1095 | hpux*) |
1096 | base_os=unix/sysv/hpux/$os ;; | |
f0d8cfd7 UD |
1097 | aix4.3*) |
1098 | base_os=unix/sysv/aix/aix4.3 ;; | |
cd6ede75 UD |
1099 | none) |
1100 | base_os=standalone ;; | |
1101 | *) | |
1102 | base_os='' ;; | |
1103 | esac | |
1104 | ||
1105 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. | |
1106 | tail=$os | |
1107 | ostry=$os | |
1108 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
1109 | ostry="$ostry /$o" | |
1110 | tail=$o | |
1111 | done | |
1112 | o=`echo $tail | sed 's/[0-9]*$//'` | |
1113 | if test $o != $tail; then | |
1114 | ostry="$ostry /$o" | |
1115 | fi | |
1116 | # For linux-gnu, try linux-gnu, then linux. | |
1117 | o=`echo $tail | sed 's/-.*$//'` | |
1118 | if test $o != $tail; then | |
1119 | ostry="$ostry /$o" | |
1120 | fi | |
1121 | ||
1122 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. | |
1123 | base= | |
1124 | tail=$base_os | |
1125 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
1126 | set $b | |
1127 | base="$base /$1" | |
1128 | tail="$2" | |
1129 | done | |
1130 | ||
ae6b8730 | 1131 | # For sparc/sparc32, try sparc/sparc32 and then sparc. |
cd6ede75 UD |
1132 | mach= |
1133 | tail=$machine | |
1134 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
1135 | set $m | |
1136 | # Prepend the machine's FPU directory unless --without-fp. | |
1137 | if test "$with_fp" = yes; then | |
1138 | mach="$mach /$1/fpu" | |
1139 | fi | |
1140 | mach="$mach /$1" | |
1141 | tail="$2" | |
1142 | done | |
1143 | ||
1144 | ||
1145 | # Find what sysdep directories exist. | |
1146 | sysnames= | |
1147 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1148 | for d in $add_ons_pfx ''; do | |
1149 | for b in $base ''; do | |
1150 | for m0 in $mach ''; do | |
1151 | for v in /$vendor ''; do | |
ae828bc6 | 1152 | test "$v" = / && continue |
cd6ede75 | 1153 | for o in /$ostry ''; do |
ae828bc6 | 1154 | test "$o" = / && continue |
cd6ede75 UD |
1155 | for m in $mach ''; do |
1156 | if test "$m0$b$v$o$m"; then | |
1157 | try="${d}sysdeps$m0$b$v$o$m" | |
1158 | test -n "$enable_debug_configure" && | |
1159 | echo "$0 DEBUG: try $try" >&2 | |
9c4c0024 | 1160 | if test -d $srcdir/$try; then |
cd6ede75 UD |
1161 | sysnames="$sysnames $try" |
1162 | { test -n "$o" || test -n "$b"; } && os_used=t | |
1163 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
1164 | fi | |
1165 | fi | |
1166 | done | |
1167 | done | |
1168 | done | |
1169 | done | |
1170 | done | |
1171 | done | |
1172 | IFS="$ac_save_ifs" | |
1173 | ||
1174 | if test -z "$os_used" && test "$os" != none; then | |
1175 | { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; } | |
1176 | fi | |
1177 | if test -z "$machine_used" && test "$machine" != none; then | |
1178 | { echo "configure: error: The $machine is not supported." 1>&2; exit 1; } | |
1179 | fi | |
1180 | ||
1181 | # We have now validated the configuration. | |
1182 | ||
1183 | ||
1184 | # If using ELF, look for an `elf' subdirectory of each machine directory. | |
1185 | # We prepend these rather than inserting them whereever the machine appears | |
1186 | # because things specified by the machine's ELF ABI should override | |
1187 | # OS-specific things, and should always be the same for any OS on the | |
1188 | # machine (otherwise what's the point of an ABI?). | |
1189 | if test "$elf" = yes; then | |
1190 | elf_dirs= | |
1191 | for d in $add_ons_pfx ''; do | |
cd6ede75 | 1192 | for m in $mach; do |
9c4c0024 | 1193 | if test -d $srcdir/${d}sysdeps$m/elf; then |
cd6ede75 UD |
1194 | elf_dirs="$elf_dirs ${d}sysdeps$m/elf" |
1195 | fi | |
1196 | done | |
1197 | done | |
1198 | sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames" | |
1199 | fi | |
1200 | ||
1201 | ||
1202 | # Expand the list of system names into a full list of directories | |
1203 | # from each element's parent name and Implies file (if present). | |
1204 | set $sysnames | |
1205 | names= | |
1206 | while test $# -gt 0; do | |
1207 | name=$1 | |
1208 | shift | |
1209 | ||
1210 | case " $names " in *" $name "*) | |
1211 | # Already in the list. | |
1212 | continue | |
1213 | esac | |
1214 | ||
1215 | # Report each name as we discover it, so there is no long pause in output. | |
1216 | echo $ac_n "$name $ac_c" >&6 | |
1217 | ||
1218 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` | |
1219 | ||
1220 | case $name in | |
1221 | /*) xsrcdir= ;; | |
1222 | *) xsrcdir=$srcdir/ ;; | |
1223 | esac | |
1224 | test -n "$enable_debug_configure" && | |
1225 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
1226 | ||
1227 | if test -f $xsrcdir$name/Implies; then | |
1228 | # Collect more names from the `Implies' file (removing comments). | |
1229 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`" | |
1230 | implied= | |
1231 | for x in $implied_candidate; do | |
636ccfc8 | 1232 | found=no |
cd6ede75 UD |
1233 | if test -d $xsrcdir$name_base/$x; then |
1234 | implied="$implied $name_base/$x"; | |
636ccfc8 UD |
1235 | found=yes |
1236 | fi | |
1237 | for d in $add_ons_pfx ''; do | |
1238 | try="${d}sysdeps/$x" | |
1239 | case $d in | |
1240 | /*) try_srcdir= ;; | |
1241 | *) try_srcdir=$srcdir/ ;; | |
1242 | esac | |
1243 | test -n "$enable_debug_configure" && | |
1244 | echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2 | |
1245 | if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try; | |
1246 | then | |
1247 | implied="$implied $try" | |
1248 | found=yes | |
1249 | fi | |
1250 | done | |
1251 | if test $found = no; then | |
cd6ede75 UD |
1252 | echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2 |
1253 | fi | |
1254 | done | |
1255 | else | |
1256 | implied= | |
1257 | fi | |
1258 | ||
1259 | # Add NAME to the list of names. | |
1260 | names="$names $name" | |
1261 | ||
1262 | # Find the parent of NAME, using the empty string if it has none. | |
1263 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" | |
1264 | ||
1265 | # Add the names implied by NAME, and NAME's parent (if it has one), to | |
1266 | # the list of names to be processed (the argument list). We prepend the | |
1267 | # implied names to the list and append the parent. We want implied | |
1268 | # directories to come before further directories inferred from the | |
1269 | # configuration components; this ensures that for sysv4, unix/common | |
1270 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
1271 | # after sysv4). | |
1272 | sysnames="`echo $implied $* $parent`" | |
1273 | test -n "$sysnames" && set $sysnames | |
1274 | done | |
1275 | ||
1276 | # Add the default directories. | |
a3a4a74e | 1277 | default_sysnames=sysdeps/generic |
2de7874e | 1278 | if test "$elf" = yes; then |
a3a4a74e | 1279 | default_sysnames="sysdeps/generic/elf $default_sysnames" |
2de7874e | 1280 | fi |
a3a4a74e | 1281 | sysnames="$names $default_sysnames" |
cd6ede75 UD |
1282 | |
1283 | # The other names were emitted during the scan. | |
a3a4a74e | 1284 | echo "$ac_t""$default_sysnames" 1>&6 |
cd6ede75 UD |
1285 | |
1286 | ||
1287 | ### Locate tools. | |
1288 | ||
1289 | # Find a good install program. We prefer a C program (faster), | |
1290 | # so one script is as good as another. But avoid the broken or | |
1291 | # incompatible versions: | |
1292 | # SysV /etc/install, /usr/sbin/install | |
1293 | # SunOS /usr/etc/install | |
1294 | # IRIX /sbin/install | |
1295 | # AIX /bin/install | |
5c2a0669 | 1296 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
cd6ede75 UD |
1297 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1298 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1299 | # ./install, which can be erroneously created by make from ./install.sh. | |
1300 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
749a9a4f | 1301 | echo "configure:1302: checking for a BSD compatible install" >&5 |
cd6ede75 | 1302 | if test -z "$INSTALL"; then |
a808d541 | 1303 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
cd6ede75 UD |
1304 | echo $ac_n "(cached) $ac_c" 1>&6 |
1305 | else | |
5c2a0669 | 1306 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
cd6ede75 UD |
1307 | for ac_dir in $PATH; do |
1308 | # Account for people who put trailing slashes in PATH elements. | |
1309 | case "$ac_dir/" in | |
1310 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1311 | *) | |
1312 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5c2a0669 UD |
1313 | # Don't use installbsd from OSF since it installs stuff as root |
1314 | # by default. | |
1315 | for ac_prog in ginstall scoinst install; do | |
cd6ede75 UD |
1316 | if test -f $ac_dir/$ac_prog; then |
1317 | if test $ac_prog = install && | |
1318 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1319 | # AIX install. It has an incompatible calling convention. | |
cd6ede75 UD |
1320 | : |
1321 | else | |
1322 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1323 | break 2 | |
1324 | fi | |
1325 | fi | |
1326 | done | |
1327 | ;; | |
1328 | esac | |
1329 | done | |
1330 | IFS="$ac_save_IFS" | |
1331 | ||
1332 | fi | |
1333 | if test "${ac_cv_path_install+set}" = set; then | |
1334 | INSTALL="$ac_cv_path_install" | |
1335 | else | |
1336 | # As a last resort, use the slow shell script. We don't cache a | |
1337 | # path for INSTALL within a source directory, because that will | |
1338 | # break other packages using the cache if that directory is | |
1339 | # removed, or if the path is relative. | |
1340 | INSTALL="$ac_install_sh" | |
1341 | fi | |
1342 | fi | |
1343 | echo "$ac_t""$INSTALL" 1>&6 | |
1344 | ||
1345 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1346 | # It thinks the first close brace ends the variable substitution. | |
1347 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1348 | ||
a808d541 | 1349 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
5c2a0669 | 1350 | |
cd6ede75 UD |
1351 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1352 | ||
ed9c47d9 | 1353 | if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then |
cd6ede75 | 1354 | # The makefiles need to use a different form to find it in $srcdir. |
ed9c47d9 | 1355 | INSTALL='\$(..)./scripts/install-sh -c' |
cd6ede75 UD |
1356 | fi |
1357 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
749a9a4f | 1358 | echo "configure:1359: checking whether ln -s works" >&5 |
a808d541 | 1359 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
cd6ede75 UD |
1360 | echo $ac_n "(cached) $ac_c" 1>&6 |
1361 | else | |
1362 | rm -f conftestdata | |
1363 | if ln -s X conftestdata 2>/dev/null | |
1364 | then | |
1365 | rm -f conftestdata | |
1366 | ac_cv_prog_LN_S="ln -s" | |
1367 | else | |
1368 | ac_cv_prog_LN_S=ln | |
1369 | fi | |
1370 | fi | |
1371 | LN_S="$ac_cv_prog_LN_S" | |
1372 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1373 | echo "$ac_t""yes" 1>&6 | |
1374 | else | |
1375 | echo "$ac_t""no" 1>&6 | |
1376 | fi | |
1377 | ||
63bda0c1 | 1378 | |
c218729d UD |
1379 | # We need the physical current working directory. We cannot use the |
1380 | # "pwd -P" shell builtin since that's not portable. Instead we try to | |
1381 | # find a pwd binary. Note that assigning to the PWD environment | |
1382 | # variable might have some interesting side effects, so we don't do | |
1383 | # that. | |
1384 | # Extract the first word of "pwd", so it can be a program name with args. | |
1385 | set dummy pwd; ac_word=$2 | |
1386 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 1387 | echo "configure:1388: checking for $ac_word" >&5 |
c218729d UD |
1388 | if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then |
1389 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1390 | else | |
1391 | case "$PWD_P" in | |
1392 | /*) | |
1393 | ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path. | |
1394 | ;; | |
1395 | ?:/*) | |
1396 | ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a dos path. | |
1397 | ;; | |
1398 | *) | |
1399 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1400 | ac_dummy="$PATH" | |
1401 | for ac_dir in $ac_dummy; do | |
1402 | test -z "$ac_dir" && ac_dir=. | |
1403 | if test -f $ac_dir/$ac_word; then | |
1404 | ac_cv_path_PWD_P="$ac_dir/$ac_word" | |
1405 | break | |
1406 | fi | |
1407 | done | |
1408 | IFS="$ac_save_ifs" | |
1409 | test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no" | |
1410 | ;; | |
1411 | esac | |
1412 | fi | |
1413 | PWD_P="$ac_cv_path_PWD_P" | |
1414 | if test -n "$PWD_P"; then | |
1415 | echo "$ac_t""$PWD_P" 1>&6 | |
1416 | else | |
1417 | echo "$ac_t""no" 1>&6 | |
1418 | fi | |
1419 | ||
1420 | if test "$PWD_P" = no; then | |
1421 | { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; } | |
1422 | fi | |
1423 | ||
63bda0c1 | 1424 | # These programs are version sensitive. |
4bca4c17 | 1425 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
749a9a4f | 1426 | echo "configure:1427: checking build system type" >&5 |
a808d541 UD |
1427 | |
1428 | build_alias=$build | |
1429 | case "$build_alias" in | |
1430 | NONE) | |
1431 | case $nonopt in | |
1432 | NONE) build_alias=$host_alias ;; | |
1433 | *) build_alias=$nonopt ;; | |
1434 | esac ;; | |
1435 | esac | |
4bca4c17 | 1436 | |
a808d541 UD |
1437 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
1438 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1439 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1440 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1441 | echo "$ac_t""$build" 1>&6 | |
4bca4c17 UD |
1442 | |
1443 | if test $host != $build; then | |
1444 | ac_tool_prefix=${host_alias}- | |
1445 | else | |
1446 | ac_tool_prefix= | |
1447 | fi | |
1448 | ||
1449 | for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc | |
1450 | do | |
1451 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1452 | set dummy $ac_prog; ac_word=$2 | |
1453 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 1454 | echo "configure:1455: checking for $ac_word" >&5 |
a808d541 | 1455 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
cd6ede75 UD |
1456 | echo $ac_n "(cached) $ac_c" 1>&6 |
1457 | else | |
63bda0c1 UD |
1458 | if test -n "$CC"; then |
1459 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
cd6ede75 | 1460 | else |
5c2a0669 UD |
1461 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1462 | ac_dummy="$PATH" | |
1463 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
1464 | test -z "$ac_dir" && ac_dir=. |
1465 | if test -f $ac_dir/$ac_word; then | |
1466 | ac_cv_prog_CC="$ac_prog" | |
1467 | break | |
1468 | fi | |
cd6ede75 UD |
1469 | done |
1470 | IFS="$ac_save_ifs" | |
1471 | fi | |
1472 | fi | |
4bca4c17 UD |
1473 | CC="$ac_cv_prog_CC" |
1474 | if test -n "$CC"; then | |
1475 | echo "$ac_t""$CC" 1>&6 | |
1476 | else | |
cd6ede75 | 1477 | echo "$ac_t""no" 1>&6 |
4bca4c17 UD |
1478 | fi |
1479 | ||
1480 | test -n "$CC" && break | |
1481 | done | |
1482 | ||
1483 | if test -z "$CC"; then | |
1484 | ac_verc_fail=yes | |
63bda0c1 | 1485 | else |
4bca4c17 UD |
1486 | # Found it, now check the version. |
1487 | echo $ac_n "checking version of $CC""... $ac_c" 1>&6 | |
749a9a4f | 1488 | echo "configure:1489: checking version of $CC" >&5 |
9dfa9a5a | 1489 | ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
1490 | case $ac_prog_version in |
1491 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
90d1d40b | 1492 | 3.[2-9]*) |
4bca4c17 UD |
1493 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1494 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1495 | ||
63bda0c1 | 1496 | esac |
4bca4c17 UD |
1497 | echo "$ac_t""$ac_prog_version" 1>&6 |
1498 | fi | |
1499 | if test $ac_verc_fail = yes; then | |
90d1d40b | 1500 | critic_missing="$critic_missing gcc" |
ae828bc6 UD |
1501 | fi |
1502 | ||
22e65f8f | 1503 | for ac_prog in gnumake gmake make |
4bca4c17 UD |
1504 | do |
1505 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1506 | set dummy $ac_prog; ac_word=$2 | |
1507 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 1508 | echo "configure:1509: checking for $ac_word" >&5 |
a808d541 | 1509 | if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then |
04be94a8 UD |
1510 | echo $ac_n "(cached) $ac_c" 1>&6 |
1511 | else | |
63bda0c1 UD |
1512 | if test -n "$MAKE"; then |
1513 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
04be94a8 | 1514 | else |
5c2a0669 UD |
1515 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1516 | ac_dummy="$PATH" | |
1517 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
1518 | test -z "$ac_dir" && ac_dir=. |
1519 | if test -f $ac_dir/$ac_word; then | |
1520 | ac_cv_prog_MAKE="$ac_prog" | |
1521 | break | |
1522 | fi | |
04be94a8 UD |
1523 | done |
1524 | IFS="$ac_save_ifs" | |
1525 | fi | |
1526 | fi | |
4bca4c17 UD |
1527 | MAKE="$ac_cv_prog_MAKE" |
1528 | if test -n "$MAKE"; then | |
1529 | echo "$ac_t""$MAKE" 1>&6 | |
1530 | else | |
04be94a8 | 1531 | echo "$ac_t""no" 1>&6 |
4bca4c17 UD |
1532 | fi |
1533 | ||
1534 | test -n "$MAKE" && break | |
1535 | done | |
1536 | ||
1537 | if test -z "$MAKE"; then | |
1538 | ac_verc_fail=yes | |
63bda0c1 | 1539 | else |
4bca4c17 UD |
1540 | # Found it, now check the version. |
1541 | echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6 | |
749a9a4f | 1542 | echo "configure:1543: checking version of $MAKE" >&5 |
8fc1e2ca | 1543 | ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
1544 | case $ac_prog_version in |
1545 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
2bbc70d5 | 1546 | 3.79* | 3.[89]*) |
4bca4c17 UD |
1547 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1548 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1549 | ||
63bda0c1 | 1550 | esac |
4bca4c17 UD |
1551 | echo "$ac_t""$ac_prog_version" 1>&6 |
1552 | fi | |
1553 | if test $ac_verc_fail = yes; then | |
6b4e880f | 1554 | critic_missing="$critic_missing make" |
04be94a8 | 1555 | fi |
cd6ede75 | 1556 | |
63bda0c1 | 1557 | |
de83fb78 AJ |
1558 | |
1559 | if test -n "$critic_missing"; then | |
1560 | { echo "configure: error: | |
aefdff34 | 1561 | *** These critical programs are missing or too old:$critic_missing |
de83fb78 AJ |
1562 | *** Check the INSTALL file for required versions." 1>&2; exit 1; } |
1563 | fi | |
1564 | ||
1565 | ||
22e65f8f | 1566 | for ac_prog in gnumsgfmt gmsgfmt msgfmt |
4bca4c17 UD |
1567 | do |
1568 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1569 | set dummy $ac_prog; ac_word=$2 | |
1570 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 1571 | echo "configure:1572: checking for $ac_word" >&5 |
a808d541 | 1572 | if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then |
cd6ede75 UD |
1573 | echo $ac_n "(cached) $ac_c" 1>&6 |
1574 | else | |
63bda0c1 UD |
1575 | if test -n "$MSGFMT"; then |
1576 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
cd6ede75 | 1577 | else |
5c2a0669 UD |
1578 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1579 | ac_dummy="$PATH" | |
1580 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
1581 | test -z "$ac_dir" && ac_dir=. |
1582 | if test -f $ac_dir/$ac_word; then | |
1583 | ac_cv_prog_MSGFMT="$ac_prog" | |
1584 | break | |
1585 | fi | |
cd6ede75 UD |
1586 | done |
1587 | IFS="$ac_save_ifs" | |
1588 | fi | |
1589 | fi | |
4bca4c17 UD |
1590 | MSGFMT="$ac_cv_prog_MSGFMT" |
1591 | if test -n "$MSGFMT"; then | |
1592 | echo "$ac_t""$MSGFMT" 1>&6 | |
1593 | else | |
cd6ede75 | 1594 | echo "$ac_t""no" 1>&6 |
4bca4c17 UD |
1595 | fi |
1596 | ||
1597 | test -n "$MSGFMT" && break | |
1598 | done | |
1599 | ||
1600 | if test -z "$MSGFMT"; then | |
1601 | ac_verc_fail=yes | |
63bda0c1 | 1602 | else |
4bca4c17 UD |
1603 | # Found it, now check the version. |
1604 | echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6 | |
749a9a4f | 1605 | echo "configure:1606: checking version of $MSGFMT" >&5 |
bdd421cc | 1606 | ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
1607 | case $ac_prog_version in |
1608 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
fbd5e005 | 1609 | 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*) |
4bca4c17 UD |
1610 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1611 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1612 | ||
63bda0c1 | 1613 | esac |
4bca4c17 UD |
1614 | echo "$ac_t""$ac_prog_version" 1>&6 |
1615 | fi | |
1616 | if test $ac_verc_fail = yes; then | |
aefdff34 | 1617 | MSGFMT=: aux_missing="$aux_missing msgfmt" |
cd6ede75 UD |
1618 | fi |
1619 | ||
4bca4c17 UD |
1620 | for ac_prog in makeinfo |
1621 | do | |
1622 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1623 | set dummy $ac_prog; ac_word=$2 | |
1624 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 1625 | echo "configure:1626: checking for $ac_word" >&5 |
a808d541 | 1626 | if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then |
cd6ede75 UD |
1627 | echo $ac_n "(cached) $ac_c" 1>&6 |
1628 | else | |
63bda0c1 UD |
1629 | if test -n "$MAKEINFO"; then |
1630 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
cd6ede75 | 1631 | else |
5c2a0669 UD |
1632 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1633 | ac_dummy="$PATH" | |
1634 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
1635 | test -z "$ac_dir" && ac_dir=. |
1636 | if test -f $ac_dir/$ac_word; then | |
1637 | ac_cv_prog_MAKEINFO="$ac_prog" | |
1638 | break | |
1639 | fi | |
cd6ede75 UD |
1640 | done |
1641 | IFS="$ac_save_ifs" | |
cd6ede75 UD |
1642 | fi |
1643 | fi | |
4bca4c17 UD |
1644 | MAKEINFO="$ac_cv_prog_MAKEINFO" |
1645 | if test -n "$MAKEINFO"; then | |
1646 | echo "$ac_t""$MAKEINFO" 1>&6 | |
1647 | else | |
cd6ede75 | 1648 | echo "$ac_t""no" 1>&6 |
4bca4c17 UD |
1649 | fi |
1650 | ||
1651 | test -n "$MAKEINFO" && break | |
1652 | done | |
1653 | ||
1654 | if test -z "$MAKEINFO"; then | |
1655 | ac_verc_fail=yes | |
63bda0c1 | 1656 | else |
4bca4c17 UD |
1657 | # Found it, now check the version. |
1658 | echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6 | |
749a9a4f | 1659 | echo "configure:1660: checking version of $MAKEINFO" >&5 |
be1d9d95 | 1660 | ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
1661 | case $ac_prog_version in |
1662 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
1468be21 | 1663 | 4.*) |
4bca4c17 UD |
1664 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1665 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1666 | ||
63bda0c1 | 1667 | esac |
4bca4c17 UD |
1668 | echo "$ac_t""$ac_prog_version" 1>&6 |
1669 | fi | |
1670 | if test $ac_verc_fail = yes; then | |
aefdff34 | 1671 | MAKEINFO=: aux_missing="$aux_missing makeinfo" |
cd6ede75 UD |
1672 | fi |
1673 | ||
d6a97a28 | 1674 | for ac_prog in sed |
aec103d3 UD |
1675 | do |
1676 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1677 | set dummy $ac_prog; ac_word=$2 | |
1678 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 1679 | echo "configure:1680: checking for $ac_word" >&5 |
a808d541 | 1680 | if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then |
aec103d3 UD |
1681 | echo $ac_n "(cached) $ac_c" 1>&6 |
1682 | else | |
1683 | if test -n "$SED"; then | |
1684 | ac_cv_prog_SED="$SED" # Let the user override the test. | |
1685 | else | |
1686 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1687 | ac_dummy="$PATH" | |
1688 | for ac_dir in $ac_dummy; do | |
1689 | test -z "$ac_dir" && ac_dir=. | |
1690 | if test -f $ac_dir/$ac_word; then | |
1691 | ac_cv_prog_SED="$ac_prog" | |
1692 | break | |
1693 | fi | |
1694 | done | |
1695 | IFS="$ac_save_ifs" | |
1696 | fi | |
1697 | fi | |
1698 | SED="$ac_cv_prog_SED" | |
1699 | if test -n "$SED"; then | |
1700 | echo "$ac_t""$SED" 1>&6 | |
1701 | else | |
1702 | echo "$ac_t""no" 1>&6 | |
1703 | fi | |
1704 | ||
1705 | test -n "$SED" && break | |
1706 | done | |
1707 | ||
1708 | if test -z "$SED"; then | |
1709 | ac_verc_fail=yes | |
1710 | else | |
1711 | # Found it, now check the version. | |
1712 | echo $ac_n "checking version of $SED""... $ac_c" 1>&6 | |
749a9a4f | 1713 | echo "configure:1714: checking version of $SED" >&5 |
aec103d3 UD |
1714 | ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'` |
1715 | case $ac_prog_version in | |
1716 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
ce19d417 | 1717 | 3.0[2-9]*|3.[1-9]*|[4-9]*) |
aec103d3 UD |
1718 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1719 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1720 | ||
1721 | esac | |
1722 | echo "$ac_t""$ac_prog_version" 1>&6 | |
1723 | fi | |
1724 | if test $ac_verc_fail = yes; then | |
aefdff34 | 1725 | SED=: aux_missing="$aux_missing sed" |
aec103d3 UD |
1726 | fi |
1727 | ||
cd6ede75 | 1728 | |
63bda0c1 UD |
1729 | |
1730 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
749a9a4f | 1731 | echo "configure:1732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
a808d541 | 1732 | if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then |
63bda0c1 UD |
1733 | echo $ac_n "(cached) $ac_c" 1>&6 |
1734 | else | |
1735 | ||
cd6ede75 UD |
1736 | ac_ext=c |
1737 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1738 | ac_cpp='$CPP $CPPFLAGS' | |
1739 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5c2a0669 | 1740 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
cd6ede75 UD |
1741 | cross_compiling=$ac_cv_prog_cc_cross |
1742 | ||
5c2a0669 UD |
1743 | cat > conftest.$ac_ext << EOF |
1744 | ||
749a9a4f | 1745 | #line 1746 "configure" |
cd6ede75 | 1746 | #include "confdefs.h" |
5c2a0669 | 1747 | |
cd6ede75 UD |
1748 | main(){return(0);} |
1749 | EOF | |
749a9a4f | 1750 | if { (eval echo configure:1751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
cd6ede75 UD |
1751 | ac_cv_prog_cc_works=yes |
1752 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1753 | if (./conftest; exit) 2>/dev/null; then | |
1754 | ac_cv_prog_cc_cross=no | |
1755 | else | |
1756 | ac_cv_prog_cc_cross=yes | |
1757 | fi | |
1758 | else | |
1759 | echo "configure: failed program was:" >&5 | |
1760 | cat conftest.$ac_ext >&5 | |
1761 | ac_cv_prog_cc_works=no | |
1762 | fi | |
1763 | rm -fr conftest* | |
5c2a0669 UD |
1764 | ac_ext=c |
1765 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1766 | ac_cpp='$CPP $CPPFLAGS' | |
1767 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1768 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1769 | cross_compiling=$ac_cv_prog_cc_cross | |
cd6ede75 | 1770 | |
63bda0c1 UD |
1771 | fi |
1772 | ||
cd6ede75 UD |
1773 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1774 | if test $ac_cv_prog_cc_works = no; then | |
1775 | cross_linkable=no | |
1776 | ac_cv_prog_cc_cross=yes | |
1777 | else | |
1778 | cross_linkable=yes | |
1779 | fi | |
1780 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
749a9a4f | 1781 | echo "configure:1782: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a808d541 | 1782 | if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then |
63bda0c1 UD |
1783 | echo $ac_n "(cached) $ac_c" 1>&6 |
1784 | else | |
1785 | : | |
1786 | fi | |
1787 | ||
cd6ede75 UD |
1788 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1789 | ||
1790 | cross_compiling=$ac_cv_prog_cc_cross | |
1791 | ||
1792 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
749a9a4f | 1793 | echo "configure:1794: checking whether we are using GNU C" >&5 |
a808d541 | 1794 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
cd6ede75 UD |
1795 | echo $ac_n "(cached) $ac_c" 1>&6 |
1796 | else | |
1797 | cat > conftest.c <<EOF | |
1798 | #ifdef __GNUC__ | |
1799 | yes; | |
1800 | #endif | |
1801 | EOF | |
749a9a4f | 1802 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
cd6ede75 UD |
1803 | ac_cv_prog_gcc=yes |
1804 | else | |
1805 | ac_cv_prog_gcc=no | |
1806 | fi | |
1807 | fi | |
1808 | ||
1809 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
63bda0c1 | 1810 | if test $ac_cv_prog_gcc != yes; then |
cd6ede75 UD |
1811 | { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; } |
1812 | fi | |
1813 | ||
1814 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
749a9a4f | 1815 | echo "configure:1816: checking build system type" >&5 |
a808d541 UD |
1816 | |
1817 | build_alias=$build | |
1818 | case "$build_alias" in | |
1819 | NONE) | |
1820 | case $nonopt in | |
1821 | NONE) build_alias=$host_alias ;; | |
1822 | *) build_alias=$nonopt ;; | |
1823 | esac ;; | |
1824 | esac | |
cd6ede75 | 1825 | |
a808d541 UD |
1826 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
1827 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1828 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1829 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1830 | echo "$ac_t""$build" 1>&6 | |
cd6ede75 UD |
1831 | |
1832 | if test $host != $build; then | |
1833 | for ac_prog in gcc cc | |
1834 | do | |
1835 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1836 | set dummy $ac_prog; ac_word=$2 | |
1837 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 1838 | echo "configure:1839: checking for $ac_word" >&5 |
a808d541 | 1839 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
cd6ede75 UD |
1840 | echo $ac_n "(cached) $ac_c" 1>&6 |
1841 | else | |
1842 | if test -n "$BUILD_CC"; then | |
1843 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
1844 | else | |
5c2a0669 UD |
1845 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1846 | ac_dummy="$PATH" | |
1847 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
1848 | test -z "$ac_dir" && ac_dir=. |
1849 | if test -f $ac_dir/$ac_word; then | |
1850 | ac_cv_prog_BUILD_CC="$ac_prog" | |
1851 | break | |
1852 | fi | |
1853 | done | |
1854 | IFS="$ac_save_ifs" | |
1855 | fi | |
1856 | fi | |
1857 | BUILD_CC="$ac_cv_prog_BUILD_CC" | |
1858 | if test -n "$BUILD_CC"; then | |
1859 | echo "$ac_t""$BUILD_CC" 1>&6 | |
1860 | else | |
1861 | echo "$ac_t""no" 1>&6 | |
1862 | fi | |
1863 | ||
1864 | test -n "$BUILD_CC" && break | |
1865 | done | |
1866 | ||
1867 | fi | |
1868 | ||
1869 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
749a9a4f | 1870 | echo "configure:1871: checking how to run the C preprocessor" >&5 |
cd6ede75 UD |
1871 | # On Suns, sometimes $CPP names a directory. |
1872 | if test -n "$CPP" && test -d "$CPP"; then | |
1873 | CPP= | |
1874 | fi | |
1875 | if test -z "$CPP"; then | |
a808d541 | 1876 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
cd6ede75 UD |
1877 | echo $ac_n "(cached) $ac_c" 1>&6 |
1878 | else | |
1879 | # This must be in double quotes, not single quotes, because CPP may get | |
1880 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1881 | CPP="${CC-cc} -E" | |
1882 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1883 | # not just through cpp. | |
1884 | cat > conftest.$ac_ext <<EOF | |
749a9a4f | 1885 | #line 1886 "configure" |
cd6ede75 UD |
1886 | #include "confdefs.h" |
1887 | #include <assert.h> | |
1888 | Syntax Error | |
1889 | EOF | |
1890 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
749a9a4f | 1891 | { (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5c2a0669 | 1892 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
cd6ede75 UD |
1893 | if test -z "$ac_err"; then |
1894 | : | |
1895 | else | |
1896 | echo "$ac_err" >&5 | |
1897 | echo "configure: failed program was:" >&5 | |
1898 | cat conftest.$ac_ext >&5 | |
1899 | rm -rf conftest* | |
1900 | CPP="${CC-cc} -E -traditional-cpp" | |
1901 | cat > conftest.$ac_ext <<EOF | |
749a9a4f | 1902 | #line 1903 "configure" |
cd6ede75 UD |
1903 | #include "confdefs.h" |
1904 | #include <assert.h> | |
1905 | Syntax Error | |
1906 | EOF | |
1907 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
749a9a4f | 1908 | { (eval echo configure:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5c2a0669 UD |
1909 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1910 | if test -z "$ac_err"; then | |
1911 | : | |
1912 | else | |
1913 | echo "$ac_err" >&5 | |
1914 | echo "configure: failed program was:" >&5 | |
1915 | cat conftest.$ac_ext >&5 | |
1916 | rm -rf conftest* | |
1917 | CPP="${CC-cc} -nologo -E" | |
1918 | cat > conftest.$ac_ext <<EOF | |
749a9a4f | 1919 | #line 1920 "configure" |
5c2a0669 UD |
1920 | #include "confdefs.h" |
1921 | #include <assert.h> | |
1922 | Syntax Error | |
1923 | EOF | |
1924 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
749a9a4f | 1925 | { (eval echo configure:1926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5c2a0669 | 1926 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
cd6ede75 UD |
1927 | if test -z "$ac_err"; then |
1928 | : | |
1929 | else | |
1930 | echo "$ac_err" >&5 | |
1931 | echo "configure: failed program was:" >&5 | |
1932 | cat conftest.$ac_ext >&5 | |
1933 | rm -rf conftest* | |
1934 | CPP=/lib/cpp | |
1935 | fi | |
1936 | rm -f conftest* | |
1937 | fi | |
5c2a0669 UD |
1938 | rm -f conftest* |
1939 | fi | |
cd6ede75 UD |
1940 | rm -f conftest* |
1941 | ac_cv_prog_CPP="$CPP" | |
1942 | fi | |
1943 | CPP="$ac_cv_prog_CPP" | |
1944 | else | |
1945 | ac_cv_prog_CPP="$CPP" | |
1946 | fi | |
1947 | echo "$ac_t""$CPP" 1>&6 | |
1948 | ||
650425ce UD |
1949 | # Was a --with-binutils option given? |
1950 | if test -n "$path_binutils"; then | |
1951 | # Make absolute; ensure a single trailing slash. | |
1952 | path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'` | |
63bda0c1 | 1953 | CC="$CC -B$path_binutils" |
650425ce | 1954 | fi |
27a5bb33 UD |
1955 | AS=`$CC -print-prog-name=as` |
1956 | LD=`$CC -print-prog-name=ld` | |
5edb9387 | 1957 | AR=`$CC -print-prog-name=ar` |
cd6ede75 UD |
1958 | |
1959 | ||
5edb9387 | 1960 | # ranlib has to be treated a bit differently since it might not exist at all. |
5bbfc1ea RM |
1961 | ac_ranlib=`$CC -print-prog-name=ranlib` |
1962 | if test "x$ac_ranlib" = xranlib; then | |
5edb9387 UD |
1963 | # This extra check has to happen since gcc simply echos the parameter in |
1964 | # case it cannot find the value in its own directories. | |
cd6ede75 UD |
1965 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
1966 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1967 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 1968 | echo "configure:1969: checking for $ac_word" >&5 |
a808d541 | 1969 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
cd6ede75 UD |
1970 | echo $ac_n "(cached) $ac_c" 1>&6 |
1971 | else | |
1972 | if test -n "$RANLIB"; then | |
1973 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1974 | else | |
5c2a0669 UD |
1975 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1976 | ac_dummy="$PATH" | |
1977 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
1978 | test -z "$ac_dir" && ac_dir=. |
1979 | if test -f $ac_dir/$ac_word; then | |
1980 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1981 | break | |
1982 | fi | |
1983 | done | |
1984 | IFS="$ac_save_ifs" | |
1985 | fi | |
1986 | fi | |
1987 | RANLIB="$ac_cv_prog_RANLIB" | |
1988 | if test -n "$RANLIB"; then | |
1989 | echo "$ac_t""$RANLIB" 1>&6 | |
1990 | else | |
1991 | echo "$ac_t""no" 1>&6 | |
1992 | fi | |
1993 | ||
1994 | ||
1995 | if test -z "$ac_cv_prog_RANLIB"; then | |
1996 | if test -n "$ac_tool_prefix"; then | |
1997 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1998 | set dummy ranlib; ac_word=$2 | |
1999 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 2000 | echo "configure:2001: checking for $ac_word" >&5 |
a808d541 | 2001 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
cd6ede75 UD |
2002 | echo $ac_n "(cached) $ac_c" 1>&6 |
2003 | else | |
2004 | if test -n "$RANLIB"; then | |
2005 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2006 | else | |
5c2a0669 UD |
2007 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2008 | ac_dummy="$PATH" | |
2009 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
2010 | test -z "$ac_dir" && ac_dir=. |
2011 | if test -f $ac_dir/$ac_word; then | |
2012 | ac_cv_prog_RANLIB="ranlib" | |
2013 | break | |
2014 | fi | |
2015 | done | |
2016 | IFS="$ac_save_ifs" | |
2017 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2018 | fi | |
2019 | fi | |
2020 | RANLIB="$ac_cv_prog_RANLIB" | |
2021 | if test -n "$RANLIB"; then | |
2022 | echo "$ac_t""$RANLIB" 1>&6 | |
2023 | else | |
2024 | echo "$ac_t""no" 1>&6 | |
2025 | fi | |
2026 | ||
2027 | else | |
2028 | RANLIB=":" | |
2029 | fi | |
2030 | fi | |
2031 | ||
5bbfc1ea RM |
2032 | else |
2033 | RANLIB=$ac_ranlib | |
5edb9387 UD |
2034 | fi |
2035 | ||
2036 | ||
2037 | # Determine whether we are using GNU binutils. | |
2038 | echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6 | |
749a9a4f | 2039 | echo "configure:2040: checking whether $AS is GNU as" >&5 |
a808d541 | 2040 | if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then |
5edb9387 UD |
2041 | echo $ac_n "(cached) $ac_c" 1>&6 |
2042 | else | |
2043 | # Most GNU programs take a -v and spit out some text including | |
2044 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
2045 | if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
2046 | libc_cv_prog_as_gnu=yes | |
2047 | else | |
2048 | libc_cv_prog_as_gnu=no | |
2049 | fi | |
2050 | rm -fr contest* | |
2051 | fi | |
2052 | ||
2053 | echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6 | |
2054 | rm -f a.out | |
2055 | gnu_as=$libc_cv_prog_as_gnu | |
2056 | ||
2057 | echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6 | |
749a9a4f | 2058 | echo "configure:2059: checking whether $LD is GNU ld" >&5 |
a808d541 | 2059 | if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then |
5edb9387 UD |
2060 | echo $ac_n "(cached) $ac_c" 1>&6 |
2061 | else | |
2062 | # Most GNU programs take a -v and spit out some text including | |
2063 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
2064 | if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
2065 | libc_cv_prog_ld_gnu=yes | |
2066 | else | |
2067 | libc_cv_prog_ld_gnu=no | |
2068 | fi | |
2069 | rm -fr contest* | |
2070 | fi | |
2071 | ||
2072 | echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6 | |
2073 | gnu_ld=$libc_cv_prog_ld_gnu | |
2074 | ||
4bca4c17 UD |
2075 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. |
2076 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
2077 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 2078 | echo "configure:2079: checking for $ac_word" >&5 |
a808d541 | 2079 | if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then |
4bca4c17 UD |
2080 | echo $ac_n "(cached) $ac_c" 1>&6 |
2081 | else | |
2082 | if test -n "$MIG"; then | |
2083 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
2084 | else | |
5c2a0669 UD |
2085 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2086 | ac_dummy="$PATH" | |
2087 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
2088 | test -z "$ac_dir" && ac_dir=. |
2089 | if test -f $ac_dir/$ac_word; then | |
2090 | ac_cv_prog_MIG="${ac_tool_prefix}mig" | |
2091 | break | |
2092 | fi | |
2093 | done | |
2094 | IFS="$ac_save_ifs" | |
4bca4c17 UD |
2095 | fi |
2096 | fi | |
2097 | MIG="$ac_cv_prog_MIG" | |
2098 | if test -n "$MIG"; then | |
2099 | echo "$ac_t""$MIG" 1>&6 | |
2100 | else | |
2101 | echo "$ac_t""no" 1>&6 | |
2102 | fi | |
2103 | ||
2104 | ||
ac8f8c53 RM |
2105 | if test -z "$ac_cv_prog_MIG"; then |
2106 | if test -n "$ac_tool_prefix"; then | |
2107 | # Extract the first word of "mig", so it can be a program name with args. | |
2108 | set dummy mig; ac_word=$2 | |
2109 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 2110 | echo "configure:2111: checking for $ac_word" >&5 |
ac8f8c53 RM |
2111 | if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then |
2112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2113 | else | |
2114 | if test -n "$MIG"; then | |
2115 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
2116 | else | |
2117 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2118 | ac_dummy="$PATH" | |
2119 | for ac_dir in $ac_dummy; do | |
2120 | test -z "$ac_dir" && ac_dir=. | |
2121 | if test -f $ac_dir/$ac_word; then | |
2122 | ac_cv_prog_MIG="mig" | |
2123 | break | |
2124 | fi | |
2125 | done | |
2126 | IFS="$ac_save_ifs" | |
2127 | test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="MISSING" | |
2128 | fi | |
2129 | fi | |
2130 | MIG="$ac_cv_prog_MIG" | |
2131 | if test -n "$MIG"; then | |
2132 | echo "$ac_t""$MIG" 1>&6 | |
2133 | else | |
2134 | echo "$ac_t""no" 1>&6 | |
2135 | fi | |
2136 | ||
2137 | else | |
2138 | MIG="MISSING" | |
2139 | fi | |
2140 | fi | |
4bca4c17 | 2141 | |
cd6ede75 | 2142 | |
ea9f119b | 2143 | # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version) |
45ef592d UD |
2144 | # XXX Commented out because it filters out too many good versions. |
2145 | # XXX --drepper | |
2146 | # AC_CHECK_PROG_VER(AS, $AS, --version, | |
2147 | # [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)], | |
2148 | # [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t) | |
ea9f119b | 2149 | |
ea9f119b | 2150 | test -n "$aux_missing" && echo "configure: warning: |
aefdff34 | 2151 | *** These auxiliary programs are missing or too old:$aux_missing |
ea9f119b AJ |
2152 | *** some features will be disabled. |
2153 | *** Check the INSTALL file for required versions." 1>&2 | |
2154 | ||
2155 | # glibcbug.in wants to know the compiler version. | |
2156 | CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'` | |
2157 | ||
2158 | ||
3c720987 UD |
2159 | # if using special system headers, find out the compiler's sekrit |
2160 | # header directory and add that to the list. NOTE: Only does the right | |
2161 | # thing on a system that doesn't need fixincludes. (Not presently a problem.) | |
2162 | if test -n "$sysheaders"; then | |
2163 | ccheaders=`$CC -print-file-name=include` | |
2164 | SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders" | |
2165 | fi | |
2166 | ||
2167 | ||
f89ac85c UD |
2168 | # check if ranlib is necessary |
2169 | echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6 | |
749a9a4f | 2170 | echo "configure:2171: checking whether ranlib is necessary" >&5 |
a808d541 | 2171 | if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then |
f38931a9 UD |
2172 | echo $ac_n "(cached) $ac_c" 1>&6 |
2173 | else | |
f89ac85c UD |
2174 | cat > conftest.c <<EOF |
2175 | int a; | |
2176 | char b; | |
2177 | void c(void) {} | |
2178 | EOF | |
2179 | $CC $CFLAGS -c conftest.c | |
5bbfc1ea | 2180 | $AR cr conftest.a conftest.o |
f89ac85c UD |
2181 | cp conftest.a conftest2.a |
2182 | $RANLIB conftest.a | |
2183 | if cmp -s conftest.a conftest2.a; then | |
2184 | libc_cv_ranlib_necessary=no | |
f38931a9 | 2185 | else |
f89ac85c | 2186 | libc_cv_ranlib_necessary=yes |
f38931a9 | 2187 | fi |
f89ac85c | 2188 | rm -rf conftest* |
f38931a9 UD |
2189 | fi |
2190 | ||
f89ac85c UD |
2191 | echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6 |
2192 | if test "$libc_cv_ranlib_necessary" = no; then | |
2193 | RANLIB=: | |
2194 | fi | |
f38931a9 | 2195 | |
3911660e UD |
2196 | # Test if LD_LIBRARY_PATH contains the notation for the current directory |
2197 | # since this would lead to problems installing/building glibc. | |
2198 | # LD_LIBRARY_PATH contains the current directory if one of the following | |
2199 | # is true: | |
2200 | # - one of the terminals (":" and ";") is the first or last sign | |
2201 | # - two terminals occur directly after each other | |
2202 | # - the path contains an element with a dot in it | |
2203 | echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6 | |
749a9a4f | 2204 | echo "configure:2205: checking LD_LIBRARY_PATH variable" >&5 |
3911660e UD |
2205 | case ${LD_LIBRARY_PATH} in |
2206 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
b3a86ae1 | 2207 | ld_library_path_setting="contains current directory" |
3911660e UD |
2208 | ;; |
2209 | *) | |
2210 | ld_library_path_setting="ok" | |
2211 | ;; | |
2212 | esac | |
2213 | echo "$ac_t""$ld_library_path_setting" 1>&6 | |
2214 | if test "$ld_library_path_setting" != "ok"; then | |
63bda0c1 UD |
2215 | { echo "configure: error: |
2216 | *** LD_LIBRARY_PATH shouldn't contain the current directory when | |
2217 | *** building glibc. Please change the environment variable | |
2218 | *** and run configure again." 1>&2; exit 1; } | |
3911660e UD |
2219 | fi |
2220 | ||
74bd2300 | 2221 | echo $ac_n "checking whether GCC supports -static-libgcc""... $ac_c" 1>&6 |
749a9a4f | 2222 | echo "configure:2223: checking whether GCC supports -static-libgcc" >&5 |
74bd2300 UD |
2223 | if eval "test \"`echo '$''{'libc_cv_gcc_static_libgcc'+set}'`\" = set"; then |
2224 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2225 | else | |
2226 | if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then | |
2227 | libc_cv_gcc_static_libgcc= | |
2228 | else | |
2229 | libc_cv_gcc_static_libgcc=-static-libgcc | |
2230 | fi | |
2231 | fi | |
2232 | ||
2233 | echo "$ac_t""$libc_cv_gcc_static_libgcc" 1>&6 | |
2234 | ||
2235 | ||
cd6ede75 UD |
2236 | # Extract the first word of "bash", so it can be a program name with args. |
2237 | set dummy bash; ac_word=$2 | |
2238 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 2239 | echo "configure:2240: checking for $ac_word" >&5 |
a808d541 | 2240 | if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then |
cd6ede75 UD |
2241 | echo $ac_n "(cached) $ac_c" 1>&6 |
2242 | else | |
2243 | case "$BASH" in | |
2244 | /*) | |
2245 | ac_cv_path_BASH="$BASH" # Let the user override the test with a path. | |
2246 | ;; | |
5c2a0669 UD |
2247 | ?:/*) |
2248 | ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path. | |
2249 | ;; | |
cd6ede75 | 2250 | *) |
5c2a0669 UD |
2251 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2252 | ac_dummy="$PATH" | |
2253 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
2254 | test -z "$ac_dir" && ac_dir=. |
2255 | if test -f $ac_dir/$ac_word; then | |
2256 | ac_cv_path_BASH="$ac_dir/$ac_word" | |
2257 | break | |
2258 | fi | |
2259 | done | |
2260 | IFS="$ac_save_ifs" | |
2261 | test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no" | |
2262 | ;; | |
2263 | esac | |
2264 | fi | |
2265 | BASH="$ac_cv_path_BASH" | |
2266 | if test -n "$BASH"; then | |
2267 | echo "$ac_t""$BASH" 1>&6 | |
2268 | else | |
2269 | echo "$ac_t""no" 1>&6 | |
2270 | fi | |
2271 | ||
2272 | if test "$BASH" != no && | |
f43ce637 | 2273 | $BASH -c 'test "$BASH_VERSINFO" \ |
6973fc01 | 2274 | && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then |
cd6ede75 UD |
2275 | libc_cv_have_bash2=yes |
2276 | else | |
2277 | libc_cv_have_bash2=no | |
2278 | fi | |
2279 | ||
2280 | ||
2281 | if test "$BASH" = no; then | |
2282 | # Extract the first word of "ksh", so it can be a program name with args. | |
2283 | set dummy ksh; ac_word=$2 | |
2284 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 2285 | echo "configure:2286: checking for $ac_word" >&5 |
a808d541 | 2286 | if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then |
cd6ede75 UD |
2287 | echo $ac_n "(cached) $ac_c" 1>&6 |
2288 | else | |
2289 | case "$KSH" in | |
2290 | /*) | |
2291 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. | |
2292 | ;; | |
5c2a0669 UD |
2293 | ?:/*) |
2294 | ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path. | |
2295 | ;; | |
cd6ede75 | 2296 | *) |
5c2a0669 UD |
2297 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2298 | ac_dummy="$PATH" | |
2299 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
2300 | test -z "$ac_dir" && ac_dir=. |
2301 | if test -f $ac_dir/$ac_word; then | |
2302 | ac_cv_path_KSH="$ac_dir/$ac_word" | |
2303 | break | |
2304 | fi | |
2305 | done | |
2306 | IFS="$ac_save_ifs" | |
2307 | test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no" | |
2308 | ;; | |
2309 | esac | |
2310 | fi | |
2311 | KSH="$ac_cv_path_KSH" | |
2312 | if test -n "$KSH"; then | |
2313 | echo "$ac_t""$KSH" 1>&6 | |
2314 | else | |
2315 | echo "$ac_t""no" 1>&6 | |
2316 | fi | |
2317 | ||
2318 | if test "$KSH" = no; then | |
2319 | libc_cv_have_ksh=no | |
2320 | else | |
2321 | libc_cv_have_ksh=yes | |
2322 | fi | |
2323 | else | |
2324 | KSH="$BASH" | |
2325 | ||
2326 | libc_cv_have_ksh=yes | |
2327 | fi | |
2328 | ||
2329 | ||
a8c01776 | 2330 | for ac_prog in gawk mawk nawk awk |
a2b08ee5 UD |
2331 | do |
2332 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2333 | set dummy $ac_prog; ac_word=$2 | |
2334 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 2335 | echo "configure:2336: checking for $ac_word" >&5 |
a808d541 | 2336 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
5aa8ff62 UD |
2337 | echo $ac_n "(cached) $ac_c" 1>&6 |
2338 | else | |
2339 | if test -n "$AWK"; then | |
2340 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2341 | else | |
5c2a0669 UD |
2342 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2343 | ac_dummy="$PATH" | |
2344 | for ac_dir in $ac_dummy; do | |
5aa8ff62 UD |
2345 | test -z "$ac_dir" && ac_dir=. |
2346 | if test -f $ac_dir/$ac_word; then | |
2347 | ac_cv_prog_AWK="$ac_prog" | |
2348 | break | |
2349 | fi | |
2350 | done | |
2351 | IFS="$ac_save_ifs" | |
2352 | fi | |
2353 | fi | |
2354 | AWK="$ac_cv_prog_AWK" | |
2355 | if test -n "$AWK"; then | |
2356 | echo "$ac_t""$AWK" 1>&6 | |
2357 | else | |
2358 | echo "$ac_t""no" 1>&6 | |
2359 | fi | |
2360 | ||
2361 | test -n "$AWK" && break | |
2362 | done | |
2363 | ||
c0016081 UD |
2364 | # Extract the first word of "perl", so it can be a program name with args. |
2365 | set dummy perl; ac_word=$2 | |
5aa8ff62 | 2366 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
749a9a4f | 2367 | echo "configure:2368: checking for $ac_word" >&5 |
a808d541 | 2368 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
a2b08ee5 UD |
2369 | echo $ac_n "(cached) $ac_c" 1>&6 |
2370 | else | |
2371 | case "$PERL" in | |
2372 | /*) | |
2373 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
2374 | ;; | |
5c2a0669 UD |
2375 | ?:/*) |
2376 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. | |
2377 | ;; | |
a2b08ee5 | 2378 | *) |
5c2a0669 UD |
2379 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2380 | ac_dummy="$PATH" | |
2381 | for ac_dir in $ac_dummy; do | |
a2b08ee5 UD |
2382 | test -z "$ac_dir" && ac_dir=. |
2383 | if test -f $ac_dir/$ac_word; then | |
2384 | ac_cv_path_PERL="$ac_dir/$ac_word" | |
2385 | break | |
2386 | fi | |
2387 | done | |
2388 | IFS="$ac_save_ifs" | |
c0016081 | 2389 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" |
a2b08ee5 UD |
2390 | ;; |
2391 | esac | |
2392 | fi | |
2393 | PERL="$ac_cv_path_PERL" | |
2394 | if test -n "$PERL"; then | |
2395 | echo "$ac_t""$PERL" 1>&6 | |
2396 | else | |
2397 | echo "$ac_t""no" 1>&6 | |
2398 | fi | |
2399 | ||
2fd5d029 RM |
2400 | if test "$PERL" != no && |
2401 | (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then | |
2402 | PERL=no | |
fc304e02 | 2403 | fi |
c0016081 UD |
2404 | # Extract the first word of "install-info", so it can be a program name with args. |
2405 | set dummy install-info; ac_word=$2 | |
2406 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 2407 | echo "configure:2408: checking for $ac_word" >&5 |
a808d541 | 2408 | if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then |
c0016081 UD |
2409 | echo $ac_n "(cached) $ac_c" 1>&6 |
2410 | else | |
2411 | case "$INSTALL_INFO" in | |
2412 | /*) | |
2413 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
2414 | ;; | |
5c2a0669 UD |
2415 | ?:/*) |
2416 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path. | |
2417 | ;; | |
c0016081 | 2418 | *) |
5c2a0669 | 2419 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9f2a9248 | 2420 | ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" |
5c2a0669 | 2421 | for ac_dir in $ac_dummy; do |
c0016081 UD |
2422 | test -z "$ac_dir" && ac_dir=. |
2423 | if test -f $ac_dir/$ac_word; then | |
2424 | ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word" | |
2425 | break | |
2426 | fi | |
2427 | done | |
2428 | IFS="$ac_save_ifs" | |
2429 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" | |
2430 | ;; | |
2431 | esac | |
2432 | fi | |
2433 | INSTALL_INFO="$ac_cv_path_INSTALL_INFO" | |
2434 | if test -n "$INSTALL_INFO"; then | |
2435 | echo "$ac_t""$INSTALL_INFO" 1>&6 | |
2436 | else | |
2437 | echo "$ac_t""no" 1>&6 | |
2438 | fi | |
2439 | ||
c0016081 UD |
2440 | if test "$INSTALL_INFO" != "no"; then |
2441 | echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6 | |
749a9a4f | 2442 | echo "configure:2443: checking for old Debian install-info" >&5 |
a808d541 | 2443 | if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then |
c0016081 UD |
2444 | echo $ac_n "(cached) $ac_c" 1>&6 |
2445 | else | |
2446 | mkdir conftest.d | |
2447 | # There is a hard ^_ on the next line. I am open to better ideas. | |
2448 | (echo '\1f' | |
2449 | echo 'File: dir Node: Top This is the top of the INFO tree' | |
2450 | echo '* Menu:') >conftest.d/dir | |
2451 | (echo 'INFO-DIR-SECTION i-d-s works' | |
2452 | echo 'START-INFO-DIR-ENTRY' | |
2453 | echo '* Prog: (prog). Program.' | |
2454 | echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info | |
2455 | if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1 | |
d8cceb4f | 2456 | then |
c0016081 UD |
2457 | if grep -s 'i-d-s works' conftest.d/dir >/dev/null |
2458 | then libc_cv_old_debian_install_info=no | |
2459 | else libc_cv_old_debian_install_info=yes | |
2460 | fi | |
2461 | else libc_cv_old_debian_install_info=no testfailed=t | |
2462 | fi | |
2463 | rm -fr conftest.d | |
2464 | fi | |
2465 | ||
2466 | echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6 | |
2467 | if test -n "$testfailed" | |
2468 | then echo "configure: warning: install-info errored out, check config.log" 1>&2 | |
2469 | fi | |
2470 | OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info | |
2471 | fi | |
a2b08ee5 UD |
2472 | |
2473 | ||
ae113383 UD |
2474 | # Extract the first word of "bison", so it can be a program name with args. |
2475 | set dummy bison; ac_word=$2 | |
2476 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
749a9a4f | 2477 | echo "configure:2478: checking for $ac_word" >&5 |
ae113383 UD |
2478 | if eval "test \"`echo '$''{'ac_cv_path_BISON'+set}'`\" = set"; then |
2479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2480 | else | |
2481 | case "$BISON" in | |
2482 | /*) | |
2483 | ac_cv_path_BISON="$BISON" # Let the user override the test with a path. | |
2484 | ;; | |
2485 | ?:/*) | |
2486 | ac_cv_path_BISON="$BISON" # Let the user override the test with a dos path. | |
2487 | ;; | |
2488 | *) | |
2489 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2490 | ac_dummy="$PATH:/usr/local/bin:/usr/bin:/bin" | |
2491 | for ac_dir in $ac_dummy; do | |
2492 | test -z "$ac_dir" && ac_dir=. | |
2493 | if test -f $ac_dir/$ac_word; then | |
2494 | ac_cv_path_BISON="$ac_dir/$ac_word" | |
2495 | break | |
2496 | fi | |
2497 | done | |
2498 | IFS="$ac_save_ifs" | |
2499 | test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no" | |
2500 | ;; | |
2501 | esac | |
2502 | fi | |
2503 | BISON="$ac_cv_path_BISON" | |
2504 | if test -n "$BISON"; then | |
2505 | echo "$ac_t""$BISON" 1>&6 | |
2506 | else | |
2507 | echo "$ac_t""no" 1>&6 | |
2508 | fi | |
2509 | ||
2510 | ||
cd6ede75 | 2511 | echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6 |
749a9a4f | 2512 | echo "configure:2513: checking for signed size_t type" >&5 |
a808d541 | 2513 | if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then |
cd6ede75 UD |
2514 | echo $ac_n "(cached) $ac_c" 1>&6 |
2515 | else | |
2516 | echo '#include <stddef.h> | |
2517 | FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c | |
2518 | if eval "$ac_cpp conftest.c 2>/dev/null" \ | |
2519 | | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then | |
2520 | libc_cv_signed_size_t=no | |
2521 | else | |
2522 | libc_cv_signed_size_t=yes | |
2523 | fi | |
2524 | rm -f conftest* | |
2525 | fi | |
2526 | ||
2527 | echo "$ac_t""$libc_cv_signed_size_t" 1>&6 | |
2528 | if test $libc_cv_signed_size_t = yes; then | |
2529 | cat >> confdefs.h <<\EOF | |
2530 | #undef __SIZE_TYPE__ | |
2531 | #define __SIZE_TYPE__ unsigned | |
2532 | EOF | |
2533 | fi | |
2534 | ||
2535 | echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6 | |
749a9a4f | 2536 | echo "configure:2537: checking for libc-friendly stddef.h" >&5 |
a808d541 | 2537 | if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then |
cd6ede75 UD |
2538 | echo $ac_n "(cached) $ac_c" 1>&6 |
2539 | else | |
2540 | cat > conftest.$ac_ext <<EOF | |
749a9a4f | 2541 | #line 2542 "configure" |
cd6ede75 UD |
2542 | #include "confdefs.h" |
2543 | #define __need_size_t | |
2544 | #define __need_wchar_t | |
2545 | #include <stddef.h> | |
2546 | #define __need_NULL | |
2547 | #include <stddef.h> | |
2548 | int main() { | |
2549 | size_t size; wchar_t wchar; | |
2550 | #ifdef offsetof | |
2551 | #error stddef.h ignored __need_* | |
2552 | #endif | |
2553 | if (&size == NULL || &wchar == NULL) abort (); | |
2554 | ; return 0; } | |
2555 | EOF | |
749a9a4f | 2556 | if { (eval echo configure:2557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6ede75 UD |
2557 | rm -rf conftest* |
2558 | libc_cv_friendly_stddef=yes | |
2559 | else | |
2560 | echo "configure: failed program was:" >&5 | |
2561 | cat conftest.$ac_ext >&5 | |
2562 | rm -rf conftest* | |
2563 | libc_cv_friendly_stddef=no | |
2564 | fi | |
2565 | rm -f conftest* | |
2566 | fi | |
2567 | ||
2568 | echo "$ac_t""$libc_cv_friendly_stddef" 1>&6 | |
2569 | if test $libc_cv_friendly_stddef = yes; then | |
2570 | config_vars="$config_vars | |
2571 | override stddef.h = # The installed <stddef.h> seems to be libc-friendly." | |
2572 | fi | |
2573 | ||
2574 | echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6 | |
749a9a4f | 2575 | echo "configure:2576: checking whether we need to use -P to assemble .S files" >&5 |
a808d541 | 2576 | if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then |
cd6ede75 UD |
2577 | echo $ac_n "(cached) $ac_c" 1>&6 |
2578 | else | |
2579 | cat > conftest.S <<EOF | |
2580 | #include "confdefs.h" | |
2581 | /* Nothing whatsoever. */ | |
2582 | EOF | |
2583 | if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then | |
2584 | libc_cv_need_minus_P=no | |
2585 | else | |
2586 | libc_cv_need_minus_P=yes | |
2587 | fi | |
2588 | rm -f conftest* | |
2589 | fi | |
2590 | ||
2591 | echo "$ac_t""$libc_cv_need_minus_P" 1>&6 | |
2592 | if test $libc_cv_need_minus_P = yes; then | |
2593 | config_vars="$config_vars | |
2594 | asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives." | |
2595 | fi | |
2596 | ||
2293395f | 2597 | echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6 |
749a9a4f | 2598 | echo "configure:2599: checking whether .text pseudo-op must be used" >&5 |
a808d541 | 2599 | if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then |
2293395f UD |
2600 | echo $ac_n "(cached) $ac_c" 1>&6 |
2601 | else | |
2602 | cat > conftest.s <<EOF | |
2603 | .text | |
2604 | EOF | |
2605 | libc_cv_dot_text= | |
2606 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
2607 | libc_cv_dot_text=.text | |
2608 | fi | |
2609 | rm -f conftest* | |
2610 | fi | |
2611 | ||
2612 | if test -z "$libc_cv_dot_text"; then | |
2613 | echo "$ac_t""no" 1>&6 | |
2614 | else | |
2615 | echo "$ac_t""yes" 1>&6 | |
2616 | fi | |
2617 | ||
cd6ede75 | 2618 | echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6 |
749a9a4f | 2619 | echo "configure:2620: checking for assembler global-symbol directive" >&5 |
a808d541 | 2620 | if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then |
cd6ede75 UD |
2621 | echo $ac_n "(cached) $ac_c" 1>&6 |
2622 | else | |
2623 | libc_cv_asm_global_directive=UNKNOWN | |
908c3d5b | 2624 | for ac_globl in .globl .global .EXPORT; do |
cd6ede75 | 2625 | cat > conftest.s <<EOF |
2293395f | 2626 | ${libc_cv_dot_text} |
908c3d5b | 2627 | ${ac_globl} foo |
cd6ede75 UD |
2628 | foo: |
2629 | EOF | |
2630 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
2631 | libc_cv_asm_global_directive=${ac_globl} | |
2632 | fi | |
2633 | rm -f conftest* | |
2634 | test $libc_cv_asm_global_directive != UNKNOWN && break | |
2635 | done | |
2636 | fi | |
2637 | ||
2638 | echo "$ac_t""$libc_cv_asm_global_directive" 1>&6 | |
2639 | if test $libc_cv_asm_global_directive = UNKNOWN; then | |
2640 | { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; } | |
2641 | else | |
2642 | cat >> confdefs.h <<EOF | |
2643 | #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive} | |
2644 | EOF | |
2645 | ||
2646 | fi | |
2647 | ||
2648 | echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6 | |
749a9a4f | 2649 | echo "configure:2650: checking for .set assembler directive" >&5 |
a808d541 | 2650 | if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then |
cd6ede75 UD |
2651 | echo $ac_n "(cached) $ac_c" 1>&6 |
2652 | else | |
2653 | cat > conftest.s <<EOF | |
2293395f | 2654 | ${libc_cv_dot_text} |
cd6ede75 UD |
2655 | foo: |
2656 | .set glibc_conftest_frobozz,foo | |
2657 | $libc_cv_asm_global_directive glibc_conftest_frobozz | |
2658 | EOF | |
2659 | # The alpha-dec-osf1 assembler gives only a warning for `.set' | |
2660 | # (but it doesn't work), so we must do a linking check to be sure. | |
2661 | cat > conftest1.c <<\EOF | |
2662 | extern int glibc_conftest_frobozz; | |
2663 | main () { printf ("%d\n", glibc_conftest_frobozz); } | |
2664 | EOF | |
2665 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
2666 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then | |
2667 | libc_cv_asm_set_directive=yes | |
2668 | else | |
2669 | libc_cv_asm_set_directive=no | |
2670 | fi | |
2671 | rm -f conftest* | |
2672 | fi | |
2673 | ||
2674 | echo "$ac_t""$libc_cv_asm_set_directive" 1>&6 | |
2675 | if test $libc_cv_asm_set_directive = yes; then | |
2676 | cat >> confdefs.h <<\EOF | |
2677 | #define HAVE_ASM_SET_DIRECTIVE 1 | |
2678 | EOF | |
2679 | ||
2680 | fi | |
2681 | ||
b88ac073 | 2682 | echo $ac_n "checking for assembler .type directive prefix""... $ac_c" 1>&6 |
749a9a4f | 2683 | echo "configure:2684: checking for assembler .type directive prefix" >&5 |
b88ac073 RM |
2684 | if eval "test \"`echo '$''{'libc_cv_asm_type_prefix'+set}'`\" = set"; then |
2685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2686 | else | |
2687 | libc_cv_asm_type_prefix=no | |
2688 | for ac_try_prefix in '@' '%' '#'; do | |
2689 | cat > conftest.s <<EOF | |
2690 | ${libc_cv_dot_text} | |
2691 | ${libc_cv_asm_global_directive} foo | |
2692 | .type foo, ${ac_try_prefix}object | |
2693 | .size foo, 1 | |
2694 | foo: | |
2695 | .byte 1 | |
2696 | EOF | |
2697 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
2698 | libc_cv_asm_type_prefix=${ac_try_prefix} | |
2699 | fi | |
2700 | rm -f conftest* | |
2701 | test "x$libc_cv_asm_type_prefix" != xno && break | |
2702 | done | |
2703 | fi | |
2704 | ||
2705 | echo "$ac_t""$libc_cv_asm_type_prefix" 1>&6 | |
2706 | if test "x$libc_cv_asm_type_prefix" != xno; then | |
2707 | cat >> confdefs.h <<EOF | |
2708 | #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix} | |
2709 | EOF | |
2710 | ||
2711 | fi | |
2712 | ||
2aa15430 | 2713 | # The Aix ld uses global .symbol_names instead of symbol_names. |
a8a20be0 UD |
2714 | # Unfortunately also used in the PPC64 ELF ABI. |
2715 | case "${os}${machine}" in | |
2716 | aix4.3* | linux*powerpc/powerpc64*) | |
2aa15430 UD |
2717 | cat >> confdefs.h <<\EOF |
2718 | #define HAVE_ASM_GLOBAL_DOT_NAME 1 | |
2719 | EOF | |
2720 | ||
2721 | esac | |
2722 | ||
cd6ede75 | 2723 | echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6 |
749a9a4f | 2724 | echo "configure:2725: checking for .symver assembler directive" >&5 |
a808d541 | 2725 | if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then |
cd6ede75 UD |
2726 | echo $ac_n "(cached) $ac_c" 1>&6 |
2727 | else | |
2728 | cat > conftest.s <<EOF | |
2293395f | 2729 | ${libc_cv_dot_text} |
cd6ede75 UD |
2730 | _sym: |
2731 | .symver _sym,sym@VERS | |
2732 | EOF | |
2733 | if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then | |
2734 | libc_cv_asm_symver_directive=yes | |
2735 | else | |
2736 | libc_cv_asm_symver_directive=no | |
2737 | fi | |
2738 | rm -f conftest* | |
2739 | fi | |
2740 | ||
2741 | echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6 | |
2742 | echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6 | |
749a9a4f | 2743 | echo "configure:2744: checking for ld --version-script" >&5 |
a808d541 | 2744 | if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then |
cd6ede75 UD |
2745 | echo $ac_n "(cached) $ac_c" 1>&6 |
2746 | else | |
2747 | if test $libc_cv_asm_symver_directive = yes; then | |
2748 | cat > conftest.s <<EOF | |
2293395f | 2749 | ${libc_cv_dot_text} |
cd6ede75 UD |
2750 | _sym: |
2751 | .symver _sym,sym@VERS | |
2752 | EOF | |
2753 | cat > conftest.map <<EOF | |
f43ce637 | 2754 | VERS_1 { |
cd6ede75 UD |
2755 | global: sym; |
2756 | }; | |
f43ce637 UD |
2757 | |
2758 | VERS_2 { | |
2759 | global: sym; | |
2760 | } VERS_1; | |
cd6ede75 UD |
2761 | EOF |
2762 | if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then | |
2763 | if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o | |
2764 | -nostartfiles -nostdlib | |
2765 | -Wl,--version-script,conftest.map | |
749a9a4f | 2766 | 1>&5'; { (eval echo configure:2767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; |
cd6ede75 UD |
2767 | then |
2768 | libc_cv_ld_version_script_option=yes | |
2769 | else | |
2770 | libc_cv_ld_version_script_option=no | |
2771 | fi | |
2772 | else | |
2773 | libc_cv_ld_version_script_option=no | |
2774 | fi | |
2775 | else | |
2776 | libc_cv_ld_version_script_option=no | |
2777 | fi | |
2778 | rm -f conftest* | |
2779 | fi | |
2780 | ||
2781 | echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6 | |
7499a22a RM |
2782 | if test $shared != no && |
2783 | test $libc_cv_asm_symver_directive = yes && | |
650425ce UD |
2784 | test $libc_cv_ld_version_script_option = yes && |
2785 | test $enable_versioning = yes; then | |
cd6ede75 UD |
2786 | VERSIONING=yes |
2787 | cat >> confdefs.h <<\EOF | |
2788 | #define DO_VERSIONING 1 | |
2789 | EOF | |
2790 | ||
2791 | else | |
2792 | VERSIONING=no | |
2793 | fi | |
2794 | ||
2795 | ||
22af13de | 2796 | if test $elf = yes && test $shared != no && test $VERSIONING = no; then |
f43ce637 | 2797 | echo "\ |
f4017d20 | 2798 | *** WARNING: You should not compile GNU libc without versioning. Not using |
f43ce637 UD |
2799 | *** versioning will introduce incompatibilities so that old binaries |
2800 | *** will not run anymore. | |
08a0d60a | 2801 | *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)." |
f43ce637 | 2802 | fi |
cd6ede75 UD |
2803 | if test $elf = yes; then |
2804 | echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6 | |
749a9a4f | 2805 | echo "configure:2806: checking for .previous assembler directive" >&5 |
a808d541 | 2806 | if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then |
cd6ede75 UD |
2807 | echo $ac_n "(cached) $ac_c" 1>&6 |
2808 | else | |
2809 | cat > conftest.s <<EOF | |
2810 | .section foo_section | |
2811 | .previous | |
2812 | EOF | |
749a9a4f | 2813 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
cd6ede75 UD |
2814 | libc_cv_asm_previous_directive=yes |
2815 | else | |
2816 | libc_cv_asm_previous_directive=no | |
2817 | fi | |
2818 | rm -f conftest* | |
2819 | fi | |
2820 | ||
2821 | echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6 | |
2822 | if test $libc_cv_asm_previous_directive = yes; then | |
2823 | cat >> confdefs.h <<\EOF | |
2824 | #define HAVE_ASM_PREVIOUS_DIRECTIVE 1 | |
2825 | EOF | |
2826 | ||
2827 | else | |
2828 | echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6 | |
749a9a4f | 2829 | echo "configure:2830: checking for .popsection assembler directive" >&5 |
a808d541 | 2830 | if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then |
cd6ede75 UD |
2831 | echo $ac_n "(cached) $ac_c" 1>&6 |
2832 | else | |
2833 | cat > conftest.s <<EOF | |
2834 | .pushsection foo_section | |
2835 | .popsection | |
2836 | EOF | |
749a9a4f | 2837 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
cd6ede75 UD |
2838 | libc_cv_asm_popsection_directive=yes |
2839 | else | |
2840 | libc_cv_asm_popsection_directive=no | |
2841 | fi | |
2842 | rm -f conftest* | |
2843 | fi | |
2844 | ||
2845 | echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6 | |
2846 | if test $libc_cv_asm_popsection_directive = yes; then | |
2847 | cat >> confdefs.h <<\EOF | |
2848 | #define HAVE_ASM_POPSECTION_DIRECTIVE 1 | |
2849 | EOF | |
2850 | ||
2851 | fi | |
2852 | fi | |
2d499f55 | 2853 | echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6 |
749a9a4f | 2854 | echo "configure:2855: checking for .protected and .hidden assembler directive" >&5 |
2d499f55 UD |
2855 | if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then |
2856 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2857 | else | |
2858 | cat > conftest.s <<EOF | |
2859 | .protected foo | |
2860 | foo: | |
2861 | .hidden bar | |
2862 | bar: | |
2863 | EOF | |
749a9a4f | 2864 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
2d499f55 UD |
2865 | libc_cv_asm_protected_directive=yes |
2866 | else | |
2867 | libc_cv_asm_protected_directive=no | |
2868 | fi | |
2869 | rm -f conftest* | |
2870 | fi | |
2871 | ||
2872 | echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6 | |
2873 | ||
5688da55 UD |
2874 | cat >> confdefs.h <<\EOF |
2875 | #define HAVE_PROTECTED 1 | |
2876 | EOF | |
2877 | ||
9bd64602 UD |
2878 | cat >> confdefs.h <<\EOF |
2879 | #define HAVE_HIDDEN 1 | |
2880 | EOF | |
2881 | ||
2f54c82d | 2882 | |
0d01dace UD |
2883 | if test $libc_cv_asm_protected_directive = yes; then |
2884 | echo $ac_n "checking whether __attribute__((visibility())) is supported""... $ac_c" 1>&6 | |
749a9a4f | 2885 | echo "configure:2886: checking whether __attribute__((visibility())) is supported" >&5 |
0d01dace UD |
2886 | if eval "test \"`echo '$''{'libc_cv_visibility_attribute'+set}'`\" = set"; then |
2887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2888 | else | |
2889 | cat > conftest.c <<EOF | |
2890 | int foo __attribute__ ((visibility ("hidden"))) = 1; | |
2891 | int bar __attribute__ ((visibility ("protected"))) = 1; | |
2892 | EOF | |
2893 | libc_cv_visibility_attribute=no | |
2894 | if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then | |
2895 | if grep '\.hidden.*foo' conftest.s >/dev/null; then | |
2896 | if grep '\.protected.*bar' conftest.s >/dev/null; then | |
2897 | libc_cv_visibility_attribute=yes | |
2898 | fi | |
2899 | fi | |
2900 | fi | |
2901 | rm -f conftest.cs | |
2902 | ||
2903 | fi | |
2904 | ||
2905 | echo "$ac_t""$libc_cv_visibility_attribute" 1>&6 | |
2906 | if test $libc_cv_visibility_attribute = yes; then | |
2907 | cat >> confdefs.h <<\EOF | |
2908 | #define HAVE_VISIBILITY_ATTRIBUTE 1 | |
2909 | EOF | |
2910 | ||
2911 | fi | |
2912 | fi | |
2913 | ||
37ba7d66 UD |
2914 | if test $libc_cv_visibility_attribute = yes; then |
2915 | echo $ac_n "checking for broken __attribute__((visibility()))""... $ac_c" 1>&6 | |
749a9a4f | 2916 | echo "configure:2917: checking for broken __attribute__((visibility()))" >&5 |
37ba7d66 UD |
2917 | if eval "test \"`echo '$''{'libc_cv_broken_visibility_attribute'+set}'`\" = set"; then |
2918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2919 | else | |
2920 | cat > conftest.c <<EOF | |
2921 | int foo (int x); | |
2922 | int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden"))); | |
2923 | int bar (int x) { return x; } | |
2924 | EOF | |
2925 | libc_cv_broken_visibility_attribute=yes | |
2926 | if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then | |
2927 | if grep '\.hidden[ _]foo' conftest.s >/dev/null; then | |
2928 | libc_cv_broken_visibility_attribute=no | |
2929 | fi | |
2930 | fi | |
2931 | rm -f conftest.c conftest.s | |
2932 | ||
2933 | fi | |
2934 | ||
2935 | echo "$ac_t""$libc_cv_broken_visibility_attribute" 1>&6 | |
2936 | if test $libc_cv_broken_visibility_attribute = yes; then | |
2937 | cat >> confdefs.h <<\EOF | |
2938 | #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1 | |
2939 | EOF | |
2940 | ||
2941 | fi | |
2942 | fi | |
2943 | ||
2944 | echo $ac_n "checking for broken __attribute__((alias()))""... $ac_c" 1>&6 | |
749a9a4f | 2945 | echo "configure:2946: checking for broken __attribute__((alias()))" >&5 |
37ba7d66 UD |
2946 | if eval "test \"`echo '$''{'libc_cv_broken_alias_attribute'+set}'`\" = set"; then |
2947 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2948 | else | |
2949 | cat > conftest.c <<EOF | |
2950 | extern int foo (int x) __asm ("xyzzy"); | |
2951 | int bar (int x) { return x; } | |
48b8e846 UD |
2952 | extern __typeof (bar) foo __attribute ((weak, alias ("bar"))); |
2953 | extern int dfoo; | |
2954 | extern __typeof (dfoo) dfoo __asm ("abccb"); | |
2955 | int dfoo = 1; | |
37ba7d66 UD |
2956 | EOF |
2957 | libc_cv_broken_alias_attribute=yes | |
2958 | if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then | |
48b8e846 UD |
2959 | if grep 'xyzzy' conftest.s >/dev/null && |
2960 | grep 'abccb' conftest.s >/dev/null; then | |
37ba7d66 UD |
2961 | libc_cv_broken_alias_attribute=no |
2962 | fi | |
2963 | fi | |
2964 | rm -f conftest.c conftest.s | |
2965 | ||
2966 | fi | |
2967 | ||
2968 | echo "$ac_t""$libc_cv_broken_alias_attribute" 1>&6 | |
2969 | if test $libc_cv_broken_alias_attribute = yes; then | |
2970 | cat >> confdefs.h <<\EOF | |
2971 | #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1 | |
2972 | EOF | |
2973 | ||
2974 | fi | |
2975 | ||
0d01dace UD |
2976 | if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then |
2977 | echo $ac_n "checking whether to put _rtld_local into .sdata section""... $ac_c" 1>&6 | |
749a9a4f | 2978 | echo "configure:2979: checking whether to put _rtld_local into .sdata section" >&5 |
0d01dace UD |
2979 | if eval "test \"`echo '$''{'libc_cv_have_sdata_section'+set}'`\" = set"; then |
2980 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2981 | else | |
2982 | echo "int i;" > conftest.c | |
2983 | libc_cv_have_sdata_section=no | |
2984 | if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \ | |
2985 | | grep '\.sdata' >/dev/null; then | |
2986 | libc_cv_have_sdata_section=yes | |
2987 | fi | |
2988 | rm -f conftest.c conftest.so | |
2989 | ||
2990 | fi | |
2991 | ||
2992 | echo "$ac_t""$libc_cv_have_sdata_section" 1>&6 | |
2993 | if test $libc_cv_have_sdata_section = yes; then | |
2994 | cat >> confdefs.h <<\EOF | |
2995 | #define HAVE_SDATA_SECTION 1 | |
2996 | EOF | |
2997 | ||
2998 | fi | |
2999 | fi | |
3000 | ||
2c617417 | 3001 | echo $ac_n "checking for .preinit_array/.init_array/.fini_array support""... $ac_c" 1>&6 |
749a9a4f | 3002 | echo "configure:3003: checking for .preinit_array/.init_array/.fini_array support" >&5 |
2c617417 UD |
3003 | if eval "test \"`echo '$''{'libc_cv_initfinit_array'+set}'`\" = set"; then |
3004 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3005 | else | |
3006 | cat > conftest.c <<EOF | |
3007 | int _start (void) { return 0; } | |
3008 | int __start (void) { return 0; } | |
3009 | int foo (void) { return 1; } | |
3010 | int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; | |
3011 | EOF | |
3012 | if { ac_try='${CC-cc} -o conftest conftest.c | |
749a9a4f | 3013 | -static -nostartfiles -nostdlib 1>&5'; { (eval echo configure:3014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
2c617417 UD |
3014 | then |
3015 | if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then | |
3016 | libc_cv_initfinit_array=yes | |
3017 | else | |
3018 | libc_cv_initfinit_array=no | |
3019 | fi | |
3020 | else | |
3021 | libc_cv_initfinit_array=no | |
3022 | fi | |
3023 | rm -f conftest* | |
3024 | fi | |
3025 | ||
3026 | echo "$ac_t""$libc_cv_initfinit_array" 1>&6 | |
3027 | ||
3028 | if test $libc_cv_initfinit_array = yes; then | |
3029 | cat >> confdefs.h <<\EOF | |
3030 | #define HAVE_INITFINI_ARRAY 1 | |
3031 | EOF | |
3032 | ||
3033 | fi | |
3034 | ||
2f54c82d | 3035 | echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6 |
749a9a4f | 3036 | echo "configure:3037: checking for -z nodelete option" >&5 |
2f54c82d UD |
3037 | if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then |
3038 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3039 | else | |
3040 | cat > conftest.c <<EOF | |
3041 | int _start (void) { return 42; } | |
3042 | EOF | |
35cd3c97 AJ |
3043 | if { ac_try='${CC-cc} -shared -o conftest.so conftest.c |
3044 | -nostartfiles -nostdlib | |
749a9a4f | 3045 | -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure:3046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
2f54c82d UD |
3046 | then |
3047 | libc_cv_z_nodelete=yes | |
3048 | else | |
3049 | libc_cv_z_nodelete=no | |
3050 | fi | |
3051 | rm -f conftest* | |
3052 | fi | |
3053 | ||
3054 | echo "$ac_t""$libc_cv_z_nodelete" 1>&6 | |
3055 | ||
3056 | ||
3057 | echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6 | |
749a9a4f | 3058 | echo "configure:3059: checking for -z nodlopen option" >&5 |
2f54c82d UD |
3059 | if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then |
3060 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3061 | else | |
3062 | cat > conftest.c <<EOF | |
3063 | int _start (void) { return 42; } | |
3064 | EOF | |
35cd3c97 AJ |
3065 | if { ac_try='${CC-cc} -shared -o conftest.so conftest.c |
3066 | -nostartfiles -nostdlib | |
749a9a4f | 3067 | -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure:3068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
2f54c82d UD |
3068 | then |
3069 | libc_cv_z_nodlopen=yes | |
3070 | else | |
3071 | libc_cv_z_nodlopen=no | |
3072 | fi | |
3073 | rm -f conftest* | |
3074 | fi | |
3075 | ||
3076 | echo "$ac_t""$libc_cv_z_nodlopen" 1>&6 | |
3077 | ||
5d916713 UD |
3078 | |
3079 | echo $ac_n "checking for -z initfirst option""... $ac_c" 1>&6 | |
749a9a4f | 3080 | echo "configure:3081: checking for -z initfirst option" >&5 |
5d916713 UD |
3081 | if eval "test \"`echo '$''{'libc_cv_z_initfirst'+set}'`\" = set"; then |
3082 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3083 | else | |
3084 | cat > conftest.c <<EOF | |
3085 | int _start (void) { return 42; } | |
3086 | EOF | |
35cd3c97 AJ |
3087 | if { ac_try='${CC-cc} -shared -o conftest.so conftest.c |
3088 | -nostartfiles -nostdlib | |
749a9a4f | 3089 | -Wl,--enable-new-dtags,-z,initfirst 1>&5'; { (eval echo configure:3090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
5d916713 UD |
3090 | then |
3091 | libc_cv_z_initfirst=yes | |
3092 | else | |
3093 | libc_cv_z_initfirst=no | |
3094 | fi | |
3095 | rm -f conftest* | |
3096 | fi | |
3097 | ||
3098 | echo "$ac_t""$libc_cv_z_initfirst" 1>&6 | |
3099 | ||
639c3248 UD |
3100 | |
3101 | echo $ac_n "checking for -Bgroup option""... $ac_c" 1>&6 | |
749a9a4f | 3102 | echo "configure:3103: checking for -Bgroup option" >&5 |
639c3248 UD |
3103 | if eval "test \"`echo '$''{'libc_cv_Bgroup'+set}'`\" = set"; then |
3104 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3105 | else | |
3106 | cat > conftest.c <<EOF | |
3107 | int _start (void) { return 42; } | |
3108 | EOF | |
749a9a4f | 3109 | if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'; { (eval echo configure:3110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
639c3248 UD |
3110 | then |
3111 | libc_cv_Bgroup=yes | |
3112 | else | |
3113 | libc_cv_Bgroup=no | |
3114 | fi | |
3115 | rm -f conftest* | |
3116 | fi | |
3117 | ||
3118 | echo "$ac_t""$libc_cv_Bgroup" 1>&6 | |
3119 | ||
a711b01d UD |
3120 | |
3121 | echo $ac_n "checking for -z combreloc""... $ac_c" 1>&6 | |
749a9a4f | 3122 | echo "configure:3123: checking for -z combreloc" >&5 |
a711b01d UD |
3123 | if eval "test \"`echo '$''{'libc_cv_z_combreloc'+set}'`\" = set"; then |
3124 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3125 | else | |
3126 | cat > conftest.c <<EOF | |
d555194c UD |
3127 | extern int bar (int); |
3128 | extern int mumble; | |
3129 | int foo (void) { return bar (mumble); } | |
a711b01d | 3130 | EOF |
35cd3c97 AJ |
3131 | if { ac_try='${CC-cc} -shared -o conftest.so conftest.c |
3132 | -nostdlib -nostartfiles | |
749a9a4f | 3133 | -Wl,-z,combreloc 1>&5'; { (eval echo configure:3134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
a711b01d | 3134 | then |
fdde8349 UD |
3135 | if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then |
3136 | libc_cv_z_combreloc=yes | |
3137 | else | |
3138 | libc_cv_z_combreloc=no | |
a711b01d | 3139 | fi |
fdde8349 UD |
3140 | else |
3141 | libc_cv_z_combreloc=no | |
a711b01d UD |
3142 | fi |
3143 | rm -f conftest* | |
3144 | fi | |
3145 | ||
3146 | echo "$ac_t""$libc_cv_z_combreloc" 1>&6 | |
fdde8349 UD |
3147 | if test "$libc_cv_z_combreloc" = yes; then |
3148 | cat >> confdefs.h <<\EOF | |
3149 | #define HAVE_Z_COMBRELOC 1 | |
3150 | EOF | |
3151 | ||
3152 | fi | |
cd6ede75 UD |
3153 | fi |
3154 | ||
f13df7c7 | 3155 | |
cd6ede75 UD |
3156 | if test $elf != yes; then |
3157 | echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6 | |
749a9a4f | 3158 | echo "configure:3159: checking for .init and .fini sections" >&5 |
a808d541 | 3159 | if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then |
cd6ede75 UD |
3160 | echo $ac_n "(cached) $ac_c" 1>&6 |
3161 | else | |
3162 | cat > conftest.$ac_ext <<EOF | |
749a9a4f | 3163 | #line 3164 "configure" |
cd6ede75 UD |
3164 | #include "confdefs.h" |
3165 | ||
3166 | int main() { | |
3167 | asm (".section .init"); | |
3168 | asm (".section .fini"); | |
2293395f | 3169 | asm ("${libc_cv_dot_text}"); |
cd6ede75 UD |
3170 | ; return 0; } |
3171 | EOF | |
749a9a4f | 3172 | if { (eval echo configure:3173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6ede75 UD |
3173 | rm -rf conftest* |
3174 | libc_cv_have_initfini=yes | |
3175 | else | |
3176 | echo "configure: failed program was:" >&5 | |
3177 | cat conftest.$ac_ext >&5 | |
3178 | rm -rf conftest* | |
3179 | libc_cv_have_initfini=no | |
3180 | fi | |
3181 | rm -f conftest* | |
3182 | fi | |
3183 | ||
3184 | echo "$ac_t""$libc_cv_have_initfini" 1>&6 | |
3185 | if test $libc_cv_have_initfini = yes; then | |
3186 | cat >> confdefs.h <<\EOF | |
3187 | #define HAVE_INITFINI 1 | |
3188 | EOF | |
3189 | ||
3190 | fi | |
3191 | fi | |
3192 | ||
e26dd47f UD |
3193 | if test $elf = yes -a $gnu_ld = yes; then |
3194 | echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6 | |
749a9a4f | 3195 | echo "configure:3196: checking whether cc puts quotes around section names" >&5 |
e26dd47f UD |
3196 | if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then |
3197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3198 | else | |
3199 | cat > conftest.c <<EOF | |
3200 | static const int foo | |
3201 | __attribute__ ((section ("bar"))) = 1; | |
3202 | EOF | |
3203 | if ${CC-cc} -S conftest.c -o conftest.s; then | |
3204 | if grep '\.section.*"bar"' conftest.s >/dev/null; then | |
3205 | libc_cv_have_section_quotes=yes | |
3206 | else | |
3207 | libc_cv_have_section_quotes=no | |
3208 | fi | |
3209 | else | |
3210 | libc_cv_have_section_quotes=unknown | |
3211 | fi | |
3212 | rm -f conftest.cs | |
3213 | ||
3214 | fi | |
3215 | ||
3216 | echo "$ac_t""$libc_cv_have_section_quotes" 1>&6 | |
3217 | if test $libc_cv_have_section_quotes = yes; then | |
3218 | cat >> confdefs.h <<\EOF | |
3219 | #define HAVE_SECTION_QUOTES 1 | |
3220 | EOF | |
3221 | ||
3222 | fi | |
3223 | fi | |
3224 | ||
9a0a462c UD |
3225 | |
3226 | ||
cd6ede75 UD |
3227 | if test $elf = yes; then |
3228 | libc_cv_asm_underscores=no | |
3229 | else | |
9a0a462c UD |
3230 | if test $ac_cv_prog_cc_works = yes; then |
3231 | echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6 | |
749a9a4f | 3232 | echo "configure:3233: checking for _ prefix on C symbol names" >&5 |
a808d541 | 3233 | if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then |
cd6ede75 UD |
3234 | echo $ac_n "(cached) $ac_c" 1>&6 |
3235 | else | |
3236 | cat > conftest.$ac_ext <<EOF | |
749a9a4f | 3237 | #line 3238 "configure" |
cd6ede75 UD |
3238 | #include "confdefs.h" |
3239 | asm ("_glibc_foobar:"); | |
3240 | int main() { | |
3241 | glibc_foobar (); | |
3242 | ; return 0; } | |
3243 | EOF | |
749a9a4f | 3244 | if { (eval echo configure:3245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
cd6ede75 UD |
3245 | rm -rf conftest* |
3246 | libc_cv_asm_underscores=yes | |
3247 | else | |
3248 | echo "configure: failed program was:" >&5 | |
3249 | cat conftest.$ac_ext >&5 | |
3250 | rm -rf conftest* | |
3251 | libc_cv_asm_underscores=no | |
3252 | fi | |
3253 | rm -f conftest* | |
3254 | fi | |
3255 | ||
3256 | echo "$ac_t""$libc_cv_asm_underscores" 1>&6 | |
9a0a462c UD |
3257 | else |
3258 | echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6 | |
749a9a4f | 3259 | echo "configure:3260: checking for _ prefix on C symbol names" >&5 |
a808d541 | 3260 | if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then |
9a0a462c UD |
3261 | echo $ac_n "(cached) $ac_c" 1>&6 |
3262 | else | |
3263 | cat > conftest.$ac_ext <<EOF | |
749a9a4f | 3264 | #line 3265 "configure" |
9a0a462c UD |
3265 | #include "confdefs.h" |
3266 | void underscore_test(void) { | |
3267 | return; } | |
3268 | EOF | |
749a9a4f | 3269 | if { (eval echo configure:3270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
9a0a462c UD |
3270 | if grep _underscore_test conftest* >/dev/null; then |
3271 | rm -f conftest* | |
3272 | libc_cv_asm_underscores=yes | |
3273 | else | |
3274 | rm -f conftest* | |
3275 | libc_cv_asm_underscores=no | |
3276 | fi | |
3277 | else | |
3278 | echo "configure: failed program was:" >&5 | |
3279 | cat conftest.$ac_ext >&5 | |
3280 | rm -f conftest* | |
3281 | libc_cv_asm_underscores=no | |
3282 | fi | |
3283 | rm -f conftest* | |
3284 | fi | |
3285 | ||
3286 | echo "$ac_t""$libc_cv_asm_underscores" 1>&6 | |
3287 | fi | |
cd6ede75 UD |
3288 | fi |
3289 | if test $libc_cv_asm_underscores = no; then | |
3290 | cat >> confdefs.h <<\EOF | |
3291 | #define NO_UNDERSCORES 1 | |
3292 | EOF | |
3293 | ||
3294 | fi | |
3295 | ||
3296 | if test $elf = yes; then | |
3297 | libc_cv_weak_symbols=yes | |
9a97d1f7 UD |
3298 | fi |
3299 | ||
3300 | echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6 | |
749a9a4f | 3301 | echo "configure:3302: checking for assembler .weak directive" >&5 |
a808d541 | 3302 | if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then |
cd6ede75 UD |
3303 | echo $ac_n "(cached) $ac_c" 1>&6 |
3304 | else | |
3305 | cat > conftest.s <<EOF | |
2293395f | 3306 | ${libc_cv_dot_text} |
cd6ede75 UD |
3307 | ${libc_cv_asm_global_directive} foo |
3308 | foo: | |
3309 | .weak foo | |
3310 | .weak bar; bar = foo | |
3311 | EOF | |
9a97d1f7 UD |
3312 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then |
3313 | libc_cv_asm_weak_directive=yes | |
3314 | else | |
3315 | libc_cv_asm_weak_directive=no | |
3316 | fi | |
3317 | rm -f conftest* | |
cd6ede75 UD |
3318 | fi |
3319 | ||
3320 | echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6 | |
3321 | ||
3322 | if test $libc_cv_asm_weak_directive = no; then | |
3323 | echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6 | |
749a9a4f | 3324 | echo "configure:3325: checking for assembler .weakext directive" >&5 |
a808d541 | 3325 | if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then |
cd6ede75 UD |
3326 | echo $ac_n "(cached) $ac_c" 1>&6 |
3327 | else | |
3328 | cat > conftest.s <<EOF | |
2293395f | 3329 | ${libc_cv_dot_text} |
cd6ede75 UD |
3330 | ${libc_cv_asm_global_directive} foo |
3331 | foo: | |
9a97d1f7 UD |
3332 | .weakext bar foo |
3333 | .weakext baz | |
3334 | ${libc_cv_asm_global_directive} baz | |
3335 | baz: | |
cd6ede75 UD |
3336 | EOF |
3337 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
3338 | libc_cv_asm_weakext_directive=yes | |
3339 | else | |
3340 | libc_cv_asm_weakext_directive=no | |
3341 | fi | |
3342 | rm -f conftest* | |
3343 | fi | |
3344 | ||
3345 | echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6 | |
3346 | ||
9a97d1f7 | 3347 | fi # no .weak |
cd6ede75 UD |
3348 | |
3349 | if test $libc_cv_asm_weak_directive = yes; then | |
3350 | cat >> confdefs.h <<\EOF | |
3351 | #define HAVE_ASM_WEAK_DIRECTIVE 1 | |
3352 | EOF | |
3353 | ||
3354 | elif test $libc_cv_asm_weakext_directive = yes; then | |
3355 | cat >> confdefs.h <<\EOF | |
3356 | #define HAVE_ASM_WEAKEXT_DIRECTIVE 1 | |
3357 | EOF | |
3358 | ||
3359 | fi | |
3360 | ||
b15cb495 | 3361 | case "${host_cpu}-${host_os}" in |
eacde9d0 UD |
3362 | cris*) |
3363 | libc_cv_asm_line_sep='@' | |
3364 | cat >> confdefs.h <<EOF | |
3365 | #define ASM_LINE_SEP $libc_cv_asm_line_sep | |
3366 | EOF | |
3367 | ||
3368 | ;; | |
b15cb495 UD |
3369 | hppa*linux*) |
3370 | echo $ac_n "checking for assembler line separator""... $ac_c" 1>&6 | |
749a9a4f | 3371 | echo "configure:3372: checking for assembler line separator" >&5 |
b15cb495 UD |
3372 | if eval "test \"`echo '$''{'libc_cv_asm_line_sep'+set}'`\" = set"; then |
3373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3374 | else | |
3375 | cat > conftest.s <<EOF | |
3376 | nop ; is_old_puffin | |
3377 | EOF | |
749a9a4f | 3378 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:3379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
b15cb495 UD |
3379 | libc_cv_asm_line_sep='!' |
3380 | else | |
3381 | if test -z "$enable_hacker_mode"; then | |
3382 | echo "*** You need a newer assembler to compile glibc" | |
3383 | rm -f conftest* | |
3384 | exit 1 | |
3385 | fi | |
3386 | libc_cv_asm_line_sep=';' | |
3387 | fi | |
3388 | rm -f conftest* | |
3389 | fi | |
3390 | ||
3391 | echo "$ac_t""$libc_cv_asm_line_sep" 1>&6 | |
3392 | cat >> confdefs.h <<EOF | |
3393 | #define ASM_LINE_SEP $libc_cv_asm_line_sep | |
3394 | EOF | |
3395 | ||
3396 | ;; | |
3397 | esac | |
3398 | ||
cd6ede75 | 3399 | echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6 |
749a9a4f | 3400 | echo "configure:3401: checking for ld --no-whole-archive" >&5 |
a808d541 | 3401 | if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then |
cd6ede75 UD |
3402 | echo $ac_n "(cached) $ac_c" 1>&6 |
3403 | else | |
3404 | cat > conftest.c <<\EOF | |
3405 | _start () {} | |
3406 | int __eh_pc; | |
3407 | __throw () {} | |
3408 | EOF | |
3409 | if { ac_try='${CC-cc} $CFLAGS | |
3410 | -nostdlib -nostartfiles -Wl,--no-whole-archive | |
749a9a4f | 3411 | -o conftest conftest.c 1>&5'; { (eval echo configure:3412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
cd6ede75 UD |
3412 | libc_cv_ld_no_whole_archive=yes |
3413 | else | |
3414 | libc_cv_ld_no_whole_archive=no | |
3415 | fi | |
3416 | rm -f conftest* | |
3417 | fi | |
3418 | ||
3419 | echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6 | |
b17277cf UD |
3420 | if test $libc_cv_ld_no_whole_archive = yes; then |
3421 | no_whole_archive=-Wl,--no-whole-archive | |
3422 | fi | |
cd6ede75 | 3423 | |
dff14448 | 3424 | echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6 |
749a9a4f | 3425 | echo "configure:3426: checking for gcc -fexceptions" >&5 |
a808d541 | 3426 | if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then |
cd6ede75 UD |
3427 | echo $ac_n "(cached) $ac_c" 1>&6 |
3428 | else | |
3429 | cat > conftest.c <<\EOF | |
3430 | _start () {} | |
3431 | int __eh_pc; | |
3432 | __throw () {} | |
3433 | EOF | |
3434 | if { ac_try='${CC-cc} $CFLAGS | |
dff14448 | 3435 | -nostdlib -nostartfiles -fexceptions |
749a9a4f | 3436 | -o conftest conftest.c 1>&5'; { (eval echo configure:3437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
dff14448 | 3437 | libc_cv_gcc_exceptions=yes |
cd6ede75 | 3438 | else |
dff14448 | 3439 | libc_cv_gcc_exceptions=no |
cd6ede75 UD |
3440 | fi |
3441 | rm -f conftest* | |
3442 | fi | |
3443 | ||
dff14448 UD |
3444 | echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6 |
3445 | if test $libc_cv_gcc_exceptions = yes; then | |
3446 | exceptions=-fexceptions | |
b17277cf | 3447 | fi |
cd6ede75 | 3448 | |
d71b808a UD |
3449 | if test "$base_machine" = alpha ; then |
3450 | echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6 | |
749a9a4f | 3451 | echo "configure:3452: checking for function ..ng prefix" >&5 |
a808d541 | 3452 | if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then |
d71b808a UD |
3453 | echo $ac_n "(cached) $ac_c" 1>&6 |
3454 | else | |
3455 | cat > conftest.c <<\EOF | |
3456 | foo () { } | |
3457 | EOF | |
749a9a4f | 3458 | if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:3459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; |
d71b808a UD |
3459 | then |
3460 | libc_cv_gcc_alpha_ng_prefix=yes | |
3461 | else | |
3462 | libc_cv_gcc_alpha_ng_prefix=no | |
3463 | fi | |
3464 | rm -f conftest* | |
3465 | fi | |
3466 | ||
3467 | echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6 | |
3468 | if test $libc_cv_gcc_alpha_ng_prefix = yes ; then | |
3469 | cat >> confdefs.h <<\EOF | |
3470 | #define ASM_ALPHA_NG_SYMBOL_PREFIX "$" | |
3471 | EOF | |
3472 | ||
3473 | else | |
3474 | cat >> confdefs.h <<\EOF | |
3475 | #define ASM_ALPHA_NG_SYMBOL_PREFIX "" | |
3476 | EOF | |
3477 | ||
3478 | fi | |
3479 | fi | |
3480 | ||
ebcd12d4 UD |
3481 | if test "$host_cpu" = powerpc ; then |
3482 | # Check for a bug present in at least versions 2.8.x of GCC | |
3483 | # and versions 1.0.x of EGCS. | |
3484 | echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6 | |
749a9a4f | 3485 | echo "configure:3486: checking whether clobbering cr0 causes problems" >&5 |
a808d541 | 3486 | if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then |
ebcd12d4 UD |
3487 | echo $ac_n "(cached) $ac_c" 1>&6 |
3488 | else | |
3489 | cat > conftest.$ac_ext <<EOF | |
749a9a4f | 3490 | #line 3491 "configure" |
ebcd12d4 UD |
3491 | #include "confdefs.h" |
3492 | int tester(int x) { asm ("" : : : "cc"); return x & 123; } | |
3493 | int main() { | |
3494 | ||
3495 | ; return 0; } | |
3496 | EOF | |
749a9a4f | 3497 | if { (eval echo configure:3498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ebcd12d4 UD |
3498 | rm -rf conftest* |
3499 | libc_cv_c_asmcr0_bug='no' | |
3500 | else | |
3501 | echo "configure: failed program was:" >&5 | |
3502 | cat conftest.$ac_ext >&5 | |
3503 | rm -rf conftest* | |
3504 | libc_cv_c_asmcr0_bug='yes' | |
3505 | fi | |
3506 | rm -f conftest* | |
3507 | fi | |
3508 | ||
3509 | echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6 | |
3510 | if test "$libc_cv_c_asmcr0_bug" != 'no'; then | |
3511 | cat >> confdefs.h <<\EOF | |
3512 | #define BROKEN_PPC_ASM_CR0 1 | |
3513 | EOF | |
3514 | ||
3515 | fi | |
3516 | fi | |
3517 | ||
650425ce | 3518 | echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6 |
749a9a4f | 3519 | echo "configure:3520: checking for DWARF2 unwind info support" >&5 |
a808d541 | 3520 | if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then |
650425ce UD |
3521 | echo $ac_n "(cached) $ac_c" 1>&6 |
3522 | else | |
3523 | cat > conftest.c <<EOF | |
749a9a4f | 3524 | #line 3525 "configure" |
2b904739 | 3525 | static char *__EH_FRAME_BEGIN__; |
650425ce UD |
3526 | _start () |
3527 | { | |
9756dfe1 | 3528 | #ifdef CHECK__register_frame |
650425ce UD |
3529 | __register_frame (__EH_FRAME_BEGIN__); |
3530 | __deregister_frame (__EH_FRAME_BEGIN__); | |
9756dfe1 UD |
3531 | #endif |
3532 | #ifdef CHECK__register_frame_info | |
3533 | __register_frame_info (__EH_FRAME_BEGIN__); | |
3534 | __deregister_frame_info (__EH_FRAME_BEGIN__); | |
3535 | #endif | |
650425ce UD |
3536 | } |
3537 | int __eh_pc; | |
3538 | __throw () {} | |
3539 | /* FIXME: this is fragile. */ | |
3540 | malloc () {} | |
3541 | strcmp () {} | |
3542 | strlen () {} | |
3543 | memcpy () {} | |
3544 | memset () {} | |
3545 | free () {} | |
3546 | abort () {} | |
dfd2257a | 3547 | __bzero () {} |
7ae4abe9 | 3548 | dl_iterate_phdr () {} |
650425ce | 3549 | EOF |
9756dfe1 | 3550 | if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info |
650425ce | 3551 | -nostdlib -nostartfiles |
749a9a4f | 3552 | -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
9756dfe1 | 3553 | libc_cv_gcc_dwarf2_unwind_info=static |
650425ce UD |
3554 | else |
3555 | libc_cv_gcc_dwarf2_unwind_info=no | |
3556 | fi | |
2b904739 AJ |
3557 | if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info |
3558 | -nostdlib -nostartfiles | |
749a9a4f | 3559 | -o conftest conftest.c -lgcc -lgcc_eh >&5'; { (eval echo configure:3560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
2b904739 AJ |
3560 | if ${CC-cc} $CFLAGS -DCHECK__register_frame_info -nostdlib -nostartfiles \ |
3561 | -o conftest conftest.c -lgcc -lgcc_eh -v 2>&1 >/dev/null \ | |
3562 | | grep -q -- --eh-frame-hdr; then | |
3563 | libc_cv_gcc_dwarf2_unwind_info=no_registry_needed | |
3564 | else | |
3565 | libc_cv_gcc_dwarf2_unwind_info=static | |
3566 | fi | |
3567 | else | |
3568 | libc_cv_gcc_dwarf2_unwind_info=no | |
3569 | fi | |
9756dfe1 UD |
3570 | if test $libc_cv_gcc_dwarf2_unwind_info = no; then |
3571 | if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame | |
3572 | -nostdlib -nostartfiles | |
749a9a4f | 3573 | -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
9756dfe1 UD |
3574 | libc_cv_gcc_dwarf2_unwind_info=yes |
3575 | else | |
3576 | libc_cv_gcc_dwarf2_unwind_info=no | |
3577 | fi | |
3578 | fi | |
650425ce UD |
3579 | rm -f conftest* |
3580 | fi | |
3581 | ||
3582 | echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6 | |
9756dfe1 UD |
3583 | case $libc_cv_gcc_dwarf2_unwind_info in |
3584 | yes) | |
650425ce UD |
3585 | cat >> confdefs.h <<\EOF |
3586 | #define HAVE_DWARF2_UNWIND_INFO 1 | |
3587 | EOF | |
3588 | ||
9756dfe1 UD |
3589 | ;; |
3590 | static) | |
3591 | cat >> confdefs.h <<\EOF | |
3592 | #define HAVE_DWARF2_UNWIND_INFO 1 | |
3593 | EOF | |
3594 | ||
3595 | cat >> confdefs.h <<\EOF | |
3596 | #define HAVE_DWARF2_UNWIND_INFO_STATIC 1 | |
3597 | EOF | |
3598 | ||
3599 | ;; | |
3600 | esac | |
650425ce | 3601 | |
a8eab8b1 | 3602 | echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6 |
749a9a4f | 3603 | echo "configure:3604: checking for __builtin_expect" >&5 |
a808d541 | 3604 | if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then |
a8eab8b1 UD |
3605 | echo $ac_n "(cached) $ac_c" 1>&6 |
3606 | else | |
3607 | cat > conftest.c <<EOF | |
749a9a4f | 3608 | #line 3609 "configure" |
a8eab8b1 UD |
3609 | int foo (int a) |
3610 | { | |
3611 | a = __builtin_expect (a, 10); | |
3612 | return a == 10 ? 0 : 1; | |
3613 | } | |
3614 | EOF | |
3615 | if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles | |
749a9a4f | 3616 | -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
a8eab8b1 UD |
3617 | libc_cv_gcc_builtin_expect=yes |
3618 | else | |
3619 | libc_cv_gcc_builtin_expect=no | |
3620 | fi | |
3621 | rm -f conftest* | |
3622 | fi | |
3623 | ||
3624 | echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6 | |
3625 | if test "$libc_cv_gcc_builtin_expect" = yes; then | |
3626 | cat >> confdefs.h <<\EOF | |
3627 | #define HAVE_BUILTIN_EXPECT 1 | |
3628 | EOF | |
3629 | ||
3630 | fi | |
3631 | ||
d555194c | 3632 | echo $ac_n "checking for __builtin_memset""... $ac_c" 1>&6 |
749a9a4f | 3633 | echo "configure:3634: checking for __builtin_memset" >&5 |
d555194c UD |
3634 | if eval "test \"`echo '$''{'libc_cv_gcc_builtin_memset'+set}'`\" = set"; then |
3635 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3636 | else | |
3637 | cat > conftest.c <<\EOF | |
3638 | void zero (void *x) | |
3639 | { | |
a52d1562 | 3640 | __builtin_memset (x, 0, 1000); |
d555194c UD |
3641 | } |
3642 | EOF | |
749a9a4f | 3643 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'; { (eval echo configure:3644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; |
d555194c UD |
3644 | then |
3645 | libc_cv_gcc_builtin_memset=no | |
3646 | else | |
3647 | libc_cv_gcc_builtin_memset=yes | |
3648 | fi | |
3649 | rm -f conftest* | |
3650 | fi | |
3651 | ||
3652 | echo "$ac_t""$libc_cv_gcc_builtin_memset" 1>&6 | |
3653 | if test "$libc_cv_gcc_builtin_memset" = yes ; then | |
3654 | cat >> confdefs.h <<\EOF | |
3655 | #define HAVE_BUILTIN_MEMSET 1 | |
3656 | EOF | |
3657 | ||
3658 | fi | |
3659 | ||
3d558f4e | 3660 | echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6 |
749a9a4f | 3661 | echo "configure:3662: checking for local label subtraction" >&5 |
a808d541 | 3662 | if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then |
3d558f4e UD |
3663 | echo $ac_n "(cached) $ac_c" 1>&6 |
3664 | else | |
3665 | cat > conftest.c <<EOF | |
749a9a4f | 3666 | #line 3667 "configure" |
3d558f4e UD |
3667 | int foo (int a) |
3668 | { | |
3669 | static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 }; | |
3670 | void *p = &&l1 + ar[a]; | |
3671 | goto *p; | |
3672 | l1: | |
3673 | return 1; | |
3674 | l2: | |
3675 | return 2; | |
3676 | } | |
3677 | EOF | |
3678 | if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles | |
749a9a4f | 3679 | -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
3d558f4e UD |
3680 | libc_cv_gcc_subtract_local_labels=yes |
3681 | else | |
3682 | libc_cv_gcc_subtract_local_labels=no | |
3683 | fi | |
3684 | rm -f conftest* | |
3685 | fi | |
3686 | ||
3687 | echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6 | |
3688 | if test "$libc_cv_gcc_subtract_local_labels" = yes; then | |
3689 | cat >> confdefs.h <<\EOF | |
3690 | #define HAVE_SUBTRACT_LOCAL_LABELS 1 | |
3691 | EOF | |
3692 | ||
3693 | fi | |
3694 | ||
739d440d | 3695 | echo $ac_n "checking for __thread""... $ac_c" 1>&6 |
749a9a4f | 3696 | echo "configure:3697: checking for __thread" >&5 |
739d440d UD |
3697 | if eval "test \"`echo '$''{'libc_cv_gcc___thread'+set}'`\" = set"; then |
3698 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3699 | else | |
5bbfc1ea | 3700 | cat > conftest.c <<\EOF |
739d440d UD |
3701 | __thread int a = 42; |
3702 | EOF | |
749a9a4f | 3703 | if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'; { (eval echo configure:3704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
739d440d UD |
3704 | libc_cv_gcc___thread=yes |
3705 | else | |
3706 | libc_cv_gcc___thread=no | |
3707 | fi | |
3708 | rm -f conftest* | |
3709 | fi | |
3710 | ||
3711 | echo "$ac_t""$libc_cv_gcc___thread" 1>&6 | |
3712 | if test "$libc_cv_gcc___thread" = yes; then | |
3713 | cat >> confdefs.h <<\EOF | |
3714 | #define HAVE___THREAD 1 | |
3715 | EOF | |
3716 | ||
3717 | fi | |
3718 | ||
3719 | ||
c8f3e6db | 3720 | echo $ac_n "checking for libgd""... $ac_c" 1>&6 |
749a9a4f | 3721 | echo "configure:3722: checking for libgd" >&5 |
6dab8688 UD |
3722 | if test "$with_gd" != "no"; then |
3723 | old_CFLAGS="$CFLAGS" | |
3724 | CFLAGS="$CFLAGS $libgd_include" | |
3725 | old_LDFLAGS="$LDFLAGS" | |
3726 | LDFLAGS="$LDFLAGS $libgd_ldflags" | |
3727 | old_LIBS="$LIBS" | |
3728 | LIBS="$LIBS -lgd -lpng -lz -lm" | |
3729 | cat > conftest.$ac_ext <<EOF | |
749a9a4f | 3730 | #line 3731 "configure" |
c8f3e6db UD |
3731 | #include "confdefs.h" |
3732 | #include <gd.h> | |
3733 | int main() { | |
3734 | gdImagePng (0, 0) | |
3735 | ; return 0; } | |
3736 | EOF | |
749a9a4f | 3737 | if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c8f3e6db UD |
3738 | rm -rf conftest* |
3739 | LIBGD=yes | |
3740 | else | |
3741 | echo "configure: failed program was:" >&5 | |
3742 | cat conftest.$ac_ext >&5 | |
3743 | rm -rf conftest* | |
3744 | LIBGD=no | |
3745 | fi | |
3746 | rm -f conftest* | |
6dab8688 UD |
3747 | CFLAGS="$old_CFLAGS" |
3748 | LDFLAGS="$old_LDFLAGS" | |
3749 | LIBS="$old_LIBS" | |
3750 | else | |
3751 | LIBGD=no | |
3752 | fi | |
c8f3e6db UD |
3753 | echo "$ac_t""$LIBGD" 1>&6 |
3754 | ||
3d558f4e | 3755 | |
8ed1e7d5 | 3756 | echo $ac_n "checking size of long double""... $ac_c" 1>&6 |
749a9a4f | 3757 | echo "configure:3758: checking size of long double" >&5 |
8ed1e7d5 GK |
3758 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then |
3759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3760 | else | |
3761 | if test "$cross_compiling" = yes; then | |
3762 | ac_cv_sizeof_long_double=0 | |
3763 | else | |
3764 | cat > conftest.$ac_ext <<EOF | |
749a9a4f | 3765 | #line 3766 "configure" |
8ed1e7d5 GK |
3766 | #include "confdefs.h" |
3767 | #include <stdio.h> | |
a8c01776 | 3768 | int main() |
8ed1e7d5 GK |
3769 | { |
3770 | FILE *f=fopen("conftestval", "w"); | |
a8c01776 | 3771 | if (!f) return(1); |
8ed1e7d5 | 3772 | fprintf(f, "%d\n", sizeof(long double)); |
a8c01776 | 3773 | return(0); |
8ed1e7d5 GK |
3774 | } |
3775 | EOF | |
749a9a4f | 3776 | if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8ed1e7d5 GK |
3777 | then |
3778 | ac_cv_sizeof_long_double=`cat conftestval` | |
3779 | else | |
3780 | echo "configure: failed program was:" >&5 | |
3781 | cat conftest.$ac_ext >&5 | |
3782 | rm -fr conftest* | |
3783 | ac_cv_sizeof_long_double=0 | |
3784 | fi | |
3785 | rm -fr conftest* | |
3786 | fi | |
3787 | ||
3788 | fi | |
3789 | echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6 | |
3790 | cat >> confdefs.h <<EOF | |
3791 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | |
3792 | EOF | |
3793 | ||
3794 | ||
3795 | sizeof_long_double=$ac_cv_sizeof_long_double | |
3796 | ||
3797 | ||
cd6ede75 UD |
3798 | ### End of automated tests. |
3799 | ### Now run sysdeps configure fragments. | |
3800 | ||
3801 | # sysdeps configure fragments may set these with files to be linked below. | |
3802 | libc_link_dests= | |
3803 | libc_link_sources= | |
3804 | ||
cb343854 | 3805 | # They also can set these variables. |
b43b13ac | 3806 | use_ldconfig=no |
cb343854 | 3807 | ldd_rewrite_script=no |
77259608 | 3808 | libc_cv_sysconfdir=$sysconfdir |
74bd2300 | 3809 | libc_cv_gcc_unwind_find_fde=no |
cb343854 | 3810 | |
cd6ede75 UD |
3811 | # Iterate over all the sysdep directories we will use, running their |
3812 | # configure fragments, and looking for a uname implementation. | |
3813 | uname= | |
3814 | for dir in $sysnames; do | |
3815 | case $dir in | |
3816 | /*) dest=$dir ;; | |
3817 | *) dest=$srcdir/$dir ;; | |
3818 | esac | |
3819 | if test -r $dest/configure; then | |
3820 | echo "$ac_t""running configure fragment for $dest" 1>&6 | |
3821 | . $dest/configure | |
3822 | fi | |
3823 | ||
3824 | if test -z "$uname"; then | |
3825 | if test -r $dest/uname.c || | |
3826 | test -r $dest/uname.S || | |
3827 | { test -r $dest/syscalls.list && | |
3828 | grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then | |
3829 | uname=$dir | |
3830 | fi | |
3831 | fi | |
3832 | done | |
3833 | ||
74bd2300 UD |
3834 | if test x$libc_cv_gcc_unwind_find_fde = xyes; then |
3835 | cat >> confdefs.h <<\EOF | |
3836 | #define EXPORT_UNWIND_FIND_FDE 1 | |
3837 | EOF | |
3838 | ||
3839 | fi | |
3840 | ||
3841 | ||
cd6ede75 UD |
3842 | |
3843 | ||
3844 | # If we will use the generic uname implementation, we must figure out what | |
3845 | # it will say by examining the system, and write the results in config-name.h. | |
3846 | if test "$uname" = "sysdeps/generic"; then | |
3847 | ||
3848 | uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'` | |
3849 | if test $uname_sysname != $config_os; then | |
3850 | config_release=`echo $config_os | sed s/$uname_sysname//` | |
3851 | fi | |
3852 | ||
3853 | echo $ac_n "checking OS release for uname""... $ac_c" 1>&6 | |
749a9a4f | 3854 | echo "configure:3855: checking OS release for uname" >&5 |
a808d541 | 3855 | if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then |
cd6ede75 UD |
3856 | echo $ac_n "(cached) $ac_c" 1>&6 |
3857 | else | |
3858 | kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'` | |
3859 | if test x`echo "$config_release" | sed "s/^$kernel_release//"` \ | |
3860 | != x$config_release; then | |
3861 | # The configuration release is a substring of the kernel release. | |
3862 | libc_cv_uname_release=$kernel_release | |
3863 | elif test x$config_release != x; then | |
3864 | libc_cv_uname_release=$config_release | |
3865 | elif test x$kernel_release != x; then | |
3866 | libc_cv_uname_release=$kernel_release | |
3867 | else | |
3868 | libc_cv_uname_release=unknown | |
3869 | fi | |
3870 | fi | |
3871 | ||
3872 | echo "$ac_t""$libc_cv_uname_release" 1>&6 | |
3873 | uname_release="$libc_cv_uname_release" | |
3874 | ||
3875 | echo $ac_n "checking OS version for uname""... $ac_c" 1>&6 | |
749a9a4f | 3876 | echo "configure:3877: checking OS version for uname" >&5 |
a808d541 | 3877 | if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then |
cd6ede75 UD |
3878 | echo $ac_n "(cached) $ac_c" 1>&6 |
3879 | else | |
3880 | kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'` | |
3881 | if test -n "$kernel_version"; then | |
3882 | libc_cv_uname_version="$kernel_version" | |
3883 | else | |
3884 | libc_cv_uname_version=unknown | |
3885 | fi | |
3886 | fi | |
3887 | ||
3888 | echo "$ac_t""$libc_cv_uname_version" 1>&6 | |
3889 | uname_version="$libc_cv_uname_version" | |
3890 | ||
3891 | config_uname=config-name.h:config-name.in | |
3892 | else | |
3893 | # For non-generic uname, we don't need to create config-name.h at all. | |
3894 | config_uname= | |
3895 | fi | |
3896 | ||
a8c01776 | 3897 | cat >> confdefs.h <<\EOF |
cd6ede75 UD |
3898 | #define USE_IN_LIBIO 1 |
3899 | EOF | |
a8c01776 | 3900 | |
cd6ede75 | 3901 | |
a53bad16 UD |
3902 | # Test for old glibc 2.0.x headers so that they can be removed properly |
3903 | # Search only in includedir. | |
3904 | echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6 | |
749a9a4f | 3905 | echo "configure:3906: checking for old glibc 2.0.x headers" >&5 |
011ce8ed | 3906 | if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h" |
a53bad16 UD |
3907 | then |
3908 | old_glibc_headers=yes | |
3909 | else | |
3910 | old_glibc_headers=no | |
3911 | fi | |
3912 | echo "$ac_t""$old_glibc_headers" 1>&6 | |
3913 | if test ${old_glibc_headers} = yes; then | |
3914 | echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2 | |
3915 | echo "configure: warning: *** be removed." 1>&2 | |
3916 | fi | |
26b4d766 | 3917 | |
cd6ede75 UD |
3918 | |
3919 | ||
3920 | ||
3921 | ||
3922 | ||
3923 | ||
cb343854 | 3924 | |
dff14448 | 3925 | |
77259608 | 3926 | |
5af3245a | 3927 | |
cd6ede75 UD |
3928 | if test $gnu_ld = yes; then |
3929 | cat >> confdefs.h <<\EOF | |
3930 | #define HAVE_GNU_LD 1 | |
3931 | EOF | |
3932 | ||
3933 | fi | |
3934 | if test $gnu_as = yes; then | |
3935 | cat >> confdefs.h <<\EOF | |
3936 | #define HAVE_GNU_AS 1 | |
3937 | EOF | |
3938 | ||
3939 | fi | |
3940 | if test $elf = yes; then | |
3941 | cat >> confdefs.h <<\EOF | |
3942 | #define HAVE_ELF 1 | |
3943 | EOF | |
3944 | ||
3945 | fi | |
5af3245a UD |
3946 | if test $xcoff = yes; then |
3947 | cat >> confdefs.h <<\EOF | |
3948 | #define HAVE_XCOFF 1 | |
3949 | EOF | |
3950 | ||
3951 | fi | |
cd6ede75 UD |
3952 | |
3953 | ||
650425ce | 3954 | |
cd6ede75 UD |
3955 | if test $shared = default; then |
3956 | if test $gnu_ld = yes; then | |
3957 | shared=$elf | |
3958 | else | |
3959 | # For now we do not assume shared libs are available. In future more | |
3960 | # tests might become available. | |
3961 | shared=no | |
3962 | fi | |
3963 | fi | |
3964 | ||
cc3fa755 | 3965 | echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6 |
749a9a4f | 3966 | echo "configure:3967: checking whether -fPIC is default" >&5 |
a808d541 | 3967 | if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then |
cc3fa755 UD |
3968 | echo $ac_n "(cached) $ac_c" 1>&6 |
3969 | else | |
3970 | pic_default=yes | |
3971 | cat > conftest.c <<EOF | |
9756dfe1 | 3972 | #if defined __PIC__ || defined __pic__ || defined PIC || defined pic |
cc3fa755 UD |
3973 | # error PIC is default. |
3974 | #endif | |
3975 | EOF | |
3976 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
3977 | pic_default=no | |
3978 | fi | |
3979 | rm -f conftest.* | |
3980 | fi | |
3981 | ||
3982 | echo "$ac_t""$pic_default" 1>&6 | |
3983 | ||
3984 | ||
3985 | ||
cd6ede75 UD |
3986 | |
3987 | ||
3988 | ||
3989 | ||
3990 | ||
3991 | ||
3992 | ||
7cabd57c UD |
3993 | case "$add_ons" in |
3994 | *door*) linux_doors=yes ;; | |
3995 | *) linux_doors=no ;; | |
3996 | esac | |
3997 | ||
3998 | ||
746f4007 RM |
3999 | |
4000 | ||
cd6ede75 UD |
4001 | if test "`(cd $srcdir; pwd)`" = "`pwd`"; then |
4002 | config_makefile= | |
4003 | else | |
4004 | config_makefile=Makefile | |
4005 | fi | |
4006 | ||
ee74a442 UD |
4007 | VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h` |
4008 | RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h` | |
4009 | ||
cd6ede75 UD |
4010 | |
4011 | ||
4012 | trap '' 1 2 15 | |
4013 | cat > confcache <<\EOF | |
4014 | # This file is a shell script that caches the results of configure | |
4015 | # tests run on this system so they can be shared between configure | |
4016 | # scripts and configure runs. It is not useful on other systems. | |
4017 | # If it contains results you don't want to keep, you may remove or edit it. | |
4018 | # | |
4019 | # By default, configure uses ./config.cache as the cache file, | |
4020 | # creating it if it does not exist already. You can give configure | |
4021 | # the --cache-file=FILE option to use a different cache file; that is | |
4022 | # what configure does when it calls configure scripts in | |
4023 | # subdirectories, so they share the cache. | |
4024 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
4025 | # config.status only pays attention to the cache file if you give it the | |
4026 | # --recheck option to rerun configure. | |
4027 | # | |
4028 | EOF | |
4029 | # The following way of writing the cache mishandles newlines in values, | |
4030 | # but we know of no workaround that is simple, portable, and efficient. | |
4031 | # So, don't put newlines in cache variables' values. | |
4032 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4033 | # and sets the high bit in the cache file unless we assign to the vars. | |
4034 | (set) 2>&1 | | |
5c2a0669 | 4035 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
cd6ede75 UD |
4036 | *ac_space=\ *) |
4037 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
4038 | # turns \\\\ into \\, and sed turns \\ into \). | |
4039 | sed -n \ | |
4040 | -e "s/'/'\\\\''/g" \ | |
4041 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
4042 | ;; | |
4043 | *) | |
4044 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4045 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
4046 | ;; | |
4047 | esac >> confcache | |
4048 | if cmp -s $cache_file confcache; then | |
4049 | : | |
4050 | else | |
4051 | if test -w $cache_file; then | |
4052 | echo "updating cache $cache_file" | |
4053 | cat confcache > $cache_file | |
4054 | else | |
4055 | echo "not updating unwritable cache $cache_file" | |
4056 | fi | |
4057 | fi | |
4058 | rm -f confcache | |
4059 | ||
4060 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
4061 | ||
4062 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
4063 | # Let make expand exec_prefix. | |
4064 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4065 | ||
4066 | # Any assignment to VPATH causes Sun make to only execute | |
4067 | # the first set of double-colon rules, so remove it if not needed. | |
4068 | # If there is a colon in the path, we need to keep it. | |
4069 | if test "x$srcdir" = x.; then | |
4070 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
4071 | fi | |
4072 | ||
4073 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
4074 | ||
4075 | DEFS=-DHAVE_CONFIG_H | |
4076 | ||
4077 | # Without the "./", some shells look in PATH for config.status. | |
4078 | : ${CONFIG_STATUS=./config.status} | |
4079 | ||
4080 | echo creating $CONFIG_STATUS | |
4081 | rm -f $CONFIG_STATUS | |
4082 | cat > $CONFIG_STATUS <<EOF | |
4083 | #! /bin/sh | |
4084 | # Generated automatically by configure. | |
4085 | # Run this file to recreate the current configuration. | |
4086 | # This directory was configured as follows, | |
4087 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
4088 | # | |
4089 | # $0 $ac_configure_args | |
4090 | # | |
4091 | # Compiler output produced by configure, useful for debugging | |
4092 | # configure, is in ./config.log if it exists. | |
4093 | ||
4094 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
4095 | for ac_option | |
4096 | do | |
4097 | case "\$ac_option" in | |
4098 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4099 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
4100 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
4101 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
a808d541 | 4102 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
cd6ede75 UD |
4103 | exit 0 ;; |
4104 | -help | --help | --hel | --he | --h) | |
4105 | echo "\$ac_cs_usage"; exit 0 ;; | |
4106 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
4107 | esac | |
4108 | done | |
4109 | ||
4110 | ac_given_srcdir=$srcdir | |
4111 | ac_given_INSTALL="$INSTALL" | |
4112 | ||
4113 | trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
4114 | EOF | |
4115 | cat >> $CONFIG_STATUS <<EOF | |
4116 | ||
4117 | # Protect against being on the right side of a sed subst in config.status. | |
4118 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
4119 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
4120 | $ac_vpsub | |
4121 | $extrasub | |
5c2a0669 | 4122 | s%@SHELL@%$SHELL%g |
cd6ede75 UD |
4123 | s%@CFLAGS@%$CFLAGS%g |
4124 | s%@CPPFLAGS@%$CPPFLAGS%g | |
4125 | s%@CXXFLAGS@%$CXXFLAGS%g | |
5c2a0669 | 4126 | s%@FFLAGS@%$FFLAGS%g |
cd6ede75 UD |
4127 | s%@DEFS@%$DEFS%g |
4128 | s%@LDFLAGS@%$LDFLAGS%g | |
4129 | s%@LIBS@%$LIBS%g | |
4130 | s%@exec_prefix@%$exec_prefix%g | |
4131 | s%@prefix@%$prefix%g | |
4132 | s%@program_transform_name@%$program_transform_name%g | |
4133 | s%@bindir@%$bindir%g | |
4134 | s%@sbindir@%$sbindir%g | |
4135 | s%@libexecdir@%$libexecdir%g | |
4136 | s%@datadir@%$datadir%g | |
4137 | s%@sysconfdir@%$sysconfdir%g | |
4138 | s%@sharedstatedir@%$sharedstatedir%g | |
4139 | s%@localstatedir@%$localstatedir%g | |
4140 | s%@libdir@%$libdir%g | |
4141 | s%@includedir@%$includedir%g | |
4142 | s%@oldincludedir@%$oldincludedir%g | |
4143 | s%@infodir@%$infodir%g | |
4144 | s%@mandir@%$mandir%g | |
675322a5 | 4145 | s%@with_fp@%$with_fp%g |
d67281a7 | 4146 | s%@with_cvs@%$with_cvs%g |
deb7f0b4 | 4147 | s%@oldest_abi@%$oldest_abi%g |
cd6ede75 | 4148 | s%@subdirs@%$subdirs%g |
73237de3 | 4149 | s%@force_install@%$force_install%g |
2a068d20 | 4150 | s%@all_warnings@%$all_warnings%g |
cd6ede75 UD |
4151 | s%@host@%$host%g |
4152 | s%@host_alias@%$host_alias%g | |
4153 | s%@host_cpu@%$host_cpu%g | |
4154 | s%@host_vendor@%$host_vendor%g | |
4155 | s%@host_os@%$host_os%g | |
4156 | s%@base_machine@%$base_machine%g | |
4157 | s%@sysnames@%$sysnames%g | |
4158 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
5c2a0669 | 4159 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
cd6ede75 UD |
4160 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
4161 | s%@LN_S@%$LN_S%g | |
c218729d | 4162 | s%@PWD_P@%$PWD_P%g |
cd6ede75 UD |
4163 | s%@build@%$build%g |
4164 | s%@build_alias@%$build_alias%g | |
4165 | s%@build_cpu@%$build_cpu%g | |
4166 | s%@build_vendor@%$build_vendor%g | |
4167 | s%@build_os@%$build_os%g | |
4bca4c17 UD |
4168 | s%@CC@%$CC%g |
4169 | s%@MAKE@%$MAKE%g | |
4170 | s%@MSGFMT@%$MSGFMT%g | |
4171 | s%@MAKEINFO@%$MAKEINFO%g | |
aec103d3 | 4172 | s%@SED@%$SED%g |
4bca4c17 | 4173 | s%@cross_linkable@%$cross_linkable%g |
cd6ede75 UD |
4174 | s%@BUILD_CC@%$BUILD_CC%g |
4175 | s%@cross_compiling@%$cross_compiling%g | |
4176 | s%@CPP@%$CPP%g | |
4177 | s%@AR@%$AR%g | |
4178 | s%@RANLIB@%$RANLIB%g | |
4bca4c17 | 4179 | s%@MIG@%$MIG%g |
ea9f119b | 4180 | s%@CCVERSION@%$CCVERSION%g |
3c720987 | 4181 | s%@SYSINCLUDES@%$SYSINCLUDES%g |
74bd2300 | 4182 | s%@libc_cv_gcc_static_libgcc@%$libc_cv_gcc_static_libgcc%g |
cd6ede75 UD |
4183 | s%@BASH@%$BASH%g |
4184 | s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g | |
4185 | s%@KSH@%$KSH%g | |
4186 | s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g | |
5aa8ff62 | 4187 | s%@AWK@%$AWK%g |
a2b08ee5 | 4188 | s%@PERL@%$PERL%g |
c0016081 UD |
4189 | s%@INSTALL_INFO@%$INSTALL_INFO%g |
4190 | s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g | |
ae113383 | 4191 | s%@BISON@%$BISON%g |
cd6ede75 | 4192 | s%@VERSIONING@%$VERSIONING%g |
2d499f55 | 4193 | s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g |
2c617417 | 4194 | s%@libc_cv_initfinit_array@%$libc_cv_initfinit_array%g |
2f54c82d UD |
4195 | s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g |
4196 | s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g | |
5d916713 | 4197 | s%@libc_cv_z_initfirst@%$libc_cv_z_initfirst%g |
639c3248 | 4198 | s%@libc_cv_Bgroup@%$libc_cv_Bgroup%g |
f13df7c7 | 4199 | s%@libc_cv_z_combreloc@%$libc_cv_z_combreloc%g |
cd6ede75 | 4200 | s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g |
b17277cf | 4201 | s%@no_whole_archive@%$no_whole_archive%g |
dff14448 | 4202 | s%@exceptions@%$exceptions%g |
c8f3e6db | 4203 | s%@LIBGD@%$LIBGD%g |
8ed1e7d5 | 4204 | s%@sizeof_long_double@%$sizeof_long_double%g |
74bd2300 | 4205 | s%@libc_cv_gcc_unwind_find_fde@%$libc_cv_gcc_unwind_find_fde%g |
cd6ede75 UD |
4206 | s%@uname_sysname@%$uname_sysname%g |
4207 | s%@uname_release@%$uname_release%g | |
4208 | s%@uname_version@%$uname_version%g | |
dff14448 | 4209 | s%@old_glibc_headers@%$old_glibc_headers%g |
cd6ede75 | 4210 | s%@libc_cv_slibdir@%$libc_cv_slibdir%g |
a1d84548 | 4211 | s%@libc_cv_localedir@%$libc_cv_localedir%g |
77259608 | 4212 | s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g |
cd6ede75 | 4213 | s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g |
b43b13ac | 4214 | s%@use_ldconfig@%$use_ldconfig%g |
cb343854 | 4215 | s%@ldd_rewrite_script@%$ldd_rewrite_script%g |
cd6ede75 UD |
4216 | s%@gnu_ld@%$gnu_ld%g |
4217 | s%@gnu_as@%$gnu_as%g | |
4218 | s%@elf@%$elf%g | |
5af3245a | 4219 | s%@xcoff@%$xcoff%g |
650425ce | 4220 | s%@static@%$static%g |
cd6ede75 | 4221 | s%@shared@%$shared%g |
cc3fa755 | 4222 | s%@pic_default@%$pic_default%g |
cd6ede75 UD |
4223 | s%@profile@%$profile%g |
4224 | s%@omitfp@%$omitfp%g | |
4225 | s%@bounded@%$bounded%g | |
4226 | s%@static_nss@%$static_nss%g | |
4227 | s%@nopic_initfini@%$nopic_initfini%g | |
4228 | s%@DEFINES@%$DEFINES%g | |
7cabd57c | 4229 | s%@linux_doors@%$linux_doors%g |
746f4007 | 4230 | s%@mach_interface_list@%$mach_interface_list%g |
cd6ede75 | 4231 | s%@VERSION@%$VERSION%g |
ee74a442 | 4232 | s%@RELEASE@%$RELEASE%g |
cd6ede75 UD |
4233 | |
4234 | CEOF | |
4235 | EOF | |
4236 | ||
4237 | cat >> $CONFIG_STATUS <<\EOF | |
4238 | ||
4239 | # Split the substitutions into bite-sized pieces for seds with | |
4240 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
4241 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
4242 | ac_file=1 # Number of current file. | |
4243 | ac_beg=1 # First line for current file. | |
4244 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
4245 | ac_more_lines=: | |
4246 | ac_sed_cmds="" | |
4247 | while $ac_more_lines; do | |
4248 | if test $ac_beg -gt 1; then | |
4249 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
4250 | else | |
4251 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
4252 | fi | |
4253 | if test ! -s conftest.s$ac_file; then | |
4254 | ac_more_lines=false | |
4255 | rm -f conftest.s$ac_file | |
4256 | else | |
4257 | if test -z "$ac_sed_cmds"; then | |
4258 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
4259 | else | |
4260 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
4261 | fi | |
4262 | ac_file=`expr $ac_file + 1` | |
4263 | ac_beg=$ac_end | |
4264 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
4265 | fi | |
4266 | done | |
4267 | if test -z "$ac_sed_cmds"; then | |
4268 | ac_sed_cmds=cat | |
4269 | fi | |
4270 | EOF | |
4271 | ||
4272 | cat >> $CONFIG_STATUS <<EOF | |
4273 | ||
4274 | CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"} | |
4275 | EOF | |
4276 | cat >> $CONFIG_STATUS <<\EOF | |
4277 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
4278 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4279 | case "$ac_file" in | |
4280 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
4281 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
4282 | *) ac_file_in="${ac_file}.in" ;; | |
4283 | esac | |
4284 | ||
4285 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
4286 | ||
4287 | # Remove last slash and all that follows it. Not all systems have dirname. | |
4288 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
4289 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
4290 | # The file is in a subdirectory. | |
4291 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
4292 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
4293 | # A "../" for each directory in $ac_dir_suffix. | |
4294 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
4295 | else | |
4296 | ac_dir_suffix= ac_dots= | |
4297 | fi | |
4298 | ||
4299 | case "$ac_given_srcdir" in | |
4300 | .) srcdir=. | |
4301 | if test -z "$ac_dots"; then top_srcdir=. | |
4302 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
4303 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
4304 | *) # Relative path. | |
4305 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
4306 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
4307 | esac | |
4308 | ||
4309 | case "$ac_given_INSTALL" in | |
4310 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
4311 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
4312 | esac | |
4313 | ||
4314 | echo creating "$ac_file" | |
4315 | rm -f "$ac_file" | |
4316 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
4317 | case "$ac_file" in | |
4318 | *Makefile*) ac_comsub="1i\\ | |
4319 | # $configure_input" ;; | |
4320 | *) ac_comsub= ;; | |
4321 | esac | |
4322 | ||
4323 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
4324 | sed -e "$ac_comsub | |
4325 | s%@configure_input@%$configure_input%g | |
4326 | s%@srcdir@%$srcdir%g | |
4327 | s%@top_srcdir@%$top_srcdir%g | |
4328 | s%@INSTALL@%$INSTALL%g | |
4329 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
4330 | fi; done | |
4331 | rm -f conftest.s* | |
4332 | ||
4333 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
4334 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
4335 | # | |
4336 | # ac_d sets the value in "#define NAME VALUE" lines. | |
4337 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
4338 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
4339 | ac_dC='\3' | |
4340 | ac_dD='%g' | |
4341 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
4342 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
4343 | ac_uB='\([ ]\)%\1#\2define\3' | |
4344 | ac_uC=' ' | |
4345 | ac_uD='\4%g' | |
4346 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
4347 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
4348 | ac_eB='$%\1#\2define\3' | |
4349 | ac_eC=' ' | |
4350 | ac_eD='%g' | |
4351 | ||
4352 | if test "${CONFIG_HEADERS+set}" != set; then | |
4353 | EOF | |
4354 | cat >> $CONFIG_STATUS <<EOF | |
4355 | CONFIG_HEADERS="config.h" | |
4356 | EOF | |
4357 | cat >> $CONFIG_STATUS <<\EOF | |
4358 | fi | |
4359 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
4360 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4361 | case "$ac_file" in | |
4362 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
4363 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
4364 | *) ac_file_in="${ac_file}.in" ;; | |
4365 | esac | |
4366 | ||
4367 | echo creating $ac_file | |
4368 | ||
4369 | rm -f conftest.frag conftest.in conftest.out | |
4370 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
4371 | cat $ac_file_inputs > conftest.in | |
4372 | ||
4373 | EOF | |
4374 | ||
4375 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
4376 | # the proper values into config.h.in to produce config.h. And first: | |
4377 | # Protect against being on the right side of a sed subst in config.status. | |
4378 | # Protect against being in an unquoted here document in config.status. | |
4379 | rm -f conftest.vals | |
4380 | cat > conftest.hdr <<\EOF | |
4381 | s/[\\&%]/\\&/g | |
4382 | s%[\\$`]%\\&%g | |
4383 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
4384 | s%ac_d%ac_u%gp | |
4385 | s%ac_u%ac_e%gp | |
4386 | EOF | |
4387 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
4388 | rm -f conftest.hdr | |
4389 | ||
4390 | # This sed command replaces #undef with comments. This is necessary, for | |
4391 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
4392 | # on some systems where configure will not decide to define it. | |
4393 | cat >> conftest.vals <<\EOF | |
4394 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
4395 | EOF | |
4396 | ||
4397 | # Break up conftest.vals because some shells have a limit on | |
4398 | # the size of here documents, and old seds have small limits too. | |
4399 | ||
4400 | rm -f conftest.tail | |
4401 | while : | |
4402 | do | |
4403 | ac_lines=`grep -c . conftest.vals` | |
4404 | # grep -c gives empty output for an empty file on some AIX systems. | |
4405 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
4406 | # Write a limited-size here document to conftest.frag. | |
4407 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
4408 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
4409 | echo 'CEOF | |
4410 | sed -f conftest.frag conftest.in > conftest.out | |
4411 | rm -f conftest.in | |
4412 | mv conftest.out conftest.in | |
4413 | ' >> $CONFIG_STATUS | |
4414 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
4415 | rm -f conftest.vals | |
4416 | mv conftest.tail conftest.vals | |
4417 | done | |
4418 | rm -f conftest.vals | |
4419 | ||
4420 | cat >> $CONFIG_STATUS <<\EOF | |
4421 | rm -f conftest.frag conftest.h | |
4422 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
4423 | cat conftest.in >> conftest.h | |
4424 | rm -f conftest.in | |
4425 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
4426 | echo "$ac_file is unchanged" | |
4427 | rm -f conftest.h | |
4428 | else | |
4429 | # Remove last slash and all that follows it. Not all systems have dirname. | |
4430 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
4431 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
4432 | # The file is in a subdirectory. | |
4433 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
4434 | fi | |
4435 | rm -f $ac_file | |
4436 | mv conftest.h $ac_file | |
4437 | fi | |
4438 | fi; done | |
4439 | ||
4440 | EOF | |
4441 | ||
4442 | cat >> $CONFIG_STATUS <<EOF | |
4443 | ac_sources="`echo $libc_link_sources`" | |
4444 | ac_dests="`echo $libc_link_dests`" | |
4445 | EOF | |
4446 | ||
4447 | cat >> $CONFIG_STATUS <<\EOF | |
4448 | srcdir=$ac_given_srcdir | |
4449 | while test -n "$ac_sources"; do | |
4450 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
4451 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
4452 | ||
4453 | echo "linking $srcdir/$ac_source to $ac_dest" | |
4454 | ||
4455 | if test ! -r $srcdir/$ac_source; then | |
4456 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
4457 | fi | |
4458 | rm -f $ac_dest | |
4459 | ||
4460 | # Make relative symlinks. | |
4461 | # Remove last slash and all that follows it. Not all systems have dirname. | |
4462 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
4463 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
4464 | # The dest file is in a subdirectory. | |
4465 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
4466 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
4467 | # A "../" for each directory in $ac_dest_dir_suffix. | |
4468 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
4469 | else | |
4470 | ac_dest_dir_suffix= ac_dots= | |
4471 | fi | |
4472 | ||
4473 | case "$srcdir" in | |
4474 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
4475 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
4476 | esac | |
4477 | ||
4478 | # Make a symlink if possible; otherwise try a hard link. | |
4479 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
4480 | ln $srcdir/$ac_source $ac_dest; then : | |
4481 | else | |
4482 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
4483 | fi | |
4484 | done | |
4485 | EOF | |
4486 | cat >> $CONFIG_STATUS <<EOF | |
c0fb8a56 | 4487 | config_vars='$config_vars' |
cd6ede75 UD |
4488 | EOF |
4489 | cat >> $CONFIG_STATUS <<\EOF | |
4490 | ||
c0fb8a56 UD |
4491 | case $CONFIG_FILES in *config.make*) |
4492 | echo "$config_vars" >> config.make;; | |
4493 | esac | |
4494 | test -d bits || mkdir bits | |
cd6ede75 UD |
4495 | exit 0 |
4496 | EOF | |
4497 | chmod +x $CONFIG_STATUS | |
4498 | rm -fr confdefs* $ac_clean_files | |
a808d541 | 4499 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
cd6ede75 UD |
4500 | |
4501 | if test "$no_recursion" != yes; then | |
4502 | ||
4503 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
4504 | ac_sub_configure_args= | |
4505 | ac_prev= | |
4506 | for ac_arg in $ac_configure_args; do | |
4507 | if test -n "$ac_prev"; then | |
4508 | ac_prev= | |
4509 | continue | |
4510 | fi | |
4511 | case "$ac_arg" in | |
4512 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
4513 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
4514 | ac_prev=cache_file ;; | |
4515 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
4516 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
4517 | ;; | |
4518 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
4519 | ac_prev=srcdir ;; | |
4520 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
4521 | ;; | |
4522 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
4523 | esac | |
4524 | done | |
4525 | ||
4526 | for ac_config_dir in $add_ons; do | |
4527 | ||
4528 | # Do not complain, so a configure script can configure whichever | |
4529 | # parts of a large source tree are present. | |
4530 | if test ! -d $srcdir/$ac_config_dir; then | |
4531 | continue | |
4532 | fi | |
4533 | ||
4534 | echo configuring in $ac_config_dir | |
4535 | ||
4536 | case "$srcdir" in | |
4537 | .) ;; | |
4538 | *) | |
4539 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
4540 | else | |
4541 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
4542 | fi | |
4543 | ;; | |
4544 | esac | |
4545 | ||
4546 | ac_popdir=`pwd` | |
4547 | cd $ac_config_dir | |
4548 | ||
4549 | # A "../" for each directory in /$ac_config_dir. | |
4550 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
4551 | ||
4552 | case "$srcdir" in | |
4553 | .) # No --srcdir option. We are building in place. | |
4554 | ac_sub_srcdir=$srcdir ;; | |
4555 | /*) # Absolute path. | |
4556 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
4557 | *) # Relative path. | |
4558 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
4559 | esac | |
4560 | ||
4561 | # Check for guested configure; otherwise get Cygnus style configure. | |
4562 | if test -f $ac_sub_srcdir/configure; then | |
a808d541 | 4563 | ac_sub_configure=$ac_sub_srcdir/configure |
cd6ede75 UD |
4564 | elif test -f $ac_sub_srcdir/configure.in; then |
4565 | ac_sub_configure=$ac_configure | |
4566 | else | |
4567 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
4568 | ac_sub_configure= | |
4569 | fi | |
4570 | ||
4571 | # The recursion is here. | |
4572 | if test -n "$ac_sub_configure"; then | |
4573 | ||
4574 | # Make the cache file name correct relative to the subdirectory. | |
4575 | case "$cache_file" in | |
4576 | /*) ac_sub_cache_file=$cache_file ;; | |
4577 | *) # Relative path. | |
4578 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
4579 | esac | |
4580 | case "$ac_given_INSTALL" in | |
4581 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
4582 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
4583 | esac | |
4584 | ||
a808d541 | 4585 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
cd6ede75 | 4586 | # The eval makes quoting arguments work. |
a808d541 | 4587 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
cd6ede75 UD |
4588 | then : |
4589 | else | |
4590 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
4591 | fi | |
4592 | fi | |
4593 | ||
4594 | cd $ac_popdir | |
4595 | done | |
4596 | fi | |
4597 |