Update.
[glibc.git] / configure
blobc3b79b6fbc56d7098267d6c1b19b5f55b5e712af
1 #! /bin/sh
3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
21 # Defaults:
22 ac_help=
23 ac_default_prefix=/usr/local
24 # Any additions from configure.in:
25 ac_help="$ac_help
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
27 ac_help="$ac_help
28 --with-gd=DIR find libgd include dir and library with prefix DIR"
29 ac_help="$ac_help
30 --with-gd-include=DIR find libgd include files in DIR"
31 ac_help="$ac_help
32 --with-gd-lib=DIR find libgd library files in DIR"
33 ac_help="$ac_help
34 --with-fp if using floating-point hardware [default=yes]"
35 ac_help="$ac_help
36 --with-binutils=PATH specify location of binutils (as and ld)"
37 ac_help="$ac_help
38 --with-elf if using the ELF object format"
39 ac_help="$ac_help
40 --with-xcoff if using the XCOFF object format"
41 ac_help="$ac_help
42 --without-cvs if CVS should not be used"
43 ac_help="$ac_help
44 --with-headers=PATH location of system headers to use
45 [e.g. /usr/src/linux/include]
46 [default=compiler default]"
47 ac_help="$ac_help
48 --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-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
63 [default=glibc default]"
64 ac_help="$ac_help
65 --enable-add-ons[=DIR1,DIR2]...
66 configure and build add-ons in DIR1,DIR2,...
67 search for add-ons if no parameter given"
68 ac_help="$ac_help
69 --with-tls enable support for TLS"
70 ac_help="$ac_help
71 --enable-static-nss build static NSS modules [default=no]"
72 ac_help="$ac_help
73 --disable-force-install don't force installation of files from this package,
74 even if they are older than the installed files"
75 ac_help="$ac_help
76 --enable-kernel=VERSION compile for compatibility with kernel not older
77 than VERSION"
78 ac_help="$ac_help
79 --enable-all-warnings enable all useful warnings gcc can issue"
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
84 build=NONE
85 cache_file=./config.cache
86 exec_prefix=NONE
87 host=NONE
88 no_create=
89 nonopt=NONE
90 no_recursion=
91 prefix=NONE
92 program_prefix=NONE
93 program_suffix=NONE
94 program_transform_name=s,x,x,
95 silent=
96 site=
97 srcdir=
98 target=NONE
99 verbose=
100 x_includes=NONE
101 x_libraries=NONE
102 bindir='${exec_prefix}/bin'
103 sbindir='${exec_prefix}/sbin'
104 libexecdir='${exec_prefix}/libexec'
105 datadir='${prefix}/share'
106 sysconfdir='${prefix}/etc'
107 sharedstatedir='${prefix}/com'
108 localstatedir='${prefix}/var'
109 libdir='${exec_prefix}/lib'
110 includedir='${prefix}/include'
111 oldincludedir='/usr/include'
112 infodir='${prefix}/info'
113 mandir='${prefix}/man'
115 # Initialize some other variables.
116 subdirs=
117 MFLAGS= MAKEFLAGS=
118 SHELL=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
120 ac_max_here_lines=12
122 ac_prev=
123 for ac_option
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
129 ac_prev=
130 continue
133 case "$ac_option" in
134 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135 *) ac_optarg= ;;
136 esac
138 # Accept the important Cygnus configure options, so we can diagnose typos.
140 case "$ac_option" in
142 -bindir | --bindir | --bindi | --bind | --bin | --bi)
143 ac_prev=bindir ;;
144 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145 bindir="$ac_optarg" ;;
147 -build | --build | --buil | --bui | --bu)
148 ac_prev=build ;;
149 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
150 build="$ac_optarg" ;;
152 -cache-file | --cache-file | --cache-fil | --cache-fi \
153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154 ac_prev=cache_file ;;
155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157 cache_file="$ac_optarg" ;;
159 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
160 ac_prev=datadir ;;
161 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
162 | --da=*)
163 datadir="$ac_optarg" ;;
165 -disable-* | --disable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* | --enable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 case "$ac_option" in
182 *=*) ;;
183 *) ac_optarg=yes ;;
184 esac
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
189 | --exec | --exe | --ex)
190 ac_prev=exec_prefix ;;
191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
193 | --exec=* | --exe=* | --ex=*)
194 exec_prefix="$ac_optarg" ;;
196 -gas | --gas | --ga | --g)
197 # Obsolete; use --with-gas.
198 with_gas=yes ;;
200 -help | --help | --hel | --he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
203 cat << EOF
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
206 Configuration:
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
214 [$ac_default_prefix]
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
216 [same as prefix]
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
221 [PREFIX/share]
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 [PREFIX/com]
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
237 cat << EOF
238 Host type:
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
253 exit 0 ;;
255 -host | --host | --hos | --ho)
256 ac_prev=host ;;
257 -host=* | --host=* | --hos=* | --ho=*)
258 host="$ac_optarg" ;;
260 -includedir | --includedir | --includedi | --included | --include \
261 | --includ | --inclu | --incl | --inc)
262 ac_prev=includedir ;;
263 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264 | --includ=* | --inclu=* | --incl=* | --inc=*)
265 includedir="$ac_optarg" ;;
267 -infodir | --infodir | --infodi | --infod | --info | --inf)
268 ac_prev=infodir ;;
269 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270 infodir="$ac_optarg" ;;
272 -libdir | --libdir | --libdi | --libd)
273 ac_prev=libdir ;;
274 -libdir=* | --libdir=* | --libdi=* | --libd=*)
275 libdir="$ac_optarg" ;;
277 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278 | --libexe | --libex | --libe)
279 ac_prev=libexecdir ;;
280 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281 | --libexe=* | --libex=* | --libe=*)
282 libexecdir="$ac_optarg" ;;
284 -localstatedir | --localstatedir | --localstatedi | --localstated \
285 | --localstate | --localstat | --localsta | --localst \
286 | --locals | --local | --loca | --loc | --lo)
287 ac_prev=localstatedir ;;
288 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291 localstatedir="$ac_optarg" ;;
293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
294 ac_prev=mandir ;;
295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296 mandir="$ac_optarg" ;;
298 -nfp | --nfp | --nf)
299 # Obsolete; use --without-fp.
300 with_fp=no ;;
302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
303 | --no-cr | --no-c)
304 no_create=yes ;;
306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308 no_recursion=yes ;;
310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
312 | --oldin | --oldi | --old | --ol | --o)
313 ac_prev=oldincludedir ;;
314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317 oldincludedir="$ac_optarg" ;;
319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
320 ac_prev=prefix ;;
321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322 prefix="$ac_optarg" ;;
324 -program-prefix | --program-prefix | --program-prefi | --program-pref \
325 | --program-pre | --program-pr | --program-p)
326 ac_prev=program_prefix ;;
327 -program-prefix=* | --program-prefix=* | --program-prefi=* \
328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329 program_prefix="$ac_optarg" ;;
331 -program-suffix | --program-suffix | --program-suffi | --program-suff \
332 | --program-suf | --program-su | --program-s)
333 ac_prev=program_suffix ;;
334 -program-suffix=* | --program-suffix=* | --program-suffi=* \
335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336 program_suffix="$ac_optarg" ;;
338 -program-transform-name | --program-transform-name \
339 | --program-transform-nam | --program-transform-na \
340 | --program-transform-n | --program-transform- \
341 | --program-transform | --program-transfor \
342 | --program-transfo | --program-transf \
343 | --program-trans | --program-tran \
344 | --progr-tra | --program-tr | --program-t)
345 ac_prev=program_transform_name ;;
346 -program-transform-name=* | --program-transform-name=* \
347 | --program-transform-nam=* | --program-transform-na=* \
348 | --program-transform-n=* | --program-transform-=* \
349 | --program-transform=* | --program-transfor=* \
350 | --program-transfo=* | --program-transf=* \
351 | --program-trans=* | --program-tran=* \
352 | --progr-tra=* | --program-tr=* | --program-t=*)
353 program_transform_name="$ac_optarg" ;;
355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356 | -silent | --silent | --silen | --sile | --sil)
357 silent=yes ;;
359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
360 ac_prev=sbindir ;;
361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
362 | --sbi=* | --sb=*)
363 sbindir="$ac_optarg" ;;
365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
367 | --sharedst | --shareds | --shared | --share | --shar \
368 | --sha | --sh)
369 ac_prev=sharedstatedir ;;
370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
373 | --sha=* | --sh=*)
374 sharedstatedir="$ac_optarg" ;;
376 -site | --site | --sit)
377 ac_prev=site ;;
378 -site=* | --site=* | --sit=*)
379 site="$ac_optarg" ;;
381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382 ac_prev=srcdir ;;
383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384 srcdir="$ac_optarg" ;;
386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387 | --syscon | --sysco | --sysc | --sys | --sy)
388 ac_prev=sysconfdir ;;
389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391 sysconfdir="$ac_optarg" ;;
393 -target | --target | --targe | --targ | --tar | --ta | --t)
394 ac_prev=target ;;
395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396 target="$ac_optarg" ;;
398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
399 verbose=yes ;;
401 -version | --version | --versio | --versi | --vers)
402 echo "configure generated by autoconf version 2.13"
403 exit 0 ;;
405 -with-* | --with-*)
406 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 case "$ac_option" in
413 *=*) ;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* | --without-*)
419 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
427 --x)
428 # Obsolete; use --with-x.
429 with_x=yes ;;
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes="$ac_optarg" ;;
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 nonopt="$ac_option"
458 esac
459 done
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
468 # 0 standard input
469 # 1 file creation
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
476 exec 6>/dev/null
477 else
478 exec 6>&1
480 exec 5>./config.log
482 echo "\
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
485 " 1>&5
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
489 ac_configure_args=
490 for ac_arg
492 case "$ac_arg" in
493 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494 | --no-cr | --no-c) ;;
495 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500 esac
501 done
503 # NLS nuisances.
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 echo > confdefs.h
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file=include/features.h
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
526 ac_prog=$0
527 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529 srcdir=$ac_confdir
530 if test ! -r $srcdir/$ac_unique_file; then
531 srcdir=..
533 else
534 ac_srcdir_defaulted=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 else
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE; then
548 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
549 else
550 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
556 . "$ac_site_file"
558 done
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
562 . $cache_file
563 else
564 echo "creating cache $cache_file"
565 > $cache_file
568 ac_ext=c
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp='$CPP $CPPFLAGS'
571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling=$ac_cv_prog_cc_cross
575 ac_exeext=
576 ac_objext=o
577 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
580 ac_n= ac_c='
581 ' ac_t=' '
582 else
583 ac_n=-n ac_c= ac_t=
585 else
586 ac_n= ac_c='\c' ac_t=
589 if test -r /vmunix; then
590 kernel_id=`strings /vmunix | grep UNIX`
591 elif test -r /dynix; then
592 kernel_id=`strings /dynix | grep DYNIX`
593 else
594 kernel_id=
599 ac_aux_dir=
600 for ac_dir in scripts $srcdir/scripts; do
601 if test -f $ac_dir/install-sh; then
602 ac_aux_dir=$ac_dir
603 ac_install_sh="$ac_aux_dir/install-sh -c"
604 break
605 elif test -f $ac_dir/install.sh; then
606 ac_aux_dir=$ac_dir
607 ac_install_sh="$ac_aux_dir/install.sh -c"
608 break
610 done
611 if test -z "$ac_aux_dir"; then
612 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
614 ac_config_guess=$ac_aux_dir/config.guess
615 ac_config_sub=$ac_aux_dir/config.sub
616 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
619 # This will get text that should go into config.make.
620 config_vars=
622 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
623 # Check whether --with-gmp or --without-gmp was given.
624 if test "${with_gmp+set}" = set; then
625 withval="$with_gmp"
626 case "$with_gmp" in
627 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
628 ''|no) ;;
629 *) config_vars="$config_vars
630 gmp-srcdir = $withval" ;;
631 esac
635 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
636 # Check whether --with-gd or --without-gd was given.
637 if test "${with_gd+set}" = set; then
638 withval="$with_gd"
639 case "$with_gd" in
640 yes|''|no) ;;
641 *) libgd_include="-I$withval/include"
642 libgd_ldflags="-L$withval/lib" ;;
643 esac
647 # Check whether --with-gd-include or --without-gd-include was given.
648 if test "${with_gd_include+set}" = set; then
649 withval="$with_gd_include"
650 case "$with_gd_include" in
651 ''|no) ;;
652 *) libgd_include="-I$withval" ;;
653 esac
657 # Check whether --with-gd-lib or --without-gd-lib was given.
658 if test "${with_gd_lib+set}" = set; then
659 withval="$with_gd_lib"
660 case "$with_gd_lib" in
661 ''|no) ;;
662 *) libgd_ldflags="-L$withval" ;;
663 esac
668 if test -n "$libgd_include"; then
669 config_vars="$config_vars
670 CFLAGS-memusagestat.c = $libgd_include"
672 if test -n "$libgd_ldflags"; then
673 config_vars="$config_vars
674 libgd-LDFLAGS = $libgd_ldflags"
677 # Check whether --with-fp or --without-fp was given.
678 if test "${with_fp+set}" = set; then
679 withval="$with_fp"
680 with_fp=$withval
681 else
682 with_fp=yes
686 # Check whether --with-binutils or --without-binutils was given.
687 if test "${with_binutils+set}" = set; then
688 withval="$with_binutils"
689 path_binutils=$withval
690 else
691 path_binutils=''
694 # Check whether --with-elf or --without-elf was given.
695 if test "${with_elf+set}" = set; then
696 withval="$with_elf"
697 elf=$withval
698 else
699 elf=no
702 # Check whether --with-xcoff or --without-xcoff was given.
703 if test "${with_xcoff+set}" = set; then
704 withval="$with_xcoff"
705 xcoff=$withval
706 else
707 xcoff=no
710 # Check whether --with-cvs or --without-cvs was given.
711 if test "${with_cvs+set}" = set; then
712 withval="$with_cvs"
713 with_cvs=$withval
714 else
715 with_cvs=yes
718 if test "$with_cvs" = yes; then
719 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
720 then
721 with_cvs=no
726 # Check whether --with-headers or --without-headers was given.
727 if test "${with_headers+set}" = set; then
728 withval="$with_headers"
729 sysheaders=$withval
730 else
731 sysheaders=''
735 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
736 if test "${enable_sanity_checks+set}" = set; then
737 enableval="$enable_sanity_checks"
738 enable_sanity=$enableval
739 else
740 enable_sanity=yes
744 static=yes
745 # Check whether --enable-shared or --disable-shared was given.
746 if test "${enable_shared+set}" = set; then
747 enableval="$enable_shared"
748 shared=$enableval
749 else
750 shared=default
753 # Check whether --enable-profile or --disable-profile was given.
754 if test "${enable_profile+set}" = set; then
755 enableval="$enable_profile"
756 profile=$enableval
757 else
758 profile=yes
761 # Check whether --enable-omitfp or --disable-omitfp was given.
762 if test "${enable_omitfp+set}" = set; then
763 enableval="$enable_omitfp"
764 omitfp=$enableval
765 else
766 omitfp=no
769 # Check whether --enable-bounded or --disable-bounded was given.
770 if test "${enable_bounded+set}" = set; then
771 enableval="$enable_bounded"
772 bounded=$enableval
773 else
774 bounded=no
777 # Check whether --enable-versioning or --disable-versioning was given.
778 if test "${enable_versioning+set}" = set; then
779 enableval="$enable_versioning"
780 enable_versioning=$enableval
781 else
782 enable_versioning=yes
786 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
787 if test "${enable_oldest_abi+set}" = set; then
788 enableval="$enable_oldest_abi"
789 oldest_abi=$enableval
790 else
791 oldest_abi=no
794 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
795 oldest_abi=default
796 else
797 cat >> confdefs.h <<EOF
798 #define GLIBC_OLDEST_ABI "$oldest_abi"
804 # Check whether --enable-add-ons or --disable-add-ons was given.
805 if test "${enable_add_ons+set}" = set; then
806 enableval="$enable_add_ons"
807 case "$enableval" in
808 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
809 test "$add_ons" = "*" && add_ons= ;;
810 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
811 esac
812 else
813 add_ons=
817 # Check whether --with-tls or --without-tls was given.
818 if test "${with_tls+set}" = set; then
819 withval="$with_tls"
820 usetls=$withval
821 else
822 usetls=no
826 subdirs="$add_ons"
828 add_ons_pfx=
829 if test x"$add_ons" != x; then
830 for f in $add_ons; do
831 # Some sanity checks
832 if test "$f" = "crypt"; then
833 { echo "configure: error:
834 *** It seems that you're using an old \`crypt' add-on. crypt is now
835 *** part of glibc and using the old add-on will not work with this
836 *** release. Start again with fresh sources and without the old
837 *** \`crypt' add-on." 1>&2; exit 1; }
839 if test "$f" = "localedata"; then
840 { echo "configure: error:
841 *** It seems that you're using an old \`localedata' add-on. localedata
842 *** is now part of glibc and using the old add-on will not work with
843 *** this release. Start again with fresh sources and without the old
844 *** \`localedata' add-on." 1>&2; exit 1; }
846 # Test whether such a subdir really exists.
847 if test -d $srcdir/$f; then
848 add_ons_pfx="$add_ons_pfx $f/"
849 else
850 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
852 done
855 # Check whether --enable-static-nss or --disable-static-nss was given.
856 if test "${enable_static_nss+set}" = set; then
857 enableval="$enable_static_nss"
858 static_nss=$enableval
859 else
860 static_nss=no
863 if test x"$static_nss" = xyes || test x"$shared" = xno; then
864 static_nss=yes
865 cat >> confdefs.h <<\EOF
866 #define DO_STATIC_NSS 1
871 # Check whether --enable-force-install or --disable-force-install was given.
872 if test "${enable_force_install+set}" = set; then
873 enableval="$enable_force_install"
874 force_install=$enableval
875 else
876 force_install=yes
881 # Check whether --enable-kernel or --disable-kernel was given.
882 if test "${enable_kernel+set}" = set; then
883 enableval="$enable_kernel"
884 minimum_kernel=$enableval
887 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
888 # Better nothing than this.
889 minimum_kernel=""
890 else
891 if test "$minimum_kernel" = current; then
892 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
896 # Check whether --enable-all-warnings or --disable-all-warnings was given.
897 if test "${enable_all_warnings+set}" = set; then
898 enableval="$enable_all_warnings"
899 all_warnings=$enableval
905 # Make sure we can run config.sub.
906 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
907 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
910 echo $ac_n "checking host system type""... $ac_c" 1>&6
911 echo "configure:912: checking host system type" >&5
913 host_alias=$host
914 case "$host_alias" in
915 NONE)
916 case $nonopt in
917 NONE)
918 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
919 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
920 fi ;;
921 *) host_alias=$nonopt ;;
922 esac ;;
923 esac
925 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
926 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
927 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
928 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
929 echo "$ac_t""$host" 1>&6
932 # The way shlib-versions is used to generate soversions.mk uses a
933 # fairly simplistic model for name recognition that can't distinguish
934 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
935 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
936 # tell. This doesn't get used much beyond that, so it's fairly safe.
937 case "$host_os" in
938 linux*)
940 gnu*)
941 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
943 esac
945 # We keep the original values in `$config_*' and never modify them, so we
946 # can write them unchanged into config.make. Everything else uses
947 # $machine, $vendor, and $os, and changes them whenever convenient.
948 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
950 # Don't allow vendor == "unknown"
951 test "$config_vendor" = unknown && config_vendor=
952 config_os="`echo $config_os | sed 's/^unknown-//'`"
954 # Some configurations imply other options.
955 case "$host_os" in
956 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
957 # These systems always use GNU tools.
958 gnu_ld=yes gnu_as=yes ;;
959 esac
960 case "$host_os" in
961 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
962 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
964 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
965 # These systems (almost) always use the ELF format.
966 elf=yes
968 aix*)
969 # These systems are always xcoff
970 xcoff=yes
971 elf=no
973 esac
975 machine=$config_machine
976 vendor=$config_vendor
977 os=$config_os
979 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
980 # Unify this here.
981 if test "$machine" = rs6000; then
982 machine="powerpc"
986 ### I put this here to prevent those annoying emails from people who cannot
987 ### read and try to compile glibc on unsupported platforms. --drepper
989 ### By using the undocumented --enable-hacker-mode option for configure
990 ### one can skip this test to make the configuration not fail for unsupported
991 ### platforms.
993 if test -z "$enable_hacker_mode"; then
994 case "$machine-$host_os" in
995 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
998 echo "*** The GNU C library is currently not available for this platform."
999 echo "*** So far nobody cared to port it and if there is no volunteer it"
1000 echo "*** might never happen. So, if you have interest to see glibc on"
1001 echo "*** this platform visit"
1002 echo "*** http://www.gnu.org/software/libc/porting.html"
1003 echo "*** and join the group of porters"
1004 exit 1
1006 esac
1009 # Expand the configuration machine name into a subdirectory by architecture
1010 # type and particular chip.
1011 case "$machine" in
1012 a29k | am29000) base_machine=a29k machine=a29k ;;
1013 alpha*) base_machine=alpha machine=alpha/$machine ;;
1014 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1015 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1016 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1017 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1018 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1019 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1020 ia64) base_machine=ia64 machine=ia64 ;;
1021 m680?0) base_machine=m68k machine=m68k/$machine ;;
1022 m68k) base_machine=m68k machine=m68k/m68020 ;;
1023 m88???) base_machine=m88k machine=m88k/$machine ;;
1024 m88k) base_machine=m88k machine=m88k/m88100 ;;
1025 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
1026 mips*) base_machine=mips machine=mips/$machine ;;
1027 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1028 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
1029 s390) base_machine=s390 machine=s390/s390-32 ;;
1030 s390x) base_machine=s390 machine=s390/s390-64 ;;
1031 sh3*) base_machine=sh machine=sh/sh3 ;;
1032 sh4*) base_machine=sh machine=sh/sh4 ;;
1033 sparc | sparcv[67])
1034 base_machine=sparc machine=sparc/sparc32 ;;
1035 sparcv8 | supersparc | hypersparc)
1036 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1037 sparcv8plus | sparcv8plusa | sparcv9)
1038 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1039 sparcv8plusb | sparcv9b)
1040 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1041 sparc64 | ultrasparc)
1042 base_machine=sparc machine=sparc/sparc64 ;;
1043 sparc64b | ultrasparc3)
1044 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1045 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1046 *) base_machine=$machine ;;
1047 esac
1050 if test "$base_machine" = "i386"; then
1051 cat >> confdefs.h <<\EOF
1052 #define USE_REGPARMS 1
1057 # Compute the list of sysdep directories for this configuration.
1058 # This can take a while to compute.
1059 sysdep_dir=$srcdir/sysdeps
1060 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
1061 echo "configure:1062: checking sysdep dirs" >&5
1062 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1063 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1065 case "$os" in
1066 gnu*)
1067 base_os=mach/hurd ;;
1068 netbsd* | 386bsd* | freebsd* | bsdi*)
1069 base_os=unix/bsd/bsd4.4 ;;
1070 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1071 base_os=unix/bsd ;;
1072 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1073 base_os=unix/sysv ;;
1074 irix6*)
1075 base_os=unix/sysv/irix6/$os ;;
1076 solaris[2-9]*)
1077 base_os=unix/sysv/sysv4 ;;
1078 hpux*)
1079 base_os=unix/sysv/hpux/$os ;;
1080 aix4.3*)
1081 base_os=unix/sysv/aix/aix4.3 ;;
1082 none)
1083 base_os=standalone ;;
1085 base_os='' ;;
1086 esac
1088 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1089 tail=$os
1090 ostry=$os
1091 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1092 ostry="$ostry /$o"
1093 tail=$o
1094 done
1095 o=`echo $tail | sed 's/[0-9]*$//'`
1096 if test $o != $tail; then
1097 ostry="$ostry /$o"
1099 # For linux-gnu, try linux-gnu, then linux.
1100 o=`echo $tail | sed 's/-.*$//'`
1101 if test $o != $tail; then
1102 ostry="$ostry /$o"
1105 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1106 base=
1107 tail=$base_os
1108 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1109 set $b
1110 base="$base /$1"
1111 tail="$2"
1112 done
1114 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1115 mach=
1116 tail=$machine
1117 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1118 set $m
1119 # Prepend the machine's FPU directory unless --without-fp.
1120 if test "$with_fp" = yes; then
1121 mach="$mach /$1/fpu"
1123 mach="$mach /$1"
1124 tail="$2"
1125 done
1128 # Find what sysdep directories exist.
1129 sysnames=
1130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1131 for d in $add_ons_pfx ''; do
1132 for b in $base ''; do
1133 for m0 in $mach ''; do
1134 for v in /$vendor ''; do
1135 test "$v" = / && continue
1136 for o in /$ostry ''; do
1137 test "$o" = / && continue
1138 for m in $mach ''; do
1139 if test "$m0$b$v$o$m"; then
1140 try="${d}sysdeps$m0$b$v$o$m"
1141 test -n "$enable_debug_configure" &&
1142 echo "$0 DEBUG: try $try" >&2
1143 if test -d $srcdir/$try; then
1144 sysnames="$sysnames $try"
1145 { test -n "$o" || test -n "$b"; } && os_used=t
1146 { test -n "$m" || test -n "$m0"; } && machine_used=t
1149 done
1150 done
1151 done
1152 done
1153 done
1154 done
1155 IFS="$ac_save_ifs"
1157 if test -z "$os_used" && test "$os" != none; then
1158 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1160 if test -z "$machine_used" && test "$machine" != none; then
1161 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1164 # We have now validated the configuration.
1167 # If using ELF, look for an `elf' subdirectory of each machine directory.
1168 # We prepend these rather than inserting them whereever the machine appears
1169 # because things specified by the machine's ELF ABI should override
1170 # OS-specific things, and should always be the same for any OS on the
1171 # machine (otherwise what's the point of an ABI?).
1172 if test "$elf" = yes; then
1173 elf_dirs=
1174 for d in $add_ons_pfx ''; do
1175 for m in $mach; do
1176 if test -d $srcdir/${d}sysdeps$m/elf; then
1177 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1179 done
1180 done
1181 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1185 # Expand the list of system names into a full list of directories
1186 # from each element's parent name and Implies file (if present).
1187 set $sysnames
1188 names=
1189 while test $# -gt 0; do
1190 name=$1
1191 shift
1193 case " $names " in *" $name "*)
1194 # Already in the list.
1195 continue
1196 esac
1198 # Report each name as we discover it, so there is no long pause in output.
1199 echo $ac_n "$name $ac_c" >&6
1201 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1203 case $name in
1204 /*) xsrcdir= ;;
1205 *) xsrcdir=$srcdir/ ;;
1206 esac
1207 test -n "$enable_debug_configure" &&
1208 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1210 if test -f $xsrcdir$name/Implies; then
1211 # Collect more names from the `Implies' file (removing comments).
1212 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1213 implied=
1214 for x in $implied_candidate; do
1215 found=no
1216 if test -d $xsrcdir$name_base/$x; then
1217 implied="$implied $name_base/$x";
1218 found=yes
1220 for d in $add_ons_pfx ''; do
1221 try="${d}sysdeps/$x"
1222 case $d in
1223 /*) try_srcdir= ;;
1224 *) try_srcdir=$srcdir/ ;;
1225 esac
1226 test -n "$enable_debug_configure" &&
1227 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
1228 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
1229 then
1230 implied="$implied $try"
1231 found=yes
1233 done
1234 if test $found = no; then
1235 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1237 done
1238 else
1239 implied=
1242 # Add NAME to the list of names.
1243 names="$names $name"
1245 # Find the parent of NAME, using the empty string if it has none.
1246 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1248 # Add the names implied by NAME, and NAME's parent (if it has one), to
1249 # the list of names to be processed (the argument list). We prepend the
1250 # implied names to the list and append the parent. We want implied
1251 # directories to come before further directories inferred from the
1252 # configuration components; this ensures that for sysv4, unix/common
1253 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1254 # after sysv4).
1255 sysnames="`echo $implied $* $parent`"
1256 test -n "$sysnames" && set $sysnames
1257 done
1259 # Add the default directories.
1260 default_sysnames=sysdeps/generic
1261 if test "$elf" = yes; then
1262 default_sysnames="sysdeps/generic/elf $default_sysnames"
1264 sysnames="$names $default_sysnames"
1266 # The other names were emitted during the scan.
1267 echo "$ac_t""$default_sysnames" 1>&6
1270 ### Locate tools.
1272 # Find a good install program. We prefer a C program (faster),
1273 # so one script is as good as another. But avoid the broken or
1274 # incompatible versions:
1275 # SysV /etc/install, /usr/sbin/install
1276 # SunOS /usr/etc/install
1277 # IRIX /sbin/install
1278 # AIX /bin/install
1279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1282 # ./install, which can be erroneously created by make from ./install.sh.
1283 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1284 echo "configure:1285: checking for a BSD compatible install" >&5
1285 if test -z "$INSTALL"; then
1286 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1290 for ac_dir in $PATH; do
1291 # Account for people who put trailing slashes in PATH elements.
1292 case "$ac_dir/" in
1293 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1295 # OSF1 and SCO ODT 3.0 have their own names for install.
1296 # Don't use installbsd from OSF since it installs stuff as root
1297 # by default.
1298 for ac_prog in ginstall scoinst install; do
1299 if test -f $ac_dir/$ac_prog; then
1300 if test $ac_prog = install &&
1301 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1302 # AIX install. It has an incompatible calling convention.
1304 else
1305 ac_cv_path_install="$ac_dir/$ac_prog -c"
1306 break 2
1309 done
1311 esac
1312 done
1313 IFS="$ac_save_IFS"
1316 if test "${ac_cv_path_install+set}" = set; then
1317 INSTALL="$ac_cv_path_install"
1318 else
1319 # As a last resort, use the slow shell script. We don't cache a
1320 # path for INSTALL within a source directory, because that will
1321 # break other packages using the cache if that directory is
1322 # removed, or if the path is relative.
1323 INSTALL="$ac_install_sh"
1326 echo "$ac_t""$INSTALL" 1>&6
1328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1329 # It thinks the first close brace ends the variable substitution.
1330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1336 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1337 # The makefiles need to use a different form to find it in $srcdir.
1338 INSTALL='\$(..)./scripts/install-sh -c'
1340 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1341 echo "configure:1342: checking whether ln -s works" >&5
1342 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1344 else
1345 rm -f conftestdata
1346 if ln -s X conftestdata 2>/dev/null
1347 then
1348 rm -f conftestdata
1349 ac_cv_prog_LN_S="ln -s"
1350 else
1351 ac_cv_prog_LN_S=ln
1354 LN_S="$ac_cv_prog_LN_S"
1355 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1356 echo "$ac_t""yes" 1>&6
1357 else
1358 echo "$ac_t""no" 1>&6
1362 # We need the physical current working directory. We cannot use the
1363 # "pwd -P" shell builtin since that's not portable. Instead we try to
1364 # find a pwd binary. Note that assigning to the PWD environment
1365 # variable might have some interesting side effects, so we don't do
1366 # that.
1367 # Extract the first word of "pwd", so it can be a program name with args.
1368 set dummy pwd; ac_word=$2
1369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1370 echo "configure:1371: checking for $ac_word" >&5
1371 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1373 else
1374 case "$PWD_P" in
1376 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
1378 ?:/*)
1379 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a dos path.
1382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1383 ac_dummy="$PATH"
1384 for ac_dir in $ac_dummy; do
1385 test -z "$ac_dir" && ac_dir=.
1386 if test -f $ac_dir/$ac_word; then
1387 ac_cv_path_PWD_P="$ac_dir/$ac_word"
1388 break
1390 done
1391 IFS="$ac_save_ifs"
1392 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
1394 esac
1396 PWD_P="$ac_cv_path_PWD_P"
1397 if test -n "$PWD_P"; then
1398 echo "$ac_t""$PWD_P" 1>&6
1399 else
1400 echo "$ac_t""no" 1>&6
1403 if test "$PWD_P" = no; then
1404 { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1407 # These programs are version sensitive.
1408 echo $ac_n "checking build system type""... $ac_c" 1>&6
1409 echo "configure:1410: checking build system type" >&5
1411 build_alias=$build
1412 case "$build_alias" in
1413 NONE)
1414 case $nonopt in
1415 NONE) build_alias=$host_alias ;;
1416 *) build_alias=$nonopt ;;
1417 esac ;;
1418 esac
1420 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1421 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424 echo "$ac_t""$build" 1>&6
1426 if test $host != $build; then
1427 ac_tool_prefix=${host_alias}-
1428 else
1429 ac_tool_prefix=
1432 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1434 # Extract the first word of "$ac_prog", so it can be a program name with args.
1435 set dummy $ac_prog; ac_word=$2
1436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1437 echo "configure:1438: checking for $ac_word" >&5
1438 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1440 else
1441 if test -n "$CC"; then
1442 ac_cv_prog_CC="$CC" # Let the user override the test.
1443 else
1444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1445 ac_dummy="$PATH"
1446 for ac_dir in $ac_dummy; do
1447 test -z "$ac_dir" && ac_dir=.
1448 if test -f $ac_dir/$ac_word; then
1449 ac_cv_prog_CC="$ac_prog"
1450 break
1452 done
1453 IFS="$ac_save_ifs"
1456 CC="$ac_cv_prog_CC"
1457 if test -n "$CC"; then
1458 echo "$ac_t""$CC" 1>&6
1459 else
1460 echo "$ac_t""no" 1>&6
1463 test -n "$CC" && break
1464 done
1466 if test -z "$CC"; then
1467 ac_verc_fail=yes
1468 else
1469 # Found it, now check the version.
1470 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1471 echo "configure:1472: checking version of $CC" >&5
1472 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1473 case $ac_prog_version in
1474 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1475 3.[2-9]*)
1476 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1477 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1479 esac
1480 echo "$ac_t""$ac_prog_version" 1>&6
1482 if test $ac_verc_fail = yes; then
1483 critic_missing="$critic_missing gcc"
1486 for ac_prog in gnumake gmake make
1488 # Extract the first word of "$ac_prog", so it can be a program name with args.
1489 set dummy $ac_prog; ac_word=$2
1490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1491 echo "configure:1492: checking for $ac_word" >&5
1492 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1494 else
1495 if test -n "$MAKE"; then
1496 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1497 else
1498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1499 ac_dummy="$PATH"
1500 for ac_dir in $ac_dummy; do
1501 test -z "$ac_dir" && ac_dir=.
1502 if test -f $ac_dir/$ac_word; then
1503 ac_cv_prog_MAKE="$ac_prog"
1504 break
1506 done
1507 IFS="$ac_save_ifs"
1510 MAKE="$ac_cv_prog_MAKE"
1511 if test -n "$MAKE"; then
1512 echo "$ac_t""$MAKE" 1>&6
1513 else
1514 echo "$ac_t""no" 1>&6
1517 test -n "$MAKE" && break
1518 done
1520 if test -z "$MAKE"; then
1521 ac_verc_fail=yes
1522 else
1523 # Found it, now check the version.
1524 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1525 echo "configure:1526: checking version of $MAKE" >&5
1526 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1527 case $ac_prog_version in
1528 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1529 3.79* | 3.[89]*)
1530 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1531 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1533 esac
1534 echo "$ac_t""$ac_prog_version" 1>&6
1536 if test $ac_verc_fail = yes; then
1537 critic_missing="$critic_missing make"
1542 if test -n "$critic_missing"; then
1543 { echo "configure: error:
1544 *** These critical programs are missing or too old:$critic_missing
1545 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1549 for ac_prog in gnumsgfmt gmsgfmt msgfmt
1551 # Extract the first word of "$ac_prog", so it can be a program name with args.
1552 set dummy $ac_prog; ac_word=$2
1553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1554 echo "configure:1555: checking for $ac_word" >&5
1555 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1557 else
1558 if test -n "$MSGFMT"; then
1559 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1560 else
1561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1562 ac_dummy="$PATH"
1563 for ac_dir in $ac_dummy; do
1564 test -z "$ac_dir" && ac_dir=.
1565 if test -f $ac_dir/$ac_word; then
1566 ac_cv_prog_MSGFMT="$ac_prog"
1567 break
1569 done
1570 IFS="$ac_save_ifs"
1573 MSGFMT="$ac_cv_prog_MSGFMT"
1574 if test -n "$MSGFMT"; then
1575 echo "$ac_t""$MSGFMT" 1>&6
1576 else
1577 echo "$ac_t""no" 1>&6
1580 test -n "$MSGFMT" && break
1581 done
1583 if test -z "$MSGFMT"; then
1584 ac_verc_fail=yes
1585 else
1586 # Found it, now check the version.
1587 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1588 echo "configure:1589: checking version of $MSGFMT" >&5
1589 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1590 case $ac_prog_version in
1591 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1592 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
1593 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1594 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1596 esac
1597 echo "$ac_t""$ac_prog_version" 1>&6
1599 if test $ac_verc_fail = yes; then
1600 MSGFMT=: aux_missing="$aux_missing msgfmt"
1603 for ac_prog in makeinfo
1605 # Extract the first word of "$ac_prog", so it can be a program name with args.
1606 set dummy $ac_prog; ac_word=$2
1607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1608 echo "configure:1609: checking for $ac_word" >&5
1609 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1611 else
1612 if test -n "$MAKEINFO"; then
1613 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1614 else
1615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1616 ac_dummy="$PATH"
1617 for ac_dir in $ac_dummy; do
1618 test -z "$ac_dir" && ac_dir=.
1619 if test -f $ac_dir/$ac_word; then
1620 ac_cv_prog_MAKEINFO="$ac_prog"
1621 break
1623 done
1624 IFS="$ac_save_ifs"
1627 MAKEINFO="$ac_cv_prog_MAKEINFO"
1628 if test -n "$MAKEINFO"; then
1629 echo "$ac_t""$MAKEINFO" 1>&6
1630 else
1631 echo "$ac_t""no" 1>&6
1634 test -n "$MAKEINFO" && break
1635 done
1637 if test -z "$MAKEINFO"; then
1638 ac_verc_fail=yes
1639 else
1640 # Found it, now check the version.
1641 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1642 echo "configure:1643: checking version of $MAKEINFO" >&5
1643 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1644 case $ac_prog_version in
1645 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1646 4.*)
1647 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1648 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1650 esac
1651 echo "$ac_t""$ac_prog_version" 1>&6
1653 if test $ac_verc_fail = yes; then
1654 MAKEINFO=: aux_missing="$aux_missing makeinfo"
1657 for ac_prog in sed
1659 # Extract the first word of "$ac_prog", so it can be a program name with args.
1660 set dummy $ac_prog; ac_word=$2
1661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1662 echo "configure:1663: checking for $ac_word" >&5
1663 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1665 else
1666 if test -n "$SED"; then
1667 ac_cv_prog_SED="$SED" # Let the user override the test.
1668 else
1669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1670 ac_dummy="$PATH"
1671 for ac_dir in $ac_dummy; do
1672 test -z "$ac_dir" && ac_dir=.
1673 if test -f $ac_dir/$ac_word; then
1674 ac_cv_prog_SED="$ac_prog"
1675 break
1677 done
1678 IFS="$ac_save_ifs"
1681 SED="$ac_cv_prog_SED"
1682 if test -n "$SED"; then
1683 echo "$ac_t""$SED" 1>&6
1684 else
1685 echo "$ac_t""no" 1>&6
1688 test -n "$SED" && break
1689 done
1691 if test -z "$SED"; then
1692 ac_verc_fail=yes
1693 else
1694 # Found it, now check the version.
1695 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1696 echo "configure:1697: checking version of $SED" >&5
1697 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1698 case $ac_prog_version in
1699 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1700 3.0[2-9]*|3.[1-9]*|[4-9]*)
1701 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1702 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1704 esac
1705 echo "$ac_t""$ac_prog_version" 1>&6
1707 if test $ac_verc_fail = yes; then
1708 SED=: aux_missing="$aux_missing sed"
1713 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1714 echo "configure:1715: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1715 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1717 else
1719 ac_ext=c
1720 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1721 ac_cpp='$CPP $CPPFLAGS'
1722 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1723 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1724 cross_compiling=$ac_cv_prog_cc_cross
1726 cat > conftest.$ac_ext << EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1731 main(){return(0);}
1733 if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1734 ac_cv_prog_cc_works=yes
1735 # If we can't run a trivial program, we are probably using a cross compiler.
1736 if (./conftest; exit) 2>/dev/null; then
1737 ac_cv_prog_cc_cross=no
1738 else
1739 ac_cv_prog_cc_cross=yes
1741 else
1742 echo "configure: failed program was:" >&5
1743 cat conftest.$ac_ext >&5
1744 ac_cv_prog_cc_works=no
1746 rm -fr conftest*
1747 ac_ext=c
1748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1749 ac_cpp='$CPP $CPPFLAGS'
1750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1751 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1752 cross_compiling=$ac_cv_prog_cc_cross
1756 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1757 if test $ac_cv_prog_cc_works = no; then
1758 cross_linkable=no
1759 ac_cv_prog_cc_cross=yes
1760 else
1761 cross_linkable=yes
1763 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1764 echo "configure:1765: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1765 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1767 else
1771 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1773 cross_compiling=$ac_cv_prog_cc_cross
1775 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1776 echo "configure:1777: checking whether we are using GNU C" >&5
1777 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1779 else
1780 cat > conftest.c <<EOF
1781 #ifdef __GNUC__
1782 yes;
1783 #endif
1785 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1786 ac_cv_prog_gcc=yes
1787 else
1788 ac_cv_prog_gcc=no
1792 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1793 if test $ac_cv_prog_gcc != yes; then
1794 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1797 echo $ac_n "checking build system type""... $ac_c" 1>&6
1798 echo "configure:1799: checking build system type" >&5
1800 build_alias=$build
1801 case "$build_alias" in
1802 NONE)
1803 case $nonopt in
1804 NONE) build_alias=$host_alias ;;
1805 *) build_alias=$nonopt ;;
1806 esac ;;
1807 esac
1809 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1810 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1811 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1812 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1813 echo "$ac_t""$build" 1>&6
1815 if test $host != $build; then
1816 for ac_prog in gcc cc
1818 # Extract the first word of "$ac_prog", so it can be a program name with args.
1819 set dummy $ac_prog; ac_word=$2
1820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1821 echo "configure:1822: checking for $ac_word" >&5
1822 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1824 else
1825 if test -n "$BUILD_CC"; then
1826 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1827 else
1828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1829 ac_dummy="$PATH"
1830 for ac_dir in $ac_dummy; do
1831 test -z "$ac_dir" && ac_dir=.
1832 if test -f $ac_dir/$ac_word; then
1833 ac_cv_prog_BUILD_CC="$ac_prog"
1834 break
1836 done
1837 IFS="$ac_save_ifs"
1840 BUILD_CC="$ac_cv_prog_BUILD_CC"
1841 if test -n "$BUILD_CC"; then
1842 echo "$ac_t""$BUILD_CC" 1>&6
1843 else
1844 echo "$ac_t""no" 1>&6
1847 test -n "$BUILD_CC" && break
1848 done
1852 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1853 echo "configure:1854: checking how to run the C preprocessor" >&5
1854 # On Suns, sometimes $CPP names a directory.
1855 if test -n "$CPP" && test -d "$CPP"; then
1856 CPP=
1858 if test -z "$CPP"; then
1859 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1861 else
1862 # This must be in double quotes, not single quotes, because CPP may get
1863 # substituted into the Makefile and "${CC-cc}" will confuse make.
1864 CPP="${CC-cc} -E"
1865 # On the NeXT, cc -E runs the code through the compiler's parser,
1866 # not just through cpp.
1867 cat > conftest.$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1870 #include <assert.h>
1871 Syntax Error
1873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1874 { (eval echo configure:1875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1876 if test -z "$ac_err"; then
1878 else
1879 echo "$ac_err" >&5
1880 echo "configure: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1882 rm -rf conftest*
1883 CPP="${CC-cc} -E -traditional-cpp"
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 #include <assert.h>
1888 Syntax Error
1890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1891 { (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1893 if test -z "$ac_err"; then
1895 else
1896 echo "$ac_err" >&5
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899 rm -rf conftest*
1900 CPP="${CC-cc} -nologo -E"
1901 cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 #include <assert.h>
1905 Syntax Error
1907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1908 { (eval echo configure:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1910 if test -z "$ac_err"; then
1912 else
1913 echo "$ac_err" >&5
1914 echo "configure: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1916 rm -rf conftest*
1917 CPP=/lib/cpp
1919 rm -f conftest*
1921 rm -f conftest*
1923 rm -f conftest*
1924 ac_cv_prog_CPP="$CPP"
1926 CPP="$ac_cv_prog_CPP"
1927 else
1928 ac_cv_prog_CPP="$CPP"
1930 echo "$ac_t""$CPP" 1>&6
1932 # Was a --with-binutils option given?
1933 if test -n "$path_binutils"; then
1934 # Make absolute; ensure a single trailing slash.
1935 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1936 CC="$CC -B$path_binutils"
1938 AS=`$CC -print-prog-name=as`
1939 LD=`$CC -print-prog-name=ld`
1940 AR=`$CC -print-prog-name=ar`
1943 # ranlib has to be treated a bit differently since it might not exist at all.
1944 RANLIB=`$CC -print-prog-name=ranlib`
1945 if test $RANLIB = ranlib; then
1946 # This extra check has to happen since gcc simply echos the parameter in
1947 # case it cannot find the value in its own directories.
1948 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1949 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_word" >&5
1952 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1954 else
1955 if test -n "$RANLIB"; then
1956 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1957 else
1958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1959 ac_dummy="$PATH"
1960 for ac_dir in $ac_dummy; do
1961 test -z "$ac_dir" && ac_dir=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1964 break
1966 done
1967 IFS="$ac_save_ifs"
1970 RANLIB="$ac_cv_prog_RANLIB"
1971 if test -n "$RANLIB"; then
1972 echo "$ac_t""$RANLIB" 1>&6
1973 else
1974 echo "$ac_t""no" 1>&6
1978 if test -z "$ac_cv_prog_RANLIB"; then
1979 if test -n "$ac_tool_prefix"; then
1980 # Extract the first word of "ranlib", so it can be a program name with args.
1981 set dummy ranlib; ac_word=$2
1982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1983 echo "configure:1984: checking for $ac_word" >&5
1984 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1986 else
1987 if test -n "$RANLIB"; then
1988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1989 else
1990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1991 ac_dummy="$PATH"
1992 for ac_dir in $ac_dummy; do
1993 test -z "$ac_dir" && ac_dir=.
1994 if test -f $ac_dir/$ac_word; then
1995 ac_cv_prog_RANLIB="ranlib"
1996 break
1998 done
1999 IFS="$ac_save_ifs"
2000 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2003 RANLIB="$ac_cv_prog_RANLIB"
2004 if test -n "$RANLIB"; then
2005 echo "$ac_t""$RANLIB" 1>&6
2006 else
2007 echo "$ac_t""no" 1>&6
2010 else
2011 RANLIB=":"
2018 # Determine whether we are using GNU binutils.
2019 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
2020 echo "configure:2021: checking whether $AS is GNU as" >&5
2021 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2023 else
2024 # Most GNU programs take a -v and spit out some text including
2025 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2026 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2027 libc_cv_prog_as_gnu=yes
2028 else
2029 libc_cv_prog_as_gnu=no
2031 rm -fr contest*
2034 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
2035 rm -f a.out
2036 gnu_as=$libc_cv_prog_as_gnu
2038 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
2039 echo "configure:2040: checking whether $LD is GNU ld" >&5
2040 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2042 else
2043 # Most GNU programs take a -v and spit out some text including
2044 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2045 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2046 libc_cv_prog_ld_gnu=yes
2047 else
2048 libc_cv_prog_ld_gnu=no
2050 rm -fr contest*
2053 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
2054 gnu_ld=$libc_cv_prog_ld_gnu
2056 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
2057 set dummy ${ac_tool_prefix}mig; ac_word=$2
2058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2059 echo "configure:2060: checking for $ac_word" >&5
2060 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2062 else
2063 if test -n "$MIG"; then
2064 ac_cv_prog_MIG="$MIG" # Let the user override the test.
2065 else
2066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2067 ac_dummy="$PATH"
2068 for ac_dir in $ac_dummy; do
2069 test -z "$ac_dir" && ac_dir=.
2070 if test -f $ac_dir/$ac_word; then
2071 ac_cv_prog_MIG="${ac_tool_prefix}mig"
2072 break
2074 done
2075 IFS="$ac_save_ifs"
2078 MIG="$ac_cv_prog_MIG"
2079 if test -n "$MIG"; then
2080 echo "$ac_t""$MIG" 1>&6
2081 else
2082 echo "$ac_t""no" 1>&6
2086 if test -z "$ac_cv_prog_MIG"; then
2087 if test -n "$ac_tool_prefix"; then
2088 # Extract the first word of "mig", so it can be a program name with args.
2089 set dummy mig; ac_word=$2
2090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2091 echo "configure:2092: checking for $ac_word" >&5
2092 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2094 else
2095 if test -n "$MIG"; then
2096 ac_cv_prog_MIG="$MIG" # Let the user override the test.
2097 else
2098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2099 ac_dummy="$PATH"
2100 for ac_dir in $ac_dummy; do
2101 test -z "$ac_dir" && ac_dir=.
2102 if test -f $ac_dir/$ac_word; then
2103 ac_cv_prog_MIG="mig"
2104 break
2106 done
2107 IFS="$ac_save_ifs"
2108 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="MISSING"
2111 MIG="$ac_cv_prog_MIG"
2112 if test -n "$MIG"; then
2113 echo "$ac_t""$MIG" 1>&6
2114 else
2115 echo "$ac_t""no" 1>&6
2118 else
2119 MIG="MISSING"
2124 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
2125 # XXX Commented out because it filters out too many good versions.
2126 # XXX --drepper
2127 # AC_CHECK_PROG_VER(AS, $AS, --version,
2128 # [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
2129 # [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
2131 test -n "$aux_missing" && echo "configure: warning:
2132 *** These auxiliary programs are missing or too old:$aux_missing
2133 *** some features will be disabled.
2134 *** Check the INSTALL file for required versions." 1>&2
2136 # glibcbug.in wants to know the compiler version.
2137 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
2140 # if using special system headers, find out the compiler's sekrit
2141 # header directory and add that to the list. NOTE: Only does the right
2142 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
2143 if test -n "$sysheaders"; then
2144 ccheaders=`$CC -print-file-name=include`
2145 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2149 # check if ranlib is necessary
2150 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2151 echo "configure:2152: checking whether ranlib is necessary" >&5
2152 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2154 else
2155 cat > conftest.c <<EOF
2156 int a;
2157 char b;
2158 void c(void) {}
2160 $CC $CFLAGS -c conftest.c
2161 $AR cr conftest.a conftest.c
2162 cp conftest.a conftest2.a
2163 $RANLIB conftest.a
2164 if cmp -s conftest.a conftest2.a; then
2165 libc_cv_ranlib_necessary=no
2166 else
2167 libc_cv_ranlib_necessary=yes
2169 rm -rf conftest*
2172 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2173 if test "$libc_cv_ranlib_necessary" = no; then
2174 RANLIB=:
2177 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2178 # since this would lead to problems installing/building glibc.
2179 # LD_LIBRARY_PATH contains the current directory if one of the following
2180 # is true:
2181 # - one of the terminals (":" and ";") is the first or last sign
2182 # - two terminals occur directly after each other
2183 # - the path contains an element with a dot in it
2184 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2185 echo "configure:2186: checking LD_LIBRARY_PATH variable" >&5
2186 case ${LD_LIBRARY_PATH} in
2187 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2188 ld_library_path_setting="contains current directory"
2191 ld_library_path_setting="ok"
2193 esac
2194 echo "$ac_t""$ld_library_path_setting" 1>&6
2195 if test "$ld_library_path_setting" != "ok"; then
2196 { echo "configure: error:
2197 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2198 *** building glibc. Please change the environment variable
2199 *** and run configure again." 1>&2; exit 1; }
2202 echo $ac_n "checking whether GCC supports -static-libgcc""... $ac_c" 1>&6
2203 echo "configure:2204: checking whether GCC supports -static-libgcc" >&5
2204 if eval "test \"`echo '$''{'libc_cv_gcc_static_libgcc'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2206 else
2207 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
2208 libc_cv_gcc_static_libgcc=
2209 else
2210 libc_cv_gcc_static_libgcc=-static-libgcc
2214 echo "$ac_t""$libc_cv_gcc_static_libgcc" 1>&6
2217 # Extract the first word of "bash", so it can be a program name with args.
2218 set dummy bash; ac_word=$2
2219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2220 echo "configure:2221: checking for $ac_word" >&5
2221 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2223 else
2224 case "$BASH" in
2226 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2228 ?:/*)
2229 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
2232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2233 ac_dummy="$PATH"
2234 for ac_dir in $ac_dummy; do
2235 test -z "$ac_dir" && ac_dir=.
2236 if test -f $ac_dir/$ac_word; then
2237 ac_cv_path_BASH="$ac_dir/$ac_word"
2238 break
2240 done
2241 IFS="$ac_save_ifs"
2242 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
2244 esac
2246 BASH="$ac_cv_path_BASH"
2247 if test -n "$BASH"; then
2248 echo "$ac_t""$BASH" 1>&6
2249 else
2250 echo "$ac_t""no" 1>&6
2253 if test "$BASH" != no &&
2254 $BASH -c 'test "$BASH_VERSINFO" \
2255 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2256 libc_cv_have_bash2=yes
2257 else
2258 libc_cv_have_bash2=no
2262 if test "$BASH" = no; then
2263 # Extract the first word of "ksh", so it can be a program name with args.
2264 set dummy ksh; ac_word=$2
2265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2266 echo "configure:2267: checking for $ac_word" >&5
2267 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2269 else
2270 case "$KSH" in
2272 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2274 ?:/*)
2275 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2279 ac_dummy="$PATH"
2280 for ac_dir in $ac_dummy; do
2281 test -z "$ac_dir" && ac_dir=.
2282 if test -f $ac_dir/$ac_word; then
2283 ac_cv_path_KSH="$ac_dir/$ac_word"
2284 break
2286 done
2287 IFS="$ac_save_ifs"
2288 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2290 esac
2292 KSH="$ac_cv_path_KSH"
2293 if test -n "$KSH"; then
2294 echo "$ac_t""$KSH" 1>&6
2295 else
2296 echo "$ac_t""no" 1>&6
2299 if test "$KSH" = no; then
2300 libc_cv_have_ksh=no
2301 else
2302 libc_cv_have_ksh=yes
2304 else
2305 KSH="$BASH"
2307 libc_cv_have_ksh=yes
2311 for ac_prog in gawk mawk nawk awk
2313 # Extract the first word of "$ac_prog", so it can be a program name with args.
2314 set dummy $ac_prog; ac_word=$2
2315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_word" >&5
2317 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320 if test -n "$AWK"; then
2321 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2322 else
2323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2324 ac_dummy="$PATH"
2325 for ac_dir in $ac_dummy; do
2326 test -z "$ac_dir" && ac_dir=.
2327 if test -f $ac_dir/$ac_word; then
2328 ac_cv_prog_AWK="$ac_prog"
2329 break
2331 done
2332 IFS="$ac_save_ifs"
2335 AWK="$ac_cv_prog_AWK"
2336 if test -n "$AWK"; then
2337 echo "$ac_t""$AWK" 1>&6
2338 else
2339 echo "$ac_t""no" 1>&6
2342 test -n "$AWK" && break
2343 done
2345 # Extract the first word of "perl", so it can be a program name with args.
2346 set dummy perl; ac_word=$2
2347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_word" >&5
2349 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2351 else
2352 case "$PERL" in
2354 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2356 ?:/*)
2357 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2361 ac_dummy="$PATH"
2362 for ac_dir in $ac_dummy; do
2363 test -z "$ac_dir" && ac_dir=.
2364 if test -f $ac_dir/$ac_word; then
2365 ac_cv_path_PERL="$ac_dir/$ac_word"
2366 break
2368 done
2369 IFS="$ac_save_ifs"
2370 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2372 esac
2374 PERL="$ac_cv_path_PERL"
2375 if test -n "$PERL"; then
2376 echo "$ac_t""$PERL" 1>&6
2377 else
2378 echo "$ac_t""no" 1>&6
2381 if test "$PERL" != no &&
2382 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2383 PERL=no
2385 # Extract the first word of "install-info", so it can be a program name with args.
2386 set dummy install-info; ac_word=$2
2387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2388 echo "configure:2389: checking for $ac_word" >&5
2389 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2391 else
2392 case "$INSTALL_INFO" in
2394 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2396 ?:/*)
2397 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2401 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2402 for ac_dir in $ac_dummy; do
2403 test -z "$ac_dir" && ac_dir=.
2404 if test -f $ac_dir/$ac_word; then
2405 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2406 break
2408 done
2409 IFS="$ac_save_ifs"
2410 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2412 esac
2414 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2415 if test -n "$INSTALL_INFO"; then
2416 echo "$ac_t""$INSTALL_INFO" 1>&6
2417 else
2418 echo "$ac_t""no" 1>&6
2421 if test "$INSTALL_INFO" != "no"; then
2422 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2423 echo "configure:2424: checking for old Debian install-info" >&5
2424 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2426 else
2427 mkdir conftest.d
2428 # There is a hard ^_ on the next line. I am open to better ideas.
2429 (echo '\x1f'
2430 echo 'File: dir Node: Top This is the top of the INFO tree'
2431 echo '* Menu:') >conftest.d/dir
2432 (echo 'INFO-DIR-SECTION i-d-s works'
2433 echo 'START-INFO-DIR-ENTRY'
2434 echo '* Prog: (prog). Program.'
2435 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2436 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2437 then
2438 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2439 then libc_cv_old_debian_install_info=no
2440 else libc_cv_old_debian_install_info=yes
2442 else libc_cv_old_debian_install_info=no testfailed=t
2444 rm -fr conftest.d
2447 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2448 if test -n "$testfailed"
2449 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2451 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2455 # Extract the first word of "bison", so it can be a program name with args.
2456 set dummy bison; ac_word=$2
2457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_word" >&5
2459 if eval "test \"`echo '$''{'ac_cv_path_BISON'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2461 else
2462 case "$BISON" in
2464 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
2466 ?:/*)
2467 ac_cv_path_BISON="$BISON" # Let the user override the test with a dos path.
2470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2471 ac_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
2472 for ac_dir in $ac_dummy; do
2473 test -z "$ac_dir" && ac_dir=.
2474 if test -f $ac_dir/$ac_word; then
2475 ac_cv_path_BISON="$ac_dir/$ac_word"
2476 break
2478 done
2479 IFS="$ac_save_ifs"
2480 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
2482 esac
2484 BISON="$ac_cv_path_BISON"
2485 if test -n "$BISON"; then
2486 echo "$ac_t""$BISON" 1>&6
2487 else
2488 echo "$ac_t""no" 1>&6
2492 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2493 echo "configure:2494: checking for signed size_t type" >&5
2494 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2496 else
2497 echo '#include <stddef.h>
2498 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2499 if eval "$ac_cpp conftest.c 2>/dev/null" \
2500 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2501 libc_cv_signed_size_t=no
2502 else
2503 libc_cv_signed_size_t=yes
2505 rm -f conftest*
2508 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2509 if test $libc_cv_signed_size_t = yes; then
2510 cat >> confdefs.h <<\EOF
2511 #undef __SIZE_TYPE__
2512 #define __SIZE_TYPE__ unsigned
2516 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2517 echo "configure:2518: checking for libc-friendly stddef.h" >&5
2518 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2520 else
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524 #define __need_size_t
2525 #define __need_wchar_t
2526 #include <stddef.h>
2527 #define __need_NULL
2528 #include <stddef.h>
2529 int main() {
2530 size_t size; wchar_t wchar;
2531 #ifdef offsetof
2532 #error stddef.h ignored __need_*
2533 #endif
2534 if (&size == NULL || &wchar == NULL) abort ();
2535 ; return 0; }
2537 if { (eval echo configure:2538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2538 rm -rf conftest*
2539 libc_cv_friendly_stddef=yes
2540 else
2541 echo "configure: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2543 rm -rf conftest*
2544 libc_cv_friendly_stddef=no
2546 rm -f conftest*
2549 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2550 if test $libc_cv_friendly_stddef = yes; then
2551 config_vars="$config_vars
2552 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2555 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2556 echo "configure:2557: checking whether we need to use -P to assemble .S files" >&5
2557 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2559 else
2560 cat > conftest.S <<EOF
2561 #include "confdefs.h"
2562 /* Nothing whatsoever. */
2564 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2565 libc_cv_need_minus_P=no
2566 else
2567 libc_cv_need_minus_P=yes
2569 rm -f conftest*
2572 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2573 if test $libc_cv_need_minus_P = yes; then
2574 config_vars="$config_vars
2575 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2578 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2579 echo "configure:2580: checking whether .text pseudo-op must be used" >&5
2580 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2582 else
2583 cat > conftest.s <<EOF
2584 .text
2586 libc_cv_dot_text=
2587 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2588 libc_cv_dot_text=.text
2590 rm -f conftest*
2593 if test -z "$libc_cv_dot_text"; then
2594 echo "$ac_t""no" 1>&6
2595 else
2596 echo "$ac_t""yes" 1>&6
2599 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2600 echo "configure:2601: checking for assembler global-symbol directive" >&5
2601 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2603 else
2604 libc_cv_asm_global_directive=UNKNOWN
2605 for ac_globl in .globl .global .EXPORT; do
2606 cat > conftest.s <<EOF
2607 ${libc_cv_dot_text}
2608 ${ac_globl} foo
2609 foo:
2611 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2612 libc_cv_asm_global_directive=${ac_globl}
2614 rm -f conftest*
2615 test $libc_cv_asm_global_directive != UNKNOWN && break
2616 done
2619 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2620 if test $libc_cv_asm_global_directive = UNKNOWN; then
2621 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2622 else
2623 cat >> confdefs.h <<EOF
2624 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2629 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2630 echo "configure:2631: checking for .set assembler directive" >&5
2631 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2633 else
2634 cat > conftest.s <<EOF
2635 ${libc_cv_dot_text}
2636 foo:
2637 .set glibc_conftest_frobozz,foo
2638 $libc_cv_asm_global_directive glibc_conftest_frobozz
2640 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2641 # (but it doesn't work), so we must do a linking check to be sure.
2642 cat > conftest1.c <<\EOF
2643 extern int glibc_conftest_frobozz;
2644 main () { printf ("%d\n", glibc_conftest_frobozz); }
2646 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2647 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2648 libc_cv_asm_set_directive=yes
2649 else
2650 libc_cv_asm_set_directive=no
2652 rm -f conftest*
2655 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2656 if test $libc_cv_asm_set_directive = yes; then
2657 cat >> confdefs.h <<\EOF
2658 #define HAVE_ASM_SET_DIRECTIVE 1
2663 echo $ac_n "checking for assembler .type directive prefix""... $ac_c" 1>&6
2664 echo "configure:2665: checking for assembler .type directive prefix" >&5
2665 if eval "test \"`echo '$''{'libc_cv_asm_type_prefix'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2667 else
2668 libc_cv_asm_type_prefix=no
2669 for ac_try_prefix in '@' '%' '#'; do
2670 cat > conftest.s <<EOF
2671 ${libc_cv_dot_text}
2672 ${libc_cv_asm_global_directive} foo
2673 .type foo, ${ac_try_prefix}object
2674 .size foo, 1
2675 foo:
2676 .byte 1
2678 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2679 libc_cv_asm_type_prefix=${ac_try_prefix}
2681 rm -f conftest*
2682 test "x$libc_cv_asm_type_prefix" != xno && break
2683 done
2686 echo "$ac_t""$libc_cv_asm_type_prefix" 1>&6
2687 if test "x$libc_cv_asm_type_prefix" != xno; then
2688 cat >> confdefs.h <<EOF
2689 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
2694 # The Aix ld uses global .symbol_names instead of symbol_names.
2695 # Unfortunately also used in the PPC64 ELF ABI.
2696 case "${os}${machine}" in
2697 aix4.3* | linux*powerpc/powerpc64*)
2698 cat >> confdefs.h <<\EOF
2699 #define HAVE_ASM_GLOBAL_DOT_NAME 1
2702 esac
2704 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2705 echo "configure:2706: checking for .symver assembler directive" >&5
2706 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2708 else
2709 cat > conftest.s <<EOF
2710 ${libc_cv_dot_text}
2711 _sym:
2712 .symver _sym,sym@VERS
2714 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2715 libc_cv_asm_symver_directive=yes
2716 else
2717 libc_cv_asm_symver_directive=no
2719 rm -f conftest*
2722 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2723 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2724 echo "configure:2725: checking for ld --version-script" >&5
2725 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2727 else
2728 if test $libc_cv_asm_symver_directive = yes; then
2729 cat > conftest.s <<EOF
2730 ${libc_cv_dot_text}
2731 _sym:
2732 .symver _sym,sym@VERS
2734 cat > conftest.map <<EOF
2735 VERS_1 {
2736 global: sym;
2739 VERS_2 {
2740 global: sym;
2741 } VERS_1;
2743 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2744 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2745 -nostartfiles -nostdlib
2746 -Wl,--version-script,conftest.map
2747 1>&5'; { (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2748 then
2749 libc_cv_ld_version_script_option=yes
2750 else
2751 libc_cv_ld_version_script_option=no
2753 else
2754 libc_cv_ld_version_script_option=no
2756 else
2757 libc_cv_ld_version_script_option=no
2759 rm -f conftest*
2762 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2763 if test $shared != no &&
2764 test $libc_cv_asm_symver_directive = yes &&
2765 test $libc_cv_ld_version_script_option = yes &&
2766 test $enable_versioning = yes; then
2767 VERSIONING=yes
2768 cat >> confdefs.h <<\EOF
2769 #define DO_VERSIONING 1
2772 else
2773 VERSIONING=no
2777 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
2778 echo "\
2779 *** WARNING: You should not compile GNU libc without versioning. Not using
2780 *** versioning will introduce incompatibilities so that old binaries
2781 *** will not run anymore.
2782 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2784 if test $elf = yes; then
2785 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2786 echo "configure:2787: checking for .previous assembler directive" >&5
2787 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2789 else
2790 cat > conftest.s <<EOF
2791 .section foo_section
2792 .previous
2794 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2795 libc_cv_asm_previous_directive=yes
2796 else
2797 libc_cv_asm_previous_directive=no
2799 rm -f conftest*
2802 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2803 if test $libc_cv_asm_previous_directive = yes; then
2804 cat >> confdefs.h <<\EOF
2805 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2808 else
2809 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2810 echo "configure:2811: checking for .popsection assembler directive" >&5
2811 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2813 else
2814 cat > conftest.s <<EOF
2815 .pushsection foo_section
2816 .popsection
2818 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2819 libc_cv_asm_popsection_directive=yes
2820 else
2821 libc_cv_asm_popsection_directive=no
2823 rm -f conftest*
2826 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2827 if test $libc_cv_asm_popsection_directive = yes; then
2828 cat >> confdefs.h <<\EOF
2829 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2834 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2835 echo "configure:2836: checking for .protected and .hidden assembler directive" >&5
2836 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2838 else
2839 cat > conftest.s <<EOF
2840 .protected foo
2841 foo:
2842 .hidden bar
2843 bar:
2845 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2846 libc_cv_asm_protected_directive=yes
2847 else
2848 libc_cv_asm_protected_directive=no
2850 rm -f conftest*
2853 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2855 cat >> confdefs.h <<\EOF
2856 #define HAVE_PROTECTED 1
2859 cat >> confdefs.h <<\EOF
2860 #define HAVE_HIDDEN 1
2864 if test $libc_cv_asm_protected_directive = yes; then
2865 echo $ac_n "checking whether __attribute__((visibility())) is supported""... $ac_c" 1>&6
2866 echo "configure:2867: checking whether __attribute__((visibility())) is supported" >&5
2867 if eval "test \"`echo '$''{'libc_cv_visibility_attribute'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2869 else
2870 cat > conftest.c <<EOF
2871 int foo __attribute__ ((visibility ("hidden"))) = 1;
2872 int bar __attribute__ ((visibility ("protected"))) = 1;
2874 libc_cv_visibility_attribute=no
2875 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2876 if grep '\.hidden.*foo' conftest.s >/dev/null; then
2877 if grep '\.protected.*bar' conftest.s >/dev/null; then
2878 libc_cv_visibility_attribute=yes
2882 rm -f conftest.cs
2886 echo "$ac_t""$libc_cv_visibility_attribute" 1>&6
2887 if test $libc_cv_visibility_attribute = yes; then
2888 cat >> confdefs.h <<\EOF
2889 #define HAVE_VISIBILITY_ATTRIBUTE 1
2895 if test $libc_cv_visibility_attribute = yes; then
2896 echo $ac_n "checking for broken __attribute__((visibility()))""... $ac_c" 1>&6
2897 echo "configure:2898: checking for broken __attribute__((visibility()))" >&5
2898 if eval "test \"`echo '$''{'libc_cv_broken_visibility_attribute'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2900 else
2901 cat > conftest.c <<EOF
2902 int foo (int x);
2903 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
2904 int bar (int x) { return x; }
2906 libc_cv_broken_visibility_attribute=yes
2907 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2908 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
2909 libc_cv_broken_visibility_attribute=no
2912 rm -f conftest.c conftest.s
2916 echo "$ac_t""$libc_cv_broken_visibility_attribute" 1>&6
2917 if test $libc_cv_broken_visibility_attribute = yes; then
2918 cat >> confdefs.h <<\EOF
2919 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
2925 echo $ac_n "checking for broken __attribute__((alias()))""... $ac_c" 1>&6
2926 echo "configure:2927: checking for broken __attribute__((alias()))" >&5
2927 if eval "test \"`echo '$''{'libc_cv_broken_alias_attribute'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2929 else
2930 cat > conftest.c <<EOF
2931 extern int foo (int x) __asm ("xyzzy");
2932 int bar (int x) { return x; }
2933 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
2934 extern int dfoo;
2935 extern __typeof (dfoo) dfoo __asm ("abccb");
2936 int dfoo = 1;
2938 libc_cv_broken_alias_attribute=yes
2939 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2940 if grep 'xyzzy' conftest.s >/dev/null &&
2941 grep 'abccb' conftest.s >/dev/null; then
2942 libc_cv_broken_alias_attribute=no
2945 rm -f conftest.c conftest.s
2949 echo "$ac_t""$libc_cv_broken_alias_attribute" 1>&6
2950 if test $libc_cv_broken_alias_attribute = yes; then
2951 cat >> confdefs.h <<\EOF
2952 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
2957 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
2958 echo $ac_n "checking whether to put _rtld_local into .sdata section""... $ac_c" 1>&6
2959 echo "configure:2960: checking whether to put _rtld_local into .sdata section" >&5
2960 if eval "test \"`echo '$''{'libc_cv_have_sdata_section'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2962 else
2963 echo "int i;" > conftest.c
2964 libc_cv_have_sdata_section=no
2965 if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
2966 | grep '\.sdata' >/dev/null; then
2967 libc_cv_have_sdata_section=yes
2969 rm -f conftest.c conftest.so
2973 echo "$ac_t""$libc_cv_have_sdata_section" 1>&6
2974 if test $libc_cv_have_sdata_section = yes; then
2975 cat >> confdefs.h <<\EOF
2976 #define HAVE_SDATA_SECTION 1
2982 echo $ac_n "checking for .preinit_array/.init_array/.fini_array support""... $ac_c" 1>&6
2983 echo "configure:2984: checking for .preinit_array/.init_array/.fini_array support" >&5
2984 if eval "test \"`echo '$''{'libc_cv_initfinit_array'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2986 else
2987 cat > conftest.c <<EOF
2988 int _start (void) { return 0; }
2989 int __start (void) { return 0; }
2990 int foo (void) { return 1; }
2991 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
2993 if { ac_try='${CC-cc} -o conftest conftest.c
2994 -static -nostartfiles -nostdlib 1>&5'; { (eval echo configure:2995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2995 then
2996 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
2997 libc_cv_initfinit_array=yes
2998 else
2999 libc_cv_initfinit_array=no
3001 else
3002 libc_cv_initfinit_array=no
3004 rm -f conftest*
3007 echo "$ac_t""$libc_cv_initfinit_array" 1>&6
3009 if test $libc_cv_initfinit_array = yes; then
3010 cat >> confdefs.h <<\EOF
3011 #define HAVE_INITFINI_ARRAY 1
3016 echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
3017 echo "configure:3018: checking for -z nodelete option" >&5
3018 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3020 else
3021 cat > conftest.c <<EOF
3022 int _start (void) { return 42; }
3024 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
3025 -nostartfiles -nostdlib
3026 -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure:3027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3027 then
3028 libc_cv_z_nodelete=yes
3029 else
3030 libc_cv_z_nodelete=no
3032 rm -f conftest*
3035 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
3038 echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
3039 echo "configure:3040: checking for -z nodlopen option" >&5
3040 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3042 else
3043 cat > conftest.c <<EOF
3044 int _start (void) { return 42; }
3046 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
3047 -nostartfiles -nostdlib
3048 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure:3049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3049 then
3050 libc_cv_z_nodlopen=yes
3051 else
3052 libc_cv_z_nodlopen=no
3054 rm -f conftest*
3057 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
3060 echo $ac_n "checking for -z initfirst option""... $ac_c" 1>&6
3061 echo "configure:3062: checking for -z initfirst option" >&5
3062 if eval "test \"`echo '$''{'libc_cv_z_initfirst'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3064 else
3065 cat > conftest.c <<EOF
3066 int _start (void) { return 42; }
3068 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
3069 -nostartfiles -nostdlib
3070 -Wl,--enable-new-dtags,-z,initfirst 1>&5'; { (eval echo configure:3071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3071 then
3072 libc_cv_z_initfirst=yes
3073 else
3074 libc_cv_z_initfirst=no
3076 rm -f conftest*
3079 echo "$ac_t""$libc_cv_z_initfirst" 1>&6
3082 echo $ac_n "checking for -Bgroup option""... $ac_c" 1>&6
3083 echo "configure:3084: checking for -Bgroup option" >&5
3084 if eval "test \"`echo '$''{'libc_cv_Bgroup'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3086 else
3087 cat > conftest.c <<EOF
3088 int _start (void) { return 42; }
3090 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'; { (eval echo configure:3091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3091 then
3092 libc_cv_Bgroup=yes
3093 else
3094 libc_cv_Bgroup=no
3096 rm -f conftest*
3099 echo "$ac_t""$libc_cv_Bgroup" 1>&6
3102 echo $ac_n "checking for -z combreloc""... $ac_c" 1>&6
3103 echo "configure:3104: checking for -z combreloc" >&5
3104 if eval "test \"`echo '$''{'libc_cv_z_combreloc'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3106 else
3107 cat > conftest.c <<EOF
3108 extern int bar (int);
3109 extern int mumble;
3110 int foo (void) { return bar (mumble); }
3112 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
3113 -nostdlib -nostartfiles
3114 -Wl,-z,combreloc 1>&5'; { (eval echo configure:3115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3115 then
3116 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
3117 libc_cv_z_combreloc=yes
3118 else
3119 libc_cv_z_combreloc=no
3121 else
3122 libc_cv_z_combreloc=no
3124 rm -f conftest*
3127 echo "$ac_t""$libc_cv_z_combreloc" 1>&6
3128 if test "$libc_cv_z_combreloc" = yes; then
3129 cat >> confdefs.h <<\EOF
3130 #define HAVE_Z_COMBRELOC 1
3137 if test $elf != yes; then
3138 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
3139 echo "configure:3140: checking for .init and .fini sections" >&5
3140 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3142 else
3143 cat > conftest.$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3147 int main() {
3148 asm (".section .init");
3149 asm (".section .fini");
3150 asm ("${libc_cv_dot_text}");
3151 ; return 0; }
3153 if { (eval echo configure:3154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3154 rm -rf conftest*
3155 libc_cv_have_initfini=yes
3156 else
3157 echo "configure: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3159 rm -rf conftest*
3160 libc_cv_have_initfini=no
3162 rm -f conftest*
3165 echo "$ac_t""$libc_cv_have_initfini" 1>&6
3166 if test $libc_cv_have_initfini = yes; then
3167 cat >> confdefs.h <<\EOF
3168 #define HAVE_INITFINI 1
3174 if test $elf = yes -a $gnu_ld = yes; then
3175 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
3176 echo "configure:3177: checking whether cc puts quotes around section names" >&5
3177 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3179 else
3180 cat > conftest.c <<EOF
3181 static const int foo
3182 __attribute__ ((section ("bar"))) = 1;
3184 if ${CC-cc} -S conftest.c -o conftest.s; then
3185 if grep '\.section.*"bar"' conftest.s >/dev/null; then
3186 libc_cv_have_section_quotes=yes
3187 else
3188 libc_cv_have_section_quotes=no
3190 else
3191 libc_cv_have_section_quotes=unknown
3193 rm -f conftest.cs
3197 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
3198 if test $libc_cv_have_section_quotes = yes; then
3199 cat >> confdefs.h <<\EOF
3200 #define HAVE_SECTION_QUOTES 1
3208 if test $elf = yes; then
3209 libc_cv_asm_underscores=no
3210 else
3211 if test $ac_cv_prog_cc_works = yes; then
3212 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3213 echo "configure:3214: checking for _ prefix on C symbol names" >&5
3214 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3216 else
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3220 asm ("_glibc_foobar:");
3221 int main() {
3222 glibc_foobar ();
3223 ; return 0; }
3225 if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3226 rm -rf conftest*
3227 libc_cv_asm_underscores=yes
3228 else
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3231 rm -rf conftest*
3232 libc_cv_asm_underscores=no
3234 rm -f conftest*
3237 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3238 else
3239 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3240 echo "configure:3241: checking for _ prefix on C symbol names" >&5
3241 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3243 else
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 void underscore_test(void) {
3248 return; }
3250 if { (eval echo configure:3251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3251 if grep _underscore_test conftest* >/dev/null; then
3252 rm -f conftest*
3253 libc_cv_asm_underscores=yes
3254 else
3255 rm -f conftest*
3256 libc_cv_asm_underscores=no
3258 else
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3261 rm -f conftest*
3262 libc_cv_asm_underscores=no
3264 rm -f conftest*
3267 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3270 if test $libc_cv_asm_underscores = no; then
3271 cat >> confdefs.h <<\EOF
3272 #define NO_UNDERSCORES 1
3277 if test $elf = yes; then
3278 libc_cv_weak_symbols=yes
3281 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
3282 echo "configure:3283: checking for assembler .weak directive" >&5
3283 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3285 else
3286 cat > conftest.s <<EOF
3287 ${libc_cv_dot_text}
3288 ${libc_cv_asm_global_directive} foo
3289 foo:
3290 .weak foo
3291 .weak bar; bar = foo
3293 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3294 libc_cv_asm_weak_directive=yes
3295 else
3296 libc_cv_asm_weak_directive=no
3298 rm -f conftest*
3301 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
3303 if test $libc_cv_asm_weak_directive = no; then
3304 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
3305 echo "configure:3306: checking for assembler .weakext directive" >&5
3306 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3308 else
3309 cat > conftest.s <<EOF
3310 ${libc_cv_dot_text}
3311 ${libc_cv_asm_global_directive} foo
3312 foo:
3313 .weakext bar foo
3314 .weakext baz
3315 ${libc_cv_asm_global_directive} baz
3316 baz:
3318 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3319 libc_cv_asm_weakext_directive=yes
3320 else
3321 libc_cv_asm_weakext_directive=no
3323 rm -f conftest*
3326 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
3328 fi # no .weak
3330 if test $libc_cv_asm_weak_directive = yes; then
3331 cat >> confdefs.h <<\EOF
3332 #define HAVE_ASM_WEAK_DIRECTIVE 1
3335 elif test $libc_cv_asm_weakext_directive = yes; then
3336 cat >> confdefs.h <<\EOF
3337 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3342 case "${host_cpu}-${host_os}" in
3343 cris*)
3344 libc_cv_asm_line_sep='@'
3345 cat >> confdefs.h <<EOF
3346 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3350 hppa*linux*)
3351 echo $ac_n "checking for assembler line separator""... $ac_c" 1>&6
3352 echo "configure:3353: checking for assembler line separator" >&5
3353 if eval "test \"`echo '$''{'libc_cv_asm_line_sep'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3355 else
3356 cat > conftest.s <<EOF
3357 nop ; is_old_puffin
3359 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:3360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3360 libc_cv_asm_line_sep='!'
3361 else
3362 if test -z "$enable_hacker_mode"; then
3363 echo "*** You need a newer assembler to compile glibc"
3364 rm -f conftest*
3365 exit 1
3367 libc_cv_asm_line_sep=';'
3369 rm -f conftest*
3372 echo "$ac_t""$libc_cv_asm_line_sep" 1>&6
3373 cat >> confdefs.h <<EOF
3374 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3378 esac
3380 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
3381 echo "configure:3382: checking for ld --no-whole-archive" >&5
3382 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
3383 echo $ac_n "(cached) $ac_c" 1>&6
3384 else
3385 cat > conftest.c <<\EOF
3386 _start () {}
3387 int __eh_pc;
3388 __throw () {}
3390 if { ac_try='${CC-cc} $CFLAGS
3391 -nostdlib -nostartfiles -Wl,--no-whole-archive
3392 -o conftest conftest.c 1>&5'; { (eval echo configure:3393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3393 libc_cv_ld_no_whole_archive=yes
3394 else
3395 libc_cv_ld_no_whole_archive=no
3397 rm -f conftest*
3400 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
3401 if test $libc_cv_ld_no_whole_archive = yes; then
3402 no_whole_archive=-Wl,--no-whole-archive
3405 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
3406 echo "configure:3407: checking for gcc -fexceptions" >&5
3407 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3409 else
3410 cat > conftest.c <<\EOF
3411 _start () {}
3412 int __eh_pc;
3413 __throw () {}
3415 if { ac_try='${CC-cc} $CFLAGS
3416 -nostdlib -nostartfiles -fexceptions
3417 -o conftest conftest.c 1>&5'; { (eval echo configure:3418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3418 libc_cv_gcc_exceptions=yes
3419 else
3420 libc_cv_gcc_exceptions=no
3422 rm -f conftest*
3425 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
3426 if test $libc_cv_gcc_exceptions = yes; then
3427 exceptions=-fexceptions
3430 if test "$base_machine" = alpha ; then
3431 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
3432 echo "configure:3433: checking for function ..ng prefix" >&5
3433 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3435 else
3436 cat > conftest.c <<\EOF
3437 foo () { }
3439 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:3440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3440 then
3441 libc_cv_gcc_alpha_ng_prefix=yes
3442 else
3443 libc_cv_gcc_alpha_ng_prefix=no
3445 rm -f conftest*
3448 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
3449 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
3450 cat >> confdefs.h <<\EOF
3451 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
3454 else
3455 cat >> confdefs.h <<\EOF
3456 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
3462 if test "$host_cpu" = powerpc ; then
3463 # Check for a bug present in at least versions 2.8.x of GCC
3464 # and versions 1.0.x of EGCS.
3465 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
3466 echo "configure:3467: checking whether clobbering cr0 causes problems" >&5
3467 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3469 else
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3474 int main() {
3476 ; return 0; }
3478 if { (eval echo configure:3479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3479 rm -rf conftest*
3480 libc_cv_c_asmcr0_bug='no'
3481 else
3482 echo "configure: failed program was:" >&5
3483 cat conftest.$ac_ext >&5
3484 rm -rf conftest*
3485 libc_cv_c_asmcr0_bug='yes'
3487 rm -f conftest*
3490 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
3491 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3492 cat >> confdefs.h <<\EOF
3493 #define BROKEN_PPC_ASM_CR0 1
3499 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
3500 echo "configure:3501: checking for DWARF2 unwind info support" >&5
3501 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3503 else
3504 cat > conftest.c <<EOF
3505 #line 3506 "configure"
3506 static char *__EH_FRAME_BEGIN__;
3507 _start ()
3509 #ifdef CHECK__register_frame
3510 __register_frame (__EH_FRAME_BEGIN__);
3511 __deregister_frame (__EH_FRAME_BEGIN__);
3512 #endif
3513 #ifdef CHECK__register_frame_info
3514 __register_frame_info (__EH_FRAME_BEGIN__);
3515 __deregister_frame_info (__EH_FRAME_BEGIN__);
3516 #endif
3518 int __eh_pc;
3519 __throw () {}
3520 /* FIXME: this is fragile. */
3521 malloc () {}
3522 strcmp () {}
3523 strlen () {}
3524 memcpy () {}
3525 memset () {}
3526 free () {}
3527 abort () {}
3528 __bzero () {}
3530 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3531 -nostdlib -nostartfiles
3532 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3533 libc_cv_gcc_dwarf2_unwind_info=static
3534 else
3535 libc_cv_gcc_dwarf2_unwind_info=no
3537 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3538 -nostdlib -nostartfiles
3539 -o conftest conftest.c -lgcc -lgcc_eh >&5'; { (eval echo configure:3540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3540 if ${CC-cc} $CFLAGS -DCHECK__register_frame_info -nostdlib -nostartfiles \
3541 -o conftest conftest.c -lgcc -lgcc_eh -v 2>&1 >/dev/null \
3542 | grep -q -- --eh-frame-hdr; then
3543 libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
3544 else
3545 libc_cv_gcc_dwarf2_unwind_info=static
3547 else
3548 libc_cv_gcc_dwarf2_unwind_info=no
3550 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
3551 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
3552 -nostdlib -nostartfiles
3553 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3554 libc_cv_gcc_dwarf2_unwind_info=yes
3555 else
3556 libc_cv_gcc_dwarf2_unwind_info=no
3559 rm -f conftest*
3562 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3563 case $libc_cv_gcc_dwarf2_unwind_info in
3564 yes)
3565 cat >> confdefs.h <<\EOF
3566 #define HAVE_DWARF2_UNWIND_INFO 1
3570 static)
3571 cat >> confdefs.h <<\EOF
3572 #define HAVE_DWARF2_UNWIND_INFO 1
3575 cat >> confdefs.h <<\EOF
3576 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3580 esac
3582 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3583 echo "configure:3584: checking for __builtin_expect" >&5
3584 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3586 else
3587 cat > conftest.c <<EOF
3588 #line 3589 "configure"
3589 int foo (int a)
3591 a = __builtin_expect (a, 10);
3592 return a == 10 ? 0 : 1;
3595 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3596 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3597 libc_cv_gcc_builtin_expect=yes
3598 else
3599 libc_cv_gcc_builtin_expect=no
3601 rm -f conftest*
3604 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3605 if test "$libc_cv_gcc_builtin_expect" = yes; then
3606 cat >> confdefs.h <<\EOF
3607 #define HAVE_BUILTIN_EXPECT 1
3612 echo $ac_n "checking for __builtin_memset""... $ac_c" 1>&6
3613 echo "configure:3614: checking for __builtin_memset" >&5
3614 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_memset'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3616 else
3617 cat > conftest.c <<\EOF
3618 void zero (void *x)
3620 __builtin_memset (x, 0, 1000);
3623 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'; { (eval echo configure:3624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3624 then
3625 libc_cv_gcc_builtin_memset=no
3626 else
3627 libc_cv_gcc_builtin_memset=yes
3629 rm -f conftest*
3632 echo "$ac_t""$libc_cv_gcc_builtin_memset" 1>&6
3633 if test "$libc_cv_gcc_builtin_memset" = yes ; then
3634 cat >> confdefs.h <<\EOF
3635 #define HAVE_BUILTIN_MEMSET 1
3640 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3641 echo "configure:3642: checking for local label subtraction" >&5
3642 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3644 else
3645 cat > conftest.c <<EOF
3646 #line 3647 "configure"
3647 int foo (int a)
3649 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3650 void *p = &&l1 + ar[a];
3651 goto *p;
3653 return 1;
3655 return 2;
3658 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3659 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3660 libc_cv_gcc_subtract_local_labels=yes
3661 else
3662 libc_cv_gcc_subtract_local_labels=no
3664 rm -f conftest*
3667 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3668 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3669 cat >> confdefs.h <<\EOF
3670 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3675 echo $ac_n "checking for __thread""... $ac_c" 1>&6
3676 echo "configure:3677: checking for __thread" >&5
3677 if eval "test \"`echo '$''{'libc_cv_gcc___thread'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3679 else
3680 cat > conftest.c <<EOF
3681 __thread int a = 42;
3683 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'; { (eval echo configure:3684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3684 libc_cv_gcc___thread=yes
3685 else
3686 libc_cv_gcc___thread=no
3688 rm -f conftest*
3691 echo "$ac_t""$libc_cv_gcc___thread" 1>&6
3692 if test "$libc_cv_gcc___thread" = yes; then
3693 cat >> confdefs.h <<\EOF
3694 #define HAVE___THREAD 1
3700 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3701 echo "configure:3702: checking for libgd" >&5
3702 if test "$with_gd" != "no"; then
3703 old_CFLAGS="$CFLAGS"
3704 CFLAGS="$CFLAGS $libgd_include"
3705 old_LDFLAGS="$LDFLAGS"
3706 LDFLAGS="$LDFLAGS $libgd_ldflags"
3707 old_LIBS="$LIBS"
3708 LIBS="$LIBS -lgd -lpng -lz -lm"
3709 cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 #include <gd.h>
3713 int main() {
3714 gdImagePng (0, 0)
3715 ; return 0; }
3717 if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3718 rm -rf conftest*
3719 LIBGD=yes
3720 else
3721 echo "configure: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3723 rm -rf conftest*
3724 LIBGD=no
3726 rm -f conftest*
3727 CFLAGS="$old_CFLAGS"
3728 LDFLAGS="$old_LDFLAGS"
3729 LIBS="$old_LIBS"
3730 else
3731 LIBGD=no
3733 echo "$ac_t""$LIBGD" 1>&6
3736 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3737 echo "configure:3738: checking size of long double" >&5
3738 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3740 else
3741 if test "$cross_compiling" = yes; then
3742 ac_cv_sizeof_long_double=0
3743 else
3744 cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3747 #include <stdio.h>
3748 int main()
3750 FILE *f=fopen("conftestval", "w");
3751 if (!f) return(1);
3752 fprintf(f, "%d\n", sizeof(long double));
3753 return(0);
3756 if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3757 then
3758 ac_cv_sizeof_long_double=`cat conftestval`
3759 else
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3762 rm -fr conftest*
3763 ac_cv_sizeof_long_double=0
3765 rm -fr conftest*
3769 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3770 cat >> confdefs.h <<EOF
3771 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3775 sizeof_long_double=$ac_cv_sizeof_long_double
3778 ### End of automated tests.
3779 ### Now run sysdeps configure fragments.
3781 # sysdeps configure fragments may set these with files to be linked below.
3782 libc_link_dests=
3783 libc_link_sources=
3785 # They also can set these variables.
3786 use_ldconfig=no
3787 ldd_rewrite_script=no
3788 libc_cv_sysconfdir=$sysconfdir
3789 libc_cv_gcc_unwind_find_fde=no
3791 # Iterate over all the sysdep directories we will use, running their
3792 # configure fragments, and looking for a uname implementation.
3793 uname=
3794 for dir in $sysnames; do
3795 case $dir in
3796 /*) dest=$dir ;;
3797 *) dest=$srcdir/$dir ;;
3798 esac
3799 if test -r $dest/configure; then
3800 echo "$ac_t""running configure fragment for $dest" 1>&6
3801 . $dest/configure
3804 if test -z "$uname"; then
3805 if test -r $dest/uname.c ||
3806 test -r $dest/uname.S ||
3807 { test -r $dest/syscalls.list &&
3808 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
3809 uname=$dir
3812 done
3814 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
3815 cat >> confdefs.h <<\EOF
3816 #define EXPORT_UNWIND_FIND_FDE 1
3824 # If we will use the generic uname implementation, we must figure out what
3825 # it will say by examining the system, and write the results in config-name.h.
3826 if test "$uname" = "sysdeps/generic"; then
3828 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
3829 if test $uname_sysname != $config_os; then
3830 config_release=`echo $config_os | sed s/$uname_sysname//`
3833 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3834 echo "configure:3835: checking OS release for uname" >&5
3835 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3837 else
3838 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3839 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
3840 != x$config_release; then
3841 # The configuration release is a substring of the kernel release.
3842 libc_cv_uname_release=$kernel_release
3843 elif test x$config_release != x; then
3844 libc_cv_uname_release=$config_release
3845 elif test x$kernel_release != x; then
3846 libc_cv_uname_release=$kernel_release
3847 else
3848 libc_cv_uname_release=unknown
3852 echo "$ac_t""$libc_cv_uname_release" 1>&6
3853 uname_release="$libc_cv_uname_release"
3855 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3856 echo "configure:3857: checking OS version for uname" >&5
3857 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3859 else
3860 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3861 if test -n "$kernel_version"; then
3862 libc_cv_uname_version="$kernel_version"
3863 else
3864 libc_cv_uname_version=unknown
3868 echo "$ac_t""$libc_cv_uname_version" 1>&6
3869 uname_version="$libc_cv_uname_version"
3871 config_uname=config-name.h:config-name.in
3872 else
3873 # For non-generic uname, we don't need to create config-name.h at all.
3874 config_uname=
3877 cat >> confdefs.h <<\EOF
3878 #define USE_IN_LIBIO 1
3882 # Test for old glibc 2.0.x headers so that they can be removed properly
3883 # Search only in includedir.
3884 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3885 echo "configure:3886: checking for old glibc 2.0.x headers" >&5
3886 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3887 then
3888 old_glibc_headers=yes
3889 else
3890 old_glibc_headers=no
3892 echo "$ac_t""$old_glibc_headers" 1>&6
3893 if test ${old_glibc_headers} = yes; then
3894 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3895 echo "configure: warning: *** be removed." 1>&2
3908 if test $gnu_ld = yes; then
3909 cat >> confdefs.h <<\EOF
3910 #define HAVE_GNU_LD 1
3914 if test $gnu_as = yes; then
3915 cat >> confdefs.h <<\EOF
3916 #define HAVE_GNU_AS 1
3920 if test $elf = yes; then
3921 cat >> confdefs.h <<\EOF
3922 #define HAVE_ELF 1
3926 if test $xcoff = yes; then
3927 cat >> confdefs.h <<\EOF
3928 #define HAVE_XCOFF 1
3935 if test $shared = default; then
3936 if test $gnu_ld = yes; then
3937 shared=$elf
3938 else
3939 # For now we do not assume shared libs are available. In future more
3940 # tests might become available.
3941 shared=no
3945 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3946 echo "configure:3947: checking whether -fPIC is default" >&5
3947 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3949 else
3950 pic_default=yes
3951 cat > conftest.c <<EOF
3952 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3953 # error PIC is default.
3954 #endif
3956 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3957 pic_default=no
3959 rm -f conftest.*
3962 echo "$ac_t""$pic_default" 1>&6
3973 case "$add_ons" in
3974 *door*) linux_doors=yes ;;
3975 *) linux_doors=no ;;
3976 esac
3981 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3982 config_makefile=
3983 else
3984 config_makefile=Makefile
3987 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3988 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3992 trap '' 1 2 15
3993 cat > confcache <<\EOF
3994 # This file is a shell script that caches the results of configure
3995 # tests run on this system so they can be shared between configure
3996 # scripts and configure runs. It is not useful on other systems.
3997 # If it contains results you don't want to keep, you may remove or edit it.
3999 # By default, configure uses ./config.cache as the cache file,
4000 # creating it if it does not exist already. You can give configure
4001 # the --cache-file=FILE option to use a different cache file; that is
4002 # what configure does when it calls configure scripts in
4003 # subdirectories, so they share the cache.
4004 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4005 # config.status only pays attention to the cache file if you give it the
4006 # --recheck option to rerun configure.
4009 # The following way of writing the cache mishandles newlines in values,
4010 # but we know of no workaround that is simple, portable, and efficient.
4011 # So, don't put newlines in cache variables' values.
4012 # Ultrix sh set writes to stderr and can't be redirected directly,
4013 # and sets the high bit in the cache file unless we assign to the vars.
4014 (set) 2>&1 |
4015 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4016 *ac_space=\ *)
4017 # `set' does not quote correctly, so add quotes (double-quote substitution
4018 # turns \\\\ into \\, and sed turns \\ into \).
4019 sed -n \
4020 -e "s/'/'\\\\''/g" \
4021 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4024 # `set' quotes correctly as required by POSIX, so do not add quotes.
4025 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4027 esac >> confcache
4028 if cmp -s $cache_file confcache; then
4030 else
4031 if test -w $cache_file; then
4032 echo "updating cache $cache_file"
4033 cat confcache > $cache_file
4034 else
4035 echo "not updating unwritable cache $cache_file"
4038 rm -f confcache
4040 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4042 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4043 # Let make expand exec_prefix.
4044 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4046 # Any assignment to VPATH causes Sun make to only execute
4047 # the first set of double-colon rules, so remove it if not needed.
4048 # If there is a colon in the path, we need to keep it.
4049 if test "x$srcdir" = x.; then
4050 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4053 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4055 DEFS=-DHAVE_CONFIG_H
4057 # Without the "./", some shells look in PATH for config.status.
4058 : ${CONFIG_STATUS=./config.status}
4060 echo creating $CONFIG_STATUS
4061 rm -f $CONFIG_STATUS
4062 cat > $CONFIG_STATUS <<EOF
4063 #! /bin/sh
4064 # Generated automatically by configure.
4065 # Run this file to recreate the current configuration.
4066 # This directory was configured as follows,
4067 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4069 # $0 $ac_configure_args
4071 # Compiler output produced by configure, useful for debugging
4072 # configure, is in ./config.log if it exists.
4074 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4075 for ac_option
4077 case "\$ac_option" in
4078 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4079 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4080 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4081 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4082 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4083 exit 0 ;;
4084 -help | --help | --hel | --he | --h)
4085 echo "\$ac_cs_usage"; exit 0 ;;
4086 *) echo "\$ac_cs_usage"; exit 1 ;;
4087 esac
4088 done
4090 ac_given_srcdir=$srcdir
4091 ac_given_INSTALL="$INSTALL"
4093 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4095 cat >> $CONFIG_STATUS <<EOF
4097 # Protect against being on the right side of a sed subst in config.status.
4098 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4099 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4100 $ac_vpsub
4101 $extrasub
4102 s%@SHELL@%$SHELL%g
4103 s%@CFLAGS@%$CFLAGS%g
4104 s%@CPPFLAGS@%$CPPFLAGS%g
4105 s%@CXXFLAGS@%$CXXFLAGS%g
4106 s%@FFLAGS@%$FFLAGS%g
4107 s%@DEFS@%$DEFS%g
4108 s%@LDFLAGS@%$LDFLAGS%g
4109 s%@LIBS@%$LIBS%g
4110 s%@exec_prefix@%$exec_prefix%g
4111 s%@prefix@%$prefix%g
4112 s%@program_transform_name@%$program_transform_name%g
4113 s%@bindir@%$bindir%g
4114 s%@sbindir@%$sbindir%g
4115 s%@libexecdir@%$libexecdir%g
4116 s%@datadir@%$datadir%g
4117 s%@sysconfdir@%$sysconfdir%g
4118 s%@sharedstatedir@%$sharedstatedir%g
4119 s%@localstatedir@%$localstatedir%g
4120 s%@libdir@%$libdir%g
4121 s%@includedir@%$includedir%g
4122 s%@oldincludedir@%$oldincludedir%g
4123 s%@infodir@%$infodir%g
4124 s%@mandir@%$mandir%g
4125 s%@with_fp@%$with_fp%g
4126 s%@with_cvs@%$with_cvs%g
4127 s%@oldest_abi@%$oldest_abi%g
4128 s%@subdirs@%$subdirs%g
4129 s%@force_install@%$force_install%g
4130 s%@all_warnings@%$all_warnings%g
4131 s%@host@%$host%g
4132 s%@host_alias@%$host_alias%g
4133 s%@host_cpu@%$host_cpu%g
4134 s%@host_vendor@%$host_vendor%g
4135 s%@host_os@%$host_os%g
4136 s%@base_machine@%$base_machine%g
4137 s%@sysnames@%$sysnames%g
4138 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4139 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4140 s%@INSTALL_DATA@%$INSTALL_DATA%g
4141 s%@LN_S@%$LN_S%g
4142 s%@PWD_P@%$PWD_P%g
4143 s%@build@%$build%g
4144 s%@build_alias@%$build_alias%g
4145 s%@build_cpu@%$build_cpu%g
4146 s%@build_vendor@%$build_vendor%g
4147 s%@build_os@%$build_os%g
4148 s%@CC@%$CC%g
4149 s%@MAKE@%$MAKE%g
4150 s%@MSGFMT@%$MSGFMT%g
4151 s%@MAKEINFO@%$MAKEINFO%g
4152 s%@SED@%$SED%g
4153 s%@cross_linkable@%$cross_linkable%g
4154 s%@BUILD_CC@%$BUILD_CC%g
4155 s%@cross_compiling@%$cross_compiling%g
4156 s%@CPP@%$CPP%g
4157 s%@AR@%$AR%g
4158 s%@RANLIB@%$RANLIB%g
4159 s%@MIG@%$MIG%g
4160 s%@CCVERSION@%$CCVERSION%g
4161 s%@SYSINCLUDES@%$SYSINCLUDES%g
4162 s%@libc_cv_gcc_static_libgcc@%$libc_cv_gcc_static_libgcc%g
4163 s%@BASH@%$BASH%g
4164 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
4165 s%@KSH@%$KSH%g
4166 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
4167 s%@AWK@%$AWK%g
4168 s%@PERL@%$PERL%g
4169 s%@INSTALL_INFO@%$INSTALL_INFO%g
4170 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
4171 s%@BISON@%$BISON%g
4172 s%@VERSIONING@%$VERSIONING%g
4173 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
4174 s%@libc_cv_initfinit_array@%$libc_cv_initfinit_array%g
4175 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
4176 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
4177 s%@libc_cv_z_initfirst@%$libc_cv_z_initfirst%g
4178 s%@libc_cv_Bgroup@%$libc_cv_Bgroup%g
4179 s%@libc_cv_z_combreloc@%$libc_cv_z_combreloc%g
4180 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
4181 s%@no_whole_archive@%$no_whole_archive%g
4182 s%@exceptions@%$exceptions%g
4183 s%@LIBGD@%$LIBGD%g
4184 s%@sizeof_long_double@%$sizeof_long_double%g
4185 s%@libc_cv_gcc_unwind_find_fde@%$libc_cv_gcc_unwind_find_fde%g
4186 s%@uname_sysname@%$uname_sysname%g
4187 s%@uname_release@%$uname_release%g
4188 s%@uname_version@%$uname_version%g
4189 s%@old_glibc_headers@%$old_glibc_headers%g
4190 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
4191 s%@libc_cv_localedir@%$libc_cv_localedir%g
4192 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
4193 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
4194 s%@use_ldconfig@%$use_ldconfig%g
4195 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
4196 s%@gnu_ld@%$gnu_ld%g
4197 s%@gnu_as@%$gnu_as%g
4198 s%@elf@%$elf%g
4199 s%@xcoff@%$xcoff%g
4200 s%@static@%$static%g
4201 s%@shared@%$shared%g
4202 s%@pic_default@%$pic_default%g
4203 s%@profile@%$profile%g
4204 s%@omitfp@%$omitfp%g
4205 s%@bounded@%$bounded%g
4206 s%@static_nss@%$static_nss%g
4207 s%@nopic_initfini@%$nopic_initfini%g
4208 s%@DEFINES@%$DEFINES%g
4209 s%@linux_doors@%$linux_doors%g
4210 s%@mach_interface_list@%$mach_interface_list%g
4211 s%@VERSION@%$VERSION%g
4212 s%@RELEASE@%$RELEASE%g
4214 CEOF
4217 cat >> $CONFIG_STATUS <<\EOF
4219 # Split the substitutions into bite-sized pieces for seds with
4220 # small command number limits, like on Digital OSF/1 and HP-UX.
4221 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4222 ac_file=1 # Number of current file.
4223 ac_beg=1 # First line for current file.
4224 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4225 ac_more_lines=:
4226 ac_sed_cmds=""
4227 while $ac_more_lines; do
4228 if test $ac_beg -gt 1; then
4229 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4230 else
4231 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4233 if test ! -s conftest.s$ac_file; then
4234 ac_more_lines=false
4235 rm -f conftest.s$ac_file
4236 else
4237 if test -z "$ac_sed_cmds"; then
4238 ac_sed_cmds="sed -f conftest.s$ac_file"
4239 else
4240 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4242 ac_file=`expr $ac_file + 1`
4243 ac_beg=$ac_end
4244 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4246 done
4247 if test -z "$ac_sed_cmds"; then
4248 ac_sed_cmds=cat
4252 cat >> $CONFIG_STATUS <<EOF
4254 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
4256 cat >> $CONFIG_STATUS <<\EOF
4257 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4258 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4259 case "$ac_file" in
4260 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4261 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4262 *) ac_file_in="${ac_file}.in" ;;
4263 esac
4265 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4267 # Remove last slash and all that follows it. Not all systems have dirname.
4268 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4269 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4270 # The file is in a subdirectory.
4271 test ! -d "$ac_dir" && mkdir "$ac_dir"
4272 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4273 # A "../" for each directory in $ac_dir_suffix.
4274 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4275 else
4276 ac_dir_suffix= ac_dots=
4279 case "$ac_given_srcdir" in
4280 .) srcdir=.
4281 if test -z "$ac_dots"; then top_srcdir=.
4282 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4283 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4284 *) # Relative path.
4285 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4286 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4287 esac
4289 case "$ac_given_INSTALL" in
4290 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4291 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4292 esac
4294 echo creating "$ac_file"
4295 rm -f "$ac_file"
4296 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4297 case "$ac_file" in
4298 *Makefile*) ac_comsub="1i\\
4299 # $configure_input" ;;
4300 *) ac_comsub= ;;
4301 esac
4303 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4304 sed -e "$ac_comsub
4305 s%@configure_input@%$configure_input%g
4306 s%@srcdir@%$srcdir%g
4307 s%@top_srcdir@%$top_srcdir%g
4308 s%@INSTALL@%$INSTALL%g
4309 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4310 fi; done
4311 rm -f conftest.s*
4313 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4314 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4316 # ac_d sets the value in "#define NAME VALUE" lines.
4317 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4318 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4319 ac_dC='\3'
4320 ac_dD='%g'
4321 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4322 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4323 ac_uB='\([ ]\)%\1#\2define\3'
4324 ac_uC=' '
4325 ac_uD='\4%g'
4326 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4327 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4328 ac_eB='$%\1#\2define\3'
4329 ac_eC=' '
4330 ac_eD='%g'
4332 if test "${CONFIG_HEADERS+set}" != set; then
4334 cat >> $CONFIG_STATUS <<EOF
4335 CONFIG_HEADERS="config.h"
4337 cat >> $CONFIG_STATUS <<\EOF
4339 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4340 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4341 case "$ac_file" in
4342 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4343 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4344 *) ac_file_in="${ac_file}.in" ;;
4345 esac
4347 echo creating $ac_file
4349 rm -f conftest.frag conftest.in conftest.out
4350 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4351 cat $ac_file_inputs > conftest.in
4355 # Transform confdefs.h into a sed script conftest.vals that substitutes
4356 # the proper values into config.h.in to produce config.h. And first:
4357 # Protect against being on the right side of a sed subst in config.status.
4358 # Protect against being in an unquoted here document in config.status.
4359 rm -f conftest.vals
4360 cat > conftest.hdr <<\EOF
4361 s/[\\&%]/\\&/g
4362 s%[\\$`]%\\&%g
4363 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4364 s%ac_d%ac_u%gp
4365 s%ac_u%ac_e%gp
4367 sed -n -f conftest.hdr confdefs.h > conftest.vals
4368 rm -f conftest.hdr
4370 # This sed command replaces #undef with comments. This is necessary, for
4371 # example, in the case of _POSIX_SOURCE, which is predefined and required
4372 # on some systems where configure will not decide to define it.
4373 cat >> conftest.vals <<\EOF
4374 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4377 # Break up conftest.vals because some shells have a limit on
4378 # the size of here documents, and old seds have small limits too.
4380 rm -f conftest.tail
4381 while :
4383 ac_lines=`grep -c . conftest.vals`
4384 # grep -c gives empty output for an empty file on some AIX systems.
4385 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4386 # Write a limited-size here document to conftest.frag.
4387 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4388 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4389 echo 'CEOF
4390 sed -f conftest.frag conftest.in > conftest.out
4391 rm -f conftest.in
4392 mv conftest.out conftest.in
4393 ' >> $CONFIG_STATUS
4394 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4395 rm -f conftest.vals
4396 mv conftest.tail conftest.vals
4397 done
4398 rm -f conftest.vals
4400 cat >> $CONFIG_STATUS <<\EOF
4401 rm -f conftest.frag conftest.h
4402 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4403 cat conftest.in >> conftest.h
4404 rm -f conftest.in
4405 if cmp -s $ac_file conftest.h 2>/dev/null; then
4406 echo "$ac_file is unchanged"
4407 rm -f conftest.h
4408 else
4409 # Remove last slash and all that follows it. Not all systems have dirname.
4410 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4411 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4412 # The file is in a subdirectory.
4413 test ! -d "$ac_dir" && mkdir "$ac_dir"
4415 rm -f $ac_file
4416 mv conftest.h $ac_file
4418 fi; done
4422 cat >> $CONFIG_STATUS <<EOF
4423 ac_sources="`echo $libc_link_sources`"
4424 ac_dests="`echo $libc_link_dests`"
4427 cat >> $CONFIG_STATUS <<\EOF
4428 srcdir=$ac_given_srcdir
4429 while test -n "$ac_sources"; do
4430 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4431 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4433 echo "linking $srcdir/$ac_source to $ac_dest"
4435 if test ! -r $srcdir/$ac_source; then
4436 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4438 rm -f $ac_dest
4440 # Make relative symlinks.
4441 # Remove last slash and all that follows it. Not all systems have dirname.
4442 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4443 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4444 # The dest file is in a subdirectory.
4445 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4446 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4447 # A "../" for each directory in $ac_dest_dir_suffix.
4448 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4449 else
4450 ac_dest_dir_suffix= ac_dots=
4453 case "$srcdir" in
4454 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4455 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4456 esac
4458 # Make a symlink if possible; otherwise try a hard link.
4459 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4460 ln $srcdir/$ac_source $ac_dest; then :
4461 else
4462 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4464 done
4466 cat >> $CONFIG_STATUS <<EOF
4467 config_vars='$config_vars'
4469 cat >> $CONFIG_STATUS <<\EOF
4471 case $CONFIG_FILES in *config.make*)
4472 echo "$config_vars" >> config.make;;
4473 esac
4474 test -d bits || mkdir bits
4475 exit 0
4477 chmod +x $CONFIG_STATUS
4478 rm -fr confdefs* $ac_clean_files
4479 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4481 if test "$no_recursion" != yes; then
4483 # Remove --cache-file and --srcdir arguments so they do not pile up.
4484 ac_sub_configure_args=
4485 ac_prev=
4486 for ac_arg in $ac_configure_args; do
4487 if test -n "$ac_prev"; then
4488 ac_prev=
4489 continue
4491 case "$ac_arg" in
4492 -cache-file | --cache-file | --cache-fil | --cache-fi \
4493 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4494 ac_prev=cache_file ;;
4495 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4496 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4498 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4499 ac_prev=srcdir ;;
4500 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4502 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4503 esac
4504 done
4506 for ac_config_dir in $add_ons; do
4508 # Do not complain, so a configure script can configure whichever
4509 # parts of a large source tree are present.
4510 if test ! -d $srcdir/$ac_config_dir; then
4511 continue
4514 echo configuring in $ac_config_dir
4516 case "$srcdir" in
4517 .) ;;
4519 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4520 else
4521 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4524 esac
4526 ac_popdir=`pwd`
4527 cd $ac_config_dir
4529 # A "../" for each directory in /$ac_config_dir.
4530 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4532 case "$srcdir" in
4533 .) # No --srcdir option. We are building in place.
4534 ac_sub_srcdir=$srcdir ;;
4535 /*) # Absolute path.
4536 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4537 *) # Relative path.
4538 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4539 esac
4541 # Check for guested configure; otherwise get Cygnus style configure.
4542 if test -f $ac_sub_srcdir/configure; then
4543 ac_sub_configure=$ac_sub_srcdir/configure
4544 elif test -f $ac_sub_srcdir/configure.in; then
4545 ac_sub_configure=$ac_configure
4546 else
4547 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4548 ac_sub_configure=
4551 # The recursion is here.
4552 if test -n "$ac_sub_configure"; then
4554 # Make the cache file name correct relative to the subdirectory.
4555 case "$cache_file" in
4556 /*) ac_sub_cache_file=$cache_file ;;
4557 *) # Relative path.
4558 ac_sub_cache_file="$ac_dots$cache_file" ;;
4559 esac
4560 case "$ac_given_INSTALL" in
4561 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4562 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4563 esac
4565 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4566 # The eval makes quoting arguments work.
4567 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4568 then :
4569 else
4570 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4574 cd $ac_popdir
4575 done