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