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