OSDN Git Service

Cleanup delete_breakpoint cleanups.
[pf3gnuchains/pf3gnuchains4x.git] / newlib / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib         build many library versions (default)"
16 ac_help="$ac_help
17   --enable-target-optspace  optimize for space"
18 ac_help="$ac_help
19   --enable-newlib-mb        enable multibyte support"
20 ac_help="$ac_help
21   --enable-maintainer-mode enable make rules and dependencies not useful
22                           (and sometimes confusing) to the casual installer"
23 ac_help="$ac_help
24   --enable-newlib-hw-fp    Turn on hardware floating point math"
25
26 # Initialize some variables set by options.
27 # The variables have the same names as the options, with
28 # dashes changed to underlines.
29 build=NONE
30 cache_file=./config.cache
31 exec_prefix=NONE
32 host=NONE
33 no_create=
34 nonopt=NONE
35 no_recursion=
36 prefix=NONE
37 program_prefix=NONE
38 program_suffix=NONE
39 program_transform_name=s,x,x,
40 silent=
41 site=
42 sitefile=
43 srcdir=
44 target=NONE
45 verbose=
46 x_includes=NONE
47 x_libraries=NONE
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
60
61 # Initialize some other variables.
62 subdirs=
63 MFLAGS= MAKEFLAGS=
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
66 ac_max_here_lines=12
67
68 ac_prev=
69 for ac_option
70 do
71
72   # If the previous option needs an argument, assign it.
73   if test -n "$ac_prev"; then
74     eval "$ac_prev=\$ac_option"
75     ac_prev=
76     continue
77   fi
78
79   case "$ac_option" in
80   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81   *) ac_optarg= ;;
82   esac
83
84   # Accept the important Cygnus configure options, so we can diagnose typos.
85
86   case "$ac_option" in
87
88   -bindir | --bindir | --bindi | --bind | --bin | --bi)
89     ac_prev=bindir ;;
90   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91     bindir="$ac_optarg" ;;
92
93   -build | --build | --buil | --bui | --bu)
94     ac_prev=build ;;
95   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96     build="$ac_optarg" ;;
97
98   -cache-file | --cache-file | --cache-fil | --cache-fi \
99   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100     ac_prev=cache_file ;;
101   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103     cache_file="$ac_optarg" ;;
104
105   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106     ac_prev=datadir ;;
107   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108   | --da=*)
109     datadir="$ac_optarg" ;;
110
111   -disable-* | --disable-*)
112     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113     # Reject names that are not valid shell variable names.
114     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116     fi
117     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118     eval "enable_${ac_feature}=no" ;;
119
120   -enable-* | --enable-*)
121     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122     # Reject names that are not valid shell variable names.
123     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125     fi
126     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127     case "$ac_option" in
128       *=*) ;;
129       *) ac_optarg=yes ;;
130     esac
131     eval "enable_${ac_feature}='$ac_optarg'" ;;
132
133   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135   | --exec | --exe | --ex)
136     ac_prev=exec_prefix ;;
137   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139   | --exec=* | --exe=* | --ex=*)
140     exec_prefix="$ac_optarg" ;;
141
142   -gas | --gas | --ga | --g)
143     # Obsolete; use --with-gas.
144     with_gas=yes ;;
145
146   -help | --help | --hel | --he)
147     # Omit some internal or obsolete options to make the list less imposing.
148     # This message is too long to be a string in the A/UX 3.1 sh.
149     cat << EOF
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
152 Configuration:
153   --cache-file=FILE       cache test results in FILE
154   --help                  print this message
155   --no-create             do not create output files
156   --quiet, --silent       do not print \`checking...' messages
157   --site-file=FILE        use FILE as the site file
158   --version               print the version of autoconf that created configure
159 Directory and file names:
160   --prefix=PREFIX         install architecture-independent files in PREFIX
161                           [$ac_default_prefix]
162   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
163                           [same as prefix]
164   --bindir=DIR            user executables in DIR [EPREFIX/bin]
165   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
166   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
167   --datadir=DIR           read-only architecture-independent data in DIR
168                           [PREFIX/share]
169   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
170   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
171                           [PREFIX/com]
172   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
173   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
174   --includedir=DIR        C header files in DIR [PREFIX/include]
175   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
176   --infodir=DIR           info documentation in DIR [PREFIX/info]
177   --mandir=DIR            man documentation in DIR [PREFIX/man]
178   --srcdir=DIR            find the sources in DIR [configure dir or ..]
179   --program-prefix=PREFIX prepend PREFIX to installed program names
180   --program-suffix=SUFFIX append SUFFIX to installed program names
181   --program-transform-name=PROGRAM
182                           run sed PROGRAM on installed program names
183 EOF
184     cat << EOF
185 Host type:
186   --build=BUILD           configure for building on BUILD [BUILD=HOST]
187   --host=HOST             configure for HOST [guessed]
188   --target=TARGET         configure for TARGET [TARGET=HOST]
189 Features and packages:
190   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
191   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
192   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
193   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
194   --x-includes=DIR        X include files are in DIR
195   --x-libraries=DIR       X library files are in DIR
196 EOF
197     if test -n "$ac_help"; then
198       echo "--enable and --with options recognized:$ac_help"
199     fi
200     exit 0 ;;
201
202   -host | --host | --hos | --ho)
203     ac_prev=host ;;
204   -host=* | --host=* | --hos=* | --ho=*)
205     host="$ac_optarg" ;;
206
207   -includedir | --includedir | --includedi | --included | --include \
208   | --includ | --inclu | --incl | --inc)
209     ac_prev=includedir ;;
210   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211   | --includ=* | --inclu=* | --incl=* | --inc=*)
212     includedir="$ac_optarg" ;;
213
214   -infodir | --infodir | --infodi | --infod | --info | --inf)
215     ac_prev=infodir ;;
216   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217     infodir="$ac_optarg" ;;
218
219   -libdir | --libdir | --libdi | --libd)
220     ac_prev=libdir ;;
221   -libdir=* | --libdir=* | --libdi=* | --libd=*)
222     libdir="$ac_optarg" ;;
223
224   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225   | --libexe | --libex | --libe)
226     ac_prev=libexecdir ;;
227   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228   | --libexe=* | --libex=* | --libe=*)
229     libexecdir="$ac_optarg" ;;
230
231   -localstatedir | --localstatedir | --localstatedi | --localstated \
232   | --localstate | --localstat | --localsta | --localst \
233   | --locals | --local | --loca | --loc | --lo)
234     ac_prev=localstatedir ;;
235   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238     localstatedir="$ac_optarg" ;;
239
240   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241     ac_prev=mandir ;;
242   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243     mandir="$ac_optarg" ;;
244
245   -nfp | --nfp | --nf)
246     # Obsolete; use --without-fp.
247     with_fp=no ;;
248
249   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250   | --no-cr | --no-c)
251     no_create=yes ;;
252
253   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255     no_recursion=yes ;;
256
257   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259   | --oldin | --oldi | --old | --ol | --o)
260     ac_prev=oldincludedir ;;
261   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264     oldincludedir="$ac_optarg" ;;
265
266   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267     ac_prev=prefix ;;
268   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269     prefix="$ac_optarg" ;;
270
271   -program-prefix | --program-prefix | --program-prefi | --program-pref \
272   | --program-pre | --program-pr | --program-p)
273     ac_prev=program_prefix ;;
274   -program-prefix=* | --program-prefix=* | --program-prefi=* \
275   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276     program_prefix="$ac_optarg" ;;
277
278   -program-suffix | --program-suffix | --program-suffi | --program-suff \
279   | --program-suf | --program-su | --program-s)
280     ac_prev=program_suffix ;;
281   -program-suffix=* | --program-suffix=* | --program-suffi=* \
282   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283     program_suffix="$ac_optarg" ;;
284
285   -program-transform-name | --program-transform-name \
286   | --program-transform-nam | --program-transform-na \
287   | --program-transform-n | --program-transform- \
288   | --program-transform | --program-transfor \
289   | --program-transfo | --program-transf \
290   | --program-trans | --program-tran \
291   | --progr-tra | --program-tr | --program-t)
292     ac_prev=program_transform_name ;;
293   -program-transform-name=* | --program-transform-name=* \
294   | --program-transform-nam=* | --program-transform-na=* \
295   | --program-transform-n=* | --program-transform-=* \
296   | --program-transform=* | --program-transfor=* \
297   | --program-transfo=* | --program-transf=* \
298   | --program-trans=* | --program-tran=* \
299   | --progr-tra=* | --program-tr=* | --program-t=*)
300     program_transform_name="$ac_optarg" ;;
301
302   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303   | -silent | --silent | --silen | --sile | --sil)
304     silent=yes ;;
305
306   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307     ac_prev=sbindir ;;
308   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309   | --sbi=* | --sb=*)
310     sbindir="$ac_optarg" ;;
311
312   -sharedstatedir | --sharedstatedir | --sharedstatedi \
313   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314   | --sharedst | --shareds | --shared | --share | --shar \
315   | --sha | --sh)
316     ac_prev=sharedstatedir ;;
317   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320   | --sha=* | --sh=*)
321     sharedstatedir="$ac_optarg" ;;
322
323   -site | --site | --sit)
324     ac_prev=site ;;
325   -site=* | --site=* | --sit=*)
326     site="$ac_optarg" ;;
327
328   -site-file | --site-file | --site-fil | --site-fi | --site-f)
329     ac_prev=sitefile ;;
330   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
331     sitefile="$ac_optarg" ;;
332
333   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334     ac_prev=srcdir ;;
335   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336     srcdir="$ac_optarg" ;;
337
338   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339   | --syscon | --sysco | --sysc | --sys | --sy)
340     ac_prev=sysconfdir ;;
341   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343     sysconfdir="$ac_optarg" ;;
344
345   -target | --target | --targe | --targ | --tar | --ta | --t)
346     ac_prev=target ;;
347   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348     target="$ac_optarg" ;;
349
350   -v | -verbose | --verbose | --verbos | --verbo | --verb)
351     verbose=yes ;;
352
353   -version | --version | --versio | --versi | --vers)
354     echo "configure generated by autoconf version 2.13"
355     exit 0 ;;
356
357   -with-* | --with-*)
358     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359     # Reject names that are not valid shell variable names.
360     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362     fi
363     ac_package=`echo $ac_package| sed 's/-/_/g'`
364     case "$ac_option" in
365       *=*) ;;
366       *) ac_optarg=yes ;;
367     esac
368     eval "with_${ac_package}='$ac_optarg'" ;;
369
370   -without-* | --without-*)
371     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372     # Reject names that are not valid shell variable names.
373     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375     fi
376     ac_package=`echo $ac_package| sed 's/-/_/g'`
377     eval "with_${ac_package}=no" ;;
378
379   --x)
380     # Obsolete; use --with-x.
381     with_x=yes ;;
382
383   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384   | --x-incl | --x-inc | --x-in | --x-i)
385     ac_prev=x_includes ;;
386   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388     x_includes="$ac_optarg" ;;
389
390   -x-libraries | --x-libraries | --x-librarie | --x-librari \
391   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392     ac_prev=x_libraries ;;
393   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395     x_libraries="$ac_optarg" ;;
396
397   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398     ;;
399
400   *)
401     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402       echo "configure: warning: $ac_option: invalid host type" 1>&2
403     fi
404     if test "x$nonopt" != xNONE; then
405       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406     fi
407     nonopt="$ac_option"
408     ;;
409
410   esac
411 done
412
413 if test -n "$ac_prev"; then
414   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 fi
416
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418
419 # File descriptor usage:
420 # 0 standard input
421 # 1 file creation
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
428   exec 6>/dev/null
429 else
430   exec 6>&1
431 fi
432 exec 5>./config.log
433
434 echo "\
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
437 " 1>&5
438
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
441 ac_configure_args=
442 for ac_arg
443 do
444   case "$ac_arg" in
445   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446   | --no-cr | --no-c) ;;
447   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452   esac
453 done
454
455 # NLS nuisances.
456 # Only set these to C if already set.  These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
464
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 echo > confdefs.h
469
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=libc
473
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476   ac_srcdir_defaulted=yes
477   # Try the directory containing this script, then its parent.
478   ac_prog=$0
479   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481   srcdir=$ac_confdir
482   if test ! -r $srcdir/$ac_unique_file; then
483     srcdir=..
484   fi
485 else
486   ac_srcdir_defaulted=no
487 fi
488 if test ! -r $srcdir/$ac_unique_file; then
489   if test "$ac_srcdir_defaulted" = yes; then
490     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491   else
492     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493   fi
494 fi
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$sitefile"; then
499   if test -z "$CONFIG_SITE"; then
500     if test "x$prefix" != xNONE; then
501       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502     else
503       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504     fi
505   fi
506 else
507   CONFIG_SITE="$sitefile"
508 fi
509 for ac_site_file in $CONFIG_SITE; do
510   if test -r "$ac_site_file"; then
511     echo "loading site script $ac_site_file"
512     . "$ac_site_file"
513   fi
514 done
515
516 if test -r "$cache_file"; then
517   echo "loading cache $cache_file"
518   . $cache_file
519 else
520   echo "creating cache $cache_file"
521   > $cache_file
522 fi
523
524 ac_ext=c
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp='$CPP $CPPFLAGS'
527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling=$ac_cv_prog_cc_cross
530
531 ac_exeext=
532 ac_objext=o
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536     ac_n= ac_c='
537 ' ac_t='        '
538   else
539     ac_n=-n ac_c= ac_t=
540   fi
541 else
542   ac_n= ac_c='\c' ac_t=
543 fi
544
545
546
547 ac_aux_dir=
548 for ac_dir in .. $srcdir/..; do
549   if test -f $ac_dir/install-sh; then
550     ac_aux_dir=$ac_dir
551     ac_install_sh="$ac_aux_dir/install-sh -c"
552     break
553   elif test -f $ac_dir/install.sh; then
554     ac_aux_dir=$ac_dir
555     ac_install_sh="$ac_aux_dir/install.sh -c"
556     break
557   fi
558 done
559 if test -z "$ac_aux_dir"; then
560   { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
561 fi
562 ac_config_guess=$ac_aux_dir/config.guess
563 ac_config_sub=$ac_aux_dir/config.sub
564 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
565
566
567 # Find a good install program.  We prefer a C program (faster),
568 # so one script is as good as another.  But avoid the broken or
569 # incompatible versions:
570 # SysV /etc/install, /usr/sbin/install
571 # SunOS /usr/etc/install
572 # IRIX /sbin/install
573 # AIX /bin/install
574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
577 # ./install, which can be erroneously created by make from ./install.sh.
578 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
579 echo "configure:580: checking for a BSD compatible install" >&5
580 if test -z "$INSTALL"; then
581 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
582   echo $ac_n "(cached) $ac_c" 1>&6
583 else
584     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
585   for ac_dir in $PATH; do
586     # Account for people who put trailing slashes in PATH elements.
587     case "$ac_dir/" in
588     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
589     *)
590       # OSF1 and SCO ODT 3.0 have their own names for install.
591       # Don't use installbsd from OSF since it installs stuff as root
592       # by default.
593       for ac_prog in ginstall scoinst install; do
594         if test -f $ac_dir/$ac_prog; then
595           if test $ac_prog = install &&
596             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
597             # AIX install.  It has an incompatible calling convention.
598             :
599           else
600             ac_cv_path_install="$ac_dir/$ac_prog -c"
601             break 2
602           fi
603         fi
604       done
605       ;;
606     esac
607   done
608   IFS="$ac_save_IFS"
609
610 fi
611   if test "${ac_cv_path_install+set}" = set; then
612     INSTALL="$ac_cv_path_install"
613   else
614     # As a last resort, use the slow shell script.  We don't cache a
615     # path for INSTALL within a source directory, because that will
616     # break other packages using the cache if that directory is
617     # removed, or if the path is relative.
618     INSTALL="$ac_install_sh"
619   fi
620 fi
621 echo "$ac_t""$INSTALL" 1>&6
622
623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
624 # It thinks the first close brace ends the variable substitution.
625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
626
627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
628
629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
630
631 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
632 echo "configure:633: checking whether build environment is sane" >&5
633 # Just in case
634 sleep 1
635 echo timestamp > conftestfile
636 # Do `set' in a subshell so we don't clobber the current shell's
637 # arguments.  Must try -L first in case configure is actually a
638 # symlink; some systems play weird games with the mod time of symlinks
639 # (eg FreeBSD returns the mod time of the symlink's containing
640 # directory).
641 if (
642    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
643    if test "$*" = "X"; then
644       # -L didn't work.
645       set X `ls -t $srcdir/configure conftestfile`
646    fi
647    if test "$*" != "X $srcdir/configure conftestfile" \
648       && test "$*" != "X conftestfile $srcdir/configure"; then
649
650       # If neither matched, then we have a broken ls.  This can happen
651       # if, for instance, CONFIG_SHELL is bash and it inherits a
652       # broken ls alias from the environment.  This has actually
653       # happened.  Such a system could not be considered "sane".
654       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
655 alias in your environment" 1>&2; exit 1; }
656    fi
657
658    test "$2" = conftestfile
659    )
660 then
661    # Ok.
662    :
663 else
664    { echo "configure: error: newly created file is older than distributed files!
665 Check your system clock" 1>&2; exit 1; }
666 fi
667 rm -f conftest*
668 echo "$ac_t""yes" 1>&6
669 if test "$program_transform_name" = s,x,x,; then
670   program_transform_name=
671 else
672   # Double any \ or $.  echo might interpret backslashes.
673   cat <<\EOF_SED > conftestsed
674 s,\\,\\\\,g; s,\$,$$,g
675 EOF_SED
676   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
677   rm -f conftestsed
678 fi
679 test "$program_prefix" != NONE &&
680   program_transform_name="s,^,${program_prefix},; $program_transform_name"
681 # Use a double $ so make ignores it.
682 test "$program_suffix" != NONE &&
683   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
684
685 # sed with no file args requires a program.
686 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
687
688 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
689 echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5
690 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
691 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
692   echo $ac_n "(cached) $ac_c" 1>&6
693 else
694   cat > conftestmake <<\EOF
695 all:
696         @echo 'ac_maketemp="${MAKE}"'
697 EOF
698 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
699 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
700 if test -n "$ac_maketemp"; then
701   eval ac_cv_prog_make_${ac_make}_set=yes
702 else
703   eval ac_cv_prog_make_${ac_make}_set=no
704 fi
705 rm -f conftestmake
706 fi
707 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
708   echo "$ac_t""yes" 1>&6
709   SET_MAKE=
710 else
711   echo "$ac_t""no" 1>&6
712   SET_MAKE="MAKE=${MAKE-make}"
713 fi
714
715 if test $host != $build; then
716   ac_tool_prefix=${host_alias}-
717 else
718   ac_tool_prefix=
719 fi
720
721 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
722 echo "configure:723: checking for Cygwin environment" >&5
723 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
724   echo $ac_n "(cached) $ac_c" 1>&6
725 else
726   cat > conftest.$ac_ext <<EOF
727 #line 728 "configure"
728 #include "confdefs.h"
729
730 int main() {
731
732 #ifndef __CYGWIN__
733 #define __CYGWIN__ __CYGWIN32__
734 #endif
735 return __CYGWIN__;
736 ; return 0; }
737 EOF
738 if { (eval echo configure:739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
739   rm -rf conftest*
740   ac_cv_cygwin=yes
741 else
742   echo "configure: failed program was:" >&5
743   cat conftest.$ac_ext >&5
744   rm -rf conftest*
745   ac_cv_cygwin=no
746 fi
747 rm -f conftest*
748 rm -f conftest*
749 fi
750
751 echo "$ac_t""$ac_cv_cygwin" 1>&6
752 CYGWIN=
753 test "$ac_cv_cygwin" = yes && CYGWIN=yes
754 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
755 echo "configure:756: checking for mingw32 environment" >&5
756 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
757   echo $ac_n "(cached) $ac_c" 1>&6
758 else
759   cat > conftest.$ac_ext <<EOF
760 #line 761 "configure"
761 #include "confdefs.h"
762
763 int main() {
764 return __MINGW32__;
765 ; return 0; }
766 EOF
767 if { (eval echo configure:768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
768   rm -rf conftest*
769   ac_cv_mingw32=yes
770 else
771   echo "configure: failed program was:" >&5
772   cat conftest.$ac_ext >&5
773   rm -rf conftest*
774   ac_cv_mingw32=no
775 fi
776 rm -f conftest*
777 rm -f conftest*
778 fi
779
780 echo "$ac_t""$ac_cv_mingw32" 1>&6
781 MINGW32=
782 test "$ac_cv_mingw32" = yes && MINGW32=yes
783
784 # Check whether --enable-multilib or --disable-multilib was given.
785 if test "${enable_multilib+set}" = set; then
786   enableval="$enable_multilib"
787   case "${enableval}" in
788   yes) multilib=yes ;;
789   no)  multilib=no ;;
790   *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
791  esac
792 else
793   multilib=yes
794 fi
795
796 # Check whether --enable-target-optspace or --disable-target-optspace was given.
797 if test "${enable_target_optspace+set}" = set; then
798   enableval="$enable_target_optspace"
799   case "${enableval}" in
800   yes) target_optspace=yes ;;
801   no)  target_optspace=no ;;
802   *)   { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
803  esac
804 else
805   target_optspace=
806 fi
807
808 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
809 if test "${enable_newlib_mb+set}" = set; then
810   enableval="$enable_newlib_mb"
811   case "${enableval}" in
812   yes) newlib_mb=yes ;;
813   no)  newlib_mb=no ;;
814   *)   { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
815  esac
816 else
817   newlib_mb=no
818 fi
819
820
821 test -z "${with_target_subdir}" && with_target_subdir=.
822
823 if test "${srcdir}" = "."; then
824   if test "${with_target_subdir}" != "."; then
825     newlib_basedir="${srcdir}/${with_multisrctop}../."
826   else
827     newlib_basedir="${srcdir}/${with_multisrctop}."
828   fi
829 else
830   newlib_basedir="${srcdir}/."
831 fi
832
833
834
835 # Make sure we can run config.sub.
836 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
837 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
838 fi
839
840 echo $ac_n "checking host system type""... $ac_c" 1>&6
841 echo "configure:842: checking host system type" >&5
842
843 host_alias=$host
844 case "$host_alias" in
845 NONE)
846   case $nonopt in
847   NONE)
848     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
849     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
850     fi ;;
851   *) host_alias=$nonopt ;;
852   esac ;;
853 esac
854
855 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
856 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
857 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
858 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
859 echo "$ac_t""$host" 1>&6
860
861
862
863 PACKAGE=newlib
864
865 VERSION=1.8.2
866
867 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
868   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
869 fi
870 cat >> confdefs.h <<EOF
871 #define PACKAGE "$PACKAGE"
872 EOF
873
874 cat >> confdefs.h <<EOF
875 #define VERSION "$VERSION"
876 EOF
877
878
879
880 missing_dir=`cd $ac_aux_dir && pwd`
881 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
882 echo "configure:883: checking for working aclocal" >&5
883 # Run test in a subshell; some versions of sh will print an error if
884 # an executable is not found, even if stderr is redirected.
885 # Redirect stdin to placate older versions of autoconf.  Sigh.
886 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
887    ACLOCAL=aclocal
888    echo "$ac_t""found" 1>&6
889 else
890    ACLOCAL="$missing_dir/missing aclocal"
891    echo "$ac_t""missing" 1>&6
892 fi
893
894 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
895 echo "configure:896: checking for working autoconf" >&5
896 # Run test in a subshell; some versions of sh will print an error if
897 # an executable is not found, even if stderr is redirected.
898 # Redirect stdin to placate older versions of autoconf.  Sigh.
899 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
900    AUTOCONF=autoconf
901    echo "$ac_t""found" 1>&6
902 else
903    AUTOCONF="$missing_dir/missing autoconf"
904    echo "$ac_t""missing" 1>&6
905 fi
906
907 echo $ac_n "checking for working automake""... $ac_c" 1>&6
908 echo "configure:909: checking for working automake" >&5
909 # Run test in a subshell; some versions of sh will print an error if
910 # an executable is not found, even if stderr is redirected.
911 # Redirect stdin to placate older versions of autoconf.  Sigh.
912 if (automake --version) < /dev/null > /dev/null 2>&1; then
913    AUTOMAKE=automake
914    echo "$ac_t""found" 1>&6
915 else
916    AUTOMAKE="$missing_dir/missing automake"
917    echo "$ac_t""missing" 1>&6
918 fi
919
920 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
921 echo "configure:922: checking for working autoheader" >&5
922 # Run test in a subshell; some versions of sh will print an error if
923 # an executable is not found, even if stderr is redirected.
924 # Redirect stdin to placate older versions of autoconf.  Sigh.
925 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
926    AUTOHEADER=autoheader
927    echo "$ac_t""found" 1>&6
928 else
929    AUTOHEADER="$missing_dir/missing autoheader"
930    echo "$ac_t""missing" 1>&6
931 fi
932
933 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
934 echo "configure:935: checking for working makeinfo" >&5
935 # Run test in a subshell; some versions of sh will print an error if
936 # an executable is not found, even if stderr is redirected.
937 # Redirect stdin to placate older versions of autoconf.  Sigh.
938 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
939    MAKEINFO=makeinfo
940    echo "$ac_t""found" 1>&6
941 else
942    MAKEINFO="$missing_dir/missing makeinfo"
943    echo "$ac_t""missing" 1>&6
944 fi
945
946
947
948 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
949 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
950 # are probably using a cross compiler, which will not be able to fully
951 # link an executable.  This should really be fixed in autoconf
952 # itself.
953
954
955
956 # Extract the first word of "gcc", so it can be a program name with args.
957 set dummy gcc; ac_word=$2
958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959 echo "configure:960: checking for $ac_word" >&5
960 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
961   echo $ac_n "(cached) $ac_c" 1>&6
962 else
963   if test -n "$CC"; then
964   ac_cv_prog_CC="$CC" # Let the user override the test.
965 else
966   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
967   ac_dummy="$PATH"
968   for ac_dir in $ac_dummy; do
969     test -z "$ac_dir" && ac_dir=.
970     if test -f $ac_dir/$ac_word; then
971       ac_cv_prog_CC="gcc"
972       break
973     fi
974   done
975   IFS="$ac_save_ifs"
976 fi
977 fi
978 CC="$ac_cv_prog_CC"
979 if test -n "$CC"; then
980   echo "$ac_t""$CC" 1>&6
981 else
982   echo "$ac_t""no" 1>&6
983 fi
984
985 if test -z "$CC"; then
986   # Extract the first word of "cc", so it can be a program name with args.
987 set dummy cc; ac_word=$2
988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
989 echo "configure:990: checking for $ac_word" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
991   echo $ac_n "(cached) $ac_c" 1>&6
992 else
993   if test -n "$CC"; then
994   ac_cv_prog_CC="$CC" # Let the user override the test.
995 else
996   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
997   ac_prog_rejected=no
998   ac_dummy="$PATH"
999   for ac_dir in $ac_dummy; do
1000     test -z "$ac_dir" && ac_dir=.
1001     if test -f $ac_dir/$ac_word; then
1002       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1003         ac_prog_rejected=yes
1004         continue
1005       fi
1006       ac_cv_prog_CC="cc"
1007       break
1008     fi
1009   done
1010   IFS="$ac_save_ifs"
1011 if test $ac_prog_rejected = yes; then
1012   # We found a bogon in the path, so make sure we never use it.
1013   set dummy $ac_cv_prog_CC
1014   shift
1015   if test $# -gt 0; then
1016     # We chose a different compiler from the bogus one.
1017     # However, it has the same basename, so the bogon will be chosen
1018     # first if we set CC to just the basename; use the full file name.
1019     shift
1020     set dummy "$ac_dir/$ac_word" "$@"
1021     shift
1022     ac_cv_prog_CC="$@"
1023   fi
1024 fi
1025 fi
1026 fi
1027 CC="$ac_cv_prog_CC"
1028 if test -n "$CC"; then
1029   echo "$ac_t""$CC" 1>&6
1030 else
1031   echo "$ac_t""no" 1>&6
1032 fi
1033
1034   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1035 fi
1036
1037 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1038 echo "configure:1039: checking whether we are using GNU C" >&5
1039 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1040   echo $ac_n "(cached) $ac_c" 1>&6
1041 else
1042   cat > conftest.c <<EOF
1043 #ifdef __GNUC__
1044   yes;
1045 #endif
1046 EOF
1047 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1048   ac_cv_prog_gcc=yes
1049 else
1050   ac_cv_prog_gcc=no
1051 fi
1052 fi
1053
1054 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1055
1056 if test $ac_cv_prog_gcc = yes; then
1057   GCC=yes
1058   ac_test_CFLAGS="${CFLAGS+set}"
1059   ac_save_CFLAGS="$CFLAGS"
1060   CFLAGS=
1061   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1062 echo "configure:1063: checking whether ${CC-cc} accepts -g" >&5
1063 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1064   echo $ac_n "(cached) $ac_c" 1>&6
1065 else
1066   echo 'void f(){}' > conftest.c
1067 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1068   ac_cv_prog_cc_g=yes
1069 else
1070   ac_cv_prog_cc_g=no
1071 fi
1072 rm -f conftest*
1073
1074 fi
1075
1076 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1077   if test "$ac_test_CFLAGS" = set; then
1078     CFLAGS="$ac_save_CFLAGS"
1079   elif test $ac_cv_prog_cc_g = yes; then
1080     CFLAGS="-g -O2"
1081   else
1082     CFLAGS="-O2"
1083   fi
1084 else
1085   GCC=
1086   test "${CFLAGS+set}" = set || CFLAGS="-g"
1087 fi
1088
1089
1090 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD).  If we don't
1091 # run it explicitly here, it will be run implicitly before
1092 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1093 # be run before AC_CANONICAL_HOST.
1094 echo $ac_n "checking build system type""... $ac_c" 1>&6
1095 echo "configure:1096: checking build system type" >&5
1096
1097 build_alias=$build
1098 case "$build_alias" in
1099 NONE)
1100   case $nonopt in
1101   NONE) build_alias=$host_alias ;;
1102   *) build_alias=$nonopt ;;
1103   esac ;;
1104 esac
1105
1106 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1107 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1110 echo "$ac_t""$build" 1>&6
1111
1112
1113 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1114 set dummy ${ac_tool_prefix}as; ac_word=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1118   echo $ac_n "(cached) $ac_c" 1>&6
1119 else
1120   if test -n "$AS"; then
1121   ac_cv_prog_AS="$AS" # Let the user override the test.
1122 else
1123   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1124   ac_dummy="$PATH"
1125   for ac_dir in $ac_dummy; do
1126     test -z "$ac_dir" && ac_dir=.
1127     if test -f $ac_dir/$ac_word; then
1128       ac_cv_prog_AS="${ac_tool_prefix}as"
1129       break
1130     fi
1131   done
1132   IFS="$ac_save_ifs"
1133   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1134 fi
1135 fi
1136 AS="$ac_cv_prog_AS"
1137 if test -n "$AS"; then
1138   echo "$ac_t""$AS" 1>&6
1139 else
1140   echo "$ac_t""no" 1>&6
1141 fi
1142
1143
1144
1145 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1146 set dummy ${ac_tool_prefix}ar; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1150   echo $ac_n "(cached) $ac_c" 1>&6
1151 else
1152   if test -n "$AR"; then
1153   ac_cv_prog_AR="$AR" # Let the user override the test.
1154 else
1155   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1156   ac_dummy="$PATH"
1157   for ac_dir in $ac_dummy; do
1158     test -z "$ac_dir" && ac_dir=.
1159     if test -f $ac_dir/$ac_word; then
1160       ac_cv_prog_AR="${ac_tool_prefix}ar"
1161       break
1162     fi
1163   done
1164   IFS="$ac_save_ifs"
1165   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1166 fi
1167 fi
1168 AR="$ac_cv_prog_AR"
1169 if test -n "$AR"; then
1170   echo "$ac_t""$AR" 1>&6
1171 else
1172   echo "$ac_t""no" 1>&6
1173 fi
1174
1175
1176
1177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_word" >&5
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=":"
1188   ac_dummy="$PATH"
1189   for ac_dir in $ac_dummy; do
1190     test -z "$ac_dir" && ac_dir=.
1191     if test -f $ac_dir/$ac_word; then
1192       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1193       break
1194     fi
1195   done
1196   IFS="$ac_save_ifs"
1197 fi
1198 fi
1199 RANLIB="$ac_cv_prog_RANLIB"
1200 if test -n "$RANLIB"; then
1201   echo "$ac_t""$RANLIB" 1>&6
1202 else
1203   echo "$ac_t""no" 1>&6
1204 fi
1205
1206
1207 if test -z "$ac_cv_prog_RANLIB"; then
1208 if test -n "$ac_tool_prefix"; then
1209   # Extract the first word of "ranlib", so it can be a program name with args.
1210 set dummy ranlib; ac_word=$2
1211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1212 echo "configure:1213: checking for $ac_word" >&5
1213 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1214   echo $ac_n "(cached) $ac_c" 1>&6
1215 else
1216   if test -n "$RANLIB"; then
1217   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1218 else
1219   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1220   ac_dummy="$PATH"
1221   for ac_dir in $ac_dummy; do
1222     test -z "$ac_dir" && ac_dir=.
1223     if test -f $ac_dir/$ac_word; then
1224       ac_cv_prog_RANLIB="ranlib"
1225       break
1226     fi
1227   done
1228   IFS="$ac_save_ifs"
1229   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1230 fi
1231 fi
1232 RANLIB="$ac_cv_prog_RANLIB"
1233 if test -n "$RANLIB"; then
1234   echo "$ac_t""$RANLIB" 1>&6
1235 else
1236   echo "$ac_t""no" 1>&6
1237 fi
1238
1239 else
1240   RANLIB=":"
1241 fi
1242 fi
1243
1244
1245 # Find a good install program.  We prefer a C program (faster),
1246 # so one script is as good as another.  But avoid the broken or
1247 # incompatible versions:
1248 # SysV /etc/install, /usr/sbin/install
1249 # SunOS /usr/etc/install
1250 # IRIX /sbin/install
1251 # AIX /bin/install
1252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1255 # ./install, which can be erroneously created by make from ./install.sh.
1256 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1257 echo "configure:1258: checking for a BSD compatible install" >&5
1258 if test -z "$INSTALL"; then
1259 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1260   echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1263   for ac_dir in $PATH; do
1264     # Account for people who put trailing slashes in PATH elements.
1265     case "$ac_dir/" in
1266     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1267     *)
1268       # OSF1 and SCO ODT 3.0 have their own names for install.
1269       # Don't use installbsd from OSF since it installs stuff as root
1270       # by default.
1271       for ac_prog in ginstall scoinst install; do
1272         if test -f $ac_dir/$ac_prog; then
1273           if test $ac_prog = install &&
1274             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1275             # AIX install.  It has an incompatible calling convention.
1276             :
1277           else
1278             ac_cv_path_install="$ac_dir/$ac_prog -c"
1279             break 2
1280           fi
1281         fi
1282       done
1283       ;;
1284     esac
1285   done
1286   IFS="$ac_save_IFS"
1287
1288 fi
1289   if test "${ac_cv_path_install+set}" = set; then
1290     INSTALL="$ac_cv_path_install"
1291   else
1292     # As a last resort, use the slow shell script.  We don't cache a
1293     # path for INSTALL within a source directory, because that will
1294     # break other packages using the cache if that directory is
1295     # removed, or if the path is relative.
1296     INSTALL="$ac_install_sh"
1297   fi
1298 fi
1299 echo "$ac_t""$INSTALL" 1>&6
1300
1301 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1302 # It thinks the first close brace ends the variable substitution.
1303 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1304
1305 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1306
1307 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1308
1309
1310 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1311 echo "configure:1312: checking whether to enable maintainer-specific portions of Makefiles" >&5
1312     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1313 if test "${enable_maintainer_mode+set}" = set; then
1314   enableval="$enable_maintainer_mode"
1315   USE_MAINTAINER_MODE=$enableval
1316 else
1317   USE_MAINTAINER_MODE=no
1318 fi
1319
1320   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1321   
1322
1323 if test $USE_MAINTAINER_MODE = yes; then
1324   MAINTAINER_MODE_TRUE=
1325   MAINTAINER_MODE_FALSE='#'
1326 else
1327   MAINTAINER_MODE_TRUE='#'
1328   MAINTAINER_MODE_FALSE=
1329 fi
1330   MAINT=$MAINTAINER_MODE_TRUE
1331   
1332
1333
1334 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1335 # at least currently, we never actually build a program, so we never
1336 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1337 # fails, because we are probably configuring with a cross compiler
1338 # which can't create executables.  So we include AC_EXEEXT to keep
1339 # automake happy, but we don't execute it, since we don't care about
1340 # the result.
1341 if false; then
1342   
1343
1344 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1345 echo "configure:1346: checking for executable suffix" >&5
1346 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1347   echo $ac_n "(cached) $ac_c" 1>&6
1348 else
1349   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1350   ac_cv_exeext=.exe
1351 else
1352   rm -f conftest*
1353   echo 'int main () { return 0; }' > conftest.$ac_ext
1354   ac_cv_exeext=
1355   if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1356     for file in conftest.*; do
1357       case $file in
1358       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1359       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1360       esac
1361     done
1362   else
1363     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1364   fi
1365   rm -f conftest*
1366   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1367 fi
1368 fi
1369
1370 EXEEXT=""
1371 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1372 echo "$ac_t""${ac_cv_exeext}" 1>&6
1373 ac_exeext=$EXEEXT
1374
1375 fi
1376
1377 . ${newlib_basedir}/configure.host
1378
1379 case ${newlib_basedir} in
1380 /* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;;
1381 *) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;;
1382 esac
1383
1384 newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/./targ-include -I${newlib_flagbasedir}/libc/include"
1385 case "${host}" in
1386   *-*-cygwin*)
1387     newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/cygwin/include  -I${newlib_flagbasedir}/../winsup/w32api/include"
1388     ;;
1389 esac
1390
1391 newlib_cflags="${newlib_cflags} -fno-builtin"
1392
1393 NEWLIB_CFLAGS=${newlib_cflags}
1394
1395
1396
1397
1398
1399
1400 configdirs="libc libm"
1401
1402 # Check whether --enable-newlib_hw_fp or --disable-newlib_hw_fp was given.
1403 if test "${enable_newlib_hw_fp+set}" = set; then
1404   enableval="$enable_newlib_hw_fp"
1405   case "${enableval}" in
1406    yes) newlib_hw_fp=true ;;
1407    no)  newlib_hw_fp=false ;;
1408    *) { echo "configure: error: bad value ${enableval} for --enable-newlib-hw-fp" 1>&2; exit 1; } ;;
1409  esac
1410 else
1411   newlib_hw_fp=false
1412 fi
1413
1414
1415
1416 if test x$newlib_hw_fp = xtrue; then
1417   NEWLIB_HW_FP_TRUE=
1418   NEWLIB_HW_FP_FALSE='#'
1419 else
1420   NEWLIB_HW_FP_TRUE='#'
1421   NEWLIB_HW_FP_FALSE=
1422 fi
1423
1424 if test -z "${with_multisubdir}"; then
1425   configdirs="${configdirs} doc"
1426   have_doc=yes
1427 else
1428   have_doc=
1429 fi
1430
1431
1432 if test x$have_doc = xyes; then
1433   HAVE_DOC_TRUE=
1434   HAVE_DOC_FALSE='#'
1435 else
1436   HAVE_DOC_TRUE='#'
1437   HAVE_DOC_FALSE=
1438 fi
1439
1440 subdirs="${configdirs}"
1441
1442
1443 CRT0=
1444 CRT0_DIR=
1445 if test -n "${sys_dir}"; then
1446   CRT0=crt0.o
1447   CRT0_DIR=libc
1448 fi
1449
1450
1451
1452
1453
1454
1455 if test "${multilib}" = "yes"; then
1456   multilib_arg="--enable-multilib"
1457 else
1458   multilib_arg=
1459 fi
1460
1461
1462 trap '' 1 2 15
1463 cat > confcache <<\EOF
1464 # This file is a shell script that caches the results of configure
1465 # tests run on this system so they can be shared between configure
1466 # scripts and configure runs.  It is not useful on other systems.
1467 # If it contains results you don't want to keep, you may remove or edit it.
1468 #
1469 # By default, configure uses ./config.cache as the cache file,
1470 # creating it if it does not exist already.  You can give configure
1471 # the --cache-file=FILE option to use a different cache file; that is
1472 # what configure does when it calls configure scripts in
1473 # subdirectories, so they share the cache.
1474 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1475 # config.status only pays attention to the cache file if you give it the
1476 # --recheck option to rerun configure.
1477 #
1478 EOF
1479 # The following way of writing the cache mishandles newlines in values,
1480 # but we know of no workaround that is simple, portable, and efficient.
1481 # So, don't put newlines in cache variables' values.
1482 # Ultrix sh set writes to stderr and can't be redirected directly,
1483 # and sets the high bit in the cache file unless we assign to the vars.
1484 (set) 2>&1 |
1485   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1486   *ac_space=\ *)
1487     # `set' does not quote correctly, so add quotes (double-quote substitution
1488     # turns \\\\ into \\, and sed turns \\ into \).
1489     sed -n \
1490       -e "s/'/'\\\\''/g" \
1491       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1492     ;;
1493   *)
1494     # `set' quotes correctly as required by POSIX, so do not add quotes.
1495     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1496     ;;
1497   esac >> confcache
1498 if cmp -s $cache_file confcache; then
1499   :
1500 else
1501   if test -w $cache_file; then
1502     echo "updating cache $cache_file"
1503     cat confcache > $cache_file
1504   else
1505     echo "not updating unwritable cache $cache_file"
1506   fi
1507 fi
1508 rm -f confcache
1509
1510 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1511
1512 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1513 # Let make expand exec_prefix.
1514 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1515
1516 # Any assignment to VPATH causes Sun make to only execute
1517 # the first set of double-colon rules, so remove it if not needed.
1518 # If there is a colon in the path, we need to keep it.
1519 if test "x$srcdir" = x.; then
1520   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1521 fi
1522
1523 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1524
1525 # Transform confdefs.h into DEFS.
1526 # Protect against shell expansion while executing Makefile rules.
1527 # Protect against Makefile macro expansion.
1528 cat > conftest.defs <<\EOF
1529 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1530 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1531 s%\[%\\&%g
1532 s%\]%\\&%g
1533 s%\$%$$%g
1534 EOF
1535 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1536 rm -f conftest.defs
1537
1538
1539 # Without the "./", some shells look in PATH for config.status.
1540 : ${CONFIG_STATUS=./config.status}
1541
1542 echo creating $CONFIG_STATUS
1543 rm -f $CONFIG_STATUS
1544 cat > $CONFIG_STATUS <<EOF
1545 #! /bin/sh
1546 # Generated automatically by configure.
1547 # Run this file to recreate the current configuration.
1548 # This directory was configured as follows,
1549 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1550 #
1551 # $0 $ac_configure_args
1552 #
1553 # Compiler output produced by configure, useful for debugging
1554 # configure, is in ./config.log if it exists.
1555
1556 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1557 for ac_option
1558 do
1559   case "\$ac_option" in
1560   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1561     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1562     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1563   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1564     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1565     exit 0 ;;
1566   -help | --help | --hel | --he | --h)
1567     echo "\$ac_cs_usage"; exit 0 ;;
1568   *) echo "\$ac_cs_usage"; exit 1 ;;
1569   esac
1570 done
1571
1572 ac_given_srcdir=$srcdir
1573 ac_given_INSTALL="$INSTALL"
1574
1575 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1576 EOF
1577 cat >> $CONFIG_STATUS <<EOF
1578
1579 # Protect against being on the right side of a sed subst in config.status.
1580 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1581  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1582 $ac_vpsub
1583 $extrasub
1584 s%@SHELL@%$SHELL%g
1585 s%@CFLAGS@%$CFLAGS%g
1586 s%@CPPFLAGS@%$CPPFLAGS%g
1587 s%@CXXFLAGS@%$CXXFLAGS%g
1588 s%@FFLAGS@%$FFLAGS%g
1589 s%@DEFS@%$DEFS%g
1590 s%@LDFLAGS@%$LDFLAGS%g
1591 s%@LIBS@%$LIBS%g
1592 s%@exec_prefix@%$exec_prefix%g
1593 s%@prefix@%$prefix%g
1594 s%@program_transform_name@%$program_transform_name%g
1595 s%@bindir@%$bindir%g
1596 s%@sbindir@%$sbindir%g
1597 s%@libexecdir@%$libexecdir%g
1598 s%@datadir@%$datadir%g
1599 s%@sysconfdir@%$sysconfdir%g
1600 s%@sharedstatedir@%$sharedstatedir%g
1601 s%@localstatedir@%$localstatedir%g
1602 s%@libdir@%$libdir%g
1603 s%@includedir@%$includedir%g
1604 s%@oldincludedir@%$oldincludedir%g
1605 s%@infodir@%$infodir%g
1606 s%@mandir@%$mandir%g
1607 s%@newlib_basedir@%$newlib_basedir%g
1608 s%@host@%$host%g
1609 s%@host_alias@%$host_alias%g
1610 s%@host_cpu@%$host_cpu%g
1611 s%@host_vendor@%$host_vendor%g
1612 s%@host_os@%$host_os%g
1613 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1614 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1615 s%@INSTALL_DATA@%$INSTALL_DATA%g
1616 s%@PACKAGE@%$PACKAGE%g
1617 s%@VERSION@%$VERSION%g
1618 s%@ACLOCAL@%$ACLOCAL%g
1619 s%@AUTOCONF@%$AUTOCONF%g
1620 s%@AUTOMAKE@%$AUTOMAKE%g
1621 s%@AUTOHEADER@%$AUTOHEADER%g
1622 s%@MAKEINFO@%$MAKEINFO%g
1623 s%@SET_MAKE@%$SET_MAKE%g
1624 s%@CC@%$CC%g
1625 s%@build@%$build%g
1626 s%@build_alias@%$build_alias%g
1627 s%@build_cpu@%$build_cpu%g
1628 s%@build_vendor@%$build_vendor%g
1629 s%@build_os@%$build_os%g
1630 s%@AS@%$AS%g
1631 s%@AR@%$AR%g
1632 s%@RANLIB@%$RANLIB%g
1633 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1634 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1635 s%@MAINT@%$MAINT%g
1636 s%@EXEEXT@%$EXEEXT%g
1637 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
1638 s%@machine_dir@%$machine_dir%g
1639 s%@sys_dir@%$sys_dir%g
1640 s%@NEWLIB_HW_FP_TRUE@%$NEWLIB_HW_FP_TRUE%g
1641 s%@NEWLIB_HW_FP_FALSE@%$NEWLIB_HW_FP_FALSE%g
1642 s%@HAVE_DOC_TRUE@%$HAVE_DOC_TRUE%g
1643 s%@HAVE_DOC_FALSE@%$HAVE_DOC_FALSE%g
1644 s%@subdirs@%$subdirs%g
1645 s%@CRT0@%$CRT0%g
1646 s%@CRT0_DIR@%$CRT0_DIR%g
1647
1648 CEOF
1649 EOF
1650
1651 cat >> $CONFIG_STATUS <<\EOF
1652
1653 # Split the substitutions into bite-sized pieces for seds with
1654 # small command number limits, like on Digital OSF/1 and HP-UX.
1655 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1656 ac_file=1 # Number of current file.
1657 ac_beg=1 # First line for current file.
1658 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1659 ac_more_lines=:
1660 ac_sed_cmds=""
1661 while $ac_more_lines; do
1662   if test $ac_beg -gt 1; then
1663     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1664   else
1665     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1666   fi
1667   if test ! -s conftest.s$ac_file; then
1668     ac_more_lines=false
1669     rm -f conftest.s$ac_file
1670   else
1671     if test -z "$ac_sed_cmds"; then
1672       ac_sed_cmds="sed -f conftest.s$ac_file"
1673     else
1674       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1675     fi
1676     ac_file=`expr $ac_file + 1`
1677     ac_beg=$ac_end
1678     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1679   fi
1680 done
1681 if test -z "$ac_sed_cmds"; then
1682   ac_sed_cmds=cat
1683 fi
1684 EOF
1685
1686 cat >> $CONFIG_STATUS <<EOF
1687
1688 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1689 EOF
1690 cat >> $CONFIG_STATUS <<\EOF
1691 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1692   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1693   case "$ac_file" in
1694   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1695        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1696   *) ac_file_in="${ac_file}.in" ;;
1697   esac
1698
1699   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1700
1701   # Remove last slash and all that follows it.  Not all systems have dirname.
1702   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1703   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1704     # The file is in a subdirectory.
1705     test ! -d "$ac_dir" && mkdir "$ac_dir"
1706     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1707     # A "../" for each directory in $ac_dir_suffix.
1708     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1709   else
1710     ac_dir_suffix= ac_dots=
1711   fi
1712
1713   case "$ac_given_srcdir" in
1714   .)  srcdir=.
1715       if test -z "$ac_dots"; then top_srcdir=.
1716       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1717   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1718   *) # Relative path.
1719     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1720     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1721   esac
1722
1723   case "$ac_given_INSTALL" in
1724   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1725   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1726   esac
1727
1728   echo creating "$ac_file"
1729   rm -f "$ac_file"
1730   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1731   case "$ac_file" in
1732   *Makefile*) ac_comsub="1i\\
1733 # $configure_input" ;;
1734   *) ac_comsub= ;;
1735   esac
1736
1737   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1738   sed -e "$ac_comsub
1739 s%@configure_input@%$configure_input%g
1740 s%@srcdir@%$srcdir%g
1741 s%@top_srcdir@%$top_srcdir%g
1742 s%@INSTALL@%$INSTALL%g
1743 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1744 fi; done
1745 rm -f conftest.s*
1746
1747 EOF
1748 cat >> $CONFIG_STATUS <<EOF
1749 srcdir=${srcdir}
1750 host=${host}
1751 target=${target}
1752 with_multisubdir=${with_multisubdir}
1753 ac_configure_args="${multilib_arg} ${ac_configure_args}"
1754 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1755 newlib_basedir=${newlib_basedir}
1756 CC="${CC}"
1757
1758 EOF
1759 cat >> $CONFIG_STATUS <<\EOF
1760 if test -n "$CONFIG_FILES"; then
1761   . ${newlib_basedir}/../config-ml.in
1762 fi
1763 exit 0
1764 EOF
1765 chmod +x $CONFIG_STATUS
1766 rm -fr confdefs* $ac_clean_files
1767 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1768
1769 if test "$no_recursion" != yes; then
1770
1771   # Remove --cache-file and --srcdir arguments so they do not pile up.
1772   ac_sub_configure_args=
1773   ac_prev=
1774   for ac_arg in $ac_configure_args; do
1775     if test -n "$ac_prev"; then
1776       ac_prev=
1777       continue
1778     fi
1779     case "$ac_arg" in
1780     -cache-file | --cache-file | --cache-fil | --cache-fi \
1781     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1782       ac_prev=cache_file ;;
1783     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1784     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1785       ;;
1786     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1787       ac_prev=srcdir ;;
1788     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1789       ;;
1790     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1791     esac
1792   done
1793
1794   for ac_config_dir in ${configdirs}; do
1795
1796     # Do not complain, so a configure script can configure whichever
1797     # parts of a large source tree are present.
1798     if test ! -d $srcdir/$ac_config_dir; then
1799       continue
1800     fi
1801
1802     echo configuring in $ac_config_dir
1803
1804     case "$srcdir" in
1805     .) ;;
1806     *)
1807       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1808       else
1809         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1810       fi
1811       ;;
1812     esac
1813
1814     ac_popdir=`pwd`
1815     cd $ac_config_dir
1816
1817       # A "../" for each directory in /$ac_config_dir.
1818       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1819
1820     case "$srcdir" in
1821     .) # No --srcdir option.  We are building in place.
1822       ac_sub_srcdir=$srcdir ;;
1823     /*) # Absolute path.
1824       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1825     *) # Relative path.
1826       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1827     esac
1828
1829     # Check for guested configure; otherwise get Cygnus style configure.
1830     if test -f $ac_sub_srcdir/configure; then
1831       ac_sub_configure=$ac_sub_srcdir/configure
1832     elif test -f $ac_sub_srcdir/configure.in; then
1833       ac_sub_configure=$ac_configure
1834     else
1835       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1836       ac_sub_configure=
1837     fi
1838
1839     # The recursion is here.
1840     if test -n "$ac_sub_configure"; then
1841
1842       # Make the cache file name correct relative to the subdirectory.
1843       case "$cache_file" in
1844       /*) ac_sub_cache_file=$cache_file ;;
1845       *) # Relative path.
1846         ac_sub_cache_file="$ac_dots$cache_file" ;;
1847       esac
1848   case "$ac_given_INSTALL" in
1849         [/$]*) INSTALL="$ac_given_INSTALL" ;;
1850         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1851         esac
1852
1853       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1854       # The eval makes quoting arguments work.
1855       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1856       then :
1857       else
1858         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1859       fi
1860     fi
1861
1862     cd $ac_popdir
1863   done
1864 fi
1865