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