OSDN Git Service

2004-12-17 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libc / sys / linux / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib         build many library versions (default)"
16 ac_help="$ac_help
17   --enable-target-optspace  optimize for space"
18 ac_help="$ac_help
19   --enable-malloc-debugging indicate malloc debugging requested"
20 ac_help="$ac_help
21   --enable-newlib-multithread        enable support for multiple threads"
22 ac_help="$ac_help
23   --enable-newlib-iconv     enable iconv library support"
24 ac_help="$ac_help
25   --enable-newlib-elix-level         supply desired elix library level (1-4)"
26 ac_help="$ac_help
27   --disable-newlib-io-float disable printf/scanf family float support"
28 ac_help="$ac_help
29   --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
30 ac_help="$ac_help
31   --enable-maintainer-mode enable make rules and dependencies not useful
32                           (and sometimes confusing) to the casual installer"
33 ac_help="$ac_help
34   --enable-shared[=PKGS]  build shared libraries [default=yes]"
35 ac_help="$ac_help
36   --enable-static[=PKGS]  build static libraries [default=yes]"
37 ac_help="$ac_help
38   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
39 ac_help="$ac_help
40   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
41 ac_help="$ac_help
42   --disable-libtool-lock  avoid locking (might break parallel builds)"
43 ac_help="$ac_help
44   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
45
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
49 build=NONE
50 cache_file=./config.cache
51 exec_prefix=NONE
52 host=NONE
53 no_create=
54 nonopt=NONE
55 no_recursion=
56 prefix=NONE
57 program_prefix=NONE
58 program_suffix=NONE
59 program_transform_name=s,x,x,
60 silent=
61 site=
62 srcdir=
63 target=NONE
64 verbose=
65 x_includes=NONE
66 x_libraries=NONE
67 bindir='${exec_prefix}/bin'
68 sbindir='${exec_prefix}/sbin'
69 libexecdir='${exec_prefix}/libexec'
70 datadir='${prefix}/share'
71 sysconfdir='${prefix}/etc'
72 sharedstatedir='${prefix}/com'
73 localstatedir='${prefix}/var'
74 libdir='${exec_prefix}/lib'
75 includedir='${prefix}/include'
76 oldincludedir='/usr/include'
77 infodir='${prefix}/info'
78 mandir='${prefix}/man'
79
80 # Initialize some other variables.
81 subdirs=
82 MFLAGS= MAKEFLAGS=
83 SHELL=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
85 ac_max_here_lines=12
86
87 ac_prev=
88 for ac_option
89 do
90
91   # If the previous option needs an argument, assign it.
92   if test -n "$ac_prev"; then
93     eval "$ac_prev=\$ac_option"
94     ac_prev=
95     continue
96   fi
97
98   case "$ac_option" in
99   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100   *) ac_optarg= ;;
101   esac
102
103   # Accept the important Cygnus configure options, so we can diagnose typos.
104
105   case "$ac_option" in
106
107   -bindir | --bindir | --bindi | --bind | --bin | --bi)
108     ac_prev=bindir ;;
109   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110     bindir="$ac_optarg" ;;
111
112   -build | --build | --buil | --bui | --bu)
113     ac_prev=build ;;
114   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115     build="$ac_optarg" ;;
116
117   -cache-file | --cache-file | --cache-fil | --cache-fi \
118   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119     ac_prev=cache_file ;;
120   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122     cache_file="$ac_optarg" ;;
123
124   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125     ac_prev=datadir ;;
126   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127   | --da=*)
128     datadir="$ac_optarg" ;;
129
130   -disable-* | --disable-*)
131     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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     eval "enable_${ac_feature}=no" ;;
138
139   -enable-* | --enable-*)
140     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141     # Reject names that are not valid shell variable names.
142     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144     fi
145     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146     case "$ac_option" in
147       *=*) ;;
148       *) ac_optarg=yes ;;
149     esac
150     eval "enable_${ac_feature}='$ac_optarg'" ;;
151
152   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154   | --exec | --exe | --ex)
155     ac_prev=exec_prefix ;;
156   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158   | --exec=* | --exe=* | --ex=*)
159     exec_prefix="$ac_optarg" ;;
160
161   -gas | --gas | --ga | --g)
162     # Obsolete; use --with-gas.
163     with_gas=yes ;;
164
165   -help | --help | --hel | --he)
166     # Omit some internal or obsolete options to make the list less imposing.
167     # This message is too long to be a string in the A/UX 3.1 sh.
168     cat << EOF
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
171 Configuration:
172   --cache-file=FILE       cache test results in FILE
173   --help                  print this message
174   --no-create             do not create output files
175   --quiet, --silent       do not print \`checking...' messages
176   --version               print the version of autoconf that created configure
177 Directory and file names:
178   --prefix=PREFIX         install architecture-independent files in PREFIX
179                           [$ac_default_prefix]
180   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
181                           [same as prefix]
182   --bindir=DIR            user executables in DIR [EPREFIX/bin]
183   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
184   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
185   --datadir=DIR           read-only architecture-independent data in DIR
186                           [PREFIX/share]
187   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
188   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
189                           [PREFIX/com]
190   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
191   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
192   --includedir=DIR        C header files in DIR [PREFIX/include]
193   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
194   --infodir=DIR           info documentation in DIR [PREFIX/info]
195   --mandir=DIR            man documentation in DIR [PREFIX/man]
196   --srcdir=DIR            find the sources in DIR [configure dir or ..]
197   --program-prefix=PREFIX prepend PREFIX to installed program names
198   --program-suffix=SUFFIX append SUFFIX to installed program names
199   --program-transform-name=PROGRAM
200                           run sed PROGRAM on installed program names
201 EOF
202     cat << EOF
203 Host type:
204   --build=BUILD           configure for building on BUILD [BUILD=HOST]
205   --host=HOST             configure for HOST [guessed]
206   --target=TARGET         configure for TARGET [TARGET=HOST]
207 Features and packages:
208   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
209   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
210   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
211   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
212   --x-includes=DIR        X include files are in DIR
213   --x-libraries=DIR       X library files are in DIR
214 EOF
215     if test -n "$ac_help"; then
216       echo "--enable and --with options recognized:$ac_help"
217     fi
218     exit 0 ;;
219
220   -host | --host | --hos | --ho)
221     ac_prev=host ;;
222   -host=* | --host=* | --hos=* | --ho=*)
223     host="$ac_optarg" ;;
224
225   -includedir | --includedir | --includedi | --included | --include \
226   | --includ | --inclu | --incl | --inc)
227     ac_prev=includedir ;;
228   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229   | --includ=* | --inclu=* | --incl=* | --inc=*)
230     includedir="$ac_optarg" ;;
231
232   -infodir | --infodir | --infodi | --infod | --info | --inf)
233     ac_prev=infodir ;;
234   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235     infodir="$ac_optarg" ;;
236
237   -libdir | --libdir | --libdi | --libd)
238     ac_prev=libdir ;;
239   -libdir=* | --libdir=* | --libdi=* | --libd=*)
240     libdir="$ac_optarg" ;;
241
242   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243   | --libexe | --libex | --libe)
244     ac_prev=libexecdir ;;
245   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246   | --libexe=* | --libex=* | --libe=*)
247     libexecdir="$ac_optarg" ;;
248
249   -localstatedir | --localstatedir | --localstatedi | --localstated \
250   | --localstate | --localstat | --localsta | --localst \
251   | --locals | --local | --loca | --loc | --lo)
252     ac_prev=localstatedir ;;
253   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256     localstatedir="$ac_optarg" ;;
257
258   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259     ac_prev=mandir ;;
260   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261     mandir="$ac_optarg" ;;
262
263   -nfp | --nfp | --nf)
264     # Obsolete; use --without-fp.
265     with_fp=no ;;
266
267   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268   | --no-cr | --no-c)
269     no_create=yes ;;
270
271   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273     no_recursion=yes ;;
274
275   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277   | --oldin | --oldi | --old | --ol | --o)
278     ac_prev=oldincludedir ;;
279   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282     oldincludedir="$ac_optarg" ;;
283
284   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285     ac_prev=prefix ;;
286   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287     prefix="$ac_optarg" ;;
288
289   -program-prefix | --program-prefix | --program-prefi | --program-pref \
290   | --program-pre | --program-pr | --program-p)
291     ac_prev=program_prefix ;;
292   -program-prefix=* | --program-prefix=* | --program-prefi=* \
293   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294     program_prefix="$ac_optarg" ;;
295
296   -program-suffix | --program-suffix | --program-suffi | --program-suff \
297   | --program-suf | --program-su | --program-s)
298     ac_prev=program_suffix ;;
299   -program-suffix=* | --program-suffix=* | --program-suffi=* \
300   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301     program_suffix="$ac_optarg" ;;
302
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     ac_prev=program_transform_name ;;
311   -program-transform-name=* | --program-transform-name=* \
312   | --program-transform-nam=* | --program-transform-na=* \
313   | --program-transform-n=* | --program-transform-=* \
314   | --program-transform=* | --program-transfor=* \
315   | --program-transfo=* | --program-transf=* \
316   | --program-trans=* | --program-tran=* \
317   | --progr-tra=* | --program-tr=* | --program-t=*)
318     program_transform_name="$ac_optarg" ;;
319
320   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321   | -silent | --silent | --silen | --sile | --sil)
322     silent=yes ;;
323
324   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325     ac_prev=sbindir ;;
326   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327   | --sbi=* | --sb=*)
328     sbindir="$ac_optarg" ;;
329
330   -sharedstatedir | --sharedstatedir | --sharedstatedi \
331   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332   | --sharedst | --shareds | --shared | --share | --shar \
333   | --sha | --sh)
334     ac_prev=sharedstatedir ;;
335   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338   | --sha=* | --sh=*)
339     sharedstatedir="$ac_optarg" ;;
340
341   -site | --site | --sit)
342     ac_prev=site ;;
343   -site=* | --site=* | --sit=*)
344     site="$ac_optarg" ;;
345
346   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347     ac_prev=srcdir ;;
348   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349     srcdir="$ac_optarg" ;;
350
351   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352   | --syscon | --sysco | --sysc | --sys | --sy)
353     ac_prev=sysconfdir ;;
354   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356     sysconfdir="$ac_optarg" ;;
357
358   -target | --target | --targe | --targ | --tar | --ta | --t)
359     ac_prev=target ;;
360   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361     target="$ac_optarg" ;;
362
363   -v | -verbose | --verbose | --verbos | --verbo | --verb)
364     verbose=yes ;;
365
366   -version | --version | --versio | --versi | --vers)
367     echo "configure generated by autoconf version 2.13"
368     exit 0 ;;
369
370   -with-* | --with-*)
371     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372     # Reject names that are not valid shell variable names.
373     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375     fi
376     ac_package=`echo $ac_package| sed 's/-/_/g'`
377     case "$ac_option" in
378       *=*) ;;
379       *) ac_optarg=yes ;;
380     esac
381     eval "with_${ac_package}='$ac_optarg'" ;;
382
383   -without-* | --without-*)
384     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385     # Reject names that are not valid shell variable names.
386     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388     fi
389     ac_package=`echo $ac_package| sed 's/-/_/g'`
390     eval "with_${ac_package}=no" ;;
391
392   --x)
393     # Obsolete; use --with-x.
394     with_x=yes ;;
395
396   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397   | --x-incl | --x-inc | --x-in | --x-i)
398     ac_prev=x_includes ;;
399   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401     x_includes="$ac_optarg" ;;
402
403   -x-libraries | --x-libraries | --x-librarie | --x-librari \
404   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405     ac_prev=x_libraries ;;
406   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408     x_libraries="$ac_optarg" ;;
409
410   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411     ;;
412
413   *)
414     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415       echo "configure: warning: $ac_option: invalid host type" 1>&2
416     fi
417     if test "x$nonopt" != xNONE; then
418       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419     fi
420     nonopt="$ac_option"
421     ;;
422
423   esac
424 done
425
426 if test -n "$ac_prev"; then
427   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 fi
429
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431
432 # File descriptor usage:
433 # 0 standard input
434 # 1 file creation
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
441   exec 6>/dev/null
442 else
443   exec 6>&1
444 fi
445 exec 5>./config.log
446
447 echo "\
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
450 " 1>&5
451
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
454 ac_configure_args=
455 for ac_arg
456 do
457   case "$ac_arg" in
458   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459   | --no-cr | --no-c) ;;
460   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465   esac
466 done
467
468 # NLS nuisances.
469 # Only set these to C if already set.  These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
477
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 echo > confdefs.h
482
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file=linux.c
486
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489   ac_srcdir_defaulted=yes
490   # Try the directory containing this script, then its parent.
491   ac_prog=$0
492   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494   srcdir=$ac_confdir
495   if test ! -r $srcdir/$ac_unique_file; then
496     srcdir=..
497   fi
498 else
499   ac_srcdir_defaulted=no
500 fi
501 if test ! -r $srcdir/$ac_unique_file; then
502   if test "$ac_srcdir_defaulted" = yes; then
503     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504   else
505     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506   fi
507 fi
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512   if test "x$prefix" != xNONE; then
513     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514   else
515     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516   fi
517 fi
518 for ac_site_file in $CONFIG_SITE; do
519   if test -r "$ac_site_file"; then
520     echo "loading site script $ac_site_file"
521     . "$ac_site_file"
522   fi
523 done
524
525 if test -r "$cache_file"; then
526   echo "loading cache $cache_file"
527   . $cache_file
528 else
529   echo "creating cache $cache_file"
530   > $cache_file
531 fi
532
533 ac_ext=c
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp='$CPP $CPPFLAGS'
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling=$ac_cv_prog_cc_cross
539
540 ac_exeext=
541 ac_objext=o
542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545     ac_n= ac_c='
546 ' ac_t='        '
547   else
548     ac_n=-n ac_c= ac_t=
549   fi
550 else
551   ac_n= ac_c='\c' ac_t=
552 fi
553
554
555
556 ac_aux_dir=
557 for ac_dir in ../../../.. $srcdir/../../../..; do
558   if test -f $ac_dir/install-sh; then
559     ac_aux_dir=$ac_dir
560     ac_install_sh="$ac_aux_dir/install-sh -c"
561     break
562   elif test -f $ac_dir/install.sh; then
563     ac_aux_dir=$ac_dir
564     ac_install_sh="$ac_aux_dir/install.sh -c"
565     break
566   fi
567 done
568 if test -z "$ac_aux_dir"; then
569   { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
570 fi
571 ac_config_guess=$ac_aux_dir/config.guess
572 ac_config_sub=$ac_aux_dir/config.sub
573 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
574
575
576 am__api_version="1.4"
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-multithread or --disable-newlib-multithread was given.
831 if test "${enable_newlib_multithread+set}" = set; then
832   enableval="$enable_newlib_multithread"
833   case "${enableval}" in
834   yes) newlib_multithread=yes ;;
835   no)  newlib_multithread=no ;;
836   *)   { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
837  esac
838 else
839   newlib_multithread=yes
840 fi
841
842 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
843 if test "${enable_newlib_iconv+set}" = set; then
844   enableval="$enable_newlib_iconv"
845   if test "${newlib_iconv+set}" != set; then
846    case "${enableval}" in
847      yes) newlib_iconv=yes ;;
848      no)  newlib_iconv=no ;;
849      *)   { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;;
850    esac
851  fi
852 else
853   newlib_iconv=${newlib_iconv}
854 fi
855
856 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
857 if test "${enable_newlib_elix_level+set}" = set; then
858   enableval="$enable_newlib_elix_level"
859   case "${enableval}" in
860   0)   newlib_elix_level=0 ;;
861   1)   newlib_elix_level=1 ;;
862   2)   newlib_elix_level=2 ;;
863   3)   newlib_elix_level=3 ;;
864   4)   newlib_elix_level=4 ;;
865   *)   { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
866  esac
867 else
868   newlib_elix_level=0
869 fi
870
871 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
872 if test "${enable_newlib_io_float+set}" = set; then
873   enableval="$enable_newlib_io_float"
874   case "${enableval}" in
875   yes) newlib_io_float=yes ;;
876   no)  newlib_io_float=no ;;
877   *)   { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
878  esac
879 else
880   newlib_io_float=yes
881 fi
882
883 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
884 if test "${enable_newlib_supplied_syscalls+set}" = set; then
885   enableval="$enable_newlib_supplied_syscalls"
886   case "${enableval}" in
887   yes) newlib_may_supply_syscalls=yes ;;
888   no)  newlib_may_supply_syscalls=no ;;
889   *)   { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
890  esac
891 else
892   newlib_may_supply_syscalls=yes
893 fi
894
895
896
897 if test x${newlib_may_supply_syscalls} = xyes; then
898   MAY_SUPPLY_SYSCALLS_TRUE=
899   MAY_SUPPLY_SYSCALLS_FALSE='#'
900 else
901   MAY_SUPPLY_SYSCALLS_TRUE='#'
902   MAY_SUPPLY_SYSCALLS_FALSE=
903 fi
904
905
906 test -z "${with_target_subdir}" && with_target_subdir=.
907
908 if test "${srcdir}" = "."; then
909   if test "${with_target_subdir}" != "."; then
910     newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
911   else
912     newlib_basedir="${srcdir}/${with_multisrctop}../../.."
913   fi
914 else
915   newlib_basedir="${srcdir}/../../.."
916 fi
917
918
919
920 # Do some error checking and defaulting for the host and target type.
921 # The inputs are:
922 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
923 #
924 # The rules are:
925 # 1. You are not allowed to specify --host, --target, and nonopt at the
926 #    same time.
927 # 2. Host defaults to nonopt.
928 # 3. If nonopt is not specified, then host defaults to the current host,
929 #    as determined by config.guess.
930 # 4. Target and build default to nonopt.
931 # 5. If nonopt is not specified, then target and build default to host.
932
933 # The aliases save the names the user supplied, while $host etc.
934 # will get canonicalized.
935 case $host---$target---$nonopt in
936 NONE---*---* | *---NONE---* | *---*---NONE) ;;
937 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
938 esac
939
940
941 # Make sure we can run config.sub.
942 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
943 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
944 fi
945
946 echo $ac_n "checking host system type""... $ac_c" 1>&6
947 echo "configure:948: checking host system type" >&5
948
949 host_alias=$host
950 case "$host_alias" in
951 NONE)
952   case $nonopt in
953   NONE)
954     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
955     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
956     fi ;;
957   *) host_alias=$nonopt ;;
958   esac ;;
959 esac
960
961 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
962 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
963 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
964 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
965 echo "$ac_t""$host" 1>&6
966
967 echo $ac_n "checking target system type""... $ac_c" 1>&6
968 echo "configure:969: checking target system type" >&5
969
970 target_alias=$target
971 case "$target_alias" in
972 NONE)
973   case $nonopt in
974   NONE) target_alias=$host_alias ;;
975   *) target_alias=$nonopt ;;
976   esac ;;
977 esac
978
979 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
980 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
981 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
982 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
983 echo "$ac_t""$target" 1>&6
984
985 echo $ac_n "checking build system type""... $ac_c" 1>&6
986 echo "configure:987: checking build system type" >&5
987
988 build_alias=$build
989 case "$build_alias" in
990 NONE)
991   case $nonopt in
992   NONE) build_alias=$host_alias ;;
993   *) build_alias=$nonopt ;;
994   esac ;;
995 esac
996
997 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
998 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
999 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1000 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1001 echo "$ac_t""$build" 1>&6
1002
1003 test "$host_alias" != "$target_alias" &&
1004   test "$program_prefix$program_suffix$program_transform_name" = \
1005     NONENONEs,x,x, &&
1006   program_prefix=${target_alias}-
1007
1008
1009
1010 PACKAGE=newlib
1011
1012 VERSION=1.13.0
1013
1014 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1015   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1016 fi
1017 cat >> confdefs.h <<EOF
1018 #define PACKAGE "$PACKAGE"
1019 EOF
1020
1021 cat >> confdefs.h <<EOF
1022 #define VERSION "$VERSION"
1023 EOF
1024
1025
1026
1027 missing_dir=`cd $ac_aux_dir && pwd`
1028 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working aclocal-${am__api_version}" >&5
1030 # Run test in a subshell; some versions of sh will print an error if
1031 # an executable is not found, even if stderr is redirected.
1032 # Redirect stdin to placate older versions of autoconf.  Sigh.
1033 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1034    ACLOCAL=aclocal-${am__api_version}
1035    echo "$ac_t""found" 1>&6
1036 else
1037    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1038    echo "$ac_t""missing" 1>&6
1039 fi
1040
1041 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1042 echo "configure:1043: checking for working autoconf" >&5
1043 # Run test in a subshell; some versions of sh will print an error if
1044 # an executable is not found, even if stderr is redirected.
1045 # Redirect stdin to placate older versions of autoconf.  Sigh.
1046 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1047    AUTOCONF=autoconf
1048    echo "$ac_t""found" 1>&6
1049 else
1050    AUTOCONF="$missing_dir/missing autoconf"
1051    echo "$ac_t""missing" 1>&6
1052 fi
1053
1054 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1055 echo "configure:1056: checking for working automake-${am__api_version}" >&5
1056 # Run test in a subshell; some versions of sh will print an error if
1057 # an executable is not found, even if stderr is redirected.
1058 # Redirect stdin to placate older versions of autoconf.  Sigh.
1059 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1060    AUTOMAKE=automake-${am__api_version}
1061    echo "$ac_t""found" 1>&6
1062 else
1063    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1064    echo "$ac_t""missing" 1>&6
1065 fi
1066
1067 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1068 echo "configure:1069: checking for working autoheader" >&5
1069 # Run test in a subshell; some versions of sh will print an error if
1070 # an executable is not found, even if stderr is redirected.
1071 # Redirect stdin to placate older versions of autoconf.  Sigh.
1072 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1073    AUTOHEADER=autoheader
1074    echo "$ac_t""found" 1>&6
1075 else
1076    AUTOHEADER="$missing_dir/missing autoheader"
1077    echo "$ac_t""missing" 1>&6
1078 fi
1079
1080 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1081 echo "configure:1082: checking for working makeinfo" >&5
1082 # Run test in a subshell; some versions of sh will print an error if
1083 # an executable is not found, even if stderr is redirected.
1084 # Redirect stdin to placate older versions of autoconf.  Sigh.
1085 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1086    MAKEINFO=makeinfo
1087    echo "$ac_t""found" 1>&6
1088 else
1089    MAKEINFO="$missing_dir/missing makeinfo"
1090    echo "$ac_t""missing" 1>&6
1091 fi
1092
1093
1094
1095 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1096 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1097 # are probably using a cross compiler, which will not be able to fully
1098 # link an executable.  This should really be fixed in autoconf
1099 # itself.
1100
1101
1102
1103 # Extract the first word of "gcc", so it can be a program name with args.
1104 set dummy gcc; ac_word=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 echo "configure:1107: checking for $ac_word" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1108   echo $ac_n "(cached) $ac_c" 1>&6
1109 else
1110   if test -n "$CC"; then
1111   ac_cv_prog_CC="$CC" # Let the user override the test.
1112 else
1113   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1114   ac_dummy="$PATH"
1115   for ac_dir in $ac_dummy; do
1116     test -z "$ac_dir" && ac_dir=.
1117     if test -f $ac_dir/$ac_word; then
1118       ac_cv_prog_CC="gcc"
1119       break
1120     fi
1121   done
1122   IFS="$ac_save_ifs"
1123 fi
1124 fi
1125 CC="$ac_cv_prog_CC"
1126 if test -n "$CC"; then
1127   echo "$ac_t""$CC" 1>&6
1128 else
1129   echo "$ac_t""no" 1>&6
1130 fi
1131
1132 if test -z "$CC"; then
1133   # Extract the first word of "cc", so it can be a program name with args.
1134 set dummy cc; ac_word=$2
1135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1136 echo "configure:1137: checking for $ac_word" >&5
1137 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1138   echo $ac_n "(cached) $ac_c" 1>&6
1139 else
1140   if test -n "$CC"; then
1141   ac_cv_prog_CC="$CC" # Let the user override the test.
1142 else
1143   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1144   ac_prog_rejected=no
1145   ac_dummy="$PATH"
1146   for ac_dir in $ac_dummy; do
1147     test -z "$ac_dir" && ac_dir=.
1148     if test -f $ac_dir/$ac_word; then
1149       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1150         ac_prog_rejected=yes
1151         continue
1152       fi
1153       ac_cv_prog_CC="cc"
1154       break
1155     fi
1156   done
1157   IFS="$ac_save_ifs"
1158 if test $ac_prog_rejected = yes; then
1159   # We found a bogon in the path, so make sure we never use it.
1160   set dummy $ac_cv_prog_CC
1161   shift
1162   if test $# -gt 0; then
1163     # We chose a different compiler from the bogus one.
1164     # However, it has the same basename, so the bogon will be chosen
1165     # first if we set CC to just the basename; use the full file name.
1166     shift
1167     set dummy "$ac_dir/$ac_word" "$@"
1168     shift
1169     ac_cv_prog_CC="$@"
1170   fi
1171 fi
1172 fi
1173 fi
1174 CC="$ac_cv_prog_CC"
1175 if test -n "$CC"; then
1176   echo "$ac_t""$CC" 1>&6
1177 else
1178   echo "$ac_t""no" 1>&6
1179 fi
1180
1181   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1182 fi
1183
1184 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether we are using GNU C" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1187   echo $ac_n "(cached) $ac_c" 1>&6
1188 else
1189   cat > conftest.c <<EOF
1190 #ifdef __GNUC__
1191   yes;
1192 #endif
1193 EOF
1194 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1195   ac_cv_prog_gcc=yes
1196 else
1197   ac_cv_prog_gcc=no
1198 fi
1199 fi
1200
1201 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1202
1203 if test $ac_cv_prog_gcc = yes; then
1204   GCC=yes
1205   ac_test_CFLAGS="${CFLAGS+set}"
1206   ac_save_CFLAGS="$CFLAGS"
1207   CFLAGS=
1208   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1209 echo "configure:1210: checking whether ${CC-cc} accepts -g" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1211   echo $ac_n "(cached) $ac_c" 1>&6
1212 else
1213   echo 'void f(){}' > conftest.c
1214 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1215   ac_cv_prog_cc_g=yes
1216 else
1217   ac_cv_prog_cc_g=no
1218 fi
1219 rm -f conftest*
1220
1221 fi
1222
1223 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1224   if test "$ac_test_CFLAGS" = set; then
1225     CFLAGS="$ac_save_CFLAGS"
1226   elif test $ac_cv_prog_cc_g = yes; then
1227     CFLAGS="-g -O2"
1228   else
1229     CFLAGS="-O2"
1230   fi
1231 else
1232   GCC=
1233   test "${CFLAGS+set}" = set || CFLAGS="-g"
1234 fi
1235
1236
1237 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1238 set dummy ${ac_tool_prefix}as; ac_word=$2
1239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1240 echo "configure:1241: checking for $ac_word" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1242   echo $ac_n "(cached) $ac_c" 1>&6
1243 else
1244   if test -n "$AS"; then
1245   ac_cv_prog_AS="$AS" # Let the user override the test.
1246 else
1247   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1248   ac_dummy="$PATH"
1249   for ac_dir in $ac_dummy; do
1250     test -z "$ac_dir" && ac_dir=.
1251     if test -f $ac_dir/$ac_word; then
1252       ac_cv_prog_AS="${ac_tool_prefix}as"
1253       break
1254     fi
1255   done
1256   IFS="$ac_save_ifs"
1257   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1258 fi
1259 fi
1260 AS="$ac_cv_prog_AS"
1261 if test -n "$AS"; then
1262   echo "$ac_t""$AS" 1>&6
1263 else
1264   echo "$ac_t""no" 1>&6
1265 fi
1266
1267
1268
1269 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1270 set dummy ${ac_tool_prefix}ar; ac_word=$2
1271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1272 echo "configure:1273: checking for $ac_word" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1274   echo $ac_n "(cached) $ac_c" 1>&6
1275 else
1276   if test -n "$AR"; then
1277   ac_cv_prog_AR="$AR" # Let the user override the test.
1278 else
1279   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1280   ac_dummy="$PATH"
1281   for ac_dir in $ac_dummy; do
1282     test -z "$ac_dir" && ac_dir=.
1283     if test -f $ac_dir/$ac_word; then
1284       ac_cv_prog_AR="${ac_tool_prefix}ar"
1285       break
1286     fi
1287   done
1288   IFS="$ac_save_ifs"
1289   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1290 fi
1291 fi
1292 AR="$ac_cv_prog_AR"
1293 if test -n "$AR"; then
1294   echo "$ac_t""$AR" 1>&6
1295 else
1296   echo "$ac_t""no" 1>&6
1297 fi
1298
1299
1300
1301 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1306   echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308   if test -n "$RANLIB"; then
1309   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1310 else
1311   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1312   ac_dummy="$PATH"
1313   for ac_dir in $ac_dummy; do
1314     test -z "$ac_dir" && ac_dir=.
1315     if test -f $ac_dir/$ac_word; then
1316       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1317       break
1318     fi
1319   done
1320   IFS="$ac_save_ifs"
1321 fi
1322 fi
1323 RANLIB="$ac_cv_prog_RANLIB"
1324 if test -n "$RANLIB"; then
1325   echo "$ac_t""$RANLIB" 1>&6
1326 else
1327   echo "$ac_t""no" 1>&6
1328 fi
1329
1330
1331 if test -z "$ac_cv_prog_RANLIB"; then
1332 if test -n "$ac_tool_prefix"; then
1333   # Extract the first word of "ranlib", so it can be a program name with args.
1334 set dummy ranlib; ac_word=$2
1335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1336 echo "configure:1337: checking for $ac_word" >&5
1337 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1338   echo $ac_n "(cached) $ac_c" 1>&6
1339 else
1340   if test -n "$RANLIB"; then
1341   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1342 else
1343   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1344   ac_dummy="$PATH"
1345   for ac_dir in $ac_dummy; do
1346     test -z "$ac_dir" && ac_dir=.
1347     if test -f $ac_dir/$ac_word; then
1348       ac_cv_prog_RANLIB="ranlib"
1349       break
1350     fi
1351   done
1352   IFS="$ac_save_ifs"
1353   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1354 fi
1355 fi
1356 RANLIB="$ac_cv_prog_RANLIB"
1357 if test -n "$RANLIB"; then
1358   echo "$ac_t""$RANLIB" 1>&6
1359 else
1360   echo "$ac_t""no" 1>&6
1361 fi
1362
1363 else
1364   RANLIB=":"
1365 fi
1366 fi
1367
1368
1369 # Find a good install program.  We prefer a C program (faster),
1370 # so one script is as good as another.  But avoid the broken or
1371 # incompatible versions:
1372 # SysV /etc/install, /usr/sbin/install
1373 # SunOS /usr/etc/install
1374 # IRIX /sbin/install
1375 # AIX /bin/install
1376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1379 # ./install, which can be erroneously created by make from ./install.sh.
1380 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1381 echo "configure:1382: checking for a BSD compatible install" >&5
1382 if test -z "$INSTALL"; then
1383 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1384   echo $ac_n "(cached) $ac_c" 1>&6
1385 else
1386     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1387   for ac_dir in $PATH; do
1388     # Account for people who put trailing slashes in PATH elements.
1389     case "$ac_dir/" in
1390     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1391     *)
1392       # OSF1 and SCO ODT 3.0 have their own names for install.
1393       # Don't use installbsd from OSF since it installs stuff as root
1394       # by default.
1395       for ac_prog in ginstall scoinst install; do
1396         if test -f $ac_dir/$ac_prog; then
1397           if test $ac_prog = install &&
1398             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1399             # AIX install.  It has an incompatible calling convention.
1400             :
1401           else
1402             ac_cv_path_install="$ac_dir/$ac_prog -c"
1403             break 2
1404           fi
1405         fi
1406       done
1407       ;;
1408     esac
1409   done
1410   IFS="$ac_save_IFS"
1411
1412 fi
1413   if test "${ac_cv_path_install+set}" = set; then
1414     INSTALL="$ac_cv_path_install"
1415   else
1416     # As a last resort, use the slow shell script.  We don't cache a
1417     # path for INSTALL within a source directory, because that will
1418     # break other packages using the cache if that directory is
1419     # removed, or if the path is relative.
1420     INSTALL="$ac_install_sh"
1421   fi
1422 fi
1423 echo "$ac_t""$INSTALL" 1>&6
1424
1425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1426 # It thinks the first close brace ends the variable substitution.
1427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1428
1429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1430
1431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1432
1433
1434 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1435 echo "configure:1436: checking whether to enable maintainer-specific portions of Makefiles" >&5
1436     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1437 if test "${enable_maintainer_mode+set}" = set; then
1438   enableval="$enable_maintainer_mode"
1439   USE_MAINTAINER_MODE=$enableval
1440 else
1441   USE_MAINTAINER_MODE=no
1442 fi
1443
1444   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1445   
1446
1447 if test $USE_MAINTAINER_MODE = yes; then
1448   MAINTAINER_MODE_TRUE=
1449   MAINTAINER_MODE_FALSE='#'
1450 else
1451   MAINTAINER_MODE_TRUE='#'
1452   MAINTAINER_MODE_FALSE=
1453 fi
1454   MAINT=$MAINTAINER_MODE_TRUE
1455   
1456
1457
1458 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1459 # at least currently, we never actually build a program, so we never
1460 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1461 # fails, because we are probably configuring with a cross compiler
1462 # which can't create executables.  So we include AC_EXEEXT to keep
1463 # automake happy, but we don't execute it, since we don't care about
1464 # the result.
1465 if false; then
1466   
1467
1468 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1469 echo "configure:1470: checking for executable suffix" >&5
1470 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1471   echo $ac_n "(cached) $ac_c" 1>&6
1472 else
1473   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1474   ac_cv_exeext=.exe
1475 else
1476   rm -f conftest*
1477   echo 'int main () { return 0; }' > conftest.$ac_ext
1478   ac_cv_exeext=
1479   if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1480     for file in conftest.*; do
1481       case $file in
1482       *.c | *.o | *.obj) ;;
1483       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1484       esac
1485     done
1486   else
1487     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1488   fi
1489   rm -f conftest*
1490   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1491 fi
1492 fi
1493
1494 EXEEXT=""
1495 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1496 echo "$ac_t""${ac_cv_exeext}" 1>&6
1497 ac_exeext=$EXEEXT
1498
1499 fi
1500
1501 . ${newlib_basedir}/configure.host
1502
1503 newlib_cflags="${newlib_cflags} -fno-builtin"
1504
1505 NEWLIB_CFLAGS=${newlib_cflags}
1506
1507
1508 LDFLAGS=${ldflags}
1509
1510
1511
1512
1513 if test x${newlib_elix_level} = x0; then
1514   ELIX_LEVEL_0_TRUE=
1515   ELIX_LEVEL_0_FALSE='#'
1516 else
1517   ELIX_LEVEL_0_TRUE='#'
1518   ELIX_LEVEL_0_FALSE=
1519 fi
1520
1521
1522 if test x${newlib_elix_level} = x1; then
1523   ELIX_LEVEL_1_TRUE=
1524   ELIX_LEVEL_1_FALSE='#'
1525 else
1526   ELIX_LEVEL_1_TRUE='#'
1527   ELIX_LEVEL_1_FALSE=
1528 fi
1529
1530
1531 if test x${newlib_elix_level} = x2; then
1532   ELIX_LEVEL_2_TRUE=
1533   ELIX_LEVEL_2_FALSE='#'
1534 else
1535   ELIX_LEVEL_2_TRUE='#'
1536   ELIX_LEVEL_2_FALSE=
1537 fi
1538
1539
1540 if test x${newlib_elix_level} = x3; then
1541   ELIX_LEVEL_3_TRUE=
1542   ELIX_LEVEL_3_FALSE='#'
1543 else
1544   ELIX_LEVEL_3_TRUE='#'
1545   ELIX_LEVEL_3_FALSE=
1546 fi
1547
1548
1549 if test x${newlib_elix_level} = x4; then
1550   ELIX_LEVEL_4_TRUE=
1551   ELIX_LEVEL_4_FALSE='#'
1552 else
1553   ELIX_LEVEL_4_TRUE='#'
1554   ELIX_LEVEL_4_FALSE=
1555 fi
1556
1557
1558
1559 if test x${use_libtool} = xyes; then
1560   USE_LIBTOOL_TRUE=
1561   USE_LIBTOOL_FALSE='#'
1562 else
1563   USE_LIBTOOL_TRUE='#'
1564   USE_LIBTOOL_FALSE=
1565 fi
1566
1567 # Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
1568 # use oext, which is set in configure.host based on the target platform.
1569 OBJEXT=${oext}
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581 if test "${use_libtool}" = "yes"; then
1582
1583 # Check whether --enable-shared or --disable-shared was given.
1584 if test "${enable_shared+set}" = set; then
1585   enableval="$enable_shared"
1586   p=${PACKAGE-default}
1587 case $enableval in
1588 yes) enable_shared=yes ;;
1589 no) enable_shared=no ;;
1590 *)
1591   enable_shared=no
1592   # Look at the argument we got.  We use all the common list separators.
1593   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1594   for pkg in $enableval; do
1595     if test "X$pkg" = "X$p"; then
1596       enable_shared=yes
1597     fi
1598   done
1599   IFS="$ac_save_ifs"
1600   ;;
1601 esac
1602 else
1603   enable_shared=yes
1604 fi
1605
1606 # Check whether --enable-static or --disable-static was given.
1607 if test "${enable_static+set}" = set; then
1608   enableval="$enable_static"
1609   p=${PACKAGE-default}
1610 case $enableval in
1611 yes) enable_static=yes ;;
1612 no) enable_static=no ;;
1613 *)
1614   enable_static=no
1615   # Look at the argument we got.  We use all the common list separators.
1616   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1617   for pkg in $enableval; do
1618     if test "X$pkg" = "X$p"; then
1619       enable_static=yes
1620     fi
1621   done
1622   IFS="$ac_save_ifs"
1623   ;;
1624 esac
1625 else
1626   enable_static=yes
1627 fi
1628
1629 # Check whether --enable-fast-install or --disable-fast-install was given.
1630 if test "${enable_fast_install+set}" = set; then
1631   enableval="$enable_fast_install"
1632   p=${PACKAGE-default}
1633 case $enableval in
1634 yes) enable_fast_install=yes ;;
1635 no) enable_fast_install=no ;;
1636 *)
1637   enable_fast_install=no
1638   # Look at the argument we got.  We use all the common list separators.
1639   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1640   for pkg in $enableval; do
1641     if test "X$pkg" = "X$p"; then
1642       enable_fast_install=yes
1643     fi
1644   done
1645   IFS="$ac_save_ifs"
1646   ;;
1647 esac
1648 else
1649   enable_fast_install=yes
1650 fi
1651
1652 # Extract the first word of "gcc", so it can be a program name with args.
1653 set dummy gcc; ac_word=$2
1654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1655 echo "configure:1656: checking for $ac_word" >&5
1656 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1657   echo $ac_n "(cached) $ac_c" 1>&6
1658 else
1659   if test -n "$CC"; then
1660   ac_cv_prog_CC="$CC" # Let the user override the test.
1661 else
1662   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1663   ac_dummy="$PATH"
1664   for ac_dir in $ac_dummy; do
1665     test -z "$ac_dir" && ac_dir=.
1666     if test -f $ac_dir/$ac_word; then
1667       ac_cv_prog_CC="gcc"
1668       break
1669     fi
1670   done
1671   IFS="$ac_save_ifs"
1672 fi
1673 fi
1674 CC="$ac_cv_prog_CC"
1675 if test -n "$CC"; then
1676   echo "$ac_t""$CC" 1>&6
1677 else
1678   echo "$ac_t""no" 1>&6
1679 fi
1680
1681 if test -z "$CC"; then
1682   # Extract the first word of "cc", so it can be a program name with args.
1683 set dummy cc; ac_word=$2
1684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1685 echo "configure:1686: checking for $ac_word" >&5
1686 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1687   echo $ac_n "(cached) $ac_c" 1>&6
1688 else
1689   if test -n "$CC"; then
1690   ac_cv_prog_CC="$CC" # Let the user override the test.
1691 else
1692   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1693   ac_prog_rejected=no
1694   ac_dummy="$PATH"
1695   for ac_dir in $ac_dummy; do
1696     test -z "$ac_dir" && ac_dir=.
1697     if test -f $ac_dir/$ac_word; then
1698       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1699         ac_prog_rejected=yes
1700         continue
1701       fi
1702       ac_cv_prog_CC="cc"
1703       break
1704     fi
1705   done
1706   IFS="$ac_save_ifs"
1707 if test $ac_prog_rejected = yes; then
1708   # We found a bogon in the path, so make sure we never use it.
1709   set dummy $ac_cv_prog_CC
1710   shift
1711   if test $# -gt 0; then
1712     # We chose a different compiler from the bogus one.
1713     # However, it has the same basename, so the bogon will be chosen
1714     # first if we set CC to just the basename; use the full file name.
1715     shift
1716     set dummy "$ac_dir/$ac_word" "$@"
1717     shift
1718     ac_cv_prog_CC="$@"
1719   fi
1720 fi
1721 fi
1722 fi
1723 CC="$ac_cv_prog_CC"
1724 if test -n "$CC"; then
1725   echo "$ac_t""$CC" 1>&6
1726 else
1727   echo "$ac_t""no" 1>&6
1728 fi
1729
1730   if test -z "$CC"; then
1731     case "`uname -s`" in
1732     *win32* | *WIN32*)
1733       # Extract the first word of "cl", so it can be a program name with args.
1734 set dummy cl; ac_word=$2
1735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_word" >&5
1737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1738   echo $ac_n "(cached) $ac_c" 1>&6
1739 else
1740   if test -n "$CC"; then
1741   ac_cv_prog_CC="$CC" # Let the user override the test.
1742 else
1743   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1744   ac_dummy="$PATH"
1745   for ac_dir in $ac_dummy; do
1746     test -z "$ac_dir" && ac_dir=.
1747     if test -f $ac_dir/$ac_word; then
1748       ac_cv_prog_CC="cl"
1749       break
1750     fi
1751   done
1752   IFS="$ac_save_ifs"
1753 fi
1754 fi
1755 CC="$ac_cv_prog_CC"
1756 if test -n "$CC"; then
1757   echo "$ac_t""$CC" 1>&6
1758 else
1759   echo "$ac_t""no" 1>&6
1760 fi
1761  ;;
1762     esac
1763   fi
1764   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1765 fi
1766
1767 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1768 echo "configure:1769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1769
1770 ac_ext=c
1771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1772 ac_cpp='$CPP $CPPFLAGS'
1773 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1774 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1775 cross_compiling=$ac_cv_prog_cc_cross
1776
1777 cat > conftest.$ac_ext << EOF
1778
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781
1782 main(){return(0);}
1783 EOF
1784 if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1785   ac_cv_prog_cc_works=yes
1786   # If we can't run a trivial program, we are probably using a cross compiler.
1787   if (./conftest; exit) 2>/dev/null; then
1788     ac_cv_prog_cc_cross=no
1789   else
1790     ac_cv_prog_cc_cross=yes
1791   fi
1792 else
1793   echo "configure: failed program was:" >&5
1794   cat conftest.$ac_ext >&5
1795   ac_cv_prog_cc_works=no
1796 fi
1797 rm -fr conftest*
1798 ac_ext=c
1799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1800 ac_cpp='$CPP $CPPFLAGS'
1801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1803 cross_compiling=$ac_cv_prog_cc_cross
1804
1805 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1806 if test $ac_cv_prog_cc_works = no; then
1807   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1808 fi
1809 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1810 echo "configure:1811: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1811 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1812 cross_compiling=$ac_cv_prog_cc_cross
1813
1814 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1815 echo "configure:1816: checking whether we are using GNU C" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1817   echo $ac_n "(cached) $ac_c" 1>&6
1818 else
1819   cat > conftest.c <<EOF
1820 #ifdef __GNUC__
1821   yes;
1822 #endif
1823 EOF
1824 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1825   ac_cv_prog_gcc=yes
1826 else
1827   ac_cv_prog_gcc=no
1828 fi
1829 fi
1830
1831 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1832
1833 if test $ac_cv_prog_gcc = yes; then
1834   GCC=yes
1835 else
1836   GCC=
1837 fi
1838
1839 ac_test_CFLAGS="${CFLAGS+set}"
1840 ac_save_CFLAGS="$CFLAGS"
1841 CFLAGS=
1842 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1843 echo "configure:1844: checking whether ${CC-cc} accepts -g" >&5
1844 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1845   echo $ac_n "(cached) $ac_c" 1>&6
1846 else
1847   echo 'void f(){}' > conftest.c
1848 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1849   ac_cv_prog_cc_g=yes
1850 else
1851   ac_cv_prog_cc_g=no
1852 fi
1853 rm -f conftest*
1854
1855 fi
1856
1857 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1858 if test "$ac_test_CFLAGS" = set; then
1859   CFLAGS="$ac_save_CFLAGS"
1860 elif test $ac_cv_prog_cc_g = yes; then
1861   if test "$GCC" = yes; then
1862     CFLAGS="-g -O2"
1863   else
1864     CFLAGS="-g"
1865   fi
1866 else
1867   if test "$GCC" = yes; then
1868     CFLAGS="-O2"
1869   else
1870     CFLAGS=
1871   fi
1872 fi
1873
1874 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1875 if test "${with_gnu_ld+set}" = set; then
1876   withval="$with_gnu_ld"
1877   test "$withval" = no || with_gnu_ld=yes
1878 else
1879   with_gnu_ld=no
1880 fi
1881
1882 ac_prog=ld
1883 if test "$GCC" = yes; then
1884   # Check if gcc -print-prog-name=ld gives a path.
1885   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1886 echo "configure:1887: checking for ld used by GCC" >&5
1887   case $host in
1888   *-*-mingw*)
1889     # gcc leaves a trailing carriage return which upsets mingw
1890     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1891   *)
1892     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1893   esac
1894   case $ac_prog in
1895     # Accept absolute paths.
1896     [\\/]* | [A-Za-z]:[\\/]*)
1897       re_direlt='/[^/][^/]*/\.\./'
1898       # Canonicalize the path of ld
1899       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1900       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1901         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1902       done
1903       test -z "$LD" && LD="$ac_prog"
1904       ;;
1905   "")
1906     # If it fails, then pretend we aren't using GCC.
1907     ac_prog=ld
1908     ;;
1909   *)
1910     # If it is relative, then search for the first ld in PATH.
1911     with_gnu_ld=unknown
1912     ;;
1913   esac
1914 elif test "$with_gnu_ld" = yes; then
1915   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1916 echo "configure:1917: checking for GNU ld" >&5
1917 else
1918   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1919 echo "configure:1920: checking for non-GNU ld" >&5
1920 fi
1921 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1922   echo $ac_n "(cached) $ac_c" 1>&6
1923 else
1924   if test -z "$LD"; then
1925   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1926   for ac_dir in $PATH; do
1927     test -z "$ac_dir" && ac_dir=.
1928     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1929       lt_cv_path_LD="$ac_dir/$ac_prog"
1930       # Check to see if the program is GNU ld.  I'd rather use --version,
1931       # but apparently some GNU ld's only accept -v.
1932       # Break only if it was the GNU/non-GNU ld that we prefer.
1933       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1934         test "$with_gnu_ld" != no && break
1935       else
1936         test "$with_gnu_ld" != yes && break
1937       fi
1938     fi
1939   done
1940   IFS="$ac_save_ifs"
1941 else
1942   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1943 fi
1944 fi
1945
1946 LD="$lt_cv_path_LD"
1947 if test -n "$LD"; then
1948   echo "$ac_t""$LD" 1>&6
1949 else
1950   echo "$ac_t""no" 1>&6
1951 fi
1952 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1953 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1954 echo "configure:1955: checking if the linker ($LD) is GNU ld" >&5
1955 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1956   echo $ac_n "(cached) $ac_c" 1>&6
1957 else
1958   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1959 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1960   lt_cv_prog_gnu_ld=yes
1961 else
1962   lt_cv_prog_gnu_ld=no
1963 fi
1964 fi
1965
1966 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1967 with_gnu_ld=$lt_cv_prog_gnu_ld
1968
1969
1970 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1971 echo "configure:1972: checking for $LD option to reload object files" >&5
1972 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1973   echo $ac_n "(cached) $ac_c" 1>&6
1974 else
1975   lt_cv_ld_reload_flag='-r'
1976 fi
1977
1978 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1979 reload_flag=$lt_cv_ld_reload_flag
1980 test -n "$reload_flag" && reload_flag=" $reload_flag"
1981
1982 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1983 echo "configure:1984: checking for BSD-compatible nm" >&5
1984 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1985   echo $ac_n "(cached) $ac_c" 1>&6
1986 else
1987   if test -n "$NM"; then
1988   # Let the user override the test.
1989   lt_cv_path_NM="$NM"
1990 else
1991   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1992   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1993     test -z "$ac_dir" && ac_dir=.
1994     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1995     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1996       # Check to see if the nm accepts a BSD-compat flag.
1997       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1998       #   nm: unknown option "B" ignored
1999       # Tru64's nm complains that /dev/null is an invalid object file
2000       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2001         lt_cv_path_NM="$tmp_nm -B"
2002         break
2003       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2004         lt_cv_path_NM="$tmp_nm -p"
2005         break
2006       else
2007         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2008         continue # so that we can try to find one that supports BSD flags
2009       fi
2010     fi
2011   done
2012   IFS="$ac_save_ifs"
2013   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2014 fi
2015 fi
2016
2017 NM="$lt_cv_path_NM"
2018 echo "$ac_t""$NM" 1>&6
2019
2020 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2021 echo "configure:2022: checking whether ln -s works" >&5
2022 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2023   echo $ac_n "(cached) $ac_c" 1>&6
2024 else
2025   rm -f conftestdata
2026 if ln -s X conftestdata 2>/dev/null
2027 then
2028   rm -f conftestdata
2029   ac_cv_prog_LN_S="ln -s"
2030 else
2031   ac_cv_prog_LN_S=ln
2032 fi
2033 fi
2034 LN_S="$ac_cv_prog_LN_S"
2035 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2036   echo "$ac_t""yes" 1>&6
2037 else
2038   echo "$ac_t""no" 1>&6
2039 fi
2040
2041 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2042 echo "configure:2043: checking how to recognise dependant libraries" >&5
2043 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2044   echo $ac_n "(cached) $ac_c" 1>&6
2045 else
2046   lt_cv_file_magic_cmd='$MAGIC_CMD'
2047 lt_cv_file_magic_test_file=
2048 lt_cv_deplibs_check_method='unknown'
2049 # Need to set the preceding variable on all platforms that support
2050 # interlibrary dependencies.
2051 # 'none' -- dependencies not supported.
2052 # `unknown' -- same as none, but documents that we really don't know.
2053 # 'pass_all' -- all dependencies passed with no checks.
2054 # 'test_compile' -- check by making test program.
2055 # 'file_magic [regex]' -- check by looking for files in library path
2056 # which responds to the $file_magic_cmd with a given egrep regex.
2057 # If you have `file' or equivalent on your system and you're not sure
2058 # whether `pass_all' will *always* work, you probably want this one.
2059
2060 case $host_os in
2061 aix*)
2062   lt_cv_deplibs_check_method=pass_all
2063   ;;
2064
2065 beos*)
2066   lt_cv_deplibs_check_method=pass_all
2067   ;;
2068
2069 bsdi4*)
2070   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2071   lt_cv_file_magic_cmd='/usr/bin/file -L'
2072   lt_cv_file_magic_test_file=/shlib/libc.so
2073   ;;
2074
2075 cygwin* | mingw* |pw32*)
2076   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2077   lt_cv_file_magic_cmd='$OBJDUMP -f'
2078   ;;
2079
2080 darwin* | rhapsody*)
2081   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2082   lt_cv_file_magic_cmd='/usr/bin/file -L'
2083   case "$host_os" in
2084   rhapsody* | darwin1.012)
2085     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2086     ;;
2087   *) # Darwin 1.3 on
2088     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2089     ;;
2090   esac
2091   ;;
2092
2093 freebsd* )
2094   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2095     case $host_cpu in
2096     i*86 )
2097       # Not sure whether the presence of OpenBSD here was a mistake.
2098       # Let's accept both of them until this is cleared up.
2099       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2100       lt_cv_file_magic_cmd=/usr/bin/file
2101       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2102       ;;
2103     esac
2104   else
2105     lt_cv_deplibs_check_method=pass_all
2106   fi
2107   ;;
2108
2109 gnu*)
2110   lt_cv_deplibs_check_method=pass_all
2111   ;;
2112
2113 hpux10.20*|hpux11*)
2114   case $host_cpu in
2115   hppa*)
2116     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2117     lt_cv_file_magic_cmd=/usr/bin/file
2118     lt_cv_file_magic_test_file=/usr/lib/libc.sl
2119     ;;
2120   ia64*)
2121     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2122     lt_cv_file_magic_cmd=/usr/bin/file
2123     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2124     ;;
2125   esac
2126   ;;
2127
2128 irix5* | irix6*)
2129   case $host_os in
2130   irix5*)
2131     # this will be overridden with pass_all, but let us keep it just in case
2132     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2133     ;;
2134   *)
2135     case $LD in
2136     *-32|*"-32 ") libmagic=32-bit;;
2137     *-n32|*"-n32 ") libmagic=N32;;
2138     *-64|*"-64 ") libmagic=64-bit;;
2139     *) libmagic=never-match;;
2140     esac
2141     # this will be overridden with pass_all, but let us keep it just in case
2142     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2143     ;;
2144   esac
2145   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2146   lt_cv_deplibs_check_method=pass_all
2147   ;;
2148
2149 # This must be Linux ELF.
2150 linux-gnu*)
2151   case $host_cpu in
2152   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2153     lt_cv_deplibs_check_method=pass_all ;;
2154   *)
2155     # glibc up to 2.1.1 does not perform some relocations on ARM
2156     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2157   esac
2158   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2159   ;;
2160
2161 netbsd*)
2162   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2163     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2164   else
2165     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2166   fi
2167   ;;
2168
2169 newsos6)
2170   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2171   lt_cv_file_magic_cmd=/usr/bin/file
2172   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2173   ;;
2174
2175 osf3* | osf4* | osf5*)
2176   # this will be overridden with pass_all, but let us keep it just in case
2177   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2178   lt_cv_file_magic_test_file=/shlib/libc.so
2179   lt_cv_deplibs_check_method=pass_all
2180   ;;
2181
2182 sco3.2v5*)
2183   lt_cv_deplibs_check_method=pass_all
2184   ;;
2185
2186 solaris*)
2187   lt_cv_deplibs_check_method=pass_all
2188   lt_cv_file_magic_test_file=/lib/libc.so
2189   ;;
2190
2191 sysv5uw[78]* | sysv4*uw2*)
2192   lt_cv_deplibs_check_method=pass_all
2193   ;;
2194
2195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2196   case $host_vendor in
2197   ncr)
2198     lt_cv_deplibs_check_method=pass_all
2199     ;;
2200   motorola)
2201     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2202     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2203     ;;
2204   esac
2205   ;;
2206 esac
2207
2208 fi
2209
2210 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2211 file_magic_cmd=$lt_cv_file_magic_cmd
2212 deplibs_check_method=$lt_cv_deplibs_check_method
2213
2214 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2215 echo "configure:2216: checking for object suffix" >&5
2216 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2217   echo $ac_n "(cached) $ac_c" 1>&6
2218 else
2219   rm -f conftest*
2220 echo 'int i = 1;' > conftest.$ac_ext
2221 if { (eval echo configure:2222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2222   for ac_file in conftest.*; do
2223     case $ac_file in
2224     *.c) ;;
2225     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2226     esac
2227   done
2228 else
2229   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2230 fi
2231 rm -f conftest*
2232 fi
2233
2234 echo "$ac_t""$ac_cv_objext" 1>&6
2235 OBJEXT=$ac_cv_objext
2236 ac_objext=$ac_cv_objext
2237
2238 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2239
2240 # Only perform the check for file, if the check method requires it
2241 case $deplibs_check_method in
2242 file_magic*)
2243   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2244     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2245 echo "configure:2246: checking for ${ac_tool_prefix}file" >&5
2246 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2247   echo $ac_n "(cached) $ac_c" 1>&6
2248 else
2249   case $MAGIC_CMD in
2250   /*)
2251   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2252   ;;
2253   ?:/*)
2254   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2255   ;;
2256   *)
2257   ac_save_MAGIC_CMD="$MAGIC_CMD"
2258   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2259   ac_dummy="/usr/bin:$PATH"
2260   for ac_dir in $ac_dummy; do
2261     test -z "$ac_dir" && ac_dir=.
2262     if test -f $ac_dir/${ac_tool_prefix}file; then
2263       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2264       if test -n "$file_magic_test_file"; then
2265         case $deplibs_check_method in
2266         "file_magic "*)
2267           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2268           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2269           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2270             egrep "$file_magic_regex" > /dev/null; then
2271             :
2272           else
2273             cat <<EOF 1>&2
2274
2275 *** Warning: the command libtool uses to detect shared libraries,
2276 *** $file_magic_cmd, produces output that libtool cannot recognize.
2277 *** The result is that libtool may fail to recognize shared libraries
2278 *** as such.  This will affect the creation of libtool libraries that
2279 *** depend on shared libraries, but programs linked with such libtool
2280 *** libraries will work regardless of this problem.  Nevertheless, you
2281 *** may want to report the problem to your system manager and/or to
2282 *** bug-libtool@gnu.org
2283
2284 EOF
2285           fi ;;
2286         esac
2287       fi
2288       break
2289     fi
2290   done
2291   IFS="$ac_save_ifs"
2292   MAGIC_CMD="$ac_save_MAGIC_CMD"
2293   ;;
2294 esac
2295 fi
2296
2297 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2298 if test -n "$MAGIC_CMD"; then
2299   echo "$ac_t""$MAGIC_CMD" 1>&6
2300 else
2301   echo "$ac_t""no" 1>&6
2302 fi
2303
2304 if test -z "$lt_cv_path_MAGIC_CMD"; then
2305   if test -n "$ac_tool_prefix"; then
2306     echo $ac_n "checking for file""... $ac_c" 1>&6
2307 echo "configure:2308: checking for file" >&5
2308 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2309   echo $ac_n "(cached) $ac_c" 1>&6
2310 else
2311   case $MAGIC_CMD in
2312   /*)
2313   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2314   ;;
2315   ?:/*)
2316   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2317   ;;
2318   *)
2319   ac_save_MAGIC_CMD="$MAGIC_CMD"
2320   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2321   ac_dummy="/usr/bin:$PATH"
2322   for ac_dir in $ac_dummy; do
2323     test -z "$ac_dir" && ac_dir=.
2324     if test -f $ac_dir/file; then
2325       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2326       if test -n "$file_magic_test_file"; then
2327         case $deplibs_check_method in
2328         "file_magic "*)
2329           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2330           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2331           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2332             egrep "$file_magic_regex" > /dev/null; then
2333             :
2334           else
2335             cat <<EOF 1>&2
2336
2337 *** Warning: the command libtool uses to detect shared libraries,
2338 *** $file_magic_cmd, produces output that libtool cannot recognize.
2339 *** The result is that libtool may fail to recognize shared libraries
2340 *** as such.  This will affect the creation of libtool libraries that
2341 *** depend on shared libraries, but programs linked with such libtool
2342 *** libraries will work regardless of this problem.  Nevertheless, you
2343 *** may want to report the problem to your system manager and/or to
2344 *** bug-libtool@gnu.org
2345
2346 EOF
2347           fi ;;
2348         esac
2349       fi
2350       break
2351     fi
2352   done
2353   IFS="$ac_save_ifs"
2354   MAGIC_CMD="$ac_save_MAGIC_CMD"
2355   ;;
2356 esac
2357 fi
2358
2359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2360 if test -n "$MAGIC_CMD"; then
2361   echo "$ac_t""$MAGIC_CMD" 1>&6
2362 else
2363   echo "$ac_t""no" 1>&6
2364 fi
2365
2366   else
2367     MAGIC_CMD=:
2368   fi
2369 fi
2370
2371   fi
2372   ;;
2373 esac
2374
2375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2378 echo "configure:2379: checking for $ac_word" >&5
2379 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2380   echo $ac_n "(cached) $ac_c" 1>&6
2381 else
2382   if test -n "$RANLIB"; then
2383   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2384 else
2385   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2386   ac_dummy="$PATH"
2387   for ac_dir in $ac_dummy; do
2388     test -z "$ac_dir" && ac_dir=.
2389     if test -f $ac_dir/$ac_word; then
2390       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2391       break
2392     fi
2393   done
2394   IFS="$ac_save_ifs"
2395 fi
2396 fi
2397 RANLIB="$ac_cv_prog_RANLIB"
2398 if test -n "$RANLIB"; then
2399   echo "$ac_t""$RANLIB" 1>&6
2400 else
2401   echo "$ac_t""no" 1>&6
2402 fi
2403
2404
2405 if test -z "$ac_cv_prog_RANLIB"; then
2406 if test -n "$ac_tool_prefix"; then
2407   # Extract the first word of "ranlib", so it can be a program name with args.
2408 set dummy ranlib; ac_word=$2
2409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2410 echo "configure:2411: checking for $ac_word" >&5
2411 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2412   echo $ac_n "(cached) $ac_c" 1>&6
2413 else
2414   if test -n "$RANLIB"; then
2415   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2416 else
2417   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2418   ac_dummy="$PATH"
2419   for ac_dir in $ac_dummy; do
2420     test -z "$ac_dir" && ac_dir=.
2421     if test -f $ac_dir/$ac_word; then
2422       ac_cv_prog_RANLIB="ranlib"
2423       break
2424     fi
2425   done
2426   IFS="$ac_save_ifs"
2427   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2428 fi
2429 fi
2430 RANLIB="$ac_cv_prog_RANLIB"
2431 if test -n "$RANLIB"; then
2432   echo "$ac_t""$RANLIB" 1>&6
2433 else
2434   echo "$ac_t""no" 1>&6
2435 fi
2436
2437 else
2438   RANLIB=":"
2439 fi
2440 fi
2441
2442 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}strip; ac_word=$2
2444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2445 echo "configure:2446: checking for $ac_word" >&5
2446 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2447   echo $ac_n "(cached) $ac_c" 1>&6
2448 else
2449   if test -n "$STRIP"; then
2450   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2451 else
2452   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2453   ac_dummy="$PATH"
2454   for ac_dir in $ac_dummy; do
2455     test -z "$ac_dir" && ac_dir=.
2456     if test -f $ac_dir/$ac_word; then
2457       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2458       break
2459     fi
2460   done
2461   IFS="$ac_save_ifs"
2462 fi
2463 fi
2464 STRIP="$ac_cv_prog_STRIP"
2465 if test -n "$STRIP"; then
2466   echo "$ac_t""$STRIP" 1>&6
2467 else
2468   echo "$ac_t""no" 1>&6
2469 fi
2470
2471
2472 if test -z "$ac_cv_prog_STRIP"; then
2473 if test -n "$ac_tool_prefix"; then
2474   # Extract the first word of "strip", so it can be a program name with args.
2475 set dummy strip; ac_word=$2
2476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_word" >&5
2478 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2479   echo $ac_n "(cached) $ac_c" 1>&6
2480 else
2481   if test -n "$STRIP"; then
2482   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2483 else
2484   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2485   ac_dummy="$PATH"
2486   for ac_dir in $ac_dummy; do
2487     test -z "$ac_dir" && ac_dir=.
2488     if test -f $ac_dir/$ac_word; then
2489       ac_cv_prog_STRIP="strip"
2490       break
2491     fi
2492   done
2493   IFS="$ac_save_ifs"
2494   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2495 fi
2496 fi
2497 STRIP="$ac_cv_prog_STRIP"
2498 if test -n "$STRIP"; then
2499   echo "$ac_t""$STRIP" 1>&6
2500 else
2501   echo "$ac_t""no" 1>&6
2502 fi
2503
2504 else
2505   STRIP=":"
2506 fi
2507 fi
2508
2509
2510 # Check for any special flags to pass to ltconfig.
2511 libtool_flags="--cache-file=$cache_file"
2512 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2513 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2514 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2515 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2516 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2517
2518 libtool_flags="$libtool_flags --enable-win32-dll"
2519 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2520 if test "${enable_libtool_lock+set}" = set; then
2521   enableval="$enable_libtool_lock"
2522   :
2523 fi
2524
2525 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2526 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2527
2528 # Check whether --with-pic or --without-pic was given.
2529 if test "${with_pic+set}" = set; then
2530   withval="$with_pic"
2531   pic_mode="$withval"
2532 else
2533   pic_mode=default
2534 fi
2535
2536 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2537 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2538
2539 # Some flags need to be propagated to the compiler or linker for good
2540 # libtool support.
2541 case $host in
2542 *-*-irix6*)
2543   # Find out which ABI we are using.
2544   echo '#line 2545 "configure"' > conftest.$ac_ext
2545   if { (eval echo configure:2546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2546     case `/usr/bin/file conftest.$ac_objext` in
2547     *32-bit*)
2548       LD="${LD-ld} -32"
2549       ;;
2550     *N32*)
2551       LD="${LD-ld} -n32"
2552       ;;
2553     *64-bit*)
2554       LD="${LD-ld} -64"
2555       ;;
2556     esac
2557   fi
2558   rm -rf conftest*
2559   ;;
2560
2561 ia64-*-hpux*)
2562   # Find out which ABI we are using.
2563   echo 'int i;' > conftest.$ac_ext
2564   if { (eval echo configure:2565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2565     case "`/usr/bin/file conftest.o`" in
2566     *ELF-32*)
2567       HPUX_IA64_MODE="32"
2568       ;;
2569     *ELF-64*)
2570       HPUX_IA64_MODE="64"
2571       ;;
2572     esac
2573   fi
2574   rm -rf conftest*
2575   ;;
2576
2577 *-*-sco3.2v5*)
2578   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2579   SAVE_CFLAGS="$CFLAGS"
2580   CFLAGS="$CFLAGS -belf"
2581   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2582 echo "configure:2583: checking whether the C compiler needs -belf" >&5
2583 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2584   echo $ac_n "(cached) $ac_c" 1>&6
2585 else
2586   
2587      ac_ext=c
2588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2591 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2592 cross_compiling=$ac_cv_prog_cc_cross
2593
2594      cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597
2598 int main() {
2599
2600 ; return 0; }
2601 EOF
2602 if { (eval echo configure:2603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2603   rm -rf conftest*
2604   lt_cv_cc_needs_belf=yes
2605 else
2606   echo "configure: failed program was:" >&5
2607   cat conftest.$ac_ext >&5
2608   rm -rf conftest*
2609   lt_cv_cc_needs_belf=no
2610 fi
2611 rm -f conftest*
2612      ac_ext=c
2613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2617 cross_compiling=$ac_cv_prog_cc_cross
2618
2619 fi
2620
2621 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2622   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2623     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2624     CFLAGS="$SAVE_CFLAGS"
2625   fi
2626   ;;
2627
2628 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2629   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2630 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2632 echo "configure:2633: checking for $ac_word" >&5
2633 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2634   echo $ac_n "(cached) $ac_c" 1>&6
2635 else
2636   if test -n "$DLLTOOL"; then
2637   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2638 else
2639   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2640   ac_dummy="$PATH"
2641   for ac_dir in $ac_dummy; do
2642     test -z "$ac_dir" && ac_dir=.
2643     if test -f $ac_dir/$ac_word; then
2644       ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2645       break
2646     fi
2647   done
2648   IFS="$ac_save_ifs"
2649 fi
2650 fi
2651 DLLTOOL="$ac_cv_prog_DLLTOOL"
2652 if test -n "$DLLTOOL"; then
2653   echo "$ac_t""$DLLTOOL" 1>&6
2654 else
2655   echo "$ac_t""no" 1>&6
2656 fi
2657
2658
2659 if test -z "$ac_cv_prog_DLLTOOL"; then
2660 if test -n "$ac_tool_prefix"; then
2661   # Extract the first word of "dlltool", so it can be a program name with args.
2662 set dummy dlltool; ac_word=$2
2663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2664 echo "configure:2665: checking for $ac_word" >&5
2665 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2666   echo $ac_n "(cached) $ac_c" 1>&6
2667 else
2668   if test -n "$DLLTOOL"; then
2669   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2670 else
2671   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2672   ac_dummy="$PATH"
2673   for ac_dir in $ac_dummy; do
2674     test -z "$ac_dir" && ac_dir=.
2675     if test -f $ac_dir/$ac_word; then
2676       ac_cv_prog_DLLTOOL="dlltool"
2677       break
2678     fi
2679   done
2680   IFS="$ac_save_ifs"
2681   test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2682 fi
2683 fi
2684 DLLTOOL="$ac_cv_prog_DLLTOOL"
2685 if test -n "$DLLTOOL"; then
2686   echo "$ac_t""$DLLTOOL" 1>&6
2687 else
2688   echo "$ac_t""no" 1>&6
2689 fi
2690
2691 else
2692   DLLTOOL="false"
2693 fi
2694 fi
2695
2696   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2697 set dummy ${ac_tool_prefix}as; ac_word=$2
2698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2699 echo "configure:2700: checking for $ac_word" >&5
2700 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2701   echo $ac_n "(cached) $ac_c" 1>&6
2702 else
2703   if test -n "$AS"; then
2704   ac_cv_prog_AS="$AS" # Let the user override the test.
2705 else
2706   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2707   ac_dummy="$PATH"
2708   for ac_dir in $ac_dummy; do
2709     test -z "$ac_dir" && ac_dir=.
2710     if test -f $ac_dir/$ac_word; then
2711       ac_cv_prog_AS="${ac_tool_prefix}as"
2712       break
2713     fi
2714   done
2715   IFS="$ac_save_ifs"
2716 fi
2717 fi
2718 AS="$ac_cv_prog_AS"
2719 if test -n "$AS"; then
2720   echo "$ac_t""$AS" 1>&6
2721 else
2722   echo "$ac_t""no" 1>&6
2723 fi
2724
2725
2726 if test -z "$ac_cv_prog_AS"; then
2727 if test -n "$ac_tool_prefix"; then
2728   # Extract the first word of "as", so it can be a program name with args.
2729 set dummy as; ac_word=$2
2730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2731 echo "configure:2732: checking for $ac_word" >&5
2732 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2733   echo $ac_n "(cached) $ac_c" 1>&6
2734 else
2735   if test -n "$AS"; then
2736   ac_cv_prog_AS="$AS" # Let the user override the test.
2737 else
2738   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2739   ac_dummy="$PATH"
2740   for ac_dir in $ac_dummy; do
2741     test -z "$ac_dir" && ac_dir=.
2742     if test -f $ac_dir/$ac_word; then
2743       ac_cv_prog_AS="as"
2744       break
2745     fi
2746   done
2747   IFS="$ac_save_ifs"
2748   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2749 fi
2750 fi
2751 AS="$ac_cv_prog_AS"
2752 if test -n "$AS"; then
2753   echo "$ac_t""$AS" 1>&6
2754 else
2755   echo "$ac_t""no" 1>&6
2756 fi
2757
2758 else
2759   AS="false"
2760 fi
2761 fi
2762
2763   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2764 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2766 echo "configure:2767: checking for $ac_word" >&5
2767 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2768   echo $ac_n "(cached) $ac_c" 1>&6
2769 else
2770   if test -n "$OBJDUMP"; then
2771   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2772 else
2773   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2774   ac_dummy="$PATH"
2775   for ac_dir in $ac_dummy; do
2776     test -z "$ac_dir" && ac_dir=.
2777     if test -f $ac_dir/$ac_word; then
2778       ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2779       break
2780     fi
2781   done
2782   IFS="$ac_save_ifs"
2783 fi
2784 fi
2785 OBJDUMP="$ac_cv_prog_OBJDUMP"
2786 if test -n "$OBJDUMP"; then
2787   echo "$ac_t""$OBJDUMP" 1>&6
2788 else
2789   echo "$ac_t""no" 1>&6
2790 fi
2791
2792
2793 if test -z "$ac_cv_prog_OBJDUMP"; then
2794 if test -n "$ac_tool_prefix"; then
2795   # Extract the first word of "objdump", so it can be a program name with args.
2796 set dummy objdump; ac_word=$2
2797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2798 echo "configure:2799: checking for $ac_word" >&5
2799 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2800   echo $ac_n "(cached) $ac_c" 1>&6
2801 else
2802   if test -n "$OBJDUMP"; then
2803   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2804 else
2805   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2806   ac_dummy="$PATH"
2807   for ac_dir in $ac_dummy; do
2808     test -z "$ac_dir" && ac_dir=.
2809     if test -f $ac_dir/$ac_word; then
2810       ac_cv_prog_OBJDUMP="objdump"
2811       break
2812     fi
2813   done
2814   IFS="$ac_save_ifs"
2815   test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2816 fi
2817 fi
2818 OBJDUMP="$ac_cv_prog_OBJDUMP"
2819 if test -n "$OBJDUMP"; then
2820   echo "$ac_t""$OBJDUMP" 1>&6
2821 else
2822   echo "$ac_t""no" 1>&6
2823 fi
2824
2825 else
2826   OBJDUMP="false"
2827 fi
2828 fi
2829
2830
2831   # recent cygwin and mingw systems supply a stub DllMain which the user
2832   # can override, but on older systems we have to supply one
2833   echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2834 echo "configure:2835: checking if libtool should supply DllMain function" >&5
2835 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2836   echo $ac_n "(cached) $ac_c" 1>&6
2837 else
2838   cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841
2842 int main() {
2843 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2844       DllMain (0, 0, 0);
2845 ; return 0; }
2846 EOF
2847 if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2848   rm -rf conftest*
2849   lt_cv_need_dllmain=no
2850 else
2851   echo "configure: failed program was:" >&5
2852   cat conftest.$ac_ext >&5
2853   rm -rf conftest*
2854   lt_cv_need_dllmain=yes
2855 fi
2856 rm -f conftest*
2857 fi
2858
2859 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2860
2861   case $host/$CC in
2862   *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2863     # old mingw systems require "-dll" to link a DLL, while more recent ones
2864     # require "-mdll"
2865     SAVE_CFLAGS="$CFLAGS"
2866     CFLAGS="$CFLAGS -mdll"
2867     echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2868 echo "configure:2869: checking how to link DLLs" >&5
2869 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2870   echo $ac_n "(cached) $ac_c" 1>&6
2871 else
2872   cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875
2876 int main() {
2877
2878 ; return 0; }
2879 EOF
2880 if { (eval echo configure:2881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2881   rm -rf conftest*
2882   lt_cv_cc_dll_switch=-mdll
2883 else
2884   echo "configure: failed program was:" >&5
2885   cat conftest.$ac_ext >&5
2886   rm -rf conftest*
2887   lt_cv_cc_dll_switch=-dll
2888 fi
2889 rm -f conftest*
2890 fi
2891
2892 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2893     CFLAGS="$SAVE_CFLAGS" ;;
2894   *-*-cygwin* | *-*-pw32*)
2895     # cygwin systems need to pass --dll to the linker, and not link
2896     # crt.o which will require a WinMain@16 definition.
2897     lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2898   esac
2899   ;;
2900   
2901 esac
2902
2903
2904 # Save cache, so that ltconfig can load it
2905 cat > confcache <<\EOF
2906 # This file is a shell script that caches the results of configure
2907 # tests run on this system so they can be shared between configure
2908 # scripts and configure runs.  It is not useful on other systems.
2909 # If it contains results you don't want to keep, you may remove or edit it.
2910 #
2911 # By default, configure uses ./config.cache as the cache file,
2912 # creating it if it does not exist already.  You can give configure
2913 # the --cache-file=FILE option to use a different cache file; that is
2914 # what configure does when it calls configure scripts in
2915 # subdirectories, so they share the cache.
2916 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2917 # config.status only pays attention to the cache file if you give it the
2918 # --recheck option to rerun configure.
2919 #
2920 EOF
2921 # The following way of writing the cache mishandles newlines in values,
2922 # but we know of no workaround that is simple, portable, and efficient.
2923 # So, don't put newlines in cache variables' values.
2924 # Ultrix sh set writes to stderr and can't be redirected directly,
2925 # and sets the high bit in the cache file unless we assign to the vars.
2926 (set) 2>&1 |
2927   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2928   *ac_space=\ *)
2929     # `set' does not quote correctly, so add quotes (double-quote substitution
2930     # turns \\\\ into \\, and sed turns \\ into \).
2931     sed -n \
2932       -e "s/'/'\\\\''/g" \
2933       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2934     ;;
2935   *)
2936     # `set' quotes correctly as required by POSIX, so do not add quotes.
2937     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2938     ;;
2939   esac >> confcache
2940 if cmp -s $cache_file confcache; then
2941   :
2942 else
2943   if test -w $cache_file; then
2944     echo "updating cache $cache_file"
2945     cat confcache > $cache_file
2946   else
2947     echo "not updating unwritable cache $cache_file"
2948   fi
2949 fi
2950 rm -f confcache
2951
2952
2953 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2954 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2955 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2956 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2957 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2958 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2959 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2960 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2961 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2962 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2963
2964 # Reload cache, that may have been modified by ltconfig
2965 if test -r "$cache_file"; then
2966   echo "loading cache $cache_file"
2967   . $cache_file
2968 else
2969   echo "creating cache $cache_file"
2970   > $cache_file
2971 fi
2972
2973
2974 # This can be used to rebuild libtool when needed
2975 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2976
2977 # Always use our own libtool.
2978 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2979
2980 # Redirect the config.log output again, so that the ltconfig log is not
2981 # clobbered by the next message.
2982 exec 5>>./config.log
2983
2984   
2985
2986   
2987          
2988          
2989 for ac_prog in mawk gawk nawk awk
2990 do
2991 # Extract the first word of "$ac_prog", so it can be a program name with args.
2992 set dummy $ac_prog; ac_word=$2
2993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2994 echo "configure:2995: checking for $ac_word" >&5
2995 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2996   echo $ac_n "(cached) $ac_c" 1>&6
2997 else
2998   if test -n "$AWK"; then
2999   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3000 else
3001   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3002   ac_dummy="$PATH"
3003   for ac_dir in $ac_dummy; do
3004     test -z "$ac_dir" && ac_dir=.
3005     if test -f $ac_dir/$ac_word; then
3006       ac_cv_prog_AWK="$ac_prog"
3007       break
3008     fi
3009   done
3010   IFS="$ac_save_ifs"
3011 fi
3012 fi
3013 AWK="$ac_cv_prog_AWK"
3014 if test -n "$AWK"; then
3015   echo "$ac_t""$AWK" 1>&6
3016 else
3017   echo "$ac_t""no" 1>&6
3018 fi
3019
3020 test -n "$AWK" && break
3021 done
3022
3023 fi
3024
3025 LINUX_MACH_LIB=
3026 if test -n "${machine_dir}"; then
3027   if test "${use_libtool}" = "yes"; then
3028     LINUX_MACH_LIB=machine/${machine_dir}/liblinux${machine_dir}.${aext}
3029   else
3030     LINUX_MACH_LIB=machine/lib.${aext}
3031   fi
3032 fi
3033
3034
3035 EXTRA_SUBDIRS=
3036 EXTRA_SUBLIBS=
3037
3038 if test "${newlib_multithread}" = "yes"; then
3039 EXTRA_CONFIG_DIRS=linuxthreads
3040 fi
3041 if test "x${newlib_elix_level}" = "x1"; then
3042 EXTRA_SUBDIRS=linuxthreads net
3043 else 
3044 EXTRA_SUBDIRS="linuxthreads net intl stdlib iconv dl"
3045 EXTRA_SUBLIBS="net/libnet.la intl/libintl.la stdlib/libstdlib.la iconv/libiconv.la dl/libdl.la"
3046 fi
3047
3048
3049
3050
3051 subdirs="machine $EXTRA_CONFIG_DIRS"
3052
3053
3054 trap '' 1 2 15
3055 cat > confcache <<\EOF
3056 # This file is a shell script that caches the results of configure
3057 # tests run on this system so they can be shared between configure
3058 # scripts and configure runs.  It is not useful on other systems.
3059 # If it contains results you don't want to keep, you may remove or edit it.
3060 #
3061 # By default, configure uses ./config.cache as the cache file,
3062 # creating it if it does not exist already.  You can give configure
3063 # the --cache-file=FILE option to use a different cache file; that is
3064 # what configure does when it calls configure scripts in
3065 # subdirectories, so they share the cache.
3066 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3067 # config.status only pays attention to the cache file if you give it the
3068 # --recheck option to rerun configure.
3069 #
3070 EOF
3071 # The following way of writing the cache mishandles newlines in values,
3072 # but we know of no workaround that is simple, portable, and efficient.
3073 # So, don't put newlines in cache variables' values.
3074 # Ultrix sh set writes to stderr and can't be redirected directly,
3075 # and sets the high bit in the cache file unless we assign to the vars.
3076 (set) 2>&1 |
3077   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3078   *ac_space=\ *)
3079     # `set' does not quote correctly, so add quotes (double-quote substitution
3080     # turns \\\\ into \\, and sed turns \\ into \).
3081     sed -n \
3082       -e "s/'/'\\\\''/g" \
3083       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3084     ;;
3085   *)
3086     # `set' quotes correctly as required by POSIX, so do not add quotes.
3087     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3088     ;;
3089   esac >> confcache
3090 if cmp -s $cache_file confcache; then
3091   :
3092 else
3093   if test -w $cache_file; then
3094     echo "updating cache $cache_file"
3095     cat confcache > $cache_file
3096   else
3097     echo "not updating unwritable cache $cache_file"
3098   fi
3099 fi
3100 rm -f confcache
3101
3102 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3103
3104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3105 # Let make expand exec_prefix.
3106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3107
3108 # Any assignment to VPATH causes Sun make to only execute
3109 # the first set of double-colon rules, so remove it if not needed.
3110 # If there is a colon in the path, we need to keep it.
3111 if test "x$srcdir" = x.; then
3112   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3113 fi
3114
3115 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3116
3117 # Transform confdefs.h into DEFS.
3118 # Protect against shell expansion while executing Makefile rules.
3119 # Protect against Makefile macro expansion.
3120 cat > conftest.defs <<\EOF
3121 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3122 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3123 s%\[%\\&%g
3124 s%\]%\\&%g
3125 s%\$%$$%g
3126 EOF
3127 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3128 rm -f conftest.defs
3129
3130
3131 # Without the "./", some shells look in PATH for config.status.
3132 : ${CONFIG_STATUS=./config.status}
3133
3134 echo creating $CONFIG_STATUS
3135 rm -f $CONFIG_STATUS
3136 cat > $CONFIG_STATUS <<EOF
3137 #! /bin/sh
3138 # Generated automatically by configure.
3139 # Run this file to recreate the current configuration.
3140 # This directory was configured as follows,
3141 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3142 #
3143 # $0 $ac_configure_args
3144 #
3145 # Compiler output produced by configure, useful for debugging
3146 # configure, is in ./config.log if it exists.
3147
3148 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3149 for ac_option
3150 do
3151   case "\$ac_option" in
3152   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3153     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3154     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3155   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3156     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3157     exit 0 ;;
3158   -help | --help | --hel | --he | --h)
3159     echo "\$ac_cs_usage"; exit 0 ;;
3160   *) echo "\$ac_cs_usage"; exit 1 ;;
3161   esac
3162 done
3163
3164 ac_given_srcdir=$srcdir
3165 ac_given_INSTALL="$INSTALL"
3166
3167 trap 'rm -fr `echo "Makefile intl/Makefile net/Makefile stdlib/Makefile iconv/Makefile dl/Makefile cmath/Makefile argp/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3168 EOF
3169 cat >> $CONFIG_STATUS <<EOF
3170
3171 # Protect against being on the right side of a sed subst in config.status.
3172 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3173  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3174 $ac_vpsub
3175 $extrasub
3176 s%@SHELL@%$SHELL%g
3177 s%@CFLAGS@%$CFLAGS%g
3178 s%@CPPFLAGS@%$CPPFLAGS%g
3179 s%@CXXFLAGS@%$CXXFLAGS%g
3180 s%@FFLAGS@%$FFLAGS%g
3181 s%@DEFS@%$DEFS%g
3182 s%@LDFLAGS@%$LDFLAGS%g
3183 s%@LIBS@%$LIBS%g
3184 s%@exec_prefix@%$exec_prefix%g
3185 s%@prefix@%$prefix%g
3186 s%@program_transform_name@%$program_transform_name%g
3187 s%@bindir@%$bindir%g
3188 s%@sbindir@%$sbindir%g
3189 s%@libexecdir@%$libexecdir%g
3190 s%@datadir@%$datadir%g
3191 s%@sysconfdir@%$sysconfdir%g
3192 s%@sharedstatedir@%$sharedstatedir%g
3193 s%@localstatedir@%$localstatedir%g
3194 s%@libdir@%$libdir%g
3195 s%@includedir@%$includedir%g
3196 s%@oldincludedir@%$oldincludedir%g
3197 s%@infodir@%$infodir%g
3198 s%@mandir@%$mandir%g
3199 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
3200 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
3201 s%@newlib_basedir@%$newlib_basedir%g
3202 s%@host@%$host%g
3203 s%@host_alias@%$host_alias%g
3204 s%@host_cpu@%$host_cpu%g
3205 s%@host_vendor@%$host_vendor%g
3206 s%@host_os@%$host_os%g
3207 s%@target@%$target%g
3208 s%@target_alias@%$target_alias%g
3209 s%@target_cpu@%$target_cpu%g
3210 s%@target_vendor@%$target_vendor%g
3211 s%@target_os@%$target_os%g
3212 s%@build@%$build%g
3213 s%@build_alias@%$build_alias%g
3214 s%@build_cpu@%$build_cpu%g
3215 s%@build_vendor@%$build_vendor%g
3216 s%@build_os@%$build_os%g
3217 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3218 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3219 s%@INSTALL_DATA@%$INSTALL_DATA%g
3220 s%@PACKAGE@%$PACKAGE%g
3221 s%@VERSION@%$VERSION%g
3222 s%@ACLOCAL@%$ACLOCAL%g
3223 s%@AUTOCONF@%$AUTOCONF%g
3224 s%@AUTOMAKE@%$AUTOMAKE%g
3225 s%@AUTOHEADER@%$AUTOHEADER%g
3226 s%@MAKEINFO@%$MAKEINFO%g
3227 s%@SET_MAKE@%$SET_MAKE%g
3228 s%@CC@%$CC%g
3229 s%@AS@%$AS%g
3230 s%@AR@%$AR%g
3231 s%@RANLIB@%$RANLIB%g
3232 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3233 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3234 s%@MAINT@%$MAINT%g
3235 s%@EXEEXT@%$EXEEXT%g
3236 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
3237 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
3238 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
3239 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
3240 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
3241 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
3242 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
3243 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
3244 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
3245 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
3246 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
3247 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
3248 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
3249 s%@OBJEXT@%$OBJEXT%g
3250 s%@oext@%$oext%g
3251 s%@aext@%$aext%g
3252 s%@libm_machine_dir@%$libm_machine_dir%g
3253 s%@machine_dir@%$machine_dir%g
3254 s%@sys_dir@%$sys_dir%g
3255 s%@LN_S@%$LN_S%g
3256 s%@STRIP@%$STRIP%g
3257 s%@DLLTOOL@%$DLLTOOL%g
3258 s%@OBJDUMP@%$OBJDUMP%g
3259 s%@LIBTOOL@%$LIBTOOL%g
3260 s%@AWK@%$AWK%g
3261 s%@LINUX_MACH_LIB@%$LINUX_MACH_LIB%g
3262 s%@EXTRA_SUBDIRS@%$EXTRA_SUBDIRS%g
3263 s%@EXTRA_SUBLIBS@%$EXTRA_SUBLIBS%g
3264 s%@subdirs@%$subdirs%g
3265
3266 CEOF
3267 EOF
3268
3269 cat >> $CONFIG_STATUS <<\EOF
3270
3271 # Split the substitutions into bite-sized pieces for seds with
3272 # small command number limits, like on Digital OSF/1 and HP-UX.
3273 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3274 ac_file=1 # Number of current file.
3275 ac_beg=1 # First line for current file.
3276 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3277 ac_more_lines=:
3278 ac_sed_cmds=""
3279 while $ac_more_lines; do
3280   if test $ac_beg -gt 1; then
3281     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3282   else
3283     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3284   fi
3285   if test ! -s conftest.s$ac_file; then
3286     ac_more_lines=false
3287     rm -f conftest.s$ac_file
3288   else
3289     if test -z "$ac_sed_cmds"; then
3290       ac_sed_cmds="sed -f conftest.s$ac_file"
3291     else
3292       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3293     fi
3294     ac_file=`expr $ac_file + 1`
3295     ac_beg=$ac_end
3296     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3297   fi
3298 done
3299 if test -z "$ac_sed_cmds"; then
3300   ac_sed_cmds=cat
3301 fi
3302 EOF
3303
3304 cat >> $CONFIG_STATUS <<EOF
3305
3306 CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile net/Makefile stdlib/Makefile iconv/Makefile dl/Makefile cmath/Makefile argp/Makefile"}
3307 EOF
3308 cat >> $CONFIG_STATUS <<\EOF
3309 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3310   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3311   case "$ac_file" in
3312   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3313        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3314   *) ac_file_in="${ac_file}.in" ;;
3315   esac
3316
3317   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3318
3319   # Remove last slash and all that follows it.  Not all systems have dirname.
3320   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3321   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3322     # The file is in a subdirectory.
3323     test ! -d "$ac_dir" && mkdir "$ac_dir"
3324     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3325     # A "../" for each directory in $ac_dir_suffix.
3326     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3327   else
3328     ac_dir_suffix= ac_dots=
3329   fi
3330
3331   case "$ac_given_srcdir" in
3332   .)  srcdir=.
3333       if test -z "$ac_dots"; then top_srcdir=.
3334       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3335   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3336   *) # Relative path.
3337     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3338     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3339   esac
3340
3341   case "$ac_given_INSTALL" in
3342   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3343   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3344   esac
3345
3346   echo creating "$ac_file"
3347   rm -f "$ac_file"
3348   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3349   case "$ac_file" in
3350   *Makefile*) ac_comsub="1i\\
3351 # $configure_input" ;;
3352   *) ac_comsub= ;;
3353   esac
3354
3355   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3356   sed -e "$ac_comsub
3357 s%@configure_input@%$configure_input%g
3358 s%@srcdir@%$srcdir%g
3359 s%@top_srcdir@%$top_srcdir%g
3360 s%@INSTALL@%$INSTALL%g
3361 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3362 fi; done
3363 rm -f conftest.s*
3364
3365 EOF
3366 cat >> $CONFIG_STATUS <<EOF
3367
3368 EOF
3369 cat >> $CONFIG_STATUS <<\EOF
3370
3371 exit 0
3372 EOF
3373 chmod +x $CONFIG_STATUS
3374 rm -fr confdefs* $ac_clean_files
3375 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3376
3377 if test "$no_recursion" != yes; then
3378
3379   # Remove --cache-file and --srcdir arguments so they do not pile up.
3380   ac_sub_configure_args=
3381   ac_prev=
3382   for ac_arg in $ac_configure_args; do
3383     if test -n "$ac_prev"; then
3384       ac_prev=
3385       continue
3386     fi
3387     case "$ac_arg" in
3388     -cache-file | --cache-file | --cache-fil | --cache-fi \
3389     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3390       ac_prev=cache_file ;;
3391     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3392     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3393       ;;
3394     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3395       ac_prev=srcdir ;;
3396     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3397       ;;
3398     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3399     esac
3400   done
3401
3402   for ac_config_dir in machine $EXTRA_CONFIG_DIRS; do
3403
3404     # Do not complain, so a configure script can configure whichever
3405     # parts of a large source tree are present.
3406     if test ! -d $srcdir/$ac_config_dir; then
3407       continue
3408     fi
3409
3410     echo configuring in $ac_config_dir
3411
3412     case "$srcdir" in
3413     .) ;;
3414     *)
3415       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3416       else
3417         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3418       fi
3419       ;;
3420     esac
3421
3422     ac_popdir=`pwd`
3423     cd $ac_config_dir
3424
3425       # A "../" for each directory in /$ac_config_dir.
3426       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3427
3428     case "$srcdir" in
3429     .) # No --srcdir option.  We are building in place.
3430       ac_sub_srcdir=$srcdir ;;
3431     /*) # Absolute path.
3432       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3433     *) # Relative path.
3434       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3435     esac
3436
3437     # Check for guested configure; otherwise get Cygnus style configure.
3438     if test -f $ac_sub_srcdir/configure; then
3439       ac_sub_configure=$ac_sub_srcdir/configure
3440     elif test -f $ac_sub_srcdir/configure.in; then
3441       ac_sub_configure=$ac_configure
3442     else
3443       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3444       ac_sub_configure=
3445     fi
3446
3447     # The recursion is here.
3448     if test -n "$ac_sub_configure"; then
3449
3450       # Make the cache file name correct relative to the subdirectory.
3451       case "$cache_file" in
3452       /*) ac_sub_cache_file=$cache_file ;;
3453       *) # Relative path.
3454         ac_sub_cache_file="$ac_dots$cache_file" ;;
3455       esac
3456   case "$ac_given_INSTALL" in
3457         [/$]*) INSTALL="$ac_given_INSTALL" ;;
3458         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3459         esac
3460
3461       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3462       # The eval makes quoting arguments work.
3463       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3464       then :
3465       else
3466         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3467       fi
3468     fi
3469
3470     cd $ac_popdir
3471   done
3472 fi
3473