*** empty log message ***
[platform/upstream/glibc.git] / configure
1 #! /bin/sh
2
3 # From configure.in CVSid
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.10 
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16   --with-gmp=DIRECTORY    find GMP source code in DIRECTORY (not needed)"
17 ac_help="$ac_help
18   --with-gettext=DIR      find GNU gettext source code in DIR (not needed)"
19 ac_help="$ac_help
20   --with-fp               if using floating-point hardware"
21 ac_help="$ac_help
22   --with-gnu-binutils     if using GNU binutils (as and ld)"
23 ac_help="$ac_help
24   --with-gnu-ld           if using GNU ld (in the binutils package)"
25 ac_help="$ac_help
26   --with-gnu-as           if using GNU as (in the binutils package)"
27 ac_help="$ac_help
28   --with-elf              if using the ELF object format"
29 ac_help="$ac_help
30   --enable-libio          build in GNU libio instead of GNU stdio"
31 ac_help="$ac_help
32   --enable-shared         build shared library [default=yes if GNU ld & ELF]"
33 ac_help="$ac_help
34   --enable-profile        build profiled library [default=yes]"
35 ac_help="$ac_help
36   --enable-omitfp       build undebuggable optimized library [default=no]"
37
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
41 build=NONE
42 cache_file=./config.cache
43 exec_prefix=NONE
44 host=NONE
45 no_create=
46 nonopt=NONE
47 no_recursion=
48 prefix=NONE
49 program_prefix=NONE
50 program_suffix=NONE
51 program_transform_name=s,x,x,
52 silent=
53 site=
54 srcdir=
55 target=NONE
56 verbose=
57 x_includes=NONE
58 x_libraries=NONE
59 bindir='${exec_prefix}/bin'
60 sbindir='${exec_prefix}/sbin'
61 libexecdir='${exec_prefix}/libexec'
62 datadir='${prefix}/share'
63 sysconfdir='${prefix}/etc'
64 sharedstatedir='${prefix}/com'
65 localstatedir='${prefix}/var'
66 libdir='${exec_prefix}/lib'
67 includedir='${prefix}/include'
68 oldincludedir='/usr/include'
69 infodir='${prefix}/info'
70 mandir='${prefix}/man'
71
72 # Initialize some other variables.
73 subdirs=
74 MFLAGS= MAKEFLAGS=
75
76 ac_prev=
77 for ac_option
78 do
79
80   # If the previous option needs an argument, assign it.
81   if test -n "$ac_prev"; then
82     eval "$ac_prev=\$ac_option"
83     ac_prev=
84     continue
85   fi
86
87   case "$ac_option" in
88   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89   *) ac_optarg= ;;
90   esac
91
92   # Accept the important Cygnus configure options, so we can diagnose typos.
93
94   case "$ac_option" in
95
96   -bindir | --bindir | --bindi | --bind | --bin | --bi)
97     ac_prev=bindir ;;
98   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99     bindir="$ac_optarg" ;;
100
101   -build | --build | --buil | --bui | --bu)
102     ac_prev=build ;;
103   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104     build="$ac_optarg" ;;
105
106   -cache-file | --cache-file | --cache-fil | --cache-fi \
107   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108     ac_prev=cache_file ;;
109   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111     cache_file="$ac_optarg" ;;
112
113   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114     ac_prev=datadir ;;
115   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116   | --da=*)
117     datadir="$ac_optarg" ;;
118
119   -disable-* | --disable-*)
120     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121     # Reject names that are not valid shell variable names.
122     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124     fi
125     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126     eval "enable_${ac_feature}=no" ;;
127
128   -enable-* | --enable-*)
129     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130     # Reject names that are not valid shell variable names.
131     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133     fi
134     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135     case "$ac_option" in
136       *=*) ;;
137       *) ac_optarg=yes ;;
138     esac
139     eval "enable_${ac_feature}='$ac_optarg'" ;;
140
141   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143   | --exec | --exe | --ex)
144     ac_prev=exec_prefix ;;
145   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147   | --exec=* | --exe=* | --ex=*)
148     exec_prefix="$ac_optarg" ;;
149
150   -gas | --gas | --ga | --g)
151     # Obsolete; use --with-gas.
152     with_gas=yes ;;
153
154   -help | --help | --hel | --he)
155     # Omit some internal or obsolete options to make the list less imposing.
156     # This message is too long to be a string in the A/UX 3.1 sh.
157     cat << EOF
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
160 Configuration:
161   --cache-file=FILE       cache test results in FILE
162   --help                  print this message
163   --no-create             do not create output files
164   --quiet, --silent       do not print \`checking...' messages
165   --version               print the version of autoconf that created configure
166 Directory and file names:
167   --prefix=PREFIX         install architecture-independent files in PREFIX
168                           [$ac_default_prefix]
169   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
170                           [same as prefix]
171   --bindir=DIR            user executables in DIR [EPREFIX/bin]
172   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
173   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
174   --datadir=DIR           read-only architecture-independent data in DIR
175                           [PREFIX/share]
176   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
177   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
178                           [PREFIX/com]
179   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
180   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
181   --includedir=DIR        C header files in DIR [PREFIX/include]
182   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
183   --infodir=DIR           info documentation in DIR [PREFIX/info]
184   --mandir=DIR            man documentation in DIR [PREFIX/man]
185   --srcdir=DIR            find the sources in DIR [configure dir or ..]
186   --program-prefix=PREFIX prepend PREFIX to installed program names
187   --program-suffix=SUFFIX append SUFFIX to installed program names
188   --program-transform-name=PROGRAM
189                           run sed PROGRAM on installed program names
190 EOF
191     cat << EOF
192 Host type:
193   --build=BUILD           configure for building on BUILD [BUILD=HOST]
194   --host=HOST             configure for HOST [guessed]
195   --target=TARGET         configure for TARGET [TARGET=HOST]
196 Features and packages:
197   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
198   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
199   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
200   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
201   --x-includes=DIR        X include files are in DIR
202   --x-libraries=DIR       X library files are in DIR
203 EOF
204     if test -n "$ac_help"; then
205       echo "--enable and --with options recognized:$ac_help"
206     fi
207     exit 0 ;;
208
209   -host | --host | --hos | --ho)
210     ac_prev=host ;;
211   -host=* | --host=* | --hos=* | --ho=*)
212     host="$ac_optarg" ;;
213
214   -includedir | --includedir | --includedi | --included | --include \
215   | --includ | --inclu | --incl | --inc)
216     ac_prev=includedir ;;
217   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218   | --includ=* | --inclu=* | --incl=* | --inc=*)
219     includedir="$ac_optarg" ;;
220
221   -infodir | --infodir | --infodi | --infod | --info | --inf)
222     ac_prev=infodir ;;
223   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224     infodir="$ac_optarg" ;;
225
226   -libdir | --libdir | --libdi | --libd)
227     ac_prev=libdir ;;
228   -libdir=* | --libdir=* | --libdi=* | --libd=*)
229     libdir="$ac_optarg" ;;
230
231   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232   | --libexe | --libex | --libe)
233     ac_prev=libexecdir ;;
234   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235   | --libexe=* | --libex=* | --libe=*)
236     libexecdir="$ac_optarg" ;;
237
238   -localstatedir | --localstatedir | --localstatedi | --localstated \
239   | --localstate | --localstat | --localsta | --localst \
240   | --locals | --local | --loca | --loc | --lo)
241     ac_prev=localstatedir ;;
242   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245     localstatedir="$ac_optarg" ;;
246
247   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248     ac_prev=mandir ;;
249   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250     mandir="$ac_optarg" ;;
251
252   -nfp | --nfp | --nf)
253     # Obsolete; use --without-fp.
254     with_fp=no ;;
255
256   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257   | --no-cr | --no-c)
258     no_create=yes ;;
259
260   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262     no_recursion=yes ;;
263
264   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266   | --oldin | --oldi | --old | --ol | --o)
267     ac_prev=oldincludedir ;;
268   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271     oldincludedir="$ac_optarg" ;;
272
273   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274     ac_prev=prefix ;;
275   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276     prefix="$ac_optarg" ;;
277
278   -program-prefix | --program-prefix | --program-prefi | --program-pref \
279   | --program-pre | --program-pr | --program-p)
280     ac_prev=program_prefix ;;
281   -program-prefix=* | --program-prefix=* | --program-prefi=* \
282   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283     program_prefix="$ac_optarg" ;;
284
285   -program-suffix | --program-suffix | --program-suffi | --program-suff \
286   | --program-suf | --program-su | --program-s)
287     ac_prev=program_suffix ;;
288   -program-suffix=* | --program-suffix=* | --program-suffi=* \
289   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290     program_suffix="$ac_optarg" ;;
291
292   -program-transform-name | --program-transform-name \
293   | --program-transform-nam | --program-transform-na \
294   | --program-transform-n | --program-transform- \
295   | --program-transform | --program-transfor \
296   | --program-transfo | --program-transf \
297   | --program-trans | --program-tran \
298   | --progr-tra | --program-tr | --program-t)
299     ac_prev=program_transform_name ;;
300   -program-transform-name=* | --program-transform-name=* \
301   | --program-transform-nam=* | --program-transform-na=* \
302   | --program-transform-n=* | --program-transform-=* \
303   | --program-transform=* | --program-transfor=* \
304   | --program-transfo=* | --program-transf=* \
305   | --program-trans=* | --program-tran=* \
306   | --progr-tra=* | --program-tr=* | --program-t=*)
307     program_transform_name="$ac_optarg" ;;
308
309   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310   | -silent | --silent | --silen | --sile | --sil)
311     silent=yes ;;
312
313   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314     ac_prev=sbindir ;;
315   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316   | --sbi=* | --sb=*)
317     sbindir="$ac_optarg" ;;
318
319   -sharedstatedir | --sharedstatedir | --sharedstatedi \
320   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321   | --sharedst | --shareds | --shared | --share | --shar \
322   | --sha | --sh)
323     ac_prev=sharedstatedir ;;
324   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327   | --sha=* | --sh=*)
328     sharedstatedir="$ac_optarg" ;;
329
330   -site | --site | --sit)
331     ac_prev=site ;;
332   -site=* | --site=* | --sit=*)
333     site="$ac_optarg" ;;
334
335   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336     ac_prev=srcdir ;;
337   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338     srcdir="$ac_optarg" ;;
339
340   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341   | --syscon | --sysco | --sysc | --sys | --sy)
342     ac_prev=sysconfdir ;;
343   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345     sysconfdir="$ac_optarg" ;;
346
347   -target | --target | --targe | --targ | --tar | --ta | --t)
348     ac_prev=target ;;
349   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350     target="$ac_optarg" ;;
351
352   -v | -verbose | --verbose | --verbos | --verbo | --verb)
353     verbose=yes ;;
354
355   -version | --version | --versio | --versi | --vers)
356     echo "configure generated by autoconf version 2.10"
357     exit 0 ;;
358
359   -with-* | --with-*)
360     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361     # Reject names that are not valid shell variable names.
362     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364     fi
365     ac_package=`echo $ac_package| sed 's/-/_/g'`
366     case "$ac_option" in
367       *=*) ;;
368       *) ac_optarg=yes ;;
369     esac
370     eval "with_${ac_package}='$ac_optarg'" ;;
371
372   -without-* | --without-*)
373     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374     # Reject names that are not valid shell variable names.
375     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377     fi
378     ac_package=`echo $ac_package| sed 's/-/_/g'`
379     eval "with_${ac_package}=no" ;;
380
381   --x)
382     # Obsolete; use --with-x.
383     with_x=yes ;;
384
385   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386   | --x-incl | --x-inc | --x-in | --x-i)
387     ac_prev=x_includes ;;
388   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390     x_includes="$ac_optarg" ;;
391
392   -x-libraries | --x-libraries | --x-librarie | --x-librari \
393   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394     ac_prev=x_libraries ;;
395   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397     x_libraries="$ac_optarg" ;;
398
399   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400     ;;
401
402   *)
403     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404       echo "configure: warning: $ac_option: invalid host type" 1>&2
405     fi
406     if test "x$nonopt" != xNONE; then
407       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408     fi
409     nonopt="$ac_option"
410     ;;
411
412   esac
413 done
414
415 if test -n "$ac_prev"; then
416   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 fi
418
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420
421 # File descriptor usage:
422 # 0 standard input
423 # 1 file creation
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
430   exec 6>/dev/null
431 else
432   exec 6>&1
433 fi
434 exec 5>./config.log
435
436 echo "\
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
439 " 1>&5
440
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
443 ac_configure_args=
444 for ac_arg
445 do
446   case "$ac_arg" in
447   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448   | --no-cr | --no-c) ;;
449   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454   esac
455 done
456
457 # NLS nuisances.
458 # Only set LANG and LC_ALL to C if already set.
459 # These must not be set unconditionally because not all systems understand
460 # e.g. LANG=C (notably SCO).
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
463
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 echo > confdefs.h
468
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=features.h
472
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475   ac_srcdir_defaulted=yes
476   # Try the directory containing this script, then its parent.
477   ac_prog=$0
478   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480   srcdir=$ac_confdir
481   if test ! -r $srcdir/$ac_unique_file; then
482     srcdir=..
483   fi
484 else
485   ac_srcdir_defaulted=no
486 fi
487 if test ! -r $srcdir/$ac_unique_file; then
488   if test "$ac_srcdir_defaulted" = yes; then
489     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490   else
491     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492   fi
493 fi
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498   if test "x$prefix" != xNONE; then
499     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500   else
501     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502   fi
503 fi
504 for ac_site_file in $CONFIG_SITE; do
505   if test -r "$ac_site_file"; then
506     echo "loading site script $ac_site_file"
507     . "$ac_site_file"
508   fi
509 done
510
511 if test -r "$cache_file"; then
512   echo "loading cache $cache_file"
513   . $cache_file
514 else
515   echo "creating cache $cache_file"
516   > $cache_file
517 fi
518
519 ac_ext=c
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524
525 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
526   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
528     ac_n= ac_c='
529 ' ac_t='        '
530   else
531     ac_n=-n ac_c= ac_t=
532   fi
533 else
534   ac_n= ac_c='\c' ac_t=
535 fi
536
537     if test -r /vmunix; then
538       kernel_id=`strings /vmunix | grep UNIX`
539     elif test -r /dynix; then
540       kernel_id=`strings /dynix | grep DYNIX`
541     else
542       kernel_id=
543     fi
544
545
546
547
548 # This will get text that should go into config.make.
549 config_vars=
550
551 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
552 # Check whether --with-gmp or --without-gmp was given.
553 if test "${with_gmp+set}" = set; then
554   withval="$with_gmp"
555   case "$with_gmp" in
556 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
557 ''|no) ;;
558 *) config_vars="$config_vars
559 gmp-srcdir = $withval" ;;
560 esac
561
562 fi
563
564 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
565 # Check whether --with-gettext or --without-gettext was given.
566 if test "${with_gettext+set}" = set; then
567   withval="$with_gettext"
568   case "$with_gettext" in
569 yes)
570   { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
571 ''|no) ;;
572 *)
573   config_vars="$config_vars
574 gettext-srcdir = $withval" ;;
575 esac
576
577 fi
578
579
580 # Check whether --with-fp or --without-fp was given.
581 if test "${with_fp+set}" = set; then
582   withval="$with_fp"
583   with_fp=$withval
584 else
585   with_fp=yes
586 fi
587
588 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
589 if test "${with_gnu_binutils+set}" = set; then
590   withval="$with_gnu_binutils"
591   gnu_binutils=$withval
592 else
593   gnu_binutils=no
594 fi
595
596 # Check whether --with-gnu-ld or --without-gnu-ld was given.
597 if test "${with_gnu_ld+set}" = set; then
598   withval="$with_gnu_ld"
599   gnu_ld=$withval
600 else
601   gnu_ld=no
602 fi
603
604 # Check whether --with-gnu-as or --without-gnu-as was given.
605 if test "${with_gnu_as+set}" = set; then
606   withval="$with_gnu_as"
607   gnu_as=$withval
608 else
609   gnu_as=no
610 fi
611
612 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
613 # Check whether --with-elf or --without-elf was given.
614 if test "${with_elf+set}" = set; then
615   withval="$with_elf"
616   elf=$withval
617 else
618   elf=no
619 fi
620
621
622 # Check whether --enable-libio or --disable-libio was given.
623 if test "${enable_libio+set}" = set; then
624   enableval="$enable_libio"
625   if test $enableval = yes; then
626                  stdio=libio
627                else
628                  stdio=stdio
629                fi
630 else
631   stdio=default
632 fi
633
634
635 # Check whether --enable-shared or --disable-shared was given.
636 if test "${enable_shared+set}" = set; then
637   enableval="$enable_shared"
638   shared=$enableval
639 else
640   shared=default
641 fi
642
643 # Check whether --enable-profile or --disable-profile was given.
644 if test "${enable_profile+set}" = set; then
645   enableval="$enable_profile"
646   profile=$enableval
647 else
648   profile=yes
649 fi
650
651 # Check whether --enable-omitfp or --disable-omitfp was given.
652 if test "${enable_omitfp+set}" = set; then
653   enableval="$enable_omitfp"
654   omitfp=$enableval
655 else
656   omitfp=no
657 fi
658
659
660 ac_aux_dir=
661 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
662   if test -f $ac_dir/install-sh; then
663     ac_aux_dir=$ac_dir
664     ac_install_sh="$ac_aux_dir/install-sh -c"
665     break
666   elif test -f $ac_dir/install.sh; then
667     ac_aux_dir=$ac_dir
668     ac_install_sh="$ac_aux_dir/install.sh -c"
669     break
670   fi
671 done
672 if test -z "$ac_aux_dir"; then
673   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
674 fi
675 ac_config_guess=$ac_aux_dir/config.guess
676 ac_config_sub=$ac_aux_dir/config.sub
677 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
678
679
680 # Make sure we can run config.sub.
681 if $ac_config_sub sun4 >/dev/null 2>&1; then :
682 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
683 fi
684
685 echo $ac_n "checking host system type""... $ac_c" 1>&6
686
687 host_alias=$host
688 case "$host_alias" in
689 NONE)
690   case $nonopt in
691   NONE)
692     if host_alias=`$ac_config_guess`; then :
693     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
694     fi ;;
695   *) host_alias=$nonopt ;;
696   esac ;;
697 esac
698
699 host=`$ac_config_sub $host_alias`
700 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
701 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
702 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
703 echo "$ac_t""$host" 1>&6
704
705 # We keep the original values in `$config_*' and never modify them, so we
706 # can write them unchanged into config.make.  Everything else uses
707 # $machine, $vendor, and $os, and changes them whenever convenient.
708 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
709
710 # Some configurations imply other options.
711 case "$host_os" in
712 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
713   # These systems always use GNU tools.
714   gnu_ld=yes gnu_as=yes ;;
715 esac
716 case "$host_os" in
717 gnu* | linux* | sysv4* | solaris2*)
718   # These systems always use the ELF format.
719   elf=yes ;;
720 esac
721
722 # Linux/Alpha does not use ELF yet.
723 case "$host_cpu-$host_os" in
724 alpha*-linux*)
725   gnu_ld=no elf=no ;;
726 esac
727
728 machine=$config_machine
729 vendor=$config_vendor
730 os=$config_os
731
732 # Expand the configuration machine name into a subdirectory by architecture
733 # type and particular chip.
734 case "$machine" in
735 a29k | am29000) base_machine=a29k machine=a29k ;;
736 alpha*)         base_machine=alpha machine=alpha/$machine ;;
737 hppa*)          base_machine=hppa machine=hppa/$machine ;;
738 i[345]86)       base_machine=i386 machine=i386/$machine ;;
739 m680?0)         base_machine=m68k machine=m68k/$machine ;;
740 m68k)           base_machine=m68k machine=m68k/m68020 ;;
741 m88???)         base_machine=m88k machine=m88k/$machine ;;
742 m88k)           base_machine=m88k machine=m88k/m88100 ;;
743 mips*)          base_machine=mips machine=mips/$machine ;;
744 mips64*)        base_machine=mips64 machine=mips/mips64/$machine ;;
745 sparc[6789])    base_machine=sparc machine=sparc/$machine ;;
746 supersparc)     base_machine=sparc machine=sparc/sparc8 ;;
747 esac
748
749
750 # Compute the list of sysdep directories for this configuration.
751 sysdep_dir=$srcdir/sysdeps
752 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
753 if eval "test \"`echo '$''{'libc_cv_sysdirs'+set}'`\" = set"; then
754   echo $ac_n "(cached) $ac_c" 1>&6
755 else
756   # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
757 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
758
759 case "$os" in
760 gnu*)
761   base_os=mach/hurd ;;
762 netbsd* | 386bsd* | freebsd* | bsdi*)
763   base_os=unix/bsd/bsd4.4 ;;
764 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
765   base_os=unix/bsd ;;
766 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
767   base_os=unix/sysv ;;
768 solaris[2-9]*)
769   base_os=unix/sysv/sysv4 ;;
770 none)
771   base_os=standalone ;;
772 *)
773   base_os='' ;;
774 esac
775
776 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
777 tail=$os
778 ostry=$os
779 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
780   ostry="$ostry /$o"
781   tail=$o
782 done
783 o=`echo $tail | sed 's/[0-9]*$//'`
784 if test $o != $tail; then
785   ostry="$ostry /$o"
786 fi
787
788 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
789 base=
790 tail=$base_os
791 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
792   set $b
793   base="$base /$1"
794   tail="$2"
795 done
796
797 # For sparc/sparc9, try sparc/sparc9 and then sparc.
798 mach=
799 tail=$machine
800 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
801   set $m
802   # Prepend the machine's FPU directory unless --without-fp.
803   if test "$with_fp" = yes; then
804     mach="$mach /$1/fpu"
805   fi
806   mach="$mach /$1"
807   tail="$2"
808 done
809
810
811 # Find what sysdep directories exist.
812 sysnames=
813 for b in $base ''; do
814   for m0 in $mach ''; do
815     for v in /$vendor ''; do
816       for o in /$ostry ''; do
817         for m in $mach ''; do
818           try="$m0$b$v$o$m"
819           test -n "$enable_debug_configure" && echo "$0 DEBUG: try $try" >&2
820           if test -d $sysdep_dir$try; then
821             sysnames="$sysnames $try"
822             { test -n "$o" || test -n "$b"; } && os_used=t
823             { test -n "$m" || test -n "$m0"; } && machine_used=t
824           fi
825         done
826       done
827     done
828   done
829 done
830
831 if test -z "$os_used" && test "$os" != none; then
832   { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
833 fi
834 if test -z "$machine_used" && test "$machine" != none; then
835   { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
836 fi
837
838 # We have now validated the configuration.
839
840
841 # If using ELF, look for an `elf' subdirectory of each machine directory.
842 # We prepend these rather than inserting them whereever the machine appears
843 # because things specified by the machine's ELF ABI should override
844 # OS-specific things, and should always be the same for any OS on the
845 # machine (otherwise what's the point of an ABI?).
846 if test "$elf" = yes; then
847   elf_dirs=
848   for m in $mach; do
849     if test -d $sysdep_dir$m/elf; then
850       elf_dirs="$elf_dirs $m/elf"
851     fi
852   done
853   sysnames="`echo $elf_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
854 fi
855
856
857 # Remove the leading slashes.
858 sysnames="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
859
860
861 # Expand the list of system names into a full list of directories
862 # from each element's parent name and Implies file (if present).
863 set $sysnames
864 while test $# -gt 0; do
865   name=$1
866   shift
867
868   if test -f $sysdep_dir/$name/Implies; then
869     # Collect more names from the `Implies' file (removing comments).
870     implied="`sed 's/#.*$//' < $sysdep_dir/$name/Implies`"
871     for x in $implied; do
872       test -d $sysdep_dir/$x || echo "Warning: $name implies nonexistent $x">&2
873     done
874   else
875     implied=
876   fi
877
878   # Add NAME to the list of names.
879   names="$names $name"
880
881   # Find the parent of NAME, using the empty string if it has none.
882   parent="`echo $name | sed -n -e '/\//!q' -e 's=/[^/]*$==p'`"
883
884   # Add the names implied by NAME, and NAME's parent (if it has one), to
885   # the list of names to be processed (the argument list).  We prepend the
886   # implied names to the list and append the parent.  We want implied
887   # directories to come before further directories inferred from the
888   # configuration components; this ensures that for sysv4, unix/common
889   # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
890   # after sysv4).
891   sysnames="`echo $implied $* $parent`"
892   test -n "$sysnames" && set $sysnames
893 done
894
895 # Add the default directories.
896 names="$names generic stub"
897
898 # Now uniquize the list.
899 seen=
900 sysnames=
901 for name in $names; do
902   if echo "$seen" | fgrep -x $name >/dev/null; then
903     # Already in the list.
904     true;
905   else
906     # A new one.
907     if test -z "$seen"; then
908       seen="$name" sysnames="$name"
909     else
910       seen="$seen
911 $name"
912       sysnames="$sysnames $name"
913     fi
914   fi
915 done
916 libc_cv_sysdirs="$sysnames"
917 fi
918
919 echo "$ac_t""$libc_cv_sysdirs" 1>&6
920  sysnames="$libc_cv_sysdirs"
921
922 # Find a good install program.  We prefer a C program (faster),
923 # so one script is as good as another.  But avoid the broken or
924 # incompatible versions:
925 # SysV /etc/install, /usr/sbin/install
926 # SunOS /usr/etc/install
927 # IRIX /sbin/install
928 # AIX /bin/install
929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
931 # ./install, which can be erroneously created by make from ./install.sh.
932 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
933 if test -z "$INSTALL"; then
934 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
935   echo $ac_n "(cached) $ac_c" 1>&6
936 else
937     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
938   for ac_dir in $PATH; do
939     # Account for people who put trailing slashes in PATH elements.
940     case "$ac_dir/" in
941     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
942     *)
943       # OSF1 and SCO ODT 3.0 have their own names for install.
944       for ac_prog in ginstall installbsd scoinst install; do
945         if test -f $ac_dir/$ac_prog; then
946           if test $ac_prog = install &&
947             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
948             # AIX install.  It has an incompatible calling convention.
949             # OSF/1 installbsd also uses dspmsg, but is usable.
950             :
951           else
952             ac_cv_path_install="$ac_dir/$ac_prog -c"
953             break 2
954           fi
955         fi
956       done
957       ;;
958     esac
959   done
960   IFS="$ac_save_ifs"
961
962 fi
963   if test "${ac_cv_path_install+set}" = set; then
964     INSTALL="$ac_cv_path_install"
965   else
966     # As a last resort, use the slow shell script.  We don't cache a
967     # path for INSTALL within a source directory, because that will
968     # break other packages using the cache if that directory is
969     # removed, or if the path is relative.
970     INSTALL="$ac_install_sh"
971   fi
972 fi
973 echo "$ac_t""$INSTALL" 1>&6
974
975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
976 # It thinks the first close brace ends the variable substitution.
977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
978
979 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
980
981 if test "$INSTALL" = "${srcdir}/install-sh"; then
982   # The makefiles need to use a different form to find it in $srcdir.
983   INSTALL='$(..)./install-sh'
984 fi
985 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
986 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
987   echo $ac_n "(cached) $ac_c" 1>&6
988 else
989   rm -f conftestdata
990 if ln -s X conftestdata 2>/dev/null
991 then
992   rm -f conftestdata
993   ac_cv_prog_LN_S="ln -s"
994 else
995   ac_cv_prog_LN_S=ln
996 fi
997 fi
998 LN_S="$ac_cv_prog_LN_S"
999 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1000   echo "$ac_t""yes" 1>&6
1001 else
1002   echo "$ac_t""no" 1>&6
1003 fi
1004
1005 for ac_prog in msgfmt gmsgfmt
1006 do
1007 # Extract the first word of "$ac_prog", so it can be a program name with args.
1008 set dummy $ac_prog; ac_word=$2
1009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1010 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1011   echo $ac_n "(cached) $ac_c" 1>&6
1012 else
1013   if test -n "$MSGFMT"; then
1014   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1015 else
1016   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1017   for ac_dir in $PATH; do
1018     test -z "$ac_dir" && ac_dir=.
1019     if test -f $ac_dir/$ac_word; then
1020       ac_cv_prog_MSGFMT="$ac_prog"
1021       break
1022     fi
1023   done
1024   IFS="$ac_save_ifs"
1025 fi
1026 fi
1027 MSGFMT="$ac_cv_prog_MSGFMT"
1028 if test -n "$MSGFMT"; then
1029   echo "$ac_t""$MSGFMT" 1>&6
1030 else
1031   echo "$ac_t""no" 1>&6
1032 fi
1033
1034 test -n "$MSGFMT" && break
1035 done
1036 test -n "$MSGFMT" || MSGFMT=":"
1037
1038
1039 echo $ac_n "checking build system type""... $ac_c" 1>&6
1040
1041 build_alias=$build
1042 case "$build_alias" in
1043 NONE)
1044   case $nonopt in
1045   NONE) build_alias=$host_alias ;;
1046   *) build_alias=$nonopt ;;
1047   esac ;;
1048 esac
1049
1050 build=`$ac_config_sub $build_alias`
1051 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1052 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1053 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1054 echo "$ac_t""$build" 1>&6
1055
1056 if test $host != $build; then
1057   ac_tool_prefix=${host_alias}-
1058 else
1059   ac_tool_prefix=
1060 fi
1061
1062 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1063 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1066   echo $ac_n "(cached) $ac_c" 1>&6
1067 else
1068   if test -n "$CC"; then
1069   ac_cv_prog_CC="$CC" # Let the user override the test.
1070 else
1071   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1072   for ac_dir in $PATH; do
1073     test -z "$ac_dir" && ac_dir=.
1074     if test -f $ac_dir/$ac_word; then
1075       ac_cv_prog_CC="${ac_tool_prefix}gcc"
1076       break
1077     fi
1078   done
1079   IFS="$ac_save_ifs"
1080   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
1081 fi
1082 fi
1083 CC="$ac_cv_prog_CC"
1084 if test -n "$CC"; then
1085   echo "$ac_t""$CC" 1>&6
1086 else
1087   echo "$ac_t""no" 1>&6
1088 fi
1089
1090
1091
1092 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1093 # On Suns, sometimes $CPP names a directory.
1094 if test -n "$CPP" && test -d "$CPP"; then
1095   CPP=
1096 fi
1097 if test -z "$CPP"; then
1098 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1099   echo $ac_n "(cached) $ac_c" 1>&6
1100 else
1101     # This must be in double quotes, not single quotes, because CPP may get
1102   # substituted into the Makefile and "${CC-cc}" will confuse make.
1103   CPP="${CC-cc} -E"
1104   # On the NeXT, cc -E runs the code through the compiler's parser,
1105   # not just through cpp.
1106   cat > conftest.$ac_ext <<EOF
1107 #line 1108 "configure"
1108 #include "confdefs.h"
1109 #include <assert.h>
1110 Syntax Error
1111 EOF
1112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1113 { (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1114 ac_err=`grep -v '^ *+' conftest.out`
1115 if test -z "$ac_err"; then
1116   :
1117 else
1118   echo "$ac_err" >&5
1119   rm -rf conftest*
1120   CPP="${CC-cc} -E -traditional-cpp"
1121   cat > conftest.$ac_ext <<EOF
1122 #line 1123 "configure"
1123 #include "confdefs.h"
1124 #include <assert.h>
1125 Syntax Error
1126 EOF
1127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1128 { (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1129 ac_err=`grep -v '^ *+' conftest.out`
1130 if test -z "$ac_err"; then
1131   :
1132 else
1133   echo "$ac_err" >&5
1134   rm -rf conftest*
1135   CPP=/lib/cpp
1136 fi
1137 rm -f conftest*
1138 fi
1139 rm -f conftest*
1140   ac_cv_prog_CPP="$CPP"
1141 fi
1142   CPP="$ac_cv_prog_CPP"
1143 else
1144   ac_cv_prog_CPP="$CPP"
1145 fi
1146 echo "$ac_t""$CPP" 1>&6
1147
1148 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1149 set dummy ${ac_tool_prefix}ar; ac_word=$2
1150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1151 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1152   echo $ac_n "(cached) $ac_c" 1>&6
1153 else
1154   if test -n "$AR"; then
1155   ac_cv_prog_AR="$AR" # Let the user override the test.
1156 else
1157   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1158   for ac_dir in $PATH; do
1159     test -z "$ac_dir" && ac_dir=.
1160     if test -f $ac_dir/$ac_word; then
1161       ac_cv_prog_AR="${ac_tool_prefix}ar"
1162       break
1163     fi
1164   done
1165   IFS="$ac_save_ifs"
1166   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1167 fi
1168 fi
1169 AR="$ac_cv_prog_AR"
1170 if test -n "$AR"; then
1171   echo "$ac_t""$AR" 1>&6
1172 else
1173   echo "$ac_t""no" 1>&6
1174 fi
1175
1176
1177
1178 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1179 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1181 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1182   echo $ac_n "(cached) $ac_c" 1>&6
1183 else
1184   if test -n "$RANLIB"; then
1185   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1186 else
1187   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1188   for ac_dir in $PATH; do
1189     test -z "$ac_dir" && ac_dir=.
1190     if test -f $ac_dir/$ac_word; then
1191       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1192       break
1193     fi
1194   done
1195   IFS="$ac_save_ifs"
1196 fi
1197 fi
1198 RANLIB="$ac_cv_prog_RANLIB"
1199 if test -n "$RANLIB"; then
1200   echo "$ac_t""$RANLIB" 1>&6
1201 else
1202   echo "$ac_t""no" 1>&6
1203 fi
1204
1205
1206 if test -z "$ac_cv_prog_RANLIB"; then
1207 if test -n "$ac_tool_prefix"; then
1208   # Extract the first word of "ranlib", so it can be a program name with args.
1209 set dummy ranlib; ac_word=$2
1210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1211 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1212   echo $ac_n "(cached) $ac_c" 1>&6
1213 else
1214   if test -n "$RANLIB"; then
1215   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1216 else
1217   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1218   for ac_dir in $PATH; do
1219     test -z "$ac_dir" && ac_dir=.
1220     if test -f $ac_dir/$ac_word; then
1221       ac_cv_prog_RANLIB="ranlib"
1222       break
1223     fi
1224   done
1225   IFS="$ac_save_ifs"
1226   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1227 fi
1228 fi
1229 RANLIB="$ac_cv_prog_RANLIB"
1230 if test -n "$RANLIB"; then
1231   echo "$ac_t""$RANLIB" 1>&6
1232 else
1233   echo "$ac_t""no" 1>&6
1234 fi
1235
1236 else
1237   RANLIB=":"
1238 fi
1239 fi
1240
1241 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
1242 set dummy ${ac_tool_prefix}objdump; ac_word=$2
1243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1244 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
1245   echo $ac_n "(cached) $ac_c" 1>&6
1246 else
1247   if test -n "$OBJDUMP"; then
1248   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1249 else
1250   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1251   for ac_dir in $PATH; do
1252     test -z "$ac_dir" && ac_dir=.
1253     if test -f $ac_dir/$ac_word; then
1254       ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1255       break
1256     fi
1257   done
1258   IFS="$ac_save_ifs"
1259   test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="objdump"
1260 fi
1261 fi
1262 OBJDUMP="$ac_cv_prog_OBJDUMP"
1263 if test -n "$OBJDUMP"; then
1264   echo "$ac_t""$OBJDUMP" 1>&6
1265 else
1266   echo "$ac_t""no" 1>&6
1267 fi
1268
1269
1270
1271 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
1272 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
1273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1274 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
1275   echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277   if test -n "$OBJCOPY"; then
1278   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
1279 else
1280   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1281   for ac_dir in $PATH; do
1282     test -z "$ac_dir" && ac_dir=.
1283     if test -f $ac_dir/$ac_word; then
1284       ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
1285       break
1286     fi
1287   done
1288   IFS="$ac_save_ifs"
1289   test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="objcopy"
1290 fi
1291 fi
1292 OBJCOPY="$ac_cv_prog_OBJCOPY"
1293 if test -n "$OBJCOPY"; then
1294   echo "$ac_t""$OBJCOPY" 1>&6
1295 else
1296   echo "$ac_t""no" 1>&6
1297 fi
1298
1299
1300
1301 for ac_prog in mawk gawk nawk awk
1302 do
1303 # Extract the first word of "$ac_prog", so it can be a program name with args.
1304 set dummy $ac_prog; ac_word=$2
1305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1306 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1307   echo $ac_n "(cached) $ac_c" 1>&6
1308 else
1309   if test -n "$AWK"; then
1310   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1311 else
1312   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1313   for ac_dir in $PATH; do
1314     test -z "$ac_dir" && ac_dir=.
1315     if test -f $ac_dir/$ac_word; then
1316       ac_cv_prog_AWK="$ac_prog"
1317       break
1318     fi
1319   done
1320   IFS="$ac_save_ifs"
1321 fi
1322 fi
1323 AWK="$ac_cv_prog_AWK"
1324 if test -n "$AWK"; then
1325   echo "$ac_t""$AWK" 1>&6
1326 else
1327   echo "$ac_t""no" 1>&6
1328 fi
1329
1330 test -n "$AWK" && break
1331 done
1332
1333
1334 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1335 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1336   echo $ac_n "(cached) $ac_c" 1>&6
1337 else
1338   echo '#include <stddef.h>
1339 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1340 if eval "$ac_cpp conftest.c 2>/dev/null" \
1341 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1342   libc_cv_signed_size_t=no
1343 else
1344   libc_cv_signed_size_t=yes
1345 fi
1346 rm -f conftest*
1347 fi
1348
1349 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1350 if test $libc_cv_signed_size_t = yes; then
1351     cat >> confdefs.h <<\EOF
1352 #undef __SIZE_TYPE__
1353 #define __SIZE_TYPE__ unsigned
1354 EOF
1355 fi
1356
1357 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1358 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1359   echo $ac_n "(cached) $ac_c" 1>&6
1360 else
1361   cat > conftest.$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1364 #define __need_size_t
1365 #define __need_wchar_t
1366 #include <stddef.h>
1367 #define __need_NULL
1368 #include <stddef.h>
1369 int main() { return 0; }
1370 int t() {
1371 size_t size; wchar_t wchar;
1372 #ifdef offsetof
1373 #error stddef.h ignored __need_*
1374 #endif
1375 if (&size == NULL || &wchar == NULL) abort ();
1376 ; return 0; }
1377 EOF
1378 if { (eval echo configure:1379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1379   rm -rf conftest*
1380   libc_cv_friendly_stddef=yes
1381 else
1382   rm -rf conftest*
1383   libc_cv_friendly_stddef=no
1384 fi
1385 rm -f conftest*
1386
1387 fi
1388
1389 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1390 if test $libc_cv_friendly_stddef = yes; then
1391   config_vars="$config_vars
1392 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1393 fi
1394
1395 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1396 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1397   echo $ac_n "(cached) $ac_c" 1>&6
1398 else
1399   cat > conftest.S <<EOF
1400 #include "confdefs.h"
1401 /* Nothing whatsoever.  */
1402 EOF
1403 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1404   libc_cv_need_minus_P=no
1405 else
1406   libc_cv_need_minus_P=yes
1407 fi
1408 rm -f conftest*
1409 fi
1410
1411 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1412 if test $libc_cv_need_minus_P = yes; then
1413   config_vars="$config_vars
1414 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1415 fi
1416
1417 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1418 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1419   echo $ac_n "(cached) $ac_c" 1>&6
1420 else
1421   libc_cv_asm_global_directive=UNKNOWN
1422 for ac_globl in .globl .global; do
1423   cat > conftest.s <<EOF
1424 .text
1425 ${ac_globl} foo
1426 foo: .long 0
1427 EOF
1428   if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1429     libc_cv_asm_global_directive=${ac_globl}
1430   fi
1431   rm -f conftest*
1432   test $libc_cv_asm_global_directive != UNKNOWN && break
1433 done
1434 fi
1435
1436 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1437 if test $libc_cv_asm_global_directive = UNKNOWN; then
1438   { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1439 else
1440   cat >> confdefs.h <<EOF
1441 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1442 EOF
1443
1444 fi
1445
1446 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1447 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1448   echo $ac_n "(cached) $ac_c" 1>&6
1449 else
1450   cat > conftest.s <<EOF
1451 .text
1452 foo: .long 0
1453 .set glibc_conftest_frobozz,foo
1454 $libc_cv_asm_global_directive glibc_conftest_frobozz
1455 EOF
1456 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1457 # (but it doesn't work), so we must do a linking check to be sure.
1458 cat > conftest1.c <<\EOF
1459 extern int glibc_conftest_frobozz;
1460 main () { printf ("%d\n", glibc_conftest_frobozz); }
1461 EOF
1462 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1463             -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1464   libc_cv_asm_set_directive=yes
1465 else
1466   libc_cv_asm_set_directive=no
1467 fi
1468 rm -f conftest*
1469 fi
1470
1471 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1472 if test $libc_cv_asm_set_directive = yes; then
1473   cat >> confdefs.h <<\EOF
1474 #define HAVE_ASM_SET_DIRECTIVE 1
1475 EOF
1476
1477 fi
1478
1479 if test $elf != yes; then
1480   echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1481 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1482   echo $ac_n "(cached) $ac_c" 1>&6
1483 else
1484   cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1487
1488 int main() { return 0; }
1489 int t() {
1490 asm (".section .init");
1491                                     asm (".section .fini");
1492 ; return 0; }
1493 EOF
1494 if { (eval echo configure:1495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1495   rm -rf conftest*
1496   libc_cv_have_initfini=yes
1497 else
1498   rm -rf conftest*
1499   libc_cv_have_initfini=no
1500 fi
1501 rm -f conftest*
1502
1503 fi
1504
1505 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1506     if test $libc_cv_have_initfini = yes; then
1507     cat >> confdefs.h <<\EOF
1508 #define HAVE_INITFINI 1
1509 EOF
1510
1511   fi
1512 fi
1513
1514 if test $elf = yes; then
1515   libc_cv_asm_underscores=no
1516 else
1517   echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1518 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1519   echo $ac_n "(cached) $ac_c" 1>&6
1520 else
1521   cat > conftest.$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1524 asm ("_glibc_foobar:");
1525 int main() { return 0; }
1526 int t() {
1527 glibc_foobar ();
1528 ; return 0; }
1529 EOF
1530 if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1531   rm -rf conftest*
1532   libc_cv_asm_underscores=yes
1533 else
1534   rm -rf conftest*
1535   libc_cv_asm_underscores=no
1536 fi
1537 rm -f conftest*
1538
1539 fi
1540
1541 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1542 fi
1543 if test $libc_cv_asm_underscores = no; then
1544   cat >> confdefs.h <<\EOF
1545 #define NO_UNDERSCORES 1
1546 EOF
1547
1548 fi
1549
1550 if test $elf = yes; then
1551   libc_cv_weak_symbols=yes
1552   libc_cv_asm_weak_directive=yes
1553   libc_cv_asm_weakext_directive=no
1554 else
1555   echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1556 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1557   echo $ac_n "(cached) $ac_c" 1>&6
1558 else
1559   cat > conftest.s <<EOF
1560 .text
1561 ${libc_cv_asm_global_directive} foo
1562 foo: .long 0
1563 .weak foo
1564 .weak bar; bar = foo
1565 EOF
1566   if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1567     libc_cv_asm_weak_directive=yes
1568   else
1569     libc_cv_asm_weak_directive=no
1570   fi
1571   rm -f conftest*
1572 fi
1573
1574 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1575
1576 if test $libc_cv_asm_weak_directive = no; then
1577   echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1578 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1579   echo $ac_n "(cached) $ac_c" 1>&6
1580 else
1581   cat > conftest.s <<EOF
1582 .text
1583 ${libc_cv_asm_global_directive} foo
1584 foo: .long 0
1585 .weakext foo
1586 .weakext bar, foo
1587 EOF
1588   if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1589     libc_cv_asm_weakext_directive=yes
1590   else
1591     libc_cv_asm_weakext_directive=no
1592   fi
1593   rm -f conftest*
1594 fi
1595
1596 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
1597
1598   fi # no .weak
1599 fi # not ELF
1600
1601 if test $libc_cv_asm_weak_directive = yes; then
1602   cat >> confdefs.h <<\EOF
1603 #define HAVE_ASM_WEAK_DIRECTIVE 1
1604 EOF
1605
1606 elif test $libc_cv_asm_weakext_directive = yes; then
1607   cat >> confdefs.h <<\EOF
1608 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
1609 EOF
1610
1611 fi
1612
1613 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
1614 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
1615   echo $ac_n "(cached) $ac_c" 1>&6
1616 else
1617   cat > conftest.c <<\EOF
1618 main () { exit (0); }
1619 EOF
1620 if ${CC-cc} $CFLAGS -Wl,--no-whole-archive \
1621             -o conftest conftest.c 2>/dev/null; then
1622   libc_cv_ld_no_whole_archive=yes
1623 else
1624   libc_cv_ld_no_whole_archive=no
1625 fi
1626 rm -f conftest*
1627 fi
1628
1629 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
1630
1631 ### End of automated tests.
1632 ### Now run sysdeps configure fragments.
1633
1634 # sysdeps configure fragments may set these with files to be linked below.
1635 libc_link_dests=
1636 libc_link_sources=
1637
1638 # Iterate over all the sysdep directories we will use, running their
1639 # configure fragments, and looking for a uname implementation.
1640 uname=
1641 for dir in $sysnames; do
1642   if test -r $sysdep_dir/$dir/configure; then
1643     echo "$ac_t""running configure fragment for $dir" 1>&6
1644     . $sysdep_dir/$dir/configure
1645   fi
1646
1647   if test -z "$uname"; then
1648     if test -r $sysdep_dir/$dir/uname.c ||
1649        test -r $sysdep_dir/$dir/uname.S ||
1650        { test -r $sysdep_dir/$dir/syscalls.list &&
1651          grep '^uname[  ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then
1652       uname=$dir
1653     fi
1654   fi
1655 done
1656
1657
1658
1659 # If we will use the generic uname implementation, we must figure out what
1660 # it will say by examining the system, and write the results in config-name.h.
1661 if test "$uname" = generic; then
1662
1663   uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1664   if test $uname_sysname != $config_os; then
1665     config_release=`echo $config_os | sed s/$uname_sysname//`
1666   fi
1667
1668   echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
1669 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1670   echo $ac_n "(cached) $ac_c" 1>&6
1671 else
1672     kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1673   if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1674          != x$config_release; then
1675     # The configuration release is a substring of the kernel release.
1676     libc_cv_uname_release=$kernel_release
1677   elif test x$config_release != x; then
1678     libc_cv_uname_release=$config_release
1679   elif test x$kernel_release != x; then
1680     libc_cv_uname_release=$kernel_release
1681   else
1682     libc_cv_uname_release=unknown
1683   fi
1684 fi
1685
1686 echo "$ac_t""$libc_cv_uname_release" 1>&6
1687   uname_release="$libc_cv_uname_release"
1688
1689   echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
1690 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1691   echo $ac_n "(cached) $ac_c" 1>&6
1692 else
1693     kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1694   if test -n "$kernel_version"; then
1695     libc_cv_uname_version="$kernel_version"
1696   else
1697     libc_cv_uname_version=unknown
1698   fi
1699 fi
1700
1701 echo "$ac_t""$libc_cv_uname_version" 1>&6
1702   uname_version="$libc_cv_uname_version"
1703
1704     config_uname=config-name.h:config-name.in
1705 else
1706   # For non-generic uname, we don't need to create config-name.h at all.
1707   config_uname=
1708 fi
1709
1710 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
1711
1712 case $stdio in
1713 libio) cat >> confdefs.h <<\EOF
1714 #define USE_IN_LIBIO 1
1715 EOF
1716  ;;
1717 default) stdio=stdio ;;
1718 esac
1719 echo "$ac_t""$stdio" 1>&6
1720
1721   
1722 if test $gnu_ld = yes; then
1723   cat >> confdefs.h <<\EOF
1724 #define HAVE_GNU_LD 1
1725 EOF
1726
1727 fi
1728 if test $gnu_as = yes; then
1729   cat >> confdefs.h <<\EOF
1730 #define HAVE_GNU_AS 1
1731 EOF
1732
1733 fi
1734 if test $elf = yes; then
1735   cat >> confdefs.h <<\EOF
1736 #define HAVE_ELF 1
1737 EOF
1738
1739 fi
1740
1741
1742 if test $shared = default; then
1743   if test $gnu_ld = yes; then
1744     shared=$elf
1745   fi
1746 fi
1747
1748
1749
1750 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1751   config_makefile=
1752 else
1753   config_makefile=Makefile
1754 fi
1755
1756 trap '' 1 2 15
1757 cat > confcache <<\EOF
1758 # This file is a shell script that caches the results of configure
1759 # tests run on this system so they can be shared between configure
1760 # scripts and configure runs.  It is not useful on other systems.
1761 # If it contains results you don't want to keep, you may remove or edit it.
1762 #
1763 # By default, configure uses ./config.cache as the cache file,
1764 # creating it if it does not exist already.  You can give configure
1765 # the --cache-file=FILE option to use a different cache file; that is
1766 # what configure does when it calls configure scripts in
1767 # subdirectories, so they share the cache.
1768 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1769 # config.status only pays attention to the cache file if you give it the
1770 # --recheck option to rerun configure.
1771 #
1772 EOF
1773 # Ultrix sh set writes to stderr and can't be redirected directly,
1774 # and sets the high bit in the cache file unless we assign to the vars.
1775 (set) 2>&1 |
1776   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1777   >> confcache
1778 if cmp -s $cache_file confcache; then
1779   :
1780 else
1781   if test -w $cache_file; then
1782     echo "updating cache $cache_file"
1783     cat confcache > $cache_file
1784   else
1785     echo "not updating unwritable cache $cache_file"
1786   fi
1787 fi
1788 rm -f confcache
1789
1790 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1791
1792 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1793 # Let make expand exec_prefix.
1794 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1795
1796 # Any assignment to VPATH causes Sun make to only execute
1797 # the first set of double-colon rules, so remove it if not needed.
1798 # If there is a colon in the path, we need to keep it.
1799 if test "x$srcdir" = x.; then
1800   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1801 fi
1802
1803 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1804
1805 DEFS=-DHAVE_CONFIG_H
1806
1807 # Without the "./", some shells look in PATH for config.status.
1808 : ${CONFIG_STATUS=./config.status}
1809
1810 echo creating $CONFIG_STATUS
1811 rm -f $CONFIG_STATUS
1812 cat > $CONFIG_STATUS <<EOF
1813 #! /bin/sh
1814 # Generated automatically by configure.
1815 # Run this file to recreate the current configuration.
1816 # This directory was configured as follows,
1817 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1818 #
1819 # $0 $ac_configure_args
1820 #
1821 # Compiler output produced by configure, useful for debugging
1822 # configure, is in ./config.log if it exists.
1823
1824 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1825 for ac_option
1826 do
1827   case "\$ac_option" in
1828   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1829     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1830     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1831   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1832     echo "$CONFIG_STATUS generated by autoconf version 2.10"
1833     exit 0 ;;
1834   -help | --help | --hel | --he | --h)
1835     echo "\$ac_cs_usage"; exit 0 ;;
1836   *) echo "\$ac_cs_usage"; exit 1 ;;
1837   esac
1838 done
1839
1840 ac_given_srcdir=$srcdir
1841 ac_given_INSTALL="$INSTALL"
1842
1843 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1844 EOF
1845 cat >> $CONFIG_STATUS <<EOF
1846
1847 # Protect against being on the right side of a sed subst in config.status.
1848 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1849  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1850 $ac_vpsub
1851 $extrasub
1852 s%@CFLAGS@%$CFLAGS%g
1853 s%@CPPFLAGS@%$CPPFLAGS%g
1854 s%@CXXFLAGS@%$CXXFLAGS%g
1855 s%@DEFS@%$DEFS%g
1856 s%@LDFLAGS@%$LDFLAGS%g
1857 s%@LIBS@%$LIBS%g
1858 s%@exec_prefix@%$exec_prefix%g
1859 s%@prefix@%$prefix%g
1860 s%@program_transform_name@%$program_transform_name%g
1861 s%@bindir@%$bindir%g
1862 s%@sbindir@%$sbindir%g
1863 s%@libexecdir@%$libexecdir%g
1864 s%@datadir@%$datadir%g
1865 s%@sysconfdir@%$sysconfdir%g
1866 s%@sharedstatedir@%$sharedstatedir%g
1867 s%@localstatedir@%$localstatedir%g
1868 s%@libdir@%$libdir%g
1869 s%@includedir@%$includedir%g
1870 s%@oldincludedir@%$oldincludedir%g
1871 s%@infodir@%$infodir%g
1872 s%@mandir@%$mandir%g
1873 s%@host@%$host%g
1874 s%@host_alias@%$host_alias%g
1875 s%@host_cpu@%$host_cpu%g
1876 s%@host_vendor@%$host_vendor%g
1877 s%@host_os@%$host_os%g
1878 s%@base_machine@%$base_machine%g
1879 s%@sysnames@%$sysnames%g
1880 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1881 s%@INSTALL_DATA@%$INSTALL_DATA%g
1882 s%@LN_S@%$LN_S%g
1883 s%@MSGFMT@%$MSGFMT%g
1884 s%@build@%$build%g
1885 s%@build_alias@%$build_alias%g
1886 s%@build_cpu@%$build_cpu%g
1887 s%@build_vendor@%$build_vendor%g
1888 s%@build_os@%$build_os%g
1889 s%@CC@%$CC%g
1890 s%@CPP@%$CPP%g
1891 s%@AR@%$AR%g
1892 s%@RANLIB@%$RANLIB%g
1893 s%@OBJDUMP@%$OBJDUMP%g
1894 s%@OBJCOPY@%$OBJCOPY%g
1895 s%@AWK@%$AWK%g
1896 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
1897 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
1898 s%@uname_sysname@%$uname_sysname%g
1899 s%@uname_release@%$uname_release%g
1900 s%@uname_version@%$uname_version%g
1901 s%@stdio@%$stdio%g
1902 s%@gnu_ld@%$gnu_ld%g
1903 s%@gnu_as@%$gnu_as%g
1904 s%@elf@%$elf%g
1905 s%@shared@%$shared%g
1906 s%@profile@%$profile%g
1907 s%@omitfp@%$omitfp%g
1908
1909 CEOF
1910 EOF
1911 cat >> $CONFIG_STATUS <<EOF
1912
1913 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1914 EOF
1915 cat >> $CONFIG_STATUS <<\EOF
1916 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1917   # Support "outfile[:infile]", defaulting infile="outfile.in".
1918   case "$ac_file" in
1919   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1920        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1921   *) ac_file_in="${ac_file}.in" ;;
1922   esac
1923
1924   # Adjust relative srcdir, etc. for subdirectories.
1925
1926   # Remove last slash and all that follows it.  Not all systems have dirname.
1927   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1928   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1929     # The file is in a subdirectory.
1930     test ! -d "$ac_dir" && mkdir "$ac_dir"
1931     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1932     # A "../" for each directory in $ac_dir_suffix.
1933     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1934   else
1935     ac_dir_suffix= ac_dots=
1936   fi
1937
1938   case "$ac_given_srcdir" in
1939   .)  srcdir=.
1940       if test -z "$ac_dots"; then top_srcdir=.
1941       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1942   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1943   *) # Relative path.
1944     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1945     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1946   esac
1947
1948   case "$ac_given_INSTALL" in
1949   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1950   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1951   esac
1952   echo creating "$ac_file"
1953   rm -f "$ac_file"
1954   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1955   case "$ac_file" in
1956   *Makefile*) ac_comsub="1i\\
1957 # $configure_input" ;;
1958   *) ac_comsub= ;;
1959   esac
1960   sed -e "$ac_comsub
1961 s%@configure_input@%$configure_input%g
1962 s%@srcdir@%$srcdir%g
1963 s%@top_srcdir@%$top_srcdir%g
1964 s%@INSTALL@%$INSTALL%g
1965 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1966 fi; done
1967 rm -f conftest.subs
1968
1969 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1970 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1971 #
1972 # ac_d sets the value in "#define NAME VALUE" lines.
1973 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1974 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1975 ac_dC='\3'
1976 ac_dD='%g'
1977 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1978 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1979 ac_uB='\([      ]\)%\1#\2define\3'
1980 ac_uC=' '
1981 ac_uD='\4%g'
1982 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1983 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1984 ac_eB='$%\1#\2define\3'
1985 ac_eC=' '
1986 ac_eD='%g'
1987
1988 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
1989 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1990   # Support "outfile[:infile]", defaulting infile="outfile.in".
1991   case "$ac_file" in
1992   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1993        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1994   *) ac_file_in="${ac_file}.in" ;;
1995   esac
1996
1997   echo creating $ac_file
1998
1999   rm -f conftest.frag conftest.in conftest.out
2000   cp $ac_given_srcdir/$ac_file_in conftest.in
2001
2002 EOF
2003
2004 # Transform confdefs.h into a sed script conftest.vals that substitutes
2005 # the proper values into config.h.in to produce config.h.  And first:
2006 # Protect against being on the right side of a sed subst in config.status.
2007 # Protect against being in an unquoted here document in config.status.
2008 rm -f conftest.vals
2009 cat > conftest.hdr <<\EOF
2010 s/[\\&%]/\\&/g
2011 s%[\\$`]%\\&%g
2012 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2013 s%ac_d%ac_u%gp
2014 s%ac_u%ac_e%gp
2015 EOF
2016 sed -n -f conftest.hdr confdefs.h > conftest.vals
2017 rm -f conftest.hdr
2018
2019 # This sed command replaces #undef with comments.  This is necessary, for
2020 # example, in the case of _POSIX_SOURCE, which is predefined and required
2021 # on some systems where configure will not decide to define it.
2022 cat >> conftest.vals <<\EOF
2023 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2024 EOF
2025
2026 # Break up conftest.vals because some shells have a limit on
2027 # the size of here documents, and old seds have small limits too.
2028 # Maximum number of lines to put in a single here document.
2029 ac_max_here_lines=12
2030
2031 rm -f conftest.tail
2032 while :
2033 do
2034   ac_lines=`grep -c . conftest.vals`
2035   # grep -c gives empty output for an empty file on some AIX systems.
2036   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2037   # Write a limited-size here document to conftest.frag.
2038   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2039   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2040   echo 'CEOF
2041   sed -f conftest.frag conftest.in > conftest.out
2042   rm -f conftest.in
2043   mv conftest.out conftest.in
2044 ' >> $CONFIG_STATUS
2045   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2046   rm -f conftest.vals
2047   mv conftest.tail conftest.vals
2048 done
2049 rm -f conftest.vals
2050
2051 cat >> $CONFIG_STATUS <<\EOF
2052   rm -f conftest.frag conftest.h
2053   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2054   cat conftest.in >> conftest.h
2055   rm -f conftest.in
2056   if cmp -s $ac_file conftest.h 2>/dev/null; then
2057     echo "$ac_file is unchanged"
2058     rm -f conftest.h
2059   else
2060     # Remove last slash and all that follows it.  Not all systems have dirname.
2061       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2062       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2063       # The file is in a subdirectory.
2064       test ! -d "$ac_dir" && mkdir "$ac_dir"
2065     fi
2066     rm -f $ac_file
2067     mv conftest.h $ac_file
2068   fi
2069 fi; done
2070
2071 EOF
2072
2073 cat >> $CONFIG_STATUS <<EOF
2074 ac_sources="`echo $libc_link_sources`"
2075 ac_dests="`echo $libc_link_dests`"
2076 EOF
2077
2078 cat >> $CONFIG_STATUS <<\EOF
2079 srcdir=$ac_given_srcdir
2080 while test -n "$ac_sources"; do
2081   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2082   set $ac_sources; ac_source=$1; shift; ac_sources=$*
2083
2084   echo "linking $srcdir/$ac_source to $ac_dest"
2085
2086   if test ! -r $srcdir/$ac_source; then
2087     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2088   fi
2089   rm -f $ac_dest
2090
2091   # Make relative symlinks.
2092   # Remove last slash and all that follows it.  Not all systems have dirname.
2093   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2094   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2095     # The dest file is in a subdirectory.
2096     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2097     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2098     # A "../" for each directory in $ac_dest_dir_suffix.
2099     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2100   else
2101     ac_dest_dir_suffix= ac_dots=
2102   fi
2103
2104   case "$srcdir" in
2105   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2106   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2107   esac
2108
2109   # Make a symlink if possible; otherwise try a hard link.
2110   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2111     ln $srcdir/$ac_source $ac_dest; then :
2112   else
2113     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2114   fi
2115 done
2116 EOF
2117 cat >> $CONFIG_STATUS <<EOF
2118 echo '$config_vars' >> config.make
2119 EOF
2120 cat >> $CONFIG_STATUS <<\EOF
2121
2122 exit 0
2123 EOF
2124 chmod +x $CONFIG_STATUS
2125 rm -fr confdefs* $ac_clean_files
2126 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2127