OSDN Git Service

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