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