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