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