OSDN Git Service

* ltmain.sh: Update from GCC.
[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
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='newlib'
418 PACKAGE_TARNAME='newlib'
419 PACKAGE_VERSION='1.15.0'
420 PACKAGE_STRING='newlib 1.15.0'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="libc"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 ac_subdirs_all="$ac_subdirs_all libc"
462 ac_subdirs_all="$ac_subdirs_all libm"
463 ac_subdirs_all="$ac_subdirs_all doc"
464 ac_subdirs_all="$ac_subdirs_all iconvdata"
465 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 SED DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL CFLAGS CPPFLAGS ac_ct_CC EXEEXT EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP 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'
466 ac_subst_files=''
467
468 # Initialize some variables set by options.
469 ac_init_help=
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
473 cache_file=/dev/null
474 exec_prefix=NONE
475 no_create=
476 no_recursion=
477 prefix=NONE
478 program_prefix=NONE
479 program_suffix=NONE
480 program_transform_name=s,x,x,
481 silent=
482 site=
483 srcdir=
484 verbose=
485 x_includes=NONE
486 x_libraries=NONE
487
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
505
506 ac_prev=
507 for ac_option
508 do
509   # If the previous option needs an argument, assign it.
510   if test -n "$ac_prev"; then
511     eval "$ac_prev=\$ac_option"
512     ac_prev=
513     continue
514   fi
515
516   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518   # Accept the important Cygnus configure options, so we can diagnose typos.
519
520   case $ac_option in
521
522   -bindir | --bindir | --bindi | --bind | --bin | --bi)
523     ac_prev=bindir ;;
524   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525     bindir=$ac_optarg ;;
526
527   -build | --build | --buil | --bui | --bu)
528     ac_prev=build_alias ;;
529   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530     build_alias=$ac_optarg ;;
531
532   -cache-file | --cache-file | --cache-fil | --cache-fi \
533   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534     ac_prev=cache_file ;;
535   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537     cache_file=$ac_optarg ;;
538
539   --config-cache | -C)
540     cache_file=config.cache ;;
541
542   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543     ac_prev=datadir ;;
544   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545   | --da=*)
546     datadir=$ac_optarg ;;
547
548   -disable-* | --disable-*)
549     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550     # Reject names that are not valid shell variable names.
551     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553    { (exit 1); exit 1; }; }
554     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555     eval "enable_$ac_feature=no" ;;
556
557   -enable-* | --enable-*)
558     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559     # Reject names that are not valid shell variable names.
560     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562    { (exit 1); exit 1; }; }
563     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564     case $ac_option in
565       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566       *) ac_optarg=yes ;;
567     esac
568     eval "enable_$ac_feature='$ac_optarg'" ;;
569
570   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572   | --exec | --exe | --ex)
573     ac_prev=exec_prefix ;;
574   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576   | --exec=* | --exe=* | --ex=*)
577     exec_prefix=$ac_optarg ;;
578
579   -gas | --gas | --ga | --g)
580     # Obsolete; use --with-gas.
581     with_gas=yes ;;
582
583   -help | --help | --hel | --he | -h)
584     ac_init_help=long ;;
585   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586     ac_init_help=recursive ;;
587   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588     ac_init_help=short ;;
589
590   -host | --host | --hos | --ho)
591     ac_prev=host_alias ;;
592   -host=* | --host=* | --hos=* | --ho=*)
593     host_alias=$ac_optarg ;;
594
595   -includedir | --includedir | --includedi | --included | --include \
596   | --includ | --inclu | --incl | --inc)
597     ac_prev=includedir ;;
598   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599   | --includ=* | --inclu=* | --incl=* | --inc=*)
600     includedir=$ac_optarg ;;
601
602   -infodir | --infodir | --infodi | --infod | --info | --inf)
603     ac_prev=infodir ;;
604   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605     infodir=$ac_optarg ;;
606
607   -libdir | --libdir | --libdi | --libd)
608     ac_prev=libdir ;;
609   -libdir=* | --libdir=* | --libdi=* | --libd=*)
610     libdir=$ac_optarg ;;
611
612   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613   | --libexe | --libex | --libe)
614     ac_prev=libexecdir ;;
615   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616   | --libexe=* | --libex=* | --libe=*)
617     libexecdir=$ac_optarg ;;
618
619   -localstatedir | --localstatedir | --localstatedi | --localstated \
620   | --localstate | --localstat | --localsta | --localst \
621   | --locals | --local | --loca | --loc | --lo)
622     ac_prev=localstatedir ;;
623   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626     localstatedir=$ac_optarg ;;
627
628   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629     ac_prev=mandir ;;
630   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631     mandir=$ac_optarg ;;
632
633   -nfp | --nfp | --nf)
634     # Obsolete; use --without-fp.
635     with_fp=no ;;
636
637   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638   | --no-cr | --no-c | -n)
639     no_create=yes ;;
640
641   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643     no_recursion=yes ;;
644
645   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647   | --oldin | --oldi | --old | --ol | --o)
648     ac_prev=oldincludedir ;;
649   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652     oldincludedir=$ac_optarg ;;
653
654   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655     ac_prev=prefix ;;
656   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657     prefix=$ac_optarg ;;
658
659   -program-prefix | --program-prefix | --program-prefi | --program-pref \
660   | --program-pre | --program-pr | --program-p)
661     ac_prev=program_prefix ;;
662   -program-prefix=* | --program-prefix=* | --program-prefi=* \
663   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664     program_prefix=$ac_optarg ;;
665
666   -program-suffix | --program-suffix | --program-suffi | --program-suff \
667   | --program-suf | --program-su | --program-s)
668     ac_prev=program_suffix ;;
669   -program-suffix=* | --program-suffix=* | --program-suffi=* \
670   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671     program_suffix=$ac_optarg ;;
672
673   -program-transform-name | --program-transform-name \
674   | --program-transform-nam | --program-transform-na \
675   | --program-transform-n | --program-transform- \
676   | --program-transform | --program-transfor \
677   | --program-transfo | --program-transf \
678   | --program-trans | --program-tran \
679   | --progr-tra | --program-tr | --program-t)
680     ac_prev=program_transform_name ;;
681   -program-transform-name=* | --program-transform-name=* \
682   | --program-transform-nam=* | --program-transform-na=* \
683   | --program-transform-n=* | --program-transform-=* \
684   | --program-transform=* | --program-transfor=* \
685   | --program-transfo=* | --program-transf=* \
686   | --program-trans=* | --program-tran=* \
687   | --progr-tra=* | --program-tr=* | --program-t=*)
688     program_transform_name=$ac_optarg ;;
689
690   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691   | -silent | --silent | --silen | --sile | --sil)
692     silent=yes ;;
693
694   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695     ac_prev=sbindir ;;
696   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697   | --sbi=* | --sb=*)
698     sbindir=$ac_optarg ;;
699
700   -sharedstatedir | --sharedstatedir | --sharedstatedi \
701   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702   | --sharedst | --shareds | --shared | --share | --shar \
703   | --sha | --sh)
704     ac_prev=sharedstatedir ;;
705   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708   | --sha=* | --sh=*)
709     sharedstatedir=$ac_optarg ;;
710
711   -site | --site | --sit)
712     ac_prev=site ;;
713   -site=* | --site=* | --sit=*)
714     site=$ac_optarg ;;
715
716   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717     ac_prev=srcdir ;;
718   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719     srcdir=$ac_optarg ;;
720
721   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722   | --syscon | --sysco | --sysc | --sys | --sy)
723     ac_prev=sysconfdir ;;
724   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726     sysconfdir=$ac_optarg ;;
727
728   -target | --target | --targe | --targ | --tar | --ta | --t)
729     ac_prev=target_alias ;;
730   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731     target_alias=$ac_optarg ;;
732
733   -v | -verbose | --verbose | --verbos | --verbo | --verb)
734     verbose=yes ;;
735
736   -version | --version | --versio | --versi | --vers | -V)
737     ac_init_version=: ;;
738
739   -with-* | --with-*)
740     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741     # Reject names that are not valid shell variable names.
742     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743       { echo "$as_me: error: invalid package name: $ac_package" >&2
744    { (exit 1); exit 1; }; }
745     ac_package=`echo $ac_package| sed 's/-/_/g'`
746     case $ac_option in
747       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748       *) ac_optarg=yes ;;
749     esac
750     eval "with_$ac_package='$ac_optarg'" ;;
751
752   -without-* | --without-*)
753     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754     # Reject names that are not valid shell variable names.
755     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756       { echo "$as_me: error: invalid package name: $ac_package" >&2
757    { (exit 1); exit 1; }; }
758     ac_package=`echo $ac_package | sed 's/-/_/g'`
759     eval "with_$ac_package=no" ;;
760
761   --x)
762     # Obsolete; use --with-x.
763     with_x=yes ;;
764
765   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766   | --x-incl | --x-inc | --x-in | --x-i)
767     ac_prev=x_includes ;;
768   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770     x_includes=$ac_optarg ;;
771
772   -x-libraries | --x-libraries | --x-librarie | --x-librari \
773   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774     ac_prev=x_libraries ;;
775   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777     x_libraries=$ac_optarg ;;
778
779   -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781    { (exit 1); exit 1; }; }
782     ;;
783
784   *=*)
785     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786     # Reject names that are not valid shell variable names.
787     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789    { (exit 1); exit 1; }; }
790     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791     eval "$ac_envvar='$ac_optarg'"
792     export $ac_envvar ;;
793
794   *)
795     # FIXME: should be removed in autoconf 3.0.
796     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800     ;;
801
802   esac
803 done
804
805 if test -n "$ac_prev"; then
806   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807   { echo "$as_me: error: missing argument to $ac_option" >&2
808    { (exit 1); exit 1; }; }
809 fi
810
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
813 do
814   eval ac_val=$`echo $ac_var`
815   case $ac_val in
816     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818    { (exit 1); exit 1; }; };;
819   esac
820 done
821
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824               localstatedir libdir includedir oldincludedir infodir mandir
825 do
826   eval ac_val=$`echo $ac_var`
827   case $ac_val in
828     [\\/$]* | ?:[\\/]* ) ;;
829     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830    { (exit 1); exit 1; }; };;
831   esac
832 done
833
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
837 build=$build_alias
838 host=$host_alias
839 target=$target_alias
840
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843   if test "x$build_alias" = x; then
844     cross_compiling=maybe
845     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846     If a cross compiler is detected then cross compile mode will be used." >&2
847   elif test "x$build_alias" != "x$host_alias"; then
848     cross_compiling=yes
849   fi
850 fi
851
852 ac_tool_prefix=
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855 test "$silent" = yes && exec 6>/dev/null
856
857
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860   ac_srcdir_defaulted=yes
861   # Try the directory containing this script, then its parent.
862   ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864          X"$0" : 'X\(//\)[^/]' \| \
865          X"$0" : 'X\(//\)$' \| \
866          X"$0" : 'X\(/\)' \| \
867          .     : '\(.\)' 2>/dev/null ||
868 echo X"$0" |
869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871           /^X\(\/\/\)$/{ s//\1/; q; }
872           /^X\(\/\).*/{ s//\1/; q; }
873           s/.*/./; q'`
874   srcdir=$ac_confdir
875   if test ! -r $srcdir/$ac_unique_file; then
876     srcdir=..
877   fi
878 else
879   ac_srcdir_defaulted=no
880 fi
881 if test ! -r $srcdir/$ac_unique_file; then
882   if test "$ac_srcdir_defaulted" = yes; then
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884    { (exit 1); exit 1; }; }
885   else
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887    { (exit 1); exit 1; }; }
888   fi
889 fi
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892    { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CCAS_set=${CCAS+set}
907 ac_env_CCAS_value=$CCAS
908 ac_cv_env_CCAS_set=${CCAS+set}
909 ac_cv_env_CCAS_value=$CCAS
910 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
911 ac_env_CCASFLAGS_value=$CCASFLAGS
912 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
913 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
914 ac_env_CC_set=${CC+set}
915 ac_env_CC_value=$CC
916 ac_cv_env_CC_set=${CC+set}
917 ac_cv_env_CC_value=$CC
918 ac_env_CFLAGS_set=${CFLAGS+set}
919 ac_env_CFLAGS_value=$CFLAGS
920 ac_cv_env_CFLAGS_set=${CFLAGS+set}
921 ac_cv_env_CFLAGS_value=$CFLAGS
922 ac_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_env_LDFLAGS_value=$LDFLAGS
924 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
925 ac_cv_env_LDFLAGS_value=$LDFLAGS
926 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_env_CPPFLAGS_value=$CPPFLAGS
928 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
929 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
930 ac_env_CPP_set=${CPP+set}
931 ac_env_CPP_value=$CPP
932 ac_cv_env_CPP_set=${CPP+set}
933 ac_cv_env_CPP_value=$CPP
934
935 #
936 # Report the --help message.
937 #
938 if test "$ac_init_help" = "long"; then
939   # Omit some internal or obsolete options to make the list less imposing.
940   # This message is too long to be a string in the A/UX 3.1 sh.
941   cat <<_ACEOF
942 \`configure' configures newlib 1.15.0 to adapt to many kinds of systems.
943
944 Usage: $0 [OPTION]... [VAR=VALUE]...
945
946 To assign environment variables (e.g., CC, CFLAGS...), specify them as
947 VAR=VALUE.  See below for descriptions of some of the useful variables.
948
949 Defaults for the options are specified in brackets.
950
951 Configuration:
952   -h, --help              display this help and exit
953       --help=short        display options specific to this package
954       --help=recursive    display the short help of all the included packages
955   -V, --version           display version information and exit
956   -q, --quiet, --silent   do not print \`checking...' messages
957       --cache-file=FILE   cache test results in FILE [disabled]
958   -C, --config-cache      alias for \`--cache-file=config.cache'
959   -n, --no-create         do not create output files
960       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
961
962 _ACEOF
963
964   cat <<_ACEOF
965 Installation directories:
966   --prefix=PREFIX         install architecture-independent files in PREFIX
967                           [$ac_default_prefix]
968   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
969                           [PREFIX]
970
971 By default, \`make install' will install all the files in
972 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
973 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
974 for instance \`--prefix=\$HOME'.
975
976 For better control, use the options below.
977
978 Fine tuning of the installation directories:
979   --bindir=DIR           user executables [EPREFIX/bin]
980   --sbindir=DIR          system admin executables [EPREFIX/sbin]
981   --libexecdir=DIR       program executables [EPREFIX/libexec]
982   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
983   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
984   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
985   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
986   --libdir=DIR           object code libraries [EPREFIX/lib]
987   --includedir=DIR       C header files [PREFIX/include]
988   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
989   --infodir=DIR          info documentation [PREFIX/info]
990   --mandir=DIR           man documentation [PREFIX/man]
991 _ACEOF
992
993   cat <<\_ACEOF
994
995 Program names:
996   --program-prefix=PREFIX            prepend PREFIX to installed program names
997   --program-suffix=SUFFIX            append SUFFIX to installed program names
998   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
999
1000 System types:
1001   --build=BUILD     configure for building on BUILD [guessed]
1002   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1003 _ACEOF
1004 fi
1005
1006 if test -n "$ac_init_help"; then
1007   case $ac_init_help in
1008      short | recursive ) echo "Configuration of newlib 1.15.0:";;
1009    esac
1010   cat <<\_ACEOF
1011
1012 Optional Features:
1013   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1014   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1015   --enable-newlib-io-pos-args enable printf-family positional arg support
1016   --enable-newlib-io-c99-formats   enable C99 support in IO functions like printf/scanf
1017   --enable-newlib-io-long-long   enable long long type support in IO functions like printf/scanf
1018   --enable-newlib-io-long-double   enable long double type support in IO functions printf/scanf
1019   --enable-newlib-mb        enable multibyte support
1020   --enable-newlib-iconv-encodings   enable specific comma-separated list of bidirectional iconv encodings to be built-in
1021   --enable-newlib-iconv-from-encodings   enable specific comma-separated list of \"from\" iconv encodings to be built-in
1022   --enable-newlib-iconv-to-encodings   enable specific comma-separated list of \"to\" iconv encodings to be built-in
1023   --enable-newlib-iconv-external-ccs     enable capabilities to load external CCS files for iconv
1024   --disable-newlib-atexit-alloc    disable dynamic allocation of atexit entries
1025   --enable-newlib-reent-small   enable small reentrant struct support
1026   --enable-multilib         build many library versions (default)
1027   --enable-target-optspace  optimize for space
1028   --enable-malloc-debugging indicate malloc debugging requested
1029   --enable-newlib-multithread        enable support for multiple threads
1030   --enable-newlib-iconv     enable iconv library support
1031   --enable-newlib-elix-level         supply desired elix library level (1-4)
1032   --disable-newlib-io-float disable printf/scanf family float support
1033   --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1034   --disable-dependency-tracking  speeds up one-time build
1035   --enable-dependency-tracking   do not reject slow dependency extractors
1036   --enable-maintainer-mode  enable make rules and dependencies not useful
1037                           (and sometimes confusing) to the casual installer
1038   --enable-shared[=PKGS]
1039                           build shared libraries [default=yes]
1040   --enable-static[=PKGS]
1041                           build static libraries [default=yes]
1042   --enable-fast-install[=PKGS]
1043                           optimize for fast installation [default=yes]
1044   --disable-libtool-lock  avoid locking (might break parallel builds)
1045   --enable-newlib-hw-fp    Turn on hardware floating point math
1046
1047 Optional Packages:
1048   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1049   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1050   --with-pic              try to use only PIC/non-PIC objects [default=use
1051                           both]
1052   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1053
1054 Some influential environment variables:
1055   CCAS        assembler compiler command (defaults to CC)
1056   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1057   CC          C compiler command
1058   CFLAGS      C compiler flags
1059   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060               nonstandard directory <lib dir>
1061   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062               headers in a nonstandard directory <include dir>
1063   CPP         C preprocessor
1064
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1067
1068 _ACEOF
1069 fi
1070
1071 if test "$ac_init_help" = "recursive"; then
1072   # If there are subdirs, report their specific --help.
1073   ac_popdir=`pwd`
1074   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075     test -d $ac_dir || continue
1076     ac_builddir=.
1077
1078 if test "$ac_dir" != .; then
1079   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080   # A "../" for each directory in $ac_dir_suffix.
1081   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082 else
1083   ac_dir_suffix= ac_top_builddir=
1084 fi
1085
1086 case $srcdir in
1087   .)  # No --srcdir option.  We are building in place.
1088     ac_srcdir=.
1089     if test -z "$ac_top_builddir"; then
1090        ac_top_srcdir=.
1091     else
1092        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093     fi ;;
1094   [\\/]* | ?:[\\/]* )  # Absolute path.
1095     ac_srcdir=$srcdir$ac_dir_suffix;
1096     ac_top_srcdir=$srcdir ;;
1097   *) # Relative path.
1098     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 esac
1101
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1104 case `pwd` in
1105 .) ac_abs_builddir="$ac_dir";;
1106 *)
1107   case "$ac_dir" in
1108   .) ac_abs_builddir=`pwd`;;
1109   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111   esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 *)
1116   case ${ac_top_builddir}. in
1117   .) ac_abs_top_builddir=$ac_abs_builddir;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120   esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1124 *)
1125   case $ac_srcdir in
1126   .) ac_abs_srcdir=$ac_abs_builddir;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 *)
1134   case $ac_top_srcdir in
1135   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138   esac;;
1139 esac
1140
1141     cd $ac_dir
1142     # Check for guested configure; otherwise get Cygnus style configure.
1143     if test -f $ac_srcdir/configure.gnu; then
1144       echo
1145       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1146     elif test -f $ac_srcdir/configure; then
1147       echo
1148       $SHELL $ac_srcdir/configure  --help=recursive
1149     elif test -f $ac_srcdir/configure.ac ||
1150            test -f $ac_srcdir/configure.in; then
1151       echo
1152       $ac_configure --help
1153     else
1154       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155     fi
1156     cd $ac_popdir
1157   done
1158 fi
1159
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1162   cat <<\_ACEOF
1163 newlib configure 1.15.0
1164 generated by GNU Autoconf 2.59
1165
1166 Copyright (C) 2003 Free Software Foundation, Inc.
1167 This configure script is free software; the Free Software Foundation
1168 gives unlimited permission to copy, distribute and modify it.
1169 _ACEOF
1170   exit 0
1171 fi
1172 exec 5>config.log
1173 cat >&5 <<_ACEOF
1174 This file contains any messages produced by compilers while
1175 running configure, to aid debugging if configure makes a mistake.
1176
1177 It was created by newlib $as_me 1.15.0, which was
1178 generated by GNU Autoconf 2.59.  Invocation command line was
1179
1180   $ $0 $@
1181
1182 _ACEOF
1183 {
1184 cat <<_ASUNAME
1185 ## --------- ##
1186 ## Platform. ##
1187 ## --------- ##
1188
1189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
1195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1197
1198 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1199 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1202 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1203 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1204 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1205
1206 _ASUNAME
1207
1208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209 for as_dir in $PATH
1210 do
1211   IFS=$as_save_IFS
1212   test -z "$as_dir" && as_dir=.
1213   echo "PATH: $as_dir"
1214 done
1215
1216 } >&5
1217
1218 cat >&5 <<_ACEOF
1219
1220
1221 ## ----------- ##
1222 ## Core tests. ##
1223 ## ----------- ##
1224
1225 _ACEOF
1226
1227
1228 # Keep a trace of the command line.
1229 # Strip out --no-create and --no-recursion so they do not pile up.
1230 # Strip out --silent because we don't want to record it for future runs.
1231 # Also quote any args containing shell meta-characters.
1232 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_configure_args=
1234 ac_configure_args0=
1235 ac_configure_args1=
1236 ac_sep=
1237 ac_must_keep_next=false
1238 for ac_pass in 1 2
1239 do
1240   for ac_arg
1241   do
1242     case $ac_arg in
1243     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245     | -silent | --silent | --silen | --sile | --sil)
1246       continue ;;
1247     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249     esac
1250     case $ac_pass in
1251     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252     2)
1253       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254       if test $ac_must_keep_next = true; then
1255         ac_must_keep_next=false # Got value, back to normal.
1256       else
1257         case $ac_arg in
1258           *=* | --config-cache | -C | -disable-* | --disable-* \
1259           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261           | -with-* | --with-* | -without-* | --without-* | --x)
1262             case "$ac_configure_args0 " in
1263               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264             esac
1265             ;;
1266           -* ) ac_must_keep_next=true ;;
1267         esac
1268       fi
1269       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270       # Get rid of the leading space.
1271       ac_sep=" "
1272       ;;
1273     esac
1274   done
1275 done
1276 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
1279 # When interrupted or exit'd, cleanup temporary files, and complete
1280 # config.log.  We remove comments because anyway the quotes in there
1281 # would cause problems or look ugly.
1282 # WARNING: Be sure not to use single quotes in there, as some shells,
1283 # such as our DU 5.0 friend, will then `close' the trap.
1284 trap 'exit_status=$?
1285   # Save into config.log some information that might help in debugging.
1286   {
1287     echo
1288
1289     cat <<\_ASBOX
1290 ## ---------------- ##
1291 ## Cache variables. ##
1292 ## ---------------- ##
1293 _ASBOX
1294     echo
1295     # The following way of writing the cache mishandles newlines in values,
1296 {
1297   (set) 2>&1 |
1298     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299     *ac_space=\ *)
1300       sed -n \
1301         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303       ;;
1304     *)
1305       sed -n \
1306         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307       ;;
1308     esac;
1309 }
1310     echo
1311
1312     cat <<\_ASBOX
1313 ## ----------------- ##
1314 ## Output variables. ##
1315 ## ----------------- ##
1316 _ASBOX
1317     echo
1318     for ac_var in $ac_subst_vars
1319     do
1320       eval ac_val=$`echo $ac_var`
1321       echo "$ac_var='"'"'$ac_val'"'"'"
1322     done | sort
1323     echo
1324
1325     if test -n "$ac_subst_files"; then
1326       cat <<\_ASBOX
1327 ## ------------- ##
1328 ## Output files. ##
1329 ## ------------- ##
1330 _ASBOX
1331       echo
1332       for ac_var in $ac_subst_files
1333       do
1334         eval ac_val=$`echo $ac_var`
1335         echo "$ac_var='"'"'$ac_val'"'"'"
1336       done | sort
1337       echo
1338     fi
1339
1340     if test -s confdefs.h; then
1341       cat <<\_ASBOX
1342 ## ----------- ##
1343 ## confdefs.h. ##
1344 ## ----------- ##
1345 _ASBOX
1346       echo
1347       sed "/^$/d" confdefs.h | sort
1348       echo
1349     fi
1350     test "$ac_signal" != 0 &&
1351       echo "$as_me: caught signal $ac_signal"
1352     echo "$as_me: exit $exit_status"
1353   } >&5
1354   rm -f core *.core &&
1355   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356     exit $exit_status
1357      ' 0
1358 for ac_signal in 1 2 13 15; do
1359   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360 done
1361 ac_signal=0
1362
1363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1364 rm -rf conftest* confdefs.h
1365 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366 echo >confdefs.h
1367
1368 # Predefined preprocessor variables.
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_NAME "$PACKAGE_NAME"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_STRING "$PACKAGE_STRING"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392 _ACEOF
1393
1394
1395 # Let the site file select an alternate cache file if it wants to.
1396 # Prefer explicitly selected file to automatically selected ones.
1397 if test -z "$CONFIG_SITE"; then
1398   if test "x$prefix" != xNONE; then
1399     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400   else
1401     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402   fi
1403 fi
1404 for ac_site_file in $CONFIG_SITE; do
1405   if test -r "$ac_site_file"; then
1406     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407 echo "$as_me: loading site script $ac_site_file" >&6;}
1408     sed 's/^/| /' "$ac_site_file" >&5
1409     . "$ac_site_file"
1410   fi
1411 done
1412
1413 if test -r "$cache_file"; then
1414   # Some versions of bash will fail to source /dev/null (special
1415   # files actually), so we avoid doing that.
1416   if test -f "$cache_file"; then
1417     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418 echo "$as_me: loading cache $cache_file" >&6;}
1419     case $cache_file in
1420       [\\/]* | ?:[\\/]* ) . $cache_file;;
1421       *)                      . ./$cache_file;;
1422     esac
1423   fi
1424 else
1425   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426 echo "$as_me: creating cache $cache_file" >&6;}
1427   >$cache_file
1428 fi
1429
1430 # Check that the precious variables saved in the cache have kept the same
1431 # value.
1432 ac_cache_corrupted=false
1433 for ac_var in `(set) 2>&1 |
1434                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436   eval ac_new_set=\$ac_env_${ac_var}_set
1437   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438   eval ac_new_val="\$ac_env_${ac_var}_value"
1439   case $ac_old_set,$ac_new_set in
1440     set,)
1441       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443       ac_cache_corrupted=: ;;
1444     ,set)
1445       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447       ac_cache_corrupted=: ;;
1448     ,);;
1449     *)
1450       if test "x$ac_old_val" != "x$ac_new_val"; then
1451         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1454 echo "$as_me:   former value:  $ac_old_val" >&2;}
1455         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1456 echo "$as_me:   current value: $ac_new_val" >&2;}
1457         ac_cache_corrupted=:
1458       fi;;
1459   esac
1460   # Pass precious variables to config.status.
1461   if test "$ac_new_set" = set; then
1462     case $ac_new_val in
1463     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465     *) ac_arg=$ac_var=$ac_new_val ;;
1466     esac
1467     case " $ac_configure_args " in
1468       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1469       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470     esac
1471   fi
1472 done
1473 if $ac_cache_corrupted; then
1474   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478    { (exit 1); exit 1; }; }
1479 fi
1480
1481 ac_ext=c
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514           ac_config_headers="$ac_config_headers newlib.h:newlib.hin"
1515
1516
1517 ac_aux_dir=
1518 for ac_dir in .. $srcdir/..; do
1519   if test -f $ac_dir/install-sh; then
1520     ac_aux_dir=$ac_dir
1521     ac_install_sh="$ac_aux_dir/install-sh -c"
1522     break
1523   elif test -f $ac_dir/install.sh; then
1524     ac_aux_dir=$ac_dir
1525     ac_install_sh="$ac_aux_dir/install.sh -c"
1526     break
1527   elif test -f $ac_dir/shtool; then
1528     ac_aux_dir=$ac_dir
1529     ac_install_sh="$ac_aux_dir/shtool install -c"
1530     break
1531   fi
1532 done
1533 if test -z "$ac_aux_dir"; then
1534   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1535 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1536    { (exit 1); exit 1; }; }
1537 fi
1538 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541
1542
1543 # Check whether --enable-newlib-io-pos-args or --disable-newlib-io-pos-args was given.
1544 if test "${enable_newlib_io_pos_args+set}" = set; then
1545   enableval="$enable_newlib_io_pos_args"
1546   case "${enableval}" in
1547   yes) newlib_io_pos_args=yes ;;
1548   no)  newlib_io_pos_args=no ;;
1549   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-pos-args option" >&5
1550 echo "$as_me: error: bad value ${enableval} for newlib-io-pos-args option" >&2;}
1551    { (exit 1); exit 1; }; } ;;
1552  esac
1553 else
1554   newlib_io_pos_args=
1555 fi;
1556 # Check whether --enable-newlib-io-c99-formats or --disable-newlib-io-c99-formats was given.
1557 if test "${enable_newlib_io_c99_formats+set}" = set; then
1558   enableval="$enable_newlib_io_c99_formats"
1559   case "${enableval}" in
1560   yes) newlib_io_c99_formats=yes;;
1561   no)  newlib_io_c99_formats=no ;;
1562   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-c99-formats option" >&5
1563 echo "$as_me: error: bad value ${enableval} for newlib-io-c99-formats option" >&2;}
1564    { (exit 1); exit 1; }; } ;;
1565  esac
1566 else
1567   newlib_io_c99_formats=
1568 fi;
1569 # Check whether --enable-newlib-io-long-long or --disable-newlib-io-long-long was given.
1570 if test "${enable_newlib_io_long_long+set}" = set; then
1571   enableval="$enable_newlib_io_long_long"
1572   case "${enableval}" in
1573   yes) newlib_io_long_long=yes;;
1574   no)  newlib_io_long_long=no ;;
1575   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-long-long option" >&5
1576 echo "$as_me: error: bad value ${enableval} for newlib-io-long-long option" >&2;}
1577    { (exit 1); exit 1; }; } ;;
1578  esac
1579 else
1580   newlib_io_long_long=
1581 fi;
1582 # Check whether --enable-newlib-io-long-double or --disable-newlib-io-long-double was given.
1583 if test "${enable_newlib_io_long_double+set}" = set; then
1584   enableval="$enable_newlib_io_long_double"
1585   case "${enableval}" in
1586   yes) newlib_io_long_double=yes;;
1587   no)  newlib_io_long_double=no ;;
1588   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-long-double option" >&5
1589 echo "$as_me: error: bad value ${enableval} for newlib-io-long-double option" >&2;}
1590    { (exit 1); exit 1; }; } ;;
1591  esac
1592 else
1593   newlib_io_long_double=
1594 fi;
1595 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
1596 if test "${enable_newlib_mb+set}" = set; then
1597   enableval="$enable_newlib_mb"
1598   case "${enableval}" in
1599   yes) newlib_mb=yes;;
1600   no)  newlib_mb=no ;;
1601   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-mb option" >&5
1602 echo "$as_me: error: bad value ${enableval} for newlib-mb option" >&2;}
1603    { (exit 1); exit 1; }; } ;;
1604  esac
1605 else
1606   newlib_mb=
1607 fi;
1608 # Check whether --enable-newlib-iconv-encodings or --disable-newlib-iconv-encodings was given.
1609 if test "${enable_newlib_iconv_encodings+set}" = set; then
1610   enableval="$enable_newlib_iconv_encodings"
1611   if test x${enableval} = x; then
1612    { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" >&5
1613 echo "$as_me: error: bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" >&2;}
1614    { (exit 1); exit 1; }; }
1615  fi
1616  iconv_encodings=${enableval}
1617
1618 else
1619   iconv_encodings=
1620 fi;
1621 # Check whether --enable-newlib-iconv-from-encodings or --disable-newlib-iconv-from-encodings was given.
1622 if test "${enable_newlib_iconv_from_encodings+set}" = set; then
1623   enableval="$enable_newlib_iconv_from_encodings"
1624   if test x${enableval} = x; then
1625    { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" >&5
1626 echo "$as_me: error: bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" >&2;}
1627    { (exit 1); exit 1; }; }
1628  fi
1629  iconv_from_encodings=${enableval}
1630
1631 else
1632   iconv_from_encodings=
1633 fi;
1634 # Check whether --enable-newlib-iconv-to-encodings or --disable-newlib-iconv-to-encodings was given.
1635 if test "${enable_newlib_iconv_to_encodings+set}" = set; then
1636   enableval="$enable_newlib_iconv_to_encodings"
1637   if test x${enableval} = x; then
1638    { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" >&5
1639 echo "$as_me: error: bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" >&2;}
1640    { (exit 1); exit 1; }; }
1641  fi
1642  iconv_to_encodings=${enableval}
1643
1644 else
1645   iconv_to_encodings=
1646 fi;
1647 # Check whether --enable-newlib-iconv-external-ccs or --disable-newlib-iconv-external-ccs was given.
1648 if test "${enable_newlib_iconv_external_ccs+set}" = set; then
1649   enableval="$enable_newlib_iconv_external_ccs"
1650   if test "${newlib_iconv_external_ccs+set}" != set; then
1651    case "${enableval}" in
1652      yes) newlib_iconv_external_ccs=yes ;;
1653      no)  newlib_iconv_external_ccs=no ;;
1654      *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-external-ccs option" >&5
1655 echo "$as_me: error: bad value ${enableval} for newlib-iconv-external-ccs option" >&2;}
1656    { (exit 1); exit 1; }; } ;;
1657    esac
1658  fi
1659 else
1660   newlib_iconv_external_ccs=${newlib_iconv_external_ccs}
1661 fi;
1662 # Check whether --enable-newlib-atexit-dynamic-alloc or --disable-newlib-atexit-dynamic-alloc was given.
1663 if test "${enable_newlib_atexit_dynamic_alloc+set}" = set; then
1664   enableval="$enable_newlib_atexit_dynamic_alloc"
1665   if test "${newlib_atexit_dynamic_alloc+set}" != set; then
1666   case "${enableval}" in
1667     yes) newlib_atexit_dynamic_alloc=yes ;;
1668     no)  newlib_atexit_dynamic_alloc=no  ;;
1669     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-atexit-dynamic-alloc option" >&5
1670 echo "$as_me: error: bad value ${enableval} for newlib-atexit-dynamic-alloc option" >&2;}
1671    { (exit 1); exit 1; }; } ;;
1672   esac
1673  fi
1674 else
1675   newlib_atexit_dynamic_alloc=${newlib_atexit_dynamic_alloc}
1676 fi;
1677 # Check whether --enable-newlib-reent-small or --disable-newlib-reent-small was given.
1678 if test "${enable_newlib_reent_small+set}" = set; then
1679   enableval="$enable_newlib_reent_small"
1680   case "${enableval}" in
1681   yes) newlib_reent_small=yes;;
1682   no)  newlib_reent_small=no ;;
1683   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-reent-small option" >&5
1684 echo "$as_me: error: bad value ${enableval} for newlib-reent-small option" >&2;}
1685    { (exit 1); exit 1; }; } ;;
1686  esac
1687 else
1688   newlib_reent_small=
1689 fi;
1690
1691 # Make sure we can run config.sub.
1692 $ac_config_sub sun4 >/dev/null 2>&1 ||
1693   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1694 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1695    { (exit 1); exit 1; }; }
1696
1697 echo "$as_me:$LINENO: checking build system type" >&5
1698 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1699 if test "${ac_cv_build+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   ac_cv_build_alias=$build_alias
1703 test -z "$ac_cv_build_alias" &&
1704   ac_cv_build_alias=`$ac_config_guess`
1705 test -z "$ac_cv_build_alias" &&
1706   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1707 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1708    { (exit 1); exit 1; }; }
1709 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1710   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1711 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1712    { (exit 1); exit 1; }; }
1713
1714 fi
1715 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1716 echo "${ECHO_T}$ac_cv_build" >&6
1717 build=$ac_cv_build
1718 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1719 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1720 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1721
1722
1723 am__api_version="1.9"
1724 # Find a good install program.  We prefer a C program (faster),
1725 # so one script is as good as another.  But avoid the broken or
1726 # incompatible versions:
1727 # SysV /etc/install, /usr/sbin/install
1728 # SunOS /usr/etc/install
1729 # IRIX /sbin/install
1730 # AIX /bin/install
1731 # AmigaOS /C/install, which installs bootblocks on floppy discs
1732 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1733 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1734 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1735 # OS/2's system install, which has a completely different semantic
1736 # ./install, which can be erroneously created by make from ./install.sh.
1737 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1738 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1739 if test -z "$INSTALL"; then
1740 if test "${ac_cv_path_install+set}" = set; then
1741   echo $ECHO_N "(cached) $ECHO_C" >&6
1742 else
1743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   # Account for people who put trailing slashes in PATH elements.
1749 case $as_dir/ in
1750   ./ | .// | /cC/* | \
1751   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1752   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1753   /usr/ucb/* ) ;;
1754   *)
1755     # OSF1 and SCO ODT 3.0 have their own names for install.
1756     # Don't use installbsd from OSF since it installs stuff as root
1757     # by default.
1758     for ac_prog in ginstall scoinst install; do
1759       for ac_exec_ext in '' $ac_executable_extensions; do
1760         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1761           if test $ac_prog = install &&
1762             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1763             # AIX install.  It has an incompatible calling convention.
1764             :
1765           elif test $ac_prog = install &&
1766             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1767             # program-specific install script used by HP pwplus--don't use.
1768             :
1769           else
1770             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1771             break 3
1772           fi
1773         fi
1774       done
1775     done
1776     ;;
1777 esac
1778 done
1779
1780
1781 fi
1782   if test "${ac_cv_path_install+set}" = set; then
1783     INSTALL=$ac_cv_path_install
1784   else
1785     # As a last resort, use the slow shell script.  We don't cache a
1786     # path for INSTALL within a source directory, because that will
1787     # break other packages using the cache if that directory is
1788     # removed, or if the path is relative.
1789     INSTALL=$ac_install_sh
1790   fi
1791 fi
1792 echo "$as_me:$LINENO: result: $INSTALL" >&5
1793 echo "${ECHO_T}$INSTALL" >&6
1794
1795 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1796 # It thinks the first close brace ends the variable substitution.
1797 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1798
1799 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1800
1801 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1802
1803 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1804 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1805 # Just in case
1806 sleep 1
1807 echo timestamp > conftest.file
1808 # Do `set' in a subshell so we don't clobber the current shell's
1809 # arguments.  Must try -L first in case configure is actually a
1810 # symlink; some systems play weird games with the mod time of symlinks
1811 # (eg FreeBSD returns the mod time of the symlink's containing
1812 # directory).
1813 if (
1814    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1815    if test "$*" = "X"; then
1816       # -L didn't work.
1817       set X `ls -t $srcdir/configure conftest.file`
1818    fi
1819    rm -f conftest.file
1820    if test "$*" != "X $srcdir/configure conftest.file" \
1821       && test "$*" != "X conftest.file $srcdir/configure"; then
1822
1823       # If neither matched, then we have a broken ls.  This can happen
1824       # if, for instance, CONFIG_SHELL is bash and it inherits a
1825       # broken ls alias from the environment.  This has actually
1826       # happened.  Such a system could not be considered "sane".
1827       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1828 alias in your environment" >&5
1829 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1830 alias in your environment" >&2;}
1831    { (exit 1); exit 1; }; }
1832    fi
1833
1834    test "$2" = conftest.file
1835    )
1836 then
1837    # Ok.
1838    :
1839 else
1840    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1841 Check your system clock" >&5
1842 echo "$as_me: error: newly created file is older than distributed files!
1843 Check your system clock" >&2;}
1844    { (exit 1); exit 1; }; }
1845 fi
1846 echo "$as_me:$LINENO: result: yes" >&5
1847 echo "${ECHO_T}yes" >&6
1848 test "$program_prefix" != NONE &&
1849   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1850 # Use a double $ so make ignores it.
1851 test "$program_suffix" != NONE &&
1852   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1853 # Double any \ or $.  echo might interpret backslashes.
1854 # By default was `s,x,x', remove it if useless.
1855 cat <<\_ACEOF >conftest.sed
1856 s/[\\$]/&&/g;s/;s,x,x,$//
1857 _ACEOF
1858 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1859 rm conftest.sed
1860
1861 # expand $ac_aux_dir to an absolute path
1862 am_aux_dir=`cd $ac_aux_dir && pwd`
1863
1864 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1865 # Use eval to expand $SHELL
1866 if eval "$MISSING --run true"; then
1867   am_missing_run="$MISSING --run "
1868 else
1869   am_missing_run=
1870   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1871 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1872 fi
1873
1874 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1875   # We used to keeping the `.' as first argument, in order to
1876   # allow $(mkdir_p) to be used without argument.  As in
1877   #   $(mkdir_p) $(somedir)
1878   # where $(somedir) is conditionally defined.  However this is wrong
1879   # for two reasons:
1880   #  1. if the package is installed by a user who cannot write `.'
1881   #     make install will fail,
1882   #  2. the above comment should most certainly read
1883   #     $(mkdir_p) $(DESTDIR)$(somedir)
1884   #     so it does not work when $(somedir) is undefined and
1885   #     $(DESTDIR) is not.
1886   #  To support the latter case, we have to write
1887   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1888   #  so the `.' trick is pointless.
1889   mkdir_p='mkdir -p --'
1890 else
1891   # On NextStep and OpenStep, the `mkdir' command does not
1892   # recognize any option.  It will interpret all options as
1893   # directories to create, and then abort because `.' already
1894   # exists.
1895   for d in ./-p ./--version;
1896   do
1897     test -d $d && rmdir $d
1898   done
1899   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1900   if test -f "$ac_aux_dir/mkinstalldirs"; then
1901     mkdir_p='$(mkinstalldirs)'
1902   else
1903     mkdir_p='$(install_sh) -d'
1904   fi
1905 fi
1906
1907 for ac_prog in gawk mawk nawk awk
1908 do
1909   # Extract the first word of "$ac_prog", so it can be a program name with args.
1910 set dummy $ac_prog; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_AWK+set}" = set; then
1914   echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916   if test -n "$AWK"; then
1917   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922   IFS=$as_save_IFS
1923   test -z "$as_dir" && as_dir=.
1924   for ac_exec_ext in '' $ac_executable_extensions; do
1925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926     ac_cv_prog_AWK="$ac_prog"
1927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928     break 2
1929   fi
1930 done
1931 done
1932
1933 fi
1934 fi
1935 AWK=$ac_cv_prog_AWK
1936 if test -n "$AWK"; then
1937   echo "$as_me:$LINENO: result: $AWK" >&5
1938 echo "${ECHO_T}$AWK" >&6
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 fi
1943
1944   test -n "$AWK" && break
1945 done
1946
1947 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1948 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1949 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1950 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1951   echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953   cat >conftest.make <<\_ACEOF
1954 all:
1955         @echo 'ac_maketemp="$(MAKE)"'
1956 _ACEOF
1957 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1958 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1959 if test -n "$ac_maketemp"; then
1960   eval ac_cv_prog_make_${ac_make}_set=yes
1961 else
1962   eval ac_cv_prog_make_${ac_make}_set=no
1963 fi
1964 rm -f conftest.make
1965 fi
1966 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1967   echo "$as_me:$LINENO: result: yes" >&5
1968 echo "${ECHO_T}yes" >&6
1969   SET_MAKE=
1970 else
1971   echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1973   SET_MAKE="MAKE=${MAKE-make}"
1974 fi
1975
1976 rm -rf .tst 2>/dev/null
1977 mkdir .tst 2>/dev/null
1978 if test -d .tst; then
1979   am__leading_dot=.
1980 else
1981   am__leading_dot=_
1982 fi
1983 rmdir .tst 2>/dev/null
1984
1985 DEPDIR="${am__leading_dot}deps"
1986
1987           ac_config_commands="$ac_config_commands depfiles"
1988
1989
1990 am_make=${MAKE-make}
1991 cat > confinc << 'END'
1992 am__doit:
1993         @echo done
1994 .PHONY: am__doit
1995 END
1996 # If we don't find an include directive, just comment out the code.
1997 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1998 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1999 am__include="#"
2000 am__quote=
2001 _am_result=none
2002 # First try GNU make style include.
2003 echo "include confinc" > confmf
2004 # We grep out `Entering directory' and `Leaving directory'
2005 # messages which can occur if `w' ends up in MAKEFLAGS.
2006 # In particular we don't look at `^make:' because GNU make might
2007 # be invoked under some other name (usually "gmake"), in which
2008 # case it prints its new name instead of `make'.
2009 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2010    am__include=include
2011    am__quote=
2012    _am_result=GNU
2013 fi
2014 # Now try BSD make style include.
2015 if test "$am__include" = "#"; then
2016    echo '.include "confinc"' > confmf
2017    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2018       am__include=.include
2019       am__quote="\""
2020       _am_result=BSD
2021    fi
2022 fi
2023
2024
2025 echo "$as_me:$LINENO: result: $_am_result" >&5
2026 echo "${ECHO_T}$_am_result" >&6
2027 rm -f confinc confmf
2028
2029 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2030 if test "${enable_dependency_tracking+set}" = set; then
2031   enableval="$enable_dependency_tracking"
2032
2033 fi;
2034 if test "x$enable_dependency_tracking" != xno; then
2035   am_depcomp="$ac_aux_dir/depcomp"
2036   AMDEPBACKSLASH='\'
2037 fi
2038
2039
2040 if test "x$enable_dependency_tracking" != xno; then
2041   AMDEP_TRUE=
2042   AMDEP_FALSE='#'
2043 else
2044   AMDEP_TRUE='#'
2045   AMDEP_FALSE=
2046 fi
2047
2048
2049
2050
2051 # Check whether --enable-multilib or --disable-multilib was given.
2052 if test "${enable_multilib+set}" = set; then
2053   enableval="$enable_multilib"
2054   case "${enableval}" in
2055   yes) multilib=yes ;;
2056   no)  multilib=no ;;
2057   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2058 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2059    { (exit 1); exit 1; }; } ;;
2060  esac
2061 else
2062   multilib=yes
2063 fi;
2064 # Check whether --enable-target-optspace or --disable-target-optspace was given.
2065 if test "${enable_target_optspace+set}" = set; then
2066   enableval="$enable_target_optspace"
2067   case "${enableval}" in
2068   yes) target_optspace=yes ;;
2069   no)  target_optspace=no ;;
2070   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2071 echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2072    { (exit 1); exit 1; }; } ;;
2073  esac
2074 else
2075   target_optspace=
2076 fi;
2077 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
2078 if test "${enable_malloc_debugging+set}" = set; then
2079   enableval="$enable_malloc_debugging"
2080   case "${enableval}" in
2081   yes) malloc_debugging=yes ;;
2082   no)  malloc_debugging=no ;;
2083   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2084 echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2085    { (exit 1); exit 1; }; } ;;
2086  esac
2087 else
2088   malloc_debugging=
2089 fi;
2090 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
2091 if test "${enable_newlib_multithread+set}" = set; then
2092   enableval="$enable_newlib_multithread"
2093   case "${enableval}" in
2094   yes) newlib_multithread=yes ;;
2095   no)  newlib_multithread=no ;;
2096   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2097 echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2098    { (exit 1); exit 1; }; } ;;
2099  esac
2100 else
2101   newlib_multithread=yes
2102 fi;
2103 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
2104 if test "${enable_newlib_iconv+set}" = set; then
2105   enableval="$enable_newlib_iconv"
2106   if test "${newlib_iconv+set}" != set; then
2107    case "${enableval}" in
2108      yes) newlib_iconv=yes ;;
2109      no)  newlib_iconv=no ;;
2110      *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2111 echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2112    { (exit 1); exit 1; }; } ;;
2113    esac
2114  fi
2115 else
2116   newlib_iconv=${newlib_iconv}
2117 fi;
2118 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
2119 if test "${enable_newlib_elix_level+set}" = set; then
2120   enableval="$enable_newlib_elix_level"
2121   case "${enableval}" in
2122   0)   newlib_elix_level=0 ;;
2123   1)   newlib_elix_level=1 ;;
2124   2)   newlib_elix_level=2 ;;
2125   3)   newlib_elix_level=3 ;;
2126   4)   newlib_elix_level=4 ;;
2127   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2128 echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2129    { (exit 1); exit 1; }; } ;;
2130  esac
2131 else
2132   newlib_elix_level=0
2133 fi;
2134 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
2135 if test "${enable_newlib_io_float+set}" = set; then
2136   enableval="$enable_newlib_io_float"
2137   case "${enableval}" in
2138   yes) newlib_io_float=yes ;;
2139   no)  newlib_io_float=no ;;
2140   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2141 echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2142    { (exit 1); exit 1; }; } ;;
2143  esac
2144 else
2145   newlib_io_float=yes
2146 fi;
2147 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
2148 if test "${enable_newlib_supplied_syscalls+set}" = set; then
2149   enableval="$enable_newlib_supplied_syscalls"
2150   case "${enableval}" in
2151   yes) newlib_may_supply_syscalls=yes ;;
2152   no)  newlib_may_supply_syscalls=no ;;
2153   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2154 echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2155    { (exit 1); exit 1; }; } ;;
2156  esac
2157 else
2158   newlib_may_supply_syscalls=yes
2159 fi;
2160
2161
2162 if test x${newlib_may_supply_syscalls} = xyes; then
2163   MAY_SUPPLY_SYSCALLS_TRUE=
2164   MAY_SUPPLY_SYSCALLS_FALSE='#'
2165 else
2166   MAY_SUPPLY_SYSCALLS_TRUE='#'
2167   MAY_SUPPLY_SYSCALLS_FALSE=
2168 fi
2169
2170
2171
2172 test -z "${with_target_subdir}" && with_target_subdir=.
2173
2174 if test "${srcdir}" = "."; then
2175   if test "${with_target_subdir}" != "."; then
2176     newlib_basedir="${srcdir}/${with_multisrctop}../."
2177   else
2178     newlib_basedir="${srcdir}/${with_multisrctop}."
2179   fi
2180 else
2181   newlib_basedir="${srcdir}/."
2182 fi
2183
2184
2185 echo "$as_me:$LINENO: checking host system type" >&5
2186 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2187 if test "${ac_cv_host+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   ac_cv_host_alias=$host_alias
2191 test -z "$ac_cv_host_alias" &&
2192   ac_cv_host_alias=$ac_cv_build_alias
2193 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2194   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2195 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2196    { (exit 1); exit 1; }; }
2197
2198 fi
2199 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2200 echo "${ECHO_T}$ac_cv_host" >&6
2201 host=$ac_cv_host
2202 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2203 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2204 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2205
2206
2207
2208 # test to see if srcdir already configured
2209 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2210    test -f $srcdir/config.status; then
2211   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2212 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2213    { (exit 1); exit 1; }; }
2214 fi
2215
2216 # test whether we have cygpath
2217 if test -z "$CYGPATH_W"; then
2218   if (cygpath --version) >/dev/null 2>/dev/null; then
2219     CYGPATH_W='cygpath -w'
2220   else
2221     CYGPATH_W=echo
2222   fi
2223 fi
2224
2225
2226 # Define the identity of the package.
2227  PACKAGE='newlib'
2228  VERSION='1.15.0'
2229
2230
2231 # Some tools Automake needs.
2232
2233 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2234
2235
2236 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2237
2238
2239 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2240
2241
2242 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2243
2244
2245 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2246
2247 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2248
2249 # Installed binaries are usually stripped using `strip' when the user
2250 # run `make install-strip'.  However `strip' might not be the right
2251 # tool to use in cross-compilation environments, therefore Automake
2252 # will honor the `STRIP' environment variable to overrule this program.
2253 if test "$cross_compiling" != no; then
2254   if test -n "$ac_tool_prefix"; then
2255   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2256 set dummy ${ac_tool_prefix}strip; ac_word=$2
2257 echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259 if test "${ac_cv_prog_STRIP+set}" = set; then
2260   echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262   if test -n "$STRIP"; then
2263   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268   IFS=$as_save_IFS
2269   test -z "$as_dir" && as_dir=.
2270   for ac_exec_ext in '' $ac_executable_extensions; do
2271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274     break 2
2275   fi
2276 done
2277 done
2278
2279 fi
2280 fi
2281 STRIP=$ac_cv_prog_STRIP
2282 if test -n "$STRIP"; then
2283   echo "$as_me:$LINENO: result: $STRIP" >&5
2284 echo "${ECHO_T}$STRIP" >&6
2285 else
2286   echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2288 fi
2289
2290 fi
2291 if test -z "$ac_cv_prog_STRIP"; then
2292   ac_ct_STRIP=$STRIP
2293   # Extract the first word of "strip", so it can be a program name with args.
2294 set dummy strip; ac_word=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   if test -n "$ac_ct_STRIP"; then
2301   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310     ac_cv_prog_ac_ct_STRIP="strip"
2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316
2317   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2318 fi
2319 fi
2320 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2321 if test -n "$ac_ct_STRIP"; then
2322   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2323 echo "${ECHO_T}$ac_ct_STRIP" >&6
2324 else
2325   echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2327 fi
2328
2329   STRIP=$ac_ct_STRIP
2330 else
2331   STRIP="$ac_cv_prog_STRIP"
2332 fi
2333
2334 fi
2335 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2336
2337 # We need awk for the "check" target.  The system "awk" is bad on
2338 # some platforms.
2339 # Always define AMTAR for backward compatibility.
2340
2341 AMTAR=${AMTAR-"${am_missing_run}tar"}
2342
2343 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2344
2345
2346
2347
2348
2349
2350 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2351 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2352 # are probably using a cross compiler, which will not be able to fully
2353 # link an executable.  This should really be fixed in autoconf
2354 # itself.
2355
2356
2357
2358
2359
2360
2361
2362 # Extract the first word of "gcc", so it can be a program name with args.
2363 set dummy gcc; ac_word=$2
2364 echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   if test -n "$CC"; then
2370   ac_cv_prog_CC="$CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375   IFS=$as_save_IFS
2376   test -z "$as_dir" && as_dir=.
2377   for ac_exec_ext in '' $ac_executable_extensions; do
2378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2379     ac_cv_prog_CC="gcc"
2380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381     break 2
2382   fi
2383 done
2384 done
2385
2386 fi
2387 fi
2388 CC=$ac_cv_prog_CC
2389 if test -n "$CC"; then
2390   echo "$as_me:$LINENO: result: $CC" >&5
2391 echo "${ECHO_T}$CC" >&6
2392 else
2393   echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6
2395 fi
2396
2397
2398 depcc="$CC"   am_compiler_list=
2399
2400 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2401 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2402 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2406   # We make a subdir and do the tests there.  Otherwise we can end up
2407   # making bogus files that we don't know about and never remove.  For
2408   # instance it was reported that on HP-UX the gcc test will end up
2409   # making a dummy file named `D' -- because `-MD' means `put the output
2410   # in D'.
2411   mkdir conftest.dir
2412   # Copy depcomp to subdir because otherwise we won't find it if we're
2413   # using a relative directory.
2414   cp "$am_depcomp" conftest.dir
2415   cd conftest.dir
2416   # We will build objects and dependencies in a subdirectory because
2417   # it helps to detect inapplicable dependency modes.  For instance
2418   # both Tru64's cc and ICC support -MD to output dependencies as a
2419   # side effect of compilation, but ICC will put the dependencies in
2420   # the current directory while Tru64 will put them in the object
2421   # directory.
2422   mkdir sub
2423
2424   am_cv_CC_dependencies_compiler_type=none
2425   if test "$am_compiler_list" = ""; then
2426      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2427   fi
2428   for depmode in $am_compiler_list; do
2429     # Setup a source with many dependencies, because some compilers
2430     # like to wrap large dependency lists on column 80 (with \), and
2431     # we should not choose a depcomp mode which is confused by this.
2432     #
2433     # We need to recreate these files for each test, as the compiler may
2434     # overwrite some of them when testing with obscure command lines.
2435     # This happens at least with the AIX C compiler.
2436     : > sub/conftest.c
2437     for i in 1 2 3 4 5 6; do
2438       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2439       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2440       # Solaris 8's {/usr,}/bin/sh.
2441       touch sub/conftst$i.h
2442     done
2443     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2444
2445     case $depmode in
2446     nosideeffect)
2447       # after this tag, mechanisms are not by side-effect, so they'll
2448       # only be used when explicitly requested
2449       if test "x$enable_dependency_tracking" = xyes; then
2450         continue
2451       else
2452         break
2453       fi
2454       ;;
2455     none) break ;;
2456     esac
2457     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2458     # mode.  It turns out that the SunPro C++ compiler does not properly
2459     # handle `-M -o', and we need to detect this.
2460     if depmode=$depmode \
2461        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2462        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2463        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2464          >/dev/null 2>conftest.err &&
2465        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2466        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2467        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2468       # icc doesn't choke on unknown options, it will just issue warnings
2469       # or remarks (even with -Werror).  So we grep stderr for any message
2470       # that says an option was ignored or not supported.
2471       # When given -MP, icc 7.0 and 7.1 complain thusly:
2472       #   icc: Command line warning: ignoring option '-M'; no argument required
2473       # The diagnosis changed in icc 8.0:
2474       #   icc: Command line remark: option '-MP' not supported
2475       if (grep 'ignoring option' conftest.err ||
2476           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2477         am_cv_CC_dependencies_compiler_type=$depmode
2478         break
2479       fi
2480     fi
2481   done
2482
2483   cd ..
2484   rm -rf conftest.dir
2485 else
2486   am_cv_CC_dependencies_compiler_type=none
2487 fi
2488
2489 fi
2490 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2491 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2492 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2493
2494
2495
2496 if
2497   test "x$enable_dependency_tracking" != xno \
2498   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2499   am__fastdepCC_TRUE=
2500   am__fastdepCC_FALSE='#'
2501 else
2502   am__fastdepCC_TRUE='#'
2503   am__fastdepCC_FALSE=
2504 fi
2505
2506
2507 if test -z "$CC"; then
2508   # Extract the first word of "cc", so it can be a program name with args.
2509 set dummy cc; ac_word=$2
2510 echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2512 if test "${ac_cv_prog_CC+set}" = set; then
2513   echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515   if test -n "$CC"; then
2516   ac_cv_prog_CC="$CC" # Let the user override the test.
2517 else
2518   ac_prog_rejected=no
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2521 do
2522   IFS=$as_save_IFS
2523   test -z "$as_dir" && as_dir=.
2524   for ac_exec_ext in '' $ac_executable_extensions; do
2525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2526     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2527        ac_prog_rejected=yes
2528        continue
2529      fi
2530     ac_cv_prog_CC="cc"
2531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532     break 2
2533   fi
2534 done
2535 done
2536
2537 if test $ac_prog_rejected = yes; then
2538   # We found a bogon in the path, so make sure we never use it.
2539   set dummy $ac_cv_prog_CC
2540   shift
2541   if test $# != 0; then
2542     # We chose a different compiler from the bogus one.
2543     # However, it has the same basename, so the bogon will be chosen
2544     # first if we set CC to just the basename; use the full file name.
2545     shift
2546     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2547   fi
2548 fi
2549 fi
2550 fi
2551 CC=$ac_cv_prog_CC
2552 if test -n "$CC"; then
2553   echo "$as_me:$LINENO: result: $CC" >&5
2554 echo "${ECHO_T}$CC" >&6
2555 else
2556   echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6
2558 fi
2559
2560   test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2561 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2562    { (exit 1); exit 1; }; }
2563 fi
2564
2565 echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2566 echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2567 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   cat > conftest.c <<EOF
2571 #ifdef __GNUC__
2572   yes;
2573 #endif
2574 EOF
2575 if { ac_try='${CC-cc} -E conftest.c'
2576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577   (eval $ac_try) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2581   ac_cv_c_compiler_gnu=yes
2582 else
2583   ac_cv_c_compiler_gnu=no
2584 fi
2585 fi
2586 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2587 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2588
2589 if test $ac_cv_c_compiler_gnu = yes; then
2590   GCC=yes
2591   ac_test_CFLAGS="${CFLAGS+set}"
2592   ac_save_CFLAGS="$CFLAGS"
2593   CFLAGS=
2594   ac_test_CFLAGS=${CFLAGS+set}
2595 ac_save_CFLAGS=$CFLAGS
2596 CFLAGS="-g"
2597 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2598 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2599 if test "${ac_cv_prog_cc_g+set}" = set; then
2600   echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602   cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h.  */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h.  */
2608
2609 int
2610 main ()
2611 {
2612
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619   (eval $ac_compile) 2>conftest.er1
2620   ac_status=$?
2621   grep -v '^ *+' conftest.er1 >conftest.err
2622   rm -f conftest.er1
2623   cat conftest.err >&5
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); } &&
2626          { ac_try='test -z "$ac_c_werror_flag"
2627                          || test ! -s conftest.err'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   ac_cv_prog_cc_g=yes
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 ac_cv_prog_cc_g=no
2645 fi
2646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647 fi
2648 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2649 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2650 if test "$ac_test_CFLAGS" = set; then
2651   CFLAGS=$ac_save_CFLAGS
2652 elif test $ac_cv_prog_cc_g = yes; then
2653   if test "$GCC" = yes; then
2654     CFLAGS="-g -O2"
2655   else
2656     CFLAGS="-g"
2657   fi
2658 else
2659   if test "$GCC" = yes; then
2660     CFLAGS="-O2"
2661   else
2662     CFLAGS=
2663   fi
2664 fi
2665   if test "$ac_test_CFLAGS" = set; then
2666     CFLAGS="$ac_save_CFLAGS"
2667   elif test $ac_cv_prog_cc_g = yes; then
2668     CFLAGS="-g -O2"
2669   else
2670     CFLAGS="-O2"
2671   fi
2672 else
2673   GCC=
2674   test "${CFLAGS+set}" = set || CFLAGS="-g"
2675 fi
2676
2677
2678 if test -n "$ac_tool_prefix"; then
2679   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2680 set dummy ${ac_tool_prefix}as; ac_word=$2
2681 echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683 if test "${ac_cv_prog_AS+set}" = set; then
2684   echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686   if test -n "$AS"; then
2687   ac_cv_prog_AS="$AS" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692   IFS=$as_save_IFS
2693   test -z "$as_dir" && as_dir=.
2694   for ac_exec_ext in '' $ac_executable_extensions; do
2695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696     ac_cv_prog_AS="${ac_tool_prefix}as"
2697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698     break 2
2699   fi
2700 done
2701 done
2702
2703 fi
2704 fi
2705 AS=$ac_cv_prog_AS
2706 if test -n "$AS"; then
2707   echo "$as_me:$LINENO: result: $AS" >&5
2708 echo "${ECHO_T}$AS" >&6
2709 else
2710   echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6
2712 fi
2713
2714 fi
2715 if test -z "$ac_cv_prog_AS"; then
2716   ac_ct_AS=$AS
2717   # Extract the first word of "as", so it can be a program name with args.
2718 set dummy as; ac_word=$2
2719 echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2722   echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724   if test -n "$ac_ct_AS"; then
2725   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730   IFS=$as_save_IFS
2731   test -z "$as_dir" && as_dir=.
2732   for ac_exec_ext in '' $ac_executable_extensions; do
2733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734     ac_cv_prog_ac_ct_AS="as"
2735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739 done
2740
2741 fi
2742 fi
2743 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2744 if test -n "$ac_ct_AS"; then
2745   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2746 echo "${ECHO_T}$ac_ct_AS" >&6
2747 else
2748   echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6
2750 fi
2751
2752   AS=$ac_ct_AS
2753 else
2754   AS="$ac_cv_prog_AS"
2755 fi
2756
2757 if test -n "$ac_tool_prefix"; then
2758   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2759 set dummy ${ac_tool_prefix}ar; ac_word=$2
2760 echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762 if test "${ac_cv_prog_AR+set}" = set; then
2763   echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765   if test -n "$AR"; then
2766   ac_cv_prog_AR="$AR" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771   IFS=$as_save_IFS
2772   test -z "$as_dir" && as_dir=.
2773   for ac_exec_ext in '' $ac_executable_extensions; do
2774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775     ac_cv_prog_AR="${ac_tool_prefix}ar"
2776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777     break 2
2778   fi
2779 done
2780 done
2781
2782 fi
2783 fi
2784 AR=$ac_cv_prog_AR
2785 if test -n "$AR"; then
2786   echo "$as_me:$LINENO: result: $AR" >&5
2787 echo "${ECHO_T}$AR" >&6
2788 else
2789   echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2791 fi
2792
2793 fi
2794 if test -z "$ac_cv_prog_AR"; then
2795   ac_ct_AR=$AR
2796   # Extract the first word of "ar", so it can be a program name with args.
2797 set dummy ar; ac_word=$2
2798 echo "$as_me:$LINENO: checking for $ac_word" >&5
2799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2800 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2801   echo $ECHO_N "(cached) $ECHO_C" >&6
2802 else
2803   if test -n "$ac_ct_AR"; then
2804   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH
2808 do
2809   IFS=$as_save_IFS
2810   test -z "$as_dir" && as_dir=.
2811   for ac_exec_ext in '' $ac_executable_extensions; do
2812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2813     ac_cv_prog_ac_ct_AR="ar"
2814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2815     break 2
2816   fi
2817 done
2818 done
2819
2820 fi
2821 fi
2822 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2823 if test -n "$ac_ct_AR"; then
2824   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2825 echo "${ECHO_T}$ac_ct_AR" >&6
2826 else
2827   echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2829 fi
2830
2831   AR=$ac_ct_AR
2832 else
2833   AR="$ac_cv_prog_AR"
2834 fi
2835
2836 if test -n "$ac_tool_prefix"; then
2837   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_RANLIB+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   if test -n "$RANLIB"; then
2845   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852   for ac_exec_ext in '' $ac_executable_extensions; do
2853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856     break 2
2857   fi
2858 done
2859 done
2860
2861 fi
2862 fi
2863 RANLIB=$ac_cv_prog_RANLIB
2864 if test -n "$RANLIB"; then
2865   echo "$as_me:$LINENO: result: $RANLIB" >&5
2866 echo "${ECHO_T}$RANLIB" >&6
2867 else
2868   echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2870 fi
2871
2872 fi
2873 if test -z "$ac_cv_prog_RANLIB"; then
2874   ac_ct_RANLIB=$RANLIB
2875   # Extract the first word of "ranlib", so it can be a program name with args.
2876 set dummy ranlib; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$ac_ct_RANLIB"; then
2883   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892     ac_cv_prog_ac_ct_RANLIB="ranlib"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898
2899   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2900 fi
2901 fi
2902 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2903 if test -n "$ac_ct_RANLIB"; then
2904   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2905 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2906 else
2907   echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2909 fi
2910
2911   RANLIB=$ac_ct_RANLIB
2912 else
2913   RANLIB="$ac_cv_prog_RANLIB"
2914 fi
2915
2916 if test -n "$ac_tool_prefix"; then
2917   # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2918 set dummy ${ac_tool_prefix}readelf; ac_word=$2
2919 echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_READELF+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924   if test -n "$READELF"; then
2925   ac_cv_prog_READELF="$READELF" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930   IFS=$as_save_IFS
2931   test -z "$as_dir" && as_dir=.
2932   for ac_exec_ext in '' $ac_executable_extensions; do
2933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934     ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936     break 2
2937   fi
2938 done
2939 done
2940
2941 fi
2942 fi
2943 READELF=$ac_cv_prog_READELF
2944 if test -n "$READELF"; then
2945   echo "$as_me:$LINENO: result: $READELF" >&5
2946 echo "${ECHO_T}$READELF" >&6
2947 else
2948   echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2950 fi
2951
2952 fi
2953 if test -z "$ac_cv_prog_READELF"; then
2954   ac_ct_READELF=$READELF
2955   # Extract the first word of "readelf", so it can be a program name with args.
2956 set dummy readelf; ac_word=$2
2957 echo "$as_me:$LINENO: checking for $ac_word" >&5
2958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2959 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2960   echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962   if test -n "$ac_ct_READELF"; then
2963   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968   IFS=$as_save_IFS
2969   test -z "$as_dir" && as_dir=.
2970   for ac_exec_ext in '' $ac_executable_extensions; do
2971   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972     ac_cv_prog_ac_ct_READELF="readelf"
2973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974     break 2
2975   fi
2976 done
2977 done
2978
2979   test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2980 fi
2981 fi
2982 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2983 if test -n "$ac_ct_READELF"; then
2984   echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2985 echo "${ECHO_T}$ac_ct_READELF" >&6
2986 else
2987   echo "$as_me:$LINENO: result: no" >&5
2988 echo "${ECHO_T}no" >&6
2989 fi
2990
2991   READELF=$ac_ct_READELF
2992 else
2993   READELF="$ac_cv_prog_READELF"
2994 fi
2995
2996
2997 # Find a good install program.  We prefer a C program (faster),
2998 # so one script is as good as another.  But avoid the broken or
2999 # incompatible versions:
3000 # SysV /etc/install, /usr/sbin/install
3001 # SunOS /usr/etc/install
3002 # IRIX /sbin/install
3003 # AIX /bin/install
3004 # AmigaOS /C/install, which installs bootblocks on floppy discs
3005 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3006 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3007 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3008 # OS/2's system install, which has a completely different semantic
3009 # ./install, which can be erroneously created by make from ./install.sh.
3010 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3011 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3012 if test -z "$INSTALL"; then
3013 if test "${ac_cv_path_install+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019   IFS=$as_save_IFS
3020   test -z "$as_dir" && as_dir=.
3021   # Account for people who put trailing slashes in PATH elements.
3022 case $as_dir/ in
3023   ./ | .// | /cC/* | \
3024   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3025   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3026   /usr/ucb/* ) ;;
3027   *)
3028     # OSF1 and SCO ODT 3.0 have their own names for install.
3029     # Don't use installbsd from OSF since it installs stuff as root
3030     # by default.
3031     for ac_prog in ginstall scoinst install; do
3032       for ac_exec_ext in '' $ac_executable_extensions; do
3033         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3034           if test $ac_prog = install &&
3035             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3036             # AIX install.  It has an incompatible calling convention.
3037             :
3038           elif test $ac_prog = install &&
3039             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3040             # program-specific install script used by HP pwplus--don't use.
3041             :
3042           else
3043             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3044             break 3
3045           fi
3046         fi
3047       done
3048     done
3049     ;;
3050 esac
3051 done
3052
3053
3054 fi
3055   if test "${ac_cv_path_install+set}" = set; then
3056     INSTALL=$ac_cv_path_install
3057   else
3058     # As a last resort, use the slow shell script.  We don't cache a
3059     # path for INSTALL within a source directory, because that will
3060     # break other packages using the cache if that directory is
3061     # removed, or if the path is relative.
3062     INSTALL=$ac_install_sh
3063   fi
3064 fi
3065 echo "$as_me:$LINENO: result: $INSTALL" >&5
3066 echo "${ECHO_T}$INSTALL" >&6
3067
3068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3069 # It thinks the first close brace ends the variable substitution.
3070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3071
3072 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3073
3074 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3075
3076
3077 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
3078 ac_given_INSTALL=$INSTALL
3079
3080 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3081 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3082     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3083 if test "${enable_maintainer_mode+set}" = set; then
3084   enableval="$enable_maintainer_mode"
3085   USE_MAINTAINER_MODE=$enableval
3086 else
3087   USE_MAINTAINER_MODE=no
3088 fi;
3089   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3090 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3091
3092
3093 if test $USE_MAINTAINER_MODE = yes; then
3094   MAINTAINER_MODE_TRUE=
3095   MAINTAINER_MODE_FALSE='#'
3096 else
3097   MAINTAINER_MODE_TRUE='#'
3098   MAINTAINER_MODE_FALSE=
3099 fi
3100
3101   MAINT=$MAINTAINER_MODE_TRUE
3102
3103
3104 # By default we simply use the C compiler to build assembly code.
3105
3106 test "${CCAS+set}" = set || CCAS=$CC
3107 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3108
3109
3110
3111
3112 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
3113 # at least currently, we never actually build a program, so we never
3114 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
3115 # fails, because we are probably configuring with a cross compiler
3116 # which can't create executables.  So we include AC_EXEEXT to keep
3117 # automake happy, but we don't execute it, since we don't care about
3118 # the result.
3119 if false; then
3120
3121   dummy_var=1
3122 fi
3123
3124 . ${newlib_basedir}/configure.host
3125
3126 newlib_cflags="${newlib_cflags} -fno-builtin"
3127
3128 NEWLIB_CFLAGS=${newlib_cflags}
3129
3130
3131 LDFLAGS=${ldflags}
3132
3133
3134
3135
3136 if test x${newlib_elix_level} = x0; then
3137   ELIX_LEVEL_0_TRUE=
3138   ELIX_LEVEL_0_FALSE='#'
3139 else
3140   ELIX_LEVEL_0_TRUE='#'
3141   ELIX_LEVEL_0_FALSE=
3142 fi
3143
3144
3145
3146 if test x${newlib_elix_level} = x1; then
3147   ELIX_LEVEL_1_TRUE=
3148   ELIX_LEVEL_1_FALSE='#'
3149 else
3150   ELIX_LEVEL_1_TRUE='#'
3151   ELIX_LEVEL_1_FALSE=
3152 fi
3153
3154
3155
3156 if test x${newlib_elix_level} = x2; then
3157   ELIX_LEVEL_2_TRUE=
3158   ELIX_LEVEL_2_FALSE='#'
3159 else
3160   ELIX_LEVEL_2_TRUE='#'
3161   ELIX_LEVEL_2_FALSE=
3162 fi
3163
3164
3165
3166 if test x${newlib_elix_level} = x3; then
3167   ELIX_LEVEL_3_TRUE=
3168   ELIX_LEVEL_3_FALSE='#'
3169 else
3170   ELIX_LEVEL_3_TRUE='#'
3171   ELIX_LEVEL_3_FALSE=
3172 fi
3173
3174
3175
3176 if test x${newlib_elix_level} = x4; then
3177   ELIX_LEVEL_4_TRUE=
3178   ELIX_LEVEL_4_FALSE='#'
3179 else
3180   ELIX_LEVEL_4_TRUE='#'
3181   ELIX_LEVEL_4_FALSE=
3182 fi
3183
3184
3185
3186
3187 if test x${use_libtool} = xyes; then
3188   USE_LIBTOOL_TRUE=
3189   USE_LIBTOOL_FALSE='#'
3190 else
3191   USE_LIBTOOL_TRUE='#'
3192   USE_LIBTOOL_FALSE=
3193 fi
3194
3195
3196 # Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3197 # use oext, which is set in configure.host based on the target platform.
3198 OBJEXT=${oext}
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3211 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3212 if test "${lt_cv_path_SED+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215   # Loop through the user's path and test for sed and gsed.
3216 # Then use that list of sed's as ones to test for truncation.
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 lt_ac_prog in sed gsed; do
3223     for ac_exec_ext in '' $ac_executable_extensions; do
3224       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3225         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3226       fi
3227     done
3228   done
3229 done
3230 IFS=$as_save_IFS
3231 lt_ac_max=0
3232 lt_ac_count=0
3233 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3234 # along with /bin/sed that truncates output.
3235 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3236   test ! -f $lt_ac_sed && continue
3237   cat /dev/null > conftest.in
3238   lt_ac_count=0
3239   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3240   # Check for GNU sed and select it if it is found.
3241   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3242     lt_cv_path_SED=$lt_ac_sed
3243     break
3244   fi
3245   while true; do
3246     cat conftest.in conftest.in >conftest.tmp
3247     mv conftest.tmp conftest.in
3248     cp conftest.in conftest.nl
3249     echo >>conftest.nl
3250     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3251     cmp -s conftest.out conftest.nl || break
3252     # 10000 chars as input seems more than enough
3253     test $lt_ac_count -gt 10 && break
3254     lt_ac_count=`expr $lt_ac_count + 1`
3255     if test $lt_ac_count -gt $lt_ac_max; then
3256       lt_ac_max=$lt_ac_count
3257       lt_cv_path_SED=$lt_ac_sed
3258     fi
3259   done
3260 done
3261
3262 fi
3263
3264 SED=$lt_cv_path_SED
3265
3266 echo "$as_me:$LINENO: result: $SED" >&5
3267 echo "${ECHO_T}$SED" >&6
3268
3269 test -z "$SED" && SED=sed
3270 Xsed="$SED -e 1s/^X//"
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282 for ac_prog in gawk mawk nawk awk
3283 do
3284   # Extract the first word of "$ac_prog", so it can be a program name with args.
3285 set dummy $ac_prog; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_prog_AWK+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   if test -n "$AWK"; then
3292   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301     ac_cv_prog_AWK="$ac_prog"
3302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303     break 2
3304   fi
3305 done
3306 done
3307
3308 fi
3309 fi
3310 AWK=$ac_cv_prog_AWK
3311 if test -n "$AWK"; then
3312   echo "$as_me:$LINENO: result: $AWK" >&5
3313 echo "${ECHO_T}$AWK" >&6
3314 else
3315   echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3317 fi
3318
3319   test -n "$AWK" && break
3320 done
3321
3322 if test "${use_libtool}" = "yes"; then
3323 enable_win32_dll=yes
3324
3325 case $host in
3326 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3327   if test -n "$ac_tool_prefix"; then
3328   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3329 set dummy ${ac_tool_prefix}as; ac_word=$2
3330 echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_AS+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   if test -n "$AS"; then
3336   ac_cv_prog_AS="$AS" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341   IFS=$as_save_IFS
3342   test -z "$as_dir" && as_dir=.
3343   for ac_exec_ext in '' $ac_executable_extensions; do
3344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345     ac_cv_prog_AS="${ac_tool_prefix}as"
3346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347     break 2
3348   fi
3349 done
3350 done
3351
3352 fi
3353 fi
3354 AS=$ac_cv_prog_AS
3355 if test -n "$AS"; then
3356   echo "$as_me:$LINENO: result: $AS" >&5
3357 echo "${ECHO_T}$AS" >&6
3358 else
3359   echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3361 fi
3362
3363 fi
3364 if test -z "$ac_cv_prog_AS"; then
3365   ac_ct_AS=$AS
3366   # Extract the first word of "as", so it can be a program name with args.
3367 set dummy as; ac_word=$2
3368 echo "$as_me:$LINENO: checking for $ac_word" >&5
3369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3370 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3371   echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373   if test -n "$ac_ct_AS"; then
3374   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3378 do
3379   IFS=$as_save_IFS
3380   test -z "$as_dir" && as_dir=.
3381   for ac_exec_ext in '' $ac_executable_extensions; do
3382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383     ac_cv_prog_ac_ct_AS="as"
3384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385     break 2
3386   fi
3387 done
3388 done
3389
3390   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3391 fi
3392 fi
3393 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3394 if test -n "$ac_ct_AS"; then
3395   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3396 echo "${ECHO_T}$ac_ct_AS" >&6
3397 else
3398   echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6
3400 fi
3401
3402   AS=$ac_ct_AS
3403 else
3404   AS="$ac_cv_prog_AS"
3405 fi
3406
3407   if test -n "$ac_tool_prefix"; then
3408   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3409 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3410 echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3412 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3413   echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415   if test -n "$DLLTOOL"; then
3416   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423   for ac_exec_ext in '' $ac_executable_extensions; do
3424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427     break 2
3428   fi
3429 done
3430 done
3431
3432 fi
3433 fi
3434 DLLTOOL=$ac_cv_prog_DLLTOOL
3435 if test -n "$DLLTOOL"; then
3436   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3437 echo "${ECHO_T}$DLLTOOL" >&6
3438 else
3439   echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3441 fi
3442
3443 fi
3444 if test -z "$ac_cv_prog_DLLTOOL"; then
3445   ac_ct_DLLTOOL=$DLLTOOL
3446   # Extract the first word of "dlltool", so it can be a program name with args.
3447 set dummy dlltool; ac_word=$2
3448 echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3450 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3451   echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453   if test -n "$ac_ct_DLLTOOL"; then
3454   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3458 do
3459   IFS=$as_save_IFS
3460   test -z "$as_dir" && as_dir=.
3461   for ac_exec_ext in '' $ac_executable_extensions; do
3462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3465     break 2
3466   fi
3467 done
3468 done
3469
3470   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3471 fi
3472 fi
3473 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3474 if test -n "$ac_ct_DLLTOOL"; then
3475   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3476 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3477 else
3478   echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6
3480 fi
3481
3482   DLLTOOL=$ac_ct_DLLTOOL
3483 else
3484   DLLTOOL="$ac_cv_prog_DLLTOOL"
3485 fi
3486
3487   if test -n "$ac_tool_prefix"; then
3488   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3489 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3490 echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3493   echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495   if test -n "$OBJDUMP"; then
3496   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501   IFS=$as_save_IFS
3502   test -z "$as_dir" && as_dir=.
3503   for ac_exec_ext in '' $ac_executable_extensions; do
3504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507     break 2
3508   fi
3509 done
3510 done
3511
3512 fi
3513 fi
3514 OBJDUMP=$ac_cv_prog_OBJDUMP
3515 if test -n "$OBJDUMP"; then
3516   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3517 echo "${ECHO_T}$OBJDUMP" >&6
3518 else
3519   echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3521 fi
3522
3523 fi
3524 if test -z "$ac_cv_prog_OBJDUMP"; then
3525   ac_ct_OBJDUMP=$OBJDUMP
3526   # Extract the first word of "objdump", so it can be a program name with args.
3527 set dummy objdump; ac_word=$2
3528 echo "$as_me:$LINENO: checking for $ac_word" >&5
3529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   if test -n "$ac_ct_OBJDUMP"; then
3534   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539   IFS=$as_save_IFS
3540   test -z "$as_dir" && as_dir=.
3541   for ac_exec_ext in '' $ac_executable_extensions; do
3542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543     ac_cv_prog_ac_ct_OBJDUMP="objdump"
3544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545     break 2
3546   fi
3547 done
3548 done
3549
3550   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3551 fi
3552 fi
3553 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3554 if test -n "$ac_ct_OBJDUMP"; then
3555   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3556 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3557 else
3558   echo "$as_me:$LINENO: result: no" >&5
3559 echo "${ECHO_T}no" >&6
3560 fi
3561
3562   OBJDUMP=$ac_ct_OBJDUMP
3563 else
3564   OBJDUMP="$ac_cv_prog_OBJDUMP"
3565 fi
3566
3567   ;;
3568 esac
3569
3570 test -z "$AS" && AS=as
3571
3572
3573
3574
3575
3576 test -z "$DLLTOOL" && DLLTOOL=dlltool
3577
3578
3579
3580
3581
3582 test -z "$OBJDUMP" && OBJDUMP=objdump
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592 macro_version='2.1a'
3593 macro_revision='1.2435'
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606 ltmain="$ac_aux_dir/ltmain.sh"
3607
3608 # Set options
3609
3610 enable_dlopen=no
3611
3612
3613
3614 # Check whether --enable-shared or --disable-shared was given.
3615 if test "${enable_shared+set}" = set; then
3616   enableval="$enable_shared"
3617   p=${PACKAGE-default}
3618     case $enableval in
3619     yes) enable_shared=yes ;;
3620     no) enable_shared=no ;;
3621     *)
3622       enable_shared=no
3623       # Look at the argument we got.  We use all the common list separators.
3624       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3625       for pkg in $enableval; do
3626         IFS="$lt_save_ifs"
3627         if test "X$pkg" = "X$p"; then
3628           enable_shared=yes
3629         fi
3630       done
3631       IFS="$lt_save_ifs"
3632       ;;
3633     esac
3634 else
3635   enable_shared=yes
3636 fi;
3637
3638
3639
3640
3641
3642
3643
3644
3645 # Check whether --enable-static or --disable-static was given.
3646 if test "${enable_static+set}" = set; then
3647   enableval="$enable_static"
3648   p=${PACKAGE-default}
3649     case $enableval in
3650     yes) enable_static=yes ;;
3651     no) enable_static=no ;;
3652     *)
3653      enable_static=no
3654       # Look at the argument we got.  We use all the common list separators.
3655       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3656       for pkg in $enableval; do
3657         IFS="$lt_save_ifs"
3658         if test "X$pkg" = "X$p"; then
3659           enable_static=yes
3660         fi
3661       done
3662       IFS="$lt_save_ifs"
3663       ;;
3664     esac
3665 else
3666   enable_static=yes
3667 fi;
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677 # Check whether --with-pic or --without-pic was given.
3678 if test "${with_pic+set}" = set; then
3679   withval="$with_pic"
3680   pic_mode="$withval"
3681 else
3682   pic_mode=default
3683 fi;
3684
3685 test -z "$pic_mode" && pic_mode=default
3686
3687
3688
3689
3690
3691
3692
3693 # Check whether --enable-fast-install or --disable-fast-install was given.
3694 if test "${enable_fast_install+set}" = set; then
3695   enableval="$enable_fast_install"
3696   p=${PACKAGE-default}
3697     case $enableval in
3698     yes) enable_fast_install=yes ;;
3699     no) enable_fast_install=no ;;
3700     *)
3701       enable_fast_install=no
3702       # Look at the argument we got.  We use all the common list separators.
3703       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3704       for pkg in $enableval; do
3705         IFS="$lt_save_ifs"
3706         if test "X$pkg" = "X$p"; then
3707           enable_fast_install=yes
3708         fi
3709       done
3710       IFS="$lt_save_ifs"
3711       ;;
3712     esac
3713 else
3714   enable_fast_install=yes
3715 fi;
3716
3717
3718
3719
3720
3721
3722
3723
3724 ac_ext=c
3725 ac_cpp='$CPP $CPPFLAGS'
3726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729 if test -n "$ac_tool_prefix"; then
3730   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3732 echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3734 if test "${ac_cv_prog_CC+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   if test -n "$CC"; then
3738   ac_cv_prog_CC="$CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745   for ac_exec_ext in '' $ac_executable_extensions; do
3746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749     break 2
3750   fi
3751 done
3752 done
3753
3754 fi
3755 fi
3756 CC=$ac_cv_prog_CC
3757 if test -n "$CC"; then
3758   echo "$as_me:$LINENO: result: $CC" >&5
3759 echo "${ECHO_T}$CC" >&6
3760 else
3761   echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3763 fi
3764
3765 fi
3766 if test -z "$ac_cv_prog_CC"; then
3767   ac_ct_CC=$CC
3768   # Extract the first word of "gcc", so it can be a program name with args.
3769 set dummy gcc; ac_word=$2
3770 echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   if test -n "$ac_ct_CC"; then
3776   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781   IFS=$as_save_IFS
3782   test -z "$as_dir" && as_dir=.
3783   for ac_exec_ext in '' $ac_executable_extensions; do
3784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785     ac_cv_prog_ac_ct_CC="gcc"
3786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787     break 2
3788   fi
3789 done
3790 done
3791
3792 fi
3793 fi
3794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3795 if test -n "$ac_ct_CC"; then
3796   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3797 echo "${ECHO_T}$ac_ct_CC" >&6
3798 else
3799   echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3801 fi
3802
3803   CC=$ac_ct_CC
3804 else
3805   CC="$ac_cv_prog_CC"
3806 fi
3807
3808 if test -z "$CC"; then
3809   if test -n "$ac_tool_prefix"; then
3810   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}cc; ac_word=$2
3812 echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3814 if test "${ac_cv_prog_CC+set}" = set; then
3815   echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817   if test -n "$CC"; then
3818   ac_cv_prog_CC="$CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825   for ac_exec_ext in '' $ac_executable_extensions; do
3826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827     ac_cv_prog_CC="${ac_tool_prefix}cc"
3828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832 done
3833
3834 fi
3835 fi
3836 CC=$ac_cv_prog_CC
3837 if test -n "$CC"; then
3838   echo "$as_me:$LINENO: result: $CC" >&5
3839 echo "${ECHO_T}$CC" >&6
3840 else
3841   echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3843 fi
3844
3845 fi
3846 if test -z "$ac_cv_prog_CC"; then
3847   ac_ct_CC=$CC
3848   # Extract the first word of "cc", so it can be a program name with args.
3849 set dummy cc; ac_word=$2
3850 echo "$as_me:$LINENO: checking for $ac_word" >&5
3851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3853   echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855   if test -n "$ac_ct_CC"; then
3856   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861   IFS=$as_save_IFS
3862   test -z "$as_dir" && as_dir=.
3863   for ac_exec_ext in '' $ac_executable_extensions; do
3864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865     ac_cv_prog_ac_ct_CC="cc"
3866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867     break 2
3868   fi
3869 done
3870 done
3871
3872 fi
3873 fi
3874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3875 if test -n "$ac_ct_CC"; then
3876   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3877 echo "${ECHO_T}$ac_ct_CC" >&6
3878 else
3879   echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3881 fi
3882
3883   CC=$ac_ct_CC
3884 else
3885   CC="$ac_cv_prog_CC"
3886 fi
3887
3888 fi
3889 if test -z "$CC"; then
3890   # Extract the first word of "cc", so it can be a program name with args.
3891 set dummy cc; ac_word=$2
3892 echo "$as_me:$LINENO: checking for $ac_word" >&5
3893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3894 if test "${ac_cv_prog_CC+set}" = set; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897   if test -n "$CC"; then
3898   ac_cv_prog_CC="$CC" # Let the user override the test.
3899 else
3900   ac_prog_rejected=no
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904   IFS=$as_save_IFS
3905   test -z "$as_dir" && as_dir=.
3906   for ac_exec_ext in '' $ac_executable_extensions; do
3907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3909        ac_prog_rejected=yes
3910        continue
3911      fi
3912     ac_cv_prog_CC="cc"
3913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914     break 2
3915   fi
3916 done
3917 done
3918
3919 if test $ac_prog_rejected = yes; then
3920   # We found a bogon in the path, so make sure we never use it.
3921   set dummy $ac_cv_prog_CC
3922   shift
3923   if test $# != 0; then
3924     # We chose a different compiler from the bogus one.
3925     # However, it has the same basename, so the bogon will be chosen
3926     # first if we set CC to just the basename; use the full file name.
3927     shift
3928     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3929   fi
3930 fi
3931 fi
3932 fi
3933 CC=$ac_cv_prog_CC
3934 if test -n "$CC"; then
3935   echo "$as_me:$LINENO: result: $CC" >&5
3936 echo "${ECHO_T}$CC" >&6
3937 else
3938   echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3940 fi
3941
3942 fi
3943 if test -z "$CC"; then
3944   if test -n "$ac_tool_prefix"; then
3945   for ac_prog in cl
3946   do
3947     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3949 echo "$as_me:$LINENO: checking for $ac_word" >&5
3950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3951 if test "${ac_cv_prog_CC+set}" = set; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   if test -n "$CC"; then
3955   ac_cv_prog_CC="$CC" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960   IFS=$as_save_IFS
3961   test -z "$as_dir" && as_dir=.
3962   for ac_exec_ext in '' $ac_executable_extensions; do
3963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966     break 2
3967   fi
3968 done
3969 done
3970
3971 fi
3972 fi
3973 CC=$ac_cv_prog_CC
3974 if test -n "$CC"; then
3975   echo "$as_me:$LINENO: result: $CC" >&5
3976 echo "${ECHO_T}$CC" >&6
3977 else
3978   echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6
3980 fi
3981
3982     test -n "$CC" && break
3983   done
3984 fi
3985 if test -z "$CC"; then
3986   ac_ct_CC=$CC
3987   for ac_prog in cl
3988 do
3989   # Extract the first word of "$ac_prog", so it can be a program name with args.
3990 set dummy $ac_prog; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   if test -n "$ac_ct_CC"; then
3997   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002   IFS=$as_save_IFS
4003   test -z "$as_dir" && as_dir=.
4004   for ac_exec_ext in '' $ac_executable_extensions; do
4005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006     ac_cv_prog_ac_ct_CC="$ac_prog"
4007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008     break 2
4009   fi
4010 done
4011 done
4012
4013 fi
4014 fi
4015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4016 if test -n "$ac_ct_CC"; then
4017   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4018 echo "${ECHO_T}$ac_ct_CC" >&6
4019 else
4020   echo "$as_me:$LINENO: result: no" >&5
4021 echo "${ECHO_T}no" >&6
4022 fi
4023
4024   test -n "$ac_ct_CC" && break
4025 done
4026
4027   CC=$ac_ct_CC
4028 fi
4029
4030 fi
4031
4032
4033 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4034 See \`config.log' for more details." >&5
4035 echo "$as_me: error: no acceptable C compiler found in \$PATH
4036 See \`config.log' for more details." >&2;}
4037    { (exit 1); exit 1; }; }
4038
4039 # Provide some information about the compiler.
4040 echo "$as_me:$LINENO:" \
4041      "checking for C compiler version" >&5
4042 ac_compiler=`set X $ac_compile; echo $2`
4043 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4044   (eval $ac_compiler --version </dev/null >&5) 2>&5
4045   ac_status=$?
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); }
4048 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4049   (eval $ac_compiler -v </dev/null >&5) 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); }
4053 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4054   (eval $ac_compiler -V </dev/null >&5) 2>&5
4055   ac_status=$?
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); }
4058
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065
4066 int
4067 main ()
4068 {
4069
4070   ;
4071   return 0;
4072 }
4073 _ACEOF
4074 ac_clean_files_save=$ac_clean_files
4075 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4076 # Try to create an executable without -o first, disregard a.out.
4077 # It will help us diagnose broken compilers, and finding out an intuition
4078 # of exeext.
4079 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4080 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4081 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4082 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4083   (eval $ac_link_default) 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }; then
4087   # Find the output, starting from the most likely.  This scheme is
4088 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4089 # resort.
4090
4091 # Be careful to initialize this variable, since it used to be cached.
4092 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4093 ac_cv_exeext=
4094 # b.out is created by i960 compilers.
4095 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4096 do
4097   test -f "$ac_file" || continue
4098   case $ac_file in
4099     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4100         ;;
4101     conftest.$ac_ext )
4102         # This is the source file.
4103         ;;
4104     [ab].out )
4105         # We found the default executable, but exeext='' is most
4106         # certainly right.
4107         break;;
4108     *.* )
4109         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4110         # FIXME: I believe we export ac_cv_exeext for Libtool,
4111         # but it would be cool to find out if it's true.  Does anybody
4112         # maintain Libtool? --akim.
4113         export ac_cv_exeext
4114         break;;
4115     * )
4116         break;;
4117   esac
4118 done
4119 else
4120   echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4122
4123 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4124 See \`config.log' for more details." >&5
4125 echo "$as_me: error: C compiler cannot create executables
4126 See \`config.log' for more details." >&2;}
4127    { (exit 77); exit 77; }; }
4128 fi
4129
4130 ac_exeext=$ac_cv_exeext
4131 echo "$as_me:$LINENO: result: $ac_file" >&5
4132 echo "${ECHO_T}$ac_file" >&6
4133
4134 # Check the compiler produces executables we can run.  If not, either
4135 # the compiler is broken, or we cross compile.
4136 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4137 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4138 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4139 # If not cross compiling, check that we can run a simple program.
4140 if test "$cross_compiling" != yes; then
4141   if { ac_try='./$ac_file'
4142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143   (eval $ac_try) 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); }; }; then
4147     cross_compiling=no
4148   else
4149     if test "$cross_compiling" = maybe; then
4150         cross_compiling=yes
4151     else
4152         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4153 If you meant to cross compile, use \`--host'.
4154 See \`config.log' for more details." >&5
4155 echo "$as_me: error: cannot run C compiled programs.
4156 If you meant to cross compile, use \`--host'.
4157 See \`config.log' for more details." >&2;}
4158    { (exit 1); exit 1; }; }
4159     fi
4160   fi
4161 fi
4162 echo "$as_me:$LINENO: result: yes" >&5
4163 echo "${ECHO_T}yes" >&6
4164
4165 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4166 ac_clean_files=$ac_clean_files_save
4167 # Check the compiler produces executables we can run.  If not, either
4168 # the compiler is broken, or we cross compile.
4169 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4170 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4171 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4172 echo "${ECHO_T}$cross_compiling" >&6
4173
4174 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4175 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4177   (eval $ac_link) 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); }; then
4181   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4182 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4183 # work properly (i.e., refer to `conftest.exe'), while it won't with
4184 # `rm'.
4185 for ac_file in conftest.exe conftest conftest.*; do
4186   test -f "$ac_file" || continue
4187   case $ac_file in
4188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4189     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4190           export ac_cv_exeext
4191           break;;
4192     * ) break;;
4193   esac
4194 done
4195 else
4196   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4197 See \`config.log' for more details." >&5
4198 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4199 See \`config.log' for more details." >&2;}
4200    { (exit 1); exit 1; }; }
4201 fi
4202
4203 rm -f conftest$ac_cv_exeext
4204 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4205 echo "${ECHO_T}$ac_cv_exeext" >&6
4206
4207 rm -f conftest.$ac_ext
4208 EXEEXT=$ac_cv_exeext
4209 ac_exeext=$EXEEXT
4210 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4211 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4212 if test "${ac_cv_objext+set}" = set; then
4213   echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215   cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h.  */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h.  */
4221
4222 int
4223 main ()
4224 {
4225
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest.o conftest.obj
4231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232   (eval $ac_compile) 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; then
4236   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4237   case $ac_file in
4238     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4239     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4240        break;;
4241   esac
4242 done
4243 else
4244   echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4248 See \`config.log' for more details." >&5
4249 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4250 See \`config.log' for more details." >&2;}
4251    { (exit 1); exit 1; }; }
4252 fi
4253
4254 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4255 fi
4256 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4257 echo "${ECHO_T}$ac_cv_objext" >&6
4258 OBJEXT=$ac_cv_objext
4259 ac_objext=$OBJEXT
4260 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4261 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4262 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   cat >conftest.$ac_ext <<_ACEOF
4266 /* confdefs.h.  */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h.  */
4271
4272 int
4273 main ()
4274 {
4275 #ifndef __GNUC__
4276        choke me
4277 #endif
4278
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285   (eval $ac_compile) 2>conftest.er1
4286   ac_status=$?
4287   grep -v '^ *+' conftest.er1 >conftest.err
4288   rm -f conftest.er1
4289   cat conftest.err >&5
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); } &&
4292          { ac_try='test -z "$ac_c_werror_flag"
4293                          || test ! -s conftest.err'
4294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295   (eval $ac_try) 2>&5
4296   ac_status=$?
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); }; } &&
4299          { ac_try='test -s conftest.$ac_objext'
4300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301   (eval $ac_try) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; }; then
4305   ac_compiler_gnu=yes
4306 else
4307   echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 ac_compiler_gnu=no
4311 fi
4312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4314
4315 fi
4316 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4317 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4318 GCC=`test $ac_compiler_gnu = yes && echo yes`
4319 ac_test_CFLAGS=${CFLAGS+set}
4320 ac_save_CFLAGS=$CFLAGS
4321 CFLAGS="-g"
4322 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4323 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4324 if test "${ac_cv_prog_cc_g+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h.  */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h.  */
4333
4334 int
4335 main ()
4336 {
4337
4338   ;
4339   return 0;
4340 }
4341 _ACEOF
4342 rm -f conftest.$ac_objext
4343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4344   (eval $ac_compile) 2>conftest.er1
4345   ac_status=$?
4346   grep -v '^ *+' conftest.er1 >conftest.err
4347   rm -f conftest.er1
4348   cat conftest.err >&5
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); } &&
4351          { ac_try='test -z "$ac_c_werror_flag"
4352                          || test ! -s conftest.err'
4353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354   (eval $ac_try) 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); }; } &&
4358          { ac_try='test -s conftest.$ac_objext'
4359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360   (eval $ac_try) 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); }; }; then
4364   ac_cv_prog_cc_g=yes
4365 else
4366   echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4368
4369 ac_cv_prog_cc_g=no
4370 fi
4371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4372 fi
4373 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4374 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4375 if test "$ac_test_CFLAGS" = set; then
4376   CFLAGS=$ac_save_CFLAGS
4377 elif test $ac_cv_prog_cc_g = yes; then
4378   if test "$GCC" = yes; then
4379     CFLAGS="-g -O2"
4380   else
4381     CFLAGS="-g"
4382   fi
4383 else
4384   if test "$GCC" = yes; then
4385     CFLAGS="-O2"
4386   else
4387     CFLAGS=
4388   fi
4389 fi
4390 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4391 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4392 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395   ac_cv_prog_cc_stdc=no
4396 ac_save_CC=$CC
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h.  */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h.  */
4403 #include <stdarg.h>
4404 #include <stdio.h>
4405 #include <sys/types.h>
4406 #include <sys/stat.h>
4407 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4408 struct buf { int x; };
4409 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4410 static char *e (p, i)
4411      char **p;
4412      int i;
4413 {
4414   return p[i];
4415 }
4416 static char *f (char * (*g) (char **, int), char **p, ...)
4417 {
4418   char *s;
4419   va_list v;
4420   va_start (v,p);
4421   s = g (p, va_arg (v,int));
4422   va_end (v);
4423   return s;
4424 }
4425
4426 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4427    function prototypes and stuff, but not '\xHH' hex character constants.
4428    These don't provoke an error unfortunately, instead are silently treated
4429    as 'x'.  The following induces an error, until -std1 is added to get
4430    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4431    array size at least.  It's necessary to write '\x00'==0 to get something
4432    that's true only with -std1.  */
4433 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4434
4435 int test (int i, double x);
4436 struct s1 {int (*f) (int a);};
4437 struct s2 {int (*f) (double a);};
4438 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4439 int argc;
4440 char **argv;
4441 int
4442 main ()
4443 {
4444 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4445   ;
4446   return 0;
4447 }
4448 _ACEOF
4449 # Don't try gcc -ansi; that turns off useful extensions and
4450 # breaks some systems' header files.
4451 # AIX                   -qlanglvl=ansi
4452 # Ultrix and OSF/1      -std1
4453 # HP-UX 10.20 and later -Ae
4454 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4455 # SVR4                  -Xc -D__EXTENSIONS__
4456 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4457 do
4458   CC="$ac_save_CC $ac_arg"
4459   rm -f conftest.$ac_objext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4461   (eval $ac_compile) 2>conftest.er1
4462   ac_status=$?
4463   grep -v '^ *+' conftest.er1 >conftest.err
4464   rm -f conftest.er1
4465   cat conftest.err >&5
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); } &&
4468          { ac_try='test -z "$ac_c_werror_flag"
4469                          || test ! -s conftest.err'
4470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471   (eval $ac_try) 2>&5
4472   ac_status=$?
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); }; } &&
4475          { ac_try='test -s conftest.$ac_objext'
4476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477   (eval $ac_try) 2>&5
4478   ac_status=$?
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); }; }; then
4481   ac_cv_prog_cc_stdc=$ac_arg
4482 break
4483 else
4484   echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487 fi
4488 rm -f conftest.err conftest.$ac_objext
4489 done
4490 rm -f conftest.$ac_ext conftest.$ac_objext
4491 CC=$ac_save_CC
4492
4493 fi
4494
4495 case "x$ac_cv_prog_cc_stdc" in
4496   x|xno)
4497     echo "$as_me:$LINENO: result: none needed" >&5
4498 echo "${ECHO_T}none needed" >&6 ;;
4499   *)
4500     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4501 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4502     CC="$CC $ac_cv_prog_cc_stdc" ;;
4503 esac
4504
4505 # Some people use a C++ compiler to compile C.  Since we use `exit',
4506 # in C++ we need to declare it.  In case someone uses the same compiler
4507 # for both compiling C and C++ we need to have the C++ compiler decide
4508 # the declaration of exit, since it's the most demanding environment.
4509 cat >conftest.$ac_ext <<_ACEOF
4510 #ifndef __cplusplus
4511   choke me
4512 #endif
4513 _ACEOF
4514 rm -f conftest.$ac_objext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4516   (eval $ac_compile) 2>conftest.er1
4517   ac_status=$?
4518   grep -v '^ *+' conftest.er1 >conftest.err
4519   rm -f conftest.er1
4520   cat conftest.err >&5
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); } &&
4523          { ac_try='test -z "$ac_c_werror_flag"
4524                          || test ! -s conftest.err'
4525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526   (eval $ac_try) 2>&5
4527   ac_status=$?
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); }; } &&
4530          { ac_try='test -s conftest.$ac_objext'
4531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532   (eval $ac_try) 2>&5
4533   ac_status=$?
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); }; }; then
4536   for ac_declaration in \
4537    '' \
4538    'extern "C" void std::exit (int) throw (); using std::exit;' \
4539    'extern "C" void std::exit (int); using std::exit;' \
4540    'extern "C" void exit (int) throw ();' \
4541    'extern "C" void exit (int);' \
4542    'void exit (int);'
4543 do
4544   cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h.  */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h.  */
4550 $ac_declaration
4551 #include <stdlib.h>
4552 int
4553 main ()
4554 {
4555 exit (42);
4556   ;
4557   return 0;
4558 }
4559 _ACEOF
4560 rm -f conftest.$ac_objext
4561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4562   (eval $ac_compile) 2>conftest.er1
4563   ac_status=$?
4564   grep -v '^ *+' conftest.er1 >conftest.err
4565   rm -f conftest.er1
4566   cat conftest.err >&5
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); } &&
4569          { ac_try='test -z "$ac_c_werror_flag"
4570                          || test ! -s conftest.err'
4571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572   (eval $ac_try) 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; } &&
4576          { ac_try='test -s conftest.$ac_objext'
4577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578   (eval $ac_try) 2>&5
4579   ac_status=$?
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); }; }; then
4582   :
4583 else
4584   echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587 continue
4588 fi
4589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4590   cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h.  */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h.  */
4596 $ac_declaration
4597 int
4598 main ()
4599 {
4600 exit (42);
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607   (eval $ac_compile) 2>conftest.er1
4608   ac_status=$?
4609   grep -v '^ *+' conftest.er1 >conftest.err
4610   rm -f conftest.er1
4611   cat conftest.err >&5
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } &&
4614          { ac_try='test -z "$ac_c_werror_flag"
4615                          || test ! -s conftest.err'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest.$ac_objext'
4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623   (eval $ac_try) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; }; then
4627   break
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 fi
4633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4634 done
4635 rm -f conftest*
4636 if test -n "$ac_declaration"; then
4637   echo '#ifdef __cplusplus' >>confdefs.h
4638   echo $ac_declaration      >>confdefs.h
4639   echo '#endif'             >>confdefs.h
4640 fi
4641
4642 else
4643   echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4645
4646 fi
4647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4648 ac_ext=c
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653
4654 depcc="$CC"   am_compiler_list=
4655
4656 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4657 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4658 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4662   # We make a subdir and do the tests there.  Otherwise we can end up
4663   # making bogus files that we don't know about and never remove.  For
4664   # instance it was reported that on HP-UX the gcc test will end up
4665   # making a dummy file named `D' -- because `-MD' means `put the output
4666   # in D'.
4667   mkdir conftest.dir
4668   # Copy depcomp to subdir because otherwise we won't find it if we're
4669   # using a relative directory.
4670   cp "$am_depcomp" conftest.dir
4671   cd conftest.dir
4672   # We will build objects and dependencies in a subdirectory because
4673   # it helps to detect inapplicable dependency modes.  For instance
4674   # both Tru64's cc and ICC support -MD to output dependencies as a
4675   # side effect of compilation, but ICC will put the dependencies in
4676   # the current directory while Tru64 will put them in the object
4677   # directory.
4678   mkdir sub
4679
4680   am_cv_CC_dependencies_compiler_type=none
4681   if test "$am_compiler_list" = ""; then
4682      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4683   fi
4684   for depmode in $am_compiler_list; do
4685     # Setup a source with many dependencies, because some compilers
4686     # like to wrap large dependency lists on column 80 (with \), and
4687     # we should not choose a depcomp mode which is confused by this.
4688     #
4689     # We need to recreate these files for each test, as the compiler may
4690     # overwrite some of them when testing with obscure command lines.
4691     # This happens at least with the AIX C compiler.
4692     : > sub/conftest.c
4693     for i in 1 2 3 4 5 6; do
4694       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4695       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4696       # Solaris 8's {/usr,}/bin/sh.
4697       touch sub/conftst$i.h
4698     done
4699     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4700
4701     case $depmode in
4702     nosideeffect)
4703       # after this tag, mechanisms are not by side-effect, so they'll
4704       # only be used when explicitly requested
4705       if test "x$enable_dependency_tracking" = xyes; then
4706         continue
4707       else
4708         break
4709       fi
4710       ;;
4711     none) break ;;
4712     esac
4713     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4714     # mode.  It turns out that the SunPro C++ compiler does not properly
4715     # handle `-M -o', and we need to detect this.
4716     if depmode=$depmode \
4717        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4718        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4719        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4720          >/dev/null 2>conftest.err &&
4721        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4722        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4723        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4724       # icc doesn't choke on unknown options, it will just issue warnings
4725       # or remarks (even with -Werror).  So we grep stderr for any message
4726       # that says an option was ignored or not supported.
4727       # When given -MP, icc 7.0 and 7.1 complain thusly:
4728       #   icc: Command line warning: ignoring option '-M'; no argument required
4729       # The diagnosis changed in icc 8.0:
4730       #   icc: Command line remark: option '-MP' not supported
4731       if (grep 'ignoring option' conftest.err ||
4732           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4733         am_cv_CC_dependencies_compiler_type=$depmode
4734         break
4735       fi
4736     fi
4737   done
4738
4739   cd ..
4740   rm -rf conftest.dir
4741 else
4742   am_cv_CC_dependencies_compiler_type=none
4743 fi
4744
4745 fi
4746 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4747 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4748 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4749
4750
4751
4752 if
4753   test "x$enable_dependency_tracking" != xno \
4754   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4755   am__fastdepCC_TRUE=
4756   am__fastdepCC_FALSE='#'
4757 else
4758   am__fastdepCC_TRUE='#'
4759   am__fastdepCC_FALSE=
4760 fi
4761
4762
4763 echo "$as_me:$LINENO: checking for egrep" >&5
4764 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4765 if test "${ac_cv_prog_egrep+set}" = set; then
4766   echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4769     then ac_cv_prog_egrep='grep -E'
4770     else ac_cv_prog_egrep='egrep'
4771     fi
4772 fi
4773 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4774 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4775  EGREP=$ac_cv_prog_egrep
4776
4777
4778 echo "$as_me:$LINENO: checking for fgrep" >&5
4779 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4780 if test "${ac_cv_prog_fgrep+set}" = set; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4784     then ac_cv_prog_fgrep='grep -F'
4785     else ac_cv_prog_fgrep='fgrep'
4786     fi
4787 fi
4788 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4789 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4790  FGREP=$ac_cv_prog_fgrep
4791
4792
4793 test -z "$GREP" && GREP=grep
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4814 if test "${with_gnu_ld+set}" = set; then
4815   withval="$with_gnu_ld"
4816   test "$withval" = no || with_gnu_ld=yes
4817 else
4818   with_gnu_ld=no
4819 fi;
4820 ac_prog=ld
4821 if test "$GCC" = yes; then
4822   # Check if gcc -print-prog-name=ld gives a path.
4823   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4824 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4825   case $host in
4826   *-*-mingw*)
4827     # gcc leaves a trailing carriage return which upsets mingw
4828     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4829   *)
4830     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4831   esac
4832   case $ac_prog in
4833     # Accept absolute paths.
4834     [\\/]* | ?:[\\/]*)
4835       re_direlt='/[^/][^/]*/\.\./'
4836       # Canonicalize the pathname of ld
4837       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4838       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4839         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4840       done
4841       test -z "$LD" && LD="$ac_prog"
4842       ;;
4843   "")
4844     # If it fails, then pretend we aren't using GCC.
4845     ac_prog=ld
4846     ;;
4847   *)
4848     # If it is relative, then search for the first ld in PATH.
4849     with_gnu_ld=unknown
4850     ;;
4851   esac
4852 elif test "$with_gnu_ld" = yes; then
4853   echo "$as_me:$LINENO: checking for GNU ld" >&5
4854 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4855 else
4856   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4857 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4858 fi
4859 if test "${lt_cv_path_LD+set}" = set; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   if test -z "$LD"; then
4863   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4864   for ac_dir in $PATH; do
4865     IFS="$lt_save_ifs"
4866     test -z "$ac_dir" && ac_dir=.
4867     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4868       lt_cv_path_LD="$ac_dir/$ac_prog"
4869       # Check to see if the program is GNU ld.  I'd rather use --version,
4870       # but apparently some variants of GNU ld only accept -v.
4871       # Break only if it was the GNU/non-GNU ld that we prefer.
4872       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4873       *GNU* | *'with BFD'*)
4874         test "$with_gnu_ld" != no && break
4875         ;;
4876       *)
4877         test "$with_gnu_ld" != yes && break
4878         ;;
4879       esac
4880     fi
4881   done
4882   IFS="$lt_save_ifs"
4883 else
4884   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4885 fi
4886 fi
4887
4888 LD="$lt_cv_path_LD"
4889 if test -n "$LD"; then
4890   echo "$as_me:$LINENO: result: $LD" >&5
4891 echo "${ECHO_T}$LD" >&6
4892 else
4893   echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6
4895 fi
4896 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4897 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4898    { (exit 1); exit 1; }; }
4899 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4900 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4901 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4902   echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4905 case `$LD -v 2>&1 </dev/null` in
4906 *GNU* | *'with BFD'*)
4907   lt_cv_prog_gnu_ld=yes
4908   ;;
4909 *)
4910   lt_cv_prog_gnu_ld=no
4911   ;;
4912 esac
4913 fi
4914 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4915 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4916 with_gnu_ld=$lt_cv_prog_gnu_ld
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4928 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4929 if test "${lt_cv_path_NM+set}" = set; then
4930   echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932   if test -n "$NM"; then
4933   # Let the user override the test.
4934   lt_cv_path_NM="$NM"
4935 else
4936   lt_nm_to_check="${ac_tool_prefix}nm"
4937   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4938     lt_nm_to_check="$lt_nm_to_check nm"
4939   fi
4940   for lt_tmp_nm in $lt_nm_to_check; do
4941     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4942     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4943       IFS="$lt_save_ifs"
4944       test -z "$ac_dir" && ac_dir=.
4945       tmp_nm="$ac_dir/$lt_tmp_nm"
4946       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4947         # Check to see if the nm accepts a BSD-compat flag.
4948         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4949         #   nm: unknown option "B" ignored
4950         # Tru64's nm complains that /dev/null is an invalid object file
4951         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4952         */dev/null* | *'Invalid file or object type'*)
4953           lt_cv_path_NM="$tmp_nm -B"
4954           break
4955           ;;
4956         *)
4957           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4958           */dev/null*)
4959             lt_cv_path_NM="$tmp_nm -p"
4960             break
4961             ;;
4962           *)
4963             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4964             continue # so that we can try to find one that supports BSD flags
4965             ;;
4966           esac
4967           ;;
4968         esac
4969       fi
4970     done
4971     IFS="$lt_save_ifs"
4972   done
4973   : ${lt_cv_path_NM=no}
4974 fi
4975 fi
4976 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4977 echo "${ECHO_T}$lt_cv_path_NM" >&6
4978 if test "$lt_cv_path_NM" != "no"; then
4979   NM="$lt_cv_path_NM"
4980 else
4981   # Didn't find any BSD compatible name lister, look for dumpbin.
4982   if test -n "$ac_tool_prefix"; then
4983   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4984   do
4985     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4987 echo "$as_me:$LINENO: checking for $ac_word" >&5
4988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4989 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4990   echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992   if test -n "$DUMPBIN"; then
4993   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000   for ac_exec_ext in '' $ac_executable_extensions; do
5001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004     break 2
5005   fi
5006 done
5007 done
5008
5009 fi
5010 fi
5011 DUMPBIN=$ac_cv_prog_DUMPBIN
5012 if test -n "$DUMPBIN"; then
5013   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5014 echo "${ECHO_T}$DUMPBIN" >&6
5015 else
5016   echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6
5018 fi
5019
5020     test -n "$DUMPBIN" && break
5021   done
5022 fi
5023 if test -z "$DUMPBIN"; then
5024   ac_ct_DUMPBIN=$DUMPBIN
5025   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5026 do
5027   # Extract the first word of "$ac_prog", so it can be a program name with args.
5028 set dummy $ac_prog; ac_word=$2
5029 echo "$as_me:$LINENO: checking for $ac_word" >&5
5030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5031 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   if test -n "$ac_ct_DUMPBIN"; then
5035   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040   IFS=$as_save_IFS
5041   test -z "$as_dir" && as_dir=.
5042   for ac_exec_ext in '' $ac_executable_extensions; do
5043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046     break 2
5047   fi
5048 done
5049 done
5050
5051 fi
5052 fi
5053 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5054 if test -n "$ac_ct_DUMPBIN"; then
5055   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5056 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5057 else
5058   echo "$as_me:$LINENO: result: no" >&5
5059 echo "${ECHO_T}no" >&6
5060 fi
5061
5062   test -n "$ac_ct_DUMPBIN" && break
5063 done
5064 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5065
5066   DUMPBIN=$ac_ct_DUMPBIN
5067 fi
5068
5069
5070   if test "$DUMPBIN" != ":"; then
5071     NM="$DUMPBIN"
5072   fi
5073 fi
5074 test -z "$NM" && NM=nm
5075
5076
5077
5078
5079
5080
5081 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5082 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5083 if test "${lt_cv_nm_interface+set}" = set; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086   lt_cv_nm_interface="BSD nm"
5087   echo "int some_variable = 0;" > conftest.$ac_ext
5088   (eval echo "\"\$as_me:5088: $ac_compile\"" >&5)
5089   (eval "$ac_compile" 2>conftest.err)
5090   cat conftest.err >&5
5091   (eval echo "\"\$as_me:5091: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5092   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5093   cat conftest.err >&5
5094   (eval echo "\"\$as_me:5094: output\"" >&5)
5095   cat conftest.out >&5
5096   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5097     lt_cv_nm_interface="MS dumpbin"
5098   fi
5099   rm -f conftest*
5100 fi
5101 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5102 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5103
5104 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5105 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5106 LN_S=$as_ln_s
5107 if test "$LN_S" = "ln -s"; then
5108   echo "$as_me:$LINENO: result: yes" >&5
5109 echo "${ECHO_T}yes" >&6
5110 else
5111   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5112 echo "${ECHO_T}no, using $LN_S" >&6
5113 fi
5114
5115 # find the maximum length of command line arguments
5116 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5117 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5118 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5119   echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121     i=0
5122   teststring="ABCD"
5123
5124   case $build_os in
5125   msdosdjgpp*)
5126     # On DJGPP, this test can blow up pretty badly due to problems in libc
5127     # (any single argument exceeding 2000 bytes causes a buffer overrun
5128     # during glob expansion).  Even if it were fixed, the result of this
5129     # check would be larger than it should be.
5130     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5131     ;;
5132
5133   gnu*)
5134     # Under GNU Hurd, this test is not required because there is
5135     # no limit to the length of command line arguments.
5136     # Libtool will interpret -1 as no limit whatsoever
5137     lt_cv_sys_max_cmd_len=-1;
5138     ;;
5139
5140   cygwin* | mingw*)
5141     # On Win9x/ME, this test blows up -- it succeeds, but takes
5142     # about 5 minutes as the teststring grows exponentially.
5143     # Worse, since 9x/ME are not pre-emptively multitasking,
5144     # you end up with a "frozen" computer, even though with patience
5145     # the test eventually succeeds (with a max line length of 256k).
5146     # Instead, let's just punt: use the minimum linelength reported by
5147     # all of the supported platforms: 8192 (on NT/2K/XP).
5148     lt_cv_sys_max_cmd_len=8192;
5149     ;;
5150
5151   amigaos*)
5152     # On AmigaOS with pdksh, this test takes hours, literally.
5153     # So we just punt and use a minimum line length of 8192.
5154     lt_cv_sys_max_cmd_len=8192;
5155     ;;
5156
5157   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5158     # This has been around since 386BSD, at least.  Likely further.
5159     if test -x /sbin/sysctl; then
5160       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5161     elif test -x /usr/sbin/sysctl; then
5162       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5163     else
5164       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5165     fi
5166     # And add a safety zone
5167     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5168     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5169     ;;
5170
5171   interix*)
5172     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5173     lt_cv_sys_max_cmd_len=196608
5174     ;;
5175
5176   osf*)
5177     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5178     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5179     # nice to cause kernel panics so lets avoid the loop below.
5180     # First set a reasonable default.
5181     lt_cv_sys_max_cmd_len=16384
5182     #
5183     if test -x /sbin/sysconfig; then
5184       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5185         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5186       esac
5187     fi
5188     ;;
5189   sco3.2v5*)
5190     lt_cv_sys_max_cmd_len=102400
5191     ;;
5192   sysv5* | sco5v6* | sysv4.2uw2*)
5193     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5194     if test -n "$kargmax"; then
5195       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5196     else
5197       lt_cv_sys_max_cmd_len=32768
5198     fi
5199     ;;
5200   *)
5201     # Make teststring a little bigger before we do anything with it.
5202     # a 1K string should be a reasonable start.
5203     for i in 1 2 3 4 5 6 7 8 ; do
5204       teststring=$teststring$teststring
5205     done
5206     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5207     # If test is not a shell built-in, we'll probably end up computing a
5208     # maximum length that is only half of the actual maximum length, but
5209     # we can't tell.
5210     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5211                = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5212             test $i != 17 # 1/2 MB should be enough
5213     do
5214       i=`expr $i + 1`
5215       teststring=$teststring$teststring
5216     done
5217     # Only check the string length outside the loop.
5218     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5219     teststring=
5220     # Add a significant safety factor because C++ compilers can tack on massive
5221     # amounts of additional arguments before passing them to the linker.
5222     # It appears as though 1/2 is a usable value.
5223     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5224     ;;
5225   esac
5226
5227 fi
5228
5229 if test -n $lt_cv_sys_max_cmd_len ; then
5230   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5231 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5232 else
5233   echo "$as_me:$LINENO: result: none" >&5
5234 echo "${ECHO_T}none" >&6
5235 fi
5236 max_cmd_len=$lt_cv_sys_max_cmd_len
5237
5238
5239
5240
5241
5242
5243 : ${CP="cp -f"}
5244 : ${MV="mv -f"}
5245 : ${RM="rm -f"}
5246
5247 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5248 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5249 # Try some XSI features
5250 xsi_shell=no
5251 ( _lt_dummy="a/b/c"
5252   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5253       = c,a/b,, ) >/dev/null 2>&1 \
5254   && xsi_shell=yes
5255 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5256 echo "${ECHO_T}$xsi_shell" >&6
5257
5258
5259 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5260 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5261 lt_shell_append=no
5262 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5263     >/dev/null 2>&1 \
5264   && lt_shell_append=yes
5265 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5266 echo "${ECHO_T}$lt_shell_append" >&6
5267
5268
5269 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5270   lt_unset=unset
5271 else
5272   lt_unset=false
5273 fi
5274
5275
5276
5277
5278
5279 # test EBCDIC or ASCII
5280 case `echo X|tr X '\101'` in
5281  A) # ASCII based system
5282     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5283   lt_SP2NL='tr \040 \012'
5284   lt_NL2SP='tr \015\012 \040\040'
5285   ;;
5286  *) # EBCDIC based system
5287   lt_SP2NL='tr \100 \n'
5288   lt_NL2SP='tr \r\n \100\100'
5289   ;;
5290 esac
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5301 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5302 if test "${lt_cv_ld_reload_flag+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305   lt_cv_ld_reload_flag='-r'
5306 fi
5307 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5308 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5309 reload_flag=$lt_cv_ld_reload_flag
5310 case $reload_flag in
5311 "" | " "*) ;;
5312 *) reload_flag=" $reload_flag" ;;
5313 esac
5314 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5315 case $host_os in
5316   darwin*)
5317     if test "$GCC" = yes; then
5318       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5319     else
5320       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5321     fi
5322     ;;
5323 esac
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5335 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5336 if test "${lt_cv_deplibs_check_method+set}" = set; then
5337   echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339   lt_cv_file_magic_cmd='$MAGIC_CMD'
5340 lt_cv_file_magic_test_file=
5341 lt_cv_deplibs_check_method='unknown'
5342 # Need to set the preceding variable on all platforms that support
5343 # interlibrary dependencies.
5344 # 'none' -- dependencies not supported.
5345 # `unknown' -- same as none, but documents that we really don't know.
5346 # 'pass_all' -- all dependencies passed with no checks.
5347 # 'test_compile' -- check by making test program.
5348 # 'file_magic [[regex]]' -- check by looking for files in library path
5349 # which responds to the $file_magic_cmd with a given extended regex.
5350 # If you have `file' or equivalent on your system and you're not sure
5351 # whether `pass_all' will *always* work, you probably want this one.
5352
5353 case $host_os in
5354 aix4* | aix5*)
5355   lt_cv_deplibs_check_method=pass_all
5356   ;;
5357
5358 beos*)
5359   lt_cv_deplibs_check_method=pass_all
5360   ;;
5361
5362 bsdi[45]*)
5363   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5364   lt_cv_file_magic_cmd='/usr/bin/file -L'
5365   lt_cv_file_magic_test_file=/shlib/libc.so
5366   ;;
5367
5368 cygwin*)
5369   # func_win32_libid is a shell function defined in ltmain.sh
5370   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5371   lt_cv_file_magic_cmd='func_win32_libid'
5372   ;;
5373
5374 mingw* | pw32*)
5375   # Base MSYS/MinGW do not provide the 'file' command needed by
5376   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5377   # unless we find 'file', for example because we are cross-compiling.
5378   if ( file / ) >/dev/null 2>&1; then
5379     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5380     lt_cv_file_magic_cmd='func_win32_libid'
5381   else
5382     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5383     lt_cv_file_magic_cmd='$OBJDUMP -f'
5384   fi
5385   ;;
5386
5387 darwin* | rhapsody*)
5388   lt_cv_deplibs_check_method=pass_all
5389   ;;
5390
5391 freebsd* | dragonfly*)
5392   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5393     case $host_cpu in
5394     i*86 )
5395       # Not sure whether the presence of OpenBSD here was a mistake.
5396       # Let's accept both of them until this is cleared up.
5397       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5398       lt_cv_file_magic_cmd=/usr/bin/file
5399       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5400       ;;
5401     esac
5402   else
5403     lt_cv_deplibs_check_method=pass_all
5404   fi
5405   ;;
5406
5407 gnu*)
5408   lt_cv_deplibs_check_method=pass_all
5409   ;;
5410
5411 hpux10.20* | hpux11*)
5412   lt_cv_file_magic_cmd=/usr/bin/file
5413   case $host_cpu in
5414   ia64*)
5415     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5416     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5417     ;;
5418   hppa*64*)
5419     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5420     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5421     ;;
5422   *)
5423     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5424     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5425     ;;
5426   esac
5427   ;;
5428
5429 interix[3-9]*)
5430   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5431   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5432   ;;
5433
5434 irix5* | irix6* | nonstopux*)
5435   case $LD in
5436   *-32|*"-32 ") libmagic=32-bit;;
5437   *-n32|*"-n32 ") libmagic=N32;;
5438   *-64|*"-64 ") libmagic=64-bit;;
5439   *) libmagic=never-match;;
5440   esac
5441   lt_cv_deplibs_check_method=pass_all
5442   ;;
5443
5444 # This must be Linux ELF.
5445 linux* | k*bsd*-gnu)
5446   lt_cv_deplibs_check_method=pass_all
5447   ;;
5448
5449 netbsd*)
5450   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5451     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5452   else
5453     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5454   fi
5455   ;;
5456
5457 newos6*)
5458   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5459   lt_cv_file_magic_cmd=/usr/bin/file
5460   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5461   ;;
5462
5463 *nto* | *qnx*)
5464   lt_cv_deplibs_check_method=pass_all
5465   ;;
5466
5467 openbsd*)
5468   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5469     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5470   else
5471     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5472   fi
5473   ;;
5474
5475 osf3* | osf4* | osf5*)
5476   lt_cv_deplibs_check_method=pass_all
5477   ;;
5478
5479 rdos*)
5480   lt_cv_deplibs_check_method=pass_all
5481   ;;
5482
5483 solaris*)
5484   lt_cv_deplibs_check_method=pass_all
5485   ;;
5486
5487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5488   lt_cv_deplibs_check_method=pass_all
5489   ;;
5490
5491 sysv4 | sysv4.3*)
5492   case $host_vendor in
5493   motorola)
5494     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]'
5495     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5496     ;;
5497   ncr)
5498     lt_cv_deplibs_check_method=pass_all
5499     ;;
5500   sequent)
5501     lt_cv_file_magic_cmd='/bin/file'
5502     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5503     ;;
5504   sni)
5505     lt_cv_file_magic_cmd='/bin/file'
5506     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5507     lt_cv_file_magic_test_file=/lib/libc.so
5508     ;;
5509   siemens)
5510     lt_cv_deplibs_check_method=pass_all
5511     ;;
5512   pc)
5513     lt_cv_deplibs_check_method=pass_all
5514     ;;
5515   esac
5516   ;;
5517
5518 tpf*)
5519   lt_cv_deplibs_check_method=pass_all
5520   ;;
5521 esac
5522
5523 fi
5524 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5525 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5526 file_magic_cmd=$lt_cv_file_magic_cmd
5527 deplibs_check_method=$lt_cv_deplibs_check_method
5528 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541 if test -n "$ac_tool_prefix"; then
5542   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5543 set dummy ${ac_tool_prefix}ar; ac_word=$2
5544 echo "$as_me:$LINENO: checking for $ac_word" >&5
5545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5546 if test "${ac_cv_prog_AR+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   if test -n "$AR"; then
5550   ac_cv_prog_AR="$AR" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5554 do
5555   IFS=$as_save_IFS
5556   test -z "$as_dir" && as_dir=.
5557   for ac_exec_ext in '' $ac_executable_extensions; do
5558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559     ac_cv_prog_AR="${ac_tool_prefix}ar"
5560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5561     break 2
5562   fi
5563 done
5564 done
5565
5566 fi
5567 fi
5568 AR=$ac_cv_prog_AR
5569 if test -n "$AR"; then
5570   echo "$as_me:$LINENO: result: $AR" >&5
5571 echo "${ECHO_T}$AR" >&6
5572 else
5573   echo "$as_me:$LINENO: result: no" >&5
5574 echo "${ECHO_T}no" >&6
5575 fi
5576
5577 fi
5578 if test -z "$ac_cv_prog_AR"; then
5579   ac_ct_AR=$AR
5580   # Extract the first word of "ar", so it can be a program name with args.
5581 set dummy ar; ac_word=$2
5582 echo "$as_me:$LINENO: checking for $ac_word" >&5
5583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5584 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   if test -n "$ac_ct_AR"; then
5588   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593   IFS=$as_save_IFS
5594   test -z "$as_dir" && as_dir=.
5595   for ac_exec_ext in '' $ac_executable_extensions; do
5596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597     ac_cv_prog_ac_ct_AR="ar"
5598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599     break 2
5600   fi
5601 done
5602 done
5603
5604   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5605 fi
5606 fi
5607 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5608 if test -n "$ac_ct_AR"; then
5609   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5610 echo "${ECHO_T}$ac_ct_AR" >&6
5611 else
5612   echo "$as_me:$LINENO: result: no" >&5
5613 echo "${ECHO_T}no" >&6
5614 fi
5615
5616   AR=$ac_ct_AR
5617 else
5618   AR="$ac_cv_prog_AR"
5619 fi
5620
5621 test -z "$AR" && AR=ar
5622 test -z "$AR_FLAGS" && AR_FLAGS=cru
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634 if test -n "$ac_tool_prefix"; then
5635   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5636 set dummy ${ac_tool_prefix}strip; ac_word=$2
5637 echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639 if test "${ac_cv_prog_STRIP+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   if test -n "$STRIP"; then
5643   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648   IFS=$as_save_IFS
5649   test -z "$as_dir" && as_dir=.
5650   for ac_exec_ext in '' $ac_executable_extensions; do
5651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654     break 2
5655   fi
5656 done
5657 done
5658
5659 fi
5660 fi
5661 STRIP=$ac_cv_prog_STRIP
5662 if test -n "$STRIP"; then
5663   echo "$as_me:$LINENO: result: $STRIP" >&5
5664 echo "${ECHO_T}$STRIP" >&6
5665 else
5666   echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6
5668 fi
5669
5670 fi
5671 if test -z "$ac_cv_prog_STRIP"; then
5672   ac_ct_STRIP=$STRIP
5673   # Extract the first word of "strip", so it can be a program name with args.
5674 set dummy strip; ac_word=$2
5675 echo "$as_me:$LINENO: checking for $ac_word" >&5
5676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5677 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5678   echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680   if test -n "$ac_ct_STRIP"; then
5681   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686   IFS=$as_save_IFS
5687   test -z "$as_dir" && as_dir=.
5688   for ac_exec_ext in '' $ac_executable_extensions; do
5689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690     ac_cv_prog_ac_ct_STRIP="strip"
5691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692     break 2
5693   fi
5694 done
5695 done
5696
5697   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5698 fi
5699 fi
5700 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5701 if test -n "$ac_ct_STRIP"; then
5702   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5703 echo "${ECHO_T}$ac_ct_STRIP" >&6
5704 else
5705   echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5707 fi
5708
5709   STRIP=$ac_ct_STRIP
5710 else
5711   STRIP="$ac_cv_prog_STRIP"
5712 fi
5713
5714 test -z "$STRIP" && STRIP=:
5715
5716
5717
5718
5719
5720
5721 if test -n "$ac_tool_prefix"; then
5722   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5724 echo "$as_me:$LINENO: checking for $ac_word" >&5
5725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5726 if test "${ac_cv_prog_RANLIB+set}" = set; then
5727   echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729   if test -n "$RANLIB"; then
5730   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5731 else
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5734 do
5735   IFS=$as_save_IFS
5736   test -z "$as_dir" && as_dir=.
5737   for ac_exec_ext in '' $ac_executable_extensions; do
5738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741     break 2
5742   fi
5743 done
5744 done
5745
5746 fi
5747 fi
5748 RANLIB=$ac_cv_prog_RANLIB
5749 if test -n "$RANLIB"; then
5750   echo "$as_me:$LINENO: result: $RANLIB" >&5
5751 echo "${ECHO_T}$RANLIB" >&6
5752 else
5753   echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6
5755 fi
5756
5757 fi
5758 if test -z "$ac_cv_prog_RANLIB"; then
5759   ac_ct_RANLIB=$RANLIB
5760   # Extract the first word of "ranlib", so it can be a program name with args.
5761 set dummy ranlib; ac_word=$2
5762 echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5764 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5765   echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767   if test -n "$ac_ct_RANLIB"; then
5768   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   test -z "$as_dir" && as_dir=.
5775   for ac_exec_ext in '' $ac_executable_extensions; do
5776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777     ac_cv_prog_ac_ct_RANLIB="ranlib"
5778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779     break 2
5780   fi
5781 done
5782 done
5783
5784   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5785 fi
5786 fi
5787 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5788 if test -n "$ac_ct_RANLIB"; then
5789   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5790 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5791 else
5792   echo "$as_me:$LINENO: result: no" >&5
5793 echo "${ECHO_T}no" >&6
5794 fi
5795
5796   RANLIB=$ac_ct_RANLIB
5797 else
5798   RANLIB="$ac_cv_prog_RANLIB"
5799 fi
5800
5801 test -z "$RANLIB" && RANLIB=:
5802
5803
5804
5805
5806
5807
5808 # Determine commands to create old-style static archives.
5809 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5810 old_postinstall_cmds='chmod 644 $oldlib'
5811 old_postuninstall_cmds=
5812
5813 if test -n "$RANLIB"; then
5814   case $host_os in
5815   openbsd*)
5816     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5817     ;;
5818   *)
5819     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5820     ;;
5821   esac
5822   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5823 fi
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858 # If no C compiler was specified, use CC.
5859 LTCC=${LTCC-"$CC"}
5860
5861 # If no C compiler flags were specified, use CFLAGS.
5862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5863
5864 # Allow CC to be a program name with arguments.
5865 compiler=$CC
5866
5867
5868 # Check for command to grab the raw symbol name followed by C symbol from nm.
5869 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5870 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5871 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874
5875 # These are sane defaults that work on at least a few old systems.
5876 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5877
5878 # Character class describing NM global symbol codes.
5879 symcode='[BCDEGRST]'
5880
5881 # Regexp to match symbols that can be accessed directly from C.
5882 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5883
5884 # Define system-specific variables.
5885 case $host_os in
5886 aix*)
5887   symcode='[BCDT]'
5888   ;;
5889 cygwin* | mingw* | pw32*)
5890   symcode='[ABCDGISTW]'
5891   ;;
5892 hpux*)
5893   if test "$host_cpu" = ia64; then
5894     symcode='[ABCDEGRST]'
5895   fi
5896   ;;
5897 irix* | nonstopux*)
5898   symcode='[BCDEGRST]'
5899   ;;
5900 osf*)
5901   symcode='[BCDEGQRST]'
5902   ;;
5903 solaris*)
5904   symcode='[BDRT]'
5905   ;;
5906 sco3.2v5*)
5907   symcode='[DT]'
5908   ;;
5909 sysv4.2uw2*)
5910   symcode='[DT]'
5911   ;;
5912 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5913   symcode='[ABDT]'
5914   ;;
5915 sysv4)
5916   symcode='[DFNSTU]'
5917   ;;
5918 esac
5919
5920 # If we're using GNU nm, then use its standard symbol codes.
5921 case `$NM -V 2>&1` in
5922 *GNU* | *'with BFD'*)
5923   symcode='[ABCDGIRSTW]' ;;
5924 esac
5925
5926 # Transform an extracted symbol line into a proper C declaration.
5927 # Some systems (esp. on ia64) link data and code symbols differently,
5928 # so use this general approach.
5929 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5930
5931 # Transform an extracted symbol line into symbol name and symbol address
5932 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5933
5934 # Handle CRLF in mingw tool chain
5935 opt_cr=
5936 case $build_os in
5937 mingw*)
5938   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5939   ;;
5940 esac
5941
5942 # Try without a prefix underscore, then with it.
5943 for ac_symprfx in "" "_"; do
5944
5945   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5946   symxfrm="\\1 $ac_symprfx\\2 \\2"
5947
5948   # Write the raw and C identifiers.
5949   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5950     # Fake it for dumpbin and say T for any non-static function
5951     # and D for any global variable.
5952     # Also find C++ and __fastcall symbols from MSVC++,
5953     # which start with @ or ?.
5954     lt_cv_sys_global_symbol_pipe="$AWK '"\
5955 "     {last_section=section; section=\$ 3};"\
5956 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5957 "     \$ 0!~/External *\|/{next};"\
5958 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5959 "     {if(hide[section]) next};"\
5960 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5961 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5962 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5963 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5964 "     ' prfx=^$ac_symprfx"
5965   else
5966     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5967   fi
5968
5969   # Check to see that the pipe works correctly.
5970   pipe_works=no
5971
5972   rm -f conftest*
5973   cat > conftest.$ac_ext <<_LT_EOF
5974 #ifdef __cplusplus
5975 extern "C" {
5976 #endif
5977 char nm_test_var;
5978 void nm_test_func(void);
5979 void nm_test_func(void){}
5980 #ifdef __cplusplus
5981 }
5982 #endif
5983 int main(){nm_test_var='a';nm_test_func();return(0);}
5984 _LT_EOF
5985
5986   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987   (eval $ac_compile) 2>&5
5988   ac_status=$?
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); }; then
5991     # Now try to grab the symbols.
5992     nlist=conftest.nm
5993     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5994   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); } && test -s "$nlist"; then
5998       # Try sorting and uniquifying the output.
5999       if sort "$nlist" | uniq > "$nlist"T; then
6000         mv -f "$nlist"T "$nlist"
6001       else
6002         rm -f "$nlist"T
6003       fi
6004
6005       # Make sure that we snagged all the symbols we need.
6006       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6007         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6008           cat <<_LT_EOF > conftest.$ac_ext
6009 #ifdef __cplusplus
6010 extern "C" {
6011 #endif
6012
6013 _LT_EOF
6014           # Now generate the symbol file.
6015           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6016
6017           cat <<_LT_EOF >> conftest.$ac_ext
6018
6019 /* The mapping between symbol names and symbols.  */
6020 const struct {
6021   const char *name;
6022   void       *address;
6023 }
6024 lt__PROGRAM__LTX_preloaded_symbols[] =
6025 {
6026   { "@PROGRAM@", (void *) 0 },
6027 _LT_EOF
6028           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6029           cat <<\_LT_EOF >> conftest.$ac_ext
6030   {0, (void *) 0}
6031 };
6032
6033 /* This works around a problem in FreeBSD linker */
6034 #ifdef FREEBSD_WORKAROUND
6035 static const void *lt_preloaded_setup() {
6036   return lt__PROGRAM__LTX_preloaded_symbols;
6037 }
6038 #endif
6039
6040 #ifdef __cplusplus
6041 }
6042 #endif
6043 _LT_EOF
6044           # Now try linking the two files.
6045           mv conftest.$ac_objext conftstm.$ac_objext
6046           lt_save_LIBS="$LIBS"
6047           lt_save_CFLAGS="$CFLAGS"
6048           LIBS="conftstm.$ac_objext"
6049           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6050           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051   (eval $ac_link) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6055             pipe_works=yes
6056           fi
6057           LIBS="$lt_save_LIBS"
6058           CFLAGS="$lt_save_CFLAGS"
6059         else
6060           echo "cannot find nm_test_func in $nlist" >&5
6061         fi
6062       else
6063         echo "cannot find nm_test_var in $nlist" >&5
6064       fi
6065     else
6066       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6067     fi
6068   else
6069     echo "$progname: failed program was:" >&5
6070     cat conftest.$ac_ext >&5
6071   fi
6072   rm -f conftest* conftst*
6073
6074   # Do not use the global_symbol_pipe unless it works.
6075   if test "$pipe_works" = yes; then
6076     break
6077   else
6078     lt_cv_sys_global_symbol_pipe=
6079   fi
6080 done
6081
6082 fi
6083
6084 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6085   lt_cv_sys_global_symbol_to_cdecl=
6086 fi
6087 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6088   echo "$as_me:$LINENO: result: failed" >&5
6089 echo "${ECHO_T}failed" >&6
6090 else
6091   echo "$as_me:$LINENO: result: ok" >&5
6092 echo "${ECHO_T}ok" >&6
6093 fi
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6113 if test "${enable_libtool_lock+set}" = set; then
6114   enableval="$enable_libtool_lock"
6115
6116 fi;
6117 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6118
6119 # Some flags need to be propagated to the compiler or linker for good
6120 # libtool support.
6121 case $host in
6122 ia64-*-hpux*)
6123   # Find out which ABI we are using.
6124   echo 'int i;' > conftest.$ac_ext
6125   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6126   (eval $ac_compile) 2>&5
6127   ac_status=$?
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); }; then
6130     case `/usr/bin/file conftest.$ac_objext` in
6131       *ELF-32*)
6132         HPUX_IA64_MODE="32"
6133         ;;
6134       *ELF-64*)
6135         HPUX_IA64_MODE="64"
6136         ;;
6137     esac
6138   fi
6139   rm -rf conftest*
6140   ;;
6141 *-*-irix6*)
6142   # Find out which ABI we are using.
6143   echo '#line 6143 "configure"' > conftest.$ac_ext
6144   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145   (eval $ac_compile) 2>&5
6146   ac_status=$?
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); }; then
6149     if test "$lt_cv_prog_gnu_ld" = yes; then
6150       case `/usr/bin/file conftest.$ac_objext` in
6151         *32-bit*)
6152           LD="${LD-ld} -melf32bsmip"
6153           ;;
6154         *N32*)
6155           LD="${LD-ld} -melf32bmipn32"
6156           ;;
6157         *64-bit*)
6158           LD="${LD-ld} -melf64bmip"
6159         ;;
6160       esac
6161     else
6162       case `/usr/bin/file conftest.$ac_objext` in
6163         *32-bit*)
6164           LD="${LD-ld} -32"
6165           ;;
6166         *N32*)
6167           LD="${LD-ld} -n32"
6168           ;;
6169         *64-bit*)
6170           LD="${LD-ld} -64"
6171           ;;
6172       esac
6173     fi
6174   fi
6175   rm -rf conftest*
6176   ;;
6177
6178 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6179 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6180   # Find out which ABI we are using.
6181   echo 'int i;' > conftest.$ac_ext
6182   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6183   (eval $ac_compile) 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }; then
6187     case `/usr/bin/file conftest.o` in
6188       *32-bit*)
6189         case $host in
6190           x86_64-*kfreebsd*-gnu)
6191             LD="${LD-ld} -m elf_i386_fbsd"
6192             ;;
6193           x86_64-*linux*)
6194             LD="${LD-ld} -m elf_i386"
6195             ;;
6196           ppc64-*linux*|powerpc64-*linux*)
6197             LD="${LD-ld} -m elf32ppclinux"
6198             ;;
6199           s390x-*linux*)
6200             LD="${LD-ld} -m elf_s390"
6201             ;;
6202           sparc64-*linux*)
6203             LD="${LD-ld} -m elf32_sparc"
6204             ;;
6205         esac
6206         ;;
6207       *64-bit*)
6208         case $host in
6209           x86_64-*kfreebsd*-gnu)
6210             LD="${LD-ld} -m elf_x86_64_fbsd"
6211             ;;
6212           x86_64-*linux*)
6213             LD="${LD-ld} -m elf_x86_64"
6214             ;;
6215           ppc*-*linux*|powerpc*-*linux*)
6216             LD="${LD-ld} -m elf64ppc"
6217             ;;
6218           s390*-*linux*|s390*-*tpf*)
6219             LD="${LD-ld} -m elf64_s390"
6220             ;;
6221           sparc*-*linux*)
6222             LD="${LD-ld} -m elf64_sparc"
6223             ;;
6224         esac
6225         ;;
6226     esac
6227   fi
6228   rm -rf conftest*
6229   ;;
6230
6231 *-*-sco3.2v5*)
6232   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6233   SAVE_CFLAGS="$CFLAGS"
6234   CFLAGS="$CFLAGS -belf"
6235   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6236 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6237 if test "${lt_cv_cc_needs_belf+set}" = set; then
6238   echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240   ac_ext=c
6241 ac_cpp='$CPP $CPPFLAGS'
6242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245
6246      cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h.  */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h.  */
6252
6253 int
6254 main ()
6255 {
6256
6257   ;
6258   return 0;
6259 }
6260 _ACEOF
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263   (eval $ac_link) 2>conftest.er1
6264   ac_status=$?
6265   grep -v '^ *+' conftest.er1 >conftest.err
6266   rm -f conftest.er1
6267   cat conftest.err >&5
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); } &&
6270          { ac_try='test -z "$ac_c_werror_flag"
6271                          || test ! -s conftest.err'
6272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273   (eval $ac_try) 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); }; } &&
6277          { ac_try='test -s conftest$ac_exeext'
6278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279   (eval $ac_try) 2>&5
6280   ac_status=$?
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); }; }; then
6283   lt_cv_cc_needs_belf=yes
6284 else
6285   echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6287
6288 lt_cv_cc_needs_belf=no
6289 fi
6290 rm -f conftest.err conftest.$ac_objext \
6291       conftest$ac_exeext conftest.$ac_ext
6292      ac_ext=c
6293 ac_cpp='$CPP $CPPFLAGS'
6294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6297
6298 fi
6299 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6300 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6301   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6302     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6303     CFLAGS="$SAVE_CFLAGS"
6304   fi
6305   ;;
6306 sparc*-*solaris*)
6307   # Find out which ABI we are using.
6308   echo 'int i;' > conftest.$ac_ext
6309   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310   (eval $ac_compile) 2>&5
6311   ac_status=$?
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); }; then
6314     case `/usr/bin/file conftest.o` in
6315     *64-bit*)
6316       case $lt_cv_prog_gnu_ld in
6317       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6318       *)    LD="${LD-ld} -64" ;;
6319       esac
6320       ;;
6321     esac
6322   fi
6323   rm -rf conftest*
6324   ;;
6325 esac
6326
6327 need_locks="$enable_libtool_lock"
6328
6329 ac_ext=c
6330 ac_cpp='$CPP $CPPFLAGS'
6331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6334 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6335 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6336 # On Suns, sometimes $CPP names a directory.
6337 if test -n "$CPP" && test -d "$CPP"; then
6338   CPP=
6339 fi
6340 if test -z "$CPP"; then
6341   if test "${ac_cv_prog_CPP+set}" = set; then
6342   echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344       # Double quotes because CPP needs to be expanded
6345     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6346     do
6347       ac_preproc_ok=false
6348 for ac_c_preproc_warn_flag in '' yes
6349 do
6350   # Use a header file that comes with gcc, so configuring glibc
6351   # with a fresh cross-compiler works.
6352   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6353   # <limits.h> exists even on freestanding compilers.
6354   # On the NeXT, cc -E runs the code through the compiler's parser,
6355   # not just through cpp. "Syntax error" is here to catch this case.
6356   cat >conftest.$ac_ext <<_ACEOF
6357 /* confdefs.h.  */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h.  */
6362 #ifdef __STDC__
6363 # include <limits.h>
6364 #else
6365 # include <assert.h>
6366 #endif
6367                      Syntax error
6368 _ACEOF
6369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6371   ac_status=$?
6372   grep -v '^ *+' conftest.er1 >conftest.err
6373   rm -f conftest.er1
6374   cat conftest.err >&5
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); } >/dev/null; then
6377   if test -s conftest.err; then
6378     ac_cpp_err=$ac_c_preproc_warn_flag
6379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6380   else
6381     ac_cpp_err=
6382   fi
6383 else
6384   ac_cpp_err=yes
6385 fi
6386 if test -z "$ac_cpp_err"; then
6387   :
6388 else
6389   echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6391
6392   # Broken: fails on valid input.
6393 continue
6394 fi
6395 rm -f conftest.err conftest.$ac_ext
6396
6397   # OK, works on sane cases.  Now check whether non-existent headers
6398   # can be detected and how.
6399   cat >conftest.$ac_ext <<_ACEOF
6400 /* confdefs.h.  */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h.  */
6405 #include <ac_nonexistent.h>
6406 _ACEOF
6407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6409   ac_status=$?
6410   grep -v '^ *+' conftest.er1 >conftest.err
6411   rm -f conftest.er1
6412   cat conftest.err >&5
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); } >/dev/null; then
6415   if test -s conftest.err; then
6416     ac_cpp_err=$ac_c_preproc_warn_flag
6417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6418   else
6419     ac_cpp_err=
6420   fi
6421 else
6422   ac_cpp_err=yes
6423 fi
6424 if test -z "$ac_cpp_err"; then
6425   # Broken: success on invalid input.
6426 continue
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431   # Passes both tests.
6432 ac_preproc_ok=:
6433 break
6434 fi
6435 rm -f conftest.err conftest.$ac_ext
6436
6437 done
6438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6439 rm -f conftest.err conftest.$ac_ext
6440 if $ac_preproc_ok; then
6441   break
6442 fi
6443
6444     done
6445     ac_cv_prog_CPP=$CPP
6446
6447 fi
6448   CPP=$ac_cv_prog_CPP
6449 else
6450   ac_cv_prog_CPP=$CPP
6451 fi
6452 echo "$as_me:$LINENO: result: $CPP" >&5
6453 echo "${ECHO_T}$CPP" >&6
6454 ac_preproc_ok=false
6455 for ac_c_preproc_warn_flag in '' yes
6456 do
6457   # Use a header file that comes with gcc, so configuring glibc
6458   # with a fresh cross-compiler works.
6459   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6460   # <limits.h> exists even on freestanding compilers.
6461   # On the NeXT, cc -E runs the code through the compiler's parser,
6462   # not just through cpp. "Syntax error" is here to catch this case.
6463   cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h.  */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h.  */
6469 #ifdef __STDC__
6470 # include <limits.h>
6471 #else
6472 # include <assert.h>
6473 #endif
6474                      Syntax error
6475 _ACEOF
6476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6478   ac_status=$?
6479   grep -v '^ *+' conftest.er1 >conftest.err
6480   rm -f conftest.er1
6481   cat conftest.err >&5
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); } >/dev/null; then
6484   if test -s conftest.err; then
6485     ac_cpp_err=$ac_c_preproc_warn_flag
6486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6487   else
6488     ac_cpp_err=
6489   fi
6490 else
6491   ac_cpp_err=yes
6492 fi
6493 if test -z "$ac_cpp_err"; then
6494   :
6495 else
6496   echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6498
6499   # Broken: fails on valid input.
6500 continue
6501 fi
6502 rm -f conftest.err conftest.$ac_ext
6503
6504   # OK, works on sane cases.  Now check whether non-existent headers
6505   # can be detected and how.
6506   cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h.  */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h.  */
6512 #include <ac_nonexistent.h>
6513 _ACEOF
6514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6515   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6516   ac_status=$?
6517   grep -v '^ *+' conftest.er1 >conftest.err
6518   rm -f conftest.er1
6519   cat conftest.err >&5
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); } >/dev/null; then
6522   if test -s conftest.err; then
6523     ac_cpp_err=$ac_c_preproc_warn_flag
6524     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6525   else
6526     ac_cpp_err=
6527   fi
6528 else
6529   ac_cpp_err=yes
6530 fi
6531 if test -z "$ac_cpp_err"; then
6532   # Broken: success on invalid input.
6533 continue
6534 else
6535   echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538   # Passes both tests.
6539 ac_preproc_ok=:
6540 break
6541 fi
6542 rm -f conftest.err conftest.$ac_ext
6543
6544 done
6545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6546 rm -f conftest.err conftest.$ac_ext
6547 if $ac_preproc_ok; then
6548   :
6549 else
6550   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6551 See \`config.log' for more details." >&5
6552 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6553 See \`config.log' for more details." >&2;}
6554    { (exit 1); exit 1; }; }
6555 fi
6556
6557 ac_ext=c
6558 ac_cpp='$CPP $CPPFLAGS'
6559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562
6563
6564 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6565 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6566 if test "${ac_cv_header_stdc+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h.  */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h.  */
6575 #include <stdlib.h>
6576 #include <stdarg.h>
6577 #include <string.h>
6578 #include <float.h>
6579
6580 int
6581 main ()
6582 {
6583
6584   ;
6585   return 0;
6586 }
6587 _ACEOF
6588 rm -f conftest.$ac_objext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590   (eval $ac_compile) 2>conftest.er1
6591   ac_status=$?
6592   grep -v '^ *+' conftest.er1 >conftest.err
6593   rm -f conftest.er1
6594   cat conftest.err >&5
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); } &&
6597          { ac_try='test -z "$ac_c_werror_flag"
6598                          || test ! -s conftest.err'
6599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600   (eval $ac_try) 2>&5
6601   ac_status=$?
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); }; } &&
6604          { ac_try='test -s conftest.$ac_objext'
6605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606   (eval $ac_try) 2>&5
6607   ac_status=$?
6608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609   (exit $ac_status); }; }; then
6610   ac_cv_header_stdc=yes
6611 else
6612   echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6614
6615 ac_cv_header_stdc=no
6616 fi
6617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6618
6619 if test $ac_cv_header_stdc = yes; then
6620   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6621   cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h.  */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h.  */
6627 #include <string.h>
6628
6629 _ACEOF
6630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6631   $EGREP "memchr" >/dev/null 2>&1; then
6632   :
6633 else
6634   ac_cv_header_stdc=no
6635 fi
6636 rm -f conftest*
6637
6638 fi
6639
6640 if test $ac_cv_header_stdc = yes; then
6641   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6642   cat >conftest.$ac_ext <<_ACEOF
6643 /* confdefs.h.  */
6644 _ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h.  */
6648 #include <stdlib.h>
6649
6650 _ACEOF
6651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652   $EGREP "free" >/dev/null 2>&1; then
6653   :
6654 else
6655   ac_cv_header_stdc=no
6656 fi
6657 rm -f conftest*
6658
6659 fi
6660
6661 if test $ac_cv_header_stdc = yes; then
6662   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6663   if test "$cross_compiling" = yes; then
6664   :
6665 else
6666   cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h.  */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h.  */
6672 #include <ctype.h>
6673 #if ((' ' & 0x0FF) == 0x020)
6674 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6675 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6676 #else
6677 # define ISLOWER(c) \
6678                    (('a' <= (c) && (c) <= 'i') \
6679                      || ('j' <= (c) && (c) <= 'r') \
6680                      || ('s' <= (c) && (c) <= 'z'))
6681 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6682 #endif
6683
6684 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6685 int
6686 main ()
6687 {
6688   int i;
6689   for (i = 0; i < 256; i++)
6690     if (XOR (islower (i), ISLOWER (i))
6691         || toupper (i) != TOUPPER (i))
6692       exit(2);
6693   exit (0);
6694 }
6695 _ACEOF
6696 rm -f conftest$ac_exeext
6697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6698   (eval $ac_link) 2>&5
6699   ac_status=$?
6700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703   (eval $ac_try) 2>&5
6704   ac_status=$?
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); }; }; then
6707   :
6708 else
6709   echo "$as_me: program exited with status $ac_status" >&5
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6712
6713 ( exit $ac_status )
6714 ac_cv_header_stdc=no
6715 fi
6716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6717 fi
6718 fi
6719 fi
6720 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6721 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6722 if test $ac_cv_header_stdc = yes; then
6723
6724 cat >>confdefs.h <<\_ACEOF
6725 #define STDC_HEADERS 1
6726 _ACEOF
6727
6728 fi
6729
6730 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6741                   inttypes.h stdint.h unistd.h
6742 do
6743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6744 echo "$as_me:$LINENO: checking for $ac_header" >&5
6745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6747   echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749   cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h.  */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h.  */
6755 $ac_includes_default
6756
6757 #include <$ac_header>
6758 _ACEOF
6759 rm -f conftest.$ac_objext
6760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6761   (eval $ac_compile) 2>conftest.er1
6762   ac_status=$?
6763   grep -v '^ *+' conftest.er1 >conftest.err
6764   rm -f conftest.er1
6765   cat conftest.err >&5
6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); } &&
6768          { ac_try='test -z "$ac_c_werror_flag"
6769                          || test ! -s conftest.err'
6770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771   (eval $ac_try) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); }; } &&
6775          { ac_try='test -s conftest.$ac_objext'
6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); }; }; then
6781   eval "$as_ac_Header=yes"
6782 else
6783   echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786 eval "$as_ac_Header=no"
6787 fi
6788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6789 fi
6790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6793   cat >>confdefs.h <<_ACEOF
6794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6795 _ACEOF
6796
6797 fi
6798
6799 done
6800
6801
6802
6803 for ac_header in dlfcn.h
6804 do
6805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6806 echo "$as_me:$LINENO: checking for $ac_header" >&5
6807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h.  */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h.  */
6817 $ac_includes_default
6818
6819 #include <$ac_header>
6820 _ACEOF
6821 rm -f conftest.$ac_objext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6823   (eval $ac_compile) 2>conftest.er1
6824   ac_status=$?
6825   grep -v '^ *+' conftest.er1 >conftest.err
6826   rm -f conftest.er1
6827   cat conftest.err >&5
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); } &&
6830          { ac_try='test -z "$ac_c_werror_flag"
6831                          || test ! -s conftest.err'
6832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833   (eval $ac_try) 2>&5
6834   ac_status=$?
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); }; } &&
6837          { ac_try='test -s conftest.$ac_objext'
6838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839   (eval $ac_try) 2>&5
6840   ac_status=$?
6841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842   (exit $ac_status); }; }; then
6843   eval "$as_ac_Header=yes"
6844 else
6845   echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6847
6848 eval "$as_ac_Header=no"
6849 fi
6850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6851 fi
6852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6855   cat >>confdefs.h <<_ACEOF
6856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6857 _ACEOF
6858
6859 fi
6860
6861 done
6862
6863
6864
6865 # This can be used to rebuild libtool when needed
6866 LIBTOOL_DEPS="$ltmain"
6867
6868 # Always use our own libtool.
6869 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895 test -z "$LN_S" && LN_S="ln -s"
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910 if test -n "${ZSH_VERSION+set}" ; then
6911    setopt NO_GLOB_SUBST
6912 fi
6913
6914 echo "$as_me:$LINENO: checking for objdir" >&5
6915 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6916 if test "${lt_cv_objdir+set}" = set; then
6917   echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919   rm -f .libs 2>/dev/null
6920 mkdir .libs 2>/dev/null
6921 if test -d .libs; then
6922   lt_cv_objdir=.libs
6923 else
6924   # MS-DOS does not allow filenames that begin with a dot.
6925   lt_cv_objdir=_libs
6926 fi
6927 rmdir .libs 2>/dev/null
6928 fi
6929 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6930 echo "${ECHO_T}$lt_cv_objdir" >&6
6931 objdir=$lt_cv_objdir
6932
6933
6934
6935
6936
6937 cat >>confdefs.h <<_ACEOF
6938 #define LT_OBJDIR "$lt_cv_objdir/"
6939 _ACEOF
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957 case $host_os in
6958 aix3*)
6959   # AIX sometimes has problems with the GCC collect2 program.  For some
6960   # reason, if we set the COLLECT_NAMES environment variable, the problems
6961   # vanish in a puff of smoke.
6962   if test "X${COLLECT_NAMES+set}" != Xset; then
6963     COLLECT_NAMES=
6964     export COLLECT_NAMES
6965   fi
6966   ;;
6967 esac
6968
6969 # Sed substitution that helps us do robust quoting.  It backslashifies
6970 # metacharacters that are still active within double-quoted strings.
6971 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6972
6973 # Same as above, but do not quote variable references.
6974 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6975
6976 # Sed substitution to delay expansion of an escaped shell variable in a
6977 # double_quote_subst'ed string.
6978 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6979
6980 # Sed substitution to delay expansion of an escaped single quote.
6981 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6982
6983 # Sed substitution to avoid accidental globbing in evaled expressions
6984 no_glob_subst='s/\*/\\\*/g'
6985
6986 # Global variables:
6987 ofile=libtool
6988 can_build_shared=yes
6989
6990 # All known linkers require a `.a' archive for static linking (except MSVC,
6991 # which needs '.lib').
6992 libext=a
6993
6994 with_gnu_ld="$lt_cv_prog_gnu_ld"
6995
6996 old_CC="$CC"
6997 old_CFLAGS="$CFLAGS"
6998
6999 # Set sane defaults for various variables
7000 test -z "$CC" && CC=cc
7001 test -z "$LTCC" && LTCC=$CC
7002 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7003 test -z "$LD" && LD=ld
7004 test -z "$ac_objext" && ac_objext=o
7005
7006 for cc_temp in $compiler""; do
7007   case $cc_temp in
7008     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7009     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7010     \-*) ;;
7011     *) break;;
7012   esac
7013 done
7014 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7015
7016
7017 # Only perform the check for file, if the check method requires it
7018 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7019 case $deplibs_check_method in
7020 file_magic*)
7021   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7022     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7023 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7024 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7025   echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027   case $MAGIC_CMD in
7028 [\\/*] |  ?:[\\/]*)
7029   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7030   ;;
7031 *)
7032   lt_save_MAGIC_CMD="$MAGIC_CMD"
7033   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7034   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7035   for ac_dir in $ac_dummy; do
7036     IFS="$lt_save_ifs"
7037     test -z "$ac_dir" && ac_dir=.
7038     if test -f $ac_dir/${ac_tool_prefix}file; then
7039       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7040       if test -n "$file_magic_test_file"; then
7041         case $deplibs_check_method in
7042         "file_magic "*)
7043           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7044           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7045           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7046             $EGREP "$file_magic_regex" > /dev/null; then
7047             :
7048           else
7049             cat <<_LT_EOF 1>&2
7050
7051 *** Warning: the command libtool uses to detect shared libraries,
7052 *** $file_magic_cmd, produces output that libtool cannot recognize.
7053 *** The result is that libtool may fail to recognize shared libraries
7054 *** as such.  This will affect the creation of libtool libraries that
7055 *** depend on shared libraries, but programs linked with such libtool
7056 *** libraries will work regardless of this problem.  Nevertheless, you
7057 *** may want to report the problem to your system manager and/or to
7058 *** bug-libtool@gnu.org
7059
7060 _LT_EOF
7061           fi ;;
7062         esac
7063       fi
7064       break
7065     fi
7066   done
7067   IFS="$lt_save_ifs"
7068   MAGIC_CMD="$lt_save_MAGIC_CMD"
7069   ;;
7070 esac
7071 fi
7072
7073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7074 if test -n "$MAGIC_CMD"; then
7075   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7076 echo "${ECHO_T}$MAGIC_CMD" >&6
7077 else
7078   echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6
7080 fi
7081
7082
7083
7084
7085
7086 if test -z "$lt_cv_path_MAGIC_CMD"; then
7087   if test -n "$ac_tool_prefix"; then
7088     echo "$as_me:$LINENO: checking for file" >&5
7089 echo $ECHO_N "checking for file... $ECHO_C" >&6
7090 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   case $MAGIC_CMD in
7094 [\\/*] |  ?:[\\/]*)
7095   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7096   ;;
7097 *)
7098   lt_save_MAGIC_CMD="$MAGIC_CMD"
7099   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7100   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7101   for ac_dir in $ac_dummy; do
7102     IFS="$lt_save_ifs"
7103     test -z "$ac_dir" && ac_dir=.
7104     if test -f $ac_dir/file; then
7105       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7106       if test -n "$file_magic_test_file"; then
7107         case $deplibs_check_method in
7108         "file_magic "*)
7109           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7110           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7111           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7112             $EGREP "$file_magic_regex" > /dev/null; then
7113             :
7114           else
7115             cat <<_LT_EOF 1>&2
7116
7117 *** Warning: the command libtool uses to detect shared libraries,
7118 *** $file_magic_cmd, produces output that libtool cannot recognize.
7119 *** The result is that libtool may fail to recognize shared libraries
7120 *** as such.  This will affect the creation of libtool libraries that
7121 *** depend on shared libraries, but programs linked with such libtool
7122 *** libraries will work regardless of this problem.  Nevertheless, you
7123 *** may want to report the problem to your system manager and/or to
7124 *** bug-libtool@gnu.org
7125
7126 _LT_EOF
7127           fi ;;
7128         esac
7129       fi
7130       break
7131     fi
7132   done
7133   IFS="$lt_save_ifs"
7134   MAGIC_CMD="$lt_save_MAGIC_CMD"
7135   ;;
7136 esac
7137 fi
7138
7139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7140 if test -n "$MAGIC_CMD"; then
7141   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7142 echo "${ECHO_T}$MAGIC_CMD" >&6
7143 else
7144   echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6
7146 fi
7147
7148
7149   else
7150     MAGIC_CMD=:
7151   fi
7152 fi
7153
7154   fi
7155   ;;
7156 esac
7157
7158 # Use C for the default configuration in the libtool script
7159
7160 lt_save_CC="$CC"
7161 ac_ext=c
7162 ac_cpp='$CPP $CPPFLAGS'
7163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7166
7167
7168 # Source file extension for C test sources.
7169 ac_ext=c
7170
7171 # Object file extension for compiled C test sources.
7172 objext=o
7173 objext=$objext
7174
7175 # Code to be used in simple compile tests
7176 lt_simple_compile_test_code="int some_variable = 0;"
7177
7178 # Code to be used in simple link tests
7179 lt_simple_link_test_code='int main(){return(0);}'
7180
7181
7182
7183
7184
7185
7186
7187 # If no C compiler was specified, use CC.
7188 LTCC=${LTCC-"$CC"}
7189
7190 # If no C compiler flags were specified, use CFLAGS.
7191 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7192
7193 # Allow CC to be a program name with arguments.
7194 compiler=$CC
7195
7196 # Save the default compiler, since it gets overwritten when the other
7197 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7198 compiler_DEFAULT=$CC
7199
7200 # save warnings/boilerplate of simple test code
7201 ac_outfile=conftest.$ac_objext
7202 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7203 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7204 _lt_compiler_boilerplate=`cat conftest.err`
7205 $RM conftest*
7206
7207 ac_outfile=conftest.$ac_objext
7208 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7209 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7210 _lt_linker_boilerplate=`cat conftest.err`
7211 $RM conftest*
7212
7213
7214 ## CAVEAT EMPTOR:
7215 ## There is no encapsulation within the following macros, do not change
7216 ## the running order or otherwise move them around unless you know exactly
7217 ## what you are doing...
7218 if test -n "$compiler"; then
7219
7220 lt_prog_compiler_no_builtin_flag=
7221
7222 if test "$GCC" = yes; then
7223   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7224
7225   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7226 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7227 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7228   echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230   lt_cv_prog_compiler_rtti_exceptions=no
7231    ac_outfile=conftest.$ac_objext
7232    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7233    lt_compiler_flag="-fno-rtti -fno-exceptions"
7234    # Insert the option either (1) after the last *FLAGS variable, or
7235    # (2) before a word containing "conftest.", or (3) at the end.
7236    # Note that $ac_compile itself does not contain backslashes and begins
7237    # with a dollar sign (not a hyphen), so the echo should work correctly.
7238    # The option is referenced via a variable to avoid confusing sed.
7239    lt_compile=`echo "$ac_compile" | $SED \
7240    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7241    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7242    -e 's:$: $lt_compiler_flag:'`
7243    (eval echo "\"\$as_me:7243: $lt_compile\"" >&5)
7244    (eval "$lt_compile" 2>conftest.err)
7245    ac_status=$?
7246    cat conftest.err >&5
7247    echo "$as_me:7247: \$? = $ac_status" >&5
7248    if (exit $ac_status) && test -s "$ac_outfile"; then
7249      # The compiler can only warn and ignore the option if not recognized
7250      # So say no if there are warnings other than the usual output.
7251      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7252      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7253      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7254        lt_cv_prog_compiler_rtti_exceptions=yes
7255      fi
7256    fi
7257    $RM conftest*
7258
7259 fi
7260 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7261 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7262
7263 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7264     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7265 else
7266     :
7267 fi
7268
7269 fi
7270
7271
7272
7273
7274
7275
7276   lt_prog_compiler_wl=
7277 lt_prog_compiler_pic=
7278 lt_prog_compiler_static=
7279
7280 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7281 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7282
7283   if test "$GCC" = yes; then
7284     lt_prog_compiler_wl='-Wl,'
7285     lt_prog_compiler_static='-static'
7286
7287     case $host_os in
7288       aix*)
7289       # All AIX code is PIC.
7290       if test "$host_cpu" = ia64; then
7291         # AIX 5 now supports IA64 processor
7292         lt_prog_compiler_static='-Bstatic'
7293       fi
7294       ;;
7295
7296     amigaos*)
7297       if test "$host_cpu" = m68k; then
7298         # FIXME: we need at least 68020 code to build shared libraries, but
7299         # adding the `-m68020' flag to GCC prevents building anything better,
7300         # like `-m68040'.
7301         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7302       fi
7303       ;;
7304
7305     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7306       # PIC is the default for these OSes.
7307       ;;
7308
7309     mingw* | cygwin* | pw32* | os2*)
7310       # This hack is so that the source file can tell whether it is being
7311       # built for inclusion in a dll (and should export symbols for example).
7312       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7313       # (--disable-auto-import) libraries
7314       lt_prog_compiler_pic='-DDLL_EXPORT'
7315       ;;
7316
7317     darwin* | rhapsody*)
7318       # PIC is the default on this platform
7319       # Common symbols not allowed in MH_DYLIB files
7320       lt_prog_compiler_pic='-fno-common'
7321       ;;
7322
7323     hpux*)
7324       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7325       # not for PA HP-UX.
7326       case $host_cpu in
7327       hppa*64*|ia64*)
7328         # +Z the default
7329         ;;
7330       *)
7331         lt_prog_compiler_pic='-fPIC'
7332         ;;
7333       esac
7334       ;;
7335
7336     interix[3-9]*)
7337       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7338       # Instead, we relocate shared libraries at runtime.
7339       ;;
7340
7341     msdosdjgpp*)
7342       # Just because we use GCC doesn't mean we suddenly get shared libraries
7343       # on systems that don't support them.
7344       lt_prog_compiler_can_build_shared=no
7345       enable_shared=no
7346       ;;
7347
7348     *nto* | *qnx*)
7349       # QNX uses GNU C++, but need to define -shared option too, otherwise
7350       # it will coredump.
7351       lt_prog_compiler_pic='-fPIC -shared'
7352       ;;
7353
7354     sysv4*MP*)
7355       if test -d /usr/nec; then
7356         lt_prog_compiler_pic=-Kconform_pic
7357       fi
7358       ;;
7359
7360     *)
7361       lt_prog_compiler_pic='-fPIC'
7362       ;;
7363     esac
7364   else
7365     # PORTME Check for flag to pass linker flags through the system compiler.
7366     case $host_os in
7367     aix*)
7368       lt_prog_compiler_wl='-Wl,'
7369       if test "$host_cpu" = ia64; then
7370         # AIX 5 now supports IA64 processor
7371         lt_prog_compiler_static='-Bstatic'
7372       else
7373         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7374       fi
7375       ;;
7376     darwin*)
7377       # PIC is the default on this platform
7378       # Common symbols not allowed in MH_DYLIB files
7379       case $cc_basename in
7380       xlc*)
7381         lt_prog_compiler_pic='-qnocommon'
7382         lt_prog_compiler_wl='-Wl,'
7383         ;;
7384       esac
7385       ;;
7386
7387     mingw* | cygwin* | pw32* | os2*)
7388       # This hack is so that the source file can tell whether it is being
7389       # built for inclusion in a dll (and should export symbols for example).
7390       lt_prog_compiler_pic='-DDLL_EXPORT'
7391       ;;
7392
7393     hpux9* | hpux10* | hpux11*)
7394       lt_prog_compiler_wl='-Wl,'
7395       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7396       # not for PA HP-UX.
7397       case $host_cpu in
7398       hppa*64*|ia64*)
7399         # +Z the default
7400         ;;
7401       *)
7402         lt_prog_compiler_pic='+Z'
7403         ;;
7404       esac
7405       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7406       lt_prog_compiler_static='${wl}-a ${wl}archive'
7407       ;;
7408
7409     irix5* | irix6* | nonstopux*)
7410       lt_prog_compiler_wl='-Wl,'
7411       # PIC (with -KPIC) is the default.
7412       lt_prog_compiler_static='-non_shared'
7413       ;;
7414
7415     linux* | k*bsd*-gnu)
7416       case $cc_basename in
7417       icc* | ecc*)
7418         lt_prog_compiler_wl='-Wl,'
7419         lt_prog_compiler_pic='-KPIC'
7420         lt_prog_compiler_static='-static'
7421         ;;
7422       pgcc* | pgf77* | pgf90* | pgf95*)
7423         # Portland Group compilers (*not* the Pentium gcc compiler,
7424         # which looks to be a dead project)
7425         lt_prog_compiler_wl='-Wl,'
7426         lt_prog_compiler_pic='-fpic'
7427         lt_prog_compiler_static='-Bstatic'
7428         ;;
7429       ccc*)
7430         lt_prog_compiler_wl='-Wl,'
7431         # All Alpha code is PIC.
7432         lt_prog_compiler_static='-non_shared'
7433         ;;
7434       *)
7435         case `$CC -V 2>&1 | sed 5q` in
7436         *Sun\ C*)
7437           # Sun C 5.9
7438           lt_prog_compiler_pic='-KPIC'
7439           lt_prog_compiler_static='-Bstatic'
7440           lt_prog_compiler_wl='-Wl,'
7441           ;;
7442         *Sun\ F*)
7443           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7444           lt_prog_compiler_pic='-KPIC'
7445           lt_prog_compiler_static='-Bstatic'
7446           lt_prog_compiler_wl=''
7447           ;;
7448         esac
7449         ;;
7450       esac
7451       ;;
7452
7453     newsos6)
7454       lt_prog_compiler_pic='-KPIC'
7455       lt_prog_compiler_static='-Bstatic'
7456       ;;
7457
7458     *nto* | *qnx*)
7459       # QNX uses GNU C++, but need to define -shared option too, otherwise
7460       # it will coredump.
7461       lt_prog_compiler_pic='-fPIC -shared'
7462       ;;
7463
7464     osf3* | osf4* | osf5*)
7465       lt_prog_compiler_wl='-Wl,'
7466       # All OSF/1 code is PIC.
7467       lt_prog_compiler_static='-non_shared'
7468       ;;
7469
7470     rdos*)
7471       lt_prog_compiler_static='-non_shared'
7472       ;;
7473
7474     solaris*)
7475       lt_prog_compiler_pic='-KPIC'
7476       lt_prog_compiler_static='-Bstatic'
7477       case $cc_basename in
7478       f77* | f90* | f95*)
7479         lt_prog_compiler_wl='-Qoption ld ';;
7480       *)
7481         lt_prog_compiler_wl='-Wl,';;
7482       esac
7483       ;;
7484
7485     sunos4*)
7486       lt_prog_compiler_wl='-Qoption ld '
7487       lt_prog_compiler_pic='-PIC'
7488       lt_prog_compiler_static='-Bstatic'
7489       ;;
7490
7491     sysv4 | sysv4.2uw2* | sysv4.3*)
7492       lt_prog_compiler_wl='-Wl,'
7493       lt_prog_compiler_pic='-KPIC'
7494       lt_prog_compiler_static='-Bstatic'
7495       ;;
7496
7497     sysv4*MP*)
7498       if test -d /usr/nec ;then
7499         lt_prog_compiler_pic='-Kconform_pic'
7500         lt_prog_compiler_static='-Bstatic'
7501       fi
7502       ;;
7503
7504     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7505       lt_prog_compiler_wl='-Wl,'
7506       lt_prog_compiler_pic='-KPIC'
7507       lt_prog_compiler_static='-Bstatic'
7508       ;;
7509
7510     unicos*)
7511       lt_prog_compiler_wl='-Wl,'
7512       lt_prog_compiler_can_build_shared=no
7513       ;;
7514
7515     uts4*)
7516       lt_prog_compiler_pic='-pic'
7517       lt_prog_compiler_static='-Bstatic'
7518       ;;
7519
7520     *)
7521       lt_prog_compiler_can_build_shared=no
7522       ;;
7523     esac
7524   fi
7525
7526 case $host_os in
7527   # For platforms which do not support PIC, -DPIC is meaningless:
7528   *djgpp*)
7529     lt_prog_compiler_pic=
7530     ;;
7531   *)
7532     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7533     ;;
7534 esac
7535 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7536 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7537
7538
7539
7540
7541
7542
7543 #
7544 # Check to make sure the PIC flag actually works.
7545 #
7546 if test -n "$lt_prog_compiler_pic"; then
7547   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7548 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7549 if test "${lt_prog_compiler_pic_works+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   lt_prog_compiler_pic_works=no
7553    ac_outfile=conftest.$ac_objext
7554    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7555    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7556    # Insert the option either (1) after the last *FLAGS variable, or
7557    # (2) before a word containing "conftest.", or (3) at the end.
7558    # Note that $ac_compile itself does not contain backslashes and begins
7559    # with a dollar sign (not a hyphen), so the echo should work correctly.
7560    # The option is referenced via a variable to avoid confusing sed.
7561    lt_compile=`echo "$ac_compile" | $SED \
7562    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7564    -e 's:$: $lt_compiler_flag:'`
7565    (eval echo "\"\$as_me:7565: $lt_compile\"" >&5)
7566    (eval "$lt_compile" 2>conftest.err)
7567    ac_status=$?
7568    cat conftest.err >&5
7569    echo "$as_me:7569: \$? = $ac_status" >&5
7570    if (exit $ac_status) && test -s "$ac_outfile"; then
7571      # The compiler can only warn and ignore the option if not recognized
7572      # So say no if there are warnings other than the usual output.
7573      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7574      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7575      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7576        lt_prog_compiler_pic_works=yes
7577      fi
7578    fi
7579    $RM conftest*
7580
7581 fi
7582 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7583 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7584
7585 if test x"$lt_prog_compiler_pic_works" = xyes; then
7586     case $lt_prog_compiler_pic in
7587      "" | " "*) ;;
7588      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7589      esac
7590 else
7591     lt_prog_compiler_pic=
7592      lt_prog_compiler_can_build_shared=no
7593 fi
7594
7595 fi
7596
7597
7598
7599
7600
7601
7602 #
7603 # Check to make sure the static flag actually works.
7604 #
7605 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7606 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7607 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7608 if test "${lt_prog_compiler_static_works+set}" = set; then
7609   echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611   lt_prog_compiler_static_works=no
7612    save_LDFLAGS="$LDFLAGS"
7613    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7614    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7615    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7616      # The linker can only warn and ignore the option if not recognized
7617      # So say no if there are warnings
7618      if test -s conftest.err; then
7619        # Append any errors to the config.log.
7620        cat conftest.err 1>&5
7621        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7622        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7623        if diff conftest.exp conftest.er2 >/dev/null; then
7624          lt_prog_compiler_static_works=yes
7625        fi
7626      else
7627        lt_prog_compiler_static_works=yes
7628      fi
7629    fi
7630    $RM conftest*
7631    LDFLAGS="$save_LDFLAGS"
7632
7633 fi
7634 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7635 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7636
7637 if test x"$lt_prog_compiler_static_works" = xyes; then
7638     :
7639 else
7640     lt_prog_compiler_static=
7641 fi
7642
7643
7644
7645
7646
7647
7648
7649   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7650 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7651 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   lt_cv_prog_compiler_c_o=no
7655    $RM -r conftest 2>/dev/null
7656    mkdir conftest
7657    cd conftest
7658    mkdir out
7659    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7660
7661    lt_compiler_flag="-o out/conftest2.$ac_objext"
7662    # Insert the option either (1) after the last *FLAGS variable, or
7663    # (2) before a word containing "conftest.", or (3) at the end.
7664    # Note that $ac_compile itself does not contain backslashes and begins
7665    # with a dollar sign (not a hyphen), so the echo should work correctly.
7666    lt_compile=`echo "$ac_compile" | $SED \
7667    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7668    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7669    -e 's:$: $lt_compiler_flag:'`
7670    (eval echo "\"\$as_me:7670: $lt_compile\"" >&5)
7671    (eval "$lt_compile" 2>out/conftest.err)
7672    ac_status=$?
7673    cat out/conftest.err >&5
7674    echo "$as_me:7674: \$? = $ac_status" >&5
7675    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7676    then
7677      # The compiler can only warn and ignore the option if not recognized
7678      # So say no if there are warnings
7679      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7680      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7681      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7682        lt_cv_prog_compiler_c_o=yes
7683      fi
7684    fi
7685    chmod u+w . 2>&5
7686    $RM conftest*
7687    # SGI C++ compiler will create directory out/ii_files/ for
7688    # template instantiation
7689    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7690    $RM out/* && rmdir out
7691    cd ..
7692    $RM -r conftest
7693    $RM conftest*
7694
7695 fi
7696 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7697 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7698
7699
7700
7701
7702
7703
7704   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7705 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7706 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   lt_cv_prog_compiler_c_o=no
7710    $RM -r conftest 2>/dev/null
7711    mkdir conftest
7712    cd conftest
7713    mkdir out
7714    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7715
7716    lt_compiler_flag="-o out/conftest2.$ac_objext"
7717    # Insert the option either (1) after the last *FLAGS variable, or
7718    # (2) before a word containing "conftest.", or (3) at the end.
7719    # Note that $ac_compile itself does not contain backslashes and begins
7720    # with a dollar sign (not a hyphen), so the echo should work correctly.
7721    lt_compile=`echo "$ac_compile" | $SED \
7722    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7723    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7724    -e 's:$: $lt_compiler_flag:'`
7725    (eval echo "\"\$as_me:7725: $lt_compile\"" >&5)
7726    (eval "$lt_compile" 2>out/conftest.err)
7727    ac_status=$?
7728    cat out/conftest.err >&5
7729    echo "$as_me:7729: \$? = $ac_status" >&5
7730    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7731    then
7732      # The compiler can only warn and ignore the option if not recognized
7733      # So say no if there are warnings
7734      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7735      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7736      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7737        lt_cv_prog_compiler_c_o=yes
7738      fi
7739    fi
7740    chmod u+w . 2>&5
7741    $RM conftest*
7742    # SGI C++ compiler will create directory out/ii_files/ for
7743    # template instantiation
7744    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7745    $RM out/* && rmdir out
7746    cd ..
7747    $RM -r conftest
7748    $RM conftest*
7749
7750 fi
7751 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7752 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7753
7754
7755
7756
7757 hard_links="nottested"
7758 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7759   # do not overwrite the value of need_locks provided by the user
7760   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7761 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7762   hard_links=yes
7763   $RM conftest*
7764   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7765   touch conftest.a
7766   ln conftest.a conftest.b 2>&5 || hard_links=no
7767   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7768   echo "$as_me:$LINENO: result: $hard_links" >&5
7769 echo "${ECHO_T}$hard_links" >&6
7770   if test "$hard_links" = no; then
7771     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7772 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7773     need_locks=warn
7774   fi
7775 else
7776   need_locks=no
7777 fi
7778
7779
7780
7781
7782
7783
7784   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7785 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7786
7787   runpath_var=
7788   allow_undefined_flag=
7789   always_export_symbols=no
7790   archive_cmds=
7791   archive_expsym_cmds=
7792   compiler_needs_object=no
7793   enable_shared_with_static_runtimes=no
7794   export_dynamic_flag_spec=
7795   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7796   hardcode_automatic=no
7797   hardcode_direct=no
7798   hardcode_direct_absolute=no
7799   hardcode_libdir_flag_spec=
7800   hardcode_libdir_flag_spec_ld=
7801   hardcode_libdir_separator=
7802   hardcode_minus_L=no
7803   hardcode_shlibpath_var=unsupported
7804   inherit_rpath=no
7805   link_all_deplibs=unknown
7806   module_cmds=
7807   module_expsym_cmds=
7808   old_archive_from_new_cmds=
7809   old_archive_from_expsyms_cmds=
7810   thread_safe_flag_spec=
7811   whole_archive_flag_spec=
7812   # include_expsyms should be a list of space-separated symbols to be *always*
7813   # included in the symbol list
7814   include_expsyms=
7815   # exclude_expsyms can be an extended regexp of symbols to exclude
7816   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7817   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7818   # as well as any symbol that contains `d'.
7819   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7820   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7821   # platforms (ab)use it in PIC code, but their linkers get confused if
7822   # the symbol is explicitly referenced.  Since portable code cannot
7823   # rely on this symbol name, it's probably fine to never include it in
7824   # preloaded symbol tables.
7825   extract_expsyms_cmds=
7826
7827   case $host_os in
7828   cygwin* | mingw* | pw32*)
7829     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7830     # When not using gcc, we currently assume that we are using
7831     # Microsoft Visual C++.
7832     if test "$GCC" != yes; then
7833       with_gnu_ld=no
7834     fi
7835     ;;
7836   interix*)
7837     # we just hope/assume this is gcc and not c89 (= MSVC++)
7838     with_gnu_ld=yes
7839     ;;
7840   openbsd*)
7841     with_gnu_ld=no
7842     ;;
7843   esac
7844
7845   ld_shlibs=yes
7846   if test "$with_gnu_ld" = yes; then
7847     # If archive_cmds runs LD, not CC, wlarc should be empty
7848     wlarc='${wl}'
7849
7850     # Set some defaults for GNU ld with shared library support. These
7851     # are reset later if shared libraries are not supported. Putting them
7852     # here allows them to be overridden if necessary.
7853     runpath_var=LD_RUN_PATH
7854     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7855     export_dynamic_flag_spec='${wl}--export-dynamic'
7856     # ancient GNU ld didn't support --whole-archive et. al.
7857     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7858       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7859     else
7860       whole_archive_flag_spec=
7861     fi
7862     supports_anon_versioning=no
7863     case `$LD -v 2>&1` in
7864       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7865       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7866       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7867       *\ 2.11.*) ;; # other 2.11 versions
7868       *) supports_anon_versioning=yes ;;
7869     esac
7870
7871     # See if GNU ld supports shared libraries.
7872     case $host_os in
7873     aix3* | aix4* | aix5*)
7874       # On AIX/PPC, the GNU linker is very broken
7875       if test "$host_cpu" != ia64; then
7876         ld_shlibs=no
7877         cat <<_LT_EOF 1>&2
7878
7879 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7880 *** to be unable to reliably create shared libraries on AIX.
7881 *** Therefore, libtool is disabling shared libraries support.  If you
7882 *** really care for shared libraries, you may want to modify your PATH
7883 *** so that a non-GNU linker is found, and then restart.
7884
7885 _LT_EOF
7886       fi
7887       ;;
7888
7889     amigaos*)
7890       if test "$host_cpu" = m68k; then
7891         archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7892         hardcode_libdir_flag_spec='-L$libdir'
7893         hardcode_minus_L=yes
7894       fi
7895
7896       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7897       # that the semantics of dynamic libraries on AmigaOS, at least up
7898       # to version 4, is to share data among multiple programs linked
7899       # with the same dynamic library.  Since this doesn't match the
7900       # behavior of shared libraries on other platforms, we can't use
7901       # them.
7902       ld_shlibs=no
7903       ;;
7904
7905     beos*)
7906       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7907         allow_undefined_flag=unsupported
7908         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7909         # support --undefined.  This deserves some investigation.  FIXME
7910         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7911       else
7912         ld_shlibs=no
7913       fi
7914       ;;
7915
7916     cygwin* | mingw* | pw32*)
7917       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7918       # as there is no search path for DLLs.
7919       hardcode_libdir_flag_spec='-L$libdir'
7920       allow_undefined_flag=unsupported
7921       always_export_symbols=no
7922       enable_shared_with_static_runtimes=yes
7923       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7924
7925       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7926         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7927         # If the export-symbols file already is a .def file (1st line
7928         # is EXPORTS), use it as is; otherwise, prepend...
7929         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7930           cp $export_symbols $output_objdir/$soname.def;
7931         else
7932           echo EXPORTS > $output_objdir/$soname.def;
7933           cat $export_symbols >> $output_objdir/$soname.def;
7934         fi~
7935         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7936       else
7937         ld_shlibs=no
7938       fi
7939       ;;
7940
7941     interix[3-9]*)
7942       hardcode_direct=no
7943       hardcode_shlibpath_var=no
7944       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7945       export_dynamic_flag_spec='${wl}-E'
7946       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7947       # Instead, shared libraries are loaded at an image base (0x10000000 by
7948       # default) and relocated if they conflict, which is a slow very memory
7949       # consuming and fragmenting process.  To avoid this, we pick a random,
7950       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7951       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7952       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7953       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7954       ;;
7955
7956     gnu* | linux* | tpf* | k*bsd*-gnu)
7957       tmp_diet=no
7958       if test "$host_os" = linux-dietlibc; then
7959         case $cc_basename in
7960           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7961         esac
7962       fi
7963       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7964          && test "$tmp_diet" = no
7965       then
7966         tmp_addflag=
7967         case $cc_basename,$host_cpu in
7968         pgcc*)                          # Portland Group C compiler
7969           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7970           tmp_addflag=' $pic_flag'
7971           ;;
7972         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7973           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7974           tmp_addflag=' $pic_flag -Mnomain' ;;
7975         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7976           tmp_addflag=' -i_dynamic' ;;
7977         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7978           tmp_addflag=' -i_dynamic -nofor_main' ;;
7979         ifc* | ifort*)                  # Intel Fortran compiler
7980           tmp_addflag=' -nofor_main' ;;
7981         esac
7982         case `$CC -V 2>&1 | sed 5q` in
7983         *Sun\ C*)                       # Sun C 5.9
7984           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7985           compiler_needs_object=yes
7986           tmp_sharedflag='-G' ;;
7987         *Sun\ F*)                       # Sun Fortran 8.3
7988           tmp_sharedflag='-G' ;;
7989         *)
7990           tmp_sharedflag='-shared' ;;
7991         esac
7992         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7993
7994         if test "x$supports_anon_versioning" = xyes; then
7995           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7996             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7997             echo "local: *; };" >> $output_objdir/$libname.ver~
7998             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7999         fi
8000       else
8001         ld_shlibs=no
8002       fi
8003       ;;
8004
8005     netbsd*)
8006       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8007         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8008         wlarc=
8009       else
8010         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8011         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8012       fi
8013       ;;
8014
8015     solaris*)
8016       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8017         ld_shlibs=no
8018         cat <<_LT_EOF 1>&2
8019
8020 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8021 *** create shared libraries on Solaris systems.  Therefore, libtool
8022 *** is disabling shared libraries support.  We urge you to upgrade GNU
8023 *** binutils to release 2.9.1 or newer.  Another option is to modify
8024 *** your PATH or compiler configuration so that the native linker is
8025 *** used, and then restart.
8026
8027 _LT_EOF
8028       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8029         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8030         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8031       else
8032         ld_shlibs=no
8033       fi
8034       ;;
8035
8036     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8037       case `$LD -v 2>&1` in
8038         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8039         ld_shlibs=no
8040         cat <<_LT_EOF 1>&2
8041
8042 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8043 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8044 *** is disabling shared libraries support.  We urge you to upgrade GNU
8045 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8046 *** your PATH or compiler configuration so that the native linker is
8047 *** used, and then restart.
8048
8049 _LT_EOF
8050         ;;
8051         *)
8052           # For security reasons, it is highly recommended that you always
8053           # use absolute paths for naming shared libraries, and exclude the
8054           # DT_RUNPATH tag from executables and libraries.  But doing so
8055           # requires that you compile everything twice, which is a pain.
8056           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8057             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8058             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8059             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8060           else
8061             ld_shlibs=no
8062           fi
8063         ;;
8064       esac
8065       ;;
8066
8067     sunos4*)
8068       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8069       wlarc=
8070       hardcode_direct=yes
8071       hardcode_shlibpath_var=no
8072       ;;
8073
8074     *)
8075       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8076         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8077         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8078       else
8079         ld_shlibs=no
8080       fi
8081       ;;
8082     esac
8083
8084     if test "$ld_shlibs" = no; then
8085       runpath_var=
8086       hardcode_libdir_flag_spec=
8087       export_dynamic_flag_spec=
8088       whole_archive_flag_spec=
8089     fi
8090   else
8091     # PORTME fill in a description of your system's linker (not GNU ld)
8092     case $host_os in
8093     aix3*)
8094       allow_undefined_flag=unsupported
8095       always_export_symbols=yes
8096       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8097       # Note: this linker hardcodes the directories in LIBPATH if there
8098       # are no directories specified by -L.
8099       hardcode_minus_L=yes
8100       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8101         # Neither direct hardcoding nor static linking is supported with a
8102         # broken collect2.
8103         hardcode_direct=unsupported
8104       fi
8105       ;;
8106
8107     aix4* | aix5*)
8108       if test "$host_cpu" = ia64; then
8109         # On IA64, the linker does run time linking by default, so we don't
8110         # have to do anything special.
8111         aix_use_runtimelinking=no
8112         exp_sym_flag='-Bexport'
8113         no_entry_flag=""
8114       else
8115         # If we're using GNU nm, then we don't want the "-C" option.
8116         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8117         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8118           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8119         else
8120           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8121         fi
8122         aix_use_runtimelinking=no
8123
8124         # Test if we are trying to use run time linking or normal
8125         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8126         # need to do runtime linking.
8127         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8128           for ld_flag in $LDFLAGS; do
8129           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8130             aix_use_runtimelinking=yes
8131             break
8132           fi
8133           done
8134           ;;
8135         esac
8136
8137         exp_sym_flag='-bexport'
8138         no_entry_flag='-bnoentry'
8139       fi
8140
8141       # When large executables or shared objects are built, AIX ld can
8142       # have problems creating the table of contents.  If linking a library
8143       # or program results in "error TOC overflow" add -mminimal-toc to
8144       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8145       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8146
8147       archive_cmds=''
8148       hardcode_direct=yes
8149       hardcode_direct_absolute=yes
8150       hardcode_libdir_separator=':'
8151       link_all_deplibs=yes
8152       file_list_spec='${wl}-f,'
8153
8154       if test "$GCC" = yes; then
8155         case $host_os in aix4.[012]|aix4.[012].*)
8156         # We only want to do this on AIX 4.2 and lower, the check
8157         # below for broken collect2 doesn't work under 4.3+
8158           collect2name=`${CC} -print-prog-name=collect2`
8159           if test -f "$collect2name" &&
8160            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8161           then
8162           # We have reworked collect2
8163           :
8164           else
8165           # We have old collect2
8166           hardcode_direct=unsupported
8167           # It fails to find uninstalled libraries when the uninstalled
8168           # path is not listed in the libpath.  Setting hardcode_minus_L
8169           # to unsupported forces relinking
8170           hardcode_minus_L=yes
8171           hardcode_libdir_flag_spec='-L$libdir'
8172           hardcode_libdir_separator=
8173           fi
8174           ;;
8175         esac
8176         shared_flag='-shared'
8177         if test "$aix_use_runtimelinking" = yes; then
8178           shared_flag="$shared_flag "'${wl}-G'
8179         fi
8180       else
8181         # not using gcc
8182         if test "$host_cpu" = ia64; then
8183         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8184         # chokes on -Wl,-G. The following line is correct:
8185           shared_flag='-G'
8186         else
8187           if test "$aix_use_runtimelinking" = yes; then
8188             shared_flag='${wl}-G'
8189           else
8190             shared_flag='${wl}-bM:SRE'
8191           fi
8192         fi
8193       fi
8194
8195       # It seems that -bexpall does not export symbols beginning with
8196       # underscore (_), so it is better to generate a list of symbols to export.
8197       always_export_symbols=yes
8198       if test "$aix_use_runtimelinking" = yes; then
8199         # Warning - without using the other runtime loading flags (-brtl),
8200         # -berok will link without error, but may produce a broken library.
8201         allow_undefined_flag='-berok'
8202         # Determine the default libpath from the value encoded in an
8203         # empty executable.
8204         cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h.  */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h.  */
8210
8211 int
8212 main ()
8213 {
8214
8215   ;
8216   return 0;
8217 }
8218 _ACEOF
8219 rm -f conftest.$ac_objext conftest$ac_exeext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8221   (eval $ac_link) 2>conftest.er1
8222   ac_status=$?
8223   grep -v '^ *+' conftest.er1 >conftest.err
8224   rm -f conftest.er1
8225   cat conftest.err >&5
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); } &&
8228          { ac_try='test -z "$ac_c_werror_flag"
8229                          || test ! -s conftest.err'
8230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231   (eval $ac_try) 2>&5
8232   ac_status=$?
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); }; } &&
8235          { ac_try='test -s conftest$ac_exeext'
8236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237   (eval $ac_try) 2>&5
8238   ac_status=$?
8239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240   (exit $ac_status); }; }; then
8241
8242 lt_aix_libpath_sed='
8243     /Import File Strings/,/^$/ {
8244         /^0/ {
8245             s/^0  *\(.*\)$/\1/
8246             p
8247         }
8248     }'
8249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8250 # Check for a 64-bit object if we didn't find anything.
8251 if test -z "$aix_libpath"; then
8252   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8253 fi
8254 else
8255   echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8257
8258 fi
8259 rm -f conftest.err conftest.$ac_objext \
8260       conftest$ac_exeext conftest.$ac_ext
8261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8262
8263         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8264         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8265       else
8266         if test "$host_cpu" = ia64; then
8267           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8268           allow_undefined_flag="-z nodefs"
8269           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8270         else
8271          # Determine the default libpath from the value encoded in an
8272          # empty executable.
8273          cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279
8280 int
8281 main ()
8282 {
8283
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8290   (eval $ac_link) 2>conftest.er1
8291   ac_status=$?
8292   grep -v '^ *+' conftest.er1 >conftest.err
8293   rm -f conftest.er1
8294   cat conftest.err >&5
8295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); } &&
8297          { ac_try='test -z "$ac_c_werror_flag"
8298                          || test ! -s conftest.err'
8299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300   (eval $ac_try) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; } &&
8304          { ac_try='test -s conftest$ac_exeext'
8305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306   (eval $ac_try) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; }; then
8310
8311 lt_aix_libpath_sed='
8312     /Import File Strings/,/^$/ {
8313         /^0/ {
8314             s/^0  *\(.*\)$/\1/
8315             p
8316         }
8317     }'
8318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8319 # Check for a 64-bit object if we didn't find anything.
8320 if test -z "$aix_libpath"; then
8321   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8322 fi
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327 fi
8328 rm -f conftest.err conftest.$ac_objext \
8329       conftest$ac_exeext conftest.$ac_ext
8330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8331
8332          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8333           # Warning - without using the other run time loading flags,
8334           # -berok will link without error, but may produce a broken library.
8335           no_undefined_flag=' ${wl}-bernotok'
8336           allow_undefined_flag=' ${wl}-berok'
8337           # Exported symbols can be pulled into shared objects from archives
8338           whole_archive_flag_spec='$convenience'
8339           archive_cmds_need_lc=yes
8340           # This is similar to how AIX traditionally builds its shared libraries.
8341           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8342         fi
8343       fi
8344       ;;
8345
8346     amigaos*)
8347       if test "$host_cpu" = m68k; then
8348         archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8349         hardcode_libdir_flag_spec='-L$libdir'
8350         hardcode_minus_L=yes
8351       fi
8352       # see comment about different semantics on the GNU ld section
8353       ld_shlibs=no
8354       ;;
8355
8356     bsdi[45]*)
8357       export_dynamic_flag_spec=-rdynamic
8358       ;;
8359
8360     cygwin* | mingw* | pw32*)
8361       # When not using gcc, we currently assume that we are using
8362       # Microsoft Visual C++.
8363       # hardcode_libdir_flag_spec is actually meaningless, as there is
8364       # no search path for DLLs.
8365       hardcode_libdir_flag_spec=' '
8366       allow_undefined_flag=unsupported
8367       # Tell ltmain to make .lib files, not .a files.
8368       libext=lib
8369       # Tell ltmain to make .dll files, not .so files.
8370       shrext_cmds=".dll"
8371       # FIXME: Setting linknames here is a bad hack.
8372       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8373       # The linker will automatically build a .lib file if we build a DLL.
8374       old_archive_from_new_cmds='true'
8375       # FIXME: Should let the user specify the lib program.
8376       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8377       fix_srcfile_path='`cygpath -w "$srcfile"`'
8378       enable_shared_with_static_runtimes=yes
8379       ;;
8380
8381     darwin* | rhapsody*)
8382       case $host_os in
8383       rhapsody* | darwin1.[012])
8384         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8385         ;;
8386       *) # Darwin 1.3 on
8387         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8388         10.[012])
8389           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8390           ;;
8391         10.*)
8392           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8393           ;;
8394         esac
8395         ;;
8396       esac
8397       archive_cmds_need_lc=no
8398       hardcode_direct=no
8399       hardcode_automatic=yes
8400       hardcode_shlibpath_var=unsupported
8401       whole_archive_flag_spec=''
8402       link_all_deplibs=yes
8403       if test "$GCC" = yes ; then
8404         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8405   echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407   lt_cv_apple_cc_single_mod=no
8408         if test -z "${LT_MULTI_MODULE}"; then
8409           # By default we will add the -single_module flag. You can override
8410           # by either setting the environment variable LT_MULTI_MODULE
8411           # non-empty at configure time, or by adding -multi-module to the
8412           # link flags.
8413           echo "int foo(void){return 1;}" > conftest.c
8414           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8415               -dynamiclib ${wl}-single_module conftest.c
8416           if test -f libconftest.dylib; then
8417               lt_cv_apple_cc_single_mod=yes
8418               rm libconftest.dylib
8419           fi
8420           rm conftest.$ac_ext
8421         fi
8422 fi
8423
8424         output_verbose_link_cmd=echo
8425         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8426           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8427           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8428         else
8429           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8430           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8431         fi
8432         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8433         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8434       else
8435         case $cc_basename in
8436         xlc*)
8437           output_verbose_link_cmd=echo
8438           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8439           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8440           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8441           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8442           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8443           ;;
8444         *)
8445           ld_shlibs=no
8446           ;;
8447         esac
8448       fi
8449       ;;
8450
8451     dgux*)
8452       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8453       hardcode_libdir_flag_spec='-L$libdir'
8454       hardcode_shlibpath_var=no
8455       ;;
8456
8457     freebsd1*)
8458       ld_shlibs=no
8459       ;;
8460
8461     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8462     # support.  Future versions do this automatically, but an explicit c++rt0.o
8463     # does not break anything, and helps significantly (at the cost of a little
8464     # extra space).
8465     freebsd2.2*)
8466       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8467       hardcode_libdir_flag_spec='-R$libdir'
8468       hardcode_direct=yes
8469       hardcode_shlibpath_var=no
8470       ;;
8471
8472     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8473     freebsd2*)
8474       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8475       hardcode_direct=yes
8476       hardcode_minus_L=yes
8477       hardcode_shlibpath_var=no
8478       ;;
8479
8480     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8481     freebsd* | dragonfly*)
8482       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8483       hardcode_libdir_flag_spec='-R$libdir'
8484       hardcode_direct=yes
8485       hardcode_shlibpath_var=no
8486       ;;
8487
8488     hpux9*)
8489       if test "$GCC" = yes; then
8490         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8491       else
8492         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8493       fi
8494       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8495       hardcode_libdir_separator=:
8496       hardcode_direct=yes
8497
8498       # hardcode_minus_L: Not really in the search PATH,
8499       # but as the default location of the library.
8500       hardcode_minus_L=yes
8501       export_dynamic_flag_spec='${wl}-E'
8502       ;;
8503
8504     hpux10*)
8505       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8506         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8507       else
8508         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8509       fi
8510       if test "$with_gnu_ld" = no; then
8511         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8512         hardcode_libdir_flag_spec_ld='+b $libdir'
8513         hardcode_libdir_separator=:
8514         hardcode_direct=yes
8515         hardcode_direct_absolute=yes
8516         export_dynamic_flag_spec='${wl}-E'
8517         # hardcode_minus_L: Not really in the search PATH,
8518         # but as the default location of the library.
8519         hardcode_minus_L=yes
8520       fi
8521       ;;
8522
8523     hpux11*)
8524       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8525         case $host_cpu in
8526         hppa*64*)
8527           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8528           ;;
8529         ia64*)
8530           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8531           ;;
8532         *)
8533           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8534           ;;
8535         esac
8536       else
8537         case $host_cpu in
8538         hppa*64*)
8539           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8540           ;;
8541         ia64*)
8542           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8543           ;;
8544         *)
8545           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8546           ;;
8547         esac
8548       fi
8549       if test "$with_gnu_ld" = no; then
8550         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8551         hardcode_libdir_separator=:
8552
8553         case $host_cpu in
8554         hppa*64*|ia64*)
8555           hardcode_direct=no
8556           hardcode_shlibpath_var=no
8557           ;;
8558         *)
8559           hardcode_direct=yes
8560           hardcode_direct_absolute=yes
8561           export_dynamic_flag_spec='${wl}-E'
8562
8563           # hardcode_minus_L: Not really in the search PATH,
8564           # but as the default location of the library.
8565           hardcode_minus_L=yes
8566           ;;
8567         esac
8568       fi
8569       ;;
8570
8571     irix5* | irix6* | nonstopux*)
8572       if test "$GCC" = yes; then
8573         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8574         # Try to use the -exported_symbol ld option, if it does not
8575         # work, assume that -exports_file does not work either and
8576         # implicitly export all symbols.
8577         save_LDFLAGS="$LDFLAGS"
8578         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8579         cat >conftest.$ac_ext <<_ACEOF
8580 int foo(void) {}
8581 _ACEOF
8582 rm -f conftest.$ac_objext conftest$ac_exeext
8583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8584   (eval $ac_link) 2>conftest.er1
8585   ac_status=$?
8586   grep -v '^ *+' conftest.er1 >conftest.err
8587   rm -f conftest.er1
8588   cat conftest.err >&5
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); } &&
8591          { ac_try='test -z "$ac_c_werror_flag"
8592                          || test ! -s conftest.err'
8593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594   (eval $ac_try) 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); }; } &&
8598          { ac_try='test -s conftest$ac_exeext'
8599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600   (eval $ac_try) 2>&5
8601   ac_status=$?
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); }; }; then
8604   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8605
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 fi
8611 rm -f conftest.err conftest.$ac_objext \
8612       conftest$ac_exeext conftest.$ac_ext
8613         LDFLAGS="$save_LDFLAGS"
8614       else
8615         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8616         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8617       fi
8618       archive_cmds_need_lc='no'
8619       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8620       hardcode_libdir_separator=:
8621       inherit_rpath=yes
8622       link_all_deplibs=yes
8623       ;;
8624
8625     netbsd*)
8626       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8627         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8628       else
8629         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8630       fi
8631       hardcode_libdir_flag_spec='-R$libdir'
8632       hardcode_direct=yes
8633       hardcode_shlibpath_var=no
8634       ;;
8635
8636     newsos6)
8637       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8638       hardcode_direct=yes
8639       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8640       hardcode_libdir_separator=:
8641       hardcode_shlibpath_var=no
8642       ;;
8643
8644     *nto* | *qnx*)
8645       ;;
8646
8647     openbsd*)
8648       hardcode_direct=yes
8649       hardcode_shlibpath_var=no
8650       hardcode_direct_absolute=yes
8651       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8652         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8653         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8654         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8655         export_dynamic_flag_spec='${wl}-E'
8656       else
8657         case $host_os in
8658         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8659           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8660           hardcode_libdir_flag_spec='-R$libdir'
8661           ;;
8662         *)
8663           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8664           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8665           ;;
8666         esac
8667       fi
8668       ;;
8669
8670     os2*)
8671       hardcode_libdir_flag_spec='-L$libdir'
8672       hardcode_minus_L=yes
8673       allow_undefined_flag=unsupported
8674       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8675       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8676       ;;
8677
8678     osf3*)
8679       if test "$GCC" = yes; then
8680         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8681         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8682       else
8683         allow_undefined_flag=' -expect_unresolved \*'
8684         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8685       fi
8686       archive_cmds_need_lc='no'
8687       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8688       hardcode_libdir_separator=:
8689       ;;
8690
8691     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8692       if test "$GCC" = yes; then
8693         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8694         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8695         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8696       else
8697         allow_undefined_flag=' -expect_unresolved \*'
8698         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8699         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8700         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8701
8702         # Both c and cxx compiler support -rpath directly
8703         hardcode_libdir_flag_spec='-rpath $libdir'
8704       fi
8705       archive_cmds_need_lc='no'
8706       hardcode_libdir_separator=:
8707       ;;
8708
8709     solaris*)
8710       no_undefined_flag=' -z defs'
8711       if test "$GCC" = yes; then
8712         wlarc='${wl}'
8713         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8715           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8716       else
8717         case `$CC -V 2>&1` in
8718         *"Compilers 5.0"*)
8719           wlarc=''
8720           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8721           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8722           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8723           ;;
8724         *)
8725           wlarc='${wl}'
8726           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8727           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8728           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8729           ;;
8730         esac
8731       fi
8732       hardcode_libdir_flag_spec='-R$libdir'
8733       hardcode_shlibpath_var=no
8734       case $host_os in
8735       solaris2.[0-5] | solaris2.[0-5].*) ;;
8736       *)
8737         # The compiler driver will combine and reorder linker options,
8738         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8739         # but is careful enough not to reorder.
8740         # Supported since Solaris 2.6 (maybe 2.5.1?)
8741         if test "$GCC" = yes; then
8742           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8743         else
8744           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8745         fi
8746         ;;
8747       esac
8748       link_all_deplibs=yes
8749       ;;
8750
8751     sunos4*)
8752       if test "x$host_vendor" = xsequent; then
8753         # Use $CC to link under sequent, because it throws in some extra .o
8754         # files that make .init and .fini sections work.
8755         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8756       else
8757         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8758       fi
8759       hardcode_libdir_flag_spec='-L$libdir'
8760       hardcode_direct=yes
8761       hardcode_minus_L=yes
8762       hardcode_shlibpath_var=no
8763       ;;
8764
8765     sysv4)
8766       case $host_vendor in
8767         sni)
8768           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8769           hardcode_direct=yes # is this really true???
8770         ;;
8771         siemens)
8772           ## LD is ld it makes a PLAMLIB
8773           ## CC just makes a GrossModule.
8774           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8775           reload_cmds='$CC -r -o $output$reload_objs'
8776           hardcode_direct=no
8777         ;;
8778         motorola)
8779           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8781         ;;
8782       esac
8783       runpath_var='LD_RUN_PATH'
8784       hardcode_shlibpath_var=no
8785       ;;
8786
8787     sysv4.3*)
8788       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8789       hardcode_shlibpath_var=no
8790       export_dynamic_flag_spec='-Bexport'
8791       ;;
8792
8793     sysv4*MP*)
8794       if test -d /usr/nec; then
8795         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8796         hardcode_shlibpath_var=no
8797         runpath_var=LD_RUN_PATH
8798         hardcode_runpath_var=yes
8799         ld_shlibs=yes
8800       fi
8801       ;;
8802
8803     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8804       no_undefined_flag='${wl}-z,text'
8805       archive_cmds_need_lc=no
8806       hardcode_shlibpath_var=no
8807       runpath_var='LD_RUN_PATH'
8808
8809       if test "$GCC" = yes; then
8810         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8811         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8812       else
8813         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8814         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8815       fi
8816       ;;
8817
8818     sysv5* | sco3.2v5* | sco5v6*)
8819       # Note: We can NOT use -z defs as we might desire, because we do not
8820       # link with -lc, and that would cause any symbols used from libc to
8821       # always be unresolved, which means just about no library would
8822       # ever link correctly.  If we're not using GNU ld we use -z text
8823       # though, which does catch some bad symbols but isn't as heavy-handed
8824       # as -z defs.
8825       no_undefined_flag='${wl}-z,text'
8826       allow_undefined_flag='${wl}-z,nodefs'
8827       archive_cmds_need_lc=no
8828       hardcode_shlibpath_var=no
8829       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8830       hardcode_libdir_separator=':'
8831       link_all_deplibs=yes
8832       export_dynamic_flag_spec='${wl}-Bexport'
8833       runpath_var='LD_RUN_PATH'
8834
8835       if test "$GCC" = yes; then
8836         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8837         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8838       else
8839         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8840         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8841       fi
8842       ;;
8843
8844     uts4*)
8845       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8846       hardcode_libdir_flag_spec='-L$libdir'
8847       hardcode_shlibpath_var=no
8848       ;;
8849
8850     *)
8851       ld_shlibs=no
8852       ;;
8853     esac
8854
8855     if test x$host_vendor = xsni; then
8856       case $host in
8857       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8858         export_dynamic_flag_spec='${wl}-Blargedynsym'
8859         ;;
8860       esac
8861     fi
8862   fi
8863
8864 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8865 echo "${ECHO_T}$ld_shlibs" >&6
8866 test "$ld_shlibs" = no && can_build_shared=no
8867
8868 with_gnu_ld=$with_gnu_ld
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884 #
8885 # Do we need to explicitly link libc?
8886 #
8887 case "x$archive_cmds_need_lc" in
8888 x|xyes)
8889   # Assume -lc should be added
8890   archive_cmds_need_lc=yes
8891
8892   if test "$enable_shared" = yes && test "$GCC" = yes; then
8893     case $archive_cmds in
8894     *'~'*)
8895       # FIXME: we may have to deal with multi-command sequences.
8896       ;;
8897     '$CC '*)
8898       # Test whether the compiler implicitly links with -lc since on some
8899       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8900       # to ld, don't add -lc before -lgcc.
8901       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8902 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8903       $RM conftest*
8904       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8905
8906       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8907   (eval $ac_compile) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); } 2>conftest.err; then
8911         soname=conftest
8912         lib=conftest
8913         libobjs=conftest.$ac_objext
8914         deplibs=
8915         wl=$lt_prog_compiler_wl
8916         pic_flag=$lt_prog_compiler_pic
8917         compiler_flags=-v
8918         linker_flags=-v
8919         verstring=
8920         output_objdir=.
8921         libname=conftest
8922         lt_save_allow_undefined_flag=$allow_undefined_flag
8923         allow_undefined_flag=
8924         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8925   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8926   ac_status=$?
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); }
8929         then
8930           archive_cmds_need_lc=no
8931         else
8932           archive_cmds_need_lc=yes
8933         fi
8934         allow_undefined_flag=$lt_save_allow_undefined_flag
8935       else
8936         cat conftest.err 1>&5
8937       fi
8938       $RM conftest*
8939       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8940 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8941       ;;
8942     esac
8943   fi
8944   ;;
8945 esac
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9104 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9105 withGCC=$GCC
9106 if test "$withGCC" = yes; then
9107   case $host_os in
9108     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9109     *) lt_awk_arg="/^libraries:/" ;;
9110   esac
9111   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9112   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9113     # if the path contains ";" then we assume it to be the separator
9114     # otherwise default to the standard path separator (i.e. ":") - it is
9115     # assumed that no part of a normal pathname contains ";" but that should
9116     # okay in the real world where ";" in dirpaths is itself problematic.
9117     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9118   else
9119     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9120   fi
9121   # Ok, now we have the path, separated by spaces, we can step through it
9122   # and add multilib dir if necessary.
9123   lt_tmp_lt_search_path_spec=
9124   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9125   for lt_sys_path in $lt_search_path_spec; do
9126     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9127       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9128     else
9129       test -d "$lt_sys_path" && \
9130         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9131     fi
9132   done
9133   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9134 BEGIN {RS=" "; FS="/|\n";} {
9135   lt_foo="";
9136   lt_count=0;
9137   for (lt_i = NF; lt_i > 0; lt_i--) {
9138     if ($lt_i != "" && $lt_i != ".") {
9139       if ($lt_i == "..") {
9140         lt_count++;
9141       } else {
9142         if (lt_count == 0) {
9143           lt_foo="/" $lt_i lt_foo;
9144         } else {
9145           lt_count--;
9146         }
9147       }
9148     }
9149   }
9150   if (lt_foo != "") { lt_freq[lt_foo]++; }
9151   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9152 }'`
9153   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9154 else
9155   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9156 fi
9157 library_names_spec=
9158 libname_spec='lib$name'
9159 soname_spec=
9160 shrext_cmds=".so"
9161 postinstall_cmds=
9162 postuninstall_cmds=
9163 finish_cmds=
9164 finish_eval=
9165 shlibpath_var=
9166 shlibpath_overrides_runpath=unknown
9167 version_type=none
9168 dynamic_linker="$host_os ld.so"
9169 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9170 need_lib_prefix=unknown
9171 hardcode_into_libs=no
9172
9173 # when you set need_version to no, make sure it does not cause -set_version
9174 # flags to be left without arguments
9175 need_version=unknown
9176
9177 case $host_os in
9178 aix3*)
9179   version_type=linux
9180   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9181   shlibpath_var=LIBPATH
9182
9183   # AIX 3 has no versioning support, so we append a major version to the name.
9184   soname_spec='${libname}${release}${shared_ext}$major'
9185   ;;
9186
9187 aix4* | aix5*)
9188   version_type=linux
9189   need_lib_prefix=no
9190   need_version=no
9191   hardcode_into_libs=yes
9192   if test "$host_cpu" = ia64; then
9193     # AIX 5 supports IA64
9194     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9195     shlibpath_var=LD_LIBRARY_PATH
9196   else
9197     # With GCC up to 2.95.x, collect2 would create an import file
9198     # for dependence libraries.  The import file would start with
9199     # the line `#! .'.  This would cause the generated library to
9200     # depend on `.', always an invalid library.  This was fixed in
9201     # development snapshots of GCC prior to 3.0.
9202     case $host_os in
9203       aix4 | aix4.[01] | aix4.[01].*)
9204       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9205            echo ' yes '
9206            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9207         :
9208       else
9209         can_build_shared=no
9210       fi
9211       ;;
9212     esac
9213     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9214     # soname into executable. Probably we can add versioning support to
9215     # collect2, so additional links can be useful in future.
9216     if test "$aix_use_runtimelinking" = yes; then
9217       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9218       # instead of lib<name>.a to let people know that these are not
9219       # typical AIX shared libraries.
9220       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221     else
9222       # We preserve .a as extension for shared libraries through AIX4.2
9223       # and later when we are not doing run time linking.
9224       library_names_spec='${libname}${release}.a $libname.a'
9225       soname_spec='${libname}${release}${shared_ext}$major'
9226     fi
9227     shlibpath_var=LIBPATH
9228   fi
9229   ;;
9230
9231 amigaos*)
9232   if test "$host_cpu" = m68k; then
9233     library_names_spec='$libname.ixlibrary $libname.a'
9234     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9235     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9236   else
9237     dynamic_linker=no
9238   fi
9239   ;;
9240
9241 beos*)
9242   library_names_spec='${libname}${shared_ext}'
9243   dynamic_linker="$host_os ld.so"
9244   shlibpath_var=LIBRARY_PATH
9245   ;;
9246
9247 bsdi[45]*)
9248   version_type=linux
9249   need_version=no
9250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251   soname_spec='${libname}${release}${shared_ext}$major'
9252   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9253   shlibpath_var=LD_LIBRARY_PATH
9254   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9255   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9256   # the default ld.so.conf also contains /usr/contrib/lib and
9257   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9258   # libtool to hard-code these into programs
9259   ;;
9260
9261 cygwin* | mingw* | pw32*)
9262   version_type=windows
9263   shrext_cmds=".dll"
9264   need_version=no
9265   need_lib_prefix=no
9266
9267   case $withGCC,$host_os in
9268   yes,cygwin* | yes,mingw* | yes,pw32*)
9269     library_names_spec='$libname.dll.a'
9270     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9271     postinstall_cmds='base_file=`basename \${file}`~
9272       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9273       dldir=$destdir/`dirname \$dlpath`~
9274       test -d \$dldir || mkdir -p \$dldir~
9275       $install_prog $dir/$dlname \$dldir/$dlname~
9276       chmod a+x \$dldir/$dlname~
9277       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9278         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9279       fi'
9280     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9281       dlpath=$dir/\$dldll~
9282        $RM \$dlpath'
9283     shlibpath_overrides_runpath=yes
9284
9285     case $host_os in
9286     cygwin*)
9287       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9288       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9289       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9290       ;;
9291     mingw*)
9292       # MinGW DLLs use traditional 'lib' prefix
9293       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9294       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9295       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9296         # It is most probably a Windows format PATH printed by
9297         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9298         # path with ; separators, and with drive letters. We can handle the
9299         # drive letters (cygwin fileutils understands them), so leave them,
9300         # especially as we might pass files found there to a mingw objdump,
9301         # which wouldn't understand a cygwinified path. Ahh.
9302         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9303       else
9304         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9305       fi
9306       ;;
9307     pw32*)
9308       # pw32 DLLs use 'pw' prefix rather than 'lib'
9309       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9310       ;;
9311     esac
9312     ;;
9313
9314   *)
9315     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9316     ;;
9317   esac
9318   dynamic_linker='Win32 ld.exe'
9319   # FIXME: first we should search . and the directory the executable is in
9320   shlibpath_var=PATH
9321   ;;
9322
9323 darwin* | rhapsody*)
9324   dynamic_linker="$host_os dyld"
9325   version_type=darwin
9326   need_lib_prefix=no
9327   need_version=no
9328   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9329   soname_spec='${libname}${release}${major}$shared_ext'
9330   shlibpath_overrides_runpath=yes
9331   shlibpath_var=DYLD_LIBRARY_PATH
9332   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9333
9334   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9335   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9336   ;;
9337
9338 dgux*)
9339   version_type=linux
9340   need_lib_prefix=no
9341   need_version=no
9342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9343   soname_spec='${libname}${release}${shared_ext}$major'
9344   shlibpath_var=LD_LIBRARY_PATH
9345   ;;
9346
9347 freebsd1*)
9348   dynamic_linker=no
9349   ;;
9350
9351 freebsd* | dragonfly*)
9352   # DragonFly does not have aout.  When/if they implement a new
9353   # versioning mechanism, adjust this.
9354   if test -x /usr/bin/objformat; then
9355     objformat=`/usr/bin/objformat`
9356   else
9357     case $host_os in
9358     freebsd[123]*) objformat=aout ;;
9359     *) objformat=elf ;;
9360     esac
9361   fi
9362   version_type=freebsd-$objformat
9363   case $version_type in
9364     freebsd-elf*)
9365       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9366       need_version=no
9367       need_lib_prefix=no
9368       ;;
9369     freebsd-*)
9370       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9371       need_version=yes
9372       ;;
9373   esac
9374   shlibpath_var=LD_LIBRARY_PATH
9375   case $host_os in
9376   freebsd2*)
9377     shlibpath_overrides_runpath=yes
9378     ;;
9379   freebsd3.[01]* | freebsdelf3.[01]*)
9380     shlibpath_overrides_runpath=yes
9381     hardcode_into_libs=yes
9382     ;;
9383   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9384   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9385     shlibpath_overrides_runpath=no
9386     hardcode_into_libs=yes
9387     ;;
9388   *) # from 4.6 on, and DragonFly
9389     shlibpath_overrides_runpath=yes
9390     hardcode_into_libs=yes
9391     ;;
9392   esac
9393   ;;
9394
9395 gnu*)
9396   version_type=linux
9397   need_lib_prefix=no
9398   need_version=no
9399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9400   soname_spec='${libname}${release}${shared_ext}$major'
9401   shlibpath_var=LD_LIBRARY_PATH
9402   hardcode_into_libs=yes
9403   ;;
9404
9405 hpux9* | hpux10* | hpux11*)
9406   # Give a soname corresponding to the major version so that dld.sl refuses to
9407   # link against other versions.
9408   version_type=sunos
9409   need_lib_prefix=no
9410   need_version=no
9411   case $host_cpu in
9412   ia64*)
9413     shrext_cmds='.so'
9414     hardcode_into_libs=yes
9415     dynamic_linker="$host_os dld.so"
9416     shlibpath_var=LD_LIBRARY_PATH
9417     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419     soname_spec='${libname}${release}${shared_ext}$major'
9420     if test "X$HPUX_IA64_MODE" = X32; then
9421       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9422     else
9423       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9424     fi
9425     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9426     ;;
9427   hppa*64*)
9428     shrext_cmds='.sl'
9429     hardcode_into_libs=yes
9430     dynamic_linker="$host_os dld.sl"
9431     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9432     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434     soname_spec='${libname}${release}${shared_ext}$major'
9435     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9436     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9437     ;;
9438   *)
9439     shrext_cmds='.sl'
9440     dynamic_linker="$host_os dld.sl"
9441     shlibpath_var=SHLIB_PATH
9442     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9444     soname_spec='${libname}${release}${shared_ext}$major'
9445     ;;
9446   esac
9447   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9448   postinstall_cmds='chmod 555 $lib'
9449   ;;
9450
9451 interix[3-9]*)
9452   version_type=linux
9453   need_lib_prefix=no
9454   need_version=no
9455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9456   soname_spec='${libname}${release}${shared_ext}$major'
9457   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9458   shlibpath_var=LD_LIBRARY_PATH
9459   shlibpath_overrides_runpath=no
9460   hardcode_into_libs=yes
9461   ;;
9462
9463 irix5* | irix6* | nonstopux*)
9464   case $host_os in
9465     nonstopux*) version_type=nonstopux ;;
9466     *)
9467         if test "$lt_cv_prog_gnu_ld" = yes; then
9468                 version_type=linux
9469         else
9470                 version_type=irix
9471         fi ;;
9472   esac
9473   need_lib_prefix=no
9474   need_version=no
9475   soname_spec='${libname}${release}${shared_ext}$major'
9476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9477   case $host_os in
9478   irix5* | nonstopux*)
9479     libsuff= shlibsuff=
9480     ;;
9481   *)
9482     case $LD in # libtool.m4 will add one of these switches to LD
9483     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9484       libsuff= shlibsuff= libmagic=32-bit;;
9485     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9486       libsuff=32 shlibsuff=N32 libmagic=N32;;
9487     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9488       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9489     *) libsuff= shlibsuff= libmagic=never-match;;
9490     esac
9491     ;;
9492   esac
9493   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9494   shlibpath_overrides_runpath=no
9495   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9496   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9497   hardcode_into_libs=yes
9498   ;;
9499
9500 # No shared lib support for Linux oldld, aout, or coff.
9501 linux*oldld* | linux*aout* | linux*coff*)
9502   dynamic_linker=no
9503   ;;
9504
9505 # This must be Linux ELF.
9506 linux* | k*bsd*-gnu)
9507   version_type=linux
9508   need_lib_prefix=no
9509   need_version=no
9510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9511   soname_spec='${libname}${release}${shared_ext}$major'
9512   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9513   shlibpath_var=LD_LIBRARY_PATH
9514   shlibpath_overrides_runpath=no
9515   # Some binutils ld are patched to set DT_RUNPATH
9516   save_LDFLAGS=$LDFLAGS
9517   save_libdir=$libdir
9518   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9519        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9520   cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h.  */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h.  */
9526
9527 int
9528 main ()
9529 {
9530
9531   ;
9532   return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537   (eval $ac_link) 2>conftest.er1
9538   ac_status=$?
9539   grep -v '^ *+' conftest.er1 >conftest.err
9540   rm -f conftest.er1
9541   cat conftest.err >&5
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); } &&
9544          { ac_try='test -z "$ac_c_werror_flag"
9545                          || test ! -s conftest.err'
9546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547   (eval $ac_try) 2>&5
9548   ac_status=$?
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); }; } &&
9551          { ac_try='test -s conftest$ac_exeext'
9552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553   (eval $ac_try) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); }; }; then
9557   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9558   shlibpath_overrides_runpath=yes
9559 fi
9560
9561 else
9562   echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9564
9565 fi
9566 rm -f conftest.err conftest.$ac_objext \
9567       conftest$ac_exeext conftest.$ac_ext
9568   LDFLAGS=$save_LDFLAGS
9569   libdir=$save_libdir
9570
9571   # This implies no fast_install, which is unacceptable.
9572   # Some rework will be needed to allow for fast_install
9573   # before this can be enabled.
9574   hardcode_into_libs=yes
9575
9576   # Append ld.so.conf contents to the search path
9577   if test -f /etc/ld.so.conf; then
9578     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9579     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9580   fi
9581
9582   # We used to test for /lib/ld.so.1 and disable shared libraries on
9583   # powerpc, because MkLinux only supported shared libraries with the
9584   # GNU dynamic linker.  Since this was broken with cross compilers,
9585   # most powerpc-linux boxes support dynamic linking these days and
9586   # people can always --disable-shared, the test was removed, and we
9587   # assume the GNU/Linux dynamic linker is in use.
9588   dynamic_linker='GNU/Linux ld.so'
9589   ;;
9590
9591 netbsd*)
9592   version_type=sunos
9593   need_lib_prefix=no
9594   need_version=no
9595   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9596     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9597     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9598     dynamic_linker='NetBSD (a.out) ld.so'
9599   else
9600     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9601     soname_spec='${libname}${release}${shared_ext}$major'
9602     dynamic_linker='NetBSD ld.elf_so'
9603   fi
9604   shlibpath_var=LD_LIBRARY_PATH
9605   shlibpath_overrides_runpath=yes
9606   hardcode_into_libs=yes
9607   ;;
9608
9609 newsos6)
9610   version_type=linux
9611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612   shlibpath_var=LD_LIBRARY_PATH
9613   shlibpath_overrides_runpath=yes
9614   ;;
9615
9616 *nto* | *qnx*)
9617   version_type=qnx
9618   need_lib_prefix=no
9619   need_version=no
9620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9621   soname_spec='${libname}${release}${shared_ext}$major'
9622   shlibpath_var=LD_LIBRARY_PATH
9623   shlibpath_overrides_runpath=no
9624   hardcode_into_libs=yes
9625   dynamic_linker='ldqnx.so'
9626   ;;
9627
9628 openbsd*)
9629   version_type=sunos
9630   sys_lib_dlsearch_path_spec="/usr/lib"
9631   need_lib_prefix=no
9632   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9633   case $host_os in
9634     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9635     *)                          need_version=no  ;;
9636   esac
9637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639   shlibpath_var=LD_LIBRARY_PATH
9640   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9641     case $host_os in
9642       openbsd2.[89] | openbsd2.[89].*)
9643         shlibpath_overrides_runpath=no
9644         ;;
9645       *)
9646         shlibpath_overrides_runpath=yes
9647         ;;
9648       esac
9649   else
9650     shlibpath_overrides_runpath=yes
9651   fi
9652   ;;
9653
9654 os2*)
9655   libname_spec='$name'
9656   shrext_cmds=".dll"
9657   need_lib_prefix=no
9658   library_names_spec='$libname${shared_ext} $libname.a'
9659   dynamic_linker='OS/2 ld.exe'
9660   shlibpath_var=LIBPATH
9661   ;;
9662
9663 osf3* | osf4* | osf5*)
9664   version_type=osf
9665   need_lib_prefix=no
9666   need_version=no
9667   soname_spec='${libname}${release}${shared_ext}$major'
9668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669   shlibpath_var=LD_LIBRARY_PATH
9670   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9671   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9672   ;;
9673
9674 rdos*)
9675   dynamic_linker=no
9676   ;;
9677
9678 solaris*)
9679   version_type=linux
9680   need_lib_prefix=no
9681   need_version=no
9682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683   soname_spec='${libname}${release}${shared_ext}$major'
9684   shlibpath_var=LD_LIBRARY_PATH
9685   shlibpath_overrides_runpath=yes
9686   hardcode_into_libs=yes
9687   # ldd complains unless libraries are executable
9688   postinstall_cmds='chmod +x $lib'
9689   ;;
9690
9691 sunos4*)
9692   version_type=sunos
9693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9694   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9695   shlibpath_var=LD_LIBRARY_PATH
9696   shlibpath_overrides_runpath=yes
9697   if test "$with_gnu_ld" = yes; then
9698     need_lib_prefix=no
9699   fi
9700   need_version=yes
9701   ;;
9702
9703 sysv4 | sysv4.3*)
9704   version_type=linux
9705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706   soname_spec='${libname}${release}${shared_ext}$major'
9707   shlibpath_var=LD_LIBRARY_PATH
9708   case $host_vendor in
9709     sni)
9710       shlibpath_overrides_runpath=no
9711       need_lib_prefix=no
9712       runpath_var=LD_RUN_PATH
9713       ;;
9714     siemens)
9715       need_lib_prefix=no
9716       ;;
9717     motorola)
9718       need_lib_prefix=no
9719       need_version=no
9720       shlibpath_overrides_runpath=no
9721       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9722       ;;
9723   esac
9724   ;;
9725
9726 sysv4*MP*)
9727   if test -d /usr/nec ;then
9728     version_type=linux
9729     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9730     soname_spec='$libname${shared_ext}.$major'
9731     shlibpath_var=LD_LIBRARY_PATH
9732   fi
9733   ;;
9734
9735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9736   version_type=freebsd-elf
9737   need_lib_prefix=no
9738   need_version=no
9739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9740   soname_spec='${libname}${release}${shared_ext}$major'
9741   shlibpath_var=LD_LIBRARY_PATH
9742   shlibpath_overrides_runpath=yes
9743   hardcode_into_libs=yes
9744   if test "$with_gnu_ld" = yes; then
9745     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9746   else
9747     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9748     case $host_os in
9749       sco3.2v5*)
9750         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9751         ;;
9752     esac
9753   fi
9754   sys_lib_dlsearch_path_spec='/usr/lib'
9755   ;;
9756
9757 tpf*)
9758   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9759   version_type=linux
9760   need_lib_prefix=no
9761   need_version=no
9762   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763   shlibpath_var=LD_LIBRARY_PATH
9764   shlibpath_overrides_runpath=no
9765   hardcode_into_libs=yes
9766   ;;
9767
9768 uts4*)
9769   version_type=linux
9770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771   soname_spec='${libname}${release}${shared_ext}$major'
9772   shlibpath_var=LD_LIBRARY_PATH
9773   ;;
9774
9775 *)
9776   dynamic_linker=no
9777   ;;
9778 esac
9779 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9780 echo "${ECHO_T}$dynamic_linker" >&6
9781 test "$dynamic_linker" = no && can_build_shared=no
9782
9783 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9784 if test "$GCC" = yes; then
9785   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9786 fi
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9876 hardcode_action=
9877 if test -n "$hardcode_libdir_flag_spec" ||
9878    test -n "$runpath_var" ||
9879    test "X$hardcode_automatic" = "Xyes" ; then
9880
9881   # We can hardcode non-existent directories.
9882   if test "$hardcode_direct" != no &&
9883      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9884      # have to relink, otherwise we might link with an installed library
9885      # when we should be linking with a yet-to-be-installed one
9886      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9887      test "$hardcode_minus_L" != no; then
9888     # Linking always hardcodes the temporary library directory.
9889     hardcode_action=relink
9890   else
9891     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9892     hardcode_action=immediate
9893   fi
9894 else
9895   # We cannot hardcode anything, or else we can only hardcode existing
9896   # directories.
9897   hardcode_action=unsupported
9898 fi
9899 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9900 echo "${ECHO_T}$hardcode_action" >&6
9901
9902 if test "$hardcode_action" = relink ||
9903    test "$inherit_rpath" = yes; then
9904   # Fast installation is not supported
9905   enable_fast_install=no
9906 elif test "$shlibpath_overrides_runpath" = yes ||
9907      test "$enable_shared" = no; then
9908   # Fast installation is not necessary
9909   enable_fast_install=needless
9910 fi
9911
9912
9913
9914
9915
9916
9917   if test "x$enable_dlopen" != xyes; then
9918   enable_dlopen=unknown
9919   enable_dlopen_self=unknown
9920   enable_dlopen_self_static=unknown
9921 else
9922   lt_cv_dlopen=no
9923   lt_cv_dlopen_libs=
9924
9925   case $host_os in
9926   beos*)
9927     lt_cv_dlopen="load_add_on"
9928     lt_cv_dlopen_libs=
9929     lt_cv_dlopen_self=yes
9930     ;;
9931
9932   mingw* | pw32*)
9933     lt_cv_dlopen="LoadLibrary"
9934     lt_cv_dlopen_libs=
9935     ;;
9936
9937   cygwin*)
9938     lt_cv_dlopen="dlopen"
9939     lt_cv_dlopen_libs=
9940     ;;
9941
9942   darwin*)
9943   # if libdl is installed we need to link against it
9944     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9945 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9946 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9947   echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949   ac_check_lib_save_LIBS=$LIBS
9950 LIBS="-ldl  $LIBS"
9951 cat >conftest.$ac_ext <<_ACEOF
9952 /* confdefs.h.  */
9953 _ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h.  */
9957
9958 /* Override any gcc2 internal prototype to avoid an error.  */
9959 #ifdef __cplusplus
9960 extern "C"
9961 #endif
9962 /* We use char because int might match the return type of a gcc2
9963    builtin and then its argument prototype would still apply.  */
9964 char dlopen ();
9965 int
9966 main ()
9967 {
9968 dlopen ();
9969   ;
9970   return 0;
9971 }
9972 _ACEOF
9973 rm -f conftest.$ac_objext conftest$ac_exeext
9974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975   (eval $ac_link) 2>conftest.er1
9976   ac_status=$?
9977   grep -v '^ *+' conftest.er1 >conftest.err
9978   rm -f conftest.er1
9979   cat conftest.err >&5
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); } &&
9982          { ac_try='test -z "$ac_c_werror_flag"
9983                          || test ! -s conftest.err'
9984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985   (eval $ac_try) 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); }; } &&
9989          { ac_try='test -s conftest$ac_exeext'
9990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991   (eval $ac_try) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); }; }; then
9995   ac_cv_lib_dl_dlopen=yes
9996 else
9997   echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000 ac_cv_lib_dl_dlopen=no
10001 fi
10002 rm -f conftest.err conftest.$ac_objext \
10003       conftest$ac_exeext conftest.$ac_ext
10004 LIBS=$ac_check_lib_save_LIBS
10005 fi
10006 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10007 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10008 if test $ac_cv_lib_dl_dlopen = yes; then
10009   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10010 else
10011
10012     lt_cv_dlopen="dyld"
10013     lt_cv_dlopen_libs=
10014     lt_cv_dlopen_self=yes
10015
10016 fi
10017
10018     ;;
10019
10020   *)
10021     echo "$as_me:$LINENO: checking for shl_load" >&5
10022 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10023 if test "${ac_cv_func_shl_load+set}" = set; then
10024   echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026   cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h.  */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h.  */
10032 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10034 #define shl_load innocuous_shl_load
10035
10036 /* System header to define __stub macros and hopefully few prototypes,
10037     which can conflict with char shl_load (); below.
10038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10039     <limits.h> exists even on freestanding compilers.  */
10040
10041 #ifdef __STDC__
10042 # include <limits.h>
10043 #else
10044 # include <assert.h>
10045 #endif
10046
10047 #undef shl_load
10048
10049 /* Override any gcc2 internal prototype to avoid an error.  */
10050 #ifdef __cplusplus
10051 extern "C"
10052 {
10053 #endif
10054 /* We use char because int might match the return type of a gcc2
10055    builtin and then its argument prototype would still apply.  */
10056 char shl_load ();
10057 /* The GNU C library defines this for functions which it implements
10058     to always fail with ENOSYS.  Some functions are actually named
10059     something starting with __ and the normal name is an alias.  */
10060 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10061 choke me
10062 #else
10063 char (*f) () = shl_load;
10064 #endif
10065 #ifdef __cplusplus
10066 }
10067 #endif
10068
10069 int
10070 main ()
10071 {
10072 return f != shl_load;
10073   ;
10074   return 0;
10075 }
10076 _ACEOF
10077 rm -f conftest.$ac_objext conftest$ac_exeext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10079   (eval $ac_link) 2>conftest.er1
10080   ac_status=$?
10081   grep -v '^ *+' conftest.er1 >conftest.err
10082   rm -f conftest.er1
10083   cat conftest.err >&5
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); } &&
10086          { ac_try='test -z "$ac_c_werror_flag"
10087                          || test ! -s conftest.err'
10088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089   (eval $ac_try) 2>&5
10090   ac_status=$?
10091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); }; } &&
10093          { ac_try='test -s conftest$ac_exeext'
10094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095   (eval $ac_try) 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; }; then
10099   ac_cv_func_shl_load=yes
10100 else
10101   echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10103
10104 ac_cv_func_shl_load=no
10105 fi
10106 rm -f conftest.err conftest.$ac_objext \
10107       conftest$ac_exeext conftest.$ac_ext
10108 fi
10109 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10110 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10111 if test $ac_cv_func_shl_load = yes; then
10112   lt_cv_dlopen="shl_load"
10113 else
10114   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10115 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10116 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10117   echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119   ac_check_lib_save_LIBS=$LIBS
10120 LIBS="-ldld  $LIBS"
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h.  */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h.  */
10127
10128 /* Override any gcc2 internal prototype to avoid an error.  */
10129 #ifdef __cplusplus
10130 extern "C"
10131 #endif
10132 /* We use char because int might match the return type of a gcc2
10133    builtin and then its argument prototype would still apply.  */
10134 char shl_load ();
10135 int
10136 main ()
10137 {
10138 shl_load ();
10139   ;
10140   return 0;
10141 }
10142 _ACEOF
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145   (eval $ac_link) 2>conftest.er1
10146   ac_status=$?
10147   grep -v '^ *+' conftest.er1 >conftest.err
10148   rm -f conftest.er1
10149   cat conftest.err >&5
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); } &&
10152          { ac_try='test -z "$ac_c_werror_flag"
10153                          || test ! -s conftest.err'
10154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155   (eval $ac_try) 2>&5
10156   ac_status=$?
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); }; } &&
10159          { ac_try='test -s conftest$ac_exeext'
10160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161   (eval $ac_try) 2>&5
10162   ac_status=$?
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); }; }; then
10165   ac_cv_lib_dld_shl_load=yes
10166 else
10167   echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170 ac_cv_lib_dld_shl_load=no
10171 fi
10172 rm -f conftest.err conftest.$ac_objext \
10173       conftest$ac_exeext conftest.$ac_ext
10174 LIBS=$ac_check_lib_save_LIBS
10175 fi
10176 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10177 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10178 if test $ac_cv_lib_dld_shl_load = yes; then
10179   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10180 else
10181   echo "$as_me:$LINENO: checking for dlopen" >&5
10182 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10183 if test "${ac_cv_func_dlopen+set}" = set; then
10184   echo $ECHO_N "(cached) $ECHO_C" >&6
10185 else
10186   cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h.  */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h.  */
10192 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10194 #define dlopen innocuous_dlopen
10195
10196 /* System header to define __stub macros and hopefully few prototypes,
10197     which can conflict with char dlopen (); below.
10198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10199     <limits.h> exists even on freestanding compilers.  */
10200
10201 #ifdef __STDC__
10202 # include <limits.h>
10203 #else
10204 # include <assert.h>
10205 #endif
10206
10207 #undef dlopen
10208
10209 /* Override any gcc2 internal prototype to avoid an error.  */
10210 #ifdef __cplusplus
10211 extern "C"
10212 {
10213 #endif
10214 /* We use char because int might match the return type of a gcc2
10215    builtin and then its argument prototype would still apply.  */
10216 char dlopen ();
10217 /* The GNU C library defines this for functions which it implements
10218     to always fail with ENOSYS.  Some functions are actually named
10219     something starting with __ and the normal name is an alias.  */
10220 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10221 choke me
10222 #else
10223 char (*f) () = dlopen;
10224 #endif
10225 #ifdef __cplusplus
10226 }
10227 #endif
10228
10229 int
10230 main ()
10231 {
10232 return f != dlopen;
10233   ;
10234   return 0;
10235 }
10236 _ACEOF
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10239   (eval $ac_link) 2>conftest.er1
10240   ac_status=$?
10241   grep -v '^ *+' conftest.er1 >conftest.err
10242   rm -f conftest.er1
10243   cat conftest.err >&5
10244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245   (exit $ac_status); } &&
10246          { ac_try='test -z "$ac_c_werror_flag"
10247                          || test ! -s conftest.err'
10248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249   (eval $ac_try) 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; } &&
10253          { ac_try='test -s conftest$ac_exeext'
10254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255   (eval $ac_try) 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); }; }; then
10259   ac_cv_func_dlopen=yes
10260 else
10261   echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10263
10264 ac_cv_func_dlopen=no
10265 fi
10266 rm -f conftest.err conftest.$ac_objext \
10267       conftest$ac_exeext conftest.$ac_ext
10268 fi
10269 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10270 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10271 if test $ac_cv_func_dlopen = yes; then
10272   lt_cv_dlopen="dlopen"
10273 else
10274   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10275 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10276 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279   ac_check_lib_save_LIBS=$LIBS
10280 LIBS="-ldl  $LIBS"
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h.  */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h.  */
10287
10288 /* Override any gcc2 internal prototype to avoid an error.  */
10289 #ifdef __cplusplus
10290 extern "C"
10291 #endif
10292 /* We use char because int might match the return type of a gcc2
10293    builtin and then its argument prototype would still apply.  */
10294 char dlopen ();
10295 int
10296 main ()
10297 {
10298 dlopen ();
10299   ;
10300   return 0;
10301 }
10302 _ACEOF
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305   (eval $ac_link) 2>conftest.er1
10306   ac_status=$?
10307   grep -v '^ *+' conftest.er1 >conftest.err
10308   rm -f conftest.er1
10309   cat conftest.err >&5
10310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311   (exit $ac_status); } &&
10312          { ac_try='test -z "$ac_c_werror_flag"
10313                          || test ! -s conftest.err'
10314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315   (eval $ac_try) 2>&5
10316   ac_status=$?
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); }; } &&
10319          { ac_try='test -s conftest$ac_exeext'
10320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321   (eval $ac_try) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; }; then
10325   ac_cv_lib_dl_dlopen=yes
10326 else
10327   echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10329
10330 ac_cv_lib_dl_dlopen=no
10331 fi
10332 rm -f conftest.err conftest.$ac_objext \
10333       conftest$ac_exeext conftest.$ac_ext
10334 LIBS=$ac_check_lib_save_LIBS
10335 fi
10336 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10337 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10338 if test $ac_cv_lib_dl_dlopen = yes; then
10339   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10340 else
10341   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10342 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10343 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10344   echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346   ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-lsvld  $LIBS"
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h.  */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h.  */
10354
10355 /* Override any gcc2 internal prototype to avoid an error.  */
10356 #ifdef __cplusplus
10357 extern "C"
10358 #endif
10359 /* We use char because int might match the return type of a gcc2
10360    builtin and then its argument prototype would still apply.  */
10361 char dlopen ();
10362 int
10363 main ()
10364 {
10365 dlopen ();
10366   ;
10367   return 0;
10368 }
10369 _ACEOF
10370 rm -f conftest.$ac_objext conftest$ac_exeext
10371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372   (eval $ac_link) 2>conftest.er1
10373   ac_status=$?
10374   grep -v '^ *+' conftest.er1 >conftest.err
10375   rm -f conftest.er1
10376   cat conftest.err >&5
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); } &&
10379          { ac_try='test -z "$ac_c_werror_flag"
10380                          || test ! -s conftest.err'
10381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382   (eval $ac_try) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); }; } &&
10386          { ac_try='test -s conftest$ac_exeext'
10387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388   (eval $ac_try) 2>&5
10389   ac_status=$?
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); }; }; then
10392   ac_cv_lib_svld_dlopen=yes
10393 else
10394   echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10396
10397 ac_cv_lib_svld_dlopen=no
10398 fi
10399 rm -f conftest.err conftest.$ac_objext \
10400       conftest$ac_exeext conftest.$ac_ext
10401 LIBS=$ac_check_lib_save_LIBS
10402 fi
10403 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10404 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10405 if test $ac_cv_lib_svld_dlopen = yes; then
10406   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10407 else
10408   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10409 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10410 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10411   echo $ECHO_N "(cached) $ECHO_C" >&6
10412 else
10413   ac_check_lib_save_LIBS=$LIBS
10414 LIBS="-ldld  $LIBS"
10415 cat >conftest.$ac_ext <<_ACEOF
10416 /* confdefs.h.  */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h.  */
10421
10422 /* Override any gcc2 internal prototype to avoid an error.  */
10423 #ifdef __cplusplus
10424 extern "C"
10425 #endif
10426 /* We use char because int might match the return type of a gcc2
10427    builtin and then its argument prototype would still apply.  */
10428 char dld_link ();
10429 int
10430 main ()
10431 {
10432 dld_link ();
10433   ;
10434   return 0;
10435 }
10436 _ACEOF
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10439   (eval $ac_link) 2>conftest.er1
10440   ac_status=$?
10441   grep -v '^ *+' conftest.er1 >conftest.err
10442   rm -f conftest.er1
10443   cat conftest.err >&5
10444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445   (exit $ac_status); } &&
10446          { ac_try='test -z "$ac_c_werror_flag"
10447                          || test ! -s conftest.err'
10448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449   (eval $ac_try) 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); }; } &&
10453          { ac_try='test -s conftest$ac_exeext'
10454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455   (eval $ac_try) 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); }; }; then
10459   ac_cv_lib_dld_dld_link=yes
10460 else
10461   echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10463
10464 ac_cv_lib_dld_dld_link=no
10465 fi
10466 rm -f conftest.err conftest.$ac_objext \
10467       conftest$ac_exeext conftest.$ac_ext
10468 LIBS=$ac_check_lib_save_LIBS
10469 fi
10470 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10471 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10472 if test $ac_cv_lib_dld_dld_link = yes; then
10473   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10474 fi
10475
10476
10477 fi
10478
10479
10480 fi
10481
10482
10483 fi
10484
10485
10486 fi
10487
10488
10489 fi
10490
10491     ;;
10492   esac
10493
10494   if test "x$lt_cv_dlopen" != xno; then
10495     enable_dlopen=yes
10496   else
10497     enable_dlopen=no
10498   fi
10499
10500   case $lt_cv_dlopen in
10501   dlopen)
10502     save_CPPFLAGS="$CPPFLAGS"
10503     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10504
10505     save_LDFLAGS="$LDFLAGS"
10506     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10507
10508     save_LIBS="$LIBS"
10509     LIBS="$lt_cv_dlopen_libs $LIBS"
10510
10511     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10512 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10513 if test "${lt_cv_dlopen_self+set}" = set; then
10514   echo $ECHO_N "(cached) $ECHO_C" >&6
10515 else
10516           if test "$cross_compiling" = yes; then :
10517   lt_cv_dlopen_self=cross
10518 else
10519   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10520   lt_status=$lt_dlunknown
10521   cat > conftest.$ac_ext <<_LT_EOF
10522 #line 10522 "configure"
10523 #include "confdefs.h"
10524
10525 #if HAVE_DLFCN_H
10526 #include <dlfcn.h>
10527 #endif
10528
10529 #include <stdio.h>
10530
10531 #ifdef RTLD_GLOBAL
10532 #  define LT_DLGLOBAL           RTLD_GLOBAL
10533 #else
10534 #  ifdef DL_GLOBAL
10535 #    define LT_DLGLOBAL         DL_GLOBAL
10536 #  else
10537 #    define LT_DLGLOBAL         0
10538 #  endif
10539 #endif
10540
10541 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10542    find out it does not work in some platform. */
10543 #ifndef LT_DLLAZY_OR_NOW
10544 #  ifdef RTLD_LAZY
10545 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10546 #  else
10547 #    ifdef DL_LAZY
10548 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10549 #    else
10550 #      ifdef RTLD_NOW
10551 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10552 #      else
10553 #        ifdef DL_NOW
10554 #          define LT_DLLAZY_OR_NOW      DL_NOW
10555 #        else
10556 #          define LT_DLLAZY_OR_NOW      0
10557 #        endif
10558 #      endif
10559 #    endif
10560 #  endif
10561 #endif
10562
10563 #ifdef __cplusplus
10564 extern "C" void exit (int);
10565 #endif
10566
10567 void fnord() { int i=42;}
10568 int main ()
10569 {
10570   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10571   int status = $lt_dlunknown;
10572
10573   if (self)
10574     {
10575       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10576       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10577       /* dlclose (self); */
10578     }
10579   else
10580     puts (dlerror ());
10581
10582     exit (status);
10583 }
10584 _LT_EOF
10585   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10586   (eval $ac_link) 2>&5
10587   ac_status=$?
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10590     (./conftest; exit; ) >&5 2>/dev/null
10591     lt_status=$?
10592     case x$lt_status in
10593       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10594       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10595       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10596     esac
10597   else :
10598     # compilation failed
10599     lt_cv_dlopen_self=no
10600   fi
10601 fi
10602 rm -fr conftest*
10603
10604
10605 fi
10606 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10607 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10608
10609     if test "x$lt_cv_dlopen_self" = xyes; then
10610       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10611       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10612 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10613 if test "${lt_cv_dlopen_self_static+set}" = set; then
10614   echo $ECHO_N "(cached) $ECHO_C" >&6
10615 else
10616           if test "$cross_compiling" = yes; then :
10617   lt_cv_dlopen_self_static=cross
10618 else
10619   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10620   lt_status=$lt_dlunknown
10621   cat > conftest.$ac_ext <<_LT_EOF
10622 #line 10622 "configure"
10623 #include "confdefs.h"
10624
10625 #if HAVE_DLFCN_H
10626 #include <dlfcn.h>
10627 #endif
10628
10629 #include <stdio.h>
10630
10631 #ifdef RTLD_GLOBAL
10632 #  define LT_DLGLOBAL           RTLD_GLOBAL
10633 #else
10634 #  ifdef DL_GLOBAL
10635 #    define LT_DLGLOBAL         DL_GLOBAL
10636 #  else
10637 #    define LT_DLGLOBAL         0
10638 #  endif
10639 #endif
10640
10641 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10642    find out it does not work in some platform. */
10643 #ifndef LT_DLLAZY_OR_NOW
10644 #  ifdef RTLD_LAZY
10645 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10646 #  else
10647 #    ifdef DL_LAZY
10648 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10649 #    else
10650 #      ifdef RTLD_NOW
10651 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10652 #      else
10653 #        ifdef DL_NOW
10654 #          define LT_DLLAZY_OR_NOW      DL_NOW
10655 #        else
10656 #          define LT_DLLAZY_OR_NOW      0
10657 #        endif
10658 #      endif
10659 #    endif
10660 #  endif
10661 #endif
10662
10663 #ifdef __cplusplus
10664 extern "C" void exit (int);
10665 #endif
10666
10667 void fnord() { int i=42;}
10668 int main ()
10669 {
10670   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10671   int status = $lt_dlunknown;
10672
10673   if (self)
10674     {
10675       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10676       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10677       /* dlclose (self); */
10678     }
10679   else
10680     puts (dlerror ());
10681
10682     exit (status);
10683 }
10684 _LT_EOF
10685   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10686   (eval $ac_link) 2>&5
10687   ac_status=$?
10688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10690     (./conftest; exit; ) >&5 2>/dev/null
10691     lt_status=$?
10692     case x$lt_status in
10693       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10694       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10695       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10696     esac
10697   else :
10698     # compilation failed
10699     lt_cv_dlopen_self_static=no
10700   fi
10701 fi
10702 rm -fr conftest*
10703
10704
10705 fi
10706 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10707 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10708     fi
10709
10710     CPPFLAGS="$save_CPPFLAGS"
10711     LDFLAGS="$save_LDFLAGS"
10712     LIBS="$save_LIBS"
10713     ;;
10714   esac
10715
10716   case $lt_cv_dlopen_self in
10717   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10718   *) enable_dlopen_self=unknown ;;
10719   esac
10720
10721   case $lt_cv_dlopen_self_static in
10722   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10723   *) enable_dlopen_self_static=unknown ;;
10724   esac
10725 fi
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743 striplib=
10744 old_striplib=
10745 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10746 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10747 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10748   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10749   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10750   echo "$as_me:$LINENO: result: yes" >&5
10751 echo "${ECHO_T}yes" >&6
10752 else
10753 # FIXME - insert some real tests, host_os isn't really good enough
10754   case $host_os in
10755   darwin*)
10756     if test -n "$STRIP" ; then
10757       striplib="$STRIP -x"
10758       old_striplib="$STRIP -S"
10759       echo "$as_me:$LINENO: result: yes" >&5
10760 echo "${ECHO_T}yes" >&6
10761     else
10762       echo "$as_me:$LINENO: result: no" >&5
10763 echo "${ECHO_T}no" >&6
10764     fi
10765     ;;
10766   *)
10767     echo "$as_me:$LINENO: result: no" >&5
10768 echo "${ECHO_T}no" >&6
10769     ;;
10770   esac
10771 fi
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784   # Report which library types will actually be built
10785   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10786 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10787   echo "$as_me:$LINENO: result: $can_build_shared" >&5
10788 echo "${ECHO_T}$can_build_shared" >&6
10789
10790   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10791 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10792   test "$can_build_shared" = "no" && enable_shared=no
10793
10794   # On AIX, shared libraries and static libraries use the same namespace, and
10795   # are all built from PIC.
10796   case $host_os in
10797   aix3*)
10798     test "$enable_shared" = yes && enable_static=no
10799     if test -n "$RANLIB"; then
10800       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10801       postinstall_cmds='$RANLIB $lib'
10802     fi
10803     ;;
10804
10805   aix4* | aix5*)
10806     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10807       test "$enable_shared" = yes && enable_static=no
10808     fi
10809     ;;
10810   esac
10811   echo "$as_me:$LINENO: result: $enable_shared" >&5
10812 echo "${ECHO_T}$enable_shared" >&6
10813
10814   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10815 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10816   # Make sure either enable_shared or enable_static is yes.
10817   test "$enable_shared" = yes || enable_static=yes
10818   echo "$as_me:$LINENO: result: $enable_static" >&5
10819 echo "${ECHO_T}$enable_static" >&6
10820
10821
10822
10823
10824 fi
10825 ac_ext=c
10826 ac_cpp='$CPP $CPPFLAGS'
10827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10830
10831 CC="$lt_save_CC"
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845                   ac_config_commands="$ac_config_commands libtool"
10846
10847
10848
10849
10850 # Only expand once:
10851
10852
10853 fi
10854
10855 # Check whether --enable-newlib_hw_fp or --disable-newlib_hw_fp was given.
10856 if test "${enable_newlib_hw_fp+set}" = set; then
10857   enableval="$enable_newlib_hw_fp"
10858   case "${enableval}" in
10859    yes) newlib_hw_fp=true ;;
10860    no)  newlib_hw_fp=false ;;
10861    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-newlib-hw-fp" >&5
10862 echo "$as_me: error: bad value ${enableval} for --enable-newlib-hw-fp" >&2;}
10863    { (exit 1); exit 1; }; } ;;
10864  esac
10865 else
10866   newlib_hw_fp=false
10867 fi;
10868
10869
10870 if test x$newlib_hw_fp = xtrue; then
10871   NEWLIB_HW_FP_TRUE=
10872   NEWLIB_HW_FP_FALSE='#'
10873 else
10874   NEWLIB_HW_FP_TRUE='#'
10875   NEWLIB_HW_FP_FALSE=
10876 fi
10877
10878
10879 # These get added in the top-level configure.in, except in the case where
10880 # newlib is being built natively.
10881 LIBC_INCLUDE_GREP=`echo ${CC} | grep \/libc\/include`
10882 abs_newlib_basedir=`cd ${newlib_basedir} && pwd`
10883 if test -z "${LIBC_INCLUDE_GREP}"; then
10884   CC_FOR_NEWLIB="${CC} -I$PWD/targ-include -I${abs_newlib_basedir}/libc/include"
10885 else
10886   CC_FOR_NEWLIB="${CC}"
10887 fi
10888
10889
10890
10891
10892 subdirs="$subdirs libc"
10893
10894
10895
10896 subdirs="$subdirs libm"
10897
10898
10899 if test -z "${with_multisubdir}"; then
10900
10901
10902 subdirs="$subdirs doc"
10903
10904   have_doc=yes
10905 else
10906   have_doc=
10907 fi
10908
10909
10910 if test x$have_doc = xyes; then
10911   HAVE_DOC_TRUE=
10912   HAVE_DOC_FALSE='#'
10913 else
10914   HAVE_DOC_TRUE='#'
10915   HAVE_DOC_FALSE=
10916 fi
10917
10918
10919 EXTRA_DIRS=
10920 case $host in
10921   i[34567]86-pc-linux-*)
10922
10923
10924 subdirs="$subdirs iconvdata"
10925
10926         EXTRA_DIRS=iconvdata
10927         ;;
10928 esac
10929
10930
10931 CRT0=
10932 CRT0_DIR=
10933 if test "x${have_crt0}" = "xyes"; then
10934   CRT0=crt0.o
10935   CRT0_DIR=libc/
10936 fi
10937
10938
10939
10940 CRT1=${crt1}
10941 CRT1_DIR=
10942 if test -n "${crt1_dir}"; then
10943   CRT1_DIR=${crt1_dir}/
10944 fi
10945
10946
10947
10948 if test -n "${libm_machine_dir}"; then
10949   LIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.in
10950 fi
10951
10952
10953 if test -n "${machine_dir}"; then
10954   MACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.in
10955 fi
10956
10957
10958 if test -n "${sys_dir}"; then
10959   SYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.in
10960 fi
10961
10962
10963 if test "${have_sys_mach_dir}" = "yes"; then
10964   SYS_MACH_OBJECTLIST=libc/sys/${sys_dir}/machine/${machine_dir}/objectlist.awk.in
10965 fi
10966
10967
10968 if test -n "${posix_dir}"; then
10969   POSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.in
10970 fi
10971
10972
10973 if test -n "${signal_dir}"; then
10974   SIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.in
10975 fi
10976
10977
10978 if test -n "${syscall_dir}"; then
10979   SYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.in
10980 fi
10981
10982
10983 if test -n "${unix_dir}"; then
10984   UNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.in
10985 fi
10986
10987
10988 if test -n "${stdio64_dir}"; then
10989   STDIO64_OBJECTLIST=libc/${stdio64_dir}/objectlist.awk.in
10990 fi
10991
10992
10993 # Put a plausible default for CC_FOR_BUILD in Makefile.
10994 if test -z "$CC_FOR_BUILD"; then
10995   CC_FOR_BUILD=gcc
10996 fi
10997
10998
10999 if test "${newlib_elix_level}" -gt "0"; then
11000 cat >>confdefs.h <<_ACEOF
11001 #define _ELIX_LEVEL ${newlib_elix_level}
11002 _ACEOF
11003
11004 fi
11005
11006 if test "${newlib_io_c99_formats}" = "yes"; then
11007 cat >>confdefs.h <<_ACEOF
11008 #define _WANT_IO_C99_FORMATS 1
11009 _ACEOF
11010
11011 fi
11012
11013 if test "${newlib_io_long_long}" = "yes"; then
11014 cat >>confdefs.h <<_ACEOF
11015 #define _WANT_IO_LONG_LONG 1
11016 _ACEOF
11017
11018 fi
11019
11020 if test "${newlib_io_long_double}" = "yes"; then
11021 cat >>confdefs.h <<_ACEOF
11022 #define _WANT_IO_LONG_DOUBLE 1
11023 _ACEOF
11024
11025 fi
11026
11027 if test "${newlib_io_pos_args}" = "yes"; then
11028 cat >>confdefs.h <<_ACEOF
11029 #define _WANT_IO_POS_ARGS 1
11030 _ACEOF
11031
11032 fi
11033
11034 if test "${newlib_reent_small}" = "yes"; then
11035 cat >>confdefs.h <<_ACEOF
11036 #define _WANT_REENT_SMALL 1
11037 _ACEOF
11038
11039 fi
11040
11041 if test "${newlib_mb}" = "yes"; then
11042 cat >>confdefs.h <<_ACEOF
11043 #define _MB_CAPABLE 1
11044 _ACEOF
11045
11046 cat >>confdefs.h <<_ACEOF
11047 #define _MB_LEN_MAX 8
11048 _ACEOF
11049
11050 else
11051 cat >>confdefs.h <<_ACEOF
11052 #define _MB_LEN_MAX 1
11053 _ACEOF
11054
11055 fi
11056
11057 if test "${newlib_iconv_external_ccs}" = "yes"; then
11058 cat >>confdefs.h <<_ACEOF
11059 #define _ICONV_ENABLE_EXTERNAL_CCS 1
11060 _ACEOF
11061
11062 fi
11063
11064 cat >>confdefs.h <<_ACEOF
11065 #define _NEWLIB_VERSION "1.15.0"
11066 _ACEOF
11067
11068
11069 if test "${multilib}" = "yes"; then
11070   multilib_arg="--enable-multilib"
11071 else
11072   multilib_arg=
11073 fi
11074
11075 if test "${newlib_iconv}" = "yes"; then
11076 cat >>confdefs.h <<_ACEOF
11077 #define _ICONV_ENABLED 1
11078 _ACEOF
11079
11080 fi
11081
11082 if test "x${newlib_iconv_external_ccs}" = "xyes"; then
11083   if test "x${newlib_iconv}" = "x"; then
11084       { { echo "$as_me:$LINENO: error: --enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" >&5
11085 echo "$as_me: error: --enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" >&2;}
11086    { (exit use --enable-newlib-iconv to enable it.); exit use --enable-newlib-iconv to enable it.; }; }
11087   fi
11088   cat >>confdefs.h <<_ACEOF
11089 #define _ICONV_ENABLE_EXTERNAL_CCS 1
11090 _ACEOF
11091
11092 fi
11093
11094 if test "${newlib_atexit_dynamic_alloc}" = "yes"; then
11095 cat >>confdefs.h <<_ACEOF
11096 #define _ATEXIT_DYNAMIC_ALLOC 1
11097 _ACEOF
11098
11099 fi
11100
11101
11102 if test "x${iconv_encodings}" != "x" \
11103    || test "x${iconv_to_encodings}" != "x" \
11104    || test "x${iconv_from_encodings}" != "x"; then
11105   if test "x${newlib_iconv}" = "x"; then
11106       { { 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
11107 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;}
11108    { (exit 1); exit 1; }; }
11109   fi
11110
11111     iconv_encodings=`echo "${iconv_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
11112   iconv_to_encodings=`echo "${iconv_to_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
11113   iconv_from_encodings=`echo "${iconv_from_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
11114
11115       available_encodings=`cat "${srcdir}/libc/iconv/encoding.aliases" | sed -e '/^#.*/d'`
11116
11117
11118     iconv_encodings1="${iconv_encodings}"
11119   iconv_encodings=""
11120   for encoding in ${iconv_encodings1}; do
11121       result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
11122       if test $? != "0"; then
11123           { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
11124 echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
11125    { (exit 1); exit 1; }; }
11126       fi
11127       encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
11128       iconv_encodings="${iconv_encodings} ${encoding1}"
11129   done
11130     for encoding in ${iconv_encodings}; do
11131       opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11132       cat >>confdefs.h <<_ACEOF
11133 #define $opt 1
11134 _ACEOF
11135
11136       opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11137       cat >>confdefs.h <<_ACEOF
11138 #define $opt 1
11139 _ACEOF
11140
11141   done
11142
11143     iconv_encodings1="${iconv_to_encodings}"
11144   iconv_to_encodings=""
11145   for encoding in ${iconv_encodings1}; do
11146       result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
11147       if test $? != "0"; then
11148           { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
11149 echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
11150    { (exit 1); exit 1; }; }
11151       fi
11152       encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
11153       iconv_to_encodings="${iconv_to_encodings} ${encoding1}"
11154   done
11155     for encoding in ${iconv_to_encodings}; do
11156       opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11157       cat >>confdefs.h <<_ACEOF
11158 #define $opt 1
11159 _ACEOF
11160
11161   done
11162
11163     iconv_encodings1="${iconv_from_encodings}"
11164   iconv_from_encodings=""
11165   for encoding in ${iconv_encodings1}; do
11166       result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
11167       if test $? != "0"; then
11168           { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
11169 echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
11170    { (exit 1); exit 1; }; }
11171       fi
11172       encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
11173       iconv_from_encodings="${iconv_from_encodings} ${encoding1}"
11174   done
11175     for encoding in ${iconv_from_encodings}; do
11176       opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11177       cat >>confdefs.h <<_ACEOF
11178 #define $opt 1
11179 _ACEOF
11180
11181   done
11182 fi;
11183
11184 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11185 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11186 if test "${libc_cv_initfinit_array+set}" = set; then
11187   echo $ECHO_N "(cached) $ECHO_C" >&6
11188 else
11189   cat > conftest.c <<EOF
11190 int _start (void) { return 0; }
11191 int __start (void) { return 0; }
11192 int foo (void) { return 1; }
11193 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11194 EOF
11195 if { ac_try='${CC} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
11196                    -static -nostartfiles -nostdlib 1>&5'
11197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198   (eval $ac_try) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; }
11202 then
11203   if ${READELF} -S conftest | grep -e INIT_ARRAY > /dev/null; then
11204     libc_cv_initfinit_array=yes
11205   else
11206     libc_cv_initfinit_array=no
11207   fi
11208 else
11209   libc_cv_initfinit_array=no
11210 fi
11211 rm -f conftest*
11212 fi
11213 echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
11214 echo "${ECHO_T}$libc_cv_initfinit_array" >&6
11215
11216 if test $libc_cv_initfinit_array = yes; then
11217   cat >>confdefs.h <<_ACEOF
11218 #define HAVE_INITFINI_ARRAY 1
11219 _ACEOF
11220
11221 fi
11222
11223 echo "$as_me:$LINENO: checking for array aliasing support" >&5
11224 echo $ECHO_N "checking for array aliasing support... $ECHO_C" >&6
11225 if test "${libc_cv_array_aliasing+set}" = set; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228   cat > conftest.c <<EOF
11229 char x3 = { 'a', 'b', 'c' };
11230 extern char y2 __attribute__((alias ("x+1")));
11231 EOF
11232 if { ac_try='${CC} $CFLAGS $CPPFLAGS -c conftest.c
11233                    1>&5'
11234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235   (eval $ac_try) 2>&5
11236   ac_status=$?
11237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238   (exit $ac_status); }; }
11239 then
11240   libc_cv_array_aliasing=yes
11241 else
11242   libc_cv_array_aliasing=no
11243 fi
11244 rm -f conftest*
11245 fi
11246 echo "$as_me:$LINENO: result: $libc_cv_array_aliasing" >&5
11247 echo "${ECHO_T}$libc_cv_array_aliasing" >&6
11248
11249 if test $libc_cv_array_aliasing = yes; then
11250   cat >>confdefs.h <<_ACEOF
11251 #define _HAVE_ARRAY_ALIASING 1
11252 _ACEOF
11253
11254 fi
11255
11256           ac_config_files="$ac_config_files Makefile"
11257
11258 cat >confcache <<\_ACEOF
11259 # This file is a shell script that caches the results of configure
11260 # tests run on this system so they can be shared between configure
11261 # scripts and configure runs, see configure's option --config-cache.
11262 # It is not useful on other systems.  If it contains results you don't
11263 # want to keep, you may remove or edit it.
11264 #
11265 # config.status only pays attention to the cache file if you give it
11266 # the --recheck option to rerun configure.
11267 #
11268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11270 # following values.
11271
11272 _ACEOF
11273
11274 # The following way of writing the cache mishandles newlines in values,
11275 # but we know of no workaround that is simple, portable, and efficient.
11276 # So, don't put newlines in cache variables' values.
11277 # Ultrix sh set writes to stderr and can't be redirected directly,
11278 # and sets the high bit in the cache file unless we assign to the vars.
11279 {
11280   (set) 2>&1 |
11281     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11282     *ac_space=\ *)
11283       # `set' does not quote correctly, so add quotes (double-quote
11284       # substitution turns \\\\ into \\, and sed turns \\ into \).
11285       sed -n \
11286         "s/'/'\\\\''/g;
11287           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11288       ;;
11289     *)
11290       # `set' quotes correctly as required by POSIX, so do not add quotes.
11291       sed -n \
11292         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11293       ;;
11294     esac;
11295 } |
11296   sed '
11297      t clear
11298      : clear
11299      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11300      t end
11301      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11302      : end' >>confcache
11303 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11304   if test -w $cache_file; then
11305     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11306     cat confcache >$cache_file
11307   else
11308     echo "not updating unwritable cache $cache_file"
11309   fi
11310 fi
11311 rm -f confcache
11312
11313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11314 # Let make expand exec_prefix.
11315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11316
11317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11319 # trailing colons and then remove the whole line if VPATH becomes empty
11320 # (actually we leave an empty line to preserve line numbers).
11321 if test "x$srcdir" = x.; then
11322   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11323 s/:*\$(srcdir):*/:/;
11324 s/:*\${srcdir}:*/:/;
11325 s/:*@srcdir@:*/:/;
11326 s/^\([^=]*=[     ]*\):*/\1/;
11327 s/:*$//;
11328 s/^[^=]*=[       ]*$//;
11329 }'
11330 fi
11331
11332 DEFS=-DHAVE_CONFIG_H
11333
11334 ac_libobjs=
11335 ac_ltlibobjs=
11336 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11337   # 1. Remove the extension, and $U if already installed.
11338   ac_i=`echo "$ac_i" |
11339          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11340   # 2. Add them.
11341   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11342   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11343 done
11344 LIBOBJS=$ac_libobjs
11345
11346 LTLIBOBJS=$ac_ltlibobjs
11347
11348
11349 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
11350   { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11351 Usually this means the macro was only invoked conditionally." >&5
11352 echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11353 Usually this means the macro was only invoked conditionally." >&2;}
11354    { (exit 1); exit 1; }; }
11355 fi
11356 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11357   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11358 Usually this means the macro was only invoked conditionally." >&5
11359 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11360 Usually this means the macro was only invoked conditionally." >&2;}
11361    { (exit 1); exit 1; }; }
11362 fi
11363 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11364   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11365 Usually this means the macro was only invoked conditionally." >&5
11366 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11367 Usually this means the macro was only invoked conditionally." >&2;}
11368    { (exit 1); exit 1; }; }
11369 fi
11370 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11371   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11372 Usually this means the macro was only invoked conditionally." >&5
11373 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11374 Usually this means the macro was only invoked conditionally." >&2;}
11375    { (exit 1); exit 1; }; }
11376 fi
11377 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
11378   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
11379 Usually this means the macro was only invoked conditionally." >&5
11380 echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
11381 Usually this means the macro was only invoked conditionally." >&2;}
11382    { (exit 1); exit 1; }; }
11383 fi
11384 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
11385   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
11386 Usually this means the macro was only invoked conditionally." >&5
11387 echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
11388 Usually this means the macro was only invoked conditionally." >&2;}
11389    { (exit 1); exit 1; }; }
11390 fi
11391 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
11392   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
11393 Usually this means the macro was only invoked conditionally." >&5
11394 echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
11395 Usually this means the macro was only invoked conditionally." >&2;}
11396    { (exit 1); exit 1; }; }
11397 fi
11398 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
11399   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
11400 Usually this means the macro was only invoked conditionally." >&5
11401 echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
11402 Usually this means the macro was only invoked conditionally." >&2;}
11403    { (exit 1); exit 1; }; }
11404 fi
11405 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
11406   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
11407 Usually this means the macro was only invoked conditionally." >&5
11408 echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
11409 Usually this means the macro was only invoked conditionally." >&2;}
11410    { (exit 1); exit 1; }; }
11411 fi
11412 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
11413   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
11414 Usually this means the macro was only invoked conditionally." >&5
11415 echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
11416 Usually this means the macro was only invoked conditionally." >&2;}
11417    { (exit 1); exit 1; }; }
11418 fi
11419 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11420   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11421 Usually this means the macro was only invoked conditionally." >&5
11422 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11423 Usually this means the macro was only invoked conditionally." >&2;}
11424    { (exit 1); exit 1; }; }
11425 fi
11426 if test -z "${NEWLIB_HW_FP_TRUE}" && test -z "${NEWLIB_HW_FP_FALSE}"; then
11427   { { echo "$as_me:$LINENO: error: conditional \"NEWLIB_HW_FP\" was never defined.
11428 Usually this means the macro was only invoked conditionally." >&5
11429 echo "$as_me: error: conditional \"NEWLIB_HW_FP\" was never defined.
11430 Usually this means the macro was only invoked conditionally." >&2;}
11431    { (exit 1); exit 1; }; }
11432 fi
11433 if test -z "${HAVE_DOC_TRUE}" && test -z "${HAVE_DOC_FALSE}"; then
11434   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOC\" was never defined.
11435 Usually this means the macro was only invoked conditionally." >&5
11436 echo "$as_me: error: conditional \"HAVE_DOC\" was never defined.
11437 Usually this means the macro was only invoked conditionally." >&2;}
11438    { (exit 1); exit 1; }; }
11439 fi
11440
11441 : ${CONFIG_STATUS=./config.status}
11442 ac_clean_files_save=$ac_clean_files
11443 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11444 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11445 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11446 cat >$CONFIG_STATUS <<_ACEOF
11447 #! $SHELL
11448 # Generated by $as_me.
11449 # Run this file to recreate the current configuration.
11450 # Compiler output produced by configure, useful for debugging
11451 # configure, is in config.log if it exists.
11452
11453 debug=false
11454 ac_cs_recheck=false
11455 ac_cs_silent=false
11456 SHELL=\${CONFIG_SHELL-$SHELL}
11457 _ACEOF
11458
11459 cat >>$CONFIG_STATUS <<\_ACEOF
11460 ## --------------------- ##
11461 ## M4sh Initialization.  ##
11462 ## --------------------- ##
11463
11464 # Be Bourne compatible
11465 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11466   emulate sh
11467   NULLCMD=:
11468   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11469   # is contrary to our usage.  Disable this feature.
11470   alias -g '${1+"$@"}'='"$@"'
11471 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11472   set -o posix
11473 fi
11474 DUALCASE=1; export DUALCASE # for MKS sh
11475
11476 # Support unset when possible.
11477 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11478   as_unset=unset
11479 else
11480   as_unset=false
11481 fi
11482
11483
11484 # Work around bugs in pre-3.0 UWIN ksh.
11485 $as_unset ENV MAIL MAILPATH
11486 PS1='$ '
11487 PS2='> '
11488 PS4='+ '
11489
11490 # NLS nuisances.
11491 for as_var in \
11492   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11493   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11494   LC_TELEPHONE LC_TIME
11495 do
11496   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11497     eval $as_var=C; export $as_var
11498   else
11499     $as_unset $as_var
11500   fi
11501 done
11502
11503 # Required to use basename.
11504 if expr a : '\(a\)' >/dev/null 2>&1; then
11505   as_expr=expr
11506 else
11507   as_expr=false
11508 fi
11509
11510 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11511   as_basename=basename
11512 else
11513   as_basename=false
11514 fi
11515
11516
11517 # Name of the executable.
11518 as_me=`$as_basename "$0" ||
11519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11520          X"$0" : 'X\(//\)$' \| \
11521          X"$0" : 'X\(/\)$' \| \
11522          .     : '\(.\)' 2>/dev/null ||
11523 echo X/"$0" |
11524     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11525           /^X\/\(\/\/\)$/{ s//\1/; q; }
11526           /^X\/\(\/\).*/{ s//\1/; q; }
11527           s/.*/./; q'`
11528
11529
11530 # PATH needs CR, and LINENO needs CR and PATH.
11531 # Avoid depending upon Character Ranges.
11532 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11533 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11534 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11535 as_cr_digits='0123456789'
11536 as_cr_alnum=$as_cr_Letters$as_cr_digits
11537
11538 # The user is always right.
11539 if test "${PATH_SEPARATOR+set}" != set; then
11540   echo "#! /bin/sh" >conf$$.sh
11541   echo  "exit 0"   >>conf$$.sh
11542   chmod +x conf$$.sh
11543   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11544     PATH_SEPARATOR=';'
11545   else
11546     PATH_SEPARATOR=:
11547   fi
11548   rm -f conf$$.sh
11549 fi
11550
11551
11552   as_lineno_1=$LINENO
11553   as_lineno_2=$LINENO
11554   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11555   test "x$as_lineno_1" != "x$as_lineno_2" &&
11556   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11557   # Find who we are.  Look in the path if we contain no path at all
11558   # relative or not.
11559   case $0 in
11560     *[\\/]* ) as_myself=$0 ;;
11561     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562 for as_dir in $PATH
11563 do
11564   IFS=$as_save_IFS
11565   test -z "$as_dir" && as_dir=.
11566   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11567 done
11568
11569        ;;
11570   esac
11571   # We did not find ourselves, most probably we were run as `sh COMMAND'
11572   # in which case we are not to be found in the path.
11573   if test "x$as_myself" = x; then
11574     as_myself=$0
11575   fi
11576   if test ! -f "$as_myself"; then
11577     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11578 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11579    { (exit 1); exit 1; }; }
11580   fi
11581   case $CONFIG_SHELL in
11582   '')
11583     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11585 do
11586   IFS=$as_save_IFS
11587   test -z "$as_dir" && as_dir=.
11588   for as_base in sh bash ksh sh5; do
11589          case $as_dir in
11590          /*)
11591            if ("$as_dir/$as_base" -c '
11592   as_lineno_1=$LINENO
11593   as_lineno_2=$LINENO
11594   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11595   test "x$as_lineno_1" != "x$as_lineno_2" &&
11596   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11597              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11598              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11599              CONFIG_SHELL=$as_dir/$as_base
11600              export CONFIG_SHELL
11601              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11602            fi;;
11603          esac
11604        done
11605 done
11606 ;;
11607   esac
11608
11609   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11610   # uniformly replaced by the line number.  The first 'sed' inserts a
11611   # line-number line before each line; the second 'sed' does the real
11612   # work.  The second script uses 'N' to pair each line-number line
11613   # with the numbered line, and appends trailing '-' during
11614   # substitution so that $LINENO is not a special case at line end.
11615   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11616   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11617   sed '=' <$as_myself |
11618     sed '
11619       N
11620       s,$,-,
11621       : loop
11622       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11623       t loop
11624       s,-$,,
11625       s,^['$as_cr_digits']*\n,,
11626     ' >$as_me.lineno &&
11627   chmod +x $as_me.lineno ||
11628     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11629 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11630    { (exit 1); exit 1; }; }
11631
11632   # Don't try to exec as it changes $[0], causing all sort of problems
11633   # (the dirname of $[0] is not the place where we might find the
11634   # original and so on.  Autoconf is especially sensible to this).
11635   . ./$as_me.lineno
11636   # Exit status is that of the last command.
11637   exit
11638 }
11639
11640
11641 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11642   *c*,-n*) ECHO_N= ECHO_C='
11643 ' ECHO_T='      ' ;;
11644   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11645   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11646 esac
11647
11648 if expr a : '\(a\)' >/dev/null 2>&1; then
11649   as_expr=expr
11650 else
11651   as_expr=false
11652 fi
11653
11654 rm -f conf$$ conf$$.exe conf$$.file
11655 echo >conf$$.file
11656 if ln -s conf$$.file conf$$ 2>/dev/null; then
11657   # We could just check for DJGPP; but this test a) works b) is more generic
11658   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11659   if test -f conf$$.exe; then
11660     # Don't use ln at all; we don't have any links
11661     as_ln_s='cp -p'
11662   else
11663     as_ln_s='ln -s'
11664   fi
11665 elif ln conf$$.file conf$$ 2>/dev/null; then
11666   as_ln_s=ln
11667 else
11668   as_ln_s='cp -p'
11669 fi
11670 rm -f conf$$ conf$$.exe conf$$.file
11671
11672 if mkdir -p . 2>/dev/null; then
11673   as_mkdir_p=:
11674 else
11675   test -d ./-p && rmdir ./-p
11676   as_mkdir_p=false
11677 fi
11678
11679 as_executable_p="test -f"
11680
11681 # Sed expression to map a string onto a valid CPP name.
11682 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11683
11684 # Sed expression to map a string onto a valid variable name.
11685 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11686
11687
11688 # IFS
11689 # We need space, tab and new line, in precisely that order.
11690 as_nl='
11691 '
11692 IFS="   $as_nl"
11693
11694 # CDPATH.
11695 $as_unset CDPATH
11696
11697 exec 6>&1
11698
11699 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11700 # report actual input values of CONFIG_FILES etc. instead of their
11701 # values after options handling.  Logging --version etc. is OK.
11702 exec 5>>config.log
11703 {
11704   echo
11705   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11706 ## Running $as_me. ##
11707 _ASBOX
11708 } >&5
11709 cat >&5 <<_CSEOF
11710
11711 This file was extended by newlib $as_me 1.15.0, which was
11712 generated by GNU Autoconf 2.59.  Invocation command line was
11713
11714   CONFIG_FILES    = $CONFIG_FILES
11715   CONFIG_HEADERS  = $CONFIG_HEADERS
11716   CONFIG_LINKS    = $CONFIG_LINKS
11717   CONFIG_COMMANDS = $CONFIG_COMMANDS
11718   $ $0 $@
11719
11720 _CSEOF
11721 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11722 echo >&5
11723 _ACEOF
11724
11725 # Files that config.status was made for.
11726 if test -n "$ac_config_files"; then
11727   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11728 fi
11729
11730 if test -n "$ac_config_headers"; then
11731   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11732 fi
11733
11734 if test -n "$ac_config_links"; then
11735   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11736 fi
11737
11738 if test -n "$ac_config_commands"; then
11739   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11740 fi
11741
11742 cat >>$CONFIG_STATUS <<\_ACEOF
11743
11744 ac_cs_usage="\
11745 \`$as_me' instantiates files from templates according to the
11746 current configuration.
11747
11748 Usage: $0 [OPTIONS] [FILE]...
11749
11750   -h, --help       print this help, then exit
11751   -V, --version    print version number, then exit
11752   -q, --quiet      do not print progress messages
11753   -d, --debug      don't remove temporary files
11754       --recheck    update $as_me by reconfiguring in the same conditions
11755   --file=FILE[:TEMPLATE]
11756                    instantiate the configuration file FILE
11757   --header=FILE[:TEMPLATE]
11758                    instantiate the configuration header FILE
11759
11760 Configuration files:
11761 $config_files
11762
11763 Configuration headers:
11764 $config_headers
11765
11766 Configuration commands:
11767 $config_commands
11768
11769 Report bugs to <bug-autoconf@gnu.org>."
11770 _ACEOF
11771
11772 cat >>$CONFIG_STATUS <<_ACEOF
11773 ac_cs_version="\\
11774 newlib config.status 1.15.0
11775 configured by $0, generated by GNU Autoconf 2.59,
11776   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11777
11778 Copyright (C) 2003 Free Software Foundation, Inc.
11779 This config.status script is free software; the Free Software Foundation
11780 gives unlimited permission to copy, distribute and modify it."
11781 srcdir=$srcdir
11782 INSTALL="$INSTALL"
11783 _ACEOF
11784
11785 cat >>$CONFIG_STATUS <<\_ACEOF
11786 # If no file are specified by the user, then we need to provide default
11787 # value.  By we need to know if files were specified by the user.
11788 ac_need_defaults=:
11789 while test $# != 0
11790 do
11791   case $1 in
11792   --*=*)
11793     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11794     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11795     ac_shift=:
11796     ;;
11797   -*)
11798     ac_option=$1
11799     ac_optarg=$2
11800     ac_shift=shift
11801     ;;
11802   *) # This is not an option, so the user has probably given explicit
11803      # arguments.
11804      ac_option=$1
11805      ac_need_defaults=false;;
11806   esac
11807
11808   case $ac_option in
11809   # Handling of the options.
11810 _ACEOF
11811 cat >>$CONFIG_STATUS <<\_ACEOF
11812   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11813     ac_cs_recheck=: ;;
11814   --version | --vers* | -V )
11815     echo "$ac_cs_version"; exit 0 ;;
11816   --he | --h)
11817     # Conflict between --help and --header
11818     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11819 Try \`$0 --help' for more information." >&5
11820 echo "$as_me: error: ambiguous option: $1
11821 Try \`$0 --help' for more information." >&2;}
11822    { (exit 1); exit 1; }; };;
11823   --help | --hel | -h )
11824     echo "$ac_cs_usage"; exit 0 ;;
11825   --debug | --d* | -d )
11826     debug=: ;;
11827   --file | --fil | --fi | --f )
11828     $ac_shift
11829     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11830     ac_need_defaults=false;;
11831   --header | --heade | --head | --hea )
11832     $ac_shift
11833     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11834     ac_need_defaults=false;;
11835   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11836   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11837     ac_cs_silent=: ;;
11838
11839   # This is an error.
11840   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11841 Try \`$0 --help' for more information." >&5
11842 echo "$as_me: error: unrecognized option: $1
11843 Try \`$0 --help' for more information." >&2;}
11844    { (exit 1); exit 1; }; } ;;
11845
11846   *) ac_config_targets="$ac_config_targets $1" ;;
11847
11848   esac
11849   shift
11850 done
11851
11852 ac_configure_extra_args=
11853
11854 if $ac_cs_silent; then
11855   exec 6>/dev/null
11856   ac_configure_extra_args="$ac_configure_extra_args --silent"
11857 fi
11858
11859 _ACEOF
11860 cat >>$CONFIG_STATUS <<_ACEOF
11861 if \$ac_cs_recheck; then
11862   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11863   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11864 fi
11865
11866 _ACEOF
11867
11868 cat >>$CONFIG_STATUS <<_ACEOF
11869 #
11870 # INIT-COMMANDS section.
11871 #
11872
11873 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11874
11875
11876 # The HP-UX ksh and POSIX shell print the target directory to stdout
11877 # if CDPATH is set.
11878 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11879
11880 sed_quote_subst='$sed_quote_subst'
11881 double_quote_subst='$double_quote_subst'
11882 delay_variable_subst='$delay_variable_subst'
11883 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11884 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11885 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11886 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11887 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11888 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11889 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11890 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11891 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11892 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11893 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11894 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11895 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11896 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11897 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11898 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11899 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11900 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11901 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11902 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11903 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11904 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11905 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11906 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11907 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11908 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11909 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11910 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11911 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11912 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11913 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11914 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11915 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11916 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11917 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11918 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11919 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11920 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11921 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11922 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11923 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11924 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11925 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11926 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11927 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11928 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11929 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11930 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11931 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11932 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11933 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11934 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11935 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11936 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11937 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11938 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11939 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11940 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11941 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11942 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11943 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11944 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11945 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11946 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11947 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11948 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11949 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11950 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11951 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11952 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11953 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11954 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11955 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11956 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11957 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11958 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11959 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11960 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11961 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11962 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11963 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11964 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11965 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11966 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11967 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11968 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11969 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11970 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11971 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11972 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11973 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11974 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11975 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11976 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11977 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11978 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11979 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11980 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11981 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11982 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11983 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11984 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11985 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11986 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11987 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11988 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11989 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11990 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11991 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11992 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11993 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11994 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11995 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11996 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11997
11998 LTCC='$LTCC'
11999 LTCFLAGS='$LTCFLAGS'
12000 compiler='$compiler_DEFAULT'
12001
12002 # Quote evaled strings.
12003 for var in SED \
12004 GREP \
12005 EGREP \
12006 FGREP \
12007 LD \
12008 NM \
12009 LN_S \
12010 lt_SP2NL \
12011 lt_NL2SP \
12012 reload_flag \
12013 deplibs_check_method \
12014 file_magic_cmd \
12015 AR \
12016 AR_FLAGS \
12017 STRIP \
12018 RANLIB \
12019 CC \
12020 CFLAGS \
12021 compiler \
12022 lt_cv_sys_global_symbol_pipe \
12023 lt_cv_sys_global_symbol_to_cdecl \
12024 lt_cv_sys_global_symbol_to_c_name_address \
12025 SHELL \
12026 ECHO \
12027 lt_prog_compiler_no_builtin_flag \
12028 lt_prog_compiler_wl \
12029 lt_prog_compiler_pic \
12030 lt_prog_compiler_static \
12031 lt_cv_prog_compiler_c_o \
12032 need_locks \
12033 shrext_cmds \
12034 export_dynamic_flag_spec \
12035 whole_archive_flag_spec \
12036 compiler_needs_object \
12037 with_gnu_ld \
12038 allow_undefined_flag \
12039 no_undefined_flag \
12040 hardcode_libdir_flag_spec \
12041 hardcode_libdir_flag_spec_ld \
12042 hardcode_libdir_separator \
12043 fix_srcfile_path \
12044 exclude_expsyms \
12045 include_expsyms \
12046 file_list_spec \
12047 variables_saved_for_relink \
12048 libname_spec \
12049 library_names_spec \
12050 soname_spec \
12051 finish_eval \
12052 old_striplib \
12053 striplib; do
12054     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12055     *[\\\\\\\`\\"\\\$]*)
12056       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12057       ;;
12058     *)
12059       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12060       ;;
12061     esac
12062 done
12063
12064 # Double-quote double-evaled strings.
12065 for var in reload_cmds \
12066 old_postinstall_cmds \
12067 old_postuninstall_cmds \
12068 old_archive_cmds \
12069 extract_expsyms_cmds \
12070 old_archive_from_new_cmds \
12071 old_archive_from_expsyms_cmds \
12072 archive_cmds \
12073 archive_expsym_cmds \
12074 module_cmds \
12075 module_expsym_cmds \
12076 export_symbols_cmds \
12077 prelink_cmds \
12078 postinstall_cmds \
12079 postuninstall_cmds \
12080 finish_cmds \
12081 sys_lib_search_path_spec \
12082 sys_lib_dlsearch_path_spec; do
12083     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12084     *[\\\\\\\`\\"\\\$]*)
12085       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12086       ;;
12087     *)
12088       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12089       ;;
12090     esac
12091 done
12092
12093 # Fix-up fallback echo if it was mangled by the above quoting rules.
12094 case \$lt_ECHO in
12095 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12096   ;;
12097 esac
12098
12099 ac_aux_dir='$ac_aux_dir'
12100 xsi_shell='$xsi_shell'
12101 lt_shell_append='$lt_shell_append'
12102
12103 # See if we are running on zsh, and set the options which allow our
12104 # commands through without removal of \ escapes INIT.
12105 if test -n "\${ZSH_VERSION+set}" ; then
12106    setopt NO_GLOB_SUBST
12107 fi
12108
12109
12110     PACKAGE='$PACKAGE'
12111     VERSION='$VERSION'
12112     TIMESTAMP='$TIMESTAMP'
12113     RM='$RM'
12114     ofile='$ofile'
12115
12116
12117
12118 srcdir=${srcdir}
12119 host=${host}
12120 with_multisubdir=${with_multisubdir}
12121 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12122 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12123 newlib_basedir=${newlib_basedir}
12124 CC="${CC}"
12125 LDFLAGS="${LDFLAGS}"
12126
12127
12128 _ACEOF
12129
12130
12131
12132 cat >>$CONFIG_STATUS <<\_ACEOF
12133 for ac_config_target in $ac_config_targets
12134 do
12135   case "$ac_config_target" in
12136   # Handling of arguments.
12137   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12138   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12139   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12140   "newlib.h" ) CONFIG_HEADERS="$CONFIG_HEADERS newlib.h:newlib.hin" ;;
12141   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12142 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12143    { (exit 1); exit 1; }; };;
12144   esac
12145 done
12146
12147 # If the user did not use the arguments to specify the items to instantiate,
12148 # then the envvar interface is used.  Set only those that are not.
12149 # We use the long form for the default assignment because of an extremely
12150 # bizarre bug on SunOS 4.1.3.
12151 if $ac_need_defaults; then
12152   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12153   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12154   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12155 fi
12156
12157 # Have a temporary directory for convenience.  Make it in the build tree
12158 # simply because there is no reason to put it here, and in addition,
12159 # creating and moving files from /tmp can sometimes cause problems.
12160 # Create a temporary directory, and hook for its removal unless debugging.
12161 $debug ||
12162 {
12163   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12164   trap '{ (exit 1); exit 1; }' 1 2 13 15
12165 }
12166
12167 # Create a (secure) tmp directory for tmp files.
12168
12169 {
12170   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12171   test -n "$tmp" && test -d "$tmp"
12172 }  ||
12173 {
12174   tmp=./confstat$$-$RANDOM
12175   (umask 077 && mkdir $tmp)
12176 } ||
12177 {
12178    echo "$me: cannot create a temporary directory in ." >&2
12179    { (exit 1); exit 1; }
12180 }
12181
12182 _ACEOF
12183
12184 cat >>$CONFIG_STATUS <<_ACEOF
12185
12186 #
12187 # CONFIG_FILES section.
12188 #
12189
12190 # No need to generate the scripts if there are no CONFIG_FILES.
12191 # This happens for instance when ./config.status config.h
12192 if test -n "\$CONFIG_FILES"; then
12193   # Protect against being on the right side of a sed subst in config.status.
12194   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12195    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12196 s,@SHELL@,$SHELL,;t t
12197 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12198 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12199 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12200 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12201 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12202 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12203 s,@exec_prefix@,$exec_prefix,;t t
12204 s,@prefix@,$prefix,;t t
12205 s,@program_transform_name@,$program_transform_name,;t t
12206 s,@bindir@,$bindir,;t t
12207 s,@sbindir@,$sbindir,;t t
12208 s,@libexecdir@,$libexecdir,;t t
12209 s,@datadir@,$datadir,;t t
12210 s,@sysconfdir@,$sysconfdir,;t t
12211 s,@sharedstatedir@,$sharedstatedir,;t t
12212 s,@localstatedir@,$localstatedir,;t t
12213 s,@libdir@,$libdir,;t t
12214 s,@includedir@,$includedir,;t t
12215 s,@oldincludedir@,$oldincludedir,;t t
12216 s,@infodir@,$infodir,;t t
12217 s,@mandir@,$mandir,;t t
12218 s,@build_alias@,$build_alias,;t t
12219 s,@host_alias@,$host_alias,;t t
12220 s,@target_alias@,$target_alias,;t t
12221 s,@DEFS@,$DEFS,;t t
12222 s,@ECHO_C@,$ECHO_C,;t t
12223 s,@ECHO_N@,$ECHO_N,;t t
12224 s,@ECHO_T@,$ECHO_T,;t t
12225 s,@LIBS@,$LIBS,;t t
12226 s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
12227 s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
12228 s,@newlib_basedir@,$newlib_basedir,;t t
12229 s,@build@,$build,;t t
12230 s,@build_cpu@,$build_cpu,;t t
12231 s,@build_vendor@,$build_vendor,;t t
12232 s,@build_os@,$build_os,;t t
12233 s,@host@,$host,;t t
12234 s,@host_cpu@,$host_cpu,;t t
12235 s,@host_vendor@,$host_vendor,;t t
12236 s,@host_os@,$host_os,;t t
12237 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12238 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12239 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12240 s,@CYGPATH_W@,$CYGPATH_W,;t t
12241 s,@PACKAGE@,$PACKAGE,;t t
12242 s,@VERSION@,$VERSION,;t t
12243 s,@ACLOCAL@,$ACLOCAL,;t t
12244 s,@AUTOCONF@,$AUTOCONF,;t t
12245 s,@AUTOMAKE@,$AUTOMAKE,;t t
12246 s,@AUTOHEADER@,$AUTOHEADER,;t t
12247 s,@MAKEINFO@,$MAKEINFO,;t t
12248 s,@install_sh@,$install_sh,;t t
12249 s,@STRIP@,$STRIP,;t t
12250 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12251 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12252 s,@mkdir_p@,$mkdir_p,;t t
12253 s,@AWK@,$AWK,;t t
12254 s,@SET_MAKE@,$SET_MAKE,;t t
12255 s,@am__leading_dot@,$am__leading_dot,;t t
12256 s,@AMTAR@,$AMTAR,;t t
12257 s,@am__tar@,$am__tar,;t t
12258 s,@am__untar@,$am__untar,;t t
12259 s,@CC@,$CC,;t t
12260 s,@DEPDIR@,$DEPDIR,;t t
12261 s,@am__include@,$am__include,;t t
12262 s,@am__quote@,$am__quote,;t t
12263 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12264 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12265 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12266 s,@CCDEPMODE@,$CCDEPMODE,;t t
12267 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12268 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12269 s,@AS@,$AS,;t t
12270 s,@ac_ct_AS@,$ac_ct_AS,;t t
12271 s,@AR@,$AR,;t t
12272 s,@ac_ct_AR@,$ac_ct_AR,;t t
12273 s,@RANLIB@,$RANLIB,;t t
12274 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12275 s,@READELF@,$READELF,;t t
12276 s,@ac_ct_READELF@,$ac_ct_READELF,;t t
12277 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12278 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12279 s,@MAINT@,$MAINT,;t t
12280 s,@CCAS@,$CCAS,;t t
12281 s,@CCASFLAGS@,$CCASFLAGS,;t t
12282 s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
12283 s,@LDFLAGS@,$LDFLAGS,;t t
12284 s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
12285 s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
12286 s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
12287 s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
12288 s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
12289 s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
12290 s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
12291 s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
12292 s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
12293 s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
12294 s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
12295 s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
12296 s,@OBJEXT@,$OBJEXT,;t t
12297 s,@oext@,$oext,;t t
12298 s,@aext@,$aext,;t t
12299 s,@lpfx@,$lpfx,;t t
12300 s,@libm_machine_dir@,$libm_machine_dir,;t t
12301 s,@machine_dir@,$machine_dir,;t t
12302 s,@sys_dir@,$sys_dir,;t t
12303 s,@SED@,$SED,;t t
12304 s,@DLLTOOL@,$DLLTOOL,;t t
12305 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12306 s,@OBJDUMP@,$OBJDUMP,;t t
12307 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12308 s,@LIBTOOL@,$LIBTOOL,;t t
12309 s,@CFLAGS@,$CFLAGS,;t t
12310 s,@CPPFLAGS@,$CPPFLAGS,;t t
12311 s,@ac_ct_CC@,$ac_ct_CC,;t t
12312 s,@EXEEXT@,$EXEEXT,;t t
12313 s,@EGREP@,$EGREP,;t t
12314 s,@FGREP@,$FGREP,;t t
12315 s,@GREP@,$GREP,;t t
12316 s,@LD@,$LD,;t t
12317 s,@DUMPBIN@,$DUMPBIN,;t t
12318 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12319 s,@NM@,$NM,;t t
12320 s,@LN_S@,$LN_S,;t t
12321 s,@lt_ECHO@,$lt_ECHO,;t t
12322 s,@CPP@,$CPP,;t t
12323 s,@NEWLIB_HW_FP_TRUE@,$NEWLIB_HW_FP_TRUE,;t t
12324 s,@NEWLIB_HW_FP_FALSE@,$NEWLIB_HW_FP_FALSE,;t t
12325 s,@CC_FOR_NEWLIB@,$CC_FOR_NEWLIB,;t t
12326 s,@subdirs@,$subdirs,;t t
12327 s,@HAVE_DOC_TRUE@,$HAVE_DOC_TRUE,;t t
12328 s,@HAVE_DOC_FALSE@,$HAVE_DOC_FALSE,;t t
12329 s,@EXTRA_DIRS@,$EXTRA_DIRS,;t t
12330 s,@CRT0@,$CRT0,;t t
12331 s,@CRT0_DIR@,$CRT0_DIR,;t t
12332 s,@CRT1@,$CRT1,;t t
12333 s,@CRT1_DIR@,$CRT1_DIR,;t t
12334 s,@LIBM_MACHINE_OBJECTLIST@,$LIBM_MACHINE_OBJECTLIST,;t t
12335 s,@MACHINE_OBJECTLIST@,$MACHINE_OBJECTLIST,;t t
12336 s,@SYS_OBJECTLIST@,$SYS_OBJECTLIST,;t t
12337 s,@SYS_MACH_OBJECTLIST@,$SYS_MACH_OBJECTLIST,;t t
12338 s,@POSIX_OBJECTLIST@,$POSIX_OBJECTLIST,;t t
12339 s,@SIGNAL_OBJECTLIST@,$SIGNAL_OBJECTLIST,;t t
12340 s,@SYSCALL_OBJECTLIST@,$SYSCALL_OBJECTLIST,;t t
12341 s,@UNIX_OBJECTLIST@,$UNIX_OBJECTLIST,;t t
12342 s,@STDIO64_OBJECTLIST@,$STDIO64_OBJECTLIST,;t t
12343 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12344 s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
12345 s,@libc_cv_array_aliasing@,$libc_cv_array_aliasing,;t t
12346 s,@LIBOBJS@,$LIBOBJS,;t t
12347 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12348 CEOF
12349
12350 _ACEOF
12351
12352   cat >>$CONFIG_STATUS <<\_ACEOF
12353   # Split the substitutions into bite-sized pieces for seds with
12354   # small command number limits, like on Digital OSF/1 and HP-UX.
12355   ac_max_sed_lines=48
12356   ac_sed_frag=1 # Number of current file.
12357   ac_beg=1 # First line for current file.
12358   ac_end=$ac_max_sed_lines # Line after last line for current file.
12359   ac_more_lines=:
12360   ac_sed_cmds=
12361   while $ac_more_lines; do
12362     if test $ac_beg -gt 1; then
12363       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12364     else
12365       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12366     fi
12367     if test ! -s $tmp/subs.frag; then
12368       ac_more_lines=false
12369     else
12370       # The purpose of the label and of the branching condition is to
12371       # speed up the sed processing (if there are no `@' at all, there
12372       # is no need to browse any of the substitutions).
12373       # These are the two extra sed commands mentioned above.
12374       (echo ':t
12375   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12376       if test -z "$ac_sed_cmds"; then
12377         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12378       else
12379         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12380       fi
12381       ac_sed_frag=`expr $ac_sed_frag + 1`
12382       ac_beg=$ac_end
12383       ac_end=`expr $ac_end + $ac_max_sed_lines`
12384     fi
12385   done
12386   if test -z "$ac_sed_cmds"; then
12387     ac_sed_cmds=cat
12388   fi
12389 fi # test -n "$CONFIG_FILES"
12390
12391 _ACEOF
12392 cat >>$CONFIG_STATUS <<\_ACEOF
12393 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12394   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12395   case $ac_file in
12396   - | *:- | *:-:* ) # input from stdin
12397         cat >$tmp/stdin
12398         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12399         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12400   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12401         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12402   * )   ac_file_in=$ac_file.in ;;
12403   esac
12404
12405   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12406   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12408          X"$ac_file" : 'X\(//\)[^/]' \| \
12409          X"$ac_file" : 'X\(//\)$' \| \
12410          X"$ac_file" : 'X\(/\)' \| \
12411          .     : '\(.\)' 2>/dev/null ||
12412 echo X"$ac_file" |
12413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12414           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12415           /^X\(\/\/\)$/{ s//\1/; q; }
12416           /^X\(\/\).*/{ s//\1/; q; }
12417           s/.*/./; q'`
12418   { if $as_mkdir_p; then
12419     mkdir -p "$ac_dir"
12420   else
12421     as_dir="$ac_dir"
12422     as_dirs=
12423     while test ! -d "$as_dir"; do
12424       as_dirs="$as_dir $as_dirs"
12425       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12427          X"$as_dir" : 'X\(//\)[^/]' \| \
12428          X"$as_dir" : 'X\(//\)$' \| \
12429          X"$as_dir" : 'X\(/\)' \| \
12430          .     : '\(.\)' 2>/dev/null ||
12431 echo X"$as_dir" |
12432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12433           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12434           /^X\(\/\/\)$/{ s//\1/; q; }
12435           /^X\(\/\).*/{ s//\1/; q; }
12436           s/.*/./; q'`
12437     done
12438     test ! -n "$as_dirs" || mkdir $as_dirs
12439   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12440 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12441    { (exit 1); exit 1; }; }; }
12442
12443   ac_builddir=.
12444
12445 if test "$ac_dir" != .; then
12446   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12447   # A "../" for each directory in $ac_dir_suffix.
12448   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12449 else
12450   ac_dir_suffix= ac_top_builddir=
12451 fi
12452
12453 case $srcdir in
12454   .)  # No --srcdir option.  We are building in place.
12455     ac_srcdir=.
12456     if test -z "$ac_top_builddir"; then
12457        ac_top_srcdir=.
12458     else
12459        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12460     fi ;;
12461   [\\/]* | ?:[\\/]* )  # Absolute path.
12462     ac_srcdir=$srcdir$ac_dir_suffix;
12463     ac_top_srcdir=$srcdir ;;
12464   *) # Relative path.
12465     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12466     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12467 esac
12468
12469 # Do not use `cd foo && pwd` to compute absolute paths, because
12470 # the directories may not exist.
12471 case `pwd` in
12472 .) ac_abs_builddir="$ac_dir";;
12473 *)
12474   case "$ac_dir" in
12475   .) ac_abs_builddir=`pwd`;;
12476   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12477   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12478   esac;;
12479 esac
12480 case $ac_abs_builddir in
12481 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12482 *)
12483   case ${ac_top_builddir}. in
12484   .) ac_abs_top_builddir=$ac_abs_builddir;;
12485   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12486   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12487   esac;;
12488 esac
12489 case $ac_abs_builddir in
12490 .) ac_abs_srcdir=$ac_srcdir;;
12491 *)
12492   case $ac_srcdir in
12493   .) ac_abs_srcdir=$ac_abs_builddir;;
12494   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12495   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12496   esac;;
12497 esac
12498 case $ac_abs_builddir in
12499 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12500 *)
12501   case $ac_top_srcdir in
12502   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12503   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12504   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12505   esac;;
12506 esac
12507
12508
12509   case $INSTALL in
12510   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12511   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12512   esac
12513
12514   if test x"$ac_file" != x-; then
12515     { echo "$as_me:$LINENO: creating $ac_file" >&5
12516 echo "$as_me: creating $ac_file" >&6;}
12517     rm -f "$ac_file"
12518   fi
12519   # Let's still pretend it is `configure' which instantiates (i.e., don't
12520   # use $as_me), people would be surprised to read:
12521   #    /* config.h.  Generated by config.status.  */
12522   if test x"$ac_file" = x-; then
12523     configure_input=
12524   else
12525     configure_input="$ac_file.  "
12526   fi
12527   configure_input=$configure_input"Generated from `echo $ac_file_in |
12528                                      sed 's,.*/,,'` by configure."
12529
12530   # First look for the input files in the build tree, otherwise in the
12531   # src tree.
12532   ac_file_inputs=`IFS=:
12533     for f in $ac_file_in; do
12534       case $f in
12535       -) echo $tmp/stdin ;;
12536       [\\/$]*)
12537          # Absolute (can't be DOS-style, as IFS=:)
12538          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12539 echo "$as_me: error: cannot find input file: $f" >&2;}
12540    { (exit 1); exit 1; }; }
12541          echo "$f";;
12542       *) # Relative
12543          if test -f "$f"; then
12544            # Build tree
12545            echo "$f"
12546          elif test -f "$srcdir/$f"; then
12547            # Source tree
12548            echo "$srcdir/$f"
12549          else
12550            # /dev/null tree
12551            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12552 echo "$as_me: error: cannot find input file: $f" >&2;}
12553    { (exit 1); exit 1; }; }
12554          fi;;
12555       esac
12556     done` || { (exit 1); exit 1; }
12557 _ACEOF
12558 cat >>$CONFIG_STATUS <<_ACEOF
12559   sed "$ac_vpsub
12560 $extrasub
12561 _ACEOF
12562 cat >>$CONFIG_STATUS <<\_ACEOF
12563 :t
12564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12565 s,@configure_input@,$configure_input,;t t
12566 s,@srcdir@,$ac_srcdir,;t t
12567 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12568 s,@top_srcdir@,$ac_top_srcdir,;t t
12569 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12570 s,@builddir@,$ac_builddir,;t t
12571 s,@abs_builddir@,$ac_abs_builddir,;t t
12572 s,@top_builddir@,$ac_top_builddir,;t t
12573 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12574 s,@INSTALL@,$ac_INSTALL,;t t
12575 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12576   rm -f $tmp/stdin
12577   if test x"$ac_file" != x-; then
12578     mv $tmp/out $ac_file
12579   else
12580     cat $tmp/out
12581     rm -f $tmp/out
12582   fi
12583
12584   # Run the commands associated with the file.
12585   case $ac_file in
12586     Makefile ) if test -n "$CONFIG_FILES"; then
12587   unset ac_file
12588   . ${newlib_basedir}/../config-ml.in
12589 fi ;;
12590   esac
12591 done
12592 _ACEOF
12593 cat >>$CONFIG_STATUS <<\_ACEOF
12594
12595 #
12596 # CONFIG_HEADER section.
12597 #
12598
12599 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12600 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12601 #
12602 # ac_d sets the value in "#define NAME VALUE" lines.
12603 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12604 ac_dB='[         ].*$,\1#\2'
12605 ac_dC=' '
12606 ac_dD=',;t'
12607 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12608 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12609 ac_uB='$,\1#\2define\3'
12610 ac_uC=' '
12611 ac_uD=',;t'
12612
12613 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12614   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12615   case $ac_file in
12616   - | *:- | *:-:* ) # input from stdin
12617         cat >$tmp/stdin
12618         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12619         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12620   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12621         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12622   * )   ac_file_in=$ac_file.in ;;
12623   esac
12624
12625   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12626 echo "$as_me: creating $ac_file" >&6;}
12627
12628   # First look for the input files in the build tree, otherwise in the
12629   # src tree.
12630   ac_file_inputs=`IFS=:
12631     for f in $ac_file_in; do
12632       case $f in
12633       -) echo $tmp/stdin ;;
12634       [\\/$]*)
12635          # Absolute (can't be DOS-style, as IFS=:)
12636          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12637 echo "$as_me: error: cannot find input file: $f" >&2;}
12638    { (exit 1); exit 1; }; }
12639          # Do quote $f, to prevent DOS paths from being IFS'd.
12640          echo "$f";;
12641       *) # Relative
12642          if test -f "$f"; then
12643            # Build tree
12644            echo "$f"
12645          elif test -f "$srcdir/$f"; then
12646            # Source tree
12647            echo "$srcdir/$f"
12648          else
12649            # /dev/null tree
12650            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12651 echo "$as_me: error: cannot find input file: $f" >&2;}
12652    { (exit 1); exit 1; }; }
12653          fi;;
12654       esac
12655     done` || { (exit 1); exit 1; }
12656   # Remove the trailing spaces.
12657   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12658
12659 _ACEOF
12660
12661 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12662 # `conftest.undefs', that substitutes the proper values into
12663 # config.h.in to produce config.h.  The first handles `#define'
12664 # templates, and the second `#undef' templates.
12665 # And first: Protect against being on the right side of a sed subst in
12666 # config.status.  Protect against being in an unquoted here document
12667 # in config.status.
12668 rm -f conftest.defines conftest.undefs
12669 # Using a here document instead of a string reduces the quoting nightmare.
12670 # Putting comments in sed scripts is not portable.
12671 #
12672 # `end' is used to avoid that the second main sed command (meant for
12673 # 0-ary CPP macros) applies to n-ary macro definitions.
12674 # See the Autoconf documentation for `clear'.
12675 cat >confdef2sed.sed <<\_ACEOF
12676 s/[\\&,]/\\&/g
12677 s,[\\$`],\\&,g
12678 t clear
12679 : clear
12680 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12681 t end
12682 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12683 : end
12684 _ACEOF
12685 # If some macros were called several times there might be several times
12686 # the same #defines, which is useless.  Nevertheless, we may not want to
12687 # sort them, since we want the *last* AC-DEFINE to be honored.
12688 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12689 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12690 rm -f confdef2sed.sed
12691
12692 # This sed command replaces #undef with comments.  This is necessary, for
12693 # example, in the case of _POSIX_SOURCE, which is predefined and required
12694 # on some systems where configure will not decide to define it.
12695 cat >>conftest.undefs <<\_ACEOF
12696 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12697 _ACEOF
12698
12699 # Break up conftest.defines because some shells have a limit on the size
12700 # of here documents, and old seds have small limits too (100 cmds).
12701 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12702 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12703 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12704 echo '  :' >>$CONFIG_STATUS
12705 rm -f conftest.tail
12706 while grep . conftest.defines >/dev/null
12707 do
12708   # Write a limited-size here document to $tmp/defines.sed.
12709   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12710   # Speed up: don't consider the non `#define' lines.
12711   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12712   # Work around the forget-to-reset-the-flag bug.
12713   echo 't clr' >>$CONFIG_STATUS
12714   echo ': clr' >>$CONFIG_STATUS
12715   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12716   echo 'CEOF
12717   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12718   rm -f $tmp/in
12719   mv $tmp/out $tmp/in
12720 ' >>$CONFIG_STATUS
12721   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12722   rm -f conftest.defines
12723   mv conftest.tail conftest.defines
12724 done
12725 rm -f conftest.defines
12726 echo '  fi # grep' >>$CONFIG_STATUS
12727 echo >>$CONFIG_STATUS
12728
12729 # Break up conftest.undefs because some shells have a limit on the size
12730 # of here documents, and old seds have small limits too (100 cmds).
12731 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12732 rm -f conftest.tail
12733 while grep . conftest.undefs >/dev/null
12734 do
12735   # Write a limited-size here document to $tmp/undefs.sed.
12736   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12737   # Speed up: don't consider the non `#undef'
12738   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12739   # Work around the forget-to-reset-the-flag bug.
12740   echo 't clr' >>$CONFIG_STATUS
12741   echo ': clr' >>$CONFIG_STATUS
12742   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12743   echo 'CEOF
12744   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12745   rm -f $tmp/in
12746   mv $tmp/out $tmp/in
12747 ' >>$CONFIG_STATUS
12748   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12749   rm -f conftest.undefs
12750   mv conftest.tail conftest.undefs
12751 done
12752 rm -f conftest.undefs
12753
12754 cat >>$CONFIG_STATUS <<\_ACEOF
12755   # Let's still pretend it is `configure' which instantiates (i.e., don't
12756   # use $as_me), people would be surprised to read:
12757   #    /* config.h.  Generated by config.status.  */
12758   if test x"$ac_file" = x-; then
12759     echo "/* Generated by configure.  */" >$tmp/config.h
12760   else
12761     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12762   fi
12763   cat $tmp/in >>$tmp/config.h
12764   rm -f $tmp/in
12765   if test x"$ac_file" != x-; then
12766     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12767       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12768 echo "$as_me: $ac_file is unchanged" >&6;}
12769     else
12770       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12772          X"$ac_file" : 'X\(//\)[^/]' \| \
12773          X"$ac_file" : 'X\(//\)$' \| \
12774          X"$ac_file" : 'X\(/\)' \| \
12775          .     : '\(.\)' 2>/dev/null ||
12776 echo X"$ac_file" |
12777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12778           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12779           /^X\(\/\/\)$/{ s//\1/; q; }
12780           /^X\(\/\).*/{ s//\1/; q; }
12781           s/.*/./; q'`
12782       { if $as_mkdir_p; then
12783     mkdir -p "$ac_dir"
12784   else
12785     as_dir="$ac_dir"
12786     as_dirs=
12787     while test ! -d "$as_dir"; do
12788       as_dirs="$as_dir $as_dirs"
12789       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12791          X"$as_dir" : 'X\(//\)[^/]' \| \
12792          X"$as_dir" : 'X\(//\)$' \| \
12793          X"$as_dir" : 'X\(/\)' \| \
12794          .     : '\(.\)' 2>/dev/null ||
12795 echo X"$as_dir" |
12796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12797           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12798           /^X\(\/\/\)$/{ s//\1/; q; }
12799           /^X\(\/\).*/{ s//\1/; q; }
12800           s/.*/./; q'`
12801     done
12802     test ! -n "$as_dirs" || mkdir $as_dirs
12803   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12804 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12805    { (exit 1); exit 1; }; }; }
12806
12807       rm -f $ac_file
12808       mv $tmp/config.h $ac_file
12809     fi
12810   else
12811     cat $tmp/config.h
12812     rm -f $tmp/config.h
12813   fi
12814 # Compute $ac_file's index in $config_headers.
12815 _am_stamp_count=1
12816 for _am_header in $config_headers :; do
12817   case $_am_header in
12818     $ac_file | $ac_file:* )
12819       break ;;
12820     * )
12821       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12822   esac
12823 done
12824 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12825 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12826          X$ac_file : 'X\(//\)[^/]' \| \
12827          X$ac_file : 'X\(//\)$' \| \
12828          X$ac_file : 'X\(/\)' \| \
12829          .     : '\(.\)' 2>/dev/null ||
12830 echo X$ac_file |
12831     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12832           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12833           /^X\(\/\/\)$/{ s//\1/; q; }
12834           /^X\(\/\).*/{ s//\1/; q; }
12835           s/.*/./; q'`/stamp-h$_am_stamp_count
12836 done
12837 _ACEOF
12838 cat >>$CONFIG_STATUS <<\_ACEOF
12839
12840 #
12841 # CONFIG_COMMANDS section.
12842 #
12843 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12844   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12845   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12846   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12847 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12848          X"$ac_dest" : 'X\(//\)[^/]' \| \
12849          X"$ac_dest" : 'X\(//\)$' \| \
12850          X"$ac_dest" : 'X\(/\)' \| \
12851          .     : '\(.\)' 2>/dev/null ||
12852 echo X"$ac_dest" |
12853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12854           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12855           /^X\(\/\/\)$/{ s//\1/; q; }
12856           /^X\(\/\).*/{ s//\1/; q; }
12857           s/.*/./; q'`
12858   { if $as_mkdir_p; then
12859     mkdir -p "$ac_dir"
12860   else
12861     as_dir="$ac_dir"
12862     as_dirs=
12863     while test ! -d "$as_dir"; do
12864       as_dirs="$as_dir $as_dirs"
12865       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12867          X"$as_dir" : 'X\(//\)[^/]' \| \
12868          X"$as_dir" : 'X\(//\)$' \| \
12869          X"$as_dir" : 'X\(/\)' \| \
12870          .     : '\(.\)' 2>/dev/null ||
12871 echo X"$as_dir" |
12872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12874           /^X\(\/\/\)$/{ s//\1/; q; }
12875           /^X\(\/\).*/{ s//\1/; q; }
12876           s/.*/./; q'`
12877     done
12878     test ! -n "$as_dirs" || mkdir $as_dirs
12879   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12881    { (exit 1); exit 1; }; }; }
12882
12883   ac_builddir=.
12884
12885 if test "$ac_dir" != .; then
12886   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12887   # A "../" for each directory in $ac_dir_suffix.
12888   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12889 else
12890   ac_dir_suffix= ac_top_builddir=
12891 fi
12892
12893 case $srcdir in
12894   .)  # No --srcdir option.  We are building in place.
12895     ac_srcdir=.
12896     if test -z "$ac_top_builddir"; then
12897        ac_top_srcdir=.
12898     else
12899        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12900     fi ;;
12901   [\\/]* | ?:[\\/]* )  # Absolute path.
12902     ac_srcdir=$srcdir$ac_dir_suffix;
12903     ac_top_srcdir=$srcdir ;;
12904   *) # Relative path.
12905     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12906     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12907 esac
12908
12909 # Do not use `cd foo && pwd` to compute absolute paths, because
12910 # the directories may not exist.
12911 case `pwd` in
12912 .) ac_abs_builddir="$ac_dir";;
12913 *)
12914   case "$ac_dir" in
12915   .) ac_abs_builddir=`pwd`;;
12916   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12917   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12918   esac;;
12919 esac
12920 case $ac_abs_builddir in
12921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12922 *)
12923   case ${ac_top_builddir}. in
12924   .) ac_abs_top_builddir=$ac_abs_builddir;;
12925   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12926   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12927   esac;;
12928 esac
12929 case $ac_abs_builddir in
12930 .) ac_abs_srcdir=$ac_srcdir;;
12931 *)
12932   case $ac_srcdir in
12933   .) ac_abs_srcdir=$ac_abs_builddir;;
12934   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12935   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12936   esac;;
12937 esac
12938 case $ac_abs_builddir in
12939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12940 *)
12941   case $ac_top_srcdir in
12942   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12943   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12944   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12945   esac;;
12946 esac
12947
12948
12949   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12950 echo "$as_me: executing $ac_dest commands" >&6;}
12951   case $ac_dest in
12952     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12953   # Strip MF so we end up with the name of the file.
12954   mf=`echo "$mf" | sed -e 's/:.*$//'`
12955   # Check whether this is an Automake generated Makefile or not.
12956   # We used to match only the files named `Makefile.in', but
12957   # some people rename them; so instead we look at the file content.
12958   # Grep'ing the first line is not enough: some people post-process
12959   # each Makefile.in and add a new line on top of each file to say so.
12960   # So let's grep whole file.
12961   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12962     dirpart=`(dirname "$mf") 2>/dev/null ||
12963 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12964          X"$mf" : 'X\(//\)[^/]' \| \
12965          X"$mf" : 'X\(//\)$' \| \
12966          X"$mf" : 'X\(/\)' \| \
12967          .     : '\(.\)' 2>/dev/null ||
12968 echo X"$mf" |
12969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12970           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12971           /^X\(\/\/\)$/{ s//\1/; q; }
12972           /^X\(\/\).*/{ s//\1/; q; }
12973           s/.*/./; q'`
12974   else
12975     continue
12976   fi
12977   # Extract the definition of DEPDIR, am__include, and am__quote
12978   # from the Makefile without running `make'.
12979   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12980   test -z "$DEPDIR" && continue
12981   am__include=`sed -n 's/^am__include = //p' < "$mf"`
12982   test -z "am__include" && continue
12983   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12984   # When using ansi2knr, U may be empty or an underscore; expand it
12985   U=`sed -n 's/^U = //p' < "$mf"`
12986   # Find all dependency output files, they are included files with
12987   # $(DEPDIR) in their names.  We invoke sed twice because it is the
12988   # simplest approach to changing $(DEPDIR) to its actual value in the
12989   # expansion.
12990   for file in `sed -n "
12991     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12992        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12993     # Make sure the directory exists.
12994     test -f "$dirpart/$file" && continue
12995     fdir=`(dirname "$file") 2>/dev/null ||
12996 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12997          X"$file" : 'X\(//\)[^/]' \| \
12998          X"$file" : 'X\(//\)$' \| \
12999          X"$file" : 'X\(/\)' \| \
13000          .     : '\(.\)' 2>/dev/null ||
13001 echo X"$file" |
13002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13004           /^X\(\/\/\)$/{ s//\1/; q; }
13005           /^X\(\/\).*/{ s//\1/; q; }
13006           s/.*/./; q'`
13007     { if $as_mkdir_p; then
13008     mkdir -p $dirpart/$fdir
13009   else
13010     as_dir=$dirpart/$fdir
13011     as_dirs=
13012     while test ! -d "$as_dir"; do
13013       as_dirs="$as_dir $as_dirs"
13014       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13016          X"$as_dir" : 'X\(//\)[^/]' \| \
13017          X"$as_dir" : 'X\(//\)$' \| \
13018          X"$as_dir" : 'X\(/\)' \| \
13019          .     : '\(.\)' 2>/dev/null ||
13020 echo X"$as_dir" |
13021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13022           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13023           /^X\(\/\/\)$/{ s//\1/; q; }
13024           /^X\(\/\).*/{ s//\1/; q; }
13025           s/.*/./; q'`
13026     done
13027     test ! -n "$as_dirs" || mkdir $as_dirs
13028   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13029 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13030    { (exit 1); exit 1; }; }; }
13031
13032     # echo "creating $dirpart/$file"
13033     echo '# dummy' > "$dirpart/$file"
13034   done
13035 done
13036  ;;
13037     libtool )
13038
13039     # See if we are running on zsh, and set the options which allow our
13040     # commands through without removal of \ escapes.
13041     if test -n "${ZSH_VERSION+set}" ; then
13042       setopt NO_GLOB_SUBST
13043     fi
13044
13045     cfgfile="${ofile}T"
13046     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13047     $RM "$cfgfile"
13048
13049     cat <<_LT_EOF >> "$cfgfile"
13050 #! $SHELL
13051
13052 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13053 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13054 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13055 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13056 #
13057 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13058 # 2006, 2007 Free Software Foundation, Inc.
13059 #
13060 # This file is part of GNU Libtool:
13061 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13062 #
13063 # This program is free software; you can redistribute it and/or modify
13064 # it under the terms of the GNU General Public License as published by
13065 # the Free Software Foundation; either version 2 of the License, or
13066 # (at your option) any later version.
13067 #
13068 # This program is distributed in the hope that it will be useful, but
13069 # WITHOUT ANY WARRANTY; without even the implied warranty of
13070 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13071 # General Public License for more details.
13072 #
13073 # You should have received a copy of the GNU General Public License
13074 # along with this program; if not, a copy can be downloaded from
13075 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13076 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13077 # MA 02110-1301, USA.
13078 #
13079 # As a special exception to the GNU General Public License, if you
13080 # distribute this file as part of a program that contains a
13081 # configuration script generated by Autoconf, you may include it under
13082 # the same distribution terms that you use for the rest of that program.
13083
13084
13085 # The names of the tagged configurations supported by this script.
13086 available_tags=""
13087
13088 # ### BEGIN LIBTOOL CONFIG
13089
13090 # A sed program that does not truncate output.
13091 SED=$lt_SED
13092
13093 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13094 Xsed="\$SED -e 1s/^X//"
13095
13096 # Assembler program.
13097 AS=$AS
13098
13099 # DLL creation program.
13100 DLLTOOL=$DLLTOOL
13101
13102 # Object dumper program.
13103 OBJDUMP=$OBJDUMP
13104
13105 # Which release of libtool.m4 was used?
13106 macro_version=$macro_version
13107 macro_revision=$macro_revision
13108
13109 # Whether or not to build shared libraries.
13110 build_libtool_libs=$enable_shared
13111
13112 # Whether or not to build static libraries.
13113 build_old_libs=$enable_static
13114
13115 # What type of objects to build.
13116 pic_mode=$pic_mode
13117
13118 # Whether or not to optimize for fast installation.
13119 fast_install=$enable_fast_install
13120
13121 # The host system.
13122 host_alias=$host_alias
13123 host=$host
13124 host_os=$host_os
13125
13126 # The build system.
13127 build_alias=$build_alias
13128 build=$build
13129 build_os=$build_os
13130
13131 # A grep program that handles long lines.
13132 GREP=$lt_GREP
13133
13134 # An ERE matcher.
13135 EGREP=$lt_EGREP
13136
13137 # A literal string matcher.
13138 FGREP=$lt_FGREP
13139
13140 # A BSD- or MS-compatible name lister.
13141 NM=$lt_NM
13142
13143 # Whether we need soft or hard links.
13144 LN_S=$lt_LN_S
13145
13146 # What is the maximum length of a command?
13147 max_cmd_len=$max_cmd_len
13148
13149 # Object file suffix (normally "o").
13150 objext=$ac_objext
13151
13152 # Executable file suffix (normally "").
13153 exeext=$exeext
13154
13155 # whether the shell understands "unset".
13156 lt_unset=$lt_unset
13157
13158 # turn spaces into newlines.
13159 SP2NL=$lt_lt_SP2NL
13160
13161 # turn newlines into spaces.
13162 NL2SP=$lt_lt_NL2SP
13163
13164 # How to create reloadable object files.
13165 reload_flag=$lt_reload_flag
13166 reload_cmds=$lt_reload_cmds
13167
13168 # Method to check whether dependent libraries are shared objects.
13169 deplibs_check_method=$lt_deplibs_check_method
13170
13171 # Command to use when deplibs_check_method == "file_magic".
13172 file_magic_cmd=$lt_file_magic_cmd
13173
13174 # The archiver.
13175 AR=$lt_AR
13176 AR_FLAGS=$lt_AR_FLAGS
13177
13178 # A symbol stripping program.
13179 STRIP=$lt_STRIP
13180
13181 # Commands used to install an old-style archive.
13182 RANLIB=$lt_RANLIB
13183 old_postinstall_cmds=$lt_old_postinstall_cmds
13184 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13185
13186 # A C compiler.
13187 LTCC=$lt_CC
13188
13189 # LTCC compiler flags.
13190 LTCFLAGS=$lt_CFLAGS
13191
13192 # Take the output of nm and produce a listing of raw symbols and C names.
13193 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13194
13195 # Transform the output of nm in a proper C declaration.
13196 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13197
13198 # Transform the output of nm in a C name address pair.
13199 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13200
13201 # The name of the directory that contains temporary libtool files.
13202 objdir=$objdir
13203
13204 # Shell to use when invoking shell scripts.
13205 SHELL=$lt_SHELL
13206
13207 # An echo program that does not interpret backslashes.
13208 ECHO=$lt_ECHO
13209
13210 # Used to examine libraries when file_magic_cmd begins with "file".
13211 MAGIC_CMD=$MAGIC_CMD
13212
13213 # Must we lock files when doing compilation?
13214 need_locks=$lt_need_locks
13215
13216 # Old archive suffix (normally "a").
13217 libext=$libext
13218
13219 # Shared library suffix (normally ".so").
13220 shrext_cmds=$lt_shrext_cmds
13221
13222 # The commands to extract the exported symbol list from a shared archive.
13223 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13224
13225 # Variables whose values should be saved in libtool wrapper scripts and
13226 # restored at link time.
13227 variables_saved_for_relink=$lt_variables_saved_for_relink
13228
13229 # Do we need the "lib" prefix for modules?
13230 need_lib_prefix=$need_lib_prefix
13231
13232 # Do we need a version for libraries?
13233 need_version=$need_version
13234
13235 # Library versioning type.
13236 version_type=$version_type
13237
13238 # Shared library runtime path variable.
13239 runpath_var=$runpath_var
13240
13241 # Shared library path variable.
13242 shlibpath_var=$shlibpath_var
13243
13244 # Is shlibpath searched before the hard-coded library search path?
13245 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13246
13247 # Format of library name prefix.
13248 libname_spec=$lt_libname_spec
13249
13250 # List of archive names.  First name is the real one, the rest are links.
13251 # The last name is the one that the linker finds with -lNAME
13252 library_names_spec=$lt_library_names_spec
13253
13254 # The coded name of the library, if different from the real name.
13255 soname_spec=$lt_soname_spec
13256
13257 # Command to use after installation of a shared archive.
13258 postinstall_cmds=$lt_postinstall_cmds
13259
13260 # Command to use after uninstallation of a shared archive.
13261 postuninstall_cmds=$lt_postuninstall_cmds
13262
13263 # Commands used to finish a libtool library installation in a directory.
13264 finish_cmds=$lt_finish_cmds
13265
13266 # As "finish_cmds", except a single script fragment to be evaled but
13267 # not shown.
13268 finish_eval=$lt_finish_eval
13269
13270 # Whether we should hardcode library paths into libraries.
13271 hardcode_into_libs=$hardcode_into_libs
13272
13273 # Compile-time system search path for libraries.
13274 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13275
13276 # Run-time system search path for libraries.
13277 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13278
13279 # Whether dlopen is supported.
13280 dlopen_support=$enable_dlopen
13281
13282 # Whether dlopen of programs is supported.
13283 dlopen_self=$enable_dlopen_self
13284
13285 # Whether dlopen of statically linked programs is supported.
13286 dlopen_self_static=$enable_dlopen_self_static
13287
13288 # Commands to strip libraries.
13289 old_striplib=$lt_old_striplib
13290 striplib=$lt_striplib
13291
13292
13293 # The linker used to build libraries.
13294 LD=$lt_LD
13295
13296 # Commands used to build an old-style archive.
13297 old_archive_cmds=$lt_old_archive_cmds
13298
13299 # A language specific compiler.
13300 CC=$lt_compiler
13301
13302 # Is the compiler the GNU compiler?
13303 with_gcc=$GCC
13304
13305 # Compiler flag to turn off builtin functions.
13306 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13307
13308 # How to pass a linker flag through the compiler.
13309 wl=$lt_lt_prog_compiler_wl
13310
13311 # Additional compiler flags for building library objects.
13312 pic_flag=$lt_lt_prog_compiler_pic
13313
13314 # Compiler flag to prevent dynamic linking.
13315 link_static_flag=$lt_lt_prog_compiler_static
13316
13317 # Does compiler simultaneously support -c and -o options?
13318 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13319
13320 # Whether or not to add -lc for building shared libraries.
13321 build_libtool_need_lc=$archive_cmds_need_lc
13322
13323 # Whether or not to disallow shared libs when runtime libs are static.
13324 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13325
13326 # Compiler flag to allow reflexive dlopens.
13327 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13328
13329 # Compiler flag to generate shared objects directly from archives.
13330 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13331
13332 # Whether the compiler copes with passing no objects directly.
13333 compiler_needs_object=$lt_compiler_needs_object
13334
13335 # Create an old-style archive from a shared archive.
13336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13337
13338 # Create a temporary old-style archive to link instead of a shared archive.
13339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13340
13341 # Commands used to build a shared archive.
13342 archive_cmds=$lt_archive_cmds
13343 archive_expsym_cmds=$lt_archive_expsym_cmds
13344
13345 # Commands used to build a loadable module if different from building
13346 # a shared archive.
13347 module_cmds=$lt_module_cmds
13348 module_expsym_cmds=$lt_module_expsym_cmds
13349
13350 # Whether we are building with GNU ld or not.
13351 with_gnu_ld=$lt_with_gnu_ld
13352
13353 # Flag that allows shared libraries with undefined symbols to be built.
13354 allow_undefined_flag=$lt_allow_undefined_flag
13355
13356 # Flag that enforces no undefined symbols.
13357 no_undefined_flag=$lt_no_undefined_flag
13358
13359 # Flag to hardcode \$libdir into a binary during linking.
13360 # This must work even if \$libdir does not exist
13361 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13362
13363 # If ld is used when linking, flag to hardcode \$libdir into a binary
13364 # during linking.  This must work even if \$libdir does not exist.
13365 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13366
13367 # Whether we need a single "-rpath" flag with a separated argument.
13368 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13369
13370 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13371 # DIR into the resulting binary.
13372 hardcode_direct=$hardcode_direct
13373
13374 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13375 # DIR into the resulting binary and the resulting library dependency is
13376 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13377 # library is relocated.
13378 hardcode_direct_absolute=$hardcode_direct_absolute
13379
13380 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13381 # into the resulting binary.
13382 hardcode_minus_L=$hardcode_minus_L
13383
13384 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13385 # into the resulting binary.
13386 hardcode_shlibpath_var=$hardcode_shlibpath_var
13387
13388 # Set to "yes" if building a shared library automatically hardcodes DIR
13389 # into the library and all subsequent libraries and executables linked
13390 # against it.
13391 hardcode_automatic=$hardcode_automatic
13392
13393 # Set to yes if linker adds runtime paths of dependent libraries
13394 # to runtime path list.
13395 inherit_rpath=$inherit_rpath
13396
13397 # Whether libtool must link a program against all its dependency libraries.
13398 link_all_deplibs=$link_all_deplibs
13399
13400 # Fix the shell variable \$srcfile for the compiler.
13401 fix_srcfile_path=$lt_fix_srcfile_path
13402
13403 # Set to "yes" if exported symbols are required.
13404 always_export_symbols=$always_export_symbols
13405
13406 # The commands to list exported symbols.
13407 export_symbols_cmds=$lt_export_symbols_cmds
13408
13409 # Symbols that should not be listed in the preloaded symbols.
13410 exclude_expsyms=$lt_exclude_expsyms
13411
13412 # Symbols that must always be exported.
13413 include_expsyms=$lt_include_expsyms
13414
13415 # Commands necessary for linking programs (against libraries) with templates.
13416 prelink_cmds=$lt_prelink_cmds
13417
13418 # Specify filename containing input files.
13419 file_list_spec=$lt_file_list_spec
13420
13421 # How to hardcode a shared library path into an executable.
13422 hardcode_action=$hardcode_action
13423
13424 # ### END LIBTOOL CONFIG
13425
13426 _LT_EOF
13427
13428   case $host_os in
13429   aix3*)
13430     cat <<\_LT_EOF >> "$cfgfile"
13431 # AIX sometimes has problems with the GCC collect2 program.  For some
13432 # reason, if we set the COLLECT_NAMES environment variable, the problems
13433 # vanish in a puff of smoke.
13434 if test "X${COLLECT_NAMES+set}" != Xset; then
13435   COLLECT_NAMES=
13436   export COLLECT_NAMES
13437 fi
13438 _LT_EOF
13439     ;;
13440   esac
13441
13442
13443 ltmain="$ac_aux_dir/ltmain.sh"
13444
13445
13446   # We use sed instead of cat because bash on DJGPP gets confused if
13447   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13448   # text mode, it properly converts lines to CR/LF.  This bash problem
13449   # is reportedly fixed, but why not run on old versions too?
13450   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13451     || (rm -f "$cfgfile"; exit 1)
13452
13453   case $xsi_shell in
13454   yes)
13455     cat << \_LT_EOF >> "$cfgfile"
13456 # func_dirname file append nondir_replacement
13457 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13458 # otherwise set result to NONDIR_REPLACEMENT.
13459 func_dirname ()
13460 {
13461   case ${1} in
13462     */*) func_dirname_result="${1%/*}${2}" ;;
13463     *  ) func_dirname_result="${3}" ;;
13464   esac
13465 }
13466
13467 # func_basename file
13468 func_basename ()
13469 {
13470   func_basename_result="${1##*/}"
13471 }
13472
13473 # func_stripname prefix suffix name
13474 # strip PREFIX and SUFFIX off of NAME.
13475 # PREFIX and SUFFIX must not contain globbing or regex special
13476 # characters, hashes, percent signs, but SUFFIX may contain a leading
13477 # dot (in which case that matches only a dot).
13478 func_stripname ()
13479 {
13480   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13481   # positional parameters, so assign one to ordinary parameter first.
13482   func_stripname_result=${3}
13483   func_stripname_result=${func_stripname_result#"${1}"}
13484   func_stripname_result=${func_stripname_result%"${2}"}
13485 }
13486
13487 # func_opt_split
13488 func_opt_split ()
13489 {
13490   func_opt_split_opt=${1%%=*}
13491   func_opt_split_arg=${1#*=}
13492 }
13493
13494 # func_lo2o object
13495 func_lo2o ()
13496 {
13497   case ${1} in
13498     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13499     *)    func_lo2o_result=${1} ;;
13500   esac
13501 }
13502 _LT_EOF
13503     ;;
13504   *) # Bourne compatible functions.
13505     cat << \_LT_EOF >> "$cfgfile"
13506 # func_dirname file append nondir_replacement
13507 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13508 # otherwise set result to NONDIR_REPLACEMENT.
13509 func_dirname ()
13510 {
13511   # Extract subdirectory from the argument.
13512   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13513   if test "X$func_dirname_result" = "X${1}"; then
13514     func_dirname_result="${3}"
13515   else
13516     func_dirname_result="$func_dirname_result${2}"
13517   fi
13518 }
13519
13520 # func_basename file
13521 func_basename ()
13522 {
13523   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13524 }
13525
13526 # func_stripname prefix suffix name
13527 # strip PREFIX and SUFFIX off of NAME.
13528 # PREFIX and SUFFIX must not contain globbing or regex special
13529 # characters, hashes, percent signs, but SUFFIX may contain a leading
13530 # dot (in which case that matches only a dot).
13531 # func_strip_suffix prefix name
13532 func_stripname ()
13533 {
13534   case ${2} in
13535     .*) func_stripname_result=`$ECHO "X${3}" \
13536            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13537     *)  func_stripname_result=`$ECHO "X${3}" \
13538            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13539   esac
13540 }
13541
13542 # sed scripts:
13543 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13544 my_sed_long_arg='1s/^-[^=]*=//'
13545
13546 # func_opt_split
13547 func_opt_split ()
13548 {
13549   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13550   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13551 }
13552
13553 # func_lo2o object
13554 func_lo2o ()
13555 {
13556   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13557 }
13558 _LT_EOF
13559 esac
13560
13561 case $lt_shell_append in
13562   yes)
13563     cat << \_LT_EOF >> "$cfgfile"
13564
13565 # func_append var value
13566 # Append VALUE to the end of shell variable VAR.
13567 func_append ()
13568 {
13569   eval "$1+=\$2"
13570 }
13571 _LT_EOF
13572     ;;
13573   *)
13574     cat << \_LT_EOF >> "$cfgfile"
13575
13576 # func_append var value
13577 # Append VALUE to the end of shell variable VAR.
13578 func_append ()
13579 {
13580   eval "$1=\$$1\$2"
13581 }
13582 _LT_EOF
13583     ;;
13584   esac
13585
13586
13587   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13588     || (rm -f "$cfgfile"; exit 1)
13589
13590   mv -f "$cfgfile" "$ofile" ||
13591     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13592   chmod +x "$ofile"
13593
13594  ;;
13595   esac
13596 done
13597 _ACEOF
13598
13599 cat >>$CONFIG_STATUS <<\_ACEOF
13600
13601 { (exit 0); exit 0; }
13602 _ACEOF
13603 chmod +x $CONFIG_STATUS
13604 ac_clean_files=$ac_clean_files_save
13605
13606
13607 # configure is writing to config.log, and then calls config.status.
13608 # config.status does its own redirection, appending to config.log.
13609 # Unfortunately, on DOS this fails, as config.log is still kept open
13610 # by configure, so config.status won't be able to write to it; its
13611 # output is simply discarded.  So we exec the FD to /dev/null,
13612 # effectively closing config.log, so it can be properly (re)opened and
13613 # appended to by config.status.  When coming back to configure, we
13614 # need to make the FD available again.
13615 if test "$no_create" != yes; then
13616   ac_cs_success=:
13617   ac_config_status_args=
13618   test "$silent" = yes &&
13619     ac_config_status_args="$ac_config_status_args --quiet"
13620   exec 5>/dev/null
13621   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13622   exec 5>>config.log
13623   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13624   # would make configure fail if this is the last instruction.
13625   $ac_cs_success || { (exit 1); exit 1; }
13626 fi
13627
13628 #
13629 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
13630 #
13631 if test "$no_recursion" != yes; then
13632
13633   # Remove --cache-file and --srcdir arguments so they do not pile up.
13634   ac_sub_configure_args=
13635   ac_prev=
13636   eval "set x $ac_configure_args"
13637   shift
13638   for ac_arg
13639   do
13640     if test -n "$ac_prev"; then
13641       ac_prev=
13642       continue
13643     fi
13644     case $ac_arg in
13645     -cache-file | --cache-file | --cache-fil | --cache-fi \
13646     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13647       ac_prev=cache_file ;;
13648     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13649     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13650     | --c=*)
13651       ;;
13652     --config-cache | -C)
13653       ;;
13654     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13655       ac_prev=srcdir ;;
13656     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13657       ;;
13658     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13659       ac_prev=prefix ;;
13660     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13661       ;;
13662     *)
13663       case $ac_arg in
13664       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13665       esac
13666       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
13667     esac
13668   done
13669
13670   # Always prepend --prefix to ensure using the same prefix
13671   # in subdir configurations.
13672   ac_arg="--prefix=$prefix"
13673   case $ac_arg in
13674   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13675   esac
13676   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
13677
13678   ac_popdir=`pwd`
13679   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13680
13681     # Do not complain, so a configure script can configure whichever
13682     # parts of a large source tree are present.
13683     test -d "$srcdir/$ac_dir" || continue
13684
13685     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
13686 echo "$as_me: configuring in $ac_dir" >&6;}
13687     { if $as_mkdir_p; then
13688     mkdir -p "$ac_dir"
13689   else
13690     as_dir="$ac_dir"
13691     as_dirs=
13692     while test ! -d "$as_dir"; do
13693       as_dirs="$as_dir $as_dirs"
13694       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13696          X"$as_dir" : 'X\(//\)[^/]' \| \
13697          X"$as_dir" : 'X\(//\)$' \| \
13698          X"$as_dir" : 'X\(/\)' \| \
13699          .     : '\(.\)' 2>/dev/null ||
13700 echo X"$as_dir" |
13701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13703           /^X\(\/\/\)$/{ s//\1/; q; }
13704           /^X\(\/\).*/{ s//\1/; q; }
13705           s/.*/./; q'`
13706     done
13707     test ! -n "$as_dirs" || mkdir $as_dirs
13708   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13709 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13710    { (exit 1); exit 1; }; }; }
13711
13712     ac_builddir=.
13713
13714 if test "$ac_dir" != .; then
13715   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13716   # A "../" for each directory in $ac_dir_suffix.
13717   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13718 else
13719   ac_dir_suffix= ac_top_builddir=
13720 fi
13721
13722 case $srcdir in
13723   .)  # No --srcdir option.  We are building in place.
13724     ac_srcdir=.
13725     if test -z "$ac_top_builddir"; then
13726        ac_top_srcdir=.
13727     else
13728        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13729     fi ;;
13730   [\\/]* | ?:[\\/]* )  # Absolute path.
13731     ac_srcdir=$srcdir$ac_dir_suffix;
13732     ac_top_srcdir=$srcdir ;;
13733   *) # Relative path.
13734     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13735     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13736 esac
13737
13738 # Do not use `cd foo && pwd` to compute absolute paths, because
13739 # the directories may not exist.
13740 case `pwd` in
13741 .) ac_abs_builddir="$ac_dir";;
13742 *)
13743   case "$ac_dir" in
13744   .) ac_abs_builddir=`pwd`;;
13745   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13746   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13747   esac;;
13748 esac
13749 case $ac_abs_builddir in
13750 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13751 *)
13752   case ${ac_top_builddir}. in
13753   .) ac_abs_top_builddir=$ac_abs_builddir;;
13754   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13755   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13756   esac;;
13757 esac
13758 case $ac_abs_builddir in
13759 .) ac_abs_srcdir=$ac_srcdir;;
13760 *)
13761   case $ac_srcdir in
13762   .) ac_abs_srcdir=$ac_abs_builddir;;
13763   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13764   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13765   esac;;
13766 esac
13767 case $ac_abs_builddir in
13768 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13769 *)
13770   case $ac_top_srcdir in
13771   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13772   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13773   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13774   esac;;
13775 esac
13776
13777
13778     cd "$ac_dir"
13779
13780     # Check for guested configure; otherwise get Cygnus style configure.
13781     if test -f "$ac_srcdir/configure.gnu"; then
13782       ac_sub_configure=$ac_srcdir/configure.gnu
13783     elif test -f "$ac_srcdir/configure"; then
13784       ac_sub_configure=$ac_srcdir/configure
13785     elif test -f "$ac_srcdir/configure.in"; then
13786       # This should be Cygnus configure.
13787       ac_sub_configure=$ac_aux_dir/configure
13788     else
13789       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
13790 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13791       ac_sub_configure=
13792     fi
13793
13794     # The recursion is here.
13795     if test -n "$ac_sub_configure"; then
13796       # Make the cache file name correct relative to the subdirectory.
13797       case $cache_file in
13798       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13799       *) # Relative path.
13800         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
13801       esac
13802
13803       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
13804 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13805       # The eval makes quoting arguments work.
13806       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13807            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13808         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
13809 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
13810    { (exit 1); exit 1; }; }
13811     fi
13812
13813     cd "$ac_popdir"
13814   done
13815 fi
13816