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