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