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