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