OSDN Git Service

2004-06-25 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libm / 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-newlib-hw-fp    Turn on hardware floating point math"
16 ac_help="$ac_help
17   --enable-multilib         build many library versions (default)"
18 ac_help="$ac_help
19   --enable-target-optspace  optimize for space"
20 ac_help="$ac_help
21   --enable-malloc-debugging indicate malloc debugging requested"
22 ac_help="$ac_help
23   --enable-newlib-multithread        enable support for multiple threads"
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=libm.texinfo
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 # Check whether --enable-newlib_hw_fp or --disable-newlib_hw_fp was given.
557 if test "${enable_newlib_hw_fp+set}" = set; then
558   enableval="$enable_newlib_hw_fp"
559   case "${enableval}" in
560    yes) newlib_hw_fp=true ;;
561    no)  newlib_hw_fp=false ;;
562    *) { echo "configure: error: bad value ${enableval} for --enable-newlib-hw-fp" 1>&2; exit 1; } ;;
563  esac
564 else
565   newlib_hw_fp=false
566 fi
567
568
569
570 if test x$newlib_hw_fp = xtrue; then
571   NEWLIB_HW_FP_TRUE=
572   NEWLIB_HW_FP_FALSE='#'
573 else
574   NEWLIB_HW_FP_TRUE='#'
575   NEWLIB_HW_FP_FALSE=
576 fi
577
578 ac_aux_dir=
579 for ac_dir in ../.. $srcdir/../..; do
580   if test -f $ac_dir/install-sh; then
581     ac_aux_dir=$ac_dir
582     ac_install_sh="$ac_aux_dir/install-sh -c"
583     break
584   elif test -f $ac_dir/install.sh; then
585     ac_aux_dir=$ac_dir
586     ac_install_sh="$ac_aux_dir/install.sh -c"
587     break
588   fi
589 done
590 if test -z "$ac_aux_dir"; then
591   { echo "configure: error: can not find install-sh or install.sh in ../.. $srcdir/../.." 1>&2; exit 1; }
592 fi
593 ac_config_guess=$ac_aux_dir/config.guess
594 ac_config_sub=$ac_aux_dir/config.sub
595 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
596
597
598 am__api_version="1.4"
599 # Find a good install program.  We prefer a C program (faster),
600 # so one script is as good as another.  But avoid the broken or
601 # incompatible versions:
602 # SysV /etc/install, /usr/sbin/install
603 # SunOS /usr/etc/install
604 # IRIX /sbin/install
605 # AIX /bin/install
606 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
607 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
608 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
609 # ./install, which can be erroneously created by make from ./install.sh.
610 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
611 echo "configure:612: checking for a BSD compatible install" >&5
612 if test -z "$INSTALL"; then
613 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
614   echo $ac_n "(cached) $ac_c" 1>&6
615 else
616     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
617   for ac_dir in $PATH; do
618     # Account for people who put trailing slashes in PATH elements.
619     case "$ac_dir/" in
620     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
621     *)
622       # OSF1 and SCO ODT 3.0 have their own names for install.
623       # Don't use installbsd from OSF since it installs stuff as root
624       # by default.
625       for ac_prog in ginstall scoinst install; do
626         if test -f $ac_dir/$ac_prog; then
627           if test $ac_prog = install &&
628             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
629             # AIX install.  It has an incompatible calling convention.
630             :
631           else
632             ac_cv_path_install="$ac_dir/$ac_prog -c"
633             break 2
634           fi
635         fi
636       done
637       ;;
638     esac
639   done
640   IFS="$ac_save_IFS"
641
642 fi
643   if test "${ac_cv_path_install+set}" = set; then
644     INSTALL="$ac_cv_path_install"
645   else
646     # As a last resort, use the slow shell script.  We don't cache a
647     # path for INSTALL within a source directory, because that will
648     # break other packages using the cache if that directory is
649     # removed, or if the path is relative.
650     INSTALL="$ac_install_sh"
651   fi
652 fi
653 echo "$ac_t""$INSTALL" 1>&6
654
655 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
656 # It thinks the first close brace ends the variable substitution.
657 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
658
659 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
660
661 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
662
663 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
664 echo "configure:665: checking whether build environment is sane" >&5
665 # Just in case
666 sleep 1
667 echo timestamp > conftestfile
668 # Do `set' in a subshell so we don't clobber the current shell's
669 # arguments.  Must try -L first in case configure is actually a
670 # symlink; some systems play weird games with the mod time of symlinks
671 # (eg FreeBSD returns the mod time of the symlink's containing
672 # directory).
673 if (
674    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
675    if test "$*" = "X"; then
676       # -L didn't work.
677       set X `ls -t $srcdir/configure conftestfile`
678    fi
679    if test "$*" != "X $srcdir/configure conftestfile" \
680       && test "$*" != "X conftestfile $srcdir/configure"; then
681
682       # If neither matched, then we have a broken ls.  This can happen
683       # if, for instance, CONFIG_SHELL is bash and it inherits a
684       # broken ls alias from the environment.  This has actually
685       # happened.  Such a system could not be considered "sane".
686       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
687 alias in your environment" 1>&2; exit 1; }
688    fi
689
690    test "$2" = conftestfile
691    )
692 then
693    # Ok.
694    :
695 else
696    { echo "configure: error: newly created file is older than distributed files!
697 Check your system clock" 1>&2; exit 1; }
698 fi
699 rm -f conftest*
700 echo "$ac_t""yes" 1>&6
701 if test "$program_transform_name" = s,x,x,; then
702   program_transform_name=
703 else
704   # Double any \ or $.  echo might interpret backslashes.
705   cat <<\EOF_SED > conftestsed
706 s,\\,\\\\,g; s,\$,$$,g
707 EOF_SED
708   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
709   rm -f conftestsed
710 fi
711 test "$program_prefix" != NONE &&
712   program_transform_name="s,^,${program_prefix},; $program_transform_name"
713 # Use a double $ so make ignores it.
714 test "$program_suffix" != NONE &&
715   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
716
717 # sed with no file args requires a program.
718 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
719
720 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
721 echo "configure:722: checking whether ${MAKE-make} sets \${MAKE}" >&5
722 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
723 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
724   echo $ac_n "(cached) $ac_c" 1>&6
725 else
726   cat > conftestmake <<\EOF
727 all:
728         @echo 'ac_maketemp="${MAKE}"'
729 EOF
730 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
731 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
732 if test -n "$ac_maketemp"; then
733   eval ac_cv_prog_make_${ac_make}_set=yes
734 else
735   eval ac_cv_prog_make_${ac_make}_set=no
736 fi
737 rm -f conftestmake
738 fi
739 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
740   echo "$ac_t""yes" 1>&6
741   SET_MAKE=
742 else
743   echo "$ac_t""no" 1>&6
744   SET_MAKE="MAKE=${MAKE-make}"
745 fi
746
747 if test $host != $build; then
748   ac_tool_prefix=${host_alias}-
749 else
750   ac_tool_prefix=
751 fi
752
753 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
754 echo "configure:755: checking for Cygwin environment" >&5
755 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
756   echo $ac_n "(cached) $ac_c" 1>&6
757 else
758   cat > conftest.$ac_ext <<EOF
759 #line 760 "configure"
760 #include "confdefs.h"
761
762 int main() {
763
764 #ifndef __CYGWIN__
765 #define __CYGWIN__ __CYGWIN32__
766 #endif
767 return __CYGWIN__;
768 ; return 0; }
769 EOF
770 if { (eval echo configure:771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
771   rm -rf conftest*
772   ac_cv_cygwin=yes
773 else
774   echo "configure: failed program was:" >&5
775   cat conftest.$ac_ext >&5
776   rm -rf conftest*
777   ac_cv_cygwin=no
778 fi
779 rm -f conftest*
780 rm -f conftest*
781 fi
782
783 echo "$ac_t""$ac_cv_cygwin" 1>&6
784 CYGWIN=
785 test "$ac_cv_cygwin" = yes && CYGWIN=yes
786 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
787 echo "configure:788: checking for mingw32 environment" >&5
788 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
789   echo $ac_n "(cached) $ac_c" 1>&6
790 else
791   cat > conftest.$ac_ext <<EOF
792 #line 793 "configure"
793 #include "confdefs.h"
794
795 int main() {
796 return __MINGW32__;
797 ; return 0; }
798 EOF
799 if { (eval echo configure:800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
800   rm -rf conftest*
801   ac_cv_mingw32=yes
802 else
803   echo "configure: failed program was:" >&5
804   cat conftest.$ac_ext >&5
805   rm -rf conftest*
806   ac_cv_mingw32=no
807 fi
808 rm -f conftest*
809 rm -f conftest*
810 fi
811
812 echo "$ac_t""$ac_cv_mingw32" 1>&6
813 MINGW32=
814 test "$ac_cv_mingw32" = yes && MINGW32=yes
815
816 # Check whether --enable-multilib or --disable-multilib was given.
817 if test "${enable_multilib+set}" = set; then
818   enableval="$enable_multilib"
819   case "${enableval}" in
820   yes) multilib=yes ;;
821   no)  multilib=no ;;
822   *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
823  esac
824 else
825   multilib=yes
826 fi
827
828 # Check whether --enable-target-optspace or --disable-target-optspace was given.
829 if test "${enable_target_optspace+set}" = set; then
830   enableval="$enable_target_optspace"
831   case "${enableval}" in
832   yes) target_optspace=yes ;;
833   no)  target_optspace=no ;;
834   *)   { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
835  esac
836 else
837   target_optspace=
838 fi
839
840 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
841 if test "${enable_malloc_debugging+set}" = set; then
842   enableval="$enable_malloc_debugging"
843   case "${enableval}" in
844   yes) malloc_debugging=yes ;;
845   no)  malloc_debugging=no ;;
846   *)   { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
847  esac
848 else
849   malloc_debugging=
850 fi
851
852 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
853 if test "${enable_newlib_multithread+set}" = set; then
854   enableval="$enable_newlib_multithread"
855   case "${enableval}" in
856   yes) newlib_multithread=yes ;;
857   no)  newlib_multithread=no ;;
858   *)   { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
859  esac
860 else
861   newlib_multithread=yes
862 fi
863
864 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
865 if test "${enable_newlib_elix_level+set}" = set; then
866   enableval="$enable_newlib_elix_level"
867   case "${enableval}" in
868   0)   newlib_elix_level=0 ;;
869   1)   newlib_elix_level=1 ;;
870   2)   newlib_elix_level=2 ;;
871   3)   newlib_elix_level=3 ;;
872   4)   newlib_elix_level=4 ;;
873   *)   { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
874  esac
875 else
876   newlib_elix_level=0
877 fi
878
879 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
880 if test "${enable_newlib_io_float+set}" = set; then
881   enableval="$enable_newlib_io_float"
882   case "${enableval}" in
883   yes) newlib_io_float=yes ;;
884   no)  newlib_io_float=no ;;
885   *)   { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
886  esac
887 else
888   newlib_io_float=yes
889 fi
890
891 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
892 if test "${enable_newlib_supplied_syscalls+set}" = set; then
893   enableval="$enable_newlib_supplied_syscalls"
894   case "${enableval}" in
895   yes) newlib_may_supply_syscalls=yes ;;
896   no)  newlib_may_supply_syscalls=no ;;
897   *)   { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
898  esac
899 else
900   newlib_may_supply_syscalls=yes
901 fi
902
903
904
905 if test x${newlib_may_supply_syscalls} = xyes; then
906   MAY_SUPPLY_SYSCALLS_TRUE=
907   MAY_SUPPLY_SYSCALLS_FALSE='#'
908 else
909   MAY_SUPPLY_SYSCALLS_TRUE='#'
910   MAY_SUPPLY_SYSCALLS_FALSE=
911 fi
912
913
914 test -z "${with_target_subdir}" && with_target_subdir=.
915
916 if test "${srcdir}" = "."; then
917   if test "${with_target_subdir}" != "."; then
918     newlib_basedir="${srcdir}/${with_multisrctop}../.."
919   else
920     newlib_basedir="${srcdir}/${with_multisrctop}.."
921   fi
922 else
923   newlib_basedir="${srcdir}/.."
924 fi
925
926
927
928 # Do some error checking and defaulting for the host and target type.
929 # The inputs are:
930 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
931 #
932 # The rules are:
933 # 1. You are not allowed to specify --host, --target, and nonopt at the
934 #    same time.
935 # 2. Host defaults to nonopt.
936 # 3. If nonopt is not specified, then host defaults to the current host,
937 #    as determined by config.guess.
938 # 4. Target and build default to nonopt.
939 # 5. If nonopt is not specified, then target and build default to host.
940
941 # The aliases save the names the user supplied, while $host etc.
942 # will get canonicalized.
943 case $host---$target---$nonopt in
944 NONE---*---* | *---NONE---* | *---*---NONE) ;;
945 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
946 esac
947
948
949 # Make sure we can run config.sub.
950 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
951 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
952 fi
953
954 echo $ac_n "checking host system type""... $ac_c" 1>&6
955 echo "configure:956: checking host system type" >&5
956
957 host_alias=$host
958 case "$host_alias" in
959 NONE)
960   case $nonopt in
961   NONE)
962     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
963     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
964     fi ;;
965   *) host_alias=$nonopt ;;
966   esac ;;
967 esac
968
969 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
970 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
971 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
972 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
973 echo "$ac_t""$host" 1>&6
974
975 echo $ac_n "checking target system type""... $ac_c" 1>&6
976 echo "configure:977: checking target system type" >&5
977
978 target_alias=$target
979 case "$target_alias" in
980 NONE)
981   case $nonopt in
982   NONE) target_alias=$host_alias ;;
983   *) target_alias=$nonopt ;;
984   esac ;;
985 esac
986
987 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
988 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
989 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
990 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
991 echo "$ac_t""$target" 1>&6
992
993 echo $ac_n "checking build system type""... $ac_c" 1>&6
994 echo "configure:995: checking build system type" >&5
995
996 build_alias=$build
997 case "$build_alias" in
998 NONE)
999   case $nonopt in
1000   NONE) build_alias=$host_alias ;;
1001   *) build_alias=$nonopt ;;
1002   esac ;;
1003 esac
1004
1005 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1006 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1007 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1008 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1009 echo "$ac_t""$build" 1>&6
1010
1011 test "$host_alias" != "$target_alias" &&
1012   test "$program_prefix$program_suffix$program_transform_name" = \
1013     NONENONEs,x,x, &&
1014   program_prefix=${target_alias}-
1015
1016
1017
1018 PACKAGE=newlib
1019
1020 VERSION=1.12.0
1021
1022 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1023   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1024 fi
1025 cat >> confdefs.h <<EOF
1026 #define PACKAGE "$PACKAGE"
1027 EOF
1028
1029 cat >> confdefs.h <<EOF
1030 #define VERSION "$VERSION"
1031 EOF
1032
1033
1034
1035 missing_dir=`cd $ac_aux_dir && pwd`
1036 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1037 echo "configure:1038: checking for working aclocal-${am__api_version}" >&5
1038 # Run test in a subshell; some versions of sh will print an error if
1039 # an executable is not found, even if stderr is redirected.
1040 # Redirect stdin to placate older versions of autoconf.  Sigh.
1041 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1042    ACLOCAL=aclocal-${am__api_version}
1043    echo "$ac_t""found" 1>&6
1044 else
1045    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1046    echo "$ac_t""missing" 1>&6
1047 fi
1048
1049 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1050 echo "configure:1051: checking for working autoconf" >&5
1051 # Run test in a subshell; some versions of sh will print an error if
1052 # an executable is not found, even if stderr is redirected.
1053 # Redirect stdin to placate older versions of autoconf.  Sigh.
1054 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1055    AUTOCONF=autoconf
1056    echo "$ac_t""found" 1>&6
1057 else
1058    AUTOCONF="$missing_dir/missing autoconf"
1059    echo "$ac_t""missing" 1>&6
1060 fi
1061
1062 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1063 echo "configure:1064: checking for working automake-${am__api_version}" >&5
1064 # Run test in a subshell; some versions of sh will print an error if
1065 # an executable is not found, even if stderr is redirected.
1066 # Redirect stdin to placate older versions of autoconf.  Sigh.
1067 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1068    AUTOMAKE=automake-${am__api_version}
1069    echo "$ac_t""found" 1>&6
1070 else
1071    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1072    echo "$ac_t""missing" 1>&6
1073 fi
1074
1075 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1076 echo "configure:1077: checking for working autoheader" >&5
1077 # Run test in a subshell; some versions of sh will print an error if
1078 # an executable is not found, even if stderr is redirected.
1079 # Redirect stdin to placate older versions of autoconf.  Sigh.
1080 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1081    AUTOHEADER=autoheader
1082    echo "$ac_t""found" 1>&6
1083 else
1084    AUTOHEADER="$missing_dir/missing autoheader"
1085    echo "$ac_t""missing" 1>&6
1086 fi
1087
1088 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1089 echo "configure:1090: checking for working makeinfo" >&5
1090 # Run test in a subshell; some versions of sh will print an error if
1091 # an executable is not found, even if stderr is redirected.
1092 # Redirect stdin to placate older versions of autoconf.  Sigh.
1093 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1094    MAKEINFO=makeinfo
1095    echo "$ac_t""found" 1>&6
1096 else
1097    MAKEINFO="$missing_dir/missing makeinfo"
1098    echo "$ac_t""missing" 1>&6
1099 fi
1100
1101
1102
1103 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1104 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1105 # are probably using a cross compiler, which will not be able to fully
1106 # link an executable.  This should really be fixed in autoconf
1107 # itself.
1108
1109
1110
1111 # Extract the first word of "gcc", so it can be a program name with args.
1112 set dummy gcc; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1116   echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118   if test -n "$CC"; then
1119   ac_cv_prog_CC="$CC" # Let the user override the test.
1120 else
1121   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1122   ac_dummy="$PATH"
1123   for ac_dir in $ac_dummy; do
1124     test -z "$ac_dir" && ac_dir=.
1125     if test -f $ac_dir/$ac_word; then
1126       ac_cv_prog_CC="gcc"
1127       break
1128     fi
1129   done
1130   IFS="$ac_save_ifs"
1131 fi
1132 fi
1133 CC="$ac_cv_prog_CC"
1134 if test -n "$CC"; then
1135   echo "$ac_t""$CC" 1>&6
1136 else
1137   echo "$ac_t""no" 1>&6
1138 fi
1139
1140 if test -z "$CC"; then
1141   # Extract the first word of "cc", so it can be a program name with args.
1142 set dummy cc; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1146   echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148   if test -n "$CC"; then
1149   ac_cv_prog_CC="$CC" # Let the user override the test.
1150 else
1151   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1152   ac_prog_rejected=no
1153   ac_dummy="$PATH"
1154   for ac_dir in $ac_dummy; do
1155     test -z "$ac_dir" && ac_dir=.
1156     if test -f $ac_dir/$ac_word; then
1157       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1158         ac_prog_rejected=yes
1159         continue
1160       fi
1161       ac_cv_prog_CC="cc"
1162       break
1163     fi
1164   done
1165   IFS="$ac_save_ifs"
1166 if test $ac_prog_rejected = yes; then
1167   # We found a bogon in the path, so make sure we never use it.
1168   set dummy $ac_cv_prog_CC
1169   shift
1170   if test $# -gt 0; then
1171     # We chose a different compiler from the bogus one.
1172     # However, it has the same basename, so the bogon will be chosen
1173     # first if we set CC to just the basename; use the full file name.
1174     shift
1175     set dummy "$ac_dir/$ac_word" "$@"
1176     shift
1177     ac_cv_prog_CC="$@"
1178   fi
1179 fi
1180 fi
1181 fi
1182 CC="$ac_cv_prog_CC"
1183 if test -n "$CC"; then
1184   echo "$ac_t""$CC" 1>&6
1185 else
1186   echo "$ac_t""no" 1>&6
1187 fi
1188
1189   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1190 fi
1191
1192 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether we are using GNU C" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1195   echo $ac_n "(cached) $ac_c" 1>&6
1196 else
1197   cat > conftest.c <<EOF
1198 #ifdef __GNUC__
1199   yes;
1200 #endif
1201 EOF
1202 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1203   ac_cv_prog_gcc=yes
1204 else
1205   ac_cv_prog_gcc=no
1206 fi
1207 fi
1208
1209 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1210
1211 if test $ac_cv_prog_gcc = yes; then
1212   GCC=yes
1213   ac_test_CFLAGS="${CFLAGS+set}"
1214   ac_save_CFLAGS="$CFLAGS"
1215   CFLAGS=
1216   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether ${CC-cc} accepts -g" >&5
1218 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1219   echo $ac_n "(cached) $ac_c" 1>&6
1220 else
1221   echo 'void f(){}' > conftest.c
1222 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1223   ac_cv_prog_cc_g=yes
1224 else
1225   ac_cv_prog_cc_g=no
1226 fi
1227 rm -f conftest*
1228
1229 fi
1230
1231 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1232   if test "$ac_test_CFLAGS" = set; then
1233     CFLAGS="$ac_save_CFLAGS"
1234   elif test $ac_cv_prog_cc_g = yes; then
1235     CFLAGS="-g -O2"
1236   else
1237     CFLAGS="-O2"
1238   fi
1239 else
1240   GCC=
1241   test "${CFLAGS+set}" = set || CFLAGS="-g"
1242 fi
1243
1244
1245 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1246 set dummy ${ac_tool_prefix}as; ac_word=$2
1247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1248 echo "configure:1249: checking for $ac_word" >&5
1249 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1250   echo $ac_n "(cached) $ac_c" 1>&6
1251 else
1252   if test -n "$AS"; then
1253   ac_cv_prog_AS="$AS" # Let the user override the test.
1254 else
1255   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1256   ac_dummy="$PATH"
1257   for ac_dir in $ac_dummy; do
1258     test -z "$ac_dir" && ac_dir=.
1259     if test -f $ac_dir/$ac_word; then
1260       ac_cv_prog_AS="${ac_tool_prefix}as"
1261       break
1262     fi
1263   done
1264   IFS="$ac_save_ifs"
1265   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1266 fi
1267 fi
1268 AS="$ac_cv_prog_AS"
1269 if test -n "$AS"; then
1270   echo "$ac_t""$AS" 1>&6
1271 else
1272   echo "$ac_t""no" 1>&6
1273 fi
1274
1275
1276
1277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1278 set dummy ${ac_tool_prefix}ar; ac_word=$2
1279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1280 echo "configure:1281: checking for $ac_word" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1282   echo $ac_n "(cached) $ac_c" 1>&6
1283 else
1284   if test -n "$AR"; then
1285   ac_cv_prog_AR="$AR" # Let the user override the test.
1286 else
1287   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1288   ac_dummy="$PATH"
1289   for ac_dir in $ac_dummy; do
1290     test -z "$ac_dir" && ac_dir=.
1291     if test -f $ac_dir/$ac_word; then
1292       ac_cv_prog_AR="${ac_tool_prefix}ar"
1293       break
1294     fi
1295   done
1296   IFS="$ac_save_ifs"
1297   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1298 fi
1299 fi
1300 AR="$ac_cv_prog_AR"
1301 if test -n "$AR"; then
1302   echo "$ac_t""$AR" 1>&6
1303 else
1304   echo "$ac_t""no" 1>&6
1305 fi
1306
1307
1308
1309 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1310 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1312 echo "configure:1313: checking for $ac_word" >&5
1313 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1314   echo $ac_n "(cached) $ac_c" 1>&6
1315 else
1316   if test -n "$RANLIB"; then
1317   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1318 else
1319   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1320   ac_dummy="$PATH"
1321   for ac_dir in $ac_dummy; do
1322     test -z "$ac_dir" && ac_dir=.
1323     if test -f $ac_dir/$ac_word; then
1324       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1325       break
1326     fi
1327   done
1328   IFS="$ac_save_ifs"
1329 fi
1330 fi
1331 RANLIB="$ac_cv_prog_RANLIB"
1332 if test -n "$RANLIB"; then
1333   echo "$ac_t""$RANLIB" 1>&6
1334 else
1335   echo "$ac_t""no" 1>&6
1336 fi
1337
1338
1339 if test -z "$ac_cv_prog_RANLIB"; then
1340 if test -n "$ac_tool_prefix"; then
1341   # Extract the first word of "ranlib", so it can be a program name with args.
1342 set dummy ranlib; ac_word=$2
1343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_word" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1346   echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348   if test -n "$RANLIB"; then
1349   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1350 else
1351   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1352   ac_dummy="$PATH"
1353   for ac_dir in $ac_dummy; do
1354     test -z "$ac_dir" && ac_dir=.
1355     if test -f $ac_dir/$ac_word; then
1356       ac_cv_prog_RANLIB="ranlib"
1357       break
1358     fi
1359   done
1360   IFS="$ac_save_ifs"
1361   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1362 fi
1363 fi
1364 RANLIB="$ac_cv_prog_RANLIB"
1365 if test -n "$RANLIB"; then
1366   echo "$ac_t""$RANLIB" 1>&6
1367 else
1368   echo "$ac_t""no" 1>&6
1369 fi
1370
1371 else
1372   RANLIB=":"
1373 fi
1374 fi
1375
1376
1377 # Find a good install program.  We prefer a C program (faster),
1378 # so one script is as good as another.  But avoid the broken or
1379 # incompatible versions:
1380 # SysV /etc/install, /usr/sbin/install
1381 # SunOS /usr/etc/install
1382 # IRIX /sbin/install
1383 # AIX /bin/install
1384 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1385 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1386 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1387 # ./install, which can be erroneously created by make from ./install.sh.
1388 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1389 echo "configure:1390: checking for a BSD compatible install" >&5
1390 if test -z "$INSTALL"; then
1391 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1392   echo $ac_n "(cached) $ac_c" 1>&6
1393 else
1394     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1395   for ac_dir in $PATH; do
1396     # Account for people who put trailing slashes in PATH elements.
1397     case "$ac_dir/" in
1398     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1399     *)
1400       # OSF1 and SCO ODT 3.0 have their own names for install.
1401       # Don't use installbsd from OSF since it installs stuff as root
1402       # by default.
1403       for ac_prog in ginstall scoinst install; do
1404         if test -f $ac_dir/$ac_prog; then
1405           if test $ac_prog = install &&
1406             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1407             # AIX install.  It has an incompatible calling convention.
1408             :
1409           else
1410             ac_cv_path_install="$ac_dir/$ac_prog -c"
1411             break 2
1412           fi
1413         fi
1414       done
1415       ;;
1416     esac
1417   done
1418   IFS="$ac_save_IFS"
1419
1420 fi
1421   if test "${ac_cv_path_install+set}" = set; then
1422     INSTALL="$ac_cv_path_install"
1423   else
1424     # As a last resort, use the slow shell script.  We don't cache a
1425     # path for INSTALL within a source directory, because that will
1426     # break other packages using the cache if that directory is
1427     # removed, or if the path is relative.
1428     INSTALL="$ac_install_sh"
1429   fi
1430 fi
1431 echo "$ac_t""$INSTALL" 1>&6
1432
1433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1434 # It thinks the first close brace ends the variable substitution.
1435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1436
1437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1438
1439 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1440
1441
1442 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1443 echo "configure:1444: checking whether to enable maintainer-specific portions of Makefiles" >&5
1444     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1445 if test "${enable_maintainer_mode+set}" = set; then
1446   enableval="$enable_maintainer_mode"
1447   USE_MAINTAINER_MODE=$enableval
1448 else
1449   USE_MAINTAINER_MODE=no
1450 fi
1451
1452   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1453   
1454
1455 if test $USE_MAINTAINER_MODE = yes; then
1456   MAINTAINER_MODE_TRUE=
1457   MAINTAINER_MODE_FALSE='#'
1458 else
1459   MAINTAINER_MODE_TRUE='#'
1460   MAINTAINER_MODE_FALSE=
1461 fi
1462   MAINT=$MAINTAINER_MODE_TRUE
1463   
1464
1465
1466 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1467 # at least currently, we never actually build a program, so we never
1468 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1469 # fails, because we are probably configuring with a cross compiler
1470 # which can't create executables.  So we include AC_EXEEXT to keep
1471 # automake happy, but we don't execute it, since we don't care about
1472 # the result.
1473 if false; then
1474   
1475
1476 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1477 echo "configure:1478: checking for executable suffix" >&5
1478 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1479   echo $ac_n "(cached) $ac_c" 1>&6
1480 else
1481   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1482   ac_cv_exeext=.exe
1483 else
1484   rm -f conftest*
1485   echo 'int main () { return 0; }' > conftest.$ac_ext
1486   ac_cv_exeext=
1487   if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1488     for file in conftest.*; do
1489       case $file in
1490       *.c | *.o | *.obj) ;;
1491       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1492       esac
1493     done
1494   else
1495     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1496   fi
1497   rm -f conftest*
1498   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1499 fi
1500 fi
1501
1502 EXEEXT=""
1503 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1504 echo "$ac_t""${ac_cv_exeext}" 1>&6
1505 ac_exeext=$EXEEXT
1506
1507 fi
1508
1509 . ${newlib_basedir}/configure.host
1510
1511 newlib_cflags="${newlib_cflags} -fno-builtin"
1512
1513 NEWLIB_CFLAGS=${newlib_cflags}
1514
1515
1516 LDFLAGS=${ldflags}
1517
1518
1519
1520
1521 if test x${newlib_elix_level} = x0; then
1522   ELIX_LEVEL_0_TRUE=
1523   ELIX_LEVEL_0_FALSE='#'
1524 else
1525   ELIX_LEVEL_0_TRUE='#'
1526   ELIX_LEVEL_0_FALSE=
1527 fi
1528
1529
1530 if test x${newlib_elix_level} = x1; then
1531   ELIX_LEVEL_1_TRUE=
1532   ELIX_LEVEL_1_FALSE='#'
1533 else
1534   ELIX_LEVEL_1_TRUE='#'
1535   ELIX_LEVEL_1_FALSE=
1536 fi
1537
1538
1539 if test x${newlib_elix_level} = x2; then
1540   ELIX_LEVEL_2_TRUE=
1541   ELIX_LEVEL_2_FALSE='#'
1542 else
1543   ELIX_LEVEL_2_TRUE='#'
1544   ELIX_LEVEL_2_FALSE=
1545 fi
1546
1547
1548 if test x${newlib_elix_level} = x3; then
1549   ELIX_LEVEL_3_TRUE=
1550   ELIX_LEVEL_3_FALSE='#'
1551 else
1552   ELIX_LEVEL_3_TRUE='#'
1553   ELIX_LEVEL_3_FALSE=
1554 fi
1555
1556
1557 if test x${newlib_elix_level} = x4; then
1558   ELIX_LEVEL_4_TRUE=
1559   ELIX_LEVEL_4_FALSE='#'
1560 else
1561   ELIX_LEVEL_4_TRUE='#'
1562   ELIX_LEVEL_4_FALSE=
1563 fi
1564
1565
1566
1567 if test x${use_libtool} = xyes; then
1568   USE_LIBTOOL_TRUE=
1569   USE_LIBTOOL_FALSE='#'
1570 else
1571   USE_LIBTOOL_TRUE='#'
1572   USE_LIBTOOL_FALSE=
1573 fi
1574
1575 # Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
1576 # use oext, which is set in configure.host based on the target platform.
1577 OBJEXT=${oext}
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589 if test "${use_libtool}" = "yes"; then
1590
1591 # Check whether --enable-shared or --disable-shared was given.
1592 if test "${enable_shared+set}" = set; then
1593   enableval="$enable_shared"
1594   p=${PACKAGE-default}
1595 case $enableval in
1596 yes) enable_shared=yes ;;
1597 no) enable_shared=no ;;
1598 *)
1599   enable_shared=no
1600   # Look at the argument we got.  We use all the common list separators.
1601   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1602   for pkg in $enableval; do
1603     if test "X$pkg" = "X$p"; then
1604       enable_shared=yes
1605     fi
1606   done
1607   IFS="$ac_save_ifs"
1608   ;;
1609 esac
1610 else
1611   enable_shared=yes
1612 fi
1613
1614 # Check whether --enable-static or --disable-static was given.
1615 if test "${enable_static+set}" = set; then
1616   enableval="$enable_static"
1617   p=${PACKAGE-default}
1618 case $enableval in
1619 yes) enable_static=yes ;;
1620 no) enable_static=no ;;
1621 *)
1622   enable_static=no
1623   # Look at the argument we got.  We use all the common list separators.
1624   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1625   for pkg in $enableval; do
1626     if test "X$pkg" = "X$p"; then
1627       enable_static=yes
1628     fi
1629   done
1630   IFS="$ac_save_ifs"
1631   ;;
1632 esac
1633 else
1634   enable_static=yes
1635 fi
1636
1637 # Check whether --enable-fast-install or --disable-fast-install was given.
1638 if test "${enable_fast_install+set}" = set; then
1639   enableval="$enable_fast_install"
1640   p=${PACKAGE-default}
1641 case $enableval in
1642 yes) enable_fast_install=yes ;;
1643 no) enable_fast_install=no ;;
1644 *)
1645   enable_fast_install=no
1646   # Look at the argument we got.  We use all the common list separators.
1647   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1648   for pkg in $enableval; do
1649     if test "X$pkg" = "X$p"; then
1650       enable_fast_install=yes
1651     fi
1652   done
1653   IFS="$ac_save_ifs"
1654   ;;
1655 esac
1656 else
1657   enable_fast_install=yes
1658 fi
1659
1660 # Extract the first word of "gcc", so it can be a program name with args.
1661 set dummy gcc; ac_word=$2
1662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1663 echo "configure:1664: checking for $ac_word" >&5
1664 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1665   echo $ac_n "(cached) $ac_c" 1>&6
1666 else
1667   if test -n "$CC"; then
1668   ac_cv_prog_CC="$CC" # Let the user override the test.
1669 else
1670   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1671   ac_dummy="$PATH"
1672   for ac_dir in $ac_dummy; do
1673     test -z "$ac_dir" && ac_dir=.
1674     if test -f $ac_dir/$ac_word; then
1675       ac_cv_prog_CC="gcc"
1676       break
1677     fi
1678   done
1679   IFS="$ac_save_ifs"
1680 fi
1681 fi
1682 CC="$ac_cv_prog_CC"
1683 if test -n "$CC"; then
1684   echo "$ac_t""$CC" 1>&6
1685 else
1686   echo "$ac_t""no" 1>&6
1687 fi
1688
1689 if test -z "$CC"; then
1690   # Extract the first word of "cc", so it can be a program name with args.
1691 set dummy cc; ac_word=$2
1692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1693 echo "configure:1694: checking for $ac_word" >&5
1694 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1695   echo $ac_n "(cached) $ac_c" 1>&6
1696 else
1697   if test -n "$CC"; then
1698   ac_cv_prog_CC="$CC" # Let the user override the test.
1699 else
1700   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1701   ac_prog_rejected=no
1702   ac_dummy="$PATH"
1703   for ac_dir in $ac_dummy; do
1704     test -z "$ac_dir" && ac_dir=.
1705     if test -f $ac_dir/$ac_word; then
1706       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1707         ac_prog_rejected=yes
1708         continue
1709       fi
1710       ac_cv_prog_CC="cc"
1711       break
1712     fi
1713   done
1714   IFS="$ac_save_ifs"
1715 if test $ac_prog_rejected = yes; then
1716   # We found a bogon in the path, so make sure we never use it.
1717   set dummy $ac_cv_prog_CC
1718   shift
1719   if test $# -gt 0; then
1720     # We chose a different compiler from the bogus one.
1721     # However, it has the same basename, so the bogon will be chosen
1722     # first if we set CC to just the basename; use the full file name.
1723     shift
1724     set dummy "$ac_dir/$ac_word" "$@"
1725     shift
1726     ac_cv_prog_CC="$@"
1727   fi
1728 fi
1729 fi
1730 fi
1731 CC="$ac_cv_prog_CC"
1732 if test -n "$CC"; then
1733   echo "$ac_t""$CC" 1>&6
1734 else
1735   echo "$ac_t""no" 1>&6
1736 fi
1737
1738   if test -z "$CC"; then
1739     case "`uname -s`" in
1740     *win32* | *WIN32*)
1741       # Extract the first word of "cl", so it can be a program name with args.
1742 set dummy cl; ac_word=$2
1743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1744 echo "configure:1745: checking for $ac_word" >&5
1745 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1746   echo $ac_n "(cached) $ac_c" 1>&6
1747 else
1748   if test -n "$CC"; then
1749   ac_cv_prog_CC="$CC" # Let the user override the test.
1750 else
1751   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1752   ac_dummy="$PATH"
1753   for ac_dir in $ac_dummy; do
1754     test -z "$ac_dir" && ac_dir=.
1755     if test -f $ac_dir/$ac_word; then
1756       ac_cv_prog_CC="cl"
1757       break
1758     fi
1759   done
1760   IFS="$ac_save_ifs"
1761 fi
1762 fi
1763 CC="$ac_cv_prog_CC"
1764 if test -n "$CC"; then
1765   echo "$ac_t""$CC" 1>&6
1766 else
1767   echo "$ac_t""no" 1>&6
1768 fi
1769  ;;
1770     esac
1771   fi
1772   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1773 fi
1774
1775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1776 echo "configure:1777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1777
1778 ac_ext=c
1779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1783 cross_compiling=$ac_cv_prog_cc_cross
1784
1785 cat > conftest.$ac_ext << EOF
1786
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1789
1790 main(){return(0);}
1791 EOF
1792 if { (eval echo configure:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1793   ac_cv_prog_cc_works=yes
1794   # If we can't run a trivial program, we are probably using a cross compiler.
1795   if (./conftest; exit) 2>/dev/null; then
1796     ac_cv_prog_cc_cross=no
1797   else
1798     ac_cv_prog_cc_cross=yes
1799   fi
1800 else
1801   echo "configure: failed program was:" >&5
1802   cat conftest.$ac_ext >&5
1803   ac_cv_prog_cc_works=no
1804 fi
1805 rm -fr conftest*
1806 ac_ext=c
1807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1808 ac_cpp='$CPP $CPPFLAGS'
1809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1811 cross_compiling=$ac_cv_prog_cc_cross
1812
1813 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1814 if test $ac_cv_prog_cc_works = no; then
1815   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1816 fi
1817 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1818 echo "configure:1819: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1819 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1820 cross_compiling=$ac_cv_prog_cc_cross
1821
1822 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1823 echo "configure:1824: checking whether we are using GNU C" >&5
1824 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1825   echo $ac_n "(cached) $ac_c" 1>&6
1826 else
1827   cat > conftest.c <<EOF
1828 #ifdef __GNUC__
1829   yes;
1830 #endif
1831 EOF
1832 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1833   ac_cv_prog_gcc=yes
1834 else
1835   ac_cv_prog_gcc=no
1836 fi
1837 fi
1838
1839 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1840
1841 if test $ac_cv_prog_gcc = yes; then
1842   GCC=yes
1843 else
1844   GCC=
1845 fi
1846
1847 ac_test_CFLAGS="${CFLAGS+set}"
1848 ac_save_CFLAGS="$CFLAGS"
1849 CFLAGS=
1850 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1851 echo "configure:1852: checking whether ${CC-cc} accepts -g" >&5
1852 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1853   echo $ac_n "(cached) $ac_c" 1>&6
1854 else
1855   echo 'void f(){}' > conftest.c
1856 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1857   ac_cv_prog_cc_g=yes
1858 else
1859   ac_cv_prog_cc_g=no
1860 fi
1861 rm -f conftest*
1862
1863 fi
1864
1865 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1866 if test "$ac_test_CFLAGS" = set; then
1867   CFLAGS="$ac_save_CFLAGS"
1868 elif test $ac_cv_prog_cc_g = yes; then
1869   if test "$GCC" = yes; then
1870     CFLAGS="-g -O2"
1871   else
1872     CFLAGS="-g"
1873   fi
1874 else
1875   if test "$GCC" = yes; then
1876     CFLAGS="-O2"
1877   else
1878     CFLAGS=
1879   fi
1880 fi
1881
1882 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1883 if test "${with_gnu_ld+set}" = set; then
1884   withval="$with_gnu_ld"
1885   test "$withval" = no || with_gnu_ld=yes
1886 else
1887   with_gnu_ld=no
1888 fi
1889
1890 ac_prog=ld
1891 if test "$GCC" = yes; then
1892   # Check if gcc -print-prog-name=ld gives a path.
1893   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1894 echo "configure:1895: checking for ld used by GCC" >&5
1895   case $host in
1896   *-*-mingw*)
1897     # gcc leaves a trailing carriage return which upsets mingw
1898     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1899   *)
1900     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1901   esac
1902   case $ac_prog in
1903     # Accept absolute paths.
1904     [\\/]* | [A-Za-z]:[\\/]*)
1905       re_direlt='/[^/][^/]*/\.\./'
1906       # Canonicalize the path of ld
1907       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1908       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1909         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1910       done
1911       test -z "$LD" && LD="$ac_prog"
1912       ;;
1913   "")
1914     # If it fails, then pretend we aren't using GCC.
1915     ac_prog=ld
1916     ;;
1917   *)
1918     # If it is relative, then search for the first ld in PATH.
1919     with_gnu_ld=unknown
1920     ;;
1921   esac
1922 elif test "$with_gnu_ld" = yes; then
1923   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1924 echo "configure:1925: checking for GNU ld" >&5
1925 else
1926   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1927 echo "configure:1928: checking for non-GNU ld" >&5
1928 fi
1929 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1930   echo $ac_n "(cached) $ac_c" 1>&6
1931 else
1932   if test -z "$LD"; then
1933   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1934   for ac_dir in $PATH; do
1935     test -z "$ac_dir" && ac_dir=.
1936     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1937       lt_cv_path_LD="$ac_dir/$ac_prog"
1938       # Check to see if the program is GNU ld.  I'd rather use --version,
1939       # but apparently some GNU ld's only accept -v.
1940       # Break only if it was the GNU/non-GNU ld that we prefer.
1941       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1942         test "$with_gnu_ld" != no && break
1943       else
1944         test "$with_gnu_ld" != yes && break
1945       fi
1946     fi
1947   done
1948   IFS="$ac_save_ifs"
1949 else
1950   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1951 fi
1952 fi
1953
1954 LD="$lt_cv_path_LD"
1955 if test -n "$LD"; then
1956   echo "$ac_t""$LD" 1>&6
1957 else
1958   echo "$ac_t""no" 1>&6
1959 fi
1960 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1961 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1962 echo "configure:1963: checking if the linker ($LD) is GNU ld" >&5
1963 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1964   echo $ac_n "(cached) $ac_c" 1>&6
1965 else
1966   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1967 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1968   lt_cv_prog_gnu_ld=yes
1969 else
1970   lt_cv_prog_gnu_ld=no
1971 fi
1972 fi
1973
1974 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1975 with_gnu_ld=$lt_cv_prog_gnu_ld
1976
1977
1978 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1979 echo "configure:1980: checking for $LD option to reload object files" >&5
1980 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1981   echo $ac_n "(cached) $ac_c" 1>&6
1982 else
1983   lt_cv_ld_reload_flag='-r'
1984 fi
1985
1986 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1987 reload_flag=$lt_cv_ld_reload_flag
1988 test -n "$reload_flag" && reload_flag=" $reload_flag"
1989
1990 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1991 echo "configure:1992: checking for BSD-compatible nm" >&5
1992 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1993   echo $ac_n "(cached) $ac_c" 1>&6
1994 else
1995   if test -n "$NM"; then
1996   # Let the user override the test.
1997   lt_cv_path_NM="$NM"
1998 else
1999   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2000   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2001     test -z "$ac_dir" && ac_dir=.
2002     tmp_nm=$ac_dir/${ac_tool_prefix}nm
2003     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2004       # Check to see if the nm accepts a BSD-compat flag.
2005       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2006       #   nm: unknown option "B" ignored
2007       # Tru64's nm complains that /dev/null is an invalid object file
2008       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2009         lt_cv_path_NM="$tmp_nm -B"
2010         break
2011       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2012         lt_cv_path_NM="$tmp_nm -p"
2013         break
2014       else
2015         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2016         continue # so that we can try to find one that supports BSD flags
2017       fi
2018     fi
2019   done
2020   IFS="$ac_save_ifs"
2021   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2022 fi
2023 fi
2024
2025 NM="$lt_cv_path_NM"
2026 echo "$ac_t""$NM" 1>&6
2027
2028 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2029 echo "configure:2030: checking whether ln -s works" >&5
2030 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2031   echo $ac_n "(cached) $ac_c" 1>&6
2032 else
2033   rm -f conftestdata
2034 if ln -s X conftestdata 2>/dev/null
2035 then
2036   rm -f conftestdata
2037   ac_cv_prog_LN_S="ln -s"
2038 else
2039   ac_cv_prog_LN_S=ln
2040 fi
2041 fi
2042 LN_S="$ac_cv_prog_LN_S"
2043 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2044   echo "$ac_t""yes" 1>&6
2045 else
2046   echo "$ac_t""no" 1>&6
2047 fi
2048
2049 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2050 echo "configure:2051: checking how to recognise dependant libraries" >&5
2051 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2052   echo $ac_n "(cached) $ac_c" 1>&6
2053 else
2054   lt_cv_file_magic_cmd='$MAGIC_CMD'
2055 lt_cv_file_magic_test_file=
2056 lt_cv_deplibs_check_method='unknown'
2057 # Need to set the preceding variable on all platforms that support
2058 # interlibrary dependencies.
2059 # 'none' -- dependencies not supported.
2060 # `unknown' -- same as none, but documents that we really don't know.
2061 # 'pass_all' -- all dependencies passed with no checks.
2062 # 'test_compile' -- check by making test program.
2063 # 'file_magic [regex]' -- check by looking for files in library path
2064 # which responds to the $file_magic_cmd with a given egrep regex.
2065 # If you have `file' or equivalent on your system and you're not sure
2066 # whether `pass_all' will *always* work, you probably want this one.
2067
2068 case $host_os in
2069 aix*)
2070   lt_cv_deplibs_check_method=pass_all
2071   ;;
2072
2073 beos*)
2074   lt_cv_deplibs_check_method=pass_all
2075   ;;
2076
2077 bsdi4*)
2078   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2079   lt_cv_file_magic_cmd='/usr/bin/file -L'
2080   lt_cv_file_magic_test_file=/shlib/libc.so
2081   ;;
2082
2083 cygwin* | mingw* |pw32*)
2084   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2085   lt_cv_file_magic_cmd='$OBJDUMP -f'
2086   ;;
2087
2088 darwin* | rhapsody*)
2089   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2090   lt_cv_file_magic_cmd='/usr/bin/file -L'
2091   case "$host_os" in
2092   rhapsody* | darwin1.012)
2093     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2094     ;;
2095   *) # Darwin 1.3 on
2096     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2097     ;;
2098   esac
2099   ;;
2100
2101 freebsd* )
2102   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2103     case $host_cpu in
2104     i*86 )
2105       # Not sure whether the presence of OpenBSD here was a mistake.
2106       # Let's accept both of them until this is cleared up.
2107       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2108       lt_cv_file_magic_cmd=/usr/bin/file
2109       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2110       ;;
2111     esac
2112   else
2113     lt_cv_deplibs_check_method=pass_all
2114   fi
2115   ;;
2116
2117 gnu*)
2118   lt_cv_deplibs_check_method=pass_all
2119   ;;
2120
2121 hpux10.20*|hpux11*)
2122   case $host_cpu in
2123   hppa*)
2124     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2125     lt_cv_file_magic_cmd=/usr/bin/file
2126     lt_cv_file_magic_test_file=/usr/lib/libc.sl
2127     ;;
2128   ia64*)
2129     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2130     lt_cv_file_magic_cmd=/usr/bin/file
2131     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2132     ;;
2133   esac
2134   ;;
2135
2136 irix5* | irix6*)
2137   case $host_os in
2138   irix5*)
2139     # this will be overridden with pass_all, but let us keep it just in case
2140     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2141     ;;
2142   *)
2143     case $LD in
2144     *-32|*"-32 ") libmagic=32-bit;;
2145     *-n32|*"-n32 ") libmagic=N32;;
2146     *-64|*"-64 ") libmagic=64-bit;;
2147     *) libmagic=never-match;;
2148     esac
2149     # this will be overridden with pass_all, but let us keep it just in case
2150     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2151     ;;
2152   esac
2153   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2154   lt_cv_deplibs_check_method=pass_all
2155   ;;
2156
2157 # This must be Linux ELF.
2158 linux-gnu*)
2159   case $host_cpu in
2160   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2161     lt_cv_deplibs_check_method=pass_all ;;
2162   *)
2163     # glibc up to 2.1.1 does not perform some relocations on ARM
2164     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2165   esac
2166   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2167   ;;
2168
2169 netbsd*)
2170   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2171     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2172   else
2173     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2174   fi
2175   ;;
2176
2177 newsos6)
2178   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2179   lt_cv_file_magic_cmd=/usr/bin/file
2180   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2181   ;;
2182
2183 osf3* | osf4* | osf5*)
2184   # this will be overridden with pass_all, but let us keep it just in case
2185   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2186   lt_cv_file_magic_test_file=/shlib/libc.so
2187   lt_cv_deplibs_check_method=pass_all
2188   ;;
2189
2190 sco3.2v5*)
2191   lt_cv_deplibs_check_method=pass_all
2192   ;;
2193
2194 solaris*)
2195   lt_cv_deplibs_check_method=pass_all
2196   lt_cv_file_magic_test_file=/lib/libc.so
2197   ;;
2198
2199 sysv5uw[78]* | sysv4*uw2*)
2200   lt_cv_deplibs_check_method=pass_all
2201   ;;
2202
2203 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2204   case $host_vendor in
2205   ncr)
2206     lt_cv_deplibs_check_method=pass_all
2207     ;;
2208   motorola)
2209     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]'
2210     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2211     ;;
2212   esac
2213   ;;
2214 esac
2215
2216 fi
2217
2218 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2219 file_magic_cmd=$lt_cv_file_magic_cmd
2220 deplibs_check_method=$lt_cv_deplibs_check_method
2221
2222 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2223 echo "configure:2224: checking for object suffix" >&5
2224 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2225   echo $ac_n "(cached) $ac_c" 1>&6
2226 else
2227   rm -f conftest*
2228 echo 'int i = 1;' > conftest.$ac_ext
2229 if { (eval echo configure:2230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2230   for ac_file in conftest.*; do
2231     case $ac_file in
2232     *.c) ;;
2233     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2234     esac
2235   done
2236 else
2237   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2238 fi
2239 rm -f conftest*
2240 fi
2241
2242 echo "$ac_t""$ac_cv_objext" 1>&6
2243 OBJEXT=$ac_cv_objext
2244 ac_objext=$ac_cv_objext
2245
2246 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2247
2248 # Only perform the check for file, if the check method requires it
2249 case $deplibs_check_method in
2250 file_magic*)
2251   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2252     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2253 echo "configure:2254: checking for ${ac_tool_prefix}file" >&5
2254 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2255   echo $ac_n "(cached) $ac_c" 1>&6
2256 else
2257   case $MAGIC_CMD in
2258   /*)
2259   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2260   ;;
2261   ?:/*)
2262   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2263   ;;
2264   *)
2265   ac_save_MAGIC_CMD="$MAGIC_CMD"
2266   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2267   ac_dummy="/usr/bin:$PATH"
2268   for ac_dir in $ac_dummy; do
2269     test -z "$ac_dir" && ac_dir=.
2270     if test -f $ac_dir/${ac_tool_prefix}file; then
2271       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2272       if test -n "$file_magic_test_file"; then
2273         case $deplibs_check_method in
2274         "file_magic "*)
2275           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2276           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2277           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2278             egrep "$file_magic_regex" > /dev/null; then
2279             :
2280           else
2281             cat <<EOF 1>&2
2282
2283 *** Warning: the command libtool uses to detect shared libraries,
2284 *** $file_magic_cmd, produces output that libtool cannot recognize.
2285 *** The result is that libtool may fail to recognize shared libraries
2286 *** as such.  This will affect the creation of libtool libraries that
2287 *** depend on shared libraries, but programs linked with such libtool
2288 *** libraries will work regardless of this problem.  Nevertheless, you
2289 *** may want to report the problem to your system manager and/or to
2290 *** bug-libtool@gnu.org
2291
2292 EOF
2293           fi ;;
2294         esac
2295       fi
2296       break
2297     fi
2298   done
2299   IFS="$ac_save_ifs"
2300   MAGIC_CMD="$ac_save_MAGIC_CMD"
2301   ;;
2302 esac
2303 fi
2304
2305 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2306 if test -n "$MAGIC_CMD"; then
2307   echo "$ac_t""$MAGIC_CMD" 1>&6
2308 else
2309   echo "$ac_t""no" 1>&6
2310 fi
2311
2312 if test -z "$lt_cv_path_MAGIC_CMD"; then
2313   if test -n "$ac_tool_prefix"; then
2314     echo $ac_n "checking for file""... $ac_c" 1>&6
2315 echo "configure:2316: checking for file" >&5
2316 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2317   echo $ac_n "(cached) $ac_c" 1>&6
2318 else
2319   case $MAGIC_CMD in
2320   /*)
2321   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2322   ;;
2323   ?:/*)
2324   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2325   ;;
2326   *)
2327   ac_save_MAGIC_CMD="$MAGIC_CMD"
2328   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2329   ac_dummy="/usr/bin:$PATH"
2330   for ac_dir in $ac_dummy; do
2331     test -z "$ac_dir" && ac_dir=.
2332     if test -f $ac_dir/file; then
2333       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2334       if test -n "$file_magic_test_file"; then
2335         case $deplibs_check_method in
2336         "file_magic "*)
2337           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2338           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2339           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2340             egrep "$file_magic_regex" > /dev/null; then
2341             :
2342           else
2343             cat <<EOF 1>&2
2344
2345 *** Warning: the command libtool uses to detect shared libraries,
2346 *** $file_magic_cmd, produces output that libtool cannot recognize.
2347 *** The result is that libtool may fail to recognize shared libraries
2348 *** as such.  This will affect the creation of libtool libraries that
2349 *** depend on shared libraries, but programs linked with such libtool
2350 *** libraries will work regardless of this problem.  Nevertheless, you
2351 *** may want to report the problem to your system manager and/or to
2352 *** bug-libtool@gnu.org
2353
2354 EOF
2355           fi ;;
2356         esac
2357       fi
2358       break
2359     fi
2360   done
2361   IFS="$ac_save_ifs"
2362   MAGIC_CMD="$ac_save_MAGIC_CMD"
2363   ;;
2364 esac
2365 fi
2366
2367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2368 if test -n "$MAGIC_CMD"; then
2369   echo "$ac_t""$MAGIC_CMD" 1>&6
2370 else
2371   echo "$ac_t""no" 1>&6
2372 fi
2373
2374   else
2375     MAGIC_CMD=:
2376   fi
2377 fi
2378
2379   fi
2380   ;;
2381 esac
2382
2383 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2384 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2386 echo "configure:2387: checking for $ac_word" >&5
2387 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2388   echo $ac_n "(cached) $ac_c" 1>&6
2389 else
2390   if test -n "$RANLIB"; then
2391   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2392 else
2393   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2394   ac_dummy="$PATH"
2395   for ac_dir in $ac_dummy; do
2396     test -z "$ac_dir" && ac_dir=.
2397     if test -f $ac_dir/$ac_word; then
2398       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2399       break
2400     fi
2401   done
2402   IFS="$ac_save_ifs"
2403 fi
2404 fi
2405 RANLIB="$ac_cv_prog_RANLIB"
2406 if test -n "$RANLIB"; then
2407   echo "$ac_t""$RANLIB" 1>&6
2408 else
2409   echo "$ac_t""no" 1>&6
2410 fi
2411
2412
2413 if test -z "$ac_cv_prog_RANLIB"; then
2414 if test -n "$ac_tool_prefix"; then
2415   # Extract the first word of "ranlib", so it can be a program name with args.
2416 set dummy ranlib; ac_word=$2
2417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2418 echo "configure:2419: checking for $ac_word" >&5
2419 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2420   echo $ac_n "(cached) $ac_c" 1>&6
2421 else
2422   if test -n "$RANLIB"; then
2423   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2424 else
2425   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2426   ac_dummy="$PATH"
2427   for ac_dir in $ac_dummy; do
2428     test -z "$ac_dir" && ac_dir=.
2429     if test -f $ac_dir/$ac_word; then
2430       ac_cv_prog_RANLIB="ranlib"
2431       break
2432     fi
2433   done
2434   IFS="$ac_save_ifs"
2435   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2436 fi
2437 fi
2438 RANLIB="$ac_cv_prog_RANLIB"
2439 if test -n "$RANLIB"; then
2440   echo "$ac_t""$RANLIB" 1>&6
2441 else
2442   echo "$ac_t""no" 1>&6
2443 fi
2444
2445 else
2446   RANLIB=":"
2447 fi
2448 fi
2449
2450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}strip; ac_word=$2
2452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2453 echo "configure:2454: checking for $ac_word" >&5
2454 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2455   echo $ac_n "(cached) $ac_c" 1>&6
2456 else
2457   if test -n "$STRIP"; then
2458   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2459 else
2460   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2461   ac_dummy="$PATH"
2462   for ac_dir in $ac_dummy; do
2463     test -z "$ac_dir" && ac_dir=.
2464     if test -f $ac_dir/$ac_word; then
2465       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2466       break
2467     fi
2468   done
2469   IFS="$ac_save_ifs"
2470 fi
2471 fi
2472 STRIP="$ac_cv_prog_STRIP"
2473 if test -n "$STRIP"; then
2474   echo "$ac_t""$STRIP" 1>&6
2475 else
2476   echo "$ac_t""no" 1>&6
2477 fi
2478
2479
2480 if test -z "$ac_cv_prog_STRIP"; then
2481 if test -n "$ac_tool_prefix"; then
2482   # Extract the first word of "strip", so it can be a program name with args.
2483 set dummy strip; ac_word=$2
2484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2485 echo "configure:2486: checking for $ac_word" >&5
2486 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2487   echo $ac_n "(cached) $ac_c" 1>&6
2488 else
2489   if test -n "$STRIP"; then
2490   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2491 else
2492   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2493   ac_dummy="$PATH"
2494   for ac_dir in $ac_dummy; do
2495     test -z "$ac_dir" && ac_dir=.
2496     if test -f $ac_dir/$ac_word; then
2497       ac_cv_prog_STRIP="strip"
2498       break
2499     fi
2500   done
2501   IFS="$ac_save_ifs"
2502   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2503 fi
2504 fi
2505 STRIP="$ac_cv_prog_STRIP"
2506 if test -n "$STRIP"; then
2507   echo "$ac_t""$STRIP" 1>&6
2508 else
2509   echo "$ac_t""no" 1>&6
2510 fi
2511
2512 else
2513   STRIP=":"
2514 fi
2515 fi
2516
2517
2518 # Check for any special flags to pass to ltconfig.
2519 libtool_flags="--cache-file=$cache_file"
2520 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2521 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2522 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2523 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2524 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2525
2526 libtool_flags="$libtool_flags --enable-win32-dll"
2527 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2528 if test "${enable_libtool_lock+set}" = set; then
2529   enableval="$enable_libtool_lock"
2530   :
2531 fi
2532
2533 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2534 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2535
2536 # Check whether --with-pic or --without-pic was given.
2537 if test "${with_pic+set}" = set; then
2538   withval="$with_pic"
2539   pic_mode="$withval"
2540 else
2541   pic_mode=default
2542 fi
2543
2544 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2545 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2546
2547 # Some flags need to be propagated to the compiler or linker for good
2548 # libtool support.
2549 case $host in
2550 *-*-irix6*)
2551   # Find out which ABI we are using.
2552   echo '#line 2553 "configure"' > conftest.$ac_ext
2553   if { (eval echo configure:2554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2554     case `/usr/bin/file conftest.$ac_objext` in
2555     *32-bit*)
2556       LD="${LD-ld} -32"
2557       ;;
2558     *N32*)
2559       LD="${LD-ld} -n32"
2560       ;;
2561     *64-bit*)
2562       LD="${LD-ld} -64"
2563       ;;
2564     esac
2565   fi
2566   rm -rf conftest*
2567   ;;
2568
2569 ia64-*-hpux*)
2570   # Find out which ABI we are using.
2571   echo 'int i;' > conftest.$ac_ext
2572   if { (eval echo configure:2573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2573     case "`/usr/bin/file conftest.o`" in
2574     *ELF-32*)
2575       HPUX_IA64_MODE="32"
2576       ;;
2577     *ELF-64*)
2578       HPUX_IA64_MODE="64"
2579       ;;
2580     esac
2581   fi
2582   rm -rf conftest*
2583   ;;
2584
2585 *-*-sco3.2v5*)
2586   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2587   SAVE_CFLAGS="$CFLAGS"
2588   CFLAGS="$CFLAGS -belf"
2589   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2590 echo "configure:2591: checking whether the C compiler needs -belf" >&5
2591 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2592   echo $ac_n "(cached) $ac_c" 1>&6
2593 else
2594   
2595      ac_ext=c
2596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2600 cross_compiling=$ac_cv_prog_cc_cross
2601
2602      cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2605
2606 int main() {
2607
2608 ; return 0; }
2609 EOF
2610 if { (eval echo configure:2611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2611   rm -rf conftest*
2612   lt_cv_cc_needs_belf=yes
2613 else
2614   echo "configure: failed program was:" >&5
2615   cat conftest.$ac_ext >&5
2616   rm -rf conftest*
2617   lt_cv_cc_needs_belf=no
2618 fi
2619 rm -f conftest*
2620      ac_ext=c
2621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2625 cross_compiling=$ac_cv_prog_cc_cross
2626
2627 fi
2628
2629 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2630   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2631     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2632     CFLAGS="$SAVE_CFLAGS"
2633   fi
2634   ;;
2635
2636 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2637   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2638 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2640 echo "configure:2641: checking for $ac_word" >&5
2641 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2642   echo $ac_n "(cached) $ac_c" 1>&6
2643 else
2644   if test -n "$DLLTOOL"; then
2645   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2646 else
2647   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2648   ac_dummy="$PATH"
2649   for ac_dir in $ac_dummy; do
2650     test -z "$ac_dir" && ac_dir=.
2651     if test -f $ac_dir/$ac_word; then
2652       ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2653       break
2654     fi
2655   done
2656   IFS="$ac_save_ifs"
2657 fi
2658 fi
2659 DLLTOOL="$ac_cv_prog_DLLTOOL"
2660 if test -n "$DLLTOOL"; then
2661   echo "$ac_t""$DLLTOOL" 1>&6
2662 else
2663   echo "$ac_t""no" 1>&6
2664 fi
2665
2666
2667 if test -z "$ac_cv_prog_DLLTOOL"; then
2668 if test -n "$ac_tool_prefix"; then
2669   # Extract the first word of "dlltool", so it can be a program name with args.
2670 set dummy dlltool; ac_word=$2
2671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2672 echo "configure:2673: checking for $ac_word" >&5
2673 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2674   echo $ac_n "(cached) $ac_c" 1>&6
2675 else
2676   if test -n "$DLLTOOL"; then
2677   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2678 else
2679   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2680   ac_dummy="$PATH"
2681   for ac_dir in $ac_dummy; do
2682     test -z "$ac_dir" && ac_dir=.
2683     if test -f $ac_dir/$ac_word; then
2684       ac_cv_prog_DLLTOOL="dlltool"
2685       break
2686     fi
2687   done
2688   IFS="$ac_save_ifs"
2689   test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2690 fi
2691 fi
2692 DLLTOOL="$ac_cv_prog_DLLTOOL"
2693 if test -n "$DLLTOOL"; then
2694   echo "$ac_t""$DLLTOOL" 1>&6
2695 else
2696   echo "$ac_t""no" 1>&6
2697 fi
2698
2699 else
2700   DLLTOOL="false"
2701 fi
2702 fi
2703
2704   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2705 set dummy ${ac_tool_prefix}as; ac_word=$2
2706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2707 echo "configure:2708: checking for $ac_word" >&5
2708 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2709   echo $ac_n "(cached) $ac_c" 1>&6
2710 else
2711   if test -n "$AS"; then
2712   ac_cv_prog_AS="$AS" # Let the user override the test.
2713 else
2714   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2715   ac_dummy="$PATH"
2716   for ac_dir in $ac_dummy; do
2717     test -z "$ac_dir" && ac_dir=.
2718     if test -f $ac_dir/$ac_word; then
2719       ac_cv_prog_AS="${ac_tool_prefix}as"
2720       break
2721     fi
2722   done
2723   IFS="$ac_save_ifs"
2724 fi
2725 fi
2726 AS="$ac_cv_prog_AS"
2727 if test -n "$AS"; then
2728   echo "$ac_t""$AS" 1>&6
2729 else
2730   echo "$ac_t""no" 1>&6
2731 fi
2732
2733
2734 if test -z "$ac_cv_prog_AS"; then
2735 if test -n "$ac_tool_prefix"; then
2736   # Extract the first word of "as", so it can be a program name with args.
2737 set dummy as; ac_word=$2
2738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_word" >&5
2740 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2741   echo $ac_n "(cached) $ac_c" 1>&6
2742 else
2743   if test -n "$AS"; then
2744   ac_cv_prog_AS="$AS" # Let the user override the test.
2745 else
2746   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2747   ac_dummy="$PATH"
2748   for ac_dir in $ac_dummy; do
2749     test -z "$ac_dir" && ac_dir=.
2750     if test -f $ac_dir/$ac_word; then
2751       ac_cv_prog_AS="as"
2752       break
2753     fi
2754   done
2755   IFS="$ac_save_ifs"
2756   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2757 fi
2758 fi
2759 AS="$ac_cv_prog_AS"
2760 if test -n "$AS"; then
2761   echo "$ac_t""$AS" 1>&6
2762 else
2763   echo "$ac_t""no" 1>&6
2764 fi
2765
2766 else
2767   AS="false"
2768 fi
2769 fi
2770
2771   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2774 echo "configure:2775: checking for $ac_word" >&5
2775 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2776   echo $ac_n "(cached) $ac_c" 1>&6
2777 else
2778   if test -n "$OBJDUMP"; then
2779   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2780 else
2781   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2782   ac_dummy="$PATH"
2783   for ac_dir in $ac_dummy; do
2784     test -z "$ac_dir" && ac_dir=.
2785     if test -f $ac_dir/$ac_word; then
2786       ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2787       break
2788     fi
2789   done
2790   IFS="$ac_save_ifs"
2791 fi
2792 fi
2793 OBJDUMP="$ac_cv_prog_OBJDUMP"
2794 if test -n "$OBJDUMP"; then
2795   echo "$ac_t""$OBJDUMP" 1>&6
2796 else
2797   echo "$ac_t""no" 1>&6
2798 fi
2799
2800
2801 if test -z "$ac_cv_prog_OBJDUMP"; then
2802 if test -n "$ac_tool_prefix"; then
2803   # Extract the first word of "objdump", so it can be a program name with args.
2804 set dummy objdump; ac_word=$2
2805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2806 echo "configure:2807: checking for $ac_word" >&5
2807 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2808   echo $ac_n "(cached) $ac_c" 1>&6
2809 else
2810   if test -n "$OBJDUMP"; then
2811   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2812 else
2813   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2814   ac_dummy="$PATH"
2815   for ac_dir in $ac_dummy; do
2816     test -z "$ac_dir" && ac_dir=.
2817     if test -f $ac_dir/$ac_word; then
2818       ac_cv_prog_OBJDUMP="objdump"
2819       break
2820     fi
2821   done
2822   IFS="$ac_save_ifs"
2823   test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2824 fi
2825 fi
2826 OBJDUMP="$ac_cv_prog_OBJDUMP"
2827 if test -n "$OBJDUMP"; then
2828   echo "$ac_t""$OBJDUMP" 1>&6
2829 else
2830   echo "$ac_t""no" 1>&6
2831 fi
2832
2833 else
2834   OBJDUMP="false"
2835 fi
2836 fi
2837
2838
2839   # recent cygwin and mingw systems supply a stub DllMain which the user
2840   # can override, but on older systems we have to supply one
2841   echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2842 echo "configure:2843: checking if libtool should supply DllMain function" >&5
2843 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2844   echo $ac_n "(cached) $ac_c" 1>&6
2845 else
2846   cat > conftest.$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2849
2850 int main() {
2851 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2852       DllMain (0, 0, 0);
2853 ; return 0; }
2854 EOF
2855 if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2856   rm -rf conftest*
2857   lt_cv_need_dllmain=no
2858 else
2859   echo "configure: failed program was:" >&5
2860   cat conftest.$ac_ext >&5
2861   rm -rf conftest*
2862   lt_cv_need_dllmain=yes
2863 fi
2864 rm -f conftest*
2865 fi
2866
2867 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2868
2869   case $host/$CC in
2870   *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2871     # old mingw systems require "-dll" to link a DLL, while more recent ones
2872     # require "-mdll"
2873     SAVE_CFLAGS="$CFLAGS"
2874     CFLAGS="$CFLAGS -mdll"
2875     echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2876 echo "configure:2877: checking how to link DLLs" >&5
2877 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2878   echo $ac_n "(cached) $ac_c" 1>&6
2879 else
2880   cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2883
2884 int main() {
2885
2886 ; return 0; }
2887 EOF
2888 if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2889   rm -rf conftest*
2890   lt_cv_cc_dll_switch=-mdll
2891 else
2892   echo "configure: failed program was:" >&5
2893   cat conftest.$ac_ext >&5
2894   rm -rf conftest*
2895   lt_cv_cc_dll_switch=-dll
2896 fi
2897 rm -f conftest*
2898 fi
2899
2900 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2901     CFLAGS="$SAVE_CFLAGS" ;;
2902   *-*-cygwin* | *-*-pw32*)
2903     # cygwin systems need to pass --dll to the linker, and not link
2904     # crt.o which will require a WinMain@16 definition.
2905     lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2906   esac
2907   ;;
2908   
2909 esac
2910
2911
2912 # Save cache, so that ltconfig can load it
2913 cat > confcache <<\EOF
2914 # This file is a shell script that caches the results of configure
2915 # tests run on this system so they can be shared between configure
2916 # scripts and configure runs.  It is not useful on other systems.
2917 # If it contains results you don't want to keep, you may remove or edit it.
2918 #
2919 # By default, configure uses ./config.cache as the cache file,
2920 # creating it if it does not exist already.  You can give configure
2921 # the --cache-file=FILE option to use a different cache file; that is
2922 # what configure does when it calls configure scripts in
2923 # subdirectories, so they share the cache.
2924 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2925 # config.status only pays attention to the cache file if you give it the
2926 # --recheck option to rerun configure.
2927 #
2928 EOF
2929 # The following way of writing the cache mishandles newlines in values,
2930 # but we know of no workaround that is simple, portable, and efficient.
2931 # So, don't put newlines in cache variables' values.
2932 # Ultrix sh set writes to stderr and can't be redirected directly,
2933 # and sets the high bit in the cache file unless we assign to the vars.
2934 (set) 2>&1 |
2935   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2936   *ac_space=\ *)
2937     # `set' does not quote correctly, so add quotes (double-quote substitution
2938     # turns \\\\ into \\, and sed turns \\ into \).
2939     sed -n \
2940       -e "s/'/'\\\\''/g" \
2941       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2942     ;;
2943   *)
2944     # `set' quotes correctly as required by POSIX, so do not add quotes.
2945     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2946     ;;
2947   esac >> confcache
2948 if cmp -s $cache_file confcache; then
2949   :
2950 else
2951   if test -w $cache_file; then
2952     echo "updating cache $cache_file"
2953     cat confcache > $cache_file
2954   else
2955     echo "not updating unwritable cache $cache_file"
2956   fi
2957 fi
2958 rm -f confcache
2959
2960
2961 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2962 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2963 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2964 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2965 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2966 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2967 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2968 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2969 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2970 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2971
2972 # Reload cache, that may have been modified by ltconfig
2973 if test -r "$cache_file"; then
2974   echo "loading cache $cache_file"
2975   . $cache_file
2976 else
2977   echo "creating cache $cache_file"
2978   > $cache_file
2979 fi
2980
2981
2982 # This can be used to rebuild libtool when needed
2983 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2984
2985 # Always use our own libtool.
2986 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2987
2988 # Redirect the config.log output again, so that the ltconfig log is not
2989 # clobbered by the next message.
2990 exec 5>>./config.log
2991
2992   
2993
2994   
2995          
2996          
2997 fi
2998
2999 LIBM_MACHINE_LIB=
3000 if test -n "${libm_machine_dir}"; then
3001   subdirs="machine"
3002
3003   if test "${use_libtool}" = "yes"; then
3004     LIBM_MACHINE_LIB=machine/${libm_machine_dir}/lib${libm_machine_dir}.${aext}
3005   else
3006     LIBM_MACHINE_LIB=machine/lib.${aext}
3007   fi
3008 fi
3009
3010
3011
3012 trap '' 1 2 15
3013 cat > confcache <<\EOF
3014 # This file is a shell script that caches the results of configure
3015 # tests run on this system so they can be shared between configure
3016 # scripts and configure runs.  It is not useful on other systems.
3017 # If it contains results you don't want to keep, you may remove or edit it.
3018 #
3019 # By default, configure uses ./config.cache as the cache file,
3020 # creating it if it does not exist already.  You can give configure
3021 # the --cache-file=FILE option to use a different cache file; that is
3022 # what configure does when it calls configure scripts in
3023 # subdirectories, so they share the cache.
3024 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3025 # config.status only pays attention to the cache file if you give it the
3026 # --recheck option to rerun configure.
3027 #
3028 EOF
3029 # The following way of writing the cache mishandles newlines in values,
3030 # but we know of no workaround that is simple, portable, and efficient.
3031 # So, don't put newlines in cache variables' values.
3032 # Ultrix sh set writes to stderr and can't be redirected directly,
3033 # and sets the high bit in the cache file unless we assign to the vars.
3034 (set) 2>&1 |
3035   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3036   *ac_space=\ *)
3037     # `set' does not quote correctly, so add quotes (double-quote substitution
3038     # turns \\\\ into \\, and sed turns \\ into \).
3039     sed -n \
3040       -e "s/'/'\\\\''/g" \
3041       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3042     ;;
3043   *)
3044     # `set' quotes correctly as required by POSIX, so do not add quotes.
3045     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3046     ;;
3047   esac >> confcache
3048 if cmp -s $cache_file confcache; then
3049   :
3050 else
3051   if test -w $cache_file; then
3052     echo "updating cache $cache_file"
3053     cat confcache > $cache_file
3054   else
3055     echo "not updating unwritable cache $cache_file"
3056   fi
3057 fi
3058 rm -f confcache
3059
3060 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3061
3062 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3063 # Let make expand exec_prefix.
3064 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3065
3066 # Any assignment to VPATH causes Sun make to only execute
3067 # the first set of double-colon rules, so remove it if not needed.
3068 # If there is a colon in the path, we need to keep it.
3069 if test "x$srcdir" = x.; then
3070   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3071 fi
3072
3073 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3074
3075 # Transform confdefs.h into DEFS.
3076 # Protect against shell expansion while executing Makefile rules.
3077 # Protect against Makefile macro expansion.
3078 cat > conftest.defs <<\EOF
3079 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3080 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3081 s%\[%\\&%g
3082 s%\]%\\&%g
3083 s%\$%$$%g
3084 EOF
3085 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3086 rm -f conftest.defs
3087
3088
3089 # Without the "./", some shells look in PATH for config.status.
3090 : ${CONFIG_STATUS=./config.status}
3091
3092 echo creating $CONFIG_STATUS
3093 rm -f $CONFIG_STATUS
3094 cat > $CONFIG_STATUS <<EOF
3095 #! /bin/sh
3096 # Generated automatically by configure.
3097 # Run this file to recreate the current configuration.
3098 # This directory was configured as follows,
3099 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3100 #
3101 # $0 $ac_configure_args
3102 #
3103 # Compiler output produced by configure, useful for debugging
3104 # configure, is in ./config.log if it exists.
3105
3106 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3107 for ac_option
3108 do
3109   case "\$ac_option" in
3110   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3111     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3112     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3113   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3114     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3115     exit 0 ;;
3116   -help | --help | --hel | --he | --h)
3117     echo "\$ac_cs_usage"; exit 0 ;;
3118   *) echo "\$ac_cs_usage"; exit 1 ;;
3119   esac
3120 done
3121
3122 ac_given_srcdir=$srcdir
3123 ac_given_INSTALL="$INSTALL"
3124
3125 trap 'rm -fr `echo "Makefile math/Makefile mathfp/Makefile common/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3126 EOF
3127 cat >> $CONFIG_STATUS <<EOF
3128
3129 # Protect against being on the right side of a sed subst in config.status.
3130 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3131  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3132 $ac_vpsub
3133 $extrasub
3134 s%@SHELL@%$SHELL%g
3135 s%@CFLAGS@%$CFLAGS%g
3136 s%@CPPFLAGS@%$CPPFLAGS%g
3137 s%@CXXFLAGS@%$CXXFLAGS%g
3138 s%@FFLAGS@%$FFLAGS%g
3139 s%@DEFS@%$DEFS%g
3140 s%@LDFLAGS@%$LDFLAGS%g
3141 s%@LIBS@%$LIBS%g
3142 s%@exec_prefix@%$exec_prefix%g
3143 s%@prefix@%$prefix%g
3144 s%@program_transform_name@%$program_transform_name%g
3145 s%@bindir@%$bindir%g
3146 s%@sbindir@%$sbindir%g
3147 s%@libexecdir@%$libexecdir%g
3148 s%@datadir@%$datadir%g
3149 s%@sysconfdir@%$sysconfdir%g
3150 s%@sharedstatedir@%$sharedstatedir%g
3151 s%@localstatedir@%$localstatedir%g
3152 s%@libdir@%$libdir%g
3153 s%@includedir@%$includedir%g
3154 s%@oldincludedir@%$oldincludedir%g
3155 s%@infodir@%$infodir%g
3156 s%@mandir@%$mandir%g
3157 s%@NEWLIB_HW_FP_TRUE@%$NEWLIB_HW_FP_TRUE%g
3158 s%@NEWLIB_HW_FP_FALSE@%$NEWLIB_HW_FP_FALSE%g
3159 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
3160 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
3161 s%@newlib_basedir@%$newlib_basedir%g
3162 s%@host@%$host%g
3163 s%@host_alias@%$host_alias%g
3164 s%@host_cpu@%$host_cpu%g
3165 s%@host_vendor@%$host_vendor%g
3166 s%@host_os@%$host_os%g
3167 s%@target@%$target%g
3168 s%@target_alias@%$target_alias%g
3169 s%@target_cpu@%$target_cpu%g
3170 s%@target_vendor@%$target_vendor%g
3171 s%@target_os@%$target_os%g
3172 s%@build@%$build%g
3173 s%@build_alias@%$build_alias%g
3174 s%@build_cpu@%$build_cpu%g
3175 s%@build_vendor@%$build_vendor%g
3176 s%@build_os@%$build_os%g
3177 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3178 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3179 s%@INSTALL_DATA@%$INSTALL_DATA%g
3180 s%@PACKAGE@%$PACKAGE%g
3181 s%@VERSION@%$VERSION%g
3182 s%@ACLOCAL@%$ACLOCAL%g
3183 s%@AUTOCONF@%$AUTOCONF%g
3184 s%@AUTOMAKE@%$AUTOMAKE%g
3185 s%@AUTOHEADER@%$AUTOHEADER%g
3186 s%@MAKEINFO@%$MAKEINFO%g
3187 s%@SET_MAKE@%$SET_MAKE%g
3188 s%@CC@%$CC%g
3189 s%@AS@%$AS%g
3190 s%@AR@%$AR%g
3191 s%@RANLIB@%$RANLIB%g
3192 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3193 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3194 s%@MAINT@%$MAINT%g
3195 s%@EXEEXT@%$EXEEXT%g
3196 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
3197 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
3198 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
3199 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
3200 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
3201 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
3202 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
3203 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
3204 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
3205 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
3206 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
3207 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
3208 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
3209 s%@OBJEXT@%$OBJEXT%g
3210 s%@oext@%$oext%g
3211 s%@aext@%$aext%g
3212 s%@libm_machine_dir@%$libm_machine_dir%g
3213 s%@machine_dir@%$machine_dir%g
3214 s%@sys_dir@%$sys_dir%g
3215 s%@LN_S@%$LN_S%g
3216 s%@STRIP@%$STRIP%g
3217 s%@DLLTOOL@%$DLLTOOL%g
3218 s%@OBJDUMP@%$OBJDUMP%g
3219 s%@LIBTOOL@%$LIBTOOL%g
3220 s%@subdirs@%$subdirs%g
3221 s%@LIBM_MACHINE_LIB@%$LIBM_MACHINE_LIB%g
3222
3223 CEOF
3224 EOF
3225
3226 cat >> $CONFIG_STATUS <<\EOF
3227
3228 # Split the substitutions into bite-sized pieces for seds with
3229 # small command number limits, like on Digital OSF/1 and HP-UX.
3230 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3231 ac_file=1 # Number of current file.
3232 ac_beg=1 # First line for current file.
3233 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3234 ac_more_lines=:
3235 ac_sed_cmds=""
3236 while $ac_more_lines; do
3237   if test $ac_beg -gt 1; then
3238     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3239   else
3240     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3241   fi
3242   if test ! -s conftest.s$ac_file; then
3243     ac_more_lines=false
3244     rm -f conftest.s$ac_file
3245   else
3246     if test -z "$ac_sed_cmds"; then
3247       ac_sed_cmds="sed -f conftest.s$ac_file"
3248     else
3249       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3250     fi
3251     ac_file=`expr $ac_file + 1`
3252     ac_beg=$ac_end
3253     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3254   fi
3255 done
3256 if test -z "$ac_sed_cmds"; then
3257   ac_sed_cmds=cat
3258 fi
3259 EOF
3260
3261 cat >> $CONFIG_STATUS <<EOF
3262
3263 CONFIG_FILES=\${CONFIG_FILES-"Makefile math/Makefile mathfp/Makefile common/Makefile"}
3264 EOF
3265 cat >> $CONFIG_STATUS <<\EOF
3266 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3267   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3268   case "$ac_file" in
3269   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3270        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3271   *) ac_file_in="${ac_file}.in" ;;
3272   esac
3273
3274   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3275
3276   # Remove last slash and all that follows it.  Not all systems have dirname.
3277   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3278   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3279     # The file is in a subdirectory.
3280     test ! -d "$ac_dir" && mkdir "$ac_dir"
3281     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3282     # A "../" for each directory in $ac_dir_suffix.
3283     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3284   else
3285     ac_dir_suffix= ac_dots=
3286   fi
3287
3288   case "$ac_given_srcdir" in
3289   .)  srcdir=.
3290       if test -z "$ac_dots"; then top_srcdir=.
3291       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3292   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3293   *) # Relative path.
3294     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3295     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3296   esac
3297
3298   case "$ac_given_INSTALL" in
3299   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3300   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3301   esac
3302
3303   echo creating "$ac_file"
3304   rm -f "$ac_file"
3305   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3306   case "$ac_file" in
3307   *Makefile*) ac_comsub="1i\\
3308 # $configure_input" ;;
3309   *) ac_comsub= ;;
3310   esac
3311
3312   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3313   sed -e "$ac_comsub
3314 s%@configure_input@%$configure_input%g
3315 s%@srcdir@%$srcdir%g
3316 s%@top_srcdir@%$top_srcdir%g
3317 s%@INSTALL@%$INSTALL%g
3318 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3319 fi; done
3320 rm -f conftest.s*
3321
3322 EOF
3323 cat >> $CONFIG_STATUS <<EOF
3324
3325 EOF
3326 cat >> $CONFIG_STATUS <<\EOF
3327
3328 exit 0
3329 EOF
3330 chmod +x $CONFIG_STATUS
3331 rm -fr confdefs* $ac_clean_files
3332 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3333
3334 if test "$no_recursion" != yes; then
3335
3336   # Remove --cache-file and --srcdir arguments so they do not pile up.
3337   ac_sub_configure_args=
3338   ac_prev=
3339   for ac_arg in $ac_configure_args; do
3340     if test -n "$ac_prev"; then
3341       ac_prev=
3342       continue
3343     fi
3344     case "$ac_arg" in
3345     -cache-file | --cache-file | --cache-fil | --cache-fi \
3346     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3347       ac_prev=cache_file ;;
3348     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3349     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3350       ;;
3351     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3352       ac_prev=srcdir ;;
3353     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3354       ;;
3355     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3356     esac
3357   done
3358
3359   for ac_config_dir in machine; do
3360
3361     # Do not complain, so a configure script can configure whichever
3362     # parts of a large source tree are present.
3363     if test ! -d $srcdir/$ac_config_dir; then
3364       continue
3365     fi
3366
3367     echo configuring in $ac_config_dir
3368
3369     case "$srcdir" in
3370     .) ;;
3371     *)
3372       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3373       else
3374         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3375       fi
3376       ;;
3377     esac
3378
3379     ac_popdir=`pwd`
3380     cd $ac_config_dir
3381
3382       # A "../" for each directory in /$ac_config_dir.
3383       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3384
3385     case "$srcdir" in
3386     .) # No --srcdir option.  We are building in place.
3387       ac_sub_srcdir=$srcdir ;;
3388     /*) # Absolute path.
3389       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3390     *) # Relative path.
3391       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3392     esac
3393
3394     # Check for guested configure; otherwise get Cygnus style configure.
3395     if test -f $ac_sub_srcdir/configure; then
3396       ac_sub_configure=$ac_sub_srcdir/configure
3397     elif test -f $ac_sub_srcdir/configure.in; then
3398       ac_sub_configure=$ac_configure
3399     else
3400       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3401       ac_sub_configure=
3402     fi
3403
3404     # The recursion is here.
3405     if test -n "$ac_sub_configure"; then
3406
3407       # Make the cache file name correct relative to the subdirectory.
3408       case "$cache_file" in
3409       /*) ac_sub_cache_file=$cache_file ;;
3410       *) # Relative path.
3411         ac_sub_cache_file="$ac_dots$cache_file" ;;
3412       esac
3413   case "$ac_given_INSTALL" in
3414         [/$]*) INSTALL="$ac_given_INSTALL" ;;
3415         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3416         esac
3417
3418       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3419       # The eval makes quoting arguments work.
3420       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3421       then :
3422       else
3423         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3424       fi
3425     fi
3426
3427     cd $ac_popdir
3428   done
3429 fi
3430