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