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