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