OSDN Git Service

03f6091de196068dac811ace6e6f21448dc280ae
[pf3gnuchains/pf3gnuchains4x.git] / newlib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for newlib 1.15.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='newlib'
269 PACKAGE_TARNAME='newlib'
270 PACKAGE_VERSION='1.15.0'
271 PACKAGE_STRING='newlib 1.15.0'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="libc"
275 ac_subdirs_all="$ac_subdirs_all libc"
276 ac_subdirs_all="$ac_subdirs_all libm"
277 ac_subdirs_all="$ac_subdirs_all doc"
278 ac_subdirs_all="$ac_subdirs_all iconvdata"
279 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAY_SUPPLY_SYSCALLS_TRUE MAY_SUPPLY_SYSCALLS_FALSE newlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB READELF ac_ct_READELF MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CCAS CCASFLAGS NEWLIB_CFLAGS LDFLAGS ELIX_LEVEL_0_TRUE ELIX_LEVEL_0_FALSE ELIX_LEVEL_1_TRUE ELIX_LEVEL_1_FALSE ELIX_LEVEL_2_TRUE ELIX_LEVEL_2_FALSE ELIX_LEVEL_3_TRUE ELIX_LEVEL_3_FALSE ELIX_LEVEL_4_TRUE ELIX_LEVEL_4_FALSE USE_LIBTOOL_TRUE USE_LIBTOOL_FALSE OBJEXT oext aext lpfx libm_machine_dir machine_dir sys_dir CFLAGS CPPFLAGS ac_ct_CC EXEEXT LN_S LIBTOOL NEWLIB_HW_FP_TRUE NEWLIB_HW_FP_FALSE CC_FOR_NEWLIB subdirs HAVE_DOC_TRUE HAVE_DOC_FALSE EXTRA_DIRS CRT0 CRT0_DIR CRT1 CRT1_DIR LIBM_MACHINE_OBJECTLIST MACHINE_OBJECTLIST SYS_OBJECTLIST SYS_MACH_OBJECTLIST POSIX_OBJECTLIST SIGNAL_OBJECTLIST SYSCALL_OBJECTLIST UNIX_OBJECTLIST STDIO64_OBJECTLIST CC_FOR_BUILD libc_cv_initfinit_array libc_cv_array_aliasing LIBOBJS LTLIBOBJS'
280 ac_subst_files=''
281
282 # Initialize some variables set by options.
283 ac_init_help=
284 ac_init_version=false
285 # The variables have the same names as the options, with
286 # dashes changed to underlines.
287 cache_file=/dev/null
288 exec_prefix=NONE
289 no_create=
290 no_recursion=
291 prefix=NONE
292 program_prefix=NONE
293 program_suffix=NONE
294 program_transform_name=s,x,x,
295 silent=
296 site=
297 srcdir=
298 verbose=
299 x_includes=NONE
300 x_libraries=NONE
301
302 # Installation directory options.
303 # These are left unexpanded so users can "make install exec_prefix=/foo"
304 # and all the variables that are supposed to be based on exec_prefix
305 # by default will actually change.
306 # Use braces instead of parens because sh, perl, etc. also accept them.
307 bindir='${exec_prefix}/bin'
308 sbindir='${exec_prefix}/sbin'
309 libexecdir='${exec_prefix}/libexec'
310 datadir='${prefix}/share'
311 sysconfdir='${prefix}/etc'
312 sharedstatedir='${prefix}/com'
313 localstatedir='${prefix}/var'
314 libdir='${exec_prefix}/lib'
315 includedir='${prefix}/include'
316 oldincludedir='/usr/include'
317 infodir='${prefix}/info'
318 mandir='${prefix}/man'
319
320 ac_prev=
321 for ac_option
322 do
323   # If the previous option needs an argument, assign it.
324   if test -n "$ac_prev"; then
325     eval "$ac_prev=\$ac_option"
326     ac_prev=
327     continue
328   fi
329
330   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
331
332   # Accept the important Cygnus configure options, so we can diagnose typos.
333
334   case $ac_option in
335
336   -bindir | --bindir | --bindi | --bind | --bin | --bi)
337     ac_prev=bindir ;;
338   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
339     bindir=$ac_optarg ;;
340
341   -build | --build | --buil | --bui | --bu)
342     ac_prev=build_alias ;;
343   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
344     build_alias=$ac_optarg ;;
345
346   -cache-file | --cache-file | --cache-fil | --cache-fi \
347   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
348     ac_prev=cache_file ;;
349   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
350   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
351     cache_file=$ac_optarg ;;
352
353   --config-cache | -C)
354     cache_file=config.cache ;;
355
356   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
357     ac_prev=datadir ;;
358   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
359   | --da=*)
360     datadir=$ac_optarg ;;
361
362   -disable-* | --disable-*)
363     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
364     # Reject names that are not valid shell variable names.
365     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
366       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
367    { (exit 1); exit 1; }; }
368     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
369     eval "enable_$ac_feature=no" ;;
370
371   -enable-* | --enable-*)
372     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
373     # Reject names that are not valid shell variable names.
374     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
375       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
376    { (exit 1); exit 1; }; }
377     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
378     case $ac_option in
379       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
380       *) ac_optarg=yes ;;
381     esac
382     eval "enable_$ac_feature='$ac_optarg'" ;;
383
384   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
385   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
386   | --exec | --exe | --ex)
387     ac_prev=exec_prefix ;;
388   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
389   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
390   | --exec=* | --exe=* | --ex=*)
391     exec_prefix=$ac_optarg ;;
392
393   -gas | --gas | --ga | --g)
394     # Obsolete; use --with-gas.
395     with_gas=yes ;;
396
397   -help | --help | --hel | --he | -h)
398     ac_init_help=long ;;
399   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
400     ac_init_help=recursive ;;
401   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
402     ac_init_help=short ;;
403
404   -host | --host | --hos | --ho)
405     ac_prev=host_alias ;;
406   -host=* | --host=* | --hos=* | --ho=*)
407     host_alias=$ac_optarg ;;
408
409   -includedir | --includedir | --includedi | --included | --include \
410   | --includ | --inclu | --incl | --inc)
411     ac_prev=includedir ;;
412   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
413   | --includ=* | --inclu=* | --incl=* | --inc=*)
414     includedir=$ac_optarg ;;
415
416   -infodir | --infodir | --infodi | --infod | --info | --inf)
417     ac_prev=infodir ;;
418   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
419     infodir=$ac_optarg ;;
420
421   -libdir | --libdir | --libdi | --libd)
422     ac_prev=libdir ;;
423   -libdir=* | --libdir=* | --libdi=* | --libd=*)
424     libdir=$ac_optarg ;;
425
426   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
427   | --libexe | --libex | --libe)
428     ac_prev=libexecdir ;;
429   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
430   | --libexe=* | --libex=* | --libe=*)
431     libexecdir=$ac_optarg ;;
432
433   -localstatedir | --localstatedir | --localstatedi | --localstated \
434   | --localstate | --localstat | --localsta | --localst \
435   | --locals | --local | --loca | --loc | --lo)
436     ac_prev=localstatedir ;;
437   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
438   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
439   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
440     localstatedir=$ac_optarg ;;
441
442   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
443     ac_prev=mandir ;;
444   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445     mandir=$ac_optarg ;;
446
447   -nfp | --nfp | --nf)
448     # Obsolete; use --without-fp.
449     with_fp=no ;;
450
451   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452   | --no-cr | --no-c | -n)
453     no_create=yes ;;
454
455   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
457     no_recursion=yes ;;
458
459   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
460   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
461   | --oldin | --oldi | --old | --ol | --o)
462     ac_prev=oldincludedir ;;
463   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
464   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
465   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
466     oldincludedir=$ac_optarg ;;
467
468   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
469     ac_prev=prefix ;;
470   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
471     prefix=$ac_optarg ;;
472
473   -program-prefix | --program-prefix | --program-prefi | --program-pref \
474   | --program-pre | --program-pr | --program-p)
475     ac_prev=program_prefix ;;
476   -program-prefix=* | --program-prefix=* | --program-prefi=* \
477   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
478     program_prefix=$ac_optarg ;;
479
480   -program-suffix | --program-suffix | --program-suffi | --program-suff \
481   | --program-suf | --program-su | --program-s)
482     ac_prev=program_suffix ;;
483   -program-suffix=* | --program-suffix=* | --program-suffi=* \
484   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
485     program_suffix=$ac_optarg ;;
486
487   -program-transform-name | --program-transform-name \
488   | --program-transform-nam | --program-transform-na \
489   | --program-transform-n | --program-transform- \
490   | --program-transform | --program-transfor \
491   | --program-transfo | --program-transf \
492   | --program-trans | --program-tran \
493   | --progr-tra | --program-tr | --program-t)
494     ac_prev=program_transform_name ;;
495   -program-transform-name=* | --program-transform-name=* \
496   | --program-transform-nam=* | --program-transform-na=* \
497   | --program-transform-n=* | --program-transform-=* \
498   | --program-transform=* | --program-transfor=* \
499   | --program-transfo=* | --program-transf=* \
500   | --program-trans=* | --program-tran=* \
501   | --progr-tra=* | --program-tr=* | --program-t=*)
502     program_transform_name=$ac_optarg ;;
503
504   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
505   | -silent | --silent | --silen | --sile | --sil)
506     silent=yes ;;
507
508   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
509     ac_prev=sbindir ;;
510   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
511   | --sbi=* | --sb=*)
512     sbindir=$ac_optarg ;;
513
514   -sharedstatedir | --sharedstatedir | --sharedstatedi \
515   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
516   | --sharedst | --shareds | --shared | --share | --shar \
517   | --sha | --sh)
518     ac_prev=sharedstatedir ;;
519   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
520   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
521   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
522   | --sha=* | --sh=*)
523     sharedstatedir=$ac_optarg ;;
524
525   -site | --site | --sit)
526     ac_prev=site ;;
527   -site=* | --site=* | --sit=*)
528     site=$ac_optarg ;;
529
530   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
531     ac_prev=srcdir ;;
532   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
533     srcdir=$ac_optarg ;;
534
535   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
536   | --syscon | --sysco | --sysc | --sys | --sy)
537     ac_prev=sysconfdir ;;
538   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
539   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
540     sysconfdir=$ac_optarg ;;
541
542   -target | --target | --targe | --targ | --tar | --ta | --t)
543     ac_prev=target_alias ;;
544   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
545     target_alias=$ac_optarg ;;
546
547   -v | -verbose | --verbose | --verbos | --verbo | --verb)
548     verbose=yes ;;
549
550   -version | --version | --versio | --versi | --vers | -V)
551     ac_init_version=: ;;
552
553   -with-* | --with-*)
554     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid package name: $ac_package" >&2
558    { (exit 1); exit 1; }; }
559     ac_package=`echo $ac_package| sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "with_$ac_package='$ac_optarg'" ;;
565
566   -without-* | --without-*)
567     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
568     # Reject names that are not valid shell variable names.
569     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
570       { echo "$as_me: error: invalid package name: $ac_package" >&2
571    { (exit 1); exit 1; }; }
572     ac_package=`echo $ac_package | sed 's/-/_/g'`
573     eval "with_$ac_package=no" ;;
574
575   --x)
576     # Obsolete; use --with-x.
577     with_x=yes ;;
578
579   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
580   | --x-incl | --x-inc | --x-in | --x-i)
581     ac_prev=x_includes ;;
582   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
583   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
584     x_includes=$ac_optarg ;;
585
586   -x-libraries | --x-libraries | --x-librarie | --x-librari \
587   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
588     ac_prev=x_libraries ;;
589   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
590   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
591     x_libraries=$ac_optarg ;;
592
593   -*) { echo "$as_me: error: unrecognized option: $ac_option
594 Try \`$0 --help' for more information." >&2
595    { (exit 1); exit 1; }; }
596     ;;
597
598   *=*)
599     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
603    { (exit 1); exit 1; }; }
604     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
605     eval "$ac_envvar='$ac_optarg'"
606     export $ac_envvar ;;
607
608   *)
609     # FIXME: should be removed in autoconf 3.0.
610     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
611     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
612       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
613     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
614     ;;
615
616   esac
617 done
618
619 if test -n "$ac_prev"; then
620   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
621   { echo "$as_me: error: missing argument to $ac_option" >&2
622    { (exit 1); exit 1; }; }
623 fi
624
625 # Be sure to have absolute paths.
626 for ac_var in exec_prefix prefix
627 do
628   eval ac_val=$`echo $ac_var`
629   case $ac_val in
630     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
631     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
632    { (exit 1); exit 1; }; };;
633   esac
634 done
635
636 # Be sure to have absolute paths.
637 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
638               localstatedir libdir includedir oldincludedir infodir mandir
639 do
640   eval ac_val=$`echo $ac_var`
641   case $ac_val in
642     [\\/$]* | ?:[\\/]* ) ;;
643     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
644    { (exit 1); exit 1; }; };;
645   esac
646 done
647
648 # There might be people who depend on the old broken behavior: `$host'
649 # used to hold the argument of --host etc.
650 # FIXME: To remove some day.
651 build=$build_alias
652 host=$host_alias
653 target=$target_alias
654
655 # FIXME: To remove some day.
656 if test "x$host_alias" != x; then
657   if test "x$build_alias" = x; then
658     cross_compiling=maybe
659     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
660     If a cross compiler is detected then cross compile mode will be used." >&2
661   elif test "x$build_alias" != "x$host_alias"; then
662     cross_compiling=yes
663   fi
664 fi
665
666 ac_tool_prefix=
667 test -n "$host_alias" && ac_tool_prefix=$host_alias-
668
669 test "$silent" = yes && exec 6>/dev/null
670
671
672 # Find the source files, if location was not specified.
673 if test -z "$srcdir"; then
674   ac_srcdir_defaulted=yes
675   # Try the directory containing this script, then its parent.
676   ac_confdir=`(dirname "$0") 2>/dev/null ||
677 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
678          X"$0" : 'X\(//\)[^/]' \| \
679          X"$0" : 'X\(//\)$' \| \
680          X"$0" : 'X\(/\)' \| \
681          .     : '\(.\)' 2>/dev/null ||
682 echo X"$0" |
683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
684           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
685           /^X\(\/\/\)$/{ s//\1/; q; }
686           /^X\(\/\).*/{ s//\1/; q; }
687           s/.*/./; q'`
688   srcdir=$ac_confdir
689   if test ! -r $srcdir/$ac_unique_file; then
690     srcdir=..
691   fi
692 else
693   ac_srcdir_defaulted=no
694 fi
695 if test ! -r $srcdir/$ac_unique_file; then
696   if test "$ac_srcdir_defaulted" = yes; then
697     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
698    { (exit 1); exit 1; }; }
699   else
700     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
701    { (exit 1); exit 1; }; }
702   fi
703 fi
704 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
705   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
706    { (exit 1); exit 1; }; }
707 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
708 ac_env_build_alias_set=${build_alias+set}
709 ac_env_build_alias_value=$build_alias
710 ac_cv_env_build_alias_set=${build_alias+set}
711 ac_cv_env_build_alias_value=$build_alias
712 ac_env_host_alias_set=${host_alias+set}
713 ac_env_host_alias_value=$host_alias
714 ac_cv_env_host_alias_set=${host_alias+set}
715 ac_cv_env_host_alias_value=$host_alias
716 ac_env_target_alias_set=${target_alias+set}
717 ac_env_target_alias_value=$target_alias
718 ac_cv_env_target_alias_set=${target_alias+set}
719 ac_cv_env_target_alias_value=$target_alias
720 ac_env_CCAS_set=${CCAS+set}
721 ac_env_CCAS_value=$CCAS
722 ac_cv_env_CCAS_set=${CCAS+set}
723 ac_cv_env_CCAS_value=$CCAS
724 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
725 ac_env_CCASFLAGS_value=$CCASFLAGS
726 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
727 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
728 ac_env_CC_set=${CC+set}
729 ac_env_CC_value=$CC
730 ac_cv_env_CC_set=${CC+set}
731 ac_cv_env_CC_value=$CC
732 ac_env_CFLAGS_set=${CFLAGS+set}
733 ac_env_CFLAGS_value=$CFLAGS
734 ac_cv_env_CFLAGS_set=${CFLAGS+set}
735 ac_cv_env_CFLAGS_value=$CFLAGS
736 ac_env_LDFLAGS_set=${LDFLAGS+set}
737 ac_env_LDFLAGS_value=$LDFLAGS
738 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
739 ac_cv_env_LDFLAGS_value=$LDFLAGS
740 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
741 ac_env_CPPFLAGS_value=$CPPFLAGS
742 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
743 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
744
745 #
746 # Report the --help message.
747 #
748 if test "$ac_init_help" = "long"; then
749   # Omit some internal or obsolete options to make the list less imposing.
750   # This message is too long to be a string in the A/UX 3.1 sh.
751   cat <<_ACEOF
752 \`configure' configures newlib 1.15.0 to adapt to many kinds of systems.
753
754 Usage: $0 [OPTION]... [VAR=VALUE]...
755
756 To assign environment variables (e.g., CC, CFLAGS...), specify them as
757 VAR=VALUE.  See below for descriptions of some of the useful variables.
758
759 Defaults for the options are specified in brackets.
760
761 Configuration:
762   -h, --help              display this help and exit
763       --help=short        display options specific to this package
764       --help=recursive    display the short help of all the included packages
765   -V, --version           display version information and exit
766   -q, --quiet, --silent   do not print \`checking...' messages
767       --cache-file=FILE   cache test results in FILE [disabled]
768   -C, --config-cache      alias for \`--cache-file=config.cache'
769   -n, --no-create         do not create output files
770       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
771
772 _ACEOF
773
774   cat <<_ACEOF
775 Installation directories:
776   --prefix=PREFIX         install architecture-independent files in PREFIX
777                           [$ac_default_prefix]
778   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
779                           [PREFIX]
780
781 By default, \`make install' will install all the files in
782 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
783 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
784 for instance \`--prefix=\$HOME'.
785
786 For better control, use the options below.
787
788 Fine tuning of the installation directories:
789   --bindir=DIR           user executables [EPREFIX/bin]
790   --sbindir=DIR          system admin executables [EPREFIX/sbin]
791   --libexecdir=DIR       program executables [EPREFIX/libexec]
792   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
793   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
794   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
795   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
796   --libdir=DIR           object code libraries [EPREFIX/lib]
797   --includedir=DIR       C header files [PREFIX/include]
798   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
799   --infodir=DIR          info documentation [PREFIX/info]
800   --mandir=DIR           man documentation [PREFIX/man]
801 _ACEOF
802
803   cat <<\_ACEOF
804
805 Program names:
806   --program-prefix=PREFIX            prepend PREFIX to installed program names
807   --program-suffix=SUFFIX            append SUFFIX to installed program names
808   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
809
810 System types:
811   --build=BUILD     configure for building on BUILD [guessed]
812   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
813 _ACEOF
814 fi
815
816 if test -n "$ac_init_help"; then
817   case $ac_init_help in
818      short | recursive ) echo "Configuration of newlib 1.15.0:";;
819    esac
820   cat <<\_ACEOF
821
822 Optional Features:
823   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
824   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
825   --enable-newlib-io-pos-args enable printf-family positional arg support
826   --enable-newlib-io-c99-formats   enable C99 support in IO functions like printf/scanf
827   --enable-newlib-io-long-long   enable long long type support in IO functions like printf/scanf
828   --enable-newlib-io-long-double   enable long double type support in IO functions printf/scanf
829   --enable-newlib-mb        enable multibyte support
830   --enable-newlib-iconv-encodings   enable specific comma-separated list of bidirectional iconv encodings to be built-in
831   --enable-newlib-iconv-from-encodings   enable specific comma-separated list of \"from\" iconv encodings to be built-in
832   --enable-newlib-iconv-to-encodings   enable specific comma-separated list of \"to\" iconv encodings to be built-in
833   --enable-newlib-iconv-external-ccs     enable capabilities to load external CCS files for iconv
834   --disable-newlib-atexit-alloc    disable dynamic allocation of atexit entries
835   --enable-newlib-reent-small   enable small reentrant struct support
836   --enable-multilib         build many library versions (default)
837   --enable-target-optspace  optimize for space
838   --enable-malloc-debugging indicate malloc debugging requested
839   --enable-newlib-multithread        enable support for multiple threads
840   --enable-newlib-iconv     enable iconv library support
841   --enable-newlib-elix-level         supply desired elix library level (1-4)
842   --disable-newlib-io-float disable printf/scanf family float support
843   --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
844   --disable-dependency-tracking  speeds up one-time build
845   --enable-dependency-tracking   do not reject slow dependency extractors
846   --enable-maintainer-mode  enable make rules and dependencies not useful
847                           (and sometimes confusing) to the casual installer
848   --enable-shared=PKGS  build shared libraries default=yes
849   --enable-static=PKGS  build static libraries default=yes
850   --enable-fast-install=PKGS  optimize for fast installation default=yes
851   --disable-libtool-lock  avoid locking (might break parallel builds)
852   --enable-newlib-hw-fp    Turn on hardware floating point math
853
854 Optional Packages:
855   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
856   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
857   --with-gnu-ld           assume the C compiler uses GNU ld default=no
858   --with-pic              try to use only PIC/non-PIC objects default=use both
859
860 Some influential environment variables:
861   CCAS        assembler compiler command (defaults to CC)
862   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
863   CC          C compiler command
864   CFLAGS      C compiler flags
865   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
866               nonstandard directory <lib dir>
867   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
868               headers in a nonstandard directory <include dir>
869
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
872
873 _ACEOF
874 fi
875
876 if test "$ac_init_help" = "recursive"; then
877   # If there are subdirs, report their specific --help.
878   ac_popdir=`pwd`
879   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880     test -d $ac_dir || continue
881     ac_builddir=.
882
883 if test "$ac_dir" != .; then
884   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885   # A "../" for each directory in $ac_dir_suffix.
886   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888   ac_dir_suffix= ac_top_builddir=
889 fi
890
891 case $srcdir in
892   .)  # No --srcdir option.  We are building in place.
893     ac_srcdir=.
894     if test -z "$ac_top_builddir"; then
895        ac_top_srcdir=.
896     else
897        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898     fi ;;
899   [\\/]* | ?:[\\/]* )  # Absolute path.
900     ac_srcdir=$srcdir$ac_dir_suffix;
901     ac_top_srcdir=$srcdir ;;
902   *) # Relative path.
903     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904     ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
911 *)
912   case "$ac_dir" in
913   .) ac_abs_builddir=`pwd`;;
914   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915   *) ac_abs_builddir=`pwd`/"$ac_dir";;
916   esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 *)
921   case ${ac_top_builddir}. in
922   .) ac_abs_top_builddir=$ac_abs_builddir;;
923   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925   esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
929 *)
930   case $ac_srcdir in
931   .) ac_abs_srcdir=$ac_abs_builddir;;
932   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934   esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 *)
939   case $ac_top_srcdir in
940   .) ac_abs_top_srcdir=$ac_abs_builddir;;
941   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943   esac;;
944 esac
945
946     cd $ac_dir
947     # Check for guested configure; otherwise get Cygnus style configure.
948     if test -f $ac_srcdir/configure.gnu; then
949       echo
950       $SHELL $ac_srcdir/configure.gnu  --help=recursive
951     elif test -f $ac_srcdir/configure; then
952       echo
953       $SHELL $ac_srcdir/configure  --help=recursive
954     elif test -f $ac_srcdir/configure.ac ||
955            test -f $ac_srcdir/configure.in; then
956       echo
957       $ac_configure --help
958     else
959       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960     fi
961     cd $ac_popdir
962   done
963 fi
964
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967   cat <<\_ACEOF
968 newlib configure 1.15.0
969 generated by GNU Autoconf 2.59
970
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975   exit 0
976 fi
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
981
982 It was created by newlib $as_me 1.15.0, which was
983 generated by GNU Autoconf 2.59.  Invocation command line was
984
985   $ $0 $@
986
987 _ACEOF
988 {
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
993
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1002
1003 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1004 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1007 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1008 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1009 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1010
1011 _ASUNAME
1012
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1015 do
1016   IFS=$as_save_IFS
1017   test -z "$as_dir" && as_dir=.
1018   echo "PATH: $as_dir"
1019 done
1020
1021 } >&5
1022
1023 cat >&5 <<_ACEOF
1024
1025
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1029
1030 _ACEOF
1031
1032
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1044 do
1045   for ac_arg
1046   do
1047     case $ac_arg in
1048     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050     | -silent | --silent | --silen | --sile | --sil)
1051       continue ;;
1052     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054     esac
1055     case $ac_pass in
1056     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057     2)
1058       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059       if test $ac_must_keep_next = true; then
1060         ac_must_keep_next=false # Got value, back to normal.
1061       else
1062         case $ac_arg in
1063           *=* | --config-cache | -C | -disable-* | --disable-* \
1064           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066           | -with-* | --with-* | -without-* | --without-* | --x)
1067             case "$ac_configure_args0 " in
1068               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069             esac
1070             ;;
1071           -* ) ac_must_keep_next=true ;;
1072         esac
1073       fi
1074       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075       # Get rid of the leading space.
1076       ac_sep=" "
1077       ;;
1078     esac
1079   done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log.  We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090   # Save into config.log some information that might help in debugging.
1091   {
1092     echo
1093
1094     cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099     echo
1100     # The following way of writing the cache mishandles newlines in values,
1101 {
1102   (set) 2>&1 |
1103     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104     *ac_space=\ *)
1105       sed -n \
1106         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108       ;;
1109     *)
1110       sed -n \
1111         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112       ;;
1113     esac;
1114 }
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122     echo
1123     for ac_var in $ac_subst_vars
1124     do
1125       eval ac_val=$`echo $ac_var`
1126       echo "$ac_var='"'"'$ac_val'"'"'"
1127     done | sort
1128     echo
1129
1130     if test -n "$ac_subst_files"; then
1131       cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136       echo
1137       for ac_var in $ac_subst_files
1138       do
1139         eval ac_val=$`echo $ac_var`
1140         echo "$ac_var='"'"'$ac_val'"'"'"
1141       done | sort
1142       echo
1143     fi
1144
1145     if test -s confdefs.h; then
1146       cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151       echo
1152       sed "/^$/d" confdefs.h | sort
1153       echo
1154     fi
1155     test "$ac_signal" != 0 &&
1156       echo "$as_me: caught signal $ac_signal"
1157     echo "$as_me: exit $exit_status"
1158   } >&5
1159   rm -f core *.core &&
1160   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161     exit $exit_status
1162      ' 0
1163 for ac_signal in 1 2 13 15; do
1164   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1167
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1172
1173 # Predefined preprocessor variables.
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1198
1199
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203   if test "x$prefix" != xNONE; then
1204     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205   else
1206     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207   fi
1208 fi
1209 for ac_site_file in $CONFIG_SITE; do
1210   if test -r "$ac_site_file"; then
1211     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213     sed 's/^/| /' "$ac_site_file" >&5
1214     . "$ac_site_file"
1215   fi
1216 done
1217
1218 if test -r "$cache_file"; then
1219   # Some versions of bash will fail to source /dev/null (special
1220   # files actually), so we avoid doing that.
1221   if test -f "$cache_file"; then
1222     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224     case $cache_file in
1225       [\\/]* | ?:[\\/]* ) . $cache_file;;
1226       *)                      . ./$cache_file;;
1227     esac
1228   fi
1229 else
1230   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232   >$cache_file
1233 fi
1234
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241   eval ac_new_set=\$ac_env_${ac_var}_set
1242   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243   eval ac_new_val="\$ac_env_${ac_var}_value"
1244   case $ac_old_set,$ac_new_set in
1245     set,)
1246       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248       ac_cache_corrupted=: ;;
1249     ,set)
1250       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252       ac_cache_corrupted=: ;;
1253     ,);;
1254     *)
1255       if test "x$ac_old_val" != "x$ac_new_val"; then
1256         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1259 echo "$as_me:   former value:  $ac_old_val" >&2;}
1260         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1261 echo "$as_me:   current value: $ac_new_val" >&2;}
1262         ac_cache_corrupted=:
1263       fi;;
1264   esac
1265   # Pass precious variables to config.status.
1266   if test "$ac_new_set" = set; then
1267     case $ac_new_val in
1268     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270     *) ac_arg=$ac_var=$ac_new_val ;;
1271     esac
1272     case " $ac_configure_args " in
1273       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1274       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275     esac
1276   fi
1277 done
1278 if $ac_cache_corrupted; then
1279   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283    { (exit 1); exit 1; }; }
1284 fi
1285
1286 ac_ext=c
1287 ac_cpp='$CPP $CPPFLAGS'
1288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319           ac_config_headers="$ac_config_headers newlib.h:newlib.hin"
1320
1321
1322 ac_aux_dir=
1323 for ac_dir in .. $srcdir/..; do
1324   if test -f $ac_dir/install-sh; then
1325     ac_aux_dir=$ac_dir
1326     ac_install_sh="$ac_aux_dir/install-sh -c"
1327     break
1328   elif test -f $ac_dir/install.sh; then
1329     ac_aux_dir=$ac_dir
1330     ac_install_sh="$ac_aux_dir/install.sh -c"
1331     break
1332   elif test -f $ac_dir/shtool; then
1333     ac_aux_dir=$ac_dir
1334     ac_install_sh="$ac_aux_dir/shtool install -c"
1335     break
1336   fi
1337 done
1338 if test -z "$ac_aux_dir"; then
1339   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1341    { (exit 1); exit 1; }; }
1342 fi
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347
1348 # Check whether --enable-newlib-io-pos-args or --disable-newlib-io-pos-args was given.
1349 if test "${enable_newlib_io_pos_args+set}" = set; then
1350   enableval="$enable_newlib_io_pos_args"
1351   case "${enableval}" in
1352   yes) newlib_io_pos_args=yes ;;
1353   no)  newlib_io_pos_args=no ;;
1354   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-pos-args option" >&5
1355 echo "$as_me: error: bad value ${enableval} for newlib-io-pos-args option" >&2;}
1356    { (exit 1); exit 1; }; } ;;
1357  esac
1358 else
1359   newlib_io_pos_args=
1360 fi;
1361 # Check whether --enable-newlib-io-c99-formats or --disable-newlib-io-c99-formats was given.
1362 if test "${enable_newlib_io_c99_formats+set}" = set; then
1363   enableval="$enable_newlib_io_c99_formats"
1364   case "${enableval}" in
1365   yes) newlib_io_c99_formats=yes;;
1366   no)  newlib_io_c99_formats=no ;;
1367   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-c99-formats option" >&5
1368 echo "$as_me: error: bad value ${enableval} for newlib-io-c99-formats option" >&2;}
1369    { (exit 1); exit 1; }; } ;;
1370  esac
1371 else
1372   newlib_io_c99_formats=
1373 fi;
1374 # Check whether --enable-newlib-io-long-long or --disable-newlib-io-long-long was given.
1375 if test "${enable_newlib_io_long_long+set}" = set; then
1376   enableval="$enable_newlib_io_long_long"
1377   case "${enableval}" in
1378   yes) newlib_io_long_long=yes;;
1379   no)  newlib_io_long_long=no ;;
1380   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-long-long option" >&5
1381 echo "$as_me: error: bad value ${enableval} for newlib-io-long-long option" >&2;}
1382    { (exit 1); exit 1; }; } ;;
1383  esac
1384 else
1385   newlib_io_long_long=
1386 fi;
1387 # Check whether --enable-newlib-io-long-double or --disable-newlib-io-long-double was given.
1388 if test "${enable_newlib_io_long_double+set}" = set; then
1389   enableval="$enable_newlib_io_long_double"
1390   case "${enableval}" in
1391   yes) newlib_io_long_double=yes;;
1392   no)  newlib_io_long_double=no ;;
1393   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-long-double option" >&5
1394 echo "$as_me: error: bad value ${enableval} for newlib-io-long-double option" >&2;}
1395    { (exit 1); exit 1; }; } ;;
1396  esac
1397 else
1398   newlib_io_long_double=
1399 fi;
1400 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
1401 if test "${enable_newlib_mb+set}" = set; then
1402   enableval="$enable_newlib_mb"
1403   case "${enableval}" in
1404   yes) newlib_mb=yes;;
1405   no)  newlib_mb=no ;;
1406   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-mb option" >&5
1407 echo "$as_me: error: bad value ${enableval} for newlib-mb option" >&2;}
1408    { (exit 1); exit 1; }; } ;;
1409  esac
1410 else
1411   newlib_mb=
1412 fi;
1413 # Check whether --enable-newlib-iconv-encodings or --disable-newlib-iconv-encodings was given.
1414 if test "${enable_newlib_iconv_encodings+set}" = set; then
1415   enableval="$enable_newlib_iconv_encodings"
1416   if test x${enableval} = x; then
1417    { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" >&5
1418 echo "$as_me: error: bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" >&2;}
1419    { (exit 1); exit 1; }; }
1420  fi
1421  iconv_encodings=${enableval}
1422
1423 else
1424   iconv_encodings=
1425 fi;
1426 # Check whether --enable-newlib-iconv-from-encodings or --disable-newlib-iconv-from-encodings was given.
1427 if test "${enable_newlib_iconv_from_encodings+set}" = set; then
1428   enableval="$enable_newlib_iconv_from_encodings"
1429   if test x${enableval} = x; then
1430    { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" >&5
1431 echo "$as_me: error: bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" >&2;}
1432    { (exit 1); exit 1; }; }
1433  fi
1434  iconv_from_encodings=${enableval}
1435
1436 else
1437   iconv_from_encodings=
1438 fi;
1439 # Check whether --enable-newlib-iconv-to-encodings or --disable-newlib-iconv-to-encodings was given.
1440 if test "${enable_newlib_iconv_to_encodings+set}" = set; then
1441   enableval="$enable_newlib_iconv_to_encodings"
1442   if test x${enableval} = x; then
1443    { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" >&5
1444 echo "$as_me: error: bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" >&2;}
1445    { (exit 1); exit 1; }; }
1446  fi
1447  iconv_to_encodings=${enableval}
1448
1449 else
1450   iconv_to_encodings=
1451 fi;
1452 # Check whether --enable-newlib-iconv-external-ccs or --disable-newlib-iconv-external-ccs was given.
1453 if test "${enable_newlib_iconv_external_ccs+set}" = set; then
1454   enableval="$enable_newlib_iconv_external_ccs"
1455   if test "${newlib_iconv_external_ccs+set}" != set; then
1456    case "${enableval}" in
1457      yes) newlib_iconv_external_ccs=yes ;;
1458      no)  newlib_iconv_external_ccs=no ;;
1459      *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-external-ccs option" >&5
1460 echo "$as_me: error: bad value ${enableval} for newlib-iconv-external-ccs option" >&2;}
1461    { (exit 1); exit 1; }; } ;;
1462    esac
1463  fi
1464 else
1465   newlib_iconv_external_ccs=${newlib_iconv_external_ccs}
1466 fi;
1467 # Check whether --enable-newlib-atexit-dynamic-alloc or --disable-newlib-atexit-dynamic-alloc was given.
1468 if test "${enable_newlib_atexit_dynamic_alloc+set}" = set; then
1469   enableval="$enable_newlib_atexit_dynamic_alloc"
1470   if test "${newlib_atexit_dynamic_alloc+set}" != set; then
1471   case "${enableval}" in
1472     yes) newlib_atexit_dynamic_alloc=yes ;;
1473     no)  newlib_atexit_dynamic_alloc=no  ;;
1474     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-atexit-dynamic-alloc option" >&5
1475 echo "$as_me: error: bad value ${enableval} for newlib-atexit-dynamic-alloc option" >&2;}
1476    { (exit 1); exit 1; }; } ;;
1477   esac
1478  fi
1479 else
1480   newlib_atexit_dynamic_alloc=${newlib_atexit_dynamic_alloc}
1481 fi;
1482 # Check whether --enable-newlib-reent-small or --disable-newlib-reent-small was given.
1483 if test "${enable_newlib_reent_small+set}" = set; then
1484   enableval="$enable_newlib_reent_small"
1485   case "${enableval}" in
1486   yes) newlib_reent_small=yes;;
1487   no)  newlib_reent_small=no ;;
1488   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-reent-small option" >&5
1489 echo "$as_me: error: bad value ${enableval} for newlib-reent-small option" >&2;}
1490    { (exit 1); exit 1; }; } ;;
1491  esac
1492 else
1493   newlib_reent_small=
1494 fi;
1495
1496 # Make sure we can run config.sub.
1497 $ac_config_sub sun4 >/dev/null 2>&1 ||
1498   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1499 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1500    { (exit 1); exit 1; }; }
1501
1502 echo "$as_me:$LINENO: checking build system type" >&5
1503 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1504 if test "${ac_cv_build+set}" = set; then
1505   echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507   ac_cv_build_alias=$build_alias
1508 test -z "$ac_cv_build_alias" &&
1509   ac_cv_build_alias=`$ac_config_guess`
1510 test -z "$ac_cv_build_alias" &&
1511   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1512 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1513    { (exit 1); exit 1; }; }
1514 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1515   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1517    { (exit 1); exit 1; }; }
1518
1519 fi
1520 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1521 echo "${ECHO_T}$ac_cv_build" >&6
1522 build=$ac_cv_build
1523 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526
1527
1528 am__api_version="1.9"
1529 # Find a good install program.  We prefer a C program (faster),
1530 # so one script is as good as another.  But avoid the broken or
1531 # incompatible versions:
1532 # SysV /etc/install, /usr/sbin/install
1533 # SunOS /usr/etc/install
1534 # IRIX /sbin/install
1535 # AIX /bin/install
1536 # AmigaOS /C/install, which installs bootblocks on floppy discs
1537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1540 # OS/2's system install, which has a completely different semantic
1541 # ./install, which can be erroneously created by make from ./install.sh.
1542 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1543 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1544 if test -z "$INSTALL"; then
1545 if test "${ac_cv_path_install+set}" = set; then
1546   echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1550 do
1551   IFS=$as_save_IFS
1552   test -z "$as_dir" && as_dir=.
1553   # Account for people who put trailing slashes in PATH elements.
1554 case $as_dir/ in
1555   ./ | .// | /cC/* | \
1556   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1557   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1558   /usr/ucb/* ) ;;
1559   *)
1560     # OSF1 and SCO ODT 3.0 have their own names for install.
1561     # Don't use installbsd from OSF since it installs stuff as root
1562     # by default.
1563     for ac_prog in ginstall scoinst install; do
1564       for ac_exec_ext in '' $ac_executable_extensions; do
1565         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1566           if test $ac_prog = install &&
1567             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568             # AIX install.  It has an incompatible calling convention.
1569             :
1570           elif test $ac_prog = install &&
1571             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1572             # program-specific install script used by HP pwplus--don't use.
1573             :
1574           else
1575             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1576             break 3
1577           fi
1578         fi
1579       done
1580     done
1581     ;;
1582 esac
1583 done
1584
1585
1586 fi
1587   if test "${ac_cv_path_install+set}" = set; then
1588     INSTALL=$ac_cv_path_install
1589   else
1590     # As a last resort, use the slow shell script.  We don't cache a
1591     # path for INSTALL within a source directory, because that will
1592     # break other packages using the cache if that directory is
1593     # removed, or if the path is relative.
1594     INSTALL=$ac_install_sh
1595   fi
1596 fi
1597 echo "$as_me:$LINENO: result: $INSTALL" >&5
1598 echo "${ECHO_T}$INSTALL" >&6
1599
1600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1601 # It thinks the first close brace ends the variable substitution.
1602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1603
1604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1605
1606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1607
1608 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1609 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1610 # Just in case
1611 sleep 1
1612 echo timestamp > conftest.file
1613 # Do `set' in a subshell so we don't clobber the current shell's
1614 # arguments.  Must try -L first in case configure is actually a
1615 # symlink; some systems play weird games with the mod time of symlinks
1616 # (eg FreeBSD returns the mod time of the symlink's containing
1617 # directory).
1618 if (
1619    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1620    if test "$*" = "X"; then
1621       # -L didn't work.
1622       set X `ls -t $srcdir/configure conftest.file`
1623    fi
1624    rm -f conftest.file
1625    if test "$*" != "X $srcdir/configure conftest.file" \
1626       && test "$*" != "X conftest.file $srcdir/configure"; then
1627
1628       # If neither matched, then we have a broken ls.  This can happen
1629       # if, for instance, CONFIG_SHELL is bash and it inherits a
1630       # broken ls alias from the environment.  This has actually
1631       # happened.  Such a system could not be considered "sane".
1632       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1633 alias in your environment" >&5
1634 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1635 alias in your environment" >&2;}
1636    { (exit 1); exit 1; }; }
1637    fi
1638
1639    test "$2" = conftest.file
1640    )
1641 then
1642    # Ok.
1643    :
1644 else
1645    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1646 Check your system clock" >&5
1647 echo "$as_me: error: newly created file is older than distributed files!
1648 Check your system clock" >&2;}
1649    { (exit 1); exit 1; }; }
1650 fi
1651 echo "$as_me:$LINENO: result: yes" >&5
1652 echo "${ECHO_T}yes" >&6
1653 test "$program_prefix" != NONE &&
1654   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1655 # Use a double $ so make ignores it.
1656 test "$program_suffix" != NONE &&
1657   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1658 # Double any \ or $.  echo might interpret backslashes.
1659 # By default was `s,x,x', remove it if useless.
1660 cat <<\_ACEOF >conftest.sed
1661 s/[\\$]/&&/g;s/;s,x,x,$//
1662 _ACEOF
1663 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1664 rm conftest.sed
1665
1666 # expand $ac_aux_dir to an absolute path
1667 am_aux_dir=`cd $ac_aux_dir && pwd`
1668
1669 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1670 # Use eval to expand $SHELL
1671 if eval "$MISSING --run true"; then
1672   am_missing_run="$MISSING --run "
1673 else
1674   am_missing_run=
1675   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1676 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1677 fi
1678
1679 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1680   # We used to keeping the `.' as first argument, in order to
1681   # allow $(mkdir_p) to be used without argument.  As in
1682   #   $(mkdir_p) $(somedir)
1683   # where $(somedir) is conditionally defined.  However this is wrong
1684   # for two reasons:
1685   #  1. if the package is installed by a user who cannot write `.'
1686   #     make install will fail,
1687   #  2. the above comment should most certainly read
1688   #     $(mkdir_p) $(DESTDIR)$(somedir)
1689   #     so it does not work when $(somedir) is undefined and
1690   #     $(DESTDIR) is not.
1691   #  To support the latter case, we have to write
1692   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1693   #  so the `.' trick is pointless.
1694   mkdir_p='mkdir -p --'
1695 else
1696   # On NextStep and OpenStep, the `mkdir' command does not
1697   # recognize any option.  It will interpret all options as
1698   # directories to create, and then abort because `.' already
1699   # exists.
1700   for d in ./-p ./--version;
1701   do
1702     test -d $d && rmdir $d
1703   done
1704   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1705   if test -f "$ac_aux_dir/mkinstalldirs"; then
1706     mkdir_p='$(mkinstalldirs)'
1707   else
1708     mkdir_p='$(install_sh) -d'
1709   fi
1710 fi
1711
1712 for ac_prog in gawk mawk nawk awk
1713 do
1714   # Extract the first word of "$ac_prog", so it can be a program name with args.
1715 set dummy $ac_prog; ac_word=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_AWK+set}" = set; then
1719   echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721   if test -n "$AWK"; then
1722   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1723 else
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1726 do
1727   IFS=$as_save_IFS
1728   test -z "$as_dir" && as_dir=.
1729   for ac_exec_ext in '' $ac_executable_extensions; do
1730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731     ac_cv_prog_AWK="$ac_prog"
1732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733     break 2
1734   fi
1735 done
1736 done
1737
1738 fi
1739 fi
1740 AWK=$ac_cv_prog_AWK
1741 if test -n "$AWK"; then
1742   echo "$as_me:$LINENO: result: $AWK" >&5
1743 echo "${ECHO_T}$AWK" >&6
1744 else
1745   echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1747 fi
1748
1749   test -n "$AWK" && break
1750 done
1751
1752 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1753 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1754 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1755 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1756   echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758   cat >conftest.make <<\_ACEOF
1759 all:
1760         @echo 'ac_maketemp="$(MAKE)"'
1761 _ACEOF
1762 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1763 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1764 if test -n "$ac_maketemp"; then
1765   eval ac_cv_prog_make_${ac_make}_set=yes
1766 else
1767   eval ac_cv_prog_make_${ac_make}_set=no
1768 fi
1769 rm -f conftest.make
1770 fi
1771 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1772   echo "$as_me:$LINENO: result: yes" >&5
1773 echo "${ECHO_T}yes" >&6
1774   SET_MAKE=
1775 else
1776   echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778   SET_MAKE="MAKE=${MAKE-make}"
1779 fi
1780
1781 rm -rf .tst 2>/dev/null
1782 mkdir .tst 2>/dev/null
1783 if test -d .tst; then
1784   am__leading_dot=.
1785 else
1786   am__leading_dot=_
1787 fi
1788 rmdir .tst 2>/dev/null
1789
1790 DEPDIR="${am__leading_dot}deps"
1791
1792           ac_config_commands="$ac_config_commands depfiles"
1793
1794
1795 am_make=${MAKE-make}
1796 cat > confinc << 'END'
1797 am__doit:
1798         @echo done
1799 .PHONY: am__doit
1800 END
1801 # If we don't find an include directive, just comment out the code.
1802 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1803 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1804 am__include="#"
1805 am__quote=
1806 _am_result=none
1807 # First try GNU make style include.
1808 echo "include confinc" > confmf
1809 # We grep out `Entering directory' and `Leaving directory'
1810 # messages which can occur if `w' ends up in MAKEFLAGS.
1811 # In particular we don't look at `^make:' because GNU make might
1812 # be invoked under some other name (usually "gmake"), in which
1813 # case it prints its new name instead of `make'.
1814 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1815    am__include=include
1816    am__quote=
1817    _am_result=GNU
1818 fi
1819 # Now try BSD make style include.
1820 if test "$am__include" = "#"; then
1821    echo '.include "confinc"' > confmf
1822    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1823       am__include=.include
1824       am__quote="\""
1825       _am_result=BSD
1826    fi
1827 fi
1828
1829
1830 echo "$as_me:$LINENO: result: $_am_result" >&5
1831 echo "${ECHO_T}$_am_result" >&6
1832 rm -f confinc confmf
1833
1834 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1835 if test "${enable_dependency_tracking+set}" = set; then
1836   enableval="$enable_dependency_tracking"
1837
1838 fi;
1839 if test "x$enable_dependency_tracking" != xno; then
1840   am_depcomp="$ac_aux_dir/depcomp"
1841   AMDEPBACKSLASH='\'
1842 fi
1843
1844
1845 if test "x$enable_dependency_tracking" != xno; then
1846   AMDEP_TRUE=
1847   AMDEP_FALSE='#'
1848 else
1849   AMDEP_TRUE='#'
1850   AMDEP_FALSE=
1851 fi
1852
1853
1854
1855
1856 # Check whether --enable-multilib or --disable-multilib was given.
1857 if test "${enable_multilib+set}" = set; then
1858   enableval="$enable_multilib"
1859   case "${enableval}" in
1860   yes) multilib=yes ;;
1861   no)  multilib=no ;;
1862   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1863 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1864    { (exit 1); exit 1; }; } ;;
1865  esac
1866 else
1867   multilib=yes
1868 fi;
1869 # Check whether --enable-target-optspace or --disable-target-optspace was given.
1870 if test "${enable_target_optspace+set}" = set; then
1871   enableval="$enable_target_optspace"
1872   case "${enableval}" in
1873   yes) target_optspace=yes ;;
1874   no)  target_optspace=no ;;
1875   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
1876 echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
1877    { (exit 1); exit 1; }; } ;;
1878  esac
1879 else
1880   target_optspace=
1881 fi;
1882 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1883 if test "${enable_malloc_debugging+set}" = set; then
1884   enableval="$enable_malloc_debugging"
1885   case "${enableval}" in
1886   yes) malloc_debugging=yes ;;
1887   no)  malloc_debugging=no ;;
1888   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
1889 echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
1890    { (exit 1); exit 1; }; } ;;
1891  esac
1892 else
1893   malloc_debugging=
1894 fi;
1895 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1896 if test "${enable_newlib_multithread+set}" = set; then
1897   enableval="$enable_newlib_multithread"
1898   case "${enableval}" in
1899   yes) newlib_multithread=yes ;;
1900   no)  newlib_multithread=no ;;
1901   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
1902 echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
1903    { (exit 1); exit 1; }; } ;;
1904  esac
1905 else
1906   newlib_multithread=yes
1907 fi;
1908 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1909 if test "${enable_newlib_iconv+set}" = set; then
1910   enableval="$enable_newlib_iconv"
1911   if test "${newlib_iconv+set}" != set; then
1912    case "${enableval}" in
1913      yes) newlib_iconv=yes ;;
1914      no)  newlib_iconv=no ;;
1915      *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
1916 echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
1917    { (exit 1); exit 1; }; } ;;
1918    esac
1919  fi
1920 else
1921   newlib_iconv=${newlib_iconv}
1922 fi;
1923 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1924 if test "${enable_newlib_elix_level+set}" = set; then
1925   enableval="$enable_newlib_elix_level"
1926   case "${enableval}" in
1927   0)   newlib_elix_level=0 ;;
1928   1)   newlib_elix_level=1 ;;
1929   2)   newlib_elix_level=2 ;;
1930   3)   newlib_elix_level=3 ;;
1931   4)   newlib_elix_level=4 ;;
1932   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
1933 echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
1934    { (exit 1); exit 1; }; } ;;
1935  esac
1936 else
1937   newlib_elix_level=0
1938 fi;
1939 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1940 if test "${enable_newlib_io_float+set}" = set; then
1941   enableval="$enable_newlib_io_float"
1942   case "${enableval}" in
1943   yes) newlib_io_float=yes ;;
1944   no)  newlib_io_float=no ;;
1945   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
1946 echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
1947    { (exit 1); exit 1; }; } ;;
1948  esac
1949 else
1950   newlib_io_float=yes
1951 fi;
1952 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
1953 if test "${enable_newlib_supplied_syscalls+set}" = set; then
1954   enableval="$enable_newlib_supplied_syscalls"
1955   case "${enableval}" in
1956   yes) newlib_may_supply_syscalls=yes ;;
1957   no)  newlib_may_supply_syscalls=no ;;
1958   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
1959 echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
1960    { (exit 1); exit 1; }; } ;;
1961  esac
1962 else
1963   newlib_may_supply_syscalls=yes
1964 fi;
1965
1966
1967 if test x${newlib_may_supply_syscalls} = xyes; then
1968   MAY_SUPPLY_SYSCALLS_TRUE=
1969   MAY_SUPPLY_SYSCALLS_FALSE='#'
1970 else
1971   MAY_SUPPLY_SYSCALLS_TRUE='#'
1972   MAY_SUPPLY_SYSCALLS_FALSE=
1973 fi
1974
1975
1976
1977 test -z "${with_target_subdir}" && with_target_subdir=.
1978
1979 if test "${srcdir}" = "."; then
1980   if test "${with_target_subdir}" != "."; then
1981     newlib_basedir="${srcdir}/${with_multisrctop}../."
1982   else
1983     newlib_basedir="${srcdir}/${with_multisrctop}."
1984   fi
1985 else
1986   newlib_basedir="${srcdir}/."
1987 fi
1988
1989
1990 echo "$as_me:$LINENO: checking host system type" >&5
1991 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1992 if test "${ac_cv_host+set}" = set; then
1993   echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995   ac_cv_host_alias=$host_alias
1996 test -z "$ac_cv_host_alias" &&
1997   ac_cv_host_alias=$ac_cv_build_alias
1998 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1999   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2000 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2001    { (exit 1); exit 1; }; }
2002
2003 fi
2004 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2005 echo "${ECHO_T}$ac_cv_host" >&6
2006 host=$ac_cv_host
2007 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2008 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2009 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2010
2011
2012
2013 # test to see if srcdir already configured
2014 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2015    test -f $srcdir/config.status; then
2016   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2017 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2018    { (exit 1); exit 1; }; }
2019 fi
2020
2021 # test whether we have cygpath
2022 if test -z "$CYGPATH_W"; then
2023   if (cygpath --version) >/dev/null 2>/dev/null; then
2024     CYGPATH_W='cygpath -w'
2025   else
2026     CYGPATH_W=echo
2027   fi
2028 fi
2029
2030
2031 # Define the identity of the package.
2032  PACKAGE='newlib'
2033  VERSION='1.15.0'
2034
2035
2036 # Some tools Automake needs.
2037
2038 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2039
2040
2041 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2042
2043
2044 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2045
2046
2047 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2048
2049
2050 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2051
2052 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2053
2054 # Installed binaries are usually stripped using `strip' when the user
2055 # run `make install-strip'.  However `strip' might not be the right
2056 # tool to use in cross-compilation environments, therefore Automake
2057 # will honor the `STRIP' environment variable to overrule this program.
2058 if test "$cross_compiling" != no; then
2059   if test -n "$ac_tool_prefix"; then
2060   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2061 set dummy ${ac_tool_prefix}strip; ac_word=$2
2062 echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2064 if test "${ac_cv_prog_STRIP+set}" = set; then
2065   echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067   if test -n "$STRIP"; then
2068   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2069 else
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2072 do
2073   IFS=$as_save_IFS
2074   test -z "$as_dir" && as_dir=.
2075   for ac_exec_ext in '' $ac_executable_extensions; do
2076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079     break 2
2080   fi
2081 done
2082 done
2083
2084 fi
2085 fi
2086 STRIP=$ac_cv_prog_STRIP
2087 if test -n "$STRIP"; then
2088   echo "$as_me:$LINENO: result: $STRIP" >&5
2089 echo "${ECHO_T}$STRIP" >&6
2090 else
2091   echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6
2093 fi
2094
2095 fi
2096 if test -z "$ac_cv_prog_STRIP"; then
2097   ac_ct_STRIP=$STRIP
2098   # Extract the first word of "strip", so it can be a program name with args.
2099 set dummy strip; ac_word=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2103   echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105   if test -n "$ac_ct_STRIP"; then
2106   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2107 else
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 for as_dir in $PATH
2110 do
2111   IFS=$as_save_IFS
2112   test -z "$as_dir" && as_dir=.
2113   for ac_exec_ext in '' $ac_executable_extensions; do
2114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115     ac_cv_prog_ac_ct_STRIP="strip"
2116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117     break 2
2118   fi
2119 done
2120 done
2121
2122   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2123 fi
2124 fi
2125 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2126 if test -n "$ac_ct_STRIP"; then
2127   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2128 echo "${ECHO_T}$ac_ct_STRIP" >&6
2129 else
2130   echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2132 fi
2133
2134   STRIP=$ac_ct_STRIP
2135 else
2136   STRIP="$ac_cv_prog_STRIP"
2137 fi
2138
2139 fi
2140 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2141
2142 # We need awk for the "check" target.  The system "awk" is bad on
2143 # some platforms.
2144 # Always define AMTAR for backward compatibility.
2145
2146 AMTAR=${AMTAR-"${am_missing_run}tar"}
2147
2148 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2149
2150
2151
2152
2153
2154
2155 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2156 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2157 # are probably using a cross compiler, which will not be able to fully
2158 # link an executable.  This should really be fixed in autoconf
2159 # itself.
2160
2161
2162
2163
2164
2165
2166
2167 # Extract the first word of "gcc", so it can be a program name with args.
2168 set dummy gcc; ac_word=$2
2169 echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   if test -n "$CC"; then
2175   ac_cv_prog_CC="$CC" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184     ac_cv_prog_CC="gcc"
2185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186     break 2
2187   fi
2188 done
2189 done
2190
2191 fi
2192 fi
2193 CC=$ac_cv_prog_CC
2194 if test -n "$CC"; then
2195   echo "$as_me:$LINENO: result: $CC" >&5
2196 echo "${ECHO_T}$CC" >&6
2197 else
2198   echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2200 fi
2201
2202
2203 depcc="$CC"   am_compiler_list=
2204
2205 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2206 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2207 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2208   echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2211   # We make a subdir and do the tests there.  Otherwise we can end up
2212   # making bogus files that we don't know about and never remove.  For
2213   # instance it was reported that on HP-UX the gcc test will end up
2214   # making a dummy file named `D' -- because `-MD' means `put the output
2215   # in D'.
2216   mkdir conftest.dir
2217   # Copy depcomp to subdir because otherwise we won't find it if we're
2218   # using a relative directory.
2219   cp "$am_depcomp" conftest.dir
2220   cd conftest.dir
2221   # We will build objects and dependencies in a subdirectory because
2222   # it helps to detect inapplicable dependency modes.  For instance
2223   # both Tru64's cc and ICC support -MD to output dependencies as a
2224   # side effect of compilation, but ICC will put the dependencies in
2225   # the current directory while Tru64 will put them in the object
2226   # directory.
2227   mkdir sub
2228
2229   am_cv_CC_dependencies_compiler_type=none
2230   if test "$am_compiler_list" = ""; then
2231      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2232   fi
2233   for depmode in $am_compiler_list; do
2234     # Setup a source with many dependencies, because some compilers
2235     # like to wrap large dependency lists on column 80 (with \), and
2236     # we should not choose a depcomp mode which is confused by this.
2237     #
2238     # We need to recreate these files for each test, as the compiler may
2239     # overwrite some of them when testing with obscure command lines.
2240     # This happens at least with the AIX C compiler.
2241     : > sub/conftest.c
2242     for i in 1 2 3 4 5 6; do
2243       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2244       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2245       # Solaris 8's {/usr,}/bin/sh.
2246       touch sub/conftst$i.h
2247     done
2248     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2249
2250     case $depmode in
2251     nosideeffect)
2252       # after this tag, mechanisms are not by side-effect, so they'll
2253       # only be used when explicitly requested
2254       if test "x$enable_dependency_tracking" = xyes; then
2255         continue
2256       else
2257         break
2258       fi
2259       ;;
2260     none) break ;;
2261     esac
2262     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2263     # mode.  It turns out that the SunPro C++ compiler does not properly
2264     # handle `-M -o', and we need to detect this.
2265     if depmode=$depmode \
2266        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2267        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2268        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2269          >/dev/null 2>conftest.err &&
2270        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2271        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2272        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2273       # icc doesn't choke on unknown options, it will just issue warnings
2274       # or remarks (even with -Werror).  So we grep stderr for any message
2275       # that says an option was ignored or not supported.
2276       # When given -MP, icc 7.0 and 7.1 complain thusly:
2277       #   icc: Command line warning: ignoring option '-M'; no argument required
2278       # The diagnosis changed in icc 8.0:
2279       #   icc: Command line remark: option '-MP' not supported
2280       if (grep 'ignoring option' conftest.err ||
2281           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2282         am_cv_CC_dependencies_compiler_type=$depmode
2283         break
2284       fi
2285     fi
2286   done
2287
2288   cd ..
2289   rm -rf conftest.dir
2290 else
2291   am_cv_CC_dependencies_compiler_type=none
2292 fi
2293
2294 fi
2295 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2296 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2297 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2298
2299
2300
2301 if
2302   test "x$enable_dependency_tracking" != xno \
2303   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2304   am__fastdepCC_TRUE=
2305   am__fastdepCC_FALSE='#'
2306 else
2307   am__fastdepCC_TRUE='#'
2308   am__fastdepCC_FALSE=
2309 fi
2310
2311
2312 if test -z "$CC"; then
2313   # Extract the first word of "cc", so it can be a program name with args.
2314 set dummy cc; ac_word=$2
2315 echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317 if test "${ac_cv_prog_CC+set}" = set; then
2318   echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320   if test -n "$CC"; then
2321   ac_cv_prog_CC="$CC" # Let the user override the test.
2322 else
2323   ac_prog_rejected=no
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2326 do
2327   IFS=$as_save_IFS
2328   test -z "$as_dir" && as_dir=.
2329   for ac_exec_ext in '' $ac_executable_extensions; do
2330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2331     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2332        ac_prog_rejected=yes
2333        continue
2334      fi
2335     ac_cv_prog_CC="cc"
2336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337     break 2
2338   fi
2339 done
2340 done
2341
2342 if test $ac_prog_rejected = yes; then
2343   # We found a bogon in the path, so make sure we never use it.
2344   set dummy $ac_cv_prog_CC
2345   shift
2346   if test $# != 0; then
2347     # We chose a different compiler from the bogus one.
2348     # However, it has the same basename, so the bogon will be chosen
2349     # first if we set CC to just the basename; use the full file name.
2350     shift
2351     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2352   fi
2353 fi
2354 fi
2355 fi
2356 CC=$ac_cv_prog_CC
2357 if test -n "$CC"; then
2358   echo "$as_me:$LINENO: result: $CC" >&5
2359 echo "${ECHO_T}$CC" >&6
2360 else
2361   echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2363 fi
2364
2365   test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2366 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2367    { (exit 1); exit 1; }; }
2368 fi
2369
2370 echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2371 echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2372 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2373   echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375   cat > conftest.c <<EOF
2376 #ifdef __GNUC__
2377   yes;
2378 #endif
2379 EOF
2380 if { ac_try='${CC-cc} -E conftest.c'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2386   ac_cv_c_compiler_gnu=yes
2387 else
2388   ac_cv_c_compiler_gnu=no
2389 fi
2390 fi
2391 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2392 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2393
2394 if test $ac_cv_c_compiler_gnu = yes; then
2395   GCC=yes
2396   ac_test_CFLAGS="${CFLAGS+set}"
2397   ac_save_CFLAGS="$CFLAGS"
2398   CFLAGS=
2399   ac_test_CFLAGS=${CFLAGS+set}
2400 ac_save_CFLAGS=$CFLAGS
2401 CFLAGS="-g"
2402 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2403 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_g+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h.  */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h.  */
2413
2414 int
2415 main ()
2416 {
2417
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424   (eval $ac_compile) 2>conftest.er1
2425   ac_status=$?
2426   grep -v '^ *+' conftest.er1 >conftest.err
2427   rm -f conftest.er1
2428   cat conftest.err >&5
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); } &&
2431          { ac_try='test -z "$ac_c_werror_flag"
2432                          || test ! -s conftest.err'
2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434   (eval $ac_try) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }; } &&
2438          { ac_try='test -s conftest.$ac_objext'
2439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440   (eval $ac_try) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; }; then
2444   ac_cv_prog_cc_g=yes
2445 else
2446   echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 ac_cv_prog_cc_g=no
2450 fi
2451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2452 fi
2453 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2454 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2455 if test "$ac_test_CFLAGS" = set; then
2456   CFLAGS=$ac_save_CFLAGS
2457 elif test $ac_cv_prog_cc_g = yes; then
2458   if test "$GCC" = yes; then
2459     CFLAGS="-g -O2"
2460   else
2461     CFLAGS="-g"
2462   fi
2463 else
2464   if test "$GCC" = yes; then
2465     CFLAGS="-O2"
2466   else
2467     CFLAGS=
2468   fi
2469 fi
2470   if test "$ac_test_CFLAGS" = set; then
2471     CFLAGS="$ac_save_CFLAGS"
2472   elif test $ac_cv_prog_cc_g = yes; then
2473     CFLAGS="-g -O2"
2474   else
2475     CFLAGS="-O2"
2476   fi
2477 else
2478   GCC=
2479   test "${CFLAGS+set}" = set || CFLAGS="-g"
2480 fi
2481
2482
2483 if test -n "$ac_tool_prefix"; then
2484   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2485 set dummy ${ac_tool_prefix}as; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_AS+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   if test -n "$AS"; then
2492   ac_cv_prog_AS="$AS" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499   for ac_exec_ext in '' $ac_executable_extensions; do
2500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501     ac_cv_prog_AS="${ac_tool_prefix}as"
2502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503     break 2
2504   fi
2505 done
2506 done
2507
2508 fi
2509 fi
2510 AS=$ac_cv_prog_AS
2511 if test -n "$AS"; then
2512   echo "$as_me:$LINENO: result: $AS" >&5
2513 echo "${ECHO_T}$AS" >&6
2514 else
2515   echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2517 fi
2518
2519 fi
2520 if test -z "$ac_cv_prog_AS"; then
2521   ac_ct_AS=$AS
2522   # Extract the first word of "as", so it can be a program name with args.
2523 set dummy as; ac_word=$2
2524 echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2527   echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529   if test -n "$ac_ct_AS"; then
2530   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535   IFS=$as_save_IFS
2536   test -z "$as_dir" && as_dir=.
2537   for ac_exec_ext in '' $ac_executable_extensions; do
2538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539     ac_cv_prog_ac_ct_AS="as"
2540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541     break 2
2542   fi
2543 done
2544 done
2545
2546 fi
2547 fi
2548 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2549 if test -n "$ac_ct_AS"; then
2550   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2551 echo "${ECHO_T}$ac_ct_AS" >&6
2552 else
2553   echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6
2555 fi
2556
2557   AS=$ac_ct_AS
2558 else
2559   AS="$ac_cv_prog_AS"
2560 fi
2561
2562 if test -n "$ac_tool_prefix"; then
2563   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2564 set dummy ${ac_tool_prefix}ar; ac_word=$2
2565 echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2567 if test "${ac_cv_prog_AR+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   if test -n "$AR"; then
2571   ac_cv_prog_AR="$AR" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576   IFS=$as_save_IFS
2577   test -z "$as_dir" && as_dir=.
2578   for ac_exec_ext in '' $ac_executable_extensions; do
2579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580     ac_cv_prog_AR="${ac_tool_prefix}ar"
2581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582     break 2
2583   fi
2584 done
2585 done
2586
2587 fi
2588 fi
2589 AR=$ac_cv_prog_AR
2590 if test -n "$AR"; then
2591   echo "$as_me:$LINENO: result: $AR" >&5
2592 echo "${ECHO_T}$AR" >&6
2593 else
2594   echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6
2596 fi
2597
2598 fi
2599 if test -z "$ac_cv_prog_AR"; then
2600   ac_ct_AR=$AR
2601   # Extract the first word of "ar", so it can be a program name with args.
2602 set dummy ar; ac_word=$2
2603 echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2605 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2606   echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608   if test -n "$ac_ct_AR"; then
2609   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616   for ac_exec_ext in '' $ac_executable_extensions; do
2617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618     ac_cv_prog_ac_ct_AR="ar"
2619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620     break 2
2621   fi
2622 done
2623 done
2624
2625 fi
2626 fi
2627 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2628 if test -n "$ac_ct_AR"; then
2629   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2630 echo "${ECHO_T}$ac_ct_AR" >&6
2631 else
2632   echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6
2634 fi
2635
2636   AR=$ac_ct_AR
2637 else
2638   AR="$ac_cv_prog_AR"
2639 fi
2640
2641 if test -n "$ac_tool_prefix"; then
2642   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2643 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2644 echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2646 if test "${ac_cv_prog_RANLIB+set}" = set; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649   if test -n "$RANLIB"; then
2650   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655   IFS=$as_save_IFS
2656   test -z "$as_dir" && as_dir=.
2657   for ac_exec_ext in '' $ac_executable_extensions; do
2658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661     break 2
2662   fi
2663 done
2664 done
2665
2666 fi
2667 fi
2668 RANLIB=$ac_cv_prog_RANLIB
2669 if test -n "$RANLIB"; then
2670   echo "$as_me:$LINENO: result: $RANLIB" >&5
2671 echo "${ECHO_T}$RANLIB" >&6
2672 else
2673   echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6
2675 fi
2676
2677 fi
2678 if test -z "$ac_cv_prog_RANLIB"; then
2679   ac_ct_RANLIB=$RANLIB
2680   # Extract the first word of "ranlib", so it can be a program name with args.
2681 set dummy ranlib; ac_word=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   if test -n "$ac_ct_RANLIB"; then
2688   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695   for ac_exec_ext in '' $ac_executable_extensions; do
2696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697     ac_cv_prog_ac_ct_RANLIB="ranlib"
2698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699     break 2
2700   fi
2701 done
2702 done
2703
2704   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2705 fi
2706 fi
2707 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2708 if test -n "$ac_ct_RANLIB"; then
2709   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2710 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2711 else
2712   echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6
2714 fi
2715
2716   RANLIB=$ac_ct_RANLIB
2717 else
2718   RANLIB="$ac_cv_prog_RANLIB"
2719 fi
2720
2721 if test -n "$ac_tool_prefix"; then
2722   # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}readelf; ac_word=$2
2724 echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2726 if test "${ac_cv_prog_READELF+set}" = set; then
2727   echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729   if test -n "$READELF"; then
2730   ac_cv_prog_READELF="$READELF" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737   for ac_exec_ext in '' $ac_executable_extensions; do
2738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739     ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741     break 2
2742   fi
2743 done
2744 done
2745
2746 fi
2747 fi
2748 READELF=$ac_cv_prog_READELF
2749 if test -n "$READELF"; then
2750   echo "$as_me:$LINENO: result: $READELF" >&5
2751 echo "${ECHO_T}$READELF" >&6
2752 else
2753   echo "$as_me:$LINENO: result: no" >&5
2754 echo "${ECHO_T}no" >&6
2755 fi
2756
2757 fi
2758 if test -z "$ac_cv_prog_READELF"; then
2759   ac_ct_READELF=$READELF
2760   # Extract the first word of "readelf", so it can be a program name with args.
2761 set dummy readelf; ac_word=$2
2762 echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2764 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2765   echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767   if test -n "$ac_ct_READELF"; then
2768   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773   IFS=$as_save_IFS
2774   test -z "$as_dir" && as_dir=.
2775   for ac_exec_ext in '' $ac_executable_extensions; do
2776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777     ac_cv_prog_ac_ct_READELF="readelf"
2778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779     break 2
2780   fi
2781 done
2782 done
2783
2784   test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2785 fi
2786 fi
2787 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2788 if test -n "$ac_ct_READELF"; then
2789   echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2790 echo "${ECHO_T}$ac_ct_READELF" >&6
2791 else
2792   echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2794 fi
2795
2796   READELF=$ac_ct_READELF
2797 else
2798   READELF="$ac_cv_prog_READELF"
2799 fi
2800
2801
2802 # Find a good install program.  We prefer a C program (faster),
2803 # so one script is as good as another.  But avoid the broken or
2804 # incompatible versions:
2805 # SysV /etc/install, /usr/sbin/install
2806 # SunOS /usr/etc/install
2807 # IRIX /sbin/install
2808 # AIX /bin/install
2809 # AmigaOS /C/install, which installs bootblocks on floppy discs
2810 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2811 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2812 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2813 # OS/2's system install, which has a completely different semantic
2814 # ./install, which can be erroneously created by make from ./install.sh.
2815 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2816 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2817 if test -z "$INSTALL"; then
2818 if test "${ac_cv_path_install+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826   # Account for people who put trailing slashes in PATH elements.
2827 case $as_dir/ in
2828   ./ | .// | /cC/* | \
2829   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2830   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2831   /usr/ucb/* ) ;;
2832   *)
2833     # OSF1 and SCO ODT 3.0 have their own names for install.
2834     # Don't use installbsd from OSF since it installs stuff as root
2835     # by default.
2836     for ac_prog in ginstall scoinst install; do
2837       for ac_exec_ext in '' $ac_executable_extensions; do
2838         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2839           if test $ac_prog = install &&
2840             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2841             # AIX install.  It has an incompatible calling convention.
2842             :
2843           elif test $ac_prog = install &&
2844             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2845             # program-specific install script used by HP pwplus--don't use.
2846             :
2847           else
2848             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2849             break 3
2850           fi
2851         fi
2852       done
2853     done
2854     ;;
2855 esac
2856 done
2857
2858
2859 fi
2860   if test "${ac_cv_path_install+set}" = set; then
2861     INSTALL=$ac_cv_path_install
2862   else
2863     # As a last resort, use the slow shell script.  We don't cache a
2864     # path for INSTALL within a source directory, because that will
2865     # break other packages using the cache if that directory is
2866     # removed, or if the path is relative.
2867     INSTALL=$ac_install_sh
2868   fi
2869 fi
2870 echo "$as_me:$LINENO: result: $INSTALL" >&5
2871 echo "${ECHO_T}$INSTALL" >&6
2872
2873 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2874 # It thinks the first close brace ends the variable substitution.
2875 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2876
2877 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2878
2879 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2880
2881
2882 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
2883 ac_given_INSTALL=$INSTALL
2884
2885 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2886 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2887     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2888 if test "${enable_maintainer_mode+set}" = set; then
2889   enableval="$enable_maintainer_mode"
2890   USE_MAINTAINER_MODE=$enableval
2891 else
2892   USE_MAINTAINER_MODE=no
2893 fi;
2894   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2895 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2896
2897
2898 if test $USE_MAINTAINER_MODE = yes; then
2899   MAINTAINER_MODE_TRUE=
2900   MAINTAINER_MODE_FALSE='#'
2901 else
2902   MAINTAINER_MODE_TRUE='#'
2903   MAINTAINER_MODE_FALSE=
2904 fi
2905
2906   MAINT=$MAINTAINER_MODE_TRUE
2907
2908
2909 # By default we simply use the C compiler to build assembly code.
2910
2911 test "${CCAS+set}" = set || CCAS=$CC
2912 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2913
2914
2915
2916
2917 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2918 # at least currently, we never actually build a program, so we never
2919 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2920 # fails, because we are probably configuring with a cross compiler
2921 # which can't create executables.  So we include AC_EXEEXT to keep
2922 # automake happy, but we don't execute it, since we don't care about
2923 # the result.
2924 if false; then
2925
2926   dummy_var=1
2927 fi
2928
2929 . ${newlib_basedir}/configure.host
2930
2931 newlib_cflags="${newlib_cflags} -fno-builtin"
2932
2933 NEWLIB_CFLAGS=${newlib_cflags}
2934
2935
2936 LDFLAGS=${ldflags}
2937
2938
2939
2940
2941 if test x${newlib_elix_level} = x0; then
2942   ELIX_LEVEL_0_TRUE=
2943   ELIX_LEVEL_0_FALSE='#'
2944 else
2945   ELIX_LEVEL_0_TRUE='#'
2946   ELIX_LEVEL_0_FALSE=
2947 fi
2948
2949
2950
2951 if test x${newlib_elix_level} = x1; then
2952   ELIX_LEVEL_1_TRUE=
2953   ELIX_LEVEL_1_FALSE='#'
2954 else
2955   ELIX_LEVEL_1_TRUE='#'
2956   ELIX_LEVEL_1_FALSE=
2957 fi
2958
2959
2960
2961 if test x${newlib_elix_level} = x2; then
2962   ELIX_LEVEL_2_TRUE=
2963   ELIX_LEVEL_2_FALSE='#'
2964 else
2965   ELIX_LEVEL_2_TRUE='#'
2966   ELIX_LEVEL_2_FALSE=
2967 fi
2968
2969
2970
2971 if test x${newlib_elix_level} = x3; then
2972   ELIX_LEVEL_3_TRUE=
2973   ELIX_LEVEL_3_FALSE='#'
2974 else
2975   ELIX_LEVEL_3_TRUE='#'
2976   ELIX_LEVEL_3_FALSE=
2977 fi
2978
2979
2980
2981 if test x${newlib_elix_level} = x4; then
2982   ELIX_LEVEL_4_TRUE=
2983   ELIX_LEVEL_4_FALSE='#'
2984 else
2985   ELIX_LEVEL_4_TRUE='#'
2986   ELIX_LEVEL_4_FALSE=
2987 fi
2988
2989
2990
2991
2992 if test x${use_libtool} = xyes; then
2993   USE_LIBTOOL_TRUE=
2994   USE_LIBTOOL_FALSE='#'
2995 else
2996   USE_LIBTOOL_TRUE='#'
2997   USE_LIBTOOL_FALSE=
2998 fi
2999
3000
3001 # Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3002 # use oext, which is set in configure.host based on the target platform.
3003 OBJEXT=${oext}
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015 if test "${use_libtool}" = "yes"; then
3016
3017 # Check whether --enable-shared or --disable-shared was given.
3018 if test "${enable_shared+set}" = set; then
3019   enableval="$enable_shared"
3020   p=${PACKAGE-default}
3021 case $enableval in
3022 yes) enable_shared=yes ;;
3023 no) enable_shared=no ;;
3024 *)
3025   enable_shared=no
3026   # Look at the argument we got.  We use all the common list separators.
3027   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3028   for pkg in $enableval; do
3029     if test "X$pkg" = "X$p"; then
3030       enable_shared=yes
3031     fi
3032   done
3033   IFS="$ac_save_ifs"
3034   ;;
3035 esac
3036 else
3037   enable_shared=yes
3038 fi;
3039 # Check whether --enable-static or --disable-static was given.
3040 if test "${enable_static+set}" = set; then
3041   enableval="$enable_static"
3042   p=${PACKAGE-default}
3043 case $enableval in
3044 yes) enable_static=yes ;;
3045 no) enable_static=no ;;
3046 *)
3047   enable_static=no
3048   # Look at the argument we got.  We use all the common list separators.
3049   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3050   for pkg in $enableval; do
3051     if test "X$pkg" = "X$p"; then
3052       enable_static=yes
3053     fi
3054   done
3055   IFS="$ac_save_ifs"
3056   ;;
3057 esac
3058 else
3059   enable_static=yes
3060 fi;
3061 # Check whether --enable-fast-install or --disable-fast-install was given.
3062 if test "${enable_fast_install+set}" = set; then
3063   enableval="$enable_fast_install"
3064   p=${PACKAGE-default}
3065 case $enableval in
3066 yes) enable_fast_install=yes ;;
3067 no) enable_fast_install=no ;;
3068 *)
3069   enable_fast_install=no
3070   # Look at the argument we got.  We use all the common list separators.
3071   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3072   for pkg in $enableval; do
3073     if test "X$pkg" = "X$p"; then
3074       enable_fast_install=yes
3075     fi
3076   done
3077   IFS="$ac_save_ifs"
3078   ;;
3079 esac
3080 else
3081   enable_fast_install=yes
3082 fi;
3083 ac_ext=c
3084 ac_cpp='$CPP $CPPFLAGS'
3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088 if test -n "$ac_tool_prefix"; then
3089   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3090 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3091 echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093 if test "${ac_cv_prog_CC+set}" = set; then
3094   echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096   if test -n "$CC"; then
3097   ac_cv_prog_CC="$CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102   IFS=$as_save_IFS
3103   test -z "$as_dir" && as_dir=.
3104   for ac_exec_ext in '' $ac_executable_extensions; do
3105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108     break 2
3109   fi
3110 done
3111 done
3112
3113 fi
3114 fi
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117   echo "$as_me:$LINENO: result: $CC" >&5
3118 echo "${ECHO_T}$CC" >&6
3119 else
3120   echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6
3122 fi
3123
3124 fi
3125 if test -z "$ac_cv_prog_CC"; then
3126   ac_ct_CC=$CC
3127   # Extract the first word of "gcc", so it can be a program name with args.
3128 set dummy gcc; ac_word=$2
3129 echo "$as_me:$LINENO: checking for $ac_word" >&5
3130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3132   echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134   if test -n "$ac_ct_CC"; then
3135   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140   IFS=$as_save_IFS
3141   test -z "$as_dir" && as_dir=.
3142   for ac_exec_ext in '' $ac_executable_extensions; do
3143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144     ac_cv_prog_ac_ct_CC="gcc"
3145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146     break 2
3147   fi
3148 done
3149 done
3150
3151 fi
3152 fi
3153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154 if test -n "$ac_ct_CC"; then
3155   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3156 echo "${ECHO_T}$ac_ct_CC" >&6
3157 else
3158   echo "$as_me:$LINENO: result: no" >&5
3159 echo "${ECHO_T}no" >&6
3160 fi
3161
3162   CC=$ac_ct_CC
3163 else
3164   CC="$ac_cv_prog_CC"
3165 fi
3166
3167 if test -z "$CC"; then
3168   if test -n "$ac_tool_prefix"; then
3169   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3170 set dummy ${ac_tool_prefix}cc; ac_word=$2
3171 echo "$as_me:$LINENO: checking for $ac_word" >&5
3172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3173 if test "${ac_cv_prog_CC+set}" = set; then
3174   echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176   if test -n "$CC"; then
3177   ac_cv_prog_CC="$CC" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182   IFS=$as_save_IFS
3183   test -z "$as_dir" && as_dir=.
3184   for ac_exec_ext in '' $ac_executable_extensions; do
3185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186     ac_cv_prog_CC="${ac_tool_prefix}cc"
3187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3188     break 2
3189   fi
3190 done
3191 done
3192
3193 fi
3194 fi
3195 CC=$ac_cv_prog_CC
3196 if test -n "$CC"; then
3197   echo "$as_me:$LINENO: result: $CC" >&5
3198 echo "${ECHO_T}$CC" >&6
3199 else
3200   echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3202 fi
3203
3204 fi
3205 if test -z "$ac_cv_prog_CC"; then
3206   ac_ct_CC=$CC
3207   # Extract the first word of "cc", so it can be a program name with args.
3208 set dummy cc; ac_word=$2
3209 echo "$as_me:$LINENO: checking for $ac_word" >&5
3210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3211 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214   if test -n "$ac_ct_CC"; then
3215   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220   IFS=$as_save_IFS
3221   test -z "$as_dir" && as_dir=.
3222   for ac_exec_ext in '' $ac_executable_extensions; do
3223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224     ac_cv_prog_ac_ct_CC="cc"
3225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3226     break 2
3227   fi
3228 done
3229 done
3230
3231 fi
3232 fi
3233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3236 echo "${ECHO_T}$ac_ct_CC" >&6
3237 else
3238   echo "$as_me:$LINENO: result: no" >&5
3239 echo "${ECHO_T}no" >&6
3240 fi
3241
3242   CC=$ac_ct_CC
3243 else
3244   CC="$ac_cv_prog_CC"
3245 fi
3246
3247 fi
3248 if test -z "$CC"; then
3249   # Extract the first word of "cc", so it can be a program name with args.
3250 set dummy cc; ac_word=$2
3251 echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_prog_CC+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   if test -n "$CC"; then
3257   ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259   ac_prog_rejected=no
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263   IFS=$as_save_IFS
3264   test -z "$as_dir" && as_dir=.
3265   for ac_exec_ext in '' $ac_executable_extensions; do
3266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3268        ac_prog_rejected=yes
3269        continue
3270      fi
3271     ac_cv_prog_CC="cc"
3272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3273     break 2
3274   fi
3275 done
3276 done
3277
3278 if test $ac_prog_rejected = yes; then
3279   # We found a bogon in the path, so make sure we never use it.
3280   set dummy $ac_cv_prog_CC
3281   shift
3282   if test $# != 0; then
3283     # We chose a different compiler from the bogus one.
3284     # However, it has the same basename, so the bogon will be chosen
3285     # first if we set CC to just the basename; use the full file name.
3286     shift
3287     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3288   fi
3289 fi
3290 fi
3291 fi
3292 CC=$ac_cv_prog_CC
3293 if test -n "$CC"; then
3294   echo "$as_me:$LINENO: result: $CC" >&5
3295 echo "${ECHO_T}$CC" >&6
3296 else
3297   echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6
3299 fi
3300
3301 fi
3302 if test -z "$CC"; then
3303   if test -n "$ac_tool_prefix"; then
3304   for ac_prog in cl
3305   do
3306     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3308 echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310 if test "${ac_cv_prog_CC+set}" = set; then
3311   echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313   if test -n "$CC"; then
3314   ac_cv_prog_CC="$CC" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321   for ac_exec_ext in '' $ac_executable_extensions; do
3322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328 done
3329
3330 fi
3331 fi
3332 CC=$ac_cv_prog_CC
3333 if test -n "$CC"; then
3334   echo "$as_me:$LINENO: result: $CC" >&5
3335 echo "${ECHO_T}$CC" >&6
3336 else
3337   echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6
3339 fi
3340
3341     test -n "$CC" && break
3342   done
3343 fi
3344 if test -z "$CC"; then
3345   ac_ct_CC=$CC
3346   for ac_prog in cl
3347 do
3348   # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy $ac_prog; ac_word=$2
3350 echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3353   echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355   if test -n "$ac_ct_CC"; then
3356   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361   IFS=$as_save_IFS
3362   test -z "$as_dir" && as_dir=.
3363   for ac_exec_ext in '' $ac_executable_extensions; do
3364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365     ac_cv_prog_ac_ct_CC="$ac_prog"
3366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367     break 2
3368   fi
3369 done
3370 done
3371
3372 fi
3373 fi
3374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3375 if test -n "$ac_ct_CC"; then
3376   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3377 echo "${ECHO_T}$ac_ct_CC" >&6
3378 else
3379   echo "$as_me:$LINENO: result: no" >&5
3380 echo "${ECHO_T}no" >&6
3381 fi
3382
3383   test -n "$ac_ct_CC" && break
3384 done
3385
3386   CC=$ac_ct_CC
3387 fi
3388
3389 fi
3390
3391
3392 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3393 See \`config.log' for more details." >&5
3394 echo "$as_me: error: no acceptable C compiler found in \$PATH
3395 See \`config.log' for more details." >&2;}
3396    { (exit 1); exit 1; }; }
3397
3398 # Provide some information about the compiler.
3399 echo "$as_me:$LINENO:" \
3400      "checking for C compiler version" >&5
3401 ac_compiler=`set X $ac_compile; echo $2`
3402 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3403   (eval $ac_compiler --version </dev/null >&5) 2>&5
3404   ac_status=$?
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); }
3407 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3408   (eval $ac_compiler -v </dev/null >&5) 2>&5
3409   ac_status=$?
3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); }
3412 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3413   (eval $ac_compiler -V </dev/null >&5) 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }
3417
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h.  */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h.  */
3424
3425 int
3426 main ()
3427 {
3428
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 ac_clean_files_save=$ac_clean_files
3434 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3435 # Try to create an executable without -o first, disregard a.out.
3436 # It will help us diagnose broken compilers, and finding out an intuition
3437 # of exeext.
3438 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3439 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3440 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3441 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3442   (eval $ac_link_default) 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }; then
3446   # Find the output, starting from the most likely.  This scheme is
3447 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3448 # resort.
3449
3450 # Be careful to initialize this variable, since it used to be cached.
3451 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3452 ac_cv_exeext=
3453 # b.out is created by i960 compilers.
3454 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3455 do
3456   test -f "$ac_file" || continue
3457   case $ac_file in
3458     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3459         ;;
3460     conftest.$ac_ext )
3461         # This is the source file.
3462         ;;
3463     [ab].out )
3464         # We found the default executable, but exeext='' is most
3465         # certainly right.
3466         break;;
3467     *.* )
3468         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3469         # FIXME: I believe we export ac_cv_exeext for Libtool,
3470         # but it would be cool to find out if it's true.  Does anybody
3471         # maintain Libtool? --akim.
3472         export ac_cv_exeext
3473         break;;
3474     * )
3475         break;;
3476   esac
3477 done
3478 else
3479   echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3483 See \`config.log' for more details." >&5
3484 echo "$as_me: error: C compiler cannot create executables
3485 See \`config.log' for more details." >&2;}
3486    { (exit 77); exit 77; }; }
3487 fi
3488
3489 ac_exeext=$ac_cv_exeext
3490 echo "$as_me:$LINENO: result: $ac_file" >&5
3491 echo "${ECHO_T}$ac_file" >&6
3492
3493 # Check the compiler produces executables we can run.  If not, either
3494 # the compiler is broken, or we cross compile.
3495 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3496 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3497 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3498 # If not cross compiling, check that we can run a simple program.
3499 if test "$cross_compiling" != yes; then
3500   if { ac_try='./$ac_file'
3501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502   (eval $ac_try) 2>&5
3503   ac_status=$?
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); }; }; then
3506     cross_compiling=no
3507   else
3508     if test "$cross_compiling" = maybe; then
3509         cross_compiling=yes
3510     else
3511         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3512 If you meant to cross compile, use \`--host'.
3513 See \`config.log' for more details." >&5
3514 echo "$as_me: error: cannot run C compiled programs.
3515 If you meant to cross compile, use \`--host'.
3516 See \`config.log' for more details." >&2;}
3517    { (exit 1); exit 1; }; }
3518     fi
3519   fi
3520 fi
3521 echo "$as_me:$LINENO: result: yes" >&5
3522 echo "${ECHO_T}yes" >&6
3523
3524 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3525 ac_clean_files=$ac_clean_files_save
3526 # Check the compiler produces executables we can run.  If not, either
3527 # the compiler is broken, or we cross compile.
3528 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3529 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3530 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3531 echo "${ECHO_T}$cross_compiling" >&6
3532
3533 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3534 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3536   (eval $ac_link) 2>&5
3537   ac_status=$?
3538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539   (exit $ac_status); }; then
3540   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3541 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3542 # work properly (i.e., refer to `conftest.exe'), while it won't with
3543 # `rm'.
3544 for ac_file in conftest.exe conftest conftest.*; do
3545   test -f "$ac_file" || continue
3546   case $ac_file in
3547     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3548     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3549           export ac_cv_exeext
3550           break;;
3551     * ) break;;
3552   esac
3553 done
3554 else
3555   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3556 See \`config.log' for more details." >&5
3557 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3558 See \`config.log' for more details." >&2;}
3559    { (exit 1); exit 1; }; }
3560 fi
3561
3562 rm -f conftest$ac_cv_exeext
3563 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3564 echo "${ECHO_T}$ac_cv_exeext" >&6
3565
3566 rm -f conftest.$ac_ext
3567 EXEEXT=$ac_cv_exeext
3568 ac_exeext=$EXEEXT
3569 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3570 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3571 if test "${ac_cv_objext+set}" = set; then
3572   echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574   cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h.  */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h.  */
3580
3581 int
3582 main ()
3583 {
3584
3585   ;
3586   return 0;
3587 }
3588 _ACEOF
3589 rm -f conftest.o conftest.obj
3590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591   (eval $ac_compile) 2>&5
3592   ac_status=$?
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); }; then
3595   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3596   case $ac_file in
3597     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3598     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3599        break;;
3600   esac
3601 done
3602 else
3603   echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3605
3606 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3607 See \`config.log' for more details." >&5
3608 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3609 See \`config.log' for more details." >&2;}
3610    { (exit 1); exit 1; }; }
3611 fi
3612
3613 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3614 fi
3615 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3616 echo "${ECHO_T}$ac_cv_objext" >&6
3617 OBJEXT=$ac_cv_objext
3618 ac_objext=$OBJEXT
3619 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3620 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3621 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3622   echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624   cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h.  */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h.  */
3630
3631 int
3632 main ()
3633 {
3634 #ifndef __GNUC__
3635        choke me
3636 #endif
3637
3638   ;
3639   return 0;
3640 }
3641 _ACEOF
3642 rm -f conftest.$ac_objext
3643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644   (eval $ac_compile) 2>conftest.er1
3645   ac_status=$?
3646   grep -v '^ *+' conftest.er1 >conftest.err
3647   rm -f conftest.er1
3648   cat conftest.err >&5
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } &&
3651          { ac_try='test -z "$ac_c_werror_flag"
3652                          || test ! -s conftest.err'
3653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654   (eval $ac_try) 2>&5
3655   ac_status=$?
3656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657   (exit $ac_status); }; } &&
3658          { ac_try='test -s conftest.$ac_objext'
3659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660   (eval $ac_try) 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); }; }; then
3664   ac_compiler_gnu=yes
3665 else
3666   echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669 ac_compiler_gnu=no
3670 fi
3671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3673
3674 fi
3675 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3676 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3677 GCC=`test $ac_compiler_gnu = yes && echo yes`
3678 ac_test_CFLAGS=${CFLAGS+set}
3679 ac_save_CFLAGS=$CFLAGS
3680 CFLAGS="-g"
3681 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3682 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3683 if test "${ac_cv_prog_cc_g+set}" = set; then
3684   echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686   cat >conftest.$ac_ext <<_ACEOF
3687 /* confdefs.h.  */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h.  */
3692
3693 int
3694 main ()
3695 {
3696
3697   ;
3698   return 0;
3699 }
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703   (eval $ac_compile) 2>conftest.er1
3704   ac_status=$?
3705   grep -v '^ *+' conftest.er1 >conftest.err
3706   rm -f conftest.er1
3707   cat conftest.err >&5
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); } &&
3710          { ac_try='test -z "$ac_c_werror_flag"
3711                          || test ! -s conftest.err'
3712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713   (eval $ac_try) 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); }; } &&
3717          { ac_try='test -s conftest.$ac_objext'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; }; then
3723   ac_cv_prog_cc_g=yes
3724 else
3725   echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728 ac_cv_prog_cc_g=no
3729 fi
3730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3731 fi
3732 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3733 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3734 if test "$ac_test_CFLAGS" = set; then
3735   CFLAGS=$ac_save_CFLAGS
3736 elif test $ac_cv_prog_cc_g = yes; then
3737   if test "$GCC" = yes; then
3738     CFLAGS="-g -O2"
3739   else
3740     CFLAGS="-g"
3741   fi
3742 else
3743   if test "$GCC" = yes; then
3744     CFLAGS="-O2"
3745   else
3746     CFLAGS=
3747   fi
3748 fi
3749 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3750 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3751 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   ac_cv_prog_cc_stdc=no
3755 ac_save_CC=$CC
3756 cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h.  */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h.  */
3762 #include <stdarg.h>
3763 #include <stdio.h>
3764 #include <sys/types.h>
3765 #include <sys/stat.h>
3766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3767 struct buf { int x; };
3768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3769 static char *e (p, i)
3770      char **p;
3771      int i;
3772 {
3773   return p[i];
3774 }
3775 static char *f (char * (*g) (char **, int), char **p, ...)
3776 {
3777   char *s;
3778   va_list v;
3779   va_start (v,p);
3780   s = g (p, va_arg (v,int));
3781   va_end (v);
3782   return s;
3783 }
3784
3785 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3786    function prototypes and stuff, but not '\xHH' hex character constants.
3787    These don't provoke an error unfortunately, instead are silently treated
3788    as 'x'.  The following induces an error, until -std1 is added to get
3789    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3790    array size at least.  It's necessary to write '\x00'==0 to get something
3791    that's true only with -std1.  */
3792 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3793
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798 int argc;
3799 char **argv;
3800 int
3801 main ()
3802 {
3803 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 # Don't try gcc -ansi; that turns off useful extensions and
3809 # breaks some systems' header files.
3810 # AIX                   -qlanglvl=ansi
3811 # Ultrix and OSF/1      -std1
3812 # HP-UX 10.20 and later -Ae
3813 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3814 # SVR4                  -Xc -D__EXTENSIONS__
3815 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3816 do
3817   CC="$ac_save_CC $ac_arg"
3818   rm -f conftest.$ac_objext
3819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3820   (eval $ac_compile) 2>conftest.er1
3821   ac_status=$?
3822   grep -v '^ *+' conftest.er1 >conftest.err
3823   rm -f conftest.er1
3824   cat conftest.err >&5
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } &&
3827          { ac_try='test -z "$ac_c_werror_flag"
3828                          || test ! -s conftest.err'
3829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830   (eval $ac_try) 2>&5
3831   ac_status=$?
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); }; } &&
3834          { ac_try='test -s conftest.$ac_objext'
3835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836   (eval $ac_try) 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); }; }; then
3840   ac_cv_prog_cc_stdc=$ac_arg
3841 break
3842 else
3843   echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846 fi
3847 rm -f conftest.err conftest.$ac_objext
3848 done
3849 rm -f conftest.$ac_ext conftest.$ac_objext
3850 CC=$ac_save_CC
3851
3852 fi
3853
3854 case "x$ac_cv_prog_cc_stdc" in
3855   x|xno)
3856     echo "$as_me:$LINENO: result: none needed" >&5
3857 echo "${ECHO_T}none needed" >&6 ;;
3858   *)
3859     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3860 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3861     CC="$CC $ac_cv_prog_cc_stdc" ;;
3862 esac
3863
3864 # Some people use a C++ compiler to compile C.  Since we use `exit',
3865 # in C++ we need to declare it.  In case someone uses the same compiler
3866 # for both compiling C and C++ we need to have the C++ compiler decide
3867 # the declaration of exit, since it's the most demanding environment.
3868 cat >conftest.$ac_ext <<_ACEOF
3869 #ifndef __cplusplus
3870   choke me
3871 #endif
3872 _ACEOF
3873 rm -f conftest.$ac_objext
3874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3875   (eval $ac_compile) 2>conftest.er1
3876   ac_status=$?
3877   grep -v '^ *+' conftest.er1 >conftest.err
3878   rm -f conftest.er1
3879   cat conftest.err >&5
3880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881   (exit $ac_status); } &&
3882          { ac_try='test -z "$ac_c_werror_flag"
3883                          || test ! -s conftest.err'
3884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885   (eval $ac_try) 2>&5
3886   ac_status=$?
3887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); }; } &&
3889          { ac_try='test -s conftest.$ac_objext'
3890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891   (eval $ac_try) 2>&5
3892   ac_status=$?
3893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894   (exit $ac_status); }; }; then
3895   for ac_declaration in \
3896    '' \
3897    'extern "C" void std::exit (int) throw (); using std::exit;' \
3898    'extern "C" void std::exit (int); using std::exit;' \
3899    'extern "C" void exit (int) throw ();' \
3900    'extern "C" void exit (int);' \
3901    'void exit (int);'
3902 do
3903   cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909 $ac_declaration
3910 #include <stdlib.h>
3911 int
3912 main ()
3913 {
3914 exit (42);
3915   ;
3916   return 0;
3917 }
3918 _ACEOF
3919 rm -f conftest.$ac_objext
3920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921   (eval $ac_compile) 2>conftest.er1
3922   ac_status=$?
3923   grep -v '^ *+' conftest.er1 >conftest.err
3924   rm -f conftest.er1
3925   cat conftest.err >&5
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); } &&
3928          { ac_try='test -z "$ac_c_werror_flag"
3929                          || test ! -s conftest.err'
3930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931   (eval $ac_try) 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); }; } &&
3935          { ac_try='test -s conftest.$ac_objext'
3936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937   (eval $ac_try) 2>&5
3938   ac_status=$?
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); }; }; then
3941   :
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946 continue
3947 fi
3948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3949   cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h.  */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h.  */
3955 $ac_declaration
3956 int
3957 main ()
3958 {
3959 exit (42);
3960   ;
3961   return 0;
3962 }
3963 _ACEOF
3964 rm -f conftest.$ac_objext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966   (eval $ac_compile) 2>conftest.er1
3967   ac_status=$?
3968   grep -v '^ *+' conftest.er1 >conftest.err
3969   rm -f conftest.er1
3970   cat conftest.err >&5
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); } &&
3973          { ac_try='test -z "$ac_c_werror_flag"
3974                          || test ! -s conftest.err'
3975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976   (eval $ac_try) 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); }; } &&
3980          { ac_try='test -s conftest.$ac_objext'
3981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982   (eval $ac_try) 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); }; }; then
3986   break
3987 else
3988   echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3990
3991 fi
3992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3993 done
3994 rm -f conftest*
3995 if test -n "$ac_declaration"; then
3996   echo '#ifdef __cplusplus' >>confdefs.h
3997   echo $ac_declaration      >>confdefs.h
3998   echo '#endif'             >>confdefs.h
3999 fi
4000
4001 else
4002   echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4004
4005 fi
4006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012
4013 depcc="$CC"   am_compiler_list=
4014
4015 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4016 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4017 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4021   # We make a subdir and do the tests there.  Otherwise we can end up
4022   # making bogus files that we don't know about and never remove.  For
4023   # instance it was reported that on HP-UX the gcc test will end up
4024   # making a dummy file named `D' -- because `-MD' means `put the output
4025   # in D'.
4026   mkdir conftest.dir
4027   # Copy depcomp to subdir because otherwise we won't find it if we're
4028   # using a relative directory.
4029   cp "$am_depcomp" conftest.dir
4030   cd conftest.dir
4031   # We will build objects and dependencies in a subdirectory because
4032   # it helps to detect inapplicable dependency modes.  For instance
4033   # both Tru64's cc and ICC support -MD to output dependencies as a
4034   # side effect of compilation, but ICC will put the dependencies in
4035   # the current directory while Tru64 will put them in the object
4036   # directory.
4037   mkdir sub
4038
4039   am_cv_CC_dependencies_compiler_type=none
4040   if test "$am_compiler_list" = ""; then
4041      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4042   fi
4043   for depmode in $am_compiler_list; do
4044     # Setup a source with many dependencies, because some compilers
4045     # like to wrap large dependency lists on column 80 (with \), and
4046     # we should not choose a depcomp mode which is confused by this.
4047     #
4048     # We need to recreate these files for each test, as the compiler may
4049     # overwrite some of them when testing with obscure command lines.
4050     # This happens at least with the AIX C compiler.
4051     : > sub/conftest.c
4052     for i in 1 2 3 4 5 6; do
4053       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4054       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4055       # Solaris 8's {/usr,}/bin/sh.
4056       touch sub/conftst$i.h
4057     done
4058     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4059
4060     case $depmode in
4061     nosideeffect)
4062       # after this tag, mechanisms are not by side-effect, so they'll
4063       # only be used when explicitly requested
4064       if test "x$enable_dependency_tracking" = xyes; then
4065         continue
4066       else
4067         break
4068       fi
4069       ;;
4070     none) break ;;
4071     esac
4072     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4073     # mode.  It turns out that the SunPro C++ compiler does not properly
4074     # handle `-M -o', and we need to detect this.
4075     if depmode=$depmode \
4076        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4077        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4078        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4079          >/dev/null 2>conftest.err &&
4080        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4081        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4082        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4083       # icc doesn't choke on unknown options, it will just issue warnings
4084       # or remarks (even with -Werror).  So we grep stderr for any message
4085       # that says an option was ignored or not supported.
4086       # When given -MP, icc 7.0 and 7.1 complain thusly:
4087       #   icc: Command line warning: ignoring option '-M'; no argument required
4088       # The diagnosis changed in icc 8.0:
4089       #   icc: Command line remark: option '-MP' not supported
4090       if (grep 'ignoring option' conftest.err ||
4091           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4092         am_cv_CC_dependencies_compiler_type=$depmode
4093         break
4094       fi
4095     fi
4096   done
4097
4098   cd ..
4099   rm -rf conftest.dir
4100 else
4101   am_cv_CC_dependencies_compiler_type=none
4102 fi
4103
4104 fi
4105 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4106 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4107 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4108
4109
4110
4111 if
4112   test "x$enable_dependency_tracking" != xno \
4113   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4114   am__fastdepCC_TRUE=
4115   am__fastdepCC_FALSE='#'
4116 else
4117   am__fastdepCC_TRUE='#'
4118   am__fastdepCC_FALSE=
4119 fi
4120
4121
4122
4123 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4124 if test "${with_gnu_ld+set}" = set; then
4125   withval="$with_gnu_ld"
4126   test "$withval" = no || with_gnu_ld=yes
4127 else
4128   with_gnu_ld=no
4129 fi;
4130 ac_prog=ld
4131 if test "$GCC" = yes; then
4132   # Check if gcc -print-prog-name=ld gives a path.
4133   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4134 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4135   case $host in
4136   *-*-mingw*)
4137     # gcc leaves a trailing carriage return which upsets mingw
4138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4139   *)
4140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4141   esac
4142   case $ac_prog in
4143     # Accept absolute paths.
4144     [\\/]* | [A-Za-z]:[\\/]*)
4145       re_direlt='/[^/][^/]*/\.\./'
4146       # Canonicalize the path of ld
4147       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4148       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4149         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4150       done
4151       test -z "$LD" && LD="$ac_prog"
4152       ;;
4153   "")
4154     # If it fails, then pretend we aren't using GCC.
4155     ac_prog=ld
4156     ;;
4157   *)
4158     # If it is relative, then search for the first ld in PATH.
4159     with_gnu_ld=unknown
4160     ;;
4161   esac
4162 elif test "$with_gnu_ld" = yes; then
4163   echo "$as_me:$LINENO: checking for GNU ld" >&5
4164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4165 else
4166   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4168 fi
4169 if test "${lt_cv_path_LD+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   if test -z "$LD"; then
4173   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4174   for ac_dir in $PATH; do
4175     test -z "$ac_dir" && ac_dir=.
4176     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4177       lt_cv_path_LD="$ac_dir/$ac_prog"
4178       # Check to see if the program is GNU ld.  I'd rather use --version,
4179       # but apparently some GNU ld's only accept -v.
4180       # Break only if it was the GNU/non-GNU ld that we prefer.
4181       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4182         test "$with_gnu_ld" != no && break
4183       else
4184         test "$with_gnu_ld" != yes && break
4185       fi
4186     fi
4187   done
4188   IFS="$ac_save_ifs"
4189 else
4190   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4191 fi
4192 fi
4193
4194 LD="$lt_cv_path_LD"
4195 if test -n "$LD"; then
4196   echo "$as_me:$LINENO: result: $LD" >&5
4197 echo "${ECHO_T}$LD" >&6
4198 else
4199   echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6
4201 fi
4202 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4203 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4204    { (exit 1); exit 1; }; }
4205 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4206 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4207 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4208   echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4211 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4212   lt_cv_prog_gnu_ld=yes
4213 else
4214   lt_cv_prog_gnu_ld=no
4215 fi
4216 fi
4217 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4218 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4219 with_gnu_ld=$lt_cv_prog_gnu_ld
4220
4221
4222 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4223 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4224 if test "${lt_cv_ld_reload_flag+set}" = set; then
4225   echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227   lt_cv_ld_reload_flag='-r'
4228 fi
4229 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4230 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4231 reload_flag=$lt_cv_ld_reload_flag
4232 test -n "$reload_flag" && reload_flag=" $reload_flag"
4233
4234 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4235 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4236 if test "${lt_cv_path_NM+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   if test -n "$NM"; then
4240   # Let the user override the test.
4241   lt_cv_path_NM="$NM"
4242 else
4243   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4244   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4245     test -z "$ac_dir" && ac_dir=.
4246     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4247     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4248       # Check to see if the nm accepts a BSD-compat flag.
4249       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4250       #   nm: unknown option "B" ignored
4251       # Tru64's nm complains that /dev/null is an invalid object file
4252       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4253         lt_cv_path_NM="$tmp_nm -B"
4254         break
4255       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4256         lt_cv_path_NM="$tmp_nm -p"
4257         break
4258       else
4259         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4260         continue # so that we can try to find one that supports BSD flags
4261       fi
4262     fi
4263   done
4264   IFS="$ac_save_ifs"
4265   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4266 fi
4267 fi
4268
4269 NM="$lt_cv_path_NM"
4270 echo "$as_me:$LINENO: result: $NM" >&5
4271 echo "${ECHO_T}$NM" >&6
4272
4273 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4274 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4275 LN_S=$as_ln_s
4276 if test "$LN_S" = "ln -s"; then
4277   echo "$as_me:$LINENO: result: yes" >&5
4278 echo "${ECHO_T}yes" >&6
4279 else
4280   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4281 echo "${ECHO_T}no, using $LN_S" >&6
4282 fi
4283
4284 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4285 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4286 if test "${lt_cv_deplibs_check_method+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   lt_cv_file_magic_cmd='$MAGIC_CMD'
4290 lt_cv_file_magic_test_file=
4291 lt_cv_deplibs_check_method='unknown'
4292 # Need to set the preceding variable on all platforms that support
4293 # interlibrary dependencies.
4294 # 'none' -- dependencies not supported.
4295 # `unknown' -- same as none, but documents that we really don't know.
4296 # 'pass_all' -- all dependencies passed with no checks.
4297 # 'test_compile' -- check by making test program.
4298 # 'file_magic [regex]' -- check by looking for files in library path
4299 # which responds to the $file_magic_cmd with a given egrep regex.
4300 # If you have `file' or equivalent on your system and you're not sure
4301 # whether `pass_all' will *always* work, you probably want this one.
4302
4303 case $host_os in
4304 aix*)
4305   lt_cv_deplibs_check_method=pass_all
4306   ;;
4307
4308 beos*)
4309   lt_cv_deplibs_check_method=pass_all
4310   ;;
4311
4312 bsdi4*)
4313   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4314   lt_cv_file_magic_cmd='/usr/bin/file -L'
4315   lt_cv_file_magic_test_file=/shlib/libc.so
4316   ;;
4317
4318 cygwin* | mingw* |pw32*)
4319   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4320   lt_cv_file_magic_cmd='$OBJDUMP -f'
4321   ;;
4322
4323 darwin* | rhapsody*)
4324   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4325   lt_cv_file_magic_cmd='/usr/bin/file -L'
4326   case "$host_os" in
4327   rhapsody* | darwin1.012)
4328     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4329     ;;
4330   *) # Darwin 1.3 on
4331     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4332     ;;
4333   esac
4334   ;;
4335
4336 freebsd* )
4337   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4338     case $host_cpu in
4339     i*86 )
4340       # Not sure whether the presence of OpenBSD here was a mistake.
4341       # Let's accept both of them until this is cleared up.
4342       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4343       lt_cv_file_magic_cmd=/usr/bin/file
4344       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4345       ;;
4346     esac
4347   else
4348     lt_cv_deplibs_check_method=pass_all
4349   fi
4350   ;;
4351
4352 gnu*)
4353   lt_cv_deplibs_check_method=pass_all
4354   ;;
4355
4356 hpux10.20*|hpux11*)
4357   case $host_cpu in
4358   hppa*)
4359     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4360     lt_cv_file_magic_cmd=/usr/bin/file
4361     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4362     ;;
4363   ia64*)
4364     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4365     lt_cv_file_magic_cmd=/usr/bin/file
4366     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4367     ;;
4368   esac
4369   ;;
4370
4371 irix5* | irix6*)
4372   case $host_os in
4373   irix5*)
4374     # this will be overridden with pass_all, but let us keep it just in case
4375     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4376     ;;
4377   *)
4378     case $LD in
4379     *-32|*"-32 ") libmagic=32-bit;;
4380     *-n32|*"-n32 ") libmagic=N32;;
4381     *-64|*"-64 ") libmagic=64-bit;;
4382     *) libmagic=never-match;;
4383     esac
4384     # this will be overridden with pass_all, but let us keep it just in case
4385     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4386     ;;
4387   esac
4388   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4389   lt_cv_deplibs_check_method=pass_all
4390   ;;
4391
4392 # This must be Linux ELF.
4393 linux-gnu*|linux-newlib*)
4394   case $host_cpu in
4395   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4396     lt_cv_deplibs_check_method=pass_all ;;
4397   *)
4398     # glibc up to 2.1.1 does not perform some relocations on ARM
4399     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4400   esac
4401   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4402   ;;
4403
4404 netbsd*)
4405   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4406     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4407   else
4408     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4409   fi
4410   ;;
4411
4412 newsos6)
4413   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4414   lt_cv_file_magic_cmd=/usr/bin/file
4415   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4416   ;;
4417
4418 osf3* | osf4* | osf5*)
4419   # this will be overridden with pass_all, but let us keep it just in case
4420   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4421   lt_cv_file_magic_test_file=/shlib/libc.so
4422   lt_cv_deplibs_check_method=pass_all
4423   ;;
4424
4425 sco3.2v5*)
4426   lt_cv_deplibs_check_method=pass_all
4427   ;;
4428
4429 solaris*)
4430   lt_cv_deplibs_check_method=pass_all
4431   lt_cv_file_magic_test_file=/lib/libc.so
4432   ;;
4433
4434 sysv5uw[78]* | sysv4*uw2*)
4435   lt_cv_deplibs_check_method=pass_all
4436   ;;
4437
4438 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4439   case $host_vendor in
4440   ncr)
4441     lt_cv_deplibs_check_method=pass_all
4442     ;;
4443   motorola)
4444     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]'
4445     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4446     ;;
4447   esac
4448   ;;
4449 esac
4450
4451 fi
4452 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4453 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4454 file_magic_cmd=$lt_cv_file_magic_cmd
4455 deplibs_check_method=$lt_cv_deplibs_check_method
4456
4457
4458
4459
4460 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4461
4462 # Only perform the check for file, if the check method requires it
4463 case $deplibs_check_method in
4464 file_magic*)
4465   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4466     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4467 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4468 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4469   echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471   case $MAGIC_CMD in
4472   /*)
4473   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4474   ;;
4475   ?:/*)
4476   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4477   ;;
4478   *)
4479   ac_save_MAGIC_CMD="$MAGIC_CMD"
4480   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4481   ac_dummy="/usr/bin:$PATH"
4482   for ac_dir in $ac_dummy; do
4483     test -z "$ac_dir" && ac_dir=.
4484     if test -f $ac_dir/${ac_tool_prefix}file; then
4485       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4486       if test -n "$file_magic_test_file"; then
4487         case $deplibs_check_method in
4488         "file_magic "*)
4489           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4490           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4491           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4492             egrep "$file_magic_regex" > /dev/null; then
4493             :
4494           else
4495             cat <<EOF 1>&2
4496
4497 *** Warning: the command libtool uses to detect shared libraries,
4498 *** $file_magic_cmd, produces output that libtool cannot recognize.
4499 *** The result is that libtool may fail to recognize shared libraries
4500 *** as such.  This will affect the creation of libtool libraries that
4501 *** depend on shared libraries, but programs linked with such libtool
4502 *** libraries will work regardless of this problem.  Nevertheless, you
4503 *** may want to report the problem to your system manager and/or to
4504 *** bug-libtool@gnu.org
4505
4506 EOF
4507           fi ;;
4508         esac
4509       fi
4510       break
4511     fi
4512   done
4513   IFS="$ac_save_ifs"
4514   MAGIC_CMD="$ac_save_MAGIC_CMD"
4515   ;;
4516 esac
4517 fi
4518
4519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4520 if test -n "$MAGIC_CMD"; then
4521   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4522 echo "${ECHO_T}$MAGIC_CMD" >&6
4523 else
4524   echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4526 fi
4527
4528 if test -z "$lt_cv_path_MAGIC_CMD"; then
4529   if test -n "$ac_tool_prefix"; then
4530     echo "$as_me:$LINENO: checking for file" >&5
4531 echo $ECHO_N "checking for file... $ECHO_C" >&6
4532 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4533   echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535   case $MAGIC_CMD in
4536   /*)
4537   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4538   ;;
4539   ?:/*)
4540   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4541   ;;
4542   *)
4543   ac_save_MAGIC_CMD="$MAGIC_CMD"
4544   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4545   ac_dummy="/usr/bin:$PATH"
4546   for ac_dir in $ac_dummy; do
4547     test -z "$ac_dir" && ac_dir=.
4548     if test -f $ac_dir/file; then
4549       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4550       if test -n "$file_magic_test_file"; then
4551         case $deplibs_check_method in
4552         "file_magic "*)
4553           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4554           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4555           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4556             egrep "$file_magic_regex" > /dev/null; then
4557             :
4558           else
4559             cat <<EOF 1>&2
4560
4561 *** Warning: the command libtool uses to detect shared libraries,
4562 *** $file_magic_cmd, produces output that libtool cannot recognize.
4563 *** The result is that libtool may fail to recognize shared libraries
4564 *** as such.  This will affect the creation of libtool libraries that
4565 *** depend on shared libraries, but programs linked with such libtool
4566 *** libraries will work regardless of this problem.  Nevertheless, you
4567 *** may want to report the problem to your system manager and/or to
4568 *** bug-libtool@gnu.org
4569
4570 EOF
4571           fi ;;
4572         esac
4573       fi
4574       break
4575     fi
4576   done
4577   IFS="$ac_save_ifs"
4578   MAGIC_CMD="$ac_save_MAGIC_CMD"
4579   ;;
4580 esac
4581 fi
4582
4583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4584 if test -n "$MAGIC_CMD"; then
4585   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4586 echo "${ECHO_T}$MAGIC_CMD" >&6
4587 else
4588   echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4590 fi
4591
4592   else
4593     MAGIC_CMD=:
4594   fi
4595 fi
4596
4597   fi
4598   ;;
4599 esac
4600
4601 if test -n "$ac_tool_prefix"; then
4602   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4603 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_prog_RANLIB+set}" = set; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609   if test -n "$RANLIB"; then
4610   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617   for ac_exec_ext in '' $ac_executable_extensions; do
4618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621     break 2
4622   fi
4623 done
4624 done
4625
4626 fi
4627 fi
4628 RANLIB=$ac_cv_prog_RANLIB
4629 if test -n "$RANLIB"; then
4630   echo "$as_me:$LINENO: result: $RANLIB" >&5
4631 echo "${ECHO_T}$RANLIB" >&6
4632 else
4633   echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6
4635 fi
4636
4637 fi
4638 if test -z "$ac_cv_prog_RANLIB"; then
4639   ac_ct_RANLIB=$RANLIB
4640   # Extract the first word of "ranlib", so it can be a program name with args.
4641 set dummy ranlib; ac_word=$2
4642 echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   if test -n "$ac_ct_RANLIB"; then
4648   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655   for ac_exec_ext in '' $ac_executable_extensions; do
4656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657     ac_cv_prog_ac_ct_RANLIB="ranlib"
4658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659     break 2
4660   fi
4661 done
4662 done
4663
4664   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4665 fi
4666 fi
4667 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4668 if test -n "$ac_ct_RANLIB"; then
4669   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4670 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4671 else
4672   echo "$as_me:$LINENO: result: no" >&5
4673 echo "${ECHO_T}no" >&6
4674 fi
4675
4676   RANLIB=$ac_ct_RANLIB
4677 else
4678   RANLIB="$ac_cv_prog_RANLIB"
4679 fi
4680
4681 if test -n "$ac_tool_prefix"; then
4682   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4683 set dummy ${ac_tool_prefix}strip; ac_word=$2
4684 echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686 if test "${ac_cv_prog_STRIP+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   if test -n "$STRIP"; then
4690   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697   for ac_exec_ext in '' $ac_executable_extensions; do
4698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704 done
4705
4706 fi
4707 fi
4708 STRIP=$ac_cv_prog_STRIP
4709 if test -n "$STRIP"; then
4710   echo "$as_me:$LINENO: result: $STRIP" >&5
4711 echo "${ECHO_T}$STRIP" >&6
4712 else
4713   echo "$as_me:$LINENO: result: no" >&5
4714 echo "${ECHO_T}no" >&6
4715 fi
4716
4717 fi
4718 if test -z "$ac_cv_prog_STRIP"; then
4719   ac_ct_STRIP=$STRIP
4720   # Extract the first word of "strip", so it can be a program name with args.
4721 set dummy strip; ac_word=$2
4722 echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4724 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4725   echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727   if test -n "$ac_ct_STRIP"; then
4728   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4732 do
4733   IFS=$as_save_IFS
4734   test -z "$as_dir" && as_dir=.
4735   for ac_exec_ext in '' $ac_executable_extensions; do
4736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737     ac_cv_prog_ac_ct_STRIP="strip"
4738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739     break 2
4740   fi
4741 done
4742 done
4743
4744   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4745 fi
4746 fi
4747 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4748 if test -n "$ac_ct_STRIP"; then
4749   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4750 echo "${ECHO_T}$ac_ct_STRIP" >&6
4751 else
4752   echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6
4754 fi
4755
4756   STRIP=$ac_ct_STRIP
4757 else
4758   STRIP="$ac_cv_prog_STRIP"
4759 fi
4760
4761
4762 # Check for any special flags to pass to ltconfig.
4763 libtool_flags="--cache-file=$cache_file"
4764 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4765 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4766 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4767 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4768 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4769
4770
4771 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4772 if test "${enable_libtool_lock+set}" = set; then
4773   enableval="$enable_libtool_lock"
4774
4775 fi;
4776 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4777 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4778
4779
4780 # Check whether --with-pic or --without-pic was given.
4781 if test "${with_pic+set}" = set; then
4782   withval="$with_pic"
4783   pic_mode="$withval"
4784 else
4785   pic_mode=default
4786 fi;
4787 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4788 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4789
4790 # Some flags need to be propagated to the compiler or linker for good
4791 # libtool support.
4792 case $host in
4793 *-*-irix6*)
4794   # Find out which ABI we are using.
4795   echo '#line 4795 "configure"' > conftest.$ac_ext
4796   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797   (eval $ac_compile) 2>&5
4798   ac_status=$?
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); }; then
4801     case `/usr/bin/file conftest.$ac_objext` in
4802     *32-bit*)
4803       LD="${LD-ld} -32"
4804       ;;
4805     *N32*)
4806       LD="${LD-ld} -n32"
4807       ;;
4808     *64-bit*)
4809       LD="${LD-ld} -64"
4810       ;;
4811     esac
4812   fi
4813   rm -rf conftest*
4814   ;;
4815
4816 ia64-*-hpux*)
4817   # Find out which ABI we are using.
4818   echo 'int i;' > conftest.$ac_ext
4819   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820   (eval $ac_compile) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; then
4824     case "`/usr/bin/file conftest.o`" in
4825     *ELF-32*)
4826       HPUX_IA64_MODE="32"
4827       ;;
4828     *ELF-64*)
4829       HPUX_IA64_MODE="64"
4830       ;;
4831     esac
4832   fi
4833   rm -rf conftest*
4834   ;;
4835
4836 *-*-sco3.2v5*)
4837   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4838   SAVE_CFLAGS="$CFLAGS"
4839   CFLAGS="$CFLAGS -belf"
4840   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4841 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4842 if test "${lt_cv_cc_needs_belf+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845
4846
4847      ac_ext=c
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852
4853      cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h.  */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h.  */
4859
4860 int
4861 main ()
4862 {
4863
4864   ;
4865   return 0;
4866 }
4867 _ACEOF
4868 rm -f conftest.$ac_objext conftest$ac_exeext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4870   (eval $ac_link) 2>conftest.er1
4871   ac_status=$?
4872   grep -v '^ *+' conftest.er1 >conftest.err
4873   rm -f conftest.er1
4874   cat conftest.err >&5
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); } &&
4877          { ac_try='test -z "$ac_c_werror_flag"
4878                          || test ! -s conftest.err'
4879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880   (eval $ac_try) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }; } &&
4884          { ac_try='test -s conftest$ac_exeext'
4885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886   (eval $ac_try) 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); }; }; then
4890   lt_cv_cc_needs_belf=yes
4891 else
4892   echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895 lt_cv_cc_needs_belf=no
4896 fi
4897 rm -f conftest.err conftest.$ac_objext \
4898       conftest$ac_exeext conftest.$ac_ext
4899      ac_ext=c
4900 ac_cpp='$CPP $CPPFLAGS'
4901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4904
4905 fi
4906 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4907 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4908   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4909     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4910     CFLAGS="$SAVE_CFLAGS"
4911   fi
4912   ;;
4913
4914
4915 esac
4916
4917
4918 # Save cache, so that ltconfig can load it
4919 cat >confcache <<\_ACEOF
4920 # This file is a shell script that caches the results of configure
4921 # tests run on this system so they can be shared between configure
4922 # scripts and configure runs, see configure's option --config-cache.
4923 # It is not useful on other systems.  If it contains results you don't
4924 # want to keep, you may remove or edit it.
4925 #
4926 # config.status only pays attention to the cache file if you give it
4927 # the --recheck option to rerun configure.
4928 #
4929 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4930 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4931 # following values.
4932
4933 _ACEOF
4934
4935 # The following way of writing the cache mishandles newlines in values,
4936 # but we know of no workaround that is simple, portable, and efficient.
4937 # So, don't put newlines in cache variables' values.
4938 # Ultrix sh set writes to stderr and can't be redirected directly,
4939 # and sets the high bit in the cache file unless we assign to the vars.
4940 {
4941   (set) 2>&1 |
4942     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4943     *ac_space=\ *)
4944       # `set' does not quote correctly, so add quotes (double-quote
4945       # substitution turns \\\\ into \\, and sed turns \\ into \).
4946       sed -n \
4947         "s/'/'\\\\''/g;
4948           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4949       ;;
4950     *)
4951       # `set' quotes correctly as required by POSIX, so do not add quotes.
4952       sed -n \
4953         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4954       ;;
4955     esac;
4956 } |
4957   sed '
4958      t clear
4959      : clear
4960      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4961      t end
4962      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4963      : end' >>confcache
4964 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4965   if test -w $cache_file; then
4966     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4967     cat confcache >$cache_file
4968   else
4969     echo "not updating unwritable cache $cache_file"
4970   fi
4971 fi
4972 rm -f confcache
4973
4974 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4975 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4976 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4977 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4978 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4979 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4980 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4981 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4982 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4983 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4984 echo "$as_me: error: libtool configure failed" >&2;}
4985    { (exit 1); exit 1; }; }
4986
4987 # Reload cache, that may have been modified by ltconfig
4988 if test -r "$cache_file"; then
4989   # Some versions of bash will fail to source /dev/null (special
4990   # files actually), so we avoid doing that.
4991   if test -f "$cache_file"; then
4992     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4993 echo "$as_me: loading cache $cache_file" >&6;}
4994     case $cache_file in
4995       [\\/]* | ?:[\\/]* ) . $cache_file;;
4996       *)                      . ./$cache_file;;
4997     esac
4998   fi
4999 else
5000   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5001 echo "$as_me: creating cache $cache_file" >&6;}
5002   >$cache_file
5003 fi
5004
5005
5006 # This can be used to rebuild libtool when needed
5007 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5008
5009 # Always use our own libtool.
5010 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5011
5012 # Redirect the config.log output again, so that the ltconfig log is not
5013 # clobbered by the next message.
5014 exec 5>>./config.log
5015
5016
5017
5018
5019
5020
5021 for ac_prog in gawk mawk nawk awk
5022 do
5023   # Extract the first word of "$ac_prog", so it can be a program name with args.
5024 set dummy $ac_prog; ac_word=$2
5025 echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5027 if test "${ac_cv_prog_AWK+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030   if test -n "$AWK"; then
5031   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   test -z "$as_dir" && as_dir=.
5038   for ac_exec_ext in '' $ac_executable_extensions; do
5039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040     ac_cv_prog_AWK="$ac_prog"
5041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045 done
5046
5047 fi
5048 fi
5049 AWK=$ac_cv_prog_AWK
5050 if test -n "$AWK"; then
5051   echo "$as_me:$LINENO: result: $AWK" >&5
5052 echo "${ECHO_T}$AWK" >&6
5053 else
5054   echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6
5056 fi
5057
5058   test -n "$AWK" && break
5059 done
5060
5061 fi
5062
5063 # Check whether --enable-newlib_hw_fp or --disable-newlib_hw_fp was given.
5064 if test "${enable_newlib_hw_fp+set}" = set; then
5065   enableval="$enable_newlib_hw_fp"
5066   case "${enableval}" in
5067    yes) newlib_hw_fp=true ;;
5068    no)  newlib_hw_fp=false ;;
5069    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-newlib-hw-fp" >&5
5070 echo "$as_me: error: bad value ${enableval} for --enable-newlib-hw-fp" >&2;}
5071    { (exit 1); exit 1; }; } ;;
5072  esac
5073 else
5074   newlib_hw_fp=false
5075 fi;
5076
5077
5078 if test x$newlib_hw_fp = xtrue; then
5079   NEWLIB_HW_FP_TRUE=
5080   NEWLIB_HW_FP_FALSE='#'
5081 else
5082   NEWLIB_HW_FP_TRUE='#'
5083   NEWLIB_HW_FP_FALSE=
5084 fi
5085
5086
5087 # These get added in the top-level configure.in, except in the case where
5088 # newlib is being built natively.
5089 LIBC_INCLUDE_GREP=`echo ${CC} | grep \/libc\/include`
5090 abs_newlib_basedir=`cd ${newlib_basedir} && pwd`
5091 if test -z "${LIBC_INCLUDE_GREP}"; then
5092   CC_FOR_NEWLIB="${CC} -I$PWD/targ-include -I${abs_newlib_basedir}/libc/include"
5093 else
5094   CC_FOR_NEWLIB="${CC}"
5095 fi
5096
5097
5098
5099
5100 subdirs="$subdirs libc"
5101
5102
5103
5104 subdirs="$subdirs libm"
5105
5106
5107 if test -z "${with_multisubdir}"; then
5108
5109
5110 subdirs="$subdirs doc"
5111
5112   have_doc=yes
5113 else
5114   have_doc=
5115 fi
5116
5117
5118 if test x$have_doc = xyes; then
5119   HAVE_DOC_TRUE=
5120   HAVE_DOC_FALSE='#'
5121 else
5122   HAVE_DOC_TRUE='#'
5123   HAVE_DOC_FALSE=
5124 fi
5125
5126
5127 EXTRA_DIRS=
5128 case $host in
5129   i[34567]86-pc-linux-*)
5130
5131
5132 subdirs="$subdirs iconvdata"
5133
5134         EXTRA_DIRS=iconvdata
5135         ;;
5136 esac
5137
5138
5139 CRT0=
5140 CRT0_DIR=
5141 if test "x${have_crt0}" = "xyes"; then
5142   CRT0=crt0.o
5143   CRT0_DIR=libc/
5144 fi
5145
5146
5147
5148 CRT1=${crt1}
5149 CRT1_DIR=
5150 if test -n "${crt1_dir}"; then
5151   CRT1_DIR=${crt1_dir}/
5152 fi
5153
5154
5155
5156 if test -n "${libm_machine_dir}"; then
5157   LIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.in
5158 fi
5159
5160
5161 if test -n "${machine_dir}"; then
5162   MACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.in
5163 fi
5164
5165
5166 if test -n "${sys_dir}"; then
5167   SYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.in
5168 fi
5169
5170
5171 if test "${have_sys_mach_dir}" = "yes"; then
5172   SYS_MACH_OBJECTLIST=libc/sys/${sys_dir}/machine/${machine_dir}/objectlist.awk.in
5173 fi
5174
5175
5176 if test -n "${posix_dir}"; then
5177   POSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.in
5178 fi
5179
5180
5181 if test -n "${signal_dir}"; then
5182   SIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.in
5183 fi
5184
5185
5186 if test -n "${syscall_dir}"; then
5187   SYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.in
5188 fi
5189
5190
5191 if test -n "${unix_dir}"; then
5192   UNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.in
5193 fi
5194
5195
5196 if test -n "${stdio64_dir}"; then
5197   STDIO64_OBJECTLIST=libc/${stdio64_dir}/objectlist.awk.in
5198 fi
5199
5200
5201 # Put a plausible default for CC_FOR_BUILD in Makefile.
5202 if test -z "$CC_FOR_BUILD"; then
5203   CC_FOR_BUILD=gcc
5204 fi
5205
5206
5207 if test "${newlib_elix_level}" -gt "0"; then
5208 cat >>confdefs.h <<_ACEOF
5209 #define _ELIX_LEVEL ${newlib_elix_level}
5210 _ACEOF
5211
5212 fi
5213
5214 if test "${newlib_io_c99_formats}" = "yes"; then
5215 cat >>confdefs.h <<_ACEOF
5216 #define _WANT_IO_C99_FORMATS 1
5217 _ACEOF
5218
5219 fi
5220
5221 if test "${newlib_io_long_long}" = "yes"; then
5222 cat >>confdefs.h <<_ACEOF
5223 #define _WANT_IO_LONG_LONG 1
5224 _ACEOF
5225
5226 fi
5227
5228 if test "${newlib_io_long_double}" = "yes"; then
5229 cat >>confdefs.h <<_ACEOF
5230 #define _WANT_IO_LONG_DOUBLE 1
5231 _ACEOF
5232
5233 fi
5234
5235 if test "${newlib_io_pos_args}" = "yes"; then
5236 cat >>confdefs.h <<_ACEOF
5237 #define _WANT_IO_POS_ARGS 1
5238 _ACEOF
5239
5240 fi
5241
5242 if test "${newlib_reent_small}" = "yes"; then
5243 cat >>confdefs.h <<_ACEOF
5244 #define _WANT_REENT_SMALL 1
5245 _ACEOF
5246
5247 fi
5248
5249 if test "${newlib_mb}" = "yes"; then
5250 cat >>confdefs.h <<_ACEOF
5251 #define _MB_CAPABLE 1
5252 _ACEOF
5253
5254 cat >>confdefs.h <<_ACEOF
5255 #define _MB_LEN_MAX 8
5256 _ACEOF
5257
5258 else
5259 cat >>confdefs.h <<_ACEOF
5260 #define _MB_LEN_MAX 1
5261 _ACEOF
5262
5263 fi
5264
5265 if test "${newlib_iconv_external_ccs}" = "yes"; then
5266 cat >>confdefs.h <<_ACEOF
5267 #define _ICONV_ENABLE_EXTERNAL_CCS 1
5268 _ACEOF
5269
5270 fi
5271
5272 cat >>confdefs.h <<_ACEOF
5273 #define _NEWLIB_VERSION "1.15.0"
5274 _ACEOF
5275
5276
5277 if test "${multilib}" = "yes"; then
5278   multilib_arg="--enable-multilib"
5279 else
5280   multilib_arg=
5281 fi
5282
5283 if test "${newlib_iconv}" = "yes"; then
5284 cat >>confdefs.h <<_ACEOF
5285 #define _ICONV_ENABLED 1
5286 _ACEOF
5287
5288 fi
5289
5290 if test "x${newlib_iconv_external_ccs}" = "xyes"; then
5291   if test "x${newlib_iconv}" = "x"; then
5292       { { echo "$as_me:$LINENO: error: --enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" >&5
5293 echo "$as_me: error: --enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" >&2;}
5294    { (exit use --enable-newlib-iconv to enable it.); exit use --enable-newlib-iconv to enable it.; }; }
5295   fi
5296   cat >>confdefs.h <<_ACEOF
5297 #define _ICONV_ENABLE_EXTERNAL_CCS 1
5298 _ACEOF
5299
5300 fi
5301
5302 if test "${newlib_atexit_dynamic_alloc}" = "yes"; then
5303 cat >>confdefs.h <<_ACEOF
5304 #define _ATEXIT_DYNAMIC_ALLOC 1
5305 _ACEOF
5306
5307 fi
5308
5309
5310 if test "x${iconv_encodings}" != "x" \
5311    || test "x${iconv_to_encodings}" != "x" \
5312    || test "x${iconv_from_encodings}" != "x"; then
5313   if test "x${newlib_iconv}" = "x"; then
5314       { { echo "$as_me:$LINENO: error: --enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it." >&5
5315 echo "$as_me: error: --enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it." >&2;}
5316    { (exit 1); exit 1; }; }
5317   fi
5318
5319     iconv_encodings=`echo "${iconv_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
5320   iconv_to_encodings=`echo "${iconv_to_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
5321   iconv_from_encodings=`echo "${iconv_from_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
5322
5323       available_encodings=`cat "${srcdir}/libc/iconv/encoding.aliases" | sed -e '/^#.*/d'`
5324
5325
5326     iconv_encodings1="${iconv_encodings}"
5327   iconv_encodings=""
5328   for encoding in ${iconv_encodings1}; do
5329       result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
5330       if test $? != "0"; then
5331           { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
5332 echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
5333    { (exit 1); exit 1; }; }
5334       fi
5335       encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
5336       iconv_encodings="${iconv_encodings} ${encoding1}"
5337   done
5338     for encoding in ${iconv_encodings}; do
5339       opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5340       cat >>confdefs.h <<_ACEOF
5341 #define $opt 1
5342 _ACEOF
5343
5344       opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5345       cat >>confdefs.h <<_ACEOF
5346 #define $opt 1
5347 _ACEOF
5348
5349   done
5350
5351     iconv_encodings1="${iconv_to_encodings}"
5352   iconv_to_encodings=""
5353   for encoding in ${iconv_encodings1}; do
5354       result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
5355       if test $? != "0"; then
5356           { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
5357 echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
5358    { (exit 1); exit 1; }; }
5359       fi
5360       encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
5361       iconv_to_encodings="${iconv_to_encodings} ${encoding1}"
5362   done
5363     for encoding in ${iconv_to_encodings}; do
5364       opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5365       cat >>confdefs.h <<_ACEOF
5366 #define $opt 1
5367 _ACEOF
5368
5369   done
5370
5371     iconv_encodings1="${iconv_from_encodings}"
5372   iconv_from_encodings=""
5373   for encoding in ${iconv_encodings1}; do
5374       result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
5375       if test $? != "0"; then
5376           { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
5377 echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
5378    { (exit 1); exit 1; }; }
5379       fi
5380       encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
5381       iconv_from_encodings="${iconv_from_encodings} ${encoding1}"
5382   done
5383     for encoding in ${iconv_from_encodings}; do
5384       opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5385       cat >>confdefs.h <<_ACEOF
5386 #define $opt 1
5387 _ACEOF
5388
5389   done
5390 fi;
5391
5392 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
5393 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
5394 if test "${libc_cv_initfinit_array+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   cat > conftest.c <<EOF
5398 int _start (void) { return 0; }
5399 int __start (void) { return 0; }
5400 int foo (void) { return 1; }
5401 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
5402 EOF
5403 if { ac_try='${CC} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
5404                    -static -nostartfiles -nostdlib 1>&5'
5405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406   (eval $ac_try) 2>&5
5407   ac_status=$?
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); }; }
5410 then
5411   if ${READELF} -S conftest | grep -e INIT_ARRAY > /dev/null; then
5412     libc_cv_initfinit_array=yes
5413   else
5414     libc_cv_initfinit_array=no
5415   fi
5416 else
5417   libc_cv_initfinit_array=no
5418 fi
5419 rm -f conftest*
5420 fi
5421 echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
5422 echo "${ECHO_T}$libc_cv_initfinit_array" >&6
5423
5424 if test $libc_cv_initfinit_array = yes; then
5425   cat >>confdefs.h <<_ACEOF
5426 #define HAVE_INITFINI_ARRAY 1
5427 _ACEOF
5428
5429 fi
5430
5431 echo "$as_me:$LINENO: checking for array aliasing support" >&5
5432 echo $ECHO_N "checking for array aliasing support... $ECHO_C" >&6
5433 if test "${libc_cv_array_aliasing+set}" = set; then
5434   echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436   cat > conftest.c <<EOF
5437 char x3 = { 'a', 'b', 'c' };
5438 extern char y2 __attribute__((alias ("x+1")));
5439 EOF
5440 if { ac_try='${CC} $CFLAGS $CPPFLAGS -c conftest.c
5441                    1>&5'
5442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443   (eval $ac_try) 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }; }
5447 then
5448   libc_cv_array_aliasing=yes
5449 else
5450   libc_cv_array_aliasing=no
5451 fi
5452 rm -f conftest*
5453 fi
5454 echo "$as_me:$LINENO: result: $libc_cv_array_aliasing" >&5
5455 echo "${ECHO_T}$libc_cv_array_aliasing" >&6
5456
5457 if test $libc_cv_array_aliasing = yes; then
5458   cat >>confdefs.h <<_ACEOF
5459 #define _HAVE_ARRAY_ALIASING 1
5460 _ACEOF
5461
5462 fi
5463
5464           ac_config_files="$ac_config_files Makefile"
5465
5466 cat >confcache <<\_ACEOF
5467 # This file is a shell script that caches the results of configure
5468 # tests run on this system so they can be shared between configure
5469 # scripts and configure runs, see configure's option --config-cache.
5470 # It is not useful on other systems.  If it contains results you don't
5471 # want to keep, you may remove or edit it.
5472 #
5473 # config.status only pays attention to the cache file if you give it
5474 # the --recheck option to rerun configure.
5475 #
5476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5478 # following values.
5479
5480 _ACEOF
5481
5482 # The following way of writing the cache mishandles newlines in values,
5483 # but we know of no workaround that is simple, portable, and efficient.
5484 # So, don't put newlines in cache variables' values.
5485 # Ultrix sh set writes to stderr and can't be redirected directly,
5486 # and sets the high bit in the cache file unless we assign to the vars.
5487 {
5488   (set) 2>&1 |
5489     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5490     *ac_space=\ *)
5491       # `set' does not quote correctly, so add quotes (double-quote
5492       # substitution turns \\\\ into \\, and sed turns \\ into \).
5493       sed -n \
5494         "s/'/'\\\\''/g;
5495           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5496       ;;
5497     *)
5498       # `set' quotes correctly as required by POSIX, so do not add quotes.
5499       sed -n \
5500         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5501       ;;
5502     esac;
5503 } |
5504   sed '
5505      t clear
5506      : clear
5507      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5508      t end
5509      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5510      : end' >>confcache
5511 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5512   if test -w $cache_file; then
5513     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5514     cat confcache >$cache_file
5515   else
5516     echo "not updating unwritable cache $cache_file"
5517   fi
5518 fi
5519 rm -f confcache
5520
5521 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5522 # Let make expand exec_prefix.
5523 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5524
5525 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5526 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5527 # trailing colons and then remove the whole line if VPATH becomes empty
5528 # (actually we leave an empty line to preserve line numbers).
5529 if test "x$srcdir" = x.; then
5530   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5531 s/:*\$(srcdir):*/:/;
5532 s/:*\${srcdir}:*/:/;
5533 s/:*@srcdir@:*/:/;
5534 s/^\([^=]*=[     ]*\):*/\1/;
5535 s/:*$//;
5536 s/^[^=]*=[       ]*$//;
5537 }'
5538 fi
5539
5540 DEFS=-DHAVE_CONFIG_H
5541
5542 ac_libobjs=
5543 ac_ltlibobjs=
5544 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5545   # 1. Remove the extension, and $U if already installed.
5546   ac_i=`echo "$ac_i" |
5547          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5548   # 2. Add them.
5549   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5550   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5551 done
5552 LIBOBJS=$ac_libobjs
5553
5554 LTLIBOBJS=$ac_ltlibobjs
5555
5556
5557 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
5558   { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
5559 Usually this means the macro was only invoked conditionally." >&5
5560 echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
5561 Usually this means the macro was only invoked conditionally." >&2;}
5562    { (exit 1); exit 1; }; }
5563 fi
5564 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5565   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5566 Usually this means the macro was only invoked conditionally." >&5
5567 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5568 Usually this means the macro was only invoked conditionally." >&2;}
5569    { (exit 1); exit 1; }; }
5570 fi
5571 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5572   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5573 Usually this means the macro was only invoked conditionally." >&5
5574 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5575 Usually this means the macro was only invoked conditionally." >&2;}
5576    { (exit 1); exit 1; }; }
5577 fi
5578 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5579   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5580 Usually this means the macro was only invoked conditionally." >&5
5581 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5582 Usually this means the macro was only invoked conditionally." >&2;}
5583    { (exit 1); exit 1; }; }
5584 fi
5585 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
5586   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
5587 Usually this means the macro was only invoked conditionally." >&5
5588 echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
5589 Usually this means the macro was only invoked conditionally." >&2;}
5590    { (exit 1); exit 1; }; }
5591 fi
5592 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
5593   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
5594 Usually this means the macro was only invoked conditionally." >&5
5595 echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
5596 Usually this means the macro was only invoked conditionally." >&2;}
5597    { (exit 1); exit 1; }; }
5598 fi
5599 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
5600   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
5601 Usually this means the macro was only invoked conditionally." >&5
5602 echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
5603 Usually this means the macro was only invoked conditionally." >&2;}
5604    { (exit 1); exit 1; }; }
5605 fi
5606 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
5607   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
5608 Usually this means the macro was only invoked conditionally." >&5
5609 echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
5610 Usually this means the macro was only invoked conditionally." >&2;}
5611    { (exit 1); exit 1; }; }
5612 fi
5613 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
5614   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
5615 Usually this means the macro was only invoked conditionally." >&5
5616 echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
5617 Usually this means the macro was only invoked conditionally." >&2;}
5618    { (exit 1); exit 1; }; }
5619 fi
5620 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
5621   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
5622 Usually this means the macro was only invoked conditionally." >&5
5623 echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
5624 Usually this means the macro was only invoked conditionally." >&2;}
5625    { (exit 1); exit 1; }; }
5626 fi
5627 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5628   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5629 Usually this means the macro was only invoked conditionally." >&5
5630 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5631 Usually this means the macro was only invoked conditionally." >&2;}
5632    { (exit 1); exit 1; }; }
5633 fi
5634 if test -z "${NEWLIB_HW_FP_TRUE}" && test -z "${NEWLIB_HW_FP_FALSE}"; then
5635   { { echo "$as_me:$LINENO: error: conditional \"NEWLIB_HW_FP\" was never defined.
5636 Usually this means the macro was only invoked conditionally." >&5
5637 echo "$as_me: error: conditional \"NEWLIB_HW_FP\" was never defined.
5638 Usually this means the macro was only invoked conditionally." >&2;}
5639    { (exit 1); exit 1; }; }
5640 fi
5641 if test -z "${HAVE_DOC_TRUE}" && test -z "${HAVE_DOC_FALSE}"; then
5642   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOC\" was never defined.
5643 Usually this means the macro was only invoked conditionally." >&5
5644 echo "$as_me: error: conditional \"HAVE_DOC\" was never defined.
5645 Usually this means the macro was only invoked conditionally." >&2;}
5646    { (exit 1); exit 1; }; }
5647 fi
5648
5649 : ${CONFIG_STATUS=./config.status}
5650 ac_clean_files_save=$ac_clean_files
5651 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5652 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5653 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5654 cat >$CONFIG_STATUS <<_ACEOF
5655 #! $SHELL
5656 # Generated by $as_me.
5657 # Run this file to recreate the current configuration.
5658 # Compiler output produced by configure, useful for debugging
5659 # configure, is in config.log if it exists.
5660
5661 debug=false
5662 ac_cs_recheck=false
5663 ac_cs_silent=false
5664 SHELL=\${CONFIG_SHELL-$SHELL}
5665 _ACEOF
5666
5667 cat >>$CONFIG_STATUS <<\_ACEOF
5668 ## --------------------- ##
5669 ## M4sh Initialization.  ##
5670 ## --------------------- ##
5671
5672 # Be Bourne compatible
5673 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5674   emulate sh
5675   NULLCMD=:
5676   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5677   # is contrary to our usage.  Disable this feature.
5678   alias -g '${1+"$@"}'='"$@"'
5679 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5680   set -o posix
5681 fi
5682 DUALCASE=1; export DUALCASE # for MKS sh
5683
5684 # Support unset when possible.
5685 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5686   as_unset=unset
5687 else
5688   as_unset=false
5689 fi
5690
5691
5692 # Work around bugs in pre-3.0 UWIN ksh.
5693 $as_unset ENV MAIL MAILPATH
5694 PS1='$ '
5695 PS2='> '
5696 PS4='+ '
5697
5698 # NLS nuisances.
5699 for as_var in \
5700   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5701   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5702   LC_TELEPHONE LC_TIME
5703 do
5704   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5705     eval $as_var=C; export $as_var
5706   else
5707     $as_unset $as_var
5708   fi
5709 done
5710
5711 # Required to use basename.
5712 if expr a : '\(a\)' >/dev/null 2>&1; then
5713   as_expr=expr
5714 else
5715   as_expr=false
5716 fi
5717
5718 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5719   as_basename=basename
5720 else
5721   as_basename=false
5722 fi
5723
5724
5725 # Name of the executable.
5726 as_me=`$as_basename "$0" ||
5727 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5728          X"$0" : 'X\(//\)$' \| \
5729          X"$0" : 'X\(/\)$' \| \
5730          .     : '\(.\)' 2>/dev/null ||
5731 echo X/"$0" |
5732     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5733           /^X\/\(\/\/\)$/{ s//\1/; q; }
5734           /^X\/\(\/\).*/{ s//\1/; q; }
5735           s/.*/./; q'`
5736
5737
5738 # PATH needs CR, and LINENO needs CR and PATH.
5739 # Avoid depending upon Character Ranges.
5740 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5741 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5742 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5743 as_cr_digits='0123456789'
5744 as_cr_alnum=$as_cr_Letters$as_cr_digits
5745
5746 # The user is always right.
5747 if test "${PATH_SEPARATOR+set}" != set; then
5748   echo "#! /bin/sh" >conf$$.sh
5749   echo  "exit 0"   >>conf$$.sh
5750   chmod +x conf$$.sh
5751   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5752     PATH_SEPARATOR=';'
5753   else
5754     PATH_SEPARATOR=:
5755   fi
5756   rm -f conf$$.sh
5757 fi
5758
5759
5760   as_lineno_1=$LINENO
5761   as_lineno_2=$LINENO
5762   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5763   test "x$as_lineno_1" != "x$as_lineno_2" &&
5764   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5765   # Find who we are.  Look in the path if we contain no path at all
5766   # relative or not.
5767   case $0 in
5768     *[\\/]* ) as_myself=$0 ;;
5769     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772   IFS=$as_save_IFS
5773   test -z "$as_dir" && as_dir=.
5774   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5775 done
5776
5777        ;;
5778   esac
5779   # We did not find ourselves, most probably we were run as `sh COMMAND'
5780   # in which case we are not to be found in the path.
5781   if test "x$as_myself" = x; then
5782     as_myself=$0
5783   fi
5784   if test ! -f "$as_myself"; then
5785     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5786 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5787    { (exit 1); exit 1; }; }
5788   fi
5789   case $CONFIG_SHELL in
5790   '')
5791     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5793 do
5794   IFS=$as_save_IFS
5795   test -z "$as_dir" && as_dir=.
5796   for as_base in sh bash ksh sh5; do
5797          case $as_dir in
5798          /*)
5799            if ("$as_dir/$as_base" -c '
5800   as_lineno_1=$LINENO
5801   as_lineno_2=$LINENO
5802   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5803   test "x$as_lineno_1" != "x$as_lineno_2" &&
5804   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5805              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5806              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5807              CONFIG_SHELL=$as_dir/$as_base
5808              export CONFIG_SHELL
5809              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5810            fi;;
5811          esac
5812        done
5813 done
5814 ;;
5815   esac
5816
5817   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5818   # uniformly replaced by the line number.  The first 'sed' inserts a
5819   # line-number line before each line; the second 'sed' does the real
5820   # work.  The second script uses 'N' to pair each line-number line
5821   # with the numbered line, and appends trailing '-' during
5822   # substitution so that $LINENO is not a special case at line end.
5823   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5824   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5825   sed '=' <$as_myself |
5826     sed '
5827       N
5828       s,$,-,
5829       : loop
5830       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5831       t loop
5832       s,-$,,
5833       s,^['$as_cr_digits']*\n,,
5834     ' >$as_me.lineno &&
5835   chmod +x $as_me.lineno ||
5836     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5837 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5838    { (exit 1); exit 1; }; }
5839
5840   # Don't try to exec as it changes $[0], causing all sort of problems
5841   # (the dirname of $[0] is not the place where we might find the
5842   # original and so on.  Autoconf is especially sensible to this).
5843   . ./$as_me.lineno
5844   # Exit status is that of the last command.
5845   exit
5846 }
5847
5848
5849 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5850   *c*,-n*) ECHO_N= ECHO_C='
5851 ' ECHO_T='      ' ;;
5852   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5853   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5854 esac
5855
5856 if expr a : '\(a\)' >/dev/null 2>&1; then
5857   as_expr=expr
5858 else
5859   as_expr=false
5860 fi
5861
5862 rm -f conf$$ conf$$.exe conf$$.file
5863 echo >conf$$.file
5864 if ln -s conf$$.file conf$$ 2>/dev/null; then
5865   # We could just check for DJGPP; but this test a) works b) is more generic
5866   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5867   if test -f conf$$.exe; then
5868     # Don't use ln at all; we don't have any links
5869     as_ln_s='cp -p'
5870   else
5871     as_ln_s='ln -s'
5872   fi
5873 elif ln conf$$.file conf$$ 2>/dev/null; then
5874   as_ln_s=ln
5875 else
5876   as_ln_s='cp -p'
5877 fi
5878 rm -f conf$$ conf$$.exe conf$$.file
5879
5880 if mkdir -p . 2>/dev/null; then
5881   as_mkdir_p=:
5882 else
5883   test -d ./-p && rmdir ./-p
5884   as_mkdir_p=false
5885 fi
5886
5887 as_executable_p="test -f"
5888
5889 # Sed expression to map a string onto a valid CPP name.
5890 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5891
5892 # Sed expression to map a string onto a valid variable name.
5893 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5894
5895
5896 # IFS
5897 # We need space, tab and new line, in precisely that order.
5898 as_nl='
5899 '
5900 IFS="   $as_nl"
5901
5902 # CDPATH.
5903 $as_unset CDPATH
5904
5905 exec 6>&1
5906
5907 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5908 # report actual input values of CONFIG_FILES etc. instead of their
5909 # values after options handling.  Logging --version etc. is OK.
5910 exec 5>>config.log
5911 {
5912   echo
5913   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5914 ## Running $as_me. ##
5915 _ASBOX
5916 } >&5
5917 cat >&5 <<_CSEOF
5918
5919 This file was extended by newlib $as_me 1.15.0, which was
5920 generated by GNU Autoconf 2.59.  Invocation command line was
5921
5922   CONFIG_FILES    = $CONFIG_FILES
5923   CONFIG_HEADERS  = $CONFIG_HEADERS
5924   CONFIG_LINKS    = $CONFIG_LINKS
5925   CONFIG_COMMANDS = $CONFIG_COMMANDS
5926   $ $0 $@
5927
5928 _CSEOF
5929 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5930 echo >&5
5931 _ACEOF
5932
5933 # Files that config.status was made for.
5934 if test -n "$ac_config_files"; then
5935   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5936 fi
5937
5938 if test -n "$ac_config_headers"; then
5939   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5940 fi
5941
5942 if test -n "$ac_config_links"; then
5943   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5944 fi
5945
5946 if test -n "$ac_config_commands"; then
5947   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5948 fi
5949
5950 cat >>$CONFIG_STATUS <<\_ACEOF
5951
5952 ac_cs_usage="\
5953 \`$as_me' instantiates files from templates according to the
5954 current configuration.
5955
5956 Usage: $0 [OPTIONS] [FILE]...
5957
5958   -h, --help       print this help, then exit
5959   -V, --version    print version number, then exit
5960   -q, --quiet      do not print progress messages
5961   -d, --debug      don't remove temporary files
5962       --recheck    update $as_me by reconfiguring in the same conditions
5963   --file=FILE[:TEMPLATE]
5964                    instantiate the configuration file FILE
5965   --header=FILE[:TEMPLATE]
5966                    instantiate the configuration header FILE
5967
5968 Configuration files:
5969 $config_files
5970
5971 Configuration headers:
5972 $config_headers
5973
5974 Configuration commands:
5975 $config_commands
5976
5977 Report bugs to <bug-autoconf@gnu.org>."
5978 _ACEOF
5979
5980 cat >>$CONFIG_STATUS <<_ACEOF
5981 ac_cs_version="\\
5982 newlib config.status 1.15.0
5983 configured by $0, generated by GNU Autoconf 2.59,
5984   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5985
5986 Copyright (C) 2003 Free Software Foundation, Inc.
5987 This config.status script is free software; the Free Software Foundation
5988 gives unlimited permission to copy, distribute and modify it."
5989 srcdir=$srcdir
5990 INSTALL="$INSTALL"
5991 _ACEOF
5992
5993 cat >>$CONFIG_STATUS <<\_ACEOF
5994 # If no file are specified by the user, then we need to provide default
5995 # value.  By we need to know if files were specified by the user.
5996 ac_need_defaults=:
5997 while test $# != 0
5998 do
5999   case $1 in
6000   --*=*)
6001     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6002     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6003     ac_shift=:
6004     ;;
6005   -*)
6006     ac_option=$1
6007     ac_optarg=$2
6008     ac_shift=shift
6009     ;;
6010   *) # This is not an option, so the user has probably given explicit
6011      # arguments.
6012      ac_option=$1
6013      ac_need_defaults=false;;
6014   esac
6015
6016   case $ac_option in
6017   # Handling of the options.
6018 _ACEOF
6019 cat >>$CONFIG_STATUS <<\_ACEOF
6020   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6021     ac_cs_recheck=: ;;
6022   --version | --vers* | -V )
6023     echo "$ac_cs_version"; exit 0 ;;
6024   --he | --h)
6025     # Conflict between --help and --header
6026     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6027 Try \`$0 --help' for more information." >&5
6028 echo "$as_me: error: ambiguous option: $1
6029 Try \`$0 --help' for more information." >&2;}
6030    { (exit 1); exit 1; }; };;
6031   --help | --hel | -h )
6032     echo "$ac_cs_usage"; exit 0 ;;
6033   --debug | --d* | -d )
6034     debug=: ;;
6035   --file | --fil | --fi | --f )
6036     $ac_shift
6037     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6038     ac_need_defaults=false;;
6039   --header | --heade | --head | --hea )
6040     $ac_shift
6041     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6042     ac_need_defaults=false;;
6043   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6044   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6045     ac_cs_silent=: ;;
6046
6047   # This is an error.
6048   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6049 Try \`$0 --help' for more information." >&5
6050 echo "$as_me: error: unrecognized option: $1
6051 Try \`$0 --help' for more information." >&2;}
6052    { (exit 1); exit 1; }; } ;;
6053
6054   *) ac_config_targets="$ac_config_targets $1" ;;
6055
6056   esac
6057   shift
6058 done
6059
6060 ac_configure_extra_args=
6061
6062 if $ac_cs_silent; then
6063   exec 6>/dev/null
6064   ac_configure_extra_args="$ac_configure_extra_args --silent"
6065 fi
6066
6067 _ACEOF
6068 cat >>$CONFIG_STATUS <<_ACEOF
6069 if \$ac_cs_recheck; then
6070   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6071   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6072 fi
6073
6074 _ACEOF
6075
6076 cat >>$CONFIG_STATUS <<_ACEOF
6077 #
6078 # INIT-COMMANDS section.
6079 #
6080
6081 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6082 srcdir=${srcdir}
6083 host=${host}
6084 with_multisubdir=${with_multisubdir}
6085 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6086 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6087 newlib_basedir=${newlib_basedir}
6088 CC="${CC}"
6089 LDFLAGS="${LDFLAGS}"
6090
6091
6092 _ACEOF
6093
6094
6095
6096 cat >>$CONFIG_STATUS <<\_ACEOF
6097 for ac_config_target in $ac_config_targets
6098 do
6099   case "$ac_config_target" in
6100   # Handling of arguments.
6101   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6102   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6103   "newlib.h" ) CONFIG_HEADERS="$CONFIG_HEADERS newlib.h:newlib.hin" ;;
6104   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6105 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6106    { (exit 1); exit 1; }; };;
6107   esac
6108 done
6109
6110 # If the user did not use the arguments to specify the items to instantiate,
6111 # then the envvar interface is used.  Set only those that are not.
6112 # We use the long form for the default assignment because of an extremely
6113 # bizarre bug on SunOS 4.1.3.
6114 if $ac_need_defaults; then
6115   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6116   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6117   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6118 fi
6119
6120 # Have a temporary directory for convenience.  Make it in the build tree
6121 # simply because there is no reason to put it here, and in addition,
6122 # creating and moving files from /tmp can sometimes cause problems.
6123 # Create a temporary directory, and hook for its removal unless debugging.
6124 $debug ||
6125 {
6126   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6127   trap '{ (exit 1); exit 1; }' 1 2 13 15
6128 }
6129
6130 # Create a (secure) tmp directory for tmp files.
6131
6132 {
6133   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6134   test -n "$tmp" && test -d "$tmp"
6135 }  ||
6136 {
6137   tmp=./confstat$$-$RANDOM
6138   (umask 077 && mkdir $tmp)
6139 } ||
6140 {
6141    echo "$me: cannot create a temporary directory in ." >&2
6142    { (exit 1); exit 1; }
6143 }
6144
6145 _ACEOF
6146
6147 cat >>$CONFIG_STATUS <<_ACEOF
6148
6149 #
6150 # CONFIG_FILES section.
6151 #
6152
6153 # No need to generate the scripts if there are no CONFIG_FILES.
6154 # This happens for instance when ./config.status config.h
6155 if test -n "\$CONFIG_FILES"; then
6156   # Protect against being on the right side of a sed subst in config.status.
6157   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6158    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6159 s,@SHELL@,$SHELL,;t t
6160 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6161 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6162 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6163 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6164 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6165 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6166 s,@exec_prefix@,$exec_prefix,;t t
6167 s,@prefix@,$prefix,;t t
6168 s,@program_transform_name@,$program_transform_name,;t t
6169 s,@bindir@,$bindir,;t t
6170 s,@sbindir@,$sbindir,;t t
6171 s,@libexecdir@,$libexecdir,;t t
6172 s,@datadir@,$datadir,;t t
6173 s,@sysconfdir@,$sysconfdir,;t t
6174 s,@sharedstatedir@,$sharedstatedir,;t t
6175 s,@localstatedir@,$localstatedir,;t t
6176 s,@libdir@,$libdir,;t t
6177 s,@includedir@,$includedir,;t t
6178 s,@oldincludedir@,$oldincludedir,;t t
6179 s,@infodir@,$infodir,;t t
6180 s,@mandir@,$mandir,;t t
6181 s,@build_alias@,$build_alias,;t t
6182 s,@host_alias@,$host_alias,;t t
6183 s,@target_alias@,$target_alias,;t t
6184 s,@DEFS@,$DEFS,;t t
6185 s,@ECHO_C@,$ECHO_C,;t t
6186 s,@ECHO_N@,$ECHO_N,;t t
6187 s,@ECHO_T@,$ECHO_T,;t t
6188 s,@LIBS@,$LIBS,;t t
6189 s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
6190 s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
6191 s,@newlib_basedir@,$newlib_basedir,;t t
6192 s,@build@,$build,;t t
6193 s,@build_cpu@,$build_cpu,;t t
6194 s,@build_vendor@,$build_vendor,;t t
6195 s,@build_os@,$build_os,;t t
6196 s,@host@,$host,;t t
6197 s,@host_cpu@,$host_cpu,;t t
6198 s,@host_vendor@,$host_vendor,;t t
6199 s,@host_os@,$host_os,;t t
6200 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6201 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6202 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6203 s,@CYGPATH_W@,$CYGPATH_W,;t t
6204 s,@PACKAGE@,$PACKAGE,;t t
6205 s,@VERSION@,$VERSION,;t t
6206 s,@ACLOCAL@,$ACLOCAL,;t t
6207 s,@AUTOCONF@,$AUTOCONF,;t t
6208 s,@AUTOMAKE@,$AUTOMAKE,;t t
6209 s,@AUTOHEADER@,$AUTOHEADER,;t t
6210 s,@MAKEINFO@,$MAKEINFO,;t t
6211 s,@install_sh@,$install_sh,;t t
6212 s,@STRIP@,$STRIP,;t t
6213 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6214 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6215 s,@mkdir_p@,$mkdir_p,;t t
6216 s,@AWK@,$AWK,;t t
6217 s,@SET_MAKE@,$SET_MAKE,;t t
6218 s,@am__leading_dot@,$am__leading_dot,;t t
6219 s,@AMTAR@,$AMTAR,;t t
6220 s,@am__tar@,$am__tar,;t t
6221 s,@am__untar@,$am__untar,;t t
6222 s,@CC@,$CC,;t t
6223 s,@DEPDIR@,$DEPDIR,;t t
6224 s,@am__include@,$am__include,;t t
6225 s,@am__quote@,$am__quote,;t t
6226 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6227 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6228 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6229 s,@CCDEPMODE@,$CCDEPMODE,;t t
6230 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6231 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6232 s,@AS@,$AS,;t t
6233 s,@ac_ct_AS@,$ac_ct_AS,;t t
6234 s,@AR@,$AR,;t t
6235 s,@ac_ct_AR@,$ac_ct_AR,;t t
6236 s,@RANLIB@,$RANLIB,;t t
6237 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6238 s,@READELF@,$READELF,;t t
6239 s,@ac_ct_READELF@,$ac_ct_READELF,;t t
6240 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6241 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6242 s,@MAINT@,$MAINT,;t t
6243 s,@CCAS@,$CCAS,;t t
6244 s,@CCASFLAGS@,$CCASFLAGS,;t t
6245 s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
6246 s,@LDFLAGS@,$LDFLAGS,;t t
6247 s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
6248 s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
6249 s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
6250 s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
6251 s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
6252 s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
6253 s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
6254 s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
6255 s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
6256 s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
6257 s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
6258 s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
6259 s,@OBJEXT@,$OBJEXT,;t t
6260 s,@oext@,$oext,;t t
6261 s,@aext@,$aext,;t t
6262 s,@lpfx@,$lpfx,;t t
6263 s,@libm_machine_dir@,$libm_machine_dir,;t t
6264 s,@machine_dir@,$machine_dir,;t t
6265 s,@sys_dir@,$sys_dir,;t t
6266 s,@CFLAGS@,$CFLAGS,;t t
6267 s,@CPPFLAGS@,$CPPFLAGS,;t t
6268 s,@ac_ct_CC@,$ac_ct_CC,;t t
6269 s,@EXEEXT@,$EXEEXT,;t t
6270 s,@LN_S@,$LN_S,;t t
6271 s,@LIBTOOL@,$LIBTOOL,;t t
6272 s,@NEWLIB_HW_FP_TRUE@,$NEWLIB_HW_FP_TRUE,;t t
6273 s,@NEWLIB_HW_FP_FALSE@,$NEWLIB_HW_FP_FALSE,;t t
6274 s,@CC_FOR_NEWLIB@,$CC_FOR_NEWLIB,;t t
6275 s,@subdirs@,$subdirs,;t t
6276 s,@HAVE_DOC_TRUE@,$HAVE_DOC_TRUE,;t t
6277 s,@HAVE_DOC_FALSE@,$HAVE_DOC_FALSE,;t t
6278 s,@EXTRA_DIRS@,$EXTRA_DIRS,;t t
6279 s,@CRT0@,$CRT0,;t t
6280 s,@CRT0_DIR@,$CRT0_DIR,;t t
6281 s,@CRT1@,$CRT1,;t t
6282 s,@CRT1_DIR@,$CRT1_DIR,;t t
6283 s,@LIBM_MACHINE_OBJECTLIST@,$LIBM_MACHINE_OBJECTLIST,;t t
6284 s,@MACHINE_OBJECTLIST@,$MACHINE_OBJECTLIST,;t t
6285 s,@SYS_OBJECTLIST@,$SYS_OBJECTLIST,;t t
6286 s,@SYS_MACH_OBJECTLIST@,$SYS_MACH_OBJECTLIST,;t t
6287 s,@POSIX_OBJECTLIST@,$POSIX_OBJECTLIST,;t t
6288 s,@SIGNAL_OBJECTLIST@,$SIGNAL_OBJECTLIST,;t t
6289 s,@SYSCALL_OBJECTLIST@,$SYSCALL_OBJECTLIST,;t t
6290 s,@UNIX_OBJECTLIST@,$UNIX_OBJECTLIST,;t t
6291 s,@STDIO64_OBJECTLIST@,$STDIO64_OBJECTLIST,;t t
6292 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
6293 s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
6294 s,@libc_cv_array_aliasing@,$libc_cv_array_aliasing,;t t
6295 s,@LIBOBJS@,$LIBOBJS,;t t
6296 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6297 CEOF
6298
6299 _ACEOF
6300
6301   cat >>$CONFIG_STATUS <<\_ACEOF
6302   # Split the substitutions into bite-sized pieces for seds with
6303   # small command number limits, like on Digital OSF/1 and HP-UX.
6304   ac_max_sed_lines=48
6305   ac_sed_frag=1 # Number of current file.
6306   ac_beg=1 # First line for current file.
6307   ac_end=$ac_max_sed_lines # Line after last line for current file.
6308   ac_more_lines=:
6309   ac_sed_cmds=
6310   while $ac_more_lines; do
6311     if test $ac_beg -gt 1; then
6312       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6313     else
6314       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6315     fi
6316     if test ! -s $tmp/subs.frag; then
6317       ac_more_lines=false
6318     else
6319       # The purpose of the label and of the branching condition is to
6320       # speed up the sed processing (if there are no `@' at all, there
6321       # is no need to browse any of the substitutions).
6322       # These are the two extra sed commands mentioned above.
6323       (echo ':t
6324   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6325       if test -z "$ac_sed_cmds"; then
6326         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6327       else
6328         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6329       fi
6330       ac_sed_frag=`expr $ac_sed_frag + 1`
6331       ac_beg=$ac_end
6332       ac_end=`expr $ac_end + $ac_max_sed_lines`
6333     fi
6334   done
6335   if test -z "$ac_sed_cmds"; then
6336     ac_sed_cmds=cat
6337   fi
6338 fi # test -n "$CONFIG_FILES"
6339
6340 _ACEOF
6341 cat >>$CONFIG_STATUS <<\_ACEOF
6342 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6343   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6344   case $ac_file in
6345   - | *:- | *:-:* ) # input from stdin
6346         cat >$tmp/stdin
6347         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6348         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6349   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6350         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6351   * )   ac_file_in=$ac_file.in ;;
6352   esac
6353
6354   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6355   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6356 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6357          X"$ac_file" : 'X\(//\)[^/]' \| \
6358          X"$ac_file" : 'X\(//\)$' \| \
6359          X"$ac_file" : 'X\(/\)' \| \
6360          .     : '\(.\)' 2>/dev/null ||
6361 echo X"$ac_file" |
6362     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6363           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6364           /^X\(\/\/\)$/{ s//\1/; q; }
6365           /^X\(\/\).*/{ s//\1/; q; }
6366           s/.*/./; q'`
6367   { if $as_mkdir_p; then
6368     mkdir -p "$ac_dir"
6369   else
6370     as_dir="$ac_dir"
6371     as_dirs=
6372     while test ! -d "$as_dir"; do
6373       as_dirs="$as_dir $as_dirs"
6374       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6376          X"$as_dir" : 'X\(//\)[^/]' \| \
6377          X"$as_dir" : 'X\(//\)$' \| \
6378          X"$as_dir" : 'X\(/\)' \| \
6379          .     : '\(.\)' 2>/dev/null ||
6380 echo X"$as_dir" |
6381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6382           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6383           /^X\(\/\/\)$/{ s//\1/; q; }
6384           /^X\(\/\).*/{ s//\1/; q; }
6385           s/.*/./; q'`
6386     done
6387     test ! -n "$as_dirs" || mkdir $as_dirs
6388   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6389 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6390    { (exit 1); exit 1; }; }; }
6391
6392   ac_builddir=.
6393
6394 if test "$ac_dir" != .; then
6395   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6396   # A "../" for each directory in $ac_dir_suffix.
6397   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6398 else
6399   ac_dir_suffix= ac_top_builddir=
6400 fi
6401
6402 case $srcdir in
6403   .)  # No --srcdir option.  We are building in place.
6404     ac_srcdir=.
6405     if test -z "$ac_top_builddir"; then
6406        ac_top_srcdir=.
6407     else
6408        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6409     fi ;;
6410   [\\/]* | ?:[\\/]* )  # Absolute path.
6411     ac_srcdir=$srcdir$ac_dir_suffix;
6412     ac_top_srcdir=$srcdir ;;
6413   *) # Relative path.
6414     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6415     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6416 esac
6417
6418 # Do not use `cd foo && pwd` to compute absolute paths, because
6419 # the directories may not exist.
6420 case `pwd` in
6421 .) ac_abs_builddir="$ac_dir";;
6422 *)
6423   case "$ac_dir" in
6424   .) ac_abs_builddir=`pwd`;;
6425   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6426   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6427   esac;;
6428 esac
6429 case $ac_abs_builddir in
6430 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6431 *)
6432   case ${ac_top_builddir}. in
6433   .) ac_abs_top_builddir=$ac_abs_builddir;;
6434   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6435   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6436   esac;;
6437 esac
6438 case $ac_abs_builddir in
6439 .) ac_abs_srcdir=$ac_srcdir;;
6440 *)
6441   case $ac_srcdir in
6442   .) ac_abs_srcdir=$ac_abs_builddir;;
6443   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6444   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6445   esac;;
6446 esac
6447 case $ac_abs_builddir in
6448 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6449 *)
6450   case $ac_top_srcdir in
6451   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6452   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6453   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6454   esac;;
6455 esac
6456
6457
6458   case $INSTALL in
6459   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6460   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6461   esac
6462
6463   if test x"$ac_file" != x-; then
6464     { echo "$as_me:$LINENO: creating $ac_file" >&5
6465 echo "$as_me: creating $ac_file" >&6;}
6466     rm -f "$ac_file"
6467   fi
6468   # Let's still pretend it is `configure' which instantiates (i.e., don't
6469   # use $as_me), people would be surprised to read:
6470   #    /* config.h.  Generated by config.status.  */
6471   if test x"$ac_file" = x-; then
6472     configure_input=
6473   else
6474     configure_input="$ac_file.  "
6475   fi
6476   configure_input=$configure_input"Generated from `echo $ac_file_in |
6477                                      sed 's,.*/,,'` by configure."
6478
6479   # First look for the input files in the build tree, otherwise in the
6480   # src tree.
6481   ac_file_inputs=`IFS=:
6482     for f in $ac_file_in; do
6483       case $f in
6484       -) echo $tmp/stdin ;;
6485       [\\/$]*)
6486          # Absolute (can't be DOS-style, as IFS=:)
6487          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6488 echo "$as_me: error: cannot find input file: $f" >&2;}
6489    { (exit 1); exit 1; }; }
6490          echo "$f";;
6491       *) # Relative
6492          if test -f "$f"; then
6493            # Build tree
6494            echo "$f"
6495          elif test -f "$srcdir/$f"; then
6496            # Source tree
6497            echo "$srcdir/$f"
6498          else
6499            # /dev/null tree
6500            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6501 echo "$as_me: error: cannot find input file: $f" >&2;}
6502    { (exit 1); exit 1; }; }
6503          fi;;
6504       esac
6505     done` || { (exit 1); exit 1; }
6506 _ACEOF
6507 cat >>$CONFIG_STATUS <<_ACEOF
6508   sed "$ac_vpsub
6509 $extrasub
6510 _ACEOF
6511 cat >>$CONFIG_STATUS <<\_ACEOF
6512 :t
6513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6514 s,@configure_input@,$configure_input,;t t
6515 s,@srcdir@,$ac_srcdir,;t t
6516 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6517 s,@top_srcdir@,$ac_top_srcdir,;t t
6518 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6519 s,@builddir@,$ac_builddir,;t t
6520 s,@abs_builddir@,$ac_abs_builddir,;t t
6521 s,@top_builddir@,$ac_top_builddir,;t t
6522 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6523 s,@INSTALL@,$ac_INSTALL,;t t
6524 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6525   rm -f $tmp/stdin
6526   if test x"$ac_file" != x-; then
6527     mv $tmp/out $ac_file
6528   else
6529     cat $tmp/out
6530     rm -f $tmp/out
6531   fi
6532
6533   # Run the commands associated with the file.
6534   case $ac_file in
6535     Makefile ) if test -n "$CONFIG_FILES"; then
6536   unset ac_file
6537   . ${newlib_basedir}/../config-ml.in
6538 fi ;;
6539   esac
6540 done
6541 _ACEOF
6542 cat >>$CONFIG_STATUS <<\_ACEOF
6543
6544 #
6545 # CONFIG_HEADER section.
6546 #
6547
6548 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6549 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6550 #
6551 # ac_d sets the value in "#define NAME VALUE" lines.
6552 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
6553 ac_dB='[         ].*$,\1#\2'
6554 ac_dC=' '
6555 ac_dD=',;t'
6556 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6557 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6558 ac_uB='$,\1#\2define\3'
6559 ac_uC=' '
6560 ac_uD=',;t'
6561
6562 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6563   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6564   case $ac_file in
6565   - | *:- | *:-:* ) # input from stdin
6566         cat >$tmp/stdin
6567         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6568         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6569   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6570         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6571   * )   ac_file_in=$ac_file.in ;;
6572   esac
6573
6574   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6575 echo "$as_me: creating $ac_file" >&6;}
6576
6577   # First look for the input files in the build tree, otherwise in the
6578   # src tree.
6579   ac_file_inputs=`IFS=:
6580     for f in $ac_file_in; do
6581       case $f in
6582       -) echo $tmp/stdin ;;
6583       [\\/$]*)
6584          # Absolute (can't be DOS-style, as IFS=:)
6585          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6586 echo "$as_me: error: cannot find input file: $f" >&2;}
6587    { (exit 1); exit 1; }; }
6588          # Do quote $f, to prevent DOS paths from being IFS'd.
6589          echo "$f";;
6590       *) # Relative
6591          if test -f "$f"; then
6592            # Build tree
6593            echo "$f"
6594          elif test -f "$srcdir/$f"; then
6595            # Source tree
6596            echo "$srcdir/$f"
6597          else
6598            # /dev/null tree
6599            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6600 echo "$as_me: error: cannot find input file: $f" >&2;}
6601    { (exit 1); exit 1; }; }
6602          fi;;
6603       esac
6604     done` || { (exit 1); exit 1; }
6605   # Remove the trailing spaces.
6606   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
6607
6608 _ACEOF
6609
6610 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6611 # `conftest.undefs', that substitutes the proper values into
6612 # config.h.in to produce config.h.  The first handles `#define'
6613 # templates, and the second `#undef' templates.
6614 # And first: Protect against being on the right side of a sed subst in
6615 # config.status.  Protect against being in an unquoted here document
6616 # in config.status.
6617 rm -f conftest.defines conftest.undefs
6618 # Using a here document instead of a string reduces the quoting nightmare.
6619 # Putting comments in sed scripts is not portable.
6620 #
6621 # `end' is used to avoid that the second main sed command (meant for
6622 # 0-ary CPP macros) applies to n-ary macro definitions.
6623 # See the Autoconf documentation for `clear'.
6624 cat >confdef2sed.sed <<\_ACEOF
6625 s/[\\&,]/\\&/g
6626 s,[\\$`],\\&,g
6627 t clear
6628 : clear
6629 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6630 t end
6631 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6632 : end
6633 _ACEOF
6634 # If some macros were called several times there might be several times
6635 # the same #defines, which is useless.  Nevertheless, we may not want to
6636 # sort them, since we want the *last* AC-DEFINE to be honored.
6637 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6638 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6639 rm -f confdef2sed.sed
6640
6641 # This sed command replaces #undef with comments.  This is necessary, for
6642 # example, in the case of _POSIX_SOURCE, which is predefined and required
6643 # on some systems where configure will not decide to define it.
6644 cat >>conftest.undefs <<\_ACEOF
6645 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6646 _ACEOF
6647
6648 # Break up conftest.defines because some shells have a limit on the size
6649 # of here documents, and old seds have small limits too (100 cmds).
6650 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6651 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6652 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6653 echo '  :' >>$CONFIG_STATUS
6654 rm -f conftest.tail
6655 while grep . conftest.defines >/dev/null
6656 do
6657   # Write a limited-size here document to $tmp/defines.sed.
6658   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6659   # Speed up: don't consider the non `#define' lines.
6660   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
6661   # Work around the forget-to-reset-the-flag bug.
6662   echo 't clr' >>$CONFIG_STATUS
6663   echo ': clr' >>$CONFIG_STATUS
6664   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6665   echo 'CEOF
6666   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6667   rm -f $tmp/in
6668   mv $tmp/out $tmp/in
6669 ' >>$CONFIG_STATUS
6670   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6671   rm -f conftest.defines
6672   mv conftest.tail conftest.defines
6673 done
6674 rm -f conftest.defines
6675 echo '  fi # grep' >>$CONFIG_STATUS
6676 echo >>$CONFIG_STATUS
6677
6678 # Break up conftest.undefs because some shells have a limit on the size
6679 # of here documents, and old seds have small limits too (100 cmds).
6680 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6681 rm -f conftest.tail
6682 while grep . conftest.undefs >/dev/null
6683 do
6684   # Write a limited-size here document to $tmp/undefs.sed.
6685   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6686   # Speed up: don't consider the non `#undef'
6687   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6688   # Work around the forget-to-reset-the-flag bug.
6689   echo 't clr' >>$CONFIG_STATUS
6690   echo ': clr' >>$CONFIG_STATUS
6691   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6692   echo 'CEOF
6693   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6694   rm -f $tmp/in
6695   mv $tmp/out $tmp/in
6696 ' >>$CONFIG_STATUS
6697   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6698   rm -f conftest.undefs
6699   mv conftest.tail conftest.undefs
6700 done
6701 rm -f conftest.undefs
6702
6703 cat >>$CONFIG_STATUS <<\_ACEOF
6704   # Let's still pretend it is `configure' which instantiates (i.e., don't
6705   # use $as_me), people would be surprised to read:
6706   #    /* config.h.  Generated by config.status.  */
6707   if test x"$ac_file" = x-; then
6708     echo "/* Generated by configure.  */" >$tmp/config.h
6709   else
6710     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6711   fi
6712   cat $tmp/in >>$tmp/config.h
6713   rm -f $tmp/in
6714   if test x"$ac_file" != x-; then
6715     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6716       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6717 echo "$as_me: $ac_file is unchanged" >&6;}
6718     else
6719       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6720 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6721          X"$ac_file" : 'X\(//\)[^/]' \| \
6722          X"$ac_file" : 'X\(//\)$' \| \
6723          X"$ac_file" : 'X\(/\)' \| \
6724          .     : '\(.\)' 2>/dev/null ||
6725 echo X"$ac_file" |
6726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6727           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6728           /^X\(\/\/\)$/{ s//\1/; q; }
6729           /^X\(\/\).*/{ s//\1/; q; }
6730           s/.*/./; q'`
6731       { if $as_mkdir_p; then
6732     mkdir -p "$ac_dir"
6733   else
6734     as_dir="$ac_dir"
6735     as_dirs=
6736     while test ! -d "$as_dir"; do
6737       as_dirs="$as_dir $as_dirs"
6738       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6740          X"$as_dir" : 'X\(//\)[^/]' \| \
6741          X"$as_dir" : 'X\(//\)$' \| \
6742          X"$as_dir" : 'X\(/\)' \| \
6743          .     : '\(.\)' 2>/dev/null ||
6744 echo X"$as_dir" |
6745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6746           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6747           /^X\(\/\/\)$/{ s//\1/; q; }
6748           /^X\(\/\).*/{ s//\1/; q; }
6749           s/.*/./; q'`
6750     done
6751     test ! -n "$as_dirs" || mkdir $as_dirs
6752   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6753 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6754    { (exit 1); exit 1; }; }; }
6755
6756       rm -f $ac_file
6757       mv $tmp/config.h $ac_file
6758     fi
6759   else
6760     cat $tmp/config.h
6761     rm -f $tmp/config.h
6762   fi
6763 # Compute $ac_file's index in $config_headers.
6764 _am_stamp_count=1
6765 for _am_header in $config_headers :; do
6766   case $_am_header in
6767     $ac_file | $ac_file:* )
6768       break ;;
6769     * )
6770       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6771   esac
6772 done
6773 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6774 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6775          X$ac_file : 'X\(//\)[^/]' \| \
6776          X$ac_file : 'X\(//\)$' \| \
6777          X$ac_file : 'X\(/\)' \| \
6778          .     : '\(.\)' 2>/dev/null ||
6779 echo X$ac_file |
6780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6781           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6782           /^X\(\/\/\)$/{ s//\1/; q; }
6783           /^X\(\/\).*/{ s//\1/; q; }
6784           s/.*/./; q'`/stamp-h$_am_stamp_count
6785 done
6786 _ACEOF
6787 cat >>$CONFIG_STATUS <<\_ACEOF
6788
6789 #
6790 # CONFIG_COMMANDS section.
6791 #
6792 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6793   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6794   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6795   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6796 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6797          X"$ac_dest" : 'X\(//\)[^/]' \| \
6798          X"$ac_dest" : 'X\(//\)$' \| \
6799          X"$ac_dest" : 'X\(/\)' \| \
6800          .     : '\(.\)' 2>/dev/null ||
6801 echo X"$ac_dest" |
6802     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6803           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6804           /^X\(\/\/\)$/{ s//\1/; q; }
6805           /^X\(\/\).*/{ s//\1/; q; }
6806           s/.*/./; q'`
6807   { if $as_mkdir_p; then
6808     mkdir -p "$ac_dir"
6809   else
6810     as_dir="$ac_dir"
6811     as_dirs=
6812     while test ! -d "$as_dir"; do
6813       as_dirs="$as_dir $as_dirs"
6814       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6816          X"$as_dir" : 'X\(//\)[^/]' \| \
6817          X"$as_dir" : 'X\(//\)$' \| \
6818          X"$as_dir" : 'X\(/\)' \| \
6819          .     : '\(.\)' 2>/dev/null ||
6820 echo X"$as_dir" |
6821     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6822           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6823           /^X\(\/\/\)$/{ s//\1/; q; }
6824           /^X\(\/\).*/{ s//\1/; q; }
6825           s/.*/./; q'`
6826     done
6827     test ! -n "$as_dirs" || mkdir $as_dirs
6828   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6829 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6830    { (exit 1); exit 1; }; }; }
6831
6832   ac_builddir=.
6833
6834 if test "$ac_dir" != .; then
6835   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6836   # A "../" for each directory in $ac_dir_suffix.
6837   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6838 else
6839   ac_dir_suffix= ac_top_builddir=
6840 fi
6841
6842 case $srcdir in
6843   .)  # No --srcdir option.  We are building in place.
6844     ac_srcdir=.
6845     if test -z "$ac_top_builddir"; then
6846        ac_top_srcdir=.
6847     else
6848        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6849     fi ;;
6850   [\\/]* | ?:[\\/]* )  # Absolute path.
6851     ac_srcdir=$srcdir$ac_dir_suffix;
6852     ac_top_srcdir=$srcdir ;;
6853   *) # Relative path.
6854     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6855     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6856 esac
6857
6858 # Do not use `cd foo && pwd` to compute absolute paths, because
6859 # the directories may not exist.
6860 case `pwd` in
6861 .) ac_abs_builddir="$ac_dir";;
6862 *)
6863   case "$ac_dir" in
6864   .) ac_abs_builddir=`pwd`;;
6865   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6866   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6867   esac;;
6868 esac
6869 case $ac_abs_builddir in
6870 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6871 *)
6872   case ${ac_top_builddir}. in
6873   .) ac_abs_top_builddir=$ac_abs_builddir;;
6874   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6875   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6876   esac;;
6877 esac
6878 case $ac_abs_builddir in
6879 .) ac_abs_srcdir=$ac_srcdir;;
6880 *)
6881   case $ac_srcdir in
6882   .) ac_abs_srcdir=$ac_abs_builddir;;
6883   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6884   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6885   esac;;
6886 esac
6887 case $ac_abs_builddir in
6888 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6889 *)
6890   case $ac_top_srcdir in
6891   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6892   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6893   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6894   esac;;
6895 esac
6896
6897
6898   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6899 echo "$as_me: executing $ac_dest commands" >&6;}
6900   case $ac_dest in
6901     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6902   # Strip MF so we end up with the name of the file.
6903   mf=`echo "$mf" | sed -e 's/:.*$//'`
6904   # Check whether this is an Automake generated Makefile or not.
6905   # We used to match only the files named `Makefile.in', but
6906   # some people rename them; so instead we look at the file content.
6907   # Grep'ing the first line is not enough: some people post-process
6908   # each Makefile.in and add a new line on top of each file to say so.
6909   # So let's grep whole file.
6910   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6911     dirpart=`(dirname "$mf") 2>/dev/null ||
6912 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6913          X"$mf" : 'X\(//\)[^/]' \| \
6914          X"$mf" : 'X\(//\)$' \| \
6915          X"$mf" : 'X\(/\)' \| \
6916          .     : '\(.\)' 2>/dev/null ||
6917 echo X"$mf" |
6918     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6919           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6920           /^X\(\/\/\)$/{ s//\1/; q; }
6921           /^X\(\/\).*/{ s//\1/; q; }
6922           s/.*/./; q'`
6923   else
6924     continue
6925   fi
6926   # Extract the definition of DEPDIR, am__include, and am__quote
6927   # from the Makefile without running `make'.
6928   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6929   test -z "$DEPDIR" && continue
6930   am__include=`sed -n 's/^am__include = //p' < "$mf"`
6931   test -z "am__include" && continue
6932   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6933   # When using ansi2knr, U may be empty or an underscore; expand it
6934   U=`sed -n 's/^U = //p' < "$mf"`
6935   # Find all dependency output files, they are included files with
6936   # $(DEPDIR) in their names.  We invoke sed twice because it is the
6937   # simplest approach to changing $(DEPDIR) to its actual value in the
6938   # expansion.
6939   for file in `sed -n "
6940     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6941        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6942     # Make sure the directory exists.
6943     test -f "$dirpart/$file" && continue
6944     fdir=`(dirname "$file") 2>/dev/null ||
6945 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6946          X"$file" : 'X\(//\)[^/]' \| \
6947          X"$file" : 'X\(//\)$' \| \
6948          X"$file" : 'X\(/\)' \| \
6949          .     : '\(.\)' 2>/dev/null ||
6950 echo X"$file" |
6951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6952           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6953           /^X\(\/\/\)$/{ s//\1/; q; }
6954           /^X\(\/\).*/{ s//\1/; q; }
6955           s/.*/./; q'`
6956     { if $as_mkdir_p; then
6957     mkdir -p $dirpart/$fdir
6958   else
6959     as_dir=$dirpart/$fdir
6960     as_dirs=
6961     while test ! -d "$as_dir"; do
6962       as_dirs="$as_dir $as_dirs"
6963       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6965          X"$as_dir" : 'X\(//\)[^/]' \| \
6966          X"$as_dir" : 'X\(//\)$' \| \
6967          X"$as_dir" : 'X\(/\)' \| \
6968          .     : '\(.\)' 2>/dev/null ||
6969 echo X"$as_dir" |
6970     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6971           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6972           /^X\(\/\/\)$/{ s//\1/; q; }
6973           /^X\(\/\).*/{ s//\1/; q; }
6974           s/.*/./; q'`
6975     done
6976     test ! -n "$as_dirs" || mkdir $as_dirs
6977   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6978 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6979    { (exit 1); exit 1; }; }; }
6980
6981     # echo "creating $dirpart/$file"
6982     echo '# dummy' > "$dirpart/$file"
6983   done
6984 done
6985  ;;
6986   esac
6987 done
6988 _ACEOF
6989
6990 cat >>$CONFIG_STATUS <<\_ACEOF
6991
6992 { (exit 0); exit 0; }
6993 _ACEOF
6994 chmod +x $CONFIG_STATUS
6995 ac_clean_files=$ac_clean_files_save
6996
6997
6998 # configure is writing to config.log, and then calls config.status.
6999 # config.status does its own redirection, appending to config.log.
7000 # Unfortunately, on DOS this fails, as config.log is still kept open
7001 # by configure, so config.status won't be able to write to it; its
7002 # output is simply discarded.  So we exec the FD to /dev/null,
7003 # effectively closing config.log, so it can be properly (re)opened and
7004 # appended to by config.status.  When coming back to configure, we
7005 # need to make the FD available again.
7006 if test "$no_create" != yes; then
7007   ac_cs_success=:
7008   ac_config_status_args=
7009   test "$silent" = yes &&
7010     ac_config_status_args="$ac_config_status_args --quiet"
7011   exec 5>/dev/null
7012   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7013   exec 5>>config.log
7014   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7015   # would make configure fail if this is the last instruction.
7016   $ac_cs_success || { (exit 1); exit 1; }
7017 fi
7018
7019 #
7020 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
7021 #
7022 if test "$no_recursion" != yes; then
7023
7024   # Remove --cache-file and --srcdir arguments so they do not pile up.
7025   ac_sub_configure_args=
7026   ac_prev=
7027   eval "set x $ac_configure_args"
7028   shift
7029   for ac_arg
7030   do
7031     if test -n "$ac_prev"; then
7032       ac_prev=
7033       continue
7034     fi
7035     case $ac_arg in
7036     -cache-file | --cache-file | --cache-fil | --cache-fi \
7037     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7038       ac_prev=cache_file ;;
7039     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7040     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7041     | --c=*)
7042       ;;
7043     --config-cache | -C)
7044       ;;
7045     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7046       ac_prev=srcdir ;;
7047     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7048       ;;
7049     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7050       ac_prev=prefix ;;
7051     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7052       ;;
7053     *)
7054       case $ac_arg in
7055       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7056       esac
7057       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
7058     esac
7059   done
7060
7061   # Always prepend --prefix to ensure using the same prefix
7062   # in subdir configurations.
7063   ac_arg="--prefix=$prefix"
7064   case $ac_arg in
7065   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7066   esac
7067   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
7068
7069   ac_popdir=`pwd`
7070   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7071
7072     # Do not complain, so a configure script can configure whichever
7073     # parts of a large source tree are present.
7074     test -d "$srcdir/$ac_dir" || continue
7075
7076     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7077 echo "$as_me: configuring in $ac_dir" >&6;}
7078     { if $as_mkdir_p; then
7079     mkdir -p "$ac_dir"
7080   else
7081     as_dir="$ac_dir"
7082     as_dirs=
7083     while test ! -d "$as_dir"; do
7084       as_dirs="$as_dir $as_dirs"
7085       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7087          X"$as_dir" : 'X\(//\)[^/]' \| \
7088          X"$as_dir" : 'X\(//\)$' \| \
7089          X"$as_dir" : 'X\(/\)' \| \
7090          .     : '\(.\)' 2>/dev/null ||
7091 echo X"$as_dir" |
7092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7093           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7094           /^X\(\/\/\)$/{ s//\1/; q; }
7095           /^X\(\/\).*/{ s//\1/; q; }
7096           s/.*/./; q'`
7097     done
7098     test ! -n "$as_dirs" || mkdir $as_dirs
7099   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7100 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7101    { (exit 1); exit 1; }; }; }
7102
7103     ac_builddir=.
7104
7105 if test "$ac_dir" != .; then
7106   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7107   # A "../" for each directory in $ac_dir_suffix.
7108   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7109 else
7110   ac_dir_suffix= ac_top_builddir=
7111 fi
7112
7113 case $srcdir in
7114   .)  # No --srcdir option.  We are building in place.
7115     ac_srcdir=.
7116     if test -z "$ac_top_builddir"; then
7117        ac_top_srcdir=.
7118     else
7119        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7120     fi ;;
7121   [\\/]* | ?:[\\/]* )  # Absolute path.
7122     ac_srcdir=$srcdir$ac_dir_suffix;
7123     ac_top_srcdir=$srcdir ;;
7124   *) # Relative path.
7125     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7126     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7127 esac
7128
7129 # Do not use `cd foo && pwd` to compute absolute paths, because
7130 # the directories may not exist.
7131 case `pwd` in
7132 .) ac_abs_builddir="$ac_dir";;
7133 *)
7134   case "$ac_dir" in
7135   .) ac_abs_builddir=`pwd`;;
7136   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7137   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7138   esac;;
7139 esac
7140 case $ac_abs_builddir in
7141 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7142 *)
7143   case ${ac_top_builddir}. in
7144   .) ac_abs_top_builddir=$ac_abs_builddir;;
7145   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7146   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7147   esac;;
7148 esac
7149 case $ac_abs_builddir in
7150 .) ac_abs_srcdir=$ac_srcdir;;
7151 *)
7152   case $ac_srcdir in
7153   .) ac_abs_srcdir=$ac_abs_builddir;;
7154   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7155   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7156   esac;;
7157 esac
7158 case $ac_abs_builddir in
7159 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7160 *)
7161   case $ac_top_srcdir in
7162   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7163   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7164   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7165   esac;;
7166 esac
7167
7168
7169     cd "$ac_dir"
7170
7171     # Check for guested configure; otherwise get Cygnus style configure.
7172     if test -f "$ac_srcdir/configure.gnu"; then
7173       ac_sub_configure=$ac_srcdir/configure.gnu
7174     elif test -f "$ac_srcdir/configure"; then
7175       ac_sub_configure=$ac_srcdir/configure
7176     elif test -f "$ac_srcdir/configure.in"; then
7177       # This should be Cygnus configure.
7178       ac_sub_configure=$ac_aux_dir/configure
7179     else
7180       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7181 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7182       ac_sub_configure=
7183     fi
7184
7185     # The recursion is here.
7186     if test -n "$ac_sub_configure"; then
7187       # Make the cache file name correct relative to the subdirectory.
7188       case $cache_file in
7189       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7190       *) # Relative path.
7191         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7192       esac
7193
7194       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7195 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7196       # The eval makes quoting arguments work.
7197       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
7198            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
7199         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7200 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7201    { (exit 1); exit 1; }; }
7202     fi
7203
7204     cd "$ac_popdir"
7205   done
7206 fi
7207