OSDN Git Service

* Makefile.shared: New file.
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libc / sys / 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-mb        enable multibyte support"
22 ac_help="$ac_help
23   --enable-maintainer-mode enable make rules and dependencies not useful
24                           (and sometimes confusing) to the casual installer"
25 ac_help="$ac_help
26   --enable-shared[=PKGS]  build shared libraries [default=yes]"
27 ac_help="$ac_help
28   --enable-static[=PKGS]  build static libraries [default=yes]"
29 ac_help="$ac_help
30   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
31 ac_help="$ac_help
32   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
33 ac_help="$ac_help
34   --disable-libtool-lock  avoid locking (might break parallel builds)"
35
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
39 build=NONE
40 cache_file=./config.cache
41 exec_prefix=NONE
42 host=NONE
43 no_create=
44 nonopt=NONE
45 no_recursion=
46 prefix=NONE
47 program_prefix=NONE
48 program_suffix=NONE
49 program_transform_name=s,x,x,
50 silent=
51 site=
52 sitefile=
53 srcdir=
54 target=NONE
55 verbose=
56 x_includes=NONE
57 x_libraries=NONE
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
70
71 # Initialize some other variables.
72 subdirs=
73 MFLAGS= MAKEFLAGS=
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
76 ac_max_here_lines=12
77
78 ac_prev=
79 for ac_option
80 do
81
82   # If the previous option needs an argument, assign it.
83   if test -n "$ac_prev"; then
84     eval "$ac_prev=\$ac_option"
85     ac_prev=
86     continue
87   fi
88
89   case "$ac_option" in
90   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91   *) ac_optarg= ;;
92   esac
93
94   # Accept the important Cygnus configure options, so we can diagnose typos.
95
96   case "$ac_option" in
97
98   -bindir | --bindir | --bindi | --bind | --bin | --bi)
99     ac_prev=bindir ;;
100   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101     bindir="$ac_optarg" ;;
102
103   -build | --build | --buil | --bui | --bu)
104     ac_prev=build ;;
105   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106     build="$ac_optarg" ;;
107
108   -cache-file | --cache-file | --cache-fil | --cache-fi \
109   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110     ac_prev=cache_file ;;
111   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113     cache_file="$ac_optarg" ;;
114
115   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116     ac_prev=datadir ;;
117   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118   | --da=*)
119     datadir="$ac_optarg" ;;
120
121   -disable-* | --disable-*)
122     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123     # Reject names that are not valid shell variable names.
124     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126     fi
127     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128     eval "enable_${ac_feature}=no" ;;
129
130   -enable-* | --enable-*)
131     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132     # Reject names that are not valid shell variable names.
133     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135     fi
136     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137     case "$ac_option" in
138       *=*) ;;
139       *) ac_optarg=yes ;;
140     esac
141     eval "enable_${ac_feature}='$ac_optarg'" ;;
142
143   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145   | --exec | --exe | --ex)
146     ac_prev=exec_prefix ;;
147   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149   | --exec=* | --exe=* | --ex=*)
150     exec_prefix="$ac_optarg" ;;
151
152   -gas | --gas | --ga | --g)
153     # Obsolete; use --with-gas.
154     with_gas=yes ;;
155
156   -help | --help | --hel | --he)
157     # Omit some internal or obsolete options to make the list less imposing.
158     # This message is too long to be a string in the A/UX 3.1 sh.
159     cat << EOF
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
162 Configuration:
163   --cache-file=FILE       cache test results in FILE
164   --help                  print this message
165   --no-create             do not create output files
166   --quiet, --silent       do not print \`checking...' messages
167   --site-file=FILE        use FILE as the site file
168   --version               print the version of autoconf that created configure
169 Directory and file names:
170   --prefix=PREFIX         install architecture-independent files in PREFIX
171                           [$ac_default_prefix]
172   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
173                           [same as prefix]
174   --bindir=DIR            user executables in DIR [EPREFIX/bin]
175   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
176   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
177   --datadir=DIR           read-only architecture-independent data in DIR
178                           [PREFIX/share]
179   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
180   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
181                           [PREFIX/com]
182   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
183   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
184   --includedir=DIR        C header files in DIR [PREFIX/include]
185   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
186   --infodir=DIR           info documentation in DIR [PREFIX/info]
187   --mandir=DIR            man documentation in DIR [PREFIX/man]
188   --srcdir=DIR            find the sources in DIR [configure dir or ..]
189   --program-prefix=PREFIX prepend PREFIX to installed program names
190   --program-suffix=SUFFIX append SUFFIX to installed program names
191   --program-transform-name=PROGRAM
192                           run sed PROGRAM on installed program names
193 EOF
194     cat << EOF
195 Host type:
196   --build=BUILD           configure for building on BUILD [BUILD=HOST]
197   --host=HOST             configure for HOST [guessed]
198   --target=TARGET         configure for TARGET [TARGET=HOST]
199 Features and packages:
200   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
201   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
202   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
203   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
204   --x-includes=DIR        X include files are in DIR
205   --x-libraries=DIR       X library files are in DIR
206 EOF
207     if test -n "$ac_help"; then
208       echo "--enable and --with options recognized:$ac_help"
209     fi
210     exit 0 ;;
211
212   -host | --host | --hos | --ho)
213     ac_prev=host ;;
214   -host=* | --host=* | --hos=* | --ho=*)
215     host="$ac_optarg" ;;
216
217   -includedir | --includedir | --includedi | --included | --include \
218   | --includ | --inclu | --incl | --inc)
219     ac_prev=includedir ;;
220   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221   | --includ=* | --inclu=* | --incl=* | --inc=*)
222     includedir="$ac_optarg" ;;
223
224   -infodir | --infodir | --infodi | --infod | --info | --inf)
225     ac_prev=infodir ;;
226   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227     infodir="$ac_optarg" ;;
228
229   -libdir | --libdir | --libdi | --libd)
230     ac_prev=libdir ;;
231   -libdir=* | --libdir=* | --libdi=* | --libd=*)
232     libdir="$ac_optarg" ;;
233
234   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235   | --libexe | --libex | --libe)
236     ac_prev=libexecdir ;;
237   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238   | --libexe=* | --libex=* | --libe=*)
239     libexecdir="$ac_optarg" ;;
240
241   -localstatedir | --localstatedir | --localstatedi | --localstated \
242   | --localstate | --localstat | --localsta | --localst \
243   | --locals | --local | --loca | --loc | --lo)
244     ac_prev=localstatedir ;;
245   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248     localstatedir="$ac_optarg" ;;
249
250   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251     ac_prev=mandir ;;
252   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253     mandir="$ac_optarg" ;;
254
255   -nfp | --nfp | --nf)
256     # Obsolete; use --without-fp.
257     with_fp=no ;;
258
259   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260   | --no-cr | --no-c)
261     no_create=yes ;;
262
263   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265     no_recursion=yes ;;
266
267   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269   | --oldin | --oldi | --old | --ol | --o)
270     ac_prev=oldincludedir ;;
271   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274     oldincludedir="$ac_optarg" ;;
275
276   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277     ac_prev=prefix ;;
278   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279     prefix="$ac_optarg" ;;
280
281   -program-prefix | --program-prefix | --program-prefi | --program-pref \
282   | --program-pre | --program-pr | --program-p)
283     ac_prev=program_prefix ;;
284   -program-prefix=* | --program-prefix=* | --program-prefi=* \
285   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286     program_prefix="$ac_optarg" ;;
287
288   -program-suffix | --program-suffix | --program-suffi | --program-suff \
289   | --program-suf | --program-su | --program-s)
290     ac_prev=program_suffix ;;
291   -program-suffix=* | --program-suffix=* | --program-suffi=* \
292   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293     program_suffix="$ac_optarg" ;;
294
295   -program-transform-name | --program-transform-name \
296   | --program-transform-nam | --program-transform-na \
297   | --program-transform-n | --program-transform- \
298   | --program-transform | --program-transfor \
299   | --program-transfo | --program-transf \
300   | --program-trans | --program-tran \
301   | --progr-tra | --program-tr | --program-t)
302     ac_prev=program_transform_name ;;
303   -program-transform-name=* | --program-transform-name=* \
304   | --program-transform-nam=* | --program-transform-na=* \
305   | --program-transform-n=* | --program-transform-=* \
306   | --program-transform=* | --program-transfor=* \
307   | --program-transfo=* | --program-transf=* \
308   | --program-trans=* | --program-tran=* \
309   | --progr-tra=* | --program-tr=* | --program-t=*)
310     program_transform_name="$ac_optarg" ;;
311
312   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313   | -silent | --silent | --silen | --sile | --sil)
314     silent=yes ;;
315
316   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317     ac_prev=sbindir ;;
318   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319   | --sbi=* | --sb=*)
320     sbindir="$ac_optarg" ;;
321
322   -sharedstatedir | --sharedstatedir | --sharedstatedi \
323   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324   | --sharedst | --shareds | --shared | --share | --shar \
325   | --sha | --sh)
326     ac_prev=sharedstatedir ;;
327   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330   | --sha=* | --sh=*)
331     sharedstatedir="$ac_optarg" ;;
332
333   -site | --site | --sit)
334     ac_prev=site ;;
335   -site=* | --site=* | --sit=*)
336     site="$ac_optarg" ;;
337
338   -site-file | --site-file | --site-fil | --site-fi | --site-f)
339     ac_prev=sitefile ;;
340   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
341     sitefile="$ac_optarg" ;;
342
343   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344     ac_prev=srcdir ;;
345   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346     srcdir="$ac_optarg" ;;
347
348   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349   | --syscon | --sysco | --sysc | --sys | --sy)
350     ac_prev=sysconfdir ;;
351   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353     sysconfdir="$ac_optarg" ;;
354
355   -target | --target | --targe | --targ | --tar | --ta | --t)
356     ac_prev=target ;;
357   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358     target="$ac_optarg" ;;
359
360   -v | -verbose | --verbose | --verbos | --verbo | --verb)
361     verbose=yes ;;
362
363   -version | --version | --versio | --versi | --vers)
364     echo "configure generated by autoconf version 2.13"
365     exit 0 ;;
366
367   -with-* | --with-*)
368     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369     # Reject names that are not valid shell variable names.
370     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372     fi
373     ac_package=`echo $ac_package| sed 's/-/_/g'`
374     case "$ac_option" in
375       *=*) ;;
376       *) ac_optarg=yes ;;
377     esac
378     eval "with_${ac_package}='$ac_optarg'" ;;
379
380   -without-* | --without-*)
381     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382     # Reject names that are not valid shell variable names.
383     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385     fi
386     ac_package=`echo $ac_package| sed 's/-/_/g'`
387     eval "with_${ac_package}=no" ;;
388
389   --x)
390     # Obsolete; use --with-x.
391     with_x=yes ;;
392
393   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394   | --x-incl | --x-inc | --x-in | --x-i)
395     ac_prev=x_includes ;;
396   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398     x_includes="$ac_optarg" ;;
399
400   -x-libraries | --x-libraries | --x-librarie | --x-librari \
401   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402     ac_prev=x_libraries ;;
403   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405     x_libraries="$ac_optarg" ;;
406
407   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408     ;;
409
410   *)
411     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412       echo "configure: warning: $ac_option: invalid host type" 1>&2
413     fi
414     if test "x$nonopt" != xNONE; then
415       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416     fi
417     nonopt="$ac_option"
418     ;;
419
420   esac
421 done
422
423 if test -n "$ac_prev"; then
424   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 fi
426
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428
429 # File descriptor usage:
430 # 0 standard input
431 # 1 file creation
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
438   exec 6>/dev/null
439 else
440   exec 6>&1
441 fi
442 exec 5>./config.log
443
444 echo "\
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
447 " 1>&5
448
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
451 ac_configure_args=
452 for ac_arg
453 do
454   case "$ac_arg" in
455   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456   | --no-cr | --no-c) ;;
457   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462   esac
463 done
464
465 # NLS nuisances.
466 # Only set these to C if already set.  These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
474
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
478 echo > confdefs.h
479
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=a29khif
483
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486   ac_srcdir_defaulted=yes
487   # Try the directory containing this script, then its parent.
488   ac_prog=$0
489   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491   srcdir=$ac_confdir
492   if test ! -r $srcdir/$ac_unique_file; then
493     srcdir=..
494   fi
495 else
496   ac_srcdir_defaulted=no
497 fi
498 if test ! -r $srcdir/$ac_unique_file; then
499   if test "$ac_srcdir_defaulted" = yes; then
500     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501   else
502     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503   fi
504 fi
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$sitefile"; then
509   if test -z "$CONFIG_SITE"; then
510     if test "x$prefix" != xNONE; then
511       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512     else
513       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514     fi
515   fi
516 else
517   CONFIG_SITE="$sitefile"
518 fi
519 for ac_site_file in $CONFIG_SITE; do
520   if test -r "$ac_site_file"; then
521     echo "loading site script $ac_site_file"
522     . "$ac_site_file"
523   fi
524 done
525
526 if test -r "$cache_file"; then
527   echo "loading cache $cache_file"
528   . $cache_file
529 else
530   echo "creating cache $cache_file"
531   > $cache_file
532 fi
533
534 ac_ext=c
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
540
541 ac_exeext=
542 ac_objext=o
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
546     ac_n= ac_c='
547 ' ac_t='        '
548   else
549     ac_n=-n ac_c= ac_t=
550   fi
551 else
552   ac_n= ac_c='\c' ac_t=
553 fi
554
555
556
557 ac_aux_dir=
558 for ac_dir in ../../.. $srcdir/../../..; do
559   if test -f $ac_dir/install-sh; then
560     ac_aux_dir=$ac_dir
561     ac_install_sh="$ac_aux_dir/install-sh -c"
562     break
563   elif test -f $ac_dir/install.sh; then
564     ac_aux_dir=$ac_dir
565     ac_install_sh="$ac_aux_dir/install.sh -c"
566     break
567   fi
568 done
569 if test -z "$ac_aux_dir"; then
570   { echo "configure: error: can not find install-sh or install.sh in ../../.. $srcdir/../../.." 1>&2; exit 1; }
571 fi
572 ac_config_guess=$ac_aux_dir/config.guess
573 ac_config_sub=$ac_aux_dir/config.sub
574 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
575
576
577 # Find a good install program.  We prefer a C program (faster),
578 # so one script is as good as another.  But avoid the broken or
579 # incompatible versions:
580 # SysV /etc/install, /usr/sbin/install
581 # SunOS /usr/etc/install
582 # IRIX /sbin/install
583 # AIX /bin/install
584 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
587 # ./install, which can be erroneously created by make from ./install.sh.
588 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
589 echo "configure:590: checking for a BSD compatible install" >&5
590 if test -z "$INSTALL"; then
591 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
592   echo $ac_n "(cached) $ac_c" 1>&6
593 else
594     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
595   for ac_dir in $PATH; do
596     # Account for people who put trailing slashes in PATH elements.
597     case "$ac_dir/" in
598     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
599     *)
600       # OSF1 and SCO ODT 3.0 have their own names for install.
601       # Don't use installbsd from OSF since it installs stuff as root
602       # by default.
603       for ac_prog in ginstall scoinst install; do
604         if test -f $ac_dir/$ac_prog; then
605           if test $ac_prog = install &&
606             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
607             # AIX install.  It has an incompatible calling convention.
608             :
609           else
610             ac_cv_path_install="$ac_dir/$ac_prog -c"
611             break 2
612           fi
613         fi
614       done
615       ;;
616     esac
617   done
618   IFS="$ac_save_IFS"
619
620 fi
621   if test "${ac_cv_path_install+set}" = set; then
622     INSTALL="$ac_cv_path_install"
623   else
624     # As a last resort, use the slow shell script.  We don't cache a
625     # path for INSTALL within a source directory, because that will
626     # break other packages using the cache if that directory is
627     # removed, or if the path is relative.
628     INSTALL="$ac_install_sh"
629   fi
630 fi
631 echo "$ac_t""$INSTALL" 1>&6
632
633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
634 # It thinks the first close brace ends the variable substitution.
635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
636
637 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
638
639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
640
641 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
642 echo "configure:643: checking whether build environment is sane" >&5
643 # Just in case
644 sleep 1
645 echo timestamp > conftestfile
646 # Do `set' in a subshell so we don't clobber the current shell's
647 # arguments.  Must try -L first in case configure is actually a
648 # symlink; some systems play weird games with the mod time of symlinks
649 # (eg FreeBSD returns the mod time of the symlink's containing
650 # directory).
651 if (
652    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
653    if test "$*" = "X"; then
654       # -L didn't work.
655       set X `ls -t $srcdir/configure conftestfile`
656    fi
657    if test "$*" != "X $srcdir/configure conftestfile" \
658       && test "$*" != "X conftestfile $srcdir/configure"; then
659
660       # If neither matched, then we have a broken ls.  This can happen
661       # if, for instance, CONFIG_SHELL is bash and it inherits a
662       # broken ls alias from the environment.  This has actually
663       # happened.  Such a system could not be considered "sane".
664       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
665 alias in your environment" 1>&2; exit 1; }
666    fi
667
668    test "$2" = conftestfile
669    )
670 then
671    # Ok.
672    :
673 else
674    { echo "configure: error: newly created file is older than distributed files!
675 Check your system clock" 1>&2; exit 1; }
676 fi
677 rm -f conftest*
678 echo "$ac_t""yes" 1>&6
679 if test "$program_transform_name" = s,x,x,; then
680   program_transform_name=
681 else
682   # Double any \ or $.  echo might interpret backslashes.
683   cat <<\EOF_SED > conftestsed
684 s,\\,\\\\,g; s,\$,$$,g
685 EOF_SED
686   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
687   rm -f conftestsed
688 fi
689 test "$program_prefix" != NONE &&
690   program_transform_name="s,^,${program_prefix},; $program_transform_name"
691 # Use a double $ so make ignores it.
692 test "$program_suffix" != NONE &&
693   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
694
695 # sed with no file args requires a program.
696 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
697
698 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
699 echo "configure:700: checking whether ${MAKE-make} sets \${MAKE}" >&5
700 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
701 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
702   echo $ac_n "(cached) $ac_c" 1>&6
703 else
704   cat > conftestmake <<\EOF
705 all:
706         @echo 'ac_maketemp="${MAKE}"'
707 EOF
708 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
709 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
710 if test -n "$ac_maketemp"; then
711   eval ac_cv_prog_make_${ac_make}_set=yes
712 else
713   eval ac_cv_prog_make_${ac_make}_set=no
714 fi
715 rm -f conftestmake
716 fi
717 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
718   echo "$ac_t""yes" 1>&6
719   SET_MAKE=
720 else
721   echo "$ac_t""no" 1>&6
722   SET_MAKE="MAKE=${MAKE-make}"
723 fi
724
725 if test $host != $build; then
726   ac_tool_prefix=${host_alias}-
727 else
728   ac_tool_prefix=
729 fi
730
731 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
732 echo "configure:733: checking for Cygwin environment" >&5
733 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
734   echo $ac_n "(cached) $ac_c" 1>&6
735 else
736   cat > conftest.$ac_ext <<EOF
737 #line 738 "configure"
738 #include "confdefs.h"
739
740 int main() {
741
742 #ifndef __CYGWIN__
743 #define __CYGWIN__ __CYGWIN32__
744 #endif
745 return __CYGWIN__;
746 ; return 0; }
747 EOF
748 if { (eval echo configure:749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
749   rm -rf conftest*
750   ac_cv_cygwin=yes
751 else
752   echo "configure: failed program was:" >&5
753   cat conftest.$ac_ext >&5
754   rm -rf conftest*
755   ac_cv_cygwin=no
756 fi
757 rm -f conftest*
758 rm -f conftest*
759 fi
760
761 echo "$ac_t""$ac_cv_cygwin" 1>&6
762 CYGWIN=
763 test "$ac_cv_cygwin" = yes && CYGWIN=yes
764 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
765 echo "configure:766: checking for mingw32 environment" >&5
766 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
767   echo $ac_n "(cached) $ac_c" 1>&6
768 else
769   cat > conftest.$ac_ext <<EOF
770 #line 771 "configure"
771 #include "confdefs.h"
772
773 int main() {
774 return __MINGW32__;
775 ; return 0; }
776 EOF
777 if { (eval echo configure:778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
778   rm -rf conftest*
779   ac_cv_mingw32=yes
780 else
781   echo "configure: failed program was:" >&5
782   cat conftest.$ac_ext >&5
783   rm -rf conftest*
784   ac_cv_mingw32=no
785 fi
786 rm -f conftest*
787 rm -f conftest*
788 fi
789
790 echo "$ac_t""$ac_cv_mingw32" 1>&6
791 MINGW32=
792 test "$ac_cv_mingw32" = yes && MINGW32=yes
793
794 # Check whether --enable-multilib or --disable-multilib was given.
795 if test "${enable_multilib+set}" = set; then
796   enableval="$enable_multilib"
797   case "${enableval}" in
798   yes) multilib=yes ;;
799   no)  multilib=no ;;
800   *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
801  esac
802 else
803   multilib=yes
804 fi
805
806 # Check whether --enable-target-optspace or --disable-target-optspace was given.
807 if test "${enable_target_optspace+set}" = set; then
808   enableval="$enable_target_optspace"
809   case "${enableval}" in
810   yes) target_optspace=yes ;;
811   no)  target_optspace=no ;;
812   *)   { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
813  esac
814 else
815   target_optspace=
816 fi
817
818 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
819 if test "${enable_malloc_debugging+set}" = set; then
820   enableval="$enable_malloc_debugging"
821   case "${enableval}" in
822   yes) malloc_debugging=yes ;;
823   no)  malloc_debugging=no ;;
824   *)   { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
825  esac
826 else
827   malloc_debugging=
828 fi
829
830 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
831 if test "${enable_newlib_mb+set}" = set; then
832   enableval="$enable_newlib_mb"
833   case "${enableval}" in
834   yes) newlib_mb=yes ;;
835   no)  newlib_mb=no ;;
836   *)   { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
837  esac
838 else
839   newlib_mb=no
840 fi
841
842
843 test -z "${with_target_subdir}" && with_target_subdir=.
844
845 if test "${srcdir}" = "."; then
846   if test "${with_target_subdir}" != "."; then
847     newlib_basedir="${srcdir}/${with_multisrctop}../../.."
848   else
849     newlib_basedir="${srcdir}/${with_multisrctop}../.."
850   fi
851 else
852   newlib_basedir="${srcdir}/../.."
853 fi
854
855
856
857 # Make sure we can run config.sub.
858 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
859 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
860 fi
861
862 echo $ac_n "checking host system type""... $ac_c" 1>&6
863 echo "configure:864: checking host system type" >&5
864
865 host_alias=$host
866 case "$host_alias" in
867 NONE)
868   case $nonopt in
869   NONE)
870     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
871     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
872     fi ;;
873   *) host_alias=$nonopt ;;
874   esac ;;
875 esac
876
877 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
878 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
879 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
880 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
881 echo "$ac_t""$host" 1>&6
882
883
884
885 PACKAGE=newlib
886
887 VERSION=1.10.0
888
889 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
890   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
891 fi
892 cat >> confdefs.h <<EOF
893 #define PACKAGE "$PACKAGE"
894 EOF
895
896 cat >> confdefs.h <<EOF
897 #define VERSION "$VERSION"
898 EOF
899
900
901
902 missing_dir=`cd $ac_aux_dir && pwd`
903 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
904 echo "configure:905: checking for working aclocal" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf.  Sigh.
908 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
909    ACLOCAL=aclocal
910    echo "$ac_t""found" 1>&6
911 else
912    ACLOCAL="$missing_dir/missing aclocal"
913    echo "$ac_t""missing" 1>&6
914 fi
915
916 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
917 echo "configure:918: checking for working autoconf" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf.  Sigh.
921 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
922    AUTOCONF=autoconf
923    echo "$ac_t""found" 1>&6
924 else
925    AUTOCONF="$missing_dir/missing autoconf"
926    echo "$ac_t""missing" 1>&6
927 fi
928
929 echo $ac_n "checking for working automake""... $ac_c" 1>&6
930 echo "configure:931: checking for working automake" >&5
931 # Run test in a subshell; some versions of sh will print an error if
932 # an executable is not found, even if stderr is redirected.
933 # Redirect stdin to placate older versions of autoconf.  Sigh.
934 if (automake --version) < /dev/null > /dev/null 2>&1; then
935    AUTOMAKE=automake
936    echo "$ac_t""found" 1>&6
937 else
938    AUTOMAKE="$missing_dir/missing automake"
939    echo "$ac_t""missing" 1>&6
940 fi
941
942 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
943 echo "configure:944: checking for working autoheader" >&5
944 # Run test in a subshell; some versions of sh will print an error if
945 # an executable is not found, even if stderr is redirected.
946 # Redirect stdin to placate older versions of autoconf.  Sigh.
947 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
948    AUTOHEADER=autoheader
949    echo "$ac_t""found" 1>&6
950 else
951    AUTOHEADER="$missing_dir/missing autoheader"
952    echo "$ac_t""missing" 1>&6
953 fi
954
955 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
956 echo "configure:957: checking for working makeinfo" >&5
957 # Run test in a subshell; some versions of sh will print an error if
958 # an executable is not found, even if stderr is redirected.
959 # Redirect stdin to placate older versions of autoconf.  Sigh.
960 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
961    MAKEINFO=makeinfo
962    echo "$ac_t""found" 1>&6
963 else
964    MAKEINFO="$missing_dir/missing makeinfo"
965    echo "$ac_t""missing" 1>&6
966 fi
967
968
969
970 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
971 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
972 # are probably using a cross compiler, which will not be able to fully
973 # link an executable.  This should really be fixed in autoconf
974 # itself.
975
976
977
978 # Extract the first word of "gcc", so it can be a program name with args.
979 set dummy gcc; ac_word=$2
980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
981 echo "configure:982: checking for $ac_word" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
983   echo $ac_n "(cached) $ac_c" 1>&6
984 else
985   if test -n "$CC"; then
986   ac_cv_prog_CC="$CC" # Let the user override the test.
987 else
988   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
989   ac_dummy="$PATH"
990   for ac_dir in $ac_dummy; do
991     test -z "$ac_dir" && ac_dir=.
992     if test -f $ac_dir/$ac_word; then
993       ac_cv_prog_CC="gcc"
994       break
995     fi
996   done
997   IFS="$ac_save_ifs"
998 fi
999 fi
1000 CC="$ac_cv_prog_CC"
1001 if test -n "$CC"; then
1002   echo "$ac_t""$CC" 1>&6
1003 else
1004   echo "$ac_t""no" 1>&6
1005 fi
1006
1007 if test -z "$CC"; then
1008   # Extract the first word of "cc", so it can be a program name with args.
1009 set dummy cc; ac_word=$2
1010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1011 echo "configure:1012: checking for $ac_word" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1013   echo $ac_n "(cached) $ac_c" 1>&6
1014 else
1015   if test -n "$CC"; then
1016   ac_cv_prog_CC="$CC" # Let the user override the test.
1017 else
1018   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1019   ac_prog_rejected=no
1020   ac_dummy="$PATH"
1021   for ac_dir in $ac_dummy; do
1022     test -z "$ac_dir" && ac_dir=.
1023     if test -f $ac_dir/$ac_word; then
1024       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1025         ac_prog_rejected=yes
1026         continue
1027       fi
1028       ac_cv_prog_CC="cc"
1029       break
1030     fi
1031   done
1032   IFS="$ac_save_ifs"
1033 if test $ac_prog_rejected = yes; then
1034   # We found a bogon in the path, so make sure we never use it.
1035   set dummy $ac_cv_prog_CC
1036   shift
1037   if test $# -gt 0; then
1038     # We chose a different compiler from the bogus one.
1039     # However, it has the same basename, so the bogon will be chosen
1040     # first if we set CC to just the basename; use the full file name.
1041     shift
1042     set dummy "$ac_dir/$ac_word" "$@"
1043     shift
1044     ac_cv_prog_CC="$@"
1045   fi
1046 fi
1047 fi
1048 fi
1049 CC="$ac_cv_prog_CC"
1050 if test -n "$CC"; then
1051   echo "$ac_t""$CC" 1>&6
1052 else
1053   echo "$ac_t""no" 1>&6
1054 fi
1055
1056   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1057 fi
1058
1059 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1060 echo "configure:1061: checking whether we are using GNU C" >&5
1061 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1062   echo $ac_n "(cached) $ac_c" 1>&6
1063 else
1064   cat > conftest.c <<EOF
1065 #ifdef __GNUC__
1066   yes;
1067 #endif
1068 EOF
1069 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1070   ac_cv_prog_gcc=yes
1071 else
1072   ac_cv_prog_gcc=no
1073 fi
1074 fi
1075
1076 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1077
1078 if test $ac_cv_prog_gcc = yes; then
1079   GCC=yes
1080   ac_test_CFLAGS="${CFLAGS+set}"
1081   ac_save_CFLAGS="$CFLAGS"
1082   CFLAGS=
1083   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1084 echo "configure:1085: checking whether ${CC-cc} accepts -g" >&5
1085 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1086   echo $ac_n "(cached) $ac_c" 1>&6
1087 else
1088   echo 'void f(){}' > conftest.c
1089 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1090   ac_cv_prog_cc_g=yes
1091 else
1092   ac_cv_prog_cc_g=no
1093 fi
1094 rm -f conftest*
1095
1096 fi
1097
1098 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1099   if test "$ac_test_CFLAGS" = set; then
1100     CFLAGS="$ac_save_CFLAGS"
1101   elif test $ac_cv_prog_cc_g = yes; then
1102     CFLAGS="-g -O2"
1103   else
1104     CFLAGS="-O2"
1105   fi
1106 else
1107   GCC=
1108   test "${CFLAGS+set}" = set || CFLAGS="-g"
1109 fi
1110
1111
1112 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD).  If we don't
1113 # run it explicitly here, it will be run implicitly before
1114 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1115 # be run before AC_CANONICAL_HOST.
1116 echo $ac_n "checking build system type""... $ac_c" 1>&6
1117 echo "configure:1118: checking build system type" >&5
1118
1119 build_alias=$build
1120 case "$build_alias" in
1121 NONE)
1122   case $nonopt in
1123   NONE) build_alias=$host_alias ;;
1124   *) build_alias=$nonopt ;;
1125   esac ;;
1126 esac
1127
1128 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1129 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1130 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1131 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1132 echo "$ac_t""$build" 1>&6
1133
1134
1135 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1136 set dummy ${ac_tool_prefix}as; ac_word=$2
1137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1138 echo "configure:1139: checking for $ac_word" >&5
1139 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1140   echo $ac_n "(cached) $ac_c" 1>&6
1141 else
1142   if test -n "$AS"; then
1143   ac_cv_prog_AS="$AS" # Let the user override the test.
1144 else
1145   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1146   ac_dummy="$PATH"
1147   for ac_dir in $ac_dummy; do
1148     test -z "$ac_dir" && ac_dir=.
1149     if test -f $ac_dir/$ac_word; then
1150       ac_cv_prog_AS="${ac_tool_prefix}as"
1151       break
1152     fi
1153   done
1154   IFS="$ac_save_ifs"
1155   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1156 fi
1157 fi
1158 AS="$ac_cv_prog_AS"
1159 if test -n "$AS"; then
1160   echo "$ac_t""$AS" 1>&6
1161 else
1162   echo "$ac_t""no" 1>&6
1163 fi
1164
1165
1166
1167 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1168 set dummy ${ac_tool_prefix}ar; ac_word=$2
1169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1170 echo "configure:1171: checking for $ac_word" >&5
1171 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1172   echo $ac_n "(cached) $ac_c" 1>&6
1173 else
1174   if test -n "$AR"; then
1175   ac_cv_prog_AR="$AR" # Let the user override the test.
1176 else
1177   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1178   ac_dummy="$PATH"
1179   for ac_dir in $ac_dummy; do
1180     test -z "$ac_dir" && ac_dir=.
1181     if test -f $ac_dir/$ac_word; then
1182       ac_cv_prog_AR="${ac_tool_prefix}ar"
1183       break
1184     fi
1185   done
1186   IFS="$ac_save_ifs"
1187   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1188 fi
1189 fi
1190 AR="$ac_cv_prog_AR"
1191 if test -n "$AR"; then
1192   echo "$ac_t""$AR" 1>&6
1193 else
1194   echo "$ac_t""no" 1>&6
1195 fi
1196
1197
1198
1199 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1200 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1202 echo "configure:1203: checking for $ac_word" >&5
1203 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1204   echo $ac_n "(cached) $ac_c" 1>&6
1205 else
1206   if test -n "$RANLIB"; then
1207   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1208 else
1209   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1210   ac_dummy="$PATH"
1211   for ac_dir in $ac_dummy; do
1212     test -z "$ac_dir" && ac_dir=.
1213     if test -f $ac_dir/$ac_word; then
1214       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1215       break
1216     fi
1217   done
1218   IFS="$ac_save_ifs"
1219 fi
1220 fi
1221 RANLIB="$ac_cv_prog_RANLIB"
1222 if test -n "$RANLIB"; then
1223   echo "$ac_t""$RANLIB" 1>&6
1224 else
1225   echo "$ac_t""no" 1>&6
1226 fi
1227
1228
1229 if test -z "$ac_cv_prog_RANLIB"; then
1230 if test -n "$ac_tool_prefix"; then
1231   # Extract the first word of "ranlib", so it can be a program name with args.
1232 set dummy ranlib; ac_word=$2
1233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_word" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1236   echo $ac_n "(cached) $ac_c" 1>&6
1237 else
1238   if test -n "$RANLIB"; then
1239   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1240 else
1241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1242   ac_dummy="$PATH"
1243   for ac_dir in $ac_dummy; do
1244     test -z "$ac_dir" && ac_dir=.
1245     if test -f $ac_dir/$ac_word; then
1246       ac_cv_prog_RANLIB="ranlib"
1247       break
1248     fi
1249   done
1250   IFS="$ac_save_ifs"
1251   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1252 fi
1253 fi
1254 RANLIB="$ac_cv_prog_RANLIB"
1255 if test -n "$RANLIB"; then
1256   echo "$ac_t""$RANLIB" 1>&6
1257 else
1258   echo "$ac_t""no" 1>&6
1259 fi
1260
1261 else
1262   RANLIB=":"
1263 fi
1264 fi
1265
1266
1267 # Find a good install program.  We prefer a C program (faster),
1268 # so one script is as good as another.  But avoid the broken or
1269 # incompatible versions:
1270 # SysV /etc/install, /usr/sbin/install
1271 # SunOS /usr/etc/install
1272 # IRIX /sbin/install
1273 # AIX /bin/install
1274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1277 # ./install, which can be erroneously created by make from ./install.sh.
1278 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1279 echo "configure:1280: checking for a BSD compatible install" >&5
1280 if test -z "$INSTALL"; then
1281 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1282   echo $ac_n "(cached) $ac_c" 1>&6
1283 else
1284     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1285   for ac_dir in $PATH; do
1286     # Account for people who put trailing slashes in PATH elements.
1287     case "$ac_dir/" in
1288     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1289     *)
1290       # OSF1 and SCO ODT 3.0 have their own names for install.
1291       # Don't use installbsd from OSF since it installs stuff as root
1292       # by default.
1293       for ac_prog in ginstall scoinst install; do
1294         if test -f $ac_dir/$ac_prog; then
1295           if test $ac_prog = install &&
1296             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1297             # AIX install.  It has an incompatible calling convention.
1298             :
1299           else
1300             ac_cv_path_install="$ac_dir/$ac_prog -c"
1301             break 2
1302           fi
1303         fi
1304       done
1305       ;;
1306     esac
1307   done
1308   IFS="$ac_save_IFS"
1309
1310 fi
1311   if test "${ac_cv_path_install+set}" = set; then
1312     INSTALL="$ac_cv_path_install"
1313   else
1314     # As a last resort, use the slow shell script.  We don't cache a
1315     # path for INSTALL within a source directory, because that will
1316     # break other packages using the cache if that directory is
1317     # removed, or if the path is relative.
1318     INSTALL="$ac_install_sh"
1319   fi
1320 fi
1321 echo "$ac_t""$INSTALL" 1>&6
1322
1323 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1324 # It thinks the first close brace ends the variable substitution.
1325 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1326
1327 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1328
1329 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1330
1331
1332 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1333 echo "configure:1334: checking whether to enable maintainer-specific portions of Makefiles" >&5
1334     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1335 if test "${enable_maintainer_mode+set}" = set; then
1336   enableval="$enable_maintainer_mode"
1337   USE_MAINTAINER_MODE=$enableval
1338 else
1339   USE_MAINTAINER_MODE=no
1340 fi
1341
1342   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1343   
1344
1345 if test $USE_MAINTAINER_MODE = yes; then
1346   MAINTAINER_MODE_TRUE=
1347   MAINTAINER_MODE_FALSE='#'
1348 else
1349   MAINTAINER_MODE_TRUE='#'
1350   MAINTAINER_MODE_FALSE=
1351 fi
1352   MAINT=$MAINTAINER_MODE_TRUE
1353   
1354
1355
1356 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1357 # at least currently, we never actually build a program, so we never
1358 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1359 # fails, because we are probably configuring with a cross compiler
1360 # which can't create executables.  So we include AC_EXEEXT to keep
1361 # automake happy, but we don't execute it, since we don't care about
1362 # the result.
1363 if false; then
1364   
1365
1366 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1367 echo "configure:1368: checking for executable suffix" >&5
1368 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1369   echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1372   ac_cv_exeext=.exe
1373 else
1374   rm -f conftest*
1375   echo 'int main () { return 0; }' > conftest.$ac_ext
1376   ac_cv_exeext=
1377   if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1378     for file in conftest.*; do
1379       case $file in
1380       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1381       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1382       esac
1383     done
1384   else
1385     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1386   fi
1387   rm -f conftest*
1388   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1389 fi
1390 fi
1391
1392 EXEEXT=""
1393 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1394 echo "$ac_t""${ac_cv_exeext}" 1>&6
1395 ac_exeext=$EXEEXT
1396
1397 fi
1398
1399 . ${newlib_basedir}/configure.host
1400
1401 case ${newlib_basedir} in
1402 /* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;;
1403 *) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;;
1404 esac
1405
1406 newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../../targ-include -I${newlib_flagbasedir}/libc/include"
1407 case "${host}" in
1408   *-*-cygwin*)
1409     newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/cygwin/include  -I${newlib_flagbasedir}/../winsup/w32api/include"
1410     ;;
1411 esac
1412
1413 newlib_cflags="${newlib_cflags} -fno-builtin"
1414
1415 NEWLIB_CFLAGS=${newlib_cflags}
1416
1417
1418 LDFLAGS=${ldflags}
1419
1420
1421
1422
1423 if test x${use_libtool} = xyes; then
1424   USE_LIBTOOL_TRUE=
1425   USE_LIBTOOL_FALSE='#'
1426 else
1427   USE_LIBTOOL_TRUE='#'
1428   USE_LIBTOOL_FALSE=
1429 fi
1430
1431
1432
1433
1434
1435
1436
1437
1438 if test "${use_libtool}" = "yes"; then
1439
1440 # Check whether --enable-shared or --disable-shared was given.
1441 if test "${enable_shared+set}" = set; then
1442   enableval="$enable_shared"
1443   p=${PACKAGE-default}
1444 case "$enableval" in
1445 yes) enable_shared=yes ;;
1446 no) enable_shared=no ;;
1447 *)
1448   enable_shared=no
1449   # Look at the argument we got.  We use all the common list separators.
1450   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1451   for pkg in $enableval; do
1452     if test "X$pkg" = "X$p"; then
1453       enable_shared=yes
1454     fi
1455   done
1456   IFS="$ac_save_ifs"
1457   ;;
1458 esac
1459 else
1460   enable_shared=yes
1461 fi
1462
1463 # Check whether --enable-static or --disable-static was given.
1464 if test "${enable_static+set}" = set; then
1465   enableval="$enable_static"
1466   p=${PACKAGE-default}
1467 case "$enableval" in
1468 yes) enable_static=yes ;;
1469 no) enable_static=no ;;
1470 *)
1471   enable_static=no
1472   # Look at the argument we got.  We use all the common list separators.
1473   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1474   for pkg in $enableval; do
1475     if test "X$pkg" = "X$p"; then
1476       enable_static=yes
1477     fi
1478   done
1479   IFS="$ac_save_ifs"
1480   ;;
1481 esac
1482 else
1483   enable_static=yes
1484 fi
1485
1486 # Check whether --enable-fast-install or --disable-fast-install was given.
1487 if test "${enable_fast_install+set}" = set; then
1488   enableval="$enable_fast_install"
1489   p=${PACKAGE-default}
1490 case "$enableval" in
1491 yes) enable_fast_install=yes ;;
1492 no) enable_fast_install=no ;;
1493 *)
1494   enable_fast_install=no
1495   # Look at the argument we got.  We use all the common list separators.
1496   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1497   for pkg in $enableval; do
1498     if test "X$pkg" = "X$p"; then
1499       enable_fast_install=yes
1500     fi
1501   done
1502   IFS="$ac_save_ifs"
1503   ;;
1504 esac
1505 else
1506   enable_fast_install=yes
1507 fi
1508
1509 # Extract the first word of "ranlib", so it can be a program name with args.
1510 set dummy ranlib; ac_word=$2
1511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1512 echo "configure:1513: checking for $ac_word" >&5
1513 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1514   echo $ac_n "(cached) $ac_c" 1>&6
1515 else
1516   if test -n "$RANLIB"; then
1517   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1518 else
1519   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1520   ac_dummy="$PATH"
1521   for ac_dir in $ac_dummy; do
1522     test -z "$ac_dir" && ac_dir=.
1523     if test -f $ac_dir/$ac_word; then
1524       ac_cv_prog_RANLIB="ranlib"
1525       break
1526     fi
1527   done
1528   IFS="$ac_save_ifs"
1529   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1530 fi
1531 fi
1532 RANLIB="$ac_cv_prog_RANLIB"
1533 if test -n "$RANLIB"; then
1534   echo "$ac_t""$RANLIB" 1>&6
1535 else
1536   echo "$ac_t""no" 1>&6
1537 fi
1538
1539 # Extract the first word of "gcc", so it can be a program name with args.
1540 set dummy gcc; ac_word=$2
1541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542 echo "configure:1543: checking for $ac_word" >&5
1543 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1544   echo $ac_n "(cached) $ac_c" 1>&6
1545 else
1546   if test -n "$CC"; then
1547   ac_cv_prog_CC="$CC" # Let the user override the test.
1548 else
1549   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1550   ac_dummy="$PATH"
1551   for ac_dir in $ac_dummy; do
1552     test -z "$ac_dir" && ac_dir=.
1553     if test -f $ac_dir/$ac_word; then
1554       ac_cv_prog_CC="gcc"
1555       break
1556     fi
1557   done
1558   IFS="$ac_save_ifs"
1559 fi
1560 fi
1561 CC="$ac_cv_prog_CC"
1562 if test -n "$CC"; then
1563   echo "$ac_t""$CC" 1>&6
1564 else
1565   echo "$ac_t""no" 1>&6
1566 fi
1567
1568 if test -z "$CC"; then
1569   # Extract the first word of "cc", so it can be a program name with args.
1570 set dummy cc; ac_word=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1573 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1574   echo $ac_n "(cached) $ac_c" 1>&6
1575 else
1576   if test -n "$CC"; then
1577   ac_cv_prog_CC="$CC" # Let the user override the test.
1578 else
1579   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1580   ac_prog_rejected=no
1581   ac_dummy="$PATH"
1582   for ac_dir in $ac_dummy; do
1583     test -z "$ac_dir" && ac_dir=.
1584     if test -f $ac_dir/$ac_word; then
1585       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1586         ac_prog_rejected=yes
1587         continue
1588       fi
1589       ac_cv_prog_CC="cc"
1590       break
1591     fi
1592   done
1593   IFS="$ac_save_ifs"
1594 if test $ac_prog_rejected = yes; then
1595   # We found a bogon in the path, so make sure we never use it.
1596   set dummy $ac_cv_prog_CC
1597   shift
1598   if test $# -gt 0; then
1599     # We chose a different compiler from the bogus one.
1600     # However, it has the same basename, so the bogon will be chosen
1601     # first if we set CC to just the basename; use the full file name.
1602     shift
1603     set dummy "$ac_dir/$ac_word" "$@"
1604     shift
1605     ac_cv_prog_CC="$@"
1606   fi
1607 fi
1608 fi
1609 fi
1610 CC="$ac_cv_prog_CC"
1611 if test -n "$CC"; then
1612   echo "$ac_t""$CC" 1>&6
1613 else
1614   echo "$ac_t""no" 1>&6
1615 fi
1616
1617   if test -z "$CC"; then
1618     case "`uname -s`" in
1619     *win32* | *WIN32*)
1620       # Extract the first word of "cl", so it can be a program name with args.
1621 set dummy cl; ac_word=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1625   echo $ac_n "(cached) $ac_c" 1>&6
1626 else
1627   if test -n "$CC"; then
1628   ac_cv_prog_CC="$CC" # Let the user override the test.
1629 else
1630   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1631   ac_dummy="$PATH"
1632   for ac_dir in $ac_dummy; do
1633     test -z "$ac_dir" && ac_dir=.
1634     if test -f $ac_dir/$ac_word; then
1635       ac_cv_prog_CC="cl"
1636       break
1637     fi
1638   done
1639   IFS="$ac_save_ifs"
1640 fi
1641 fi
1642 CC="$ac_cv_prog_CC"
1643 if test -n "$CC"; then
1644   echo "$ac_t""$CC" 1>&6
1645 else
1646   echo "$ac_t""no" 1>&6
1647 fi
1648  ;;
1649     esac
1650   fi
1651   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1652 fi
1653
1654 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1655 echo "configure:1656: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1656
1657 ac_ext=c
1658 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1659 ac_cpp='$CPP $CPPFLAGS'
1660 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1661 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1662 cross_compiling=$ac_cv_prog_cc_cross
1663
1664 cat > conftest.$ac_ext << EOF
1665
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1668
1669 main(){return(0);}
1670 EOF
1671 if { (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1672   ac_cv_prog_cc_works=yes
1673   # If we can't run a trivial program, we are probably using a cross compiler.
1674   if (./conftest; exit) 2>/dev/null; then
1675     ac_cv_prog_cc_cross=no
1676   else
1677     ac_cv_prog_cc_cross=yes
1678   fi
1679 else
1680   echo "configure: failed program was:" >&5
1681   cat conftest.$ac_ext >&5
1682   ac_cv_prog_cc_works=no
1683 fi
1684 rm -fr conftest*
1685 ac_ext=c
1686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1687 ac_cpp='$CPP $CPPFLAGS'
1688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1690 cross_compiling=$ac_cv_prog_cc_cross
1691
1692 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1693 if test $ac_cv_prog_cc_works = no; then
1694   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1695 fi
1696 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1697 echo "configure:1698: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1698 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1699 cross_compiling=$ac_cv_prog_cc_cross
1700
1701 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1702 echo "configure:1703: checking whether we are using GNU C" >&5
1703 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1704   echo $ac_n "(cached) $ac_c" 1>&6
1705 else
1706   cat > conftest.c <<EOF
1707 #ifdef __GNUC__
1708   yes;
1709 #endif
1710 EOF
1711 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1712   ac_cv_prog_gcc=yes
1713 else
1714   ac_cv_prog_gcc=no
1715 fi
1716 fi
1717
1718 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1719
1720 if test $ac_cv_prog_gcc = yes; then
1721   GCC=yes
1722 else
1723   GCC=
1724 fi
1725
1726 ac_test_CFLAGS="${CFLAGS+set}"
1727 ac_save_CFLAGS="$CFLAGS"
1728 CFLAGS=
1729 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1730 echo "configure:1731: checking whether ${CC-cc} accepts -g" >&5
1731 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1732   echo $ac_n "(cached) $ac_c" 1>&6
1733 else
1734   echo 'void f(){}' > conftest.c
1735 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1736   ac_cv_prog_cc_g=yes
1737 else
1738   ac_cv_prog_cc_g=no
1739 fi
1740 rm -f conftest*
1741
1742 fi
1743
1744 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1745 if test "$ac_test_CFLAGS" = set; then
1746   CFLAGS="$ac_save_CFLAGS"
1747 elif test $ac_cv_prog_cc_g = yes; then
1748   if test "$GCC" = yes; then
1749     CFLAGS="-g -O2"
1750   else
1751     CFLAGS="-g"
1752   fi
1753 else
1754   if test "$GCC" = yes; then
1755     CFLAGS="-O2"
1756   else
1757     CFLAGS=
1758   fi
1759 fi
1760
1761 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1762 if test "${with_gnu_ld+set}" = set; then
1763   withval="$with_gnu_ld"
1764   test "$withval" = no || with_gnu_ld=yes
1765 else
1766   with_gnu_ld=no
1767 fi
1768
1769 ac_prog=ld
1770 if test "$ac_cv_prog_gcc" = yes; then
1771   # Check if gcc -print-prog-name=ld gives a path.
1772   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1773 echo "configure:1774: checking for ld used by GCC" >&5
1774   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1775   case "$ac_prog" in
1776     # Accept absolute paths.
1777     [\\/]* | [A-Za-z]:[\\/]*)
1778       re_direlt='/[^/][^/]*/\.\./'
1779       # Canonicalize the path of ld
1780       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1781       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1782         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1783       done
1784       test -z "$LD" && LD="$ac_prog"
1785       ;;
1786   "")
1787     # If it fails, then pretend we aren't using GCC.
1788     ac_prog=ld
1789     ;;
1790   *)
1791     # If it is relative, then search for the first ld in PATH.
1792     with_gnu_ld=unknown
1793     ;;
1794   esac
1795 elif test "$with_gnu_ld" = yes; then
1796   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1797 echo "configure:1798: checking for GNU ld" >&5
1798 else
1799   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1800 echo "configure:1801: checking for non-GNU ld" >&5
1801 fi
1802 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1803   echo $ac_n "(cached) $ac_c" 1>&6
1804 else
1805   if test -z "$LD"; then
1806   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1807   for ac_dir in $PATH; do
1808     test -z "$ac_dir" && ac_dir=.
1809     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1810       ac_cv_path_LD="$ac_dir/$ac_prog"
1811       # Check to see if the program is GNU ld.  I'd rather use --version,
1812       # but apparently some GNU ld's only accept -v.
1813       # Break only if it was the GNU/non-GNU ld that we prefer.
1814       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1815         test "$with_gnu_ld" != no && break
1816       else
1817         test "$with_gnu_ld" != yes && break
1818       fi
1819     fi
1820   done
1821   IFS="$ac_save_ifs"
1822 else
1823   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1824 fi
1825 fi
1826
1827 LD="$ac_cv_path_LD"
1828 if test -n "$LD"; then
1829   echo "$ac_t""$LD" 1>&6
1830 else
1831   echo "$ac_t""no" 1>&6
1832 fi
1833 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1834 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1835 echo "configure:1836: checking if the linker ($LD) is GNU ld" >&5
1836 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1837   echo $ac_n "(cached) $ac_c" 1>&6
1838 else
1839   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1840 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1841   ac_cv_prog_gnu_ld=yes
1842 else
1843   ac_cv_prog_gnu_ld=no
1844 fi
1845 fi
1846
1847 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1848
1849
1850 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1851 echo "configure:1852: checking for BSD-compatible nm" >&5
1852 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1853   echo $ac_n "(cached) $ac_c" 1>&6
1854 else
1855   if test -n "$NM"; then
1856   # Let the user override the test.
1857   ac_cv_path_NM="$NM"
1858 else
1859   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1860   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1861     test -z "$ac_dir" && ac_dir=.
1862     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1863       # Check to see if the nm accepts a BSD-compat flag.
1864       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1865       #   nm: unknown option "B" ignored
1866       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1867         ac_cv_path_NM="$ac_dir/nm -B"
1868         break
1869       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1870         ac_cv_path_NM="$ac_dir/nm -p"
1871         break
1872       else
1873         ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1874         continue # so that we can try to find one that supports BSD flags
1875       fi
1876     fi
1877   done
1878   IFS="$ac_save_ifs"
1879   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1880 fi
1881 fi
1882
1883 NM="$ac_cv_path_NM"
1884 echo "$ac_t""$NM" 1>&6
1885
1886 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1887 echo "configure:1888: checking whether ln -s works" >&5
1888 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1889   echo $ac_n "(cached) $ac_c" 1>&6
1890 else
1891   rm -f conftestdata
1892 if ln -s X conftestdata 2>/dev/null
1893 then
1894   rm -f conftestdata
1895   ac_cv_prog_LN_S="ln -s"
1896 else
1897   ac_cv_prog_LN_S=ln
1898 fi
1899 fi
1900 LN_S="$ac_cv_prog_LN_S"
1901 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1902   echo "$ac_t""yes" 1>&6
1903 else
1904   echo "$ac_t""no" 1>&6
1905 fi
1906
1907
1908 # Check for any special flags to pass to ltconfig.
1909 libtool_flags="--cache-file=$cache_file"
1910 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1911 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1912 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1913 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1914 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1915
1916 libtool_flags="$libtool_flags --enable-win32-dll"
1917 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1918 if test "${enable_libtool_lock+set}" = set; then
1919   enableval="$enable_libtool_lock"
1920   :
1921 fi
1922
1923 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1924 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1925
1926 # Some flags need to be propagated to the compiler or linker for good
1927 # libtool support.
1928 case "$host" in
1929 *-*-irix6*)
1930   # Find out which ABI we are using.
1931   echo '#line 1932 "configure"' > conftest.$ac_ext
1932   if { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1933     case "`/usr/bin/file conftest.o`" in
1934     *32-bit*)
1935       LD="${LD-ld} -32"
1936       ;;
1937     *N32*)
1938       LD="${LD-ld} -n32"
1939       ;;
1940     *64-bit*)
1941       LD="${LD-ld} -64"
1942       ;;
1943     esac
1944   fi
1945   rm -rf conftest*
1946   ;;
1947
1948 *-*-sco3.2v5*)
1949   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1950   SAVE_CFLAGS="$CFLAGS"
1951   CFLAGS="$CFLAGS -belf"
1952   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1953 echo "configure:1954: checking whether the C compiler needs -belf" >&5
1954 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1955   echo $ac_n "(cached) $ac_c" 1>&6
1956 else
1957   cat > conftest.$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1960
1961 int main() {
1962
1963 ; return 0; }
1964 EOF
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1966   rm -rf conftest*
1967   lt_cv_cc_needs_belf=yes
1968 else
1969   echo "configure: failed program was:" >&5
1970   cat conftest.$ac_ext >&5
1971   rm -rf conftest*
1972   lt_cv_cc_needs_belf=no
1973 fi
1974 rm -f conftest*
1975 fi
1976
1977 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1978   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1979     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1980     CFLAGS="$SAVE_CFLAGS"
1981   fi
1982   ;;
1983
1984 *-*-cygwin* | *-*-mingw*)
1985   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1986 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988 echo "configure:1989: checking for $ac_word" >&5
1989 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1990   echo $ac_n "(cached) $ac_c" 1>&6
1991 else
1992   if test -n "$DLLTOOL"; then
1993   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1994 else
1995   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1996   ac_dummy="$PATH"
1997   for ac_dir in $ac_dummy; do
1998     test -z "$ac_dir" && ac_dir=.
1999     if test -f $ac_dir/$ac_word; then
2000       ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2001       break
2002     fi
2003   done
2004   IFS="$ac_save_ifs"
2005 fi
2006 fi
2007 DLLTOOL="$ac_cv_prog_DLLTOOL"
2008 if test -n "$DLLTOOL"; then
2009   echo "$ac_t""$DLLTOOL" 1>&6
2010 else
2011   echo "$ac_t""no" 1>&6
2012 fi
2013
2014
2015 if test -z "$ac_cv_prog_DLLTOOL"; then
2016 if test -n "$ac_tool_prefix"; then
2017   # Extract the first word of "dlltool", so it can be a program name with args.
2018 set dummy dlltool; ac_word=$2
2019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_word" >&5
2021 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2022   echo $ac_n "(cached) $ac_c" 1>&6
2023 else
2024   if test -n "$DLLTOOL"; then
2025   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2026 else
2027   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2028   ac_dummy="$PATH"
2029   for ac_dir in $ac_dummy; do
2030     test -z "$ac_dir" && ac_dir=.
2031     if test -f $ac_dir/$ac_word; then
2032       ac_cv_prog_DLLTOOL="dlltool"
2033       break
2034     fi
2035   done
2036   IFS="$ac_save_ifs"
2037   test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2038 fi
2039 fi
2040 DLLTOOL="$ac_cv_prog_DLLTOOL"
2041 if test -n "$DLLTOOL"; then
2042   echo "$ac_t""$DLLTOOL" 1>&6
2043 else
2044   echo "$ac_t""no" 1>&6
2045 fi
2046
2047 else
2048   DLLTOOL="false"
2049 fi
2050 fi
2051
2052   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}as; ac_word=$2
2054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2055 echo "configure:2056: checking for $ac_word" >&5
2056 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2057   echo $ac_n "(cached) $ac_c" 1>&6
2058 else
2059   if test -n "$AS"; then
2060   ac_cv_prog_AS="$AS" # Let the user override the test.
2061 else
2062   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2063   ac_dummy="$PATH"
2064   for ac_dir in $ac_dummy; do
2065     test -z "$ac_dir" && ac_dir=.
2066     if test -f $ac_dir/$ac_word; then
2067       ac_cv_prog_AS="${ac_tool_prefix}as"
2068       break
2069     fi
2070   done
2071   IFS="$ac_save_ifs"
2072 fi
2073 fi
2074 AS="$ac_cv_prog_AS"
2075 if test -n "$AS"; then
2076   echo "$ac_t""$AS" 1>&6
2077 else
2078   echo "$ac_t""no" 1>&6
2079 fi
2080
2081
2082 if test -z "$ac_cv_prog_AS"; then
2083 if test -n "$ac_tool_prefix"; then
2084   # Extract the first word of "as", so it can be a program name with args.
2085 set dummy as; ac_word=$2
2086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2087 echo "configure:2088: checking for $ac_word" >&5
2088 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2089   echo $ac_n "(cached) $ac_c" 1>&6
2090 else
2091   if test -n "$AS"; then
2092   ac_cv_prog_AS="$AS" # Let the user override the test.
2093 else
2094   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2095   ac_dummy="$PATH"
2096   for ac_dir in $ac_dummy; do
2097     test -z "$ac_dir" && ac_dir=.
2098     if test -f $ac_dir/$ac_word; then
2099       ac_cv_prog_AS="as"
2100       break
2101     fi
2102   done
2103   IFS="$ac_save_ifs"
2104   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2105 fi
2106 fi
2107 AS="$ac_cv_prog_AS"
2108 if test -n "$AS"; then
2109   echo "$ac_t""$AS" 1>&6
2110 else
2111   echo "$ac_t""no" 1>&6
2112 fi
2113
2114 else
2115   AS="false"
2116 fi
2117 fi
2118
2119   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2120 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2122 echo "configure:2123: checking for $ac_word" >&5
2123 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2124   echo $ac_n "(cached) $ac_c" 1>&6
2125 else
2126   if test -n "$OBJDUMP"; then
2127   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2128 else
2129   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2130   ac_dummy="$PATH"
2131   for ac_dir in $ac_dummy; do
2132     test -z "$ac_dir" && ac_dir=.
2133     if test -f $ac_dir/$ac_word; then
2134       ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2135       break
2136     fi
2137   done
2138   IFS="$ac_save_ifs"
2139 fi
2140 fi
2141 OBJDUMP="$ac_cv_prog_OBJDUMP"
2142 if test -n "$OBJDUMP"; then
2143   echo "$ac_t""$OBJDUMP" 1>&6
2144 else
2145   echo "$ac_t""no" 1>&6
2146 fi
2147
2148
2149 if test -z "$ac_cv_prog_OBJDUMP"; then
2150 if test -n "$ac_tool_prefix"; then
2151   # Extract the first word of "objdump", so it can be a program name with args.
2152 set dummy objdump; ac_word=$2
2153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2154 echo "configure:2155: checking for $ac_word" >&5
2155 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2156   echo $ac_n "(cached) $ac_c" 1>&6
2157 else
2158   if test -n "$OBJDUMP"; then
2159   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2160 else
2161   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2162   ac_dummy="$PATH"
2163   for ac_dir in $ac_dummy; do
2164     test -z "$ac_dir" && ac_dir=.
2165     if test -f $ac_dir/$ac_word; then
2166       ac_cv_prog_OBJDUMP="objdump"
2167       break
2168     fi
2169   done
2170   IFS="$ac_save_ifs"
2171   test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2172 fi
2173 fi
2174 OBJDUMP="$ac_cv_prog_OBJDUMP"
2175 if test -n "$OBJDUMP"; then
2176   echo "$ac_t""$OBJDUMP" 1>&6
2177 else
2178   echo "$ac_t""no" 1>&6
2179 fi
2180
2181 else
2182   OBJDUMP="false"
2183 fi
2184 fi
2185
2186   ;;
2187
2188 esac
2189
2190
2191 # Save cache, so that ltconfig can load it
2192 cat > confcache <<\EOF
2193 # This file is a shell script that caches the results of configure
2194 # tests run on this system so they can be shared between configure
2195 # scripts and configure runs.  It is not useful on other systems.
2196 # If it contains results you don't want to keep, you may remove or edit it.
2197 #
2198 # By default, configure uses ./config.cache as the cache file,
2199 # creating it if it does not exist already.  You can give configure
2200 # the --cache-file=FILE option to use a different cache file; that is
2201 # what configure does when it calls configure scripts in
2202 # subdirectories, so they share the cache.
2203 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2204 # config.status only pays attention to the cache file if you give it the
2205 # --recheck option to rerun configure.
2206 #
2207 EOF
2208 # The following way of writing the cache mishandles newlines in values,
2209 # but we know of no workaround that is simple, portable, and efficient.
2210 # So, don't put newlines in cache variables' values.
2211 # Ultrix sh set writes to stderr and can't be redirected directly,
2212 # and sets the high bit in the cache file unless we assign to the vars.
2213 (set) 2>&1 |
2214   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2215   *ac_space=\ *)
2216     # `set' does not quote correctly, so add quotes (double-quote substitution
2217     # turns \\\\ into \\, and sed turns \\ into \).
2218     sed -n \
2219       -e "s/'/'\\\\''/g" \
2220       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2221     ;;
2222   *)
2223     # `set' quotes correctly as required by POSIX, so do not add quotes.
2224     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2225     ;;
2226   esac >> confcache
2227 if cmp -s $cache_file confcache; then
2228   :
2229 else
2230   if test -w $cache_file; then
2231     echo "updating cache $cache_file"
2232     cat confcache > $cache_file
2233   else
2234     echo "not updating unwritable cache $cache_file"
2235   fi
2236 fi
2237 rm -f confcache
2238
2239
2240 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2241 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2242 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2243 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2244 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2245 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2246 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2247 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2248
2249 # Reload cache, that may have been modified by ltconfig
2250 if test -r "$cache_file"; then
2251   echo "loading cache $cache_file"
2252   . $cache_file
2253 else
2254   echo "creating cache $cache_file"
2255   > $cache_file
2256 fi
2257
2258
2259 # This can be used to rebuild libtool when needed
2260 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2261
2262 # Always use our own libtool.
2263 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2264
2265 # Redirect the config.log output again, so that the ltconfig log is not
2266 # clobbered by the next message.
2267 exec 5>>./config.log
2268
2269 fi
2270
2271 if test -n "${sys_dir}"; then
2272   subdirs="${sys_dir}"
2273
2274 fi
2275
2276 CRT0=
2277 if test -n "${sys_dir}"; then
2278   CRT0=crt0.o
2279 fi
2280
2281
2282
2283
2284 if test x${sys_dir} != x; then
2285   HAVE_SYS_DIR_TRUE=
2286   HAVE_SYS_DIR_FALSE='#'
2287 else
2288   HAVE_SYS_DIR_TRUE='#'
2289   HAVE_SYS_DIR_FALSE=
2290 fi
2291
2292 trap '' 1 2 15
2293 cat > confcache <<\EOF
2294 # This file is a shell script that caches the results of configure
2295 # tests run on this system so they can be shared between configure
2296 # scripts and configure runs.  It is not useful on other systems.
2297 # If it contains results you don't want to keep, you may remove or edit it.
2298 #
2299 # By default, configure uses ./config.cache as the cache file,
2300 # creating it if it does not exist already.  You can give configure
2301 # the --cache-file=FILE option to use a different cache file; that is
2302 # what configure does when it calls configure scripts in
2303 # subdirectories, so they share the cache.
2304 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2305 # config.status only pays attention to the cache file if you give it the
2306 # --recheck option to rerun configure.
2307 #
2308 EOF
2309 # The following way of writing the cache mishandles newlines in values,
2310 # but we know of no workaround that is simple, portable, and efficient.
2311 # So, don't put newlines in cache variables' values.
2312 # Ultrix sh set writes to stderr and can't be redirected directly,
2313 # and sets the high bit in the cache file unless we assign to the vars.
2314 (set) 2>&1 |
2315   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2316   *ac_space=\ *)
2317     # `set' does not quote correctly, so add quotes (double-quote substitution
2318     # turns \\\\ into \\, and sed turns \\ into \).
2319     sed -n \
2320       -e "s/'/'\\\\''/g" \
2321       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2322     ;;
2323   *)
2324     # `set' quotes correctly as required by POSIX, so do not add quotes.
2325     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2326     ;;
2327   esac >> confcache
2328 if cmp -s $cache_file confcache; then
2329   :
2330 else
2331   if test -w $cache_file; then
2332     echo "updating cache $cache_file"
2333     cat confcache > $cache_file
2334   else
2335     echo "not updating unwritable cache $cache_file"
2336   fi
2337 fi
2338 rm -f confcache
2339
2340 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2341
2342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2343 # Let make expand exec_prefix.
2344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2345
2346 # Any assignment to VPATH causes Sun make to only execute
2347 # the first set of double-colon rules, so remove it if not needed.
2348 # If there is a colon in the path, we need to keep it.
2349 if test "x$srcdir" = x.; then
2350   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2351 fi
2352
2353 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2354
2355 # Transform confdefs.h into DEFS.
2356 # Protect against shell expansion while executing Makefile rules.
2357 # Protect against Makefile macro expansion.
2358 cat > conftest.defs <<\EOF
2359 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2360 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2361 s%\[%\\&%g
2362 s%\]%\\&%g
2363 s%\$%$$%g
2364 EOF
2365 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2366 rm -f conftest.defs
2367
2368
2369 # Without the "./", some shells look in PATH for config.status.
2370 : ${CONFIG_STATUS=./config.status}
2371
2372 echo creating $CONFIG_STATUS
2373 rm -f $CONFIG_STATUS
2374 cat > $CONFIG_STATUS <<EOF
2375 #! /bin/sh
2376 # Generated automatically by configure.
2377 # Run this file to recreate the current configuration.
2378 # This directory was configured as follows,
2379 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2380 #
2381 # $0 $ac_configure_args
2382 #
2383 # Compiler output produced by configure, useful for debugging
2384 # configure, is in ./config.log if it exists.
2385
2386 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2387 for ac_option
2388 do
2389   case "\$ac_option" in
2390   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2391     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2392     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2393   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2394     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2395     exit 0 ;;
2396   -help | --help | --hel | --he | --h)
2397     echo "\$ac_cs_usage"; exit 0 ;;
2398   *) echo "\$ac_cs_usage"; exit 1 ;;
2399   esac
2400 done
2401
2402 ac_given_srcdir=$srcdir
2403 ac_given_INSTALL="$INSTALL"
2404
2405 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2406 EOF
2407 cat >> $CONFIG_STATUS <<EOF
2408
2409 # Protect against being on the right side of a sed subst in config.status.
2410 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2411  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2412 $ac_vpsub
2413 $extrasub
2414 s%@SHELL@%$SHELL%g
2415 s%@CFLAGS@%$CFLAGS%g
2416 s%@CPPFLAGS@%$CPPFLAGS%g
2417 s%@CXXFLAGS@%$CXXFLAGS%g
2418 s%@FFLAGS@%$FFLAGS%g
2419 s%@DEFS@%$DEFS%g
2420 s%@LDFLAGS@%$LDFLAGS%g
2421 s%@LIBS@%$LIBS%g
2422 s%@exec_prefix@%$exec_prefix%g
2423 s%@prefix@%$prefix%g
2424 s%@program_transform_name@%$program_transform_name%g
2425 s%@bindir@%$bindir%g
2426 s%@sbindir@%$sbindir%g
2427 s%@libexecdir@%$libexecdir%g
2428 s%@datadir@%$datadir%g
2429 s%@sysconfdir@%$sysconfdir%g
2430 s%@sharedstatedir@%$sharedstatedir%g
2431 s%@localstatedir@%$localstatedir%g
2432 s%@libdir@%$libdir%g
2433 s%@includedir@%$includedir%g
2434 s%@oldincludedir@%$oldincludedir%g
2435 s%@infodir@%$infodir%g
2436 s%@mandir@%$mandir%g
2437 s%@newlib_basedir@%$newlib_basedir%g
2438 s%@host@%$host%g
2439 s%@host_alias@%$host_alias%g
2440 s%@host_cpu@%$host_cpu%g
2441 s%@host_vendor@%$host_vendor%g
2442 s%@host_os@%$host_os%g
2443 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2444 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2445 s%@INSTALL_DATA@%$INSTALL_DATA%g
2446 s%@PACKAGE@%$PACKAGE%g
2447 s%@VERSION@%$VERSION%g
2448 s%@ACLOCAL@%$ACLOCAL%g
2449 s%@AUTOCONF@%$AUTOCONF%g
2450 s%@AUTOMAKE@%$AUTOMAKE%g
2451 s%@AUTOHEADER@%$AUTOHEADER%g
2452 s%@MAKEINFO@%$MAKEINFO%g
2453 s%@SET_MAKE@%$SET_MAKE%g
2454 s%@CC@%$CC%g
2455 s%@build@%$build%g
2456 s%@build_alias@%$build_alias%g
2457 s%@build_cpu@%$build_cpu%g
2458 s%@build_vendor@%$build_vendor%g
2459 s%@build_os@%$build_os%g
2460 s%@AS@%$AS%g
2461 s%@AR@%$AR%g
2462 s%@RANLIB@%$RANLIB%g
2463 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2464 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2465 s%@MAINT@%$MAINT%g
2466 s%@EXEEXT@%$EXEEXT%g
2467 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
2468 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
2469 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
2470 s%@oext@%$oext%g
2471 s%@aext@%$aext%g
2472 s%@libm_machine_dir@%$libm_machine_dir%g
2473 s%@machine_dir@%$machine_dir%g
2474 s%@sys_dir@%$sys_dir%g
2475 s%@LN_S@%$LN_S%g
2476 s%@DLLTOOL@%$DLLTOOL%g
2477 s%@OBJDUMP@%$OBJDUMP%g
2478 s%@LIBTOOL@%$LIBTOOL%g
2479 s%@subdirs@%$subdirs%g
2480 s%@CRT0@%$CRT0%g
2481 s%@HAVE_SYS_DIR_TRUE@%$HAVE_SYS_DIR_TRUE%g
2482 s%@HAVE_SYS_DIR_FALSE@%$HAVE_SYS_DIR_FALSE%g
2483
2484 CEOF
2485 EOF
2486
2487 cat >> $CONFIG_STATUS <<\EOF
2488
2489 # Split the substitutions into bite-sized pieces for seds with
2490 # small command number limits, like on Digital OSF/1 and HP-UX.
2491 ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
2492 ac_file=1 # Number of current file.
2493 ac_beg=1 # First line for current file.
2494 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2495 ac_more_lines=:
2496 ac_sed_cmds=""
2497 while $ac_more_lines; do
2498   if test $ac_beg -gt 1; then
2499     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2500   else
2501     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2502   fi
2503   if test ! -s conftest.s$ac_file; then
2504     ac_more_lines=false
2505     rm -f conftest.s$ac_file
2506   else
2507     if test -z "$ac_sed_cmds"; then
2508       ac_sed_cmds="sed -f conftest.s$ac_file"
2509     else
2510       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2511     fi
2512     ac_file=`expr $ac_file + 1`
2513     ac_beg=$ac_end
2514     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2515   fi
2516 done
2517 if test -z "$ac_sed_cmds"; then
2518   ac_sed_cmds=cat
2519 fi
2520 EOF
2521
2522 cat >> $CONFIG_STATUS <<EOF
2523
2524 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2525 EOF
2526 cat >> $CONFIG_STATUS <<\EOF
2527 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2528   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2529   case "$ac_file" in
2530   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2531        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2532   *) ac_file_in="${ac_file}.in" ;;
2533   esac
2534
2535   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2536
2537   # Remove last slash and all that follows it.  Not all systems have dirname.
2538   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2539   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2540     # The file is in a subdirectory.
2541     test ! -d "$ac_dir" && mkdir "$ac_dir"
2542     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2543     # A "../" for each directory in $ac_dir_suffix.
2544     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2545   else
2546     ac_dir_suffix= ac_dots=
2547   fi
2548
2549   case "$ac_given_srcdir" in
2550   .)  srcdir=.
2551       if test -z "$ac_dots"; then top_srcdir=.
2552       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2553   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2554   *) # Relative path.
2555     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2556     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2557   esac
2558
2559   case "$ac_given_INSTALL" in
2560   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2561   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2562   esac
2563
2564   echo creating "$ac_file"
2565   rm -f "$ac_file"
2566   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2567   case "$ac_file" in
2568   *Makefile*) ac_comsub="1i\\
2569 # $configure_input" ;;
2570   *) ac_comsub= ;;
2571   esac
2572
2573   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2574   sed -e "$ac_comsub
2575 s%@configure_input@%$configure_input%g
2576 s%@srcdir@%$srcdir%g
2577 s%@top_srcdir@%$top_srcdir%g
2578 s%@INSTALL@%$INSTALL%g
2579 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2580 fi; done
2581 rm -f conftest.s*
2582
2583 EOF
2584 cat >> $CONFIG_STATUS <<EOF
2585
2586 EOF
2587 cat >> $CONFIG_STATUS <<\EOF
2588
2589 exit 0
2590 EOF
2591 chmod +x $CONFIG_STATUS
2592 rm -fr confdefs* $ac_clean_files
2593 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2594
2595 if test "$no_recursion" != yes; then
2596
2597   # Remove --cache-file and --srcdir arguments so they do not pile up.
2598   ac_sub_configure_args=
2599   ac_prev=
2600   for ac_arg in $ac_configure_args; do
2601     if test -n "$ac_prev"; then
2602       ac_prev=
2603       continue
2604     fi
2605     case "$ac_arg" in
2606     -cache-file | --cache-file | --cache-fil | --cache-fi \
2607     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2608       ac_prev=cache_file ;;
2609     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2610     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2611       ;;
2612     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2613       ac_prev=srcdir ;;
2614     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2615       ;;
2616     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2617     esac
2618   done
2619
2620   for ac_config_dir in ${sys_dir}; do
2621
2622     # Do not complain, so a configure script can configure whichever
2623     # parts of a large source tree are present.
2624     if test ! -d $srcdir/$ac_config_dir; then
2625       continue
2626     fi
2627
2628     echo configuring in $ac_config_dir
2629
2630     case "$srcdir" in
2631     .) ;;
2632     *)
2633       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2634       else
2635         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2636       fi
2637       ;;
2638     esac
2639
2640     ac_popdir=`pwd`
2641     cd $ac_config_dir
2642
2643       # A "../" for each directory in /$ac_config_dir.
2644       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2645
2646     case "$srcdir" in
2647     .) # No --srcdir option.  We are building in place.
2648       ac_sub_srcdir=$srcdir ;;
2649     /*) # Absolute path.
2650       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2651     *) # Relative path.
2652       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2653     esac
2654
2655     # Check for guested configure; otherwise get Cygnus style configure.
2656     if test -f $ac_sub_srcdir/configure; then
2657       ac_sub_configure=$ac_sub_srcdir/configure
2658     elif test -f $ac_sub_srcdir/configure.in; then
2659       ac_sub_configure=$ac_configure
2660     else
2661       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2662       ac_sub_configure=
2663     fi
2664
2665     # The recursion is here.
2666     if test -n "$ac_sub_configure"; then
2667
2668       # Make the cache file name correct relative to the subdirectory.
2669       case "$cache_file" in
2670       /*) ac_sub_cache_file=$cache_file ;;
2671       *) # Relative path.
2672         ac_sub_cache_file="$ac_dots$cache_file" ;;
2673       esac
2674   case "$ac_given_INSTALL" in
2675         [/$]*) INSTALL="$ac_given_INSTALL" ;;
2676         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2677         esac
2678
2679       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2680       # The eval makes quoting arguments work.
2681       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2682       then :
2683       else
2684         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2685       fi
2686     fi
2687
2688     cd $ac_popdir
2689   done
2690 fi
2691