OSDN Git Service

* ltmain.sh: Update from GCC.
[pf3gnuchains/pf3gnuchains4x.git] / newlib / libc / 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="sys.tex"
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 machine sys"
462 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 subdirs CRT0 LIBC_POSIX_LIB HAVE_POSIX_DIR_TRUE HAVE_POSIX_DIR_FALSE LIBC_SIGNAL_LIB LIBC_SIGNAL_DEF HAVE_SIGNAL_DIR_TRUE HAVE_SIGNAL_DIR_FALSE LIBC_STDIO_LIB LIBC_STDIO_DEF HAVE_STDIO_DIR_TRUE HAVE_STDIO_DIR_FALSE LIBC_STDIO64_LIB LIBC_STDIO64_DEF HAVE_STDIO64_DIR_TRUE HAVE_STDIO64_DIR_FALSE LIBC_SYSCALL_LIB HAVE_SYSCALL_DIR_TRUE HAVE_SYSCALL_DIR_FALSE LIBC_UNIX_LIB HAVE_UNIX_DIR_TRUE HAVE_UNIX_DIR_FALSE LIBC_EXTRA_LIB LIBC_EXTRA_DEF extra_dir LIBC_SYS_LIB ENABLE_NEWLIB_ICONV_TRUE ENABLE_NEWLIB_ICONV_FALSE LIBC_MACHINE_LIB LIBOBJS LTLIBOBJS'
463 ac_subst_files=''
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506   # If the previous option needs an argument, assign it.
507   if test -n "$ac_prev"; then
508     eval "$ac_prev=\$ac_option"
509     ac_prev=
510     continue
511   fi
512
513   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515   # Accept the important Cygnus configure options, so we can diagnose typos.
516
517   case $ac_option in
518
519   -bindir | --bindir | --bindi | --bind | --bin | --bi)
520     ac_prev=bindir ;;
521   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522     bindir=$ac_optarg ;;
523
524   -build | --build | --buil | --bui | --bu)
525     ac_prev=build_alias ;;
526   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527     build_alias=$ac_optarg ;;
528
529   -cache-file | --cache-file | --cache-fil | --cache-fi \
530   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531     ac_prev=cache_file ;;
532   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534     cache_file=$ac_optarg ;;
535
536   --config-cache | -C)
537     cache_file=config.cache ;;
538
539   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540     ac_prev=datadir ;;
541   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542   | --da=*)
543     datadir=$ac_optarg ;;
544
545   -disable-* | --disable-*)
546     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547     # Reject names that are not valid shell variable names.
548     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550    { (exit 1); exit 1; }; }
551     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552     eval "enable_$ac_feature=no" ;;
553
554   -enable-* | --enable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     case $ac_option in
562       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563       *) ac_optarg=yes ;;
564     esac
565     eval "enable_$ac_feature='$ac_optarg'" ;;
566
567   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569   | --exec | --exe | --ex)
570     ac_prev=exec_prefix ;;
571   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573   | --exec=* | --exe=* | --ex=*)
574     exec_prefix=$ac_optarg ;;
575
576   -gas | --gas | --ga | --g)
577     # Obsolete; use --with-gas.
578     with_gas=yes ;;
579
580   -help | --help | --hel | --he | -h)
581     ac_init_help=long ;;
582   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583     ac_init_help=recursive ;;
584   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585     ac_init_help=short ;;
586
587   -host | --host | --hos | --ho)
588     ac_prev=host_alias ;;
589   -host=* | --host=* | --hos=* | --ho=*)
590     host_alias=$ac_optarg ;;
591
592   -includedir | --includedir | --includedi | --included | --include \
593   | --includ | --inclu | --incl | --inc)
594     ac_prev=includedir ;;
595   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596   | --includ=* | --inclu=* | --incl=* | --inc=*)
597     includedir=$ac_optarg ;;
598
599   -infodir | --infodir | --infodi | --infod | --info | --inf)
600     ac_prev=infodir ;;
601   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602     infodir=$ac_optarg ;;
603
604   -libdir | --libdir | --libdi | --libd)
605     ac_prev=libdir ;;
606   -libdir=* | --libdir=* | --libdi=* | --libd=*)
607     libdir=$ac_optarg ;;
608
609   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610   | --libexe | --libex | --libe)
611     ac_prev=libexecdir ;;
612   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613   | --libexe=* | --libex=* | --libe=*)
614     libexecdir=$ac_optarg ;;
615
616   -localstatedir | --localstatedir | --localstatedi | --localstated \
617   | --localstate | --localstat | --localsta | --localst \
618   | --locals | --local | --loca | --loc | --lo)
619     ac_prev=localstatedir ;;
620   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623     localstatedir=$ac_optarg ;;
624
625   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626     ac_prev=mandir ;;
627   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628     mandir=$ac_optarg ;;
629
630   -nfp | --nfp | --nf)
631     # Obsolete; use --without-fp.
632     with_fp=no ;;
633
634   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635   | --no-cr | --no-c | -n)
636     no_create=yes ;;
637
638   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640     no_recursion=yes ;;
641
642   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644   | --oldin | --oldi | --old | --ol | --o)
645     ac_prev=oldincludedir ;;
646   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649     oldincludedir=$ac_optarg ;;
650
651   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652     ac_prev=prefix ;;
653   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654     prefix=$ac_optarg ;;
655
656   -program-prefix | --program-prefix | --program-prefi | --program-pref \
657   | --program-pre | --program-pr | --program-p)
658     ac_prev=program_prefix ;;
659   -program-prefix=* | --program-prefix=* | --program-prefi=* \
660   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661     program_prefix=$ac_optarg ;;
662
663   -program-suffix | --program-suffix | --program-suffi | --program-suff \
664   | --program-suf | --program-su | --program-s)
665     ac_prev=program_suffix ;;
666   -program-suffix=* | --program-suffix=* | --program-suffi=* \
667   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668     program_suffix=$ac_optarg ;;
669
670   -program-transform-name | --program-transform-name \
671   | --program-transform-nam | --program-transform-na \
672   | --program-transform-n | --program-transform- \
673   | --program-transform | --program-transfor \
674   | --program-transfo | --program-transf \
675   | --program-trans | --program-tran \
676   | --progr-tra | --program-tr | --program-t)
677     ac_prev=program_transform_name ;;
678   -program-transform-name=* | --program-transform-name=* \
679   | --program-transform-nam=* | --program-transform-na=* \
680   | --program-transform-n=* | --program-transform-=* \
681   | --program-transform=* | --program-transfor=* \
682   | --program-transfo=* | --program-transf=* \
683   | --program-trans=* | --program-tran=* \
684   | --progr-tra=* | --program-tr=* | --program-t=*)
685     program_transform_name=$ac_optarg ;;
686
687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688   | -silent | --silent | --silen | --sile | --sil)
689     silent=yes ;;
690
691   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692     ac_prev=sbindir ;;
693   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694   | --sbi=* | --sb=*)
695     sbindir=$ac_optarg ;;
696
697   -sharedstatedir | --sharedstatedir | --sharedstatedi \
698   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699   | --sharedst | --shareds | --shared | --share | --shar \
700   | --sha | --sh)
701     ac_prev=sharedstatedir ;;
702   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705   | --sha=* | --sh=*)
706     sharedstatedir=$ac_optarg ;;
707
708   -site | --site | --sit)
709     ac_prev=site ;;
710   -site=* | --site=* | --sit=*)
711     site=$ac_optarg ;;
712
713   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714     ac_prev=srcdir ;;
715   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716     srcdir=$ac_optarg ;;
717
718   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719   | --syscon | --sysco | --sysc | --sys | --sy)
720     ac_prev=sysconfdir ;;
721   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723     sysconfdir=$ac_optarg ;;
724
725   -target | --target | --targe | --targ | --tar | --ta | --t)
726     ac_prev=target_alias ;;
727   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728     target_alias=$ac_optarg ;;
729
730   -v | -verbose | --verbose | --verbos | --verbo | --verb)
731     verbose=yes ;;
732
733   -version | --version | --versio | --versi | --vers | -V)
734     ac_init_version=: ;;
735
736   -with-* | --with-*)
737     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738     # Reject names that are not valid shell variable names.
739     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740       { echo "$as_me: error: invalid package name: $ac_package" >&2
741    { (exit 1); exit 1; }; }
742     ac_package=`echo $ac_package| sed 's/-/_/g'`
743     case $ac_option in
744       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745       *) ac_optarg=yes ;;
746     esac
747     eval "with_$ac_package='$ac_optarg'" ;;
748
749   -without-* | --without-*)
750     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751     # Reject names that are not valid shell variable names.
752     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753       { echo "$as_me: error: invalid package name: $ac_package" >&2
754    { (exit 1); exit 1; }; }
755     ac_package=`echo $ac_package | sed 's/-/_/g'`
756     eval "with_$ac_package=no" ;;
757
758   --x)
759     # Obsolete; use --with-x.
760     with_x=yes ;;
761
762   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763   | --x-incl | --x-inc | --x-in | --x-i)
764     ac_prev=x_includes ;;
765   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767     x_includes=$ac_optarg ;;
768
769   -x-libraries | --x-libraries | --x-librarie | --x-librari \
770   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771     ac_prev=x_libraries ;;
772   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774     x_libraries=$ac_optarg ;;
775
776   -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778    { (exit 1); exit 1; }; }
779     ;;
780
781   *=*)
782     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786    { (exit 1); exit 1; }; }
787     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788     eval "$ac_envvar='$ac_optarg'"
789     export $ac_envvar ;;
790
791   *)
792     # FIXME: should be removed in autoconf 3.0.
793     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797     ;;
798
799   esac
800 done
801
802 if test -n "$ac_prev"; then
803   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804   { echo "$as_me: error: missing argument to $ac_option" >&2
805    { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811   eval ac_val=$`echo $ac_var`
812   case $ac_val in
813     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815    { (exit 1); exit 1; }; };;
816   esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821               localstatedir libdir includedir oldincludedir infodir mandir
822 do
823   eval ac_val=$`echo $ac_var`
824   case $ac_val in
825     [\\/$]* | ?:[\\/]* ) ;;
826     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827    { (exit 1); exit 1; }; };;
828   esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840   if test "x$build_alias" = x; then
841     cross_compiling=maybe
842     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843     If a cross compiler is detected then cross compile mode will be used." >&2
844   elif test "x$build_alias" != "x$host_alias"; then
845     cross_compiling=yes
846   fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857   ac_srcdir_defaulted=yes
858   # Try the directory containing this script, then its parent.
859   ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861          X"$0" : 'X\(//\)[^/]' \| \
862          X"$0" : 'X\(//\)$' \| \
863          X"$0" : 'X\(/\)' \| \
864          .     : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868           /^X\(\/\/\)$/{ s//\1/; q; }
869           /^X\(\/\).*/{ s//\1/; q; }
870           s/.*/./; q'`
871   srcdir=$ac_confdir
872   if test ! -r $srcdir/$ac_unique_file; then
873     srcdir=..
874   fi
875 else
876   ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879   if test "$ac_srcdir_defaulted" = yes; then
880     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881    { (exit 1); exit 1; }; }
882   else
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884    { (exit 1); exit 1; }; }
885   fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889    { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CCAS_set=${CCAS+set}
904 ac_env_CCAS_value=$CCAS
905 ac_cv_env_CCAS_set=${CCAS+set}
906 ac_cv_env_CCAS_value=$CCAS
907 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
908 ac_env_CCASFLAGS_value=$CCASFLAGS
909 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
910 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
911 ac_env_CC_set=${CC+set}
912 ac_env_CC_value=$CC
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931
932 #
933 # Report the --help message.
934 #
935 if test "$ac_init_help" = "long"; then
936   # Omit some internal or obsolete options to make the list less imposing.
937   # This message is too long to be a string in the A/UX 3.1 sh.
938   cat <<_ACEOF
939 \`configure' configures newlib 1.15.0 to adapt to many kinds of systems.
940
941 Usage: $0 [OPTION]... [VAR=VALUE]...
942
943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
944 VAR=VALUE.  See below for descriptions of some of the useful variables.
945
946 Defaults for the options are specified in brackets.
947
948 Configuration:
949   -h, --help              display this help and exit
950       --help=short        display options specific to this package
951       --help=recursive    display the short help of all the included packages
952   -V, --version           display version information and exit
953   -q, --quiet, --silent   do not print \`checking...' messages
954       --cache-file=FILE   cache test results in FILE [disabled]
955   -C, --config-cache      alias for \`--cache-file=config.cache'
956   -n, --no-create         do not create output files
957       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
958
959 _ACEOF
960
961   cat <<_ACEOF
962 Installation directories:
963   --prefix=PREFIX         install architecture-independent files in PREFIX
964                           [$ac_default_prefix]
965   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
966                           [PREFIX]
967
968 By default, \`make install' will install all the files in
969 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
970 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971 for instance \`--prefix=\$HOME'.
972
973 For better control, use the options below.
974
975 Fine tuning of the installation directories:
976   --bindir=DIR           user executables [EPREFIX/bin]
977   --sbindir=DIR          system admin executables [EPREFIX/sbin]
978   --libexecdir=DIR       program executables [EPREFIX/libexec]
979   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
980   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
981   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
982   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
983   --libdir=DIR           object code libraries [EPREFIX/lib]
984   --includedir=DIR       C header files [PREFIX/include]
985   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
986   --infodir=DIR          info documentation [PREFIX/info]
987   --mandir=DIR           man documentation [PREFIX/man]
988 _ACEOF
989
990   cat <<\_ACEOF
991
992 Program names:
993   --program-prefix=PREFIX            prepend PREFIX to installed program names
994   --program-suffix=SUFFIX            append SUFFIX to installed program names
995   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
996
997 System types:
998   --build=BUILD     configure for building on BUILD [guessed]
999   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1000 _ACEOF
1001 fi
1002
1003 if test -n "$ac_init_help"; then
1004   case $ac_init_help in
1005      short | recursive ) echo "Configuration of newlib 1.15.0:";;
1006    esac
1007   cat <<\_ACEOF
1008
1009 Optional Features:
1010   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1011   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1012   --enable-newlib-io-pos-args enable printf-family positional arg support
1013   --enable-multilib         build many library versions (default)
1014   --enable-target-optspace  optimize for space
1015   --enable-malloc-debugging indicate malloc debugging requested
1016   --enable-newlib-multithread        enable support for multiple threads
1017   --enable-newlib-iconv     enable iconv library support
1018   --enable-newlib-elix-level         supply desired elix library level (1-4)
1019   --disable-newlib-io-float disable printf/scanf family float support
1020   --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1021   --disable-dependency-tracking  speeds up one-time build
1022   --enable-dependency-tracking   do not reject slow dependency extractors
1023   --enable-maintainer-mode  enable make rules and dependencies not useful
1024                           (and sometimes confusing) to the casual installer
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032
1033 Optional Packages:
1034   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1035   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1036   --with-pic              try to use only PIC/non-PIC objects [default=use
1037                           both]
1038   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1039
1040 Some influential environment variables:
1041   CCAS        assembler compiler command (defaults to CC)
1042   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1043   CC          C compiler command
1044   CFLAGS      C compiler flags
1045   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1046               nonstandard directory <lib dir>
1047   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1048               headers in a nonstandard directory <include dir>
1049   CPP         C preprocessor
1050
1051 Use these variables to override the choices made by `configure' or to help
1052 it to find libraries and programs with nonstandard names/locations.
1053
1054 _ACEOF
1055 fi
1056
1057 if test "$ac_init_help" = "recursive"; then
1058   # If there are subdirs, report their specific --help.
1059   ac_popdir=`pwd`
1060   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1061     test -d $ac_dir || continue
1062     ac_builddir=.
1063
1064 if test "$ac_dir" != .; then
1065   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1066   # A "../" for each directory in $ac_dir_suffix.
1067   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1068 else
1069   ac_dir_suffix= ac_top_builddir=
1070 fi
1071
1072 case $srcdir in
1073   .)  # No --srcdir option.  We are building in place.
1074     ac_srcdir=.
1075     if test -z "$ac_top_builddir"; then
1076        ac_top_srcdir=.
1077     else
1078        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1079     fi ;;
1080   [\\/]* | ?:[\\/]* )  # Absolute path.
1081     ac_srcdir=$srcdir$ac_dir_suffix;
1082     ac_top_srcdir=$srcdir ;;
1083   *) # Relative path.
1084     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1085     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1086 esac
1087
1088 # Do not use `cd foo && pwd` to compute absolute paths, because
1089 # the directories may not exist.
1090 case `pwd` in
1091 .) ac_abs_builddir="$ac_dir";;
1092 *)
1093   case "$ac_dir" in
1094   .) ac_abs_builddir=`pwd`;;
1095   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1096   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1097   esac;;
1098 esac
1099 case $ac_abs_builddir in
1100 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *)
1102   case ${ac_top_builddir}. in
1103   .) ac_abs_top_builddir=$ac_abs_builddir;;
1104   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1105   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1106   esac;;
1107 esac
1108 case $ac_abs_builddir in
1109 .) ac_abs_srcdir=$ac_srcdir;;
1110 *)
1111   case $ac_srcdir in
1112   .) ac_abs_srcdir=$ac_abs_builddir;;
1113   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1114   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1115   esac;;
1116 esac
1117 case $ac_abs_builddir in
1118 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *)
1120   case $ac_top_srcdir in
1121   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1122   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1123   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1124   esac;;
1125 esac
1126
1127     cd $ac_dir
1128     # Check for guested configure; otherwise get Cygnus style configure.
1129     if test -f $ac_srcdir/configure.gnu; then
1130       echo
1131       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1132     elif test -f $ac_srcdir/configure; then
1133       echo
1134       $SHELL $ac_srcdir/configure  --help=recursive
1135     elif test -f $ac_srcdir/configure.ac ||
1136            test -f $ac_srcdir/configure.in; then
1137       echo
1138       $ac_configure --help
1139     else
1140       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1141     fi
1142     cd $ac_popdir
1143   done
1144 fi
1145
1146 test -n "$ac_init_help" && exit 0
1147 if $ac_init_version; then
1148   cat <<\_ACEOF
1149 newlib configure 1.15.0
1150 generated by GNU Autoconf 2.59
1151
1152 Copyright (C) 2003 Free Software Foundation, Inc.
1153 This configure script is free software; the Free Software Foundation
1154 gives unlimited permission to copy, distribute and modify it.
1155 _ACEOF
1156   exit 0
1157 fi
1158 exec 5>config.log
1159 cat >&5 <<_ACEOF
1160 This file contains any messages produced by compilers while
1161 running configure, to aid debugging if configure makes a mistake.
1162
1163 It was created by newlib $as_me 1.15.0, which was
1164 generated by GNU Autoconf 2.59.  Invocation command line was
1165
1166   $ $0 $@
1167
1168 _ACEOF
1169 {
1170 cat <<_ASUNAME
1171 ## --------- ##
1172 ## Platform. ##
1173 ## --------- ##
1174
1175 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1176 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1177 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1178 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1179 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1180
1181 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1182 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1183
1184 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1185 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1186 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1187 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1188 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1189 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1190 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1191
1192 _ASUNAME
1193
1194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1195 for as_dir in $PATH
1196 do
1197   IFS=$as_save_IFS
1198   test -z "$as_dir" && as_dir=.
1199   echo "PATH: $as_dir"
1200 done
1201
1202 } >&5
1203
1204 cat >&5 <<_ACEOF
1205
1206
1207 ## ----------- ##
1208 ## Core tests. ##
1209 ## ----------- ##
1210
1211 _ACEOF
1212
1213
1214 # Keep a trace of the command line.
1215 # Strip out --no-create and --no-recursion so they do not pile up.
1216 # Strip out --silent because we don't want to record it for future runs.
1217 # Also quote any args containing shell meta-characters.
1218 # Make two passes to allow for proper duplicate-argument suppression.
1219 ac_configure_args=
1220 ac_configure_args0=
1221 ac_configure_args1=
1222 ac_sep=
1223 ac_must_keep_next=false
1224 for ac_pass in 1 2
1225 do
1226   for ac_arg
1227   do
1228     case $ac_arg in
1229     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1230     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231     | -silent | --silent | --silen | --sile | --sil)
1232       continue ;;
1233     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1235     esac
1236     case $ac_pass in
1237     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1238     2)
1239       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1240       if test $ac_must_keep_next = true; then
1241         ac_must_keep_next=false # Got value, back to normal.
1242       else
1243         case $ac_arg in
1244           *=* | --config-cache | -C | -disable-* | --disable-* \
1245           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1246           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1247           | -with-* | --with-* | -without-* | --without-* | --x)
1248             case "$ac_configure_args0 " in
1249               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1250             esac
1251             ;;
1252           -* ) ac_must_keep_next=true ;;
1253         esac
1254       fi
1255       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1256       # Get rid of the leading space.
1257       ac_sep=" "
1258       ;;
1259     esac
1260   done
1261 done
1262 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1263 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1264
1265 # When interrupted or exit'd, cleanup temporary files, and complete
1266 # config.log.  We remove comments because anyway the quotes in there
1267 # would cause problems or look ugly.
1268 # WARNING: Be sure not to use single quotes in there, as some shells,
1269 # such as our DU 5.0 friend, will then `close' the trap.
1270 trap 'exit_status=$?
1271   # Save into config.log some information that might help in debugging.
1272   {
1273     echo
1274
1275     cat <<\_ASBOX
1276 ## ---------------- ##
1277 ## Cache variables. ##
1278 ## ---------------- ##
1279 _ASBOX
1280     echo
1281     # The following way of writing the cache mishandles newlines in values,
1282 {
1283   (set) 2>&1 |
1284     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1285     *ac_space=\ *)
1286       sed -n \
1287         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1288           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1289       ;;
1290     *)
1291       sed -n \
1292         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1293       ;;
1294     esac;
1295 }
1296     echo
1297
1298     cat <<\_ASBOX
1299 ## ----------------- ##
1300 ## Output variables. ##
1301 ## ----------------- ##
1302 _ASBOX
1303     echo
1304     for ac_var in $ac_subst_vars
1305     do
1306       eval ac_val=$`echo $ac_var`
1307       echo "$ac_var='"'"'$ac_val'"'"'"
1308     done | sort
1309     echo
1310
1311     if test -n "$ac_subst_files"; then
1312       cat <<\_ASBOX
1313 ## ------------- ##
1314 ## Output files. ##
1315 ## ------------- ##
1316 _ASBOX
1317       echo
1318       for ac_var in $ac_subst_files
1319       do
1320         eval ac_val=$`echo $ac_var`
1321         echo "$ac_var='"'"'$ac_val'"'"'"
1322       done | sort
1323       echo
1324     fi
1325
1326     if test -s confdefs.h; then
1327       cat <<\_ASBOX
1328 ## ----------- ##
1329 ## confdefs.h. ##
1330 ## ----------- ##
1331 _ASBOX
1332       echo
1333       sed "/^$/d" confdefs.h | sort
1334       echo
1335     fi
1336     test "$ac_signal" != 0 &&
1337       echo "$as_me: caught signal $ac_signal"
1338     echo "$as_me: exit $exit_status"
1339   } >&5
1340   rm -f core *.core &&
1341   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1342     exit $exit_status
1343      ' 0
1344 for ac_signal in 1 2 13 15; do
1345   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1346 done
1347 ac_signal=0
1348
1349 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1350 rm -rf conftest* confdefs.h
1351 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1352 echo >confdefs.h
1353
1354 # Predefined preprocessor variables.
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_NAME "$PACKAGE_NAME"
1358 _ACEOF
1359
1360
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1363 _ACEOF
1364
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_STRING "$PACKAGE_STRING"
1373 _ACEOF
1374
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1378 _ACEOF
1379
1380
1381 # Let the site file select an alternate cache file if it wants to.
1382 # Prefer explicitly selected file to automatically selected ones.
1383 if test -z "$CONFIG_SITE"; then
1384   if test "x$prefix" != xNONE; then
1385     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1386   else
1387     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1388   fi
1389 fi
1390 for ac_site_file in $CONFIG_SITE; do
1391   if test -r "$ac_site_file"; then
1392     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1393 echo "$as_me: loading site script $ac_site_file" >&6;}
1394     sed 's/^/| /' "$ac_site_file" >&5
1395     . "$ac_site_file"
1396   fi
1397 done
1398
1399 if test -r "$cache_file"; then
1400   # Some versions of bash will fail to source /dev/null (special
1401   # files actually), so we avoid doing that.
1402   if test -f "$cache_file"; then
1403     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1404 echo "$as_me: loading cache $cache_file" >&6;}
1405     case $cache_file in
1406       [\\/]* | ?:[\\/]* ) . $cache_file;;
1407       *)                      . ./$cache_file;;
1408     esac
1409   fi
1410 else
1411   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1412 echo "$as_me: creating cache $cache_file" >&6;}
1413   >$cache_file
1414 fi
1415
1416 # Check that the precious variables saved in the cache have kept the same
1417 # value.
1418 ac_cache_corrupted=false
1419 for ac_var in `(set) 2>&1 |
1420                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1421   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1422   eval ac_new_set=\$ac_env_${ac_var}_set
1423   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1424   eval ac_new_val="\$ac_env_${ac_var}_value"
1425   case $ac_old_set,$ac_new_set in
1426     set,)
1427       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1428 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1429       ac_cache_corrupted=: ;;
1430     ,set)
1431       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1432 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1433       ac_cache_corrupted=: ;;
1434     ,);;
1435     *)
1436       if test "x$ac_old_val" != "x$ac_new_val"; then
1437         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1438 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1439         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1440 echo "$as_me:   former value:  $ac_old_val" >&2;}
1441         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1442 echo "$as_me:   current value: $ac_new_val" >&2;}
1443         ac_cache_corrupted=:
1444       fi;;
1445   esac
1446   # Pass precious variables to config.status.
1447   if test "$ac_new_set" = set; then
1448     case $ac_new_val in
1449     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1450       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1451     *) ac_arg=$ac_var=$ac_new_val ;;
1452     esac
1453     case " $ac_configure_args " in
1454       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1455       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1456     esac
1457   fi
1458 done
1459 if $ac_cache_corrupted; then
1460   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1461 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1462   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1463 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1464    { (exit 1); exit 1; }; }
1465 fi
1466
1467 ac_ext=c
1468 ac_cpp='$CPP $CPPFLAGS'
1469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501 ac_aux_dir=
1502 for ac_dir in ../.. $srcdir/../..; do
1503   if test -f $ac_dir/install-sh; then
1504     ac_aux_dir=$ac_dir
1505     ac_install_sh="$ac_aux_dir/install-sh -c"
1506     break
1507   elif test -f $ac_dir/install.sh; then
1508     ac_aux_dir=$ac_dir
1509     ac_install_sh="$ac_aux_dir/install.sh -c"
1510     break
1511   elif test -f $ac_dir/shtool; then
1512     ac_aux_dir=$ac_dir
1513     ac_install_sh="$ac_aux_dir/shtool install -c"
1514     break
1515   fi
1516 done
1517 if test -z "$ac_aux_dir"; then
1518   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&2;}
1520    { (exit 1); exit 1; }; }
1521 fi
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526
1527 # Check whether --enable-newlib-io-pos-args or --disable-newlib-io-pos-args was given.
1528 if test "${enable_newlib_io_pos_args+set}" = set; then
1529   enableval="$enable_newlib_io_pos_args"
1530   case "${enableval}" in
1531   yes) newlib_io_pos_args=yes ;;
1532   no)  newlib_io_pos_args=no ;;
1533   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-pos-args option" >&5
1534 echo "$as_me: error: bad value ${enableval} for newlib-io-pos-args option" >&2;}
1535    { (exit 1); exit 1; }; } ;;
1536  esac
1537 else
1538   newlib_io_pos_args=no
1539 fi;
1540
1541 # Make sure we can run config.sub.
1542 $ac_config_sub sun4 >/dev/null 2>&1 ||
1543   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1544 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1545    { (exit 1); exit 1; }; }
1546
1547 echo "$as_me:$LINENO: checking build system type" >&5
1548 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1549 if test "${ac_cv_build+set}" = set; then
1550   echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552   ac_cv_build_alias=$build_alias
1553 test -z "$ac_cv_build_alias" &&
1554   ac_cv_build_alias=`$ac_config_guess`
1555 test -z "$ac_cv_build_alias" &&
1556   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1557 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1558    { (exit 1); exit 1; }; }
1559 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1560   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1561 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1562    { (exit 1); exit 1; }; }
1563
1564 fi
1565 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1566 echo "${ECHO_T}$ac_cv_build" >&6
1567 build=$ac_cv_build
1568 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
1572
1573 am__api_version="1.9"
1574 # Find a good install program.  We prefer a C program (faster),
1575 # so one script is as good as another.  But avoid the broken or
1576 # incompatible versions:
1577 # SysV /etc/install, /usr/sbin/install
1578 # SunOS /usr/etc/install
1579 # IRIX /sbin/install
1580 # AIX /bin/install
1581 # AmigaOS /C/install, which installs bootblocks on floppy discs
1582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1585 # OS/2's system install, which has a completely different semantic
1586 # ./install, which can be erroneously created by make from ./install.sh.
1587 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1588 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1589 if test -z "$INSTALL"; then
1590 if test "${ac_cv_path_install+set}" = set; then
1591   echo $ECHO_N "(cached) $ECHO_C" >&6
1592 else
1593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 for as_dir in $PATH
1595 do
1596   IFS=$as_save_IFS
1597   test -z "$as_dir" && as_dir=.
1598   # Account for people who put trailing slashes in PATH elements.
1599 case $as_dir/ in
1600   ./ | .// | /cC/* | \
1601   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1602   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1603   /usr/ucb/* ) ;;
1604   *)
1605     # OSF1 and SCO ODT 3.0 have their own names for install.
1606     # Don't use installbsd from OSF since it installs stuff as root
1607     # by default.
1608     for ac_prog in ginstall scoinst install; do
1609       for ac_exec_ext in '' $ac_executable_extensions; do
1610         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1611           if test $ac_prog = install &&
1612             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1613             # AIX install.  It has an incompatible calling convention.
1614             :
1615           elif test $ac_prog = install &&
1616             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1617             # program-specific install script used by HP pwplus--don't use.
1618             :
1619           else
1620             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1621             break 3
1622           fi
1623         fi
1624       done
1625     done
1626     ;;
1627 esac
1628 done
1629
1630
1631 fi
1632   if test "${ac_cv_path_install+set}" = set; then
1633     INSTALL=$ac_cv_path_install
1634   else
1635     # As a last resort, use the slow shell script.  We don't cache a
1636     # path for INSTALL within a source directory, because that will
1637     # break other packages using the cache if that directory is
1638     # removed, or if the path is relative.
1639     INSTALL=$ac_install_sh
1640   fi
1641 fi
1642 echo "$as_me:$LINENO: result: $INSTALL" >&5
1643 echo "${ECHO_T}$INSTALL" >&6
1644
1645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1646 # It thinks the first close brace ends the variable substitution.
1647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1648
1649 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1650
1651 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1652
1653 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1654 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1655 # Just in case
1656 sleep 1
1657 echo timestamp > conftest.file
1658 # Do `set' in a subshell so we don't clobber the current shell's
1659 # arguments.  Must try -L first in case configure is actually a
1660 # symlink; some systems play weird games with the mod time of symlinks
1661 # (eg FreeBSD returns the mod time of the symlink's containing
1662 # directory).
1663 if (
1664    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1665    if test "$*" = "X"; then
1666       # -L didn't work.
1667       set X `ls -t $srcdir/configure conftest.file`
1668    fi
1669    rm -f conftest.file
1670    if test "$*" != "X $srcdir/configure conftest.file" \
1671       && test "$*" != "X conftest.file $srcdir/configure"; then
1672
1673       # If neither matched, then we have a broken ls.  This can happen
1674       # if, for instance, CONFIG_SHELL is bash and it inherits a
1675       # broken ls alias from the environment.  This has actually
1676       # happened.  Such a system could not be considered "sane".
1677       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1678 alias in your environment" >&5
1679 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1680 alias in your environment" >&2;}
1681    { (exit 1); exit 1; }; }
1682    fi
1683
1684    test "$2" = conftest.file
1685    )
1686 then
1687    # Ok.
1688    :
1689 else
1690    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1691 Check your system clock" >&5
1692 echo "$as_me: error: newly created file is older than distributed files!
1693 Check your system clock" >&2;}
1694    { (exit 1); exit 1; }; }
1695 fi
1696 echo "$as_me:$LINENO: result: yes" >&5
1697 echo "${ECHO_T}yes" >&6
1698 test "$program_prefix" != NONE &&
1699   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1700 # Use a double $ so make ignores it.
1701 test "$program_suffix" != NONE &&
1702   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1703 # Double any \ or $.  echo might interpret backslashes.
1704 # By default was `s,x,x', remove it if useless.
1705 cat <<\_ACEOF >conftest.sed
1706 s/[\\$]/&&/g;s/;s,x,x,$//
1707 _ACEOF
1708 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1709 rm conftest.sed
1710
1711 # expand $ac_aux_dir to an absolute path
1712 am_aux_dir=`cd $ac_aux_dir && pwd`
1713
1714 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1715 # Use eval to expand $SHELL
1716 if eval "$MISSING --run true"; then
1717   am_missing_run="$MISSING --run "
1718 else
1719   am_missing_run=
1720   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1721 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1722 fi
1723
1724 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1725   # We used to keeping the `.' as first argument, in order to
1726   # allow $(mkdir_p) to be used without argument.  As in
1727   #   $(mkdir_p) $(somedir)
1728   # where $(somedir) is conditionally defined.  However this is wrong
1729   # for two reasons:
1730   #  1. if the package is installed by a user who cannot write `.'
1731   #     make install will fail,
1732   #  2. the above comment should most certainly read
1733   #     $(mkdir_p) $(DESTDIR)$(somedir)
1734   #     so it does not work when $(somedir) is undefined and
1735   #     $(DESTDIR) is not.
1736   #  To support the latter case, we have to write
1737   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1738   #  so the `.' trick is pointless.
1739   mkdir_p='mkdir -p --'
1740 else
1741   # On NextStep and OpenStep, the `mkdir' command does not
1742   # recognize any option.  It will interpret all options as
1743   # directories to create, and then abort because `.' already
1744   # exists.
1745   for d in ./-p ./--version;
1746   do
1747     test -d $d && rmdir $d
1748   done
1749   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1750   if test -f "$ac_aux_dir/mkinstalldirs"; then
1751     mkdir_p='$(mkinstalldirs)'
1752   else
1753     mkdir_p='$(install_sh) -d'
1754   fi
1755 fi
1756
1757 for ac_prog in gawk mawk nawk awk
1758 do
1759   # Extract the first word of "$ac_prog", so it can be a program name with args.
1760 set dummy $ac_prog; ac_word=$2
1761 echo "$as_me:$LINENO: checking for $ac_word" >&5
1762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763 if test "${ac_cv_prog_AWK+set}" = set; then
1764   echo $ECHO_N "(cached) $ECHO_C" >&6
1765 else
1766   if test -n "$AWK"; then
1767   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1768 else
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 for as_dir in $PATH
1771 do
1772   IFS=$as_save_IFS
1773   test -z "$as_dir" && as_dir=.
1774   for ac_exec_ext in '' $ac_executable_extensions; do
1775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776     ac_cv_prog_AWK="$ac_prog"
1777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1778     break 2
1779   fi
1780 done
1781 done
1782
1783 fi
1784 fi
1785 AWK=$ac_cv_prog_AWK
1786 if test -n "$AWK"; then
1787   echo "$as_me:$LINENO: result: $AWK" >&5
1788 echo "${ECHO_T}$AWK" >&6
1789 else
1790   echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1792 fi
1793
1794   test -n "$AWK" && break
1795 done
1796
1797 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1798 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1799 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1800 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1801   echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803   cat >conftest.make <<\_ACEOF
1804 all:
1805         @echo 'ac_maketemp="$(MAKE)"'
1806 _ACEOF
1807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1808 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1809 if test -n "$ac_maketemp"; then
1810   eval ac_cv_prog_make_${ac_make}_set=yes
1811 else
1812   eval ac_cv_prog_make_${ac_make}_set=no
1813 fi
1814 rm -f conftest.make
1815 fi
1816 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1817   echo "$as_me:$LINENO: result: yes" >&5
1818 echo "${ECHO_T}yes" >&6
1819   SET_MAKE=
1820 else
1821   echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1823   SET_MAKE="MAKE=${MAKE-make}"
1824 fi
1825
1826 rm -rf .tst 2>/dev/null
1827 mkdir .tst 2>/dev/null
1828 if test -d .tst; then
1829   am__leading_dot=.
1830 else
1831   am__leading_dot=_
1832 fi
1833 rmdir .tst 2>/dev/null
1834
1835 DEPDIR="${am__leading_dot}deps"
1836
1837           ac_config_commands="$ac_config_commands depfiles"
1838
1839
1840 am_make=${MAKE-make}
1841 cat > confinc << 'END'
1842 am__doit:
1843         @echo done
1844 .PHONY: am__doit
1845 END
1846 # If we don't find an include directive, just comment out the code.
1847 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1848 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1849 am__include="#"
1850 am__quote=
1851 _am_result=none
1852 # First try GNU make style include.
1853 echo "include confinc" > confmf
1854 # We grep out `Entering directory' and `Leaving directory'
1855 # messages which can occur if `w' ends up in MAKEFLAGS.
1856 # In particular we don't look at `^make:' because GNU make might
1857 # be invoked under some other name (usually "gmake"), in which
1858 # case it prints its new name instead of `make'.
1859 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1860    am__include=include
1861    am__quote=
1862    _am_result=GNU
1863 fi
1864 # Now try BSD make style include.
1865 if test "$am__include" = "#"; then
1866    echo '.include "confinc"' > confmf
1867    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1868       am__include=.include
1869       am__quote="\""
1870       _am_result=BSD
1871    fi
1872 fi
1873
1874
1875 echo "$as_me:$LINENO: result: $_am_result" >&5
1876 echo "${ECHO_T}$_am_result" >&6
1877 rm -f confinc confmf
1878
1879 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1880 if test "${enable_dependency_tracking+set}" = set; then
1881   enableval="$enable_dependency_tracking"
1882
1883 fi;
1884 if test "x$enable_dependency_tracking" != xno; then
1885   am_depcomp="$ac_aux_dir/depcomp"
1886   AMDEPBACKSLASH='\'
1887 fi
1888
1889
1890 if test "x$enable_dependency_tracking" != xno; then
1891   AMDEP_TRUE=
1892   AMDEP_FALSE='#'
1893 else
1894   AMDEP_TRUE='#'
1895   AMDEP_FALSE=
1896 fi
1897
1898
1899
1900
1901 # Check whether --enable-multilib or --disable-multilib was given.
1902 if test "${enable_multilib+set}" = set; then
1903   enableval="$enable_multilib"
1904   case "${enableval}" in
1905   yes) multilib=yes ;;
1906   no)  multilib=no ;;
1907   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1908 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1909    { (exit 1); exit 1; }; } ;;
1910  esac
1911 else
1912   multilib=yes
1913 fi;
1914 # Check whether --enable-target-optspace or --disable-target-optspace was given.
1915 if test "${enable_target_optspace+set}" = set; then
1916   enableval="$enable_target_optspace"
1917   case "${enableval}" in
1918   yes) target_optspace=yes ;;
1919   no)  target_optspace=no ;;
1920   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
1921 echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
1922    { (exit 1); exit 1; }; } ;;
1923  esac
1924 else
1925   target_optspace=
1926 fi;
1927 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1928 if test "${enable_malloc_debugging+set}" = set; then
1929   enableval="$enable_malloc_debugging"
1930   case "${enableval}" in
1931   yes) malloc_debugging=yes ;;
1932   no)  malloc_debugging=no ;;
1933   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
1934 echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
1935    { (exit 1); exit 1; }; } ;;
1936  esac
1937 else
1938   malloc_debugging=
1939 fi;
1940 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1941 if test "${enable_newlib_multithread+set}" = set; then
1942   enableval="$enable_newlib_multithread"
1943   case "${enableval}" in
1944   yes) newlib_multithread=yes ;;
1945   no)  newlib_multithread=no ;;
1946   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
1947 echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
1948    { (exit 1); exit 1; }; } ;;
1949  esac
1950 else
1951   newlib_multithread=yes
1952 fi;
1953 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1954 if test "${enable_newlib_iconv+set}" = set; then
1955   enableval="$enable_newlib_iconv"
1956   if test "${newlib_iconv+set}" != set; then
1957    case "${enableval}" in
1958      yes) newlib_iconv=yes ;;
1959      no)  newlib_iconv=no ;;
1960      *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
1961 echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
1962    { (exit 1); exit 1; }; } ;;
1963    esac
1964  fi
1965 else
1966   newlib_iconv=${newlib_iconv}
1967 fi;
1968 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1969 if test "${enable_newlib_elix_level+set}" = set; then
1970   enableval="$enable_newlib_elix_level"
1971   case "${enableval}" in
1972   0)   newlib_elix_level=0 ;;
1973   1)   newlib_elix_level=1 ;;
1974   2)   newlib_elix_level=2 ;;
1975   3)   newlib_elix_level=3 ;;
1976   4)   newlib_elix_level=4 ;;
1977   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
1978 echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
1979    { (exit 1); exit 1; }; } ;;
1980  esac
1981 else
1982   newlib_elix_level=0
1983 fi;
1984 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1985 if test "${enable_newlib_io_float+set}" = set; then
1986   enableval="$enable_newlib_io_float"
1987   case "${enableval}" in
1988   yes) newlib_io_float=yes ;;
1989   no)  newlib_io_float=no ;;
1990   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
1991 echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
1992    { (exit 1); exit 1; }; } ;;
1993  esac
1994 else
1995   newlib_io_float=yes
1996 fi;
1997 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
1998 if test "${enable_newlib_supplied_syscalls+set}" = set; then
1999   enableval="$enable_newlib_supplied_syscalls"
2000   case "${enableval}" in
2001   yes) newlib_may_supply_syscalls=yes ;;
2002   no)  newlib_may_supply_syscalls=no ;;
2003   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2004 echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2005    { (exit 1); exit 1; }; } ;;
2006  esac
2007 else
2008   newlib_may_supply_syscalls=yes
2009 fi;
2010
2011
2012 if test x${newlib_may_supply_syscalls} = xyes; then
2013   MAY_SUPPLY_SYSCALLS_TRUE=
2014   MAY_SUPPLY_SYSCALLS_FALSE='#'
2015 else
2016   MAY_SUPPLY_SYSCALLS_TRUE='#'
2017   MAY_SUPPLY_SYSCALLS_FALSE=
2018 fi
2019
2020
2021
2022 test -z "${with_target_subdir}" && with_target_subdir=.
2023
2024 if test "${srcdir}" = "."; then
2025   if test "${with_target_subdir}" != "."; then
2026     newlib_basedir="${srcdir}/${with_multisrctop}../.."
2027   else
2028     newlib_basedir="${srcdir}/${with_multisrctop}.."
2029   fi
2030 else
2031   newlib_basedir="${srcdir}/.."
2032 fi
2033
2034
2035 echo "$as_me:$LINENO: checking host system type" >&5
2036 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2037 if test "${ac_cv_host+set}" = set; then
2038   echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040   ac_cv_host_alias=$host_alias
2041 test -z "$ac_cv_host_alias" &&
2042   ac_cv_host_alias=$ac_cv_build_alias
2043 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2044   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2045 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2046    { (exit 1); exit 1; }; }
2047
2048 fi
2049 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2050 echo "${ECHO_T}$ac_cv_host" >&6
2051 host=$ac_cv_host
2052 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2053 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2054 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2055
2056
2057
2058 # test to see if srcdir already configured
2059 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2060    test -f $srcdir/config.status; then
2061   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2062 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2063    { (exit 1); exit 1; }; }
2064 fi
2065
2066 # test whether we have cygpath
2067 if test -z "$CYGPATH_W"; then
2068   if (cygpath --version) >/dev/null 2>/dev/null; then
2069     CYGPATH_W='cygpath -w'
2070   else
2071     CYGPATH_W=echo
2072   fi
2073 fi
2074
2075
2076 # Define the identity of the package.
2077  PACKAGE='newlib'
2078  VERSION='1.15.0'
2079
2080
2081 # Some tools Automake needs.
2082
2083 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2084
2085
2086 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2087
2088
2089 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2090
2091
2092 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2093
2094
2095 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2096
2097 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2098
2099 # Installed binaries are usually stripped using `strip' when the user
2100 # run `make install-strip'.  However `strip' might not be the right
2101 # tool to use in cross-compilation environments, therefore Automake
2102 # will honor the `STRIP' environment variable to overrule this program.
2103 if test "$cross_compiling" != no; then
2104   if test -n "$ac_tool_prefix"; then
2105   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2106 set dummy ${ac_tool_prefix}strip; ac_word=$2
2107 echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2109 if test "${ac_cv_prog_STRIP+set}" = set; then
2110   echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112   if test -n "$STRIP"; then
2113   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118   IFS=$as_save_IFS
2119   test -z "$as_dir" && as_dir=.
2120   for ac_exec_ext in '' $ac_executable_extensions; do
2121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124     break 2
2125   fi
2126 done
2127 done
2128
2129 fi
2130 fi
2131 STRIP=$ac_cv_prog_STRIP
2132 if test -n "$STRIP"; then
2133   echo "$as_me:$LINENO: result: $STRIP" >&5
2134 echo "${ECHO_T}$STRIP" >&6
2135 else
2136   echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6
2138 fi
2139
2140 fi
2141 if test -z "$ac_cv_prog_STRIP"; then
2142   ac_ct_STRIP=$STRIP
2143   # Extract the first word of "strip", so it can be a program name with args.
2144 set dummy strip; ac_word=$2
2145 echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2147 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   if test -n "$ac_ct_STRIP"; then
2151   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2152 else
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156   IFS=$as_save_IFS
2157   test -z "$as_dir" && as_dir=.
2158   for ac_exec_ext in '' $ac_executable_extensions; do
2159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2160     ac_cv_prog_ac_ct_STRIP="strip"
2161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162     break 2
2163   fi
2164 done
2165 done
2166
2167   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2168 fi
2169 fi
2170 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2171 if test -n "$ac_ct_STRIP"; then
2172   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2173 echo "${ECHO_T}$ac_ct_STRIP" >&6
2174 else
2175   echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2177 fi
2178
2179   STRIP=$ac_ct_STRIP
2180 else
2181   STRIP="$ac_cv_prog_STRIP"
2182 fi
2183
2184 fi
2185 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2186
2187 # We need awk for the "check" target.  The system "awk" is bad on
2188 # some platforms.
2189 # Always define AMTAR for backward compatibility.
2190
2191 AMTAR=${AMTAR-"${am_missing_run}tar"}
2192
2193 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2194
2195
2196
2197
2198
2199
2200 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2201 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2202 # are probably using a cross compiler, which will not be able to fully
2203 # link an executable.  This should really be fixed in autoconf
2204 # itself.
2205
2206
2207
2208
2209
2210
2211
2212 # Extract the first word of "gcc", so it can be a program name with args.
2213 set dummy gcc; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_CC+set}" = set; then
2217   echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219   if test -n "$CC"; then
2220   ac_cv_prog_CC="$CC" # Let the user override the test.
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225   IFS=$as_save_IFS
2226   test -z "$as_dir" && as_dir=.
2227   for ac_exec_ext in '' $ac_executable_extensions; do
2228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229     ac_cv_prog_CC="gcc"
2230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231     break 2
2232   fi
2233 done
2234 done
2235
2236 fi
2237 fi
2238 CC=$ac_cv_prog_CC
2239 if test -n "$CC"; then
2240   echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6
2242 else
2243   echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2245 fi
2246
2247
2248 depcc="$CC"   am_compiler_list=
2249
2250 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2251 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2252 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2253   echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2256   # We make a subdir and do the tests there.  Otherwise we can end up
2257   # making bogus files that we don't know about and never remove.  For
2258   # instance it was reported that on HP-UX the gcc test will end up
2259   # making a dummy file named `D' -- because `-MD' means `put the output
2260   # in D'.
2261   mkdir conftest.dir
2262   # Copy depcomp to subdir because otherwise we won't find it if we're
2263   # using a relative directory.
2264   cp "$am_depcomp" conftest.dir
2265   cd conftest.dir
2266   # We will build objects and dependencies in a subdirectory because
2267   # it helps to detect inapplicable dependency modes.  For instance
2268   # both Tru64's cc and ICC support -MD to output dependencies as a
2269   # side effect of compilation, but ICC will put the dependencies in
2270   # the current directory while Tru64 will put them in the object
2271   # directory.
2272   mkdir sub
2273
2274   am_cv_CC_dependencies_compiler_type=none
2275   if test "$am_compiler_list" = ""; then
2276      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2277   fi
2278   for depmode in $am_compiler_list; do
2279     # Setup a source with many dependencies, because some compilers
2280     # like to wrap large dependency lists on column 80 (with \), and
2281     # we should not choose a depcomp mode which is confused by this.
2282     #
2283     # We need to recreate these files for each test, as the compiler may
2284     # overwrite some of them when testing with obscure command lines.
2285     # This happens at least with the AIX C compiler.
2286     : > sub/conftest.c
2287     for i in 1 2 3 4 5 6; do
2288       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2289       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2290       # Solaris 8's {/usr,}/bin/sh.
2291       touch sub/conftst$i.h
2292     done
2293     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2294
2295     case $depmode in
2296     nosideeffect)
2297       # after this tag, mechanisms are not by side-effect, so they'll
2298       # only be used when explicitly requested
2299       if test "x$enable_dependency_tracking" = xyes; then
2300         continue
2301       else
2302         break
2303       fi
2304       ;;
2305     none) break ;;
2306     esac
2307     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2308     # mode.  It turns out that the SunPro C++ compiler does not properly
2309     # handle `-M -o', and we need to detect this.
2310     if depmode=$depmode \
2311        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2312        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2313        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2314          >/dev/null 2>conftest.err &&
2315        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2316        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2317        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2318       # icc doesn't choke on unknown options, it will just issue warnings
2319       # or remarks (even with -Werror).  So we grep stderr for any message
2320       # that says an option was ignored or not supported.
2321       # When given -MP, icc 7.0 and 7.1 complain thusly:
2322       #   icc: Command line warning: ignoring option '-M'; no argument required
2323       # The diagnosis changed in icc 8.0:
2324       #   icc: Command line remark: option '-MP' not supported
2325       if (grep 'ignoring option' conftest.err ||
2326           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2327         am_cv_CC_dependencies_compiler_type=$depmode
2328         break
2329       fi
2330     fi
2331   done
2332
2333   cd ..
2334   rm -rf conftest.dir
2335 else
2336   am_cv_CC_dependencies_compiler_type=none
2337 fi
2338
2339 fi
2340 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2341 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2342 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2343
2344
2345
2346 if
2347   test "x$enable_dependency_tracking" != xno \
2348   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2349   am__fastdepCC_TRUE=
2350   am__fastdepCC_FALSE='#'
2351 else
2352   am__fastdepCC_TRUE='#'
2353   am__fastdepCC_FALSE=
2354 fi
2355
2356
2357 if test -z "$CC"; then
2358   # Extract the first word of "cc", so it can be a program name with args.
2359 set dummy cc; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$CC"; then
2366   ac_cv_prog_CC="$CC" # Let the user override the test.
2367 else
2368   ac_prog_rejected=no
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372   IFS=$as_save_IFS
2373   test -z "$as_dir" && as_dir=.
2374   for ac_exec_ext in '' $ac_executable_extensions; do
2375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2377        ac_prog_rejected=yes
2378        continue
2379      fi
2380     ac_cv_prog_CC="cc"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386
2387 if test $ac_prog_rejected = yes; then
2388   # We found a bogon in the path, so make sure we never use it.
2389   set dummy $ac_cv_prog_CC
2390   shift
2391   if test $# != 0; then
2392     # We chose a different compiler from the bogus one.
2393     # However, it has the same basename, so the bogon will be chosen
2394     # first if we set CC to just the basename; use the full file name.
2395     shift
2396     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2397   fi
2398 fi
2399 fi
2400 fi
2401 CC=$ac_cv_prog_CC
2402 if test -n "$CC"; then
2403   echo "$as_me:$LINENO: result: $CC" >&5
2404 echo "${ECHO_T}$CC" >&6
2405 else
2406   echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2408 fi
2409
2410   test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2411 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2412    { (exit 1); exit 1; }; }
2413 fi
2414
2415 echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2416 echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2417 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2418   echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420   cat > conftest.c <<EOF
2421 #ifdef __GNUC__
2422   yes;
2423 #endif
2424 EOF
2425 if { ac_try='${CC-cc} -E conftest.c'
2426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427   (eval $ac_try) 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2431   ac_cv_c_compiler_gnu=yes
2432 else
2433   ac_cv_c_compiler_gnu=no
2434 fi
2435 fi
2436 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2437 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2438
2439 if test $ac_cv_c_compiler_gnu = yes; then
2440   GCC=yes
2441   ac_test_CFLAGS="${CFLAGS+set}"
2442   ac_save_CFLAGS="$CFLAGS"
2443   CFLAGS=
2444   ac_test_CFLAGS=${CFLAGS+set}
2445 ac_save_CFLAGS=$CFLAGS
2446 CFLAGS="-g"
2447 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2448 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2449 if test "${ac_cv_prog_cc_g+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   cat >conftest.$ac_ext <<_ACEOF
2453 /* confdefs.h.  */
2454 _ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h.  */
2458
2459 int
2460 main ()
2461 {
2462
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469   (eval $ac_compile) 2>conftest.er1
2470   ac_status=$?
2471   grep -v '^ *+' conftest.er1 >conftest.err
2472   rm -f conftest.er1
2473   cat conftest.err >&5
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); } &&
2476          { ac_try='test -z "$ac_c_werror_flag"
2477                          || test ! -s conftest.err'
2478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479   (eval $ac_try) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; } &&
2483          { ac_try='test -s conftest.$ac_objext'
2484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489   ac_cv_prog_cc_g=yes
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 ac_cv_prog_cc_g=no
2495 fi
2496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497 fi
2498 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2499 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2500 if test "$ac_test_CFLAGS" = set; then
2501   CFLAGS=$ac_save_CFLAGS
2502 elif test $ac_cv_prog_cc_g = yes; then
2503   if test "$GCC" = yes; then
2504     CFLAGS="-g -O2"
2505   else
2506     CFLAGS="-g"
2507   fi
2508 else
2509   if test "$GCC" = yes; then
2510     CFLAGS="-O2"
2511   else
2512     CFLAGS=
2513   fi
2514 fi
2515   if test "$ac_test_CFLAGS" = set; then
2516     CFLAGS="$ac_save_CFLAGS"
2517   elif test $ac_cv_prog_cc_g = yes; then
2518     CFLAGS="-g -O2"
2519   else
2520     CFLAGS="-O2"
2521   fi
2522 else
2523   GCC=
2524   test "${CFLAGS+set}" = set || CFLAGS="-g"
2525 fi
2526
2527
2528 if test -n "$ac_tool_prefix"; then
2529   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}as; ac_word=$2
2531 echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2533 if test "${ac_cv_prog_AS+set}" = set; then
2534   echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536   if test -n "$AS"; then
2537   ac_cv_prog_AS="$AS" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542   IFS=$as_save_IFS
2543   test -z "$as_dir" && as_dir=.
2544   for ac_exec_ext in '' $ac_executable_extensions; do
2545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546     ac_cv_prog_AS="${ac_tool_prefix}as"
2547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548     break 2
2549   fi
2550 done
2551 done
2552
2553 fi
2554 fi
2555 AS=$ac_cv_prog_AS
2556 if test -n "$AS"; then
2557   echo "$as_me:$LINENO: result: $AS" >&5
2558 echo "${ECHO_T}$AS" >&6
2559 else
2560   echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6
2562 fi
2563
2564 fi
2565 if test -z "$ac_cv_prog_AS"; then
2566   ac_ct_AS=$AS
2567   # Extract the first word of "as", so it can be a program name with args.
2568 set dummy as; ac_word=$2
2569 echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2571 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2572   echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574   if test -n "$ac_ct_AS"; then
2575   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580   IFS=$as_save_IFS
2581   test -z "$as_dir" && as_dir=.
2582   for ac_exec_ext in '' $ac_executable_extensions; do
2583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584     ac_cv_prog_ac_ct_AS="as"
2585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586     break 2
2587   fi
2588 done
2589 done
2590
2591 fi
2592 fi
2593 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2594 if test -n "$ac_ct_AS"; then
2595   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2596 echo "${ECHO_T}$ac_ct_AS" >&6
2597 else
2598   echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6
2600 fi
2601
2602   AS=$ac_ct_AS
2603 else
2604   AS="$ac_cv_prog_AS"
2605 fi
2606
2607 if test -n "$ac_tool_prefix"; then
2608   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}ar; ac_word=$2
2610 echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2612 if test "${ac_cv_prog_AR+set}" = set; then
2613   echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615   if test -n "$AR"; then
2616   ac_cv_prog_AR="$AR" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621   IFS=$as_save_IFS
2622   test -z "$as_dir" && as_dir=.
2623   for ac_exec_ext in '' $ac_executable_extensions; do
2624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2625     ac_cv_prog_AR="${ac_tool_prefix}ar"
2626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627     break 2
2628   fi
2629 done
2630 done
2631
2632 fi
2633 fi
2634 AR=$ac_cv_prog_AR
2635 if test -n "$AR"; then
2636   echo "$as_me:$LINENO: result: $AR" >&5
2637 echo "${ECHO_T}$AR" >&6
2638 else
2639   echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6
2641 fi
2642
2643 fi
2644 if test -z "$ac_cv_prog_AR"; then
2645   ac_ct_AR=$AR
2646   # Extract the first word of "ar", so it can be a program name with args.
2647 set dummy ar; ac_word=$2
2648 echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2651   echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653   if test -n "$ac_ct_AR"; then
2654   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661   for ac_exec_ext in '' $ac_executable_extensions; do
2662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663     ac_cv_prog_ac_ct_AR="ar"
2664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665     break 2
2666   fi
2667 done
2668 done
2669
2670 fi
2671 fi
2672 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2673 if test -n "$ac_ct_AR"; then
2674   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2675 echo "${ECHO_T}$ac_ct_AR" >&6
2676 else
2677   echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2679 fi
2680
2681   AR=$ac_ct_AR
2682 else
2683   AR="$ac_cv_prog_AR"
2684 fi
2685
2686 if test -n "$ac_tool_prefix"; then
2687   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2688 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2689 echo "$as_me:$LINENO: checking for $ac_word" >&5
2690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2691 if test "${ac_cv_prog_RANLIB+set}" = set; then
2692   echo $ECHO_N "(cached) $ECHO_C" >&6
2693 else
2694   if test -n "$RANLIB"; then
2695   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700   IFS=$as_save_IFS
2701   test -z "$as_dir" && as_dir=.
2702   for ac_exec_ext in '' $ac_executable_extensions; do
2703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706     break 2
2707   fi
2708 done
2709 done
2710
2711 fi
2712 fi
2713 RANLIB=$ac_cv_prog_RANLIB
2714 if test -n "$RANLIB"; then
2715   echo "$as_me:$LINENO: result: $RANLIB" >&5
2716 echo "${ECHO_T}$RANLIB" >&6
2717 else
2718   echo "$as_me:$LINENO: result: no" >&5
2719 echo "${ECHO_T}no" >&6
2720 fi
2721
2722 fi
2723 if test -z "$ac_cv_prog_RANLIB"; then
2724   ac_ct_RANLIB=$RANLIB
2725   # Extract the first word of "ranlib", so it can be a program name with args.
2726 set dummy ranlib; ac_word=$2
2727 echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2729 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2730   echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732   if test -n "$ac_ct_RANLIB"; then
2733   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738   IFS=$as_save_IFS
2739   test -z "$as_dir" && as_dir=.
2740   for ac_exec_ext in '' $ac_executable_extensions; do
2741   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742     ac_cv_prog_ac_ct_RANLIB="ranlib"
2743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744     break 2
2745   fi
2746 done
2747 done
2748
2749   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2750 fi
2751 fi
2752 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2753 if test -n "$ac_ct_RANLIB"; then
2754   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2755 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2756 else
2757   echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6
2759 fi
2760
2761   RANLIB=$ac_ct_RANLIB
2762 else
2763   RANLIB="$ac_cv_prog_RANLIB"
2764 fi
2765
2766 if test -n "$ac_tool_prefix"; then
2767   # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}readelf; ac_word=$2
2769 echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771 if test "${ac_cv_prog_READELF+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   if test -n "$READELF"; then
2775   ac_cv_prog_READELF="$READELF" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780   IFS=$as_save_IFS
2781   test -z "$as_dir" && as_dir=.
2782   for ac_exec_ext in '' $ac_executable_extensions; do
2783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784     ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786     break 2
2787   fi
2788 done
2789 done
2790
2791 fi
2792 fi
2793 READELF=$ac_cv_prog_READELF
2794 if test -n "$READELF"; then
2795   echo "$as_me:$LINENO: result: $READELF" >&5
2796 echo "${ECHO_T}$READELF" >&6
2797 else
2798   echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2800 fi
2801
2802 fi
2803 if test -z "$ac_cv_prog_READELF"; then
2804   ac_ct_READELF=$READELF
2805   # Extract the first word of "readelf", so it can be a program name with args.
2806 set dummy readelf; ac_word=$2
2807 echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812   if test -n "$ac_ct_READELF"; then
2813   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818   IFS=$as_save_IFS
2819   test -z "$as_dir" && as_dir=.
2820   for ac_exec_ext in '' $ac_executable_extensions; do
2821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822     ac_cv_prog_ac_ct_READELF="readelf"
2823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824     break 2
2825   fi
2826 done
2827 done
2828
2829   test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2830 fi
2831 fi
2832 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2833 if test -n "$ac_ct_READELF"; then
2834   echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2835 echo "${ECHO_T}$ac_ct_READELF" >&6
2836 else
2837   echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2839 fi
2840
2841   READELF=$ac_ct_READELF
2842 else
2843   READELF="$ac_cv_prog_READELF"
2844 fi
2845
2846
2847 # Find a good install program.  We prefer a C program (faster),
2848 # so one script is as good as another.  But avoid the broken or
2849 # incompatible versions:
2850 # SysV /etc/install, /usr/sbin/install
2851 # SunOS /usr/etc/install
2852 # IRIX /sbin/install
2853 # AIX /bin/install
2854 # AmigaOS /C/install, which installs bootblocks on floppy discs
2855 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2856 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2857 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2858 # OS/2's system install, which has a completely different semantic
2859 # ./install, which can be erroneously created by make from ./install.sh.
2860 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2861 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2862 if test -z "$INSTALL"; then
2863 if test "${ac_cv_path_install+set}" = set; then
2864   echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869   IFS=$as_save_IFS
2870   test -z "$as_dir" && as_dir=.
2871   # Account for people who put trailing slashes in PATH elements.
2872 case $as_dir/ in
2873   ./ | .// | /cC/* | \
2874   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2875   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2876   /usr/ucb/* ) ;;
2877   *)
2878     # OSF1 and SCO ODT 3.0 have their own names for install.
2879     # Don't use installbsd from OSF since it installs stuff as root
2880     # by default.
2881     for ac_prog in ginstall scoinst install; do
2882       for ac_exec_ext in '' $ac_executable_extensions; do
2883         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2884           if test $ac_prog = install &&
2885             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2886             # AIX install.  It has an incompatible calling convention.
2887             :
2888           elif test $ac_prog = install &&
2889             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2890             # program-specific install script used by HP pwplus--don't use.
2891             :
2892           else
2893             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2894             break 3
2895           fi
2896         fi
2897       done
2898     done
2899     ;;
2900 esac
2901 done
2902
2903
2904 fi
2905   if test "${ac_cv_path_install+set}" = set; then
2906     INSTALL=$ac_cv_path_install
2907   else
2908     # As a last resort, use the slow shell script.  We don't cache a
2909     # path for INSTALL within a source directory, because that will
2910     # break other packages using the cache if that directory is
2911     # removed, or if the path is relative.
2912     INSTALL=$ac_install_sh
2913   fi
2914 fi
2915 echo "$as_me:$LINENO: result: $INSTALL" >&5
2916 echo "${ECHO_T}$INSTALL" >&6
2917
2918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2919 # It thinks the first close brace ends the variable substitution.
2920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2921
2922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2923
2924 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2925
2926
2927 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
2928 ac_given_INSTALL=$INSTALL
2929
2930 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2931 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2932     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2933 if test "${enable_maintainer_mode+set}" = set; then
2934   enableval="$enable_maintainer_mode"
2935   USE_MAINTAINER_MODE=$enableval
2936 else
2937   USE_MAINTAINER_MODE=no
2938 fi;
2939   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2940 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2941
2942
2943 if test $USE_MAINTAINER_MODE = yes; then
2944   MAINTAINER_MODE_TRUE=
2945   MAINTAINER_MODE_FALSE='#'
2946 else
2947   MAINTAINER_MODE_TRUE='#'
2948   MAINTAINER_MODE_FALSE=
2949 fi
2950
2951   MAINT=$MAINTAINER_MODE_TRUE
2952
2953
2954 # By default we simply use the C compiler to build assembly code.
2955
2956 test "${CCAS+set}" = set || CCAS=$CC
2957 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2958
2959
2960
2961
2962 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2963 # at least currently, we never actually build a program, so we never
2964 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2965 # fails, because we are probably configuring with a cross compiler
2966 # which can't create executables.  So we include AC_EXEEXT to keep
2967 # automake happy, but we don't execute it, since we don't care about
2968 # the result.
2969 if false; then
2970
2971   dummy_var=1
2972 fi
2973
2974 . ${newlib_basedir}/configure.host
2975
2976 newlib_cflags="${newlib_cflags} -fno-builtin"
2977
2978 NEWLIB_CFLAGS=${newlib_cflags}
2979
2980
2981 LDFLAGS=${ldflags}
2982
2983
2984
2985
2986 if test x${newlib_elix_level} = x0; then
2987   ELIX_LEVEL_0_TRUE=
2988   ELIX_LEVEL_0_FALSE='#'
2989 else
2990   ELIX_LEVEL_0_TRUE='#'
2991   ELIX_LEVEL_0_FALSE=
2992 fi
2993
2994
2995
2996 if test x${newlib_elix_level} = x1; then
2997   ELIX_LEVEL_1_TRUE=
2998   ELIX_LEVEL_1_FALSE='#'
2999 else
3000   ELIX_LEVEL_1_TRUE='#'
3001   ELIX_LEVEL_1_FALSE=
3002 fi
3003
3004
3005
3006 if test x${newlib_elix_level} = x2; then
3007   ELIX_LEVEL_2_TRUE=
3008   ELIX_LEVEL_2_FALSE='#'
3009 else
3010   ELIX_LEVEL_2_TRUE='#'
3011   ELIX_LEVEL_2_FALSE=
3012 fi
3013
3014
3015
3016 if test x${newlib_elix_level} = x3; then
3017   ELIX_LEVEL_3_TRUE=
3018   ELIX_LEVEL_3_FALSE='#'
3019 else
3020   ELIX_LEVEL_3_TRUE='#'
3021   ELIX_LEVEL_3_FALSE=
3022 fi
3023
3024
3025
3026 if test x${newlib_elix_level} = x4; then
3027   ELIX_LEVEL_4_TRUE=
3028   ELIX_LEVEL_4_FALSE='#'
3029 else
3030   ELIX_LEVEL_4_TRUE='#'
3031   ELIX_LEVEL_4_FALSE=
3032 fi
3033
3034
3035
3036
3037 if test x${use_libtool} = xyes; then
3038   USE_LIBTOOL_TRUE=
3039   USE_LIBTOOL_FALSE='#'
3040 else
3041   USE_LIBTOOL_TRUE='#'
3042   USE_LIBTOOL_FALSE=
3043 fi
3044
3045
3046 # Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3047 # use oext, which is set in configure.host based on the target platform.
3048 OBJEXT=${oext}
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3061 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3062 if test "${lt_cv_path_SED+set}" = set; then
3063   echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065   # Loop through the user's path and test for sed and gsed.
3066 # Then use that list of sed's as ones to test for truncation.
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070   IFS=$as_save_IFS
3071   test -z "$as_dir" && as_dir=.
3072   for lt_ac_prog in sed gsed; do
3073     for ac_exec_ext in '' $ac_executable_extensions; do
3074       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3075         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3076       fi
3077     done
3078   done
3079 done
3080 IFS=$as_save_IFS
3081 lt_ac_max=0
3082 lt_ac_count=0
3083 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3084 # along with /bin/sed that truncates output.
3085 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3086   test ! -f $lt_ac_sed && continue
3087   cat /dev/null > conftest.in
3088   lt_ac_count=0
3089   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3090   # Check for GNU sed and select it if it is found.
3091   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3092     lt_cv_path_SED=$lt_ac_sed
3093     break
3094   fi
3095   while true; do
3096     cat conftest.in conftest.in >conftest.tmp
3097     mv conftest.tmp conftest.in
3098     cp conftest.in conftest.nl
3099     echo >>conftest.nl
3100     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3101     cmp -s conftest.out conftest.nl || break
3102     # 10000 chars as input seems more than enough
3103     test $lt_ac_count -gt 10 && break
3104     lt_ac_count=`expr $lt_ac_count + 1`
3105     if test $lt_ac_count -gt $lt_ac_max; then
3106       lt_ac_max=$lt_ac_count
3107       lt_cv_path_SED=$lt_ac_sed
3108     fi
3109   done
3110 done
3111
3112 fi
3113
3114 SED=$lt_cv_path_SED
3115
3116 echo "$as_me:$LINENO: result: $SED" >&5
3117 echo "${ECHO_T}$SED" >&6
3118
3119 test -z "$SED" && SED=sed
3120 Xsed="$SED -e 1s/^X//"
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132 if test "${use_libtool}" = "yes"; then
3133 enable_win32_dll=yes
3134
3135 case $host in
3136 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3137   if test -n "$ac_tool_prefix"; then
3138   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}as; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_AS+set}" = set; then
3143   echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145   if test -n "$AS"; then
3146   ac_cv_prog_AS="$AS" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153   for ac_exec_ext in '' $ac_executable_extensions; do
3154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155     ac_cv_prog_AS="${ac_tool_prefix}as"
3156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160 done
3161
3162 fi
3163 fi
3164 AS=$ac_cv_prog_AS
3165 if test -n "$AS"; then
3166   echo "$as_me:$LINENO: result: $AS" >&5
3167 echo "${ECHO_T}$AS" >&6
3168 else
3169   echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3171 fi
3172
3173 fi
3174 if test -z "$ac_cv_prog_AS"; then
3175   ac_ct_AS=$AS
3176   # Extract the first word of "as", so it can be a program name with args.
3177 set dummy as; ac_word=$2
3178 echo "$as_me:$LINENO: checking for $ac_word" >&5
3179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3180 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3181   echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183   if test -n "$ac_ct_AS"; then
3184   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189   IFS=$as_save_IFS
3190   test -z "$as_dir" && as_dir=.
3191   for ac_exec_ext in '' $ac_executable_extensions; do
3192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193     ac_cv_prog_ac_ct_AS="as"
3194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3195     break 2
3196   fi
3197 done
3198 done
3199
3200   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3201 fi
3202 fi
3203 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3204 if test -n "$ac_ct_AS"; then
3205   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3206 echo "${ECHO_T}$ac_ct_AS" >&6
3207 else
3208   echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3210 fi
3211
3212   AS=$ac_ct_AS
3213 else
3214   AS="$ac_cv_prog_AS"
3215 fi
3216
3217   if test -n "$ac_tool_prefix"; then
3218   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3219 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   if test -n "$DLLTOOL"; then
3226   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231   IFS=$as_save_IFS
3232   test -z "$as_dir" && as_dir=.
3233   for ac_exec_ext in '' $ac_executable_extensions; do
3234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237     break 2
3238   fi
3239 done
3240 done
3241
3242 fi
3243 fi
3244 DLLTOOL=$ac_cv_prog_DLLTOOL
3245 if test -n "$DLLTOOL"; then
3246   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3247 echo "${ECHO_T}$DLLTOOL" >&6
3248 else
3249   echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 fi
3252
3253 fi
3254 if test -z "$ac_cv_prog_DLLTOOL"; then
3255   ac_ct_DLLTOOL=$DLLTOOL
3256   # Extract the first word of "dlltool", so it can be a program name with args.
3257 set dummy dlltool; ac_word=$2
3258 echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3261   echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263   if test -n "$ac_ct_DLLTOOL"; then
3264   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271   for ac_exec_ext in '' $ac_executable_extensions; do
3272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278 done
3279
3280   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3281 fi
3282 fi
3283 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3284 if test -n "$ac_ct_DLLTOOL"; then
3285   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3286 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3287 else
3288   echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6
3290 fi
3291
3292   DLLTOOL=$ac_ct_DLLTOOL
3293 else
3294   DLLTOOL="$ac_cv_prog_DLLTOOL"
3295 fi
3296
3297   if test -n "$ac_tool_prefix"; then
3298   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   if test -n "$OBJDUMP"; then
3306   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311   IFS=$as_save_IFS
3312   test -z "$as_dir" && as_dir=.
3313   for ac_exec_ext in '' $ac_executable_extensions; do
3314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317     break 2
3318   fi
3319 done
3320 done
3321
3322 fi
3323 fi
3324 OBJDUMP=$ac_cv_prog_OBJDUMP
3325 if test -n "$OBJDUMP"; then
3326   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3327 echo "${ECHO_T}$OBJDUMP" >&6
3328 else
3329   echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3331 fi
3332
3333 fi
3334 if test -z "$ac_cv_prog_OBJDUMP"; then
3335   ac_ct_OBJDUMP=$OBJDUMP
3336   # Extract the first word of "objdump", so it can be a program name with args.
3337 set dummy objdump; ac_word=$2
3338 echo "$as_me:$LINENO: checking for $ac_word" >&5
3339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3340 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3341   echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343   if test -n "$ac_ct_OBJDUMP"; then
3344   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351   for ac_exec_ext in '' $ac_executable_extensions; do
3352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353     ac_cv_prog_ac_ct_OBJDUMP="objdump"
3354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358 done
3359
3360   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3361 fi
3362 fi
3363 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3364 if test -n "$ac_ct_OBJDUMP"; then
3365   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3366 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3367 else
3368   echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3370 fi
3371
3372   OBJDUMP=$ac_ct_OBJDUMP
3373 else
3374   OBJDUMP="$ac_cv_prog_OBJDUMP"
3375 fi
3376
3377   ;;
3378 esac
3379
3380 test -z "$AS" && AS=as
3381
3382
3383
3384
3385
3386 test -z "$DLLTOOL" && DLLTOOL=dlltool
3387
3388
3389
3390
3391
3392 test -z "$OBJDUMP" && OBJDUMP=objdump
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402 macro_version='2.1a'
3403 macro_revision='1.2435'
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416 ltmain="$ac_aux_dir/ltmain.sh"
3417
3418 # Set options
3419
3420 enable_dlopen=no
3421
3422
3423
3424 # Check whether --enable-shared or --disable-shared was given.
3425 if test "${enable_shared+set}" = set; then
3426   enableval="$enable_shared"
3427   p=${PACKAGE-default}
3428     case $enableval in
3429     yes) enable_shared=yes ;;
3430     no) enable_shared=no ;;
3431     *)
3432       enable_shared=no
3433       # Look at the argument we got.  We use all the common list separators.
3434       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3435       for pkg in $enableval; do
3436         IFS="$lt_save_ifs"
3437         if test "X$pkg" = "X$p"; then
3438           enable_shared=yes
3439         fi
3440       done
3441       IFS="$lt_save_ifs"
3442       ;;
3443     esac
3444 else
3445   enable_shared=yes
3446 fi;
3447
3448
3449
3450
3451
3452
3453
3454
3455 # Check whether --enable-static or --disable-static was given.
3456 if test "${enable_static+set}" = set; then
3457   enableval="$enable_static"
3458   p=${PACKAGE-default}
3459     case $enableval in
3460     yes) enable_static=yes ;;
3461     no) enable_static=no ;;
3462     *)
3463      enable_static=no
3464       # Look at the argument we got.  We use all the common list separators.
3465       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3466       for pkg in $enableval; do
3467         IFS="$lt_save_ifs"
3468         if test "X$pkg" = "X$p"; then
3469           enable_static=yes
3470         fi
3471       done
3472       IFS="$lt_save_ifs"
3473       ;;
3474     esac
3475 else
3476   enable_static=yes
3477 fi;
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487 # Check whether --with-pic or --without-pic was given.
3488 if test "${with_pic+set}" = set; then
3489   withval="$with_pic"
3490   pic_mode="$withval"
3491 else
3492   pic_mode=default
3493 fi;
3494
3495 test -z "$pic_mode" && pic_mode=default
3496
3497
3498
3499
3500
3501
3502
3503 # Check whether --enable-fast-install or --disable-fast-install was given.
3504 if test "${enable_fast_install+set}" = set; then
3505   enableval="$enable_fast_install"
3506   p=${PACKAGE-default}
3507     case $enableval in
3508     yes) enable_fast_install=yes ;;
3509     no) enable_fast_install=no ;;
3510     *)
3511       enable_fast_install=no
3512       # Look at the argument we got.  We use all the common list separators.
3513       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3514       for pkg in $enableval; do
3515         IFS="$lt_save_ifs"
3516         if test "X$pkg" = "X$p"; then
3517           enable_fast_install=yes
3518         fi
3519       done
3520       IFS="$lt_save_ifs"
3521       ;;
3522     esac
3523 else
3524   enable_fast_install=yes
3525 fi;
3526
3527
3528
3529
3530
3531
3532
3533
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 if test -n "$ac_tool_prefix"; then
3540   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3542 echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_prog_CC+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   if test -n "$CC"; then
3548   ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564 fi
3565 fi
3566 CC=$ac_cv_prog_CC
3567 if test -n "$CC"; then
3568   echo "$as_me:$LINENO: result: $CC" >&5
3569 echo "${ECHO_T}$CC" >&6
3570 else
3571   echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3573 fi
3574
3575 fi
3576 if test -z "$ac_cv_prog_CC"; then
3577   ac_ct_CC=$CC
3578   # Extract the first word of "gcc", so it can be a program name with args.
3579 set dummy gcc; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   if test -n "$ac_ct_CC"; then
3586   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3590 do
3591   IFS=$as_save_IFS
3592   test -z "$as_dir" && as_dir=.
3593   for ac_exec_ext in '' $ac_executable_extensions; do
3594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595     ac_cv_prog_ac_ct_CC="gcc"
3596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3597     break 2
3598   fi
3599 done
3600 done
3601
3602 fi
3603 fi
3604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3605 if test -n "$ac_ct_CC"; then
3606   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3607 echo "${ECHO_T}$ac_ct_CC" >&6
3608 else
3609   echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3611 fi
3612
3613   CC=$ac_ct_CC
3614 else
3615   CC="$ac_cv_prog_CC"
3616 fi
3617
3618 if test -z "$CC"; then
3619   if test -n "$ac_tool_prefix"; then
3620   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3621 set dummy ${ac_tool_prefix}cc; ac_word=$2
3622 echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_prog_CC+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   if test -n "$CC"; then
3628   ac_cv_prog_CC="$CC" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_prog_CC="${ac_tool_prefix}cc"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644 fi
3645 fi
3646 CC=$ac_cv_prog_CC
3647 if test -n "$CC"; then
3648   echo "$as_me:$LINENO: result: $CC" >&5
3649 echo "${ECHO_T}$CC" >&6
3650 else
3651   echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6
3653 fi
3654
3655 fi
3656 if test -z "$ac_cv_prog_CC"; then
3657   ac_ct_CC=$CC
3658   # Extract the first word of "cc", so it can be a program name with args.
3659 set dummy cc; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   if test -n "$ac_ct_CC"; then
3666   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3670 do
3671   IFS=$as_save_IFS
3672   test -z "$as_dir" && as_dir=.
3673   for ac_exec_ext in '' $ac_executable_extensions; do
3674   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675     ac_cv_prog_ac_ct_CC="cc"
3676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677     break 2
3678   fi
3679 done
3680 done
3681
3682 fi
3683 fi
3684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3685 if test -n "$ac_ct_CC"; then
3686   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3687 echo "${ECHO_T}$ac_ct_CC" >&6
3688 else
3689   echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6
3691 fi
3692
3693   CC=$ac_ct_CC
3694 else
3695   CC="$ac_cv_prog_CC"
3696 fi
3697
3698 fi
3699 if test -z "$CC"; then
3700   # Extract the first word of "cc", so it can be a program name with args.
3701 set dummy cc; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_prog_CC+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   if test -n "$CC"; then
3708   ac_cv_prog_CC="$CC" # Let the user override the test.
3709 else
3710   ac_prog_rejected=no
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716   for ac_exec_ext in '' $ac_executable_extensions; do
3717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3719        ac_prog_rejected=yes
3720        continue
3721      fi
3722     ac_cv_prog_CC="cc"
3723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724     break 2
3725   fi
3726 done
3727 done
3728
3729 if test $ac_prog_rejected = yes; then
3730   # We found a bogon in the path, so make sure we never use it.
3731   set dummy $ac_cv_prog_CC
3732   shift
3733   if test $# != 0; then
3734     # We chose a different compiler from the bogus one.
3735     # However, it has the same basename, so the bogon will be chosen
3736     # first if we set CC to just the basename; use the full file name.
3737     shift
3738     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3739   fi
3740 fi
3741 fi
3742 fi
3743 CC=$ac_cv_prog_CC
3744 if test -n "$CC"; then
3745   echo "$as_me:$LINENO: result: $CC" >&5
3746 echo "${ECHO_T}$CC" >&6
3747 else
3748   echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3750 fi
3751
3752 fi
3753 if test -z "$CC"; then
3754   if test -n "$ac_tool_prefix"; then
3755   for ac_prog in cl
3756   do
3757     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3759 echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_prog_CC+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   if test -n "$CC"; then
3765   ac_cv_prog_CC="$CC" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772   for ac_exec_ext in '' $ac_executable_extensions; do
3773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776     break 2
3777   fi
3778 done
3779 done
3780
3781 fi
3782 fi
3783 CC=$ac_cv_prog_CC
3784 if test -n "$CC"; then
3785   echo "$as_me:$LINENO: result: $CC" >&5
3786 echo "${ECHO_T}$CC" >&6
3787 else
3788   echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6
3790 fi
3791
3792     test -n "$CC" && break
3793   done
3794 fi
3795 if test -z "$CC"; then
3796   ac_ct_CC=$CC
3797   for ac_prog in cl
3798 do
3799   # Extract the first word of "$ac_prog", so it can be a program name with args.
3800 set dummy $ac_prog; ac_word=$2
3801 echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   if test -n "$ac_ct_CC"; then
3807   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812   IFS=$as_save_IFS
3813   test -z "$as_dir" && as_dir=.
3814   for ac_exec_ext in '' $ac_executable_extensions; do
3815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816     ac_cv_prog_ac_ct_CC="$ac_prog"
3817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818     break 2
3819   fi
3820 done
3821 done
3822
3823 fi
3824 fi
3825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3826 if test -n "$ac_ct_CC"; then
3827   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3828 echo "${ECHO_T}$ac_ct_CC" >&6
3829 else
3830   echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3832 fi
3833
3834   test -n "$ac_ct_CC" && break
3835 done
3836
3837   CC=$ac_ct_CC
3838 fi
3839
3840 fi
3841
3842
3843 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3844 See \`config.log' for more details." >&5
3845 echo "$as_me: error: no acceptable C compiler found in \$PATH
3846 See \`config.log' for more details." >&2;}
3847    { (exit 1); exit 1; }; }
3848
3849 # Provide some information about the compiler.
3850 echo "$as_me:$LINENO:" \
3851      "checking for C compiler version" >&5
3852 ac_compiler=`set X $ac_compile; echo $2`
3853 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3854   (eval $ac_compiler --version </dev/null >&5) 2>&5
3855   ac_status=$?
3856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857   (exit $ac_status); }
3858 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3859   (eval $ac_compiler -v </dev/null >&5) 2>&5
3860   ac_status=$?
3861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862   (exit $ac_status); }
3863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3864   (eval $ac_compiler -V </dev/null >&5) 2>&5
3865   ac_status=$?
3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867   (exit $ac_status); }
3868
3869 cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h.  */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h.  */
3875
3876 int
3877 main ()
3878 {
3879
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 ac_clean_files_save=$ac_clean_files
3885 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3886 # Try to create an executable without -o first, disregard a.out.
3887 # It will help us diagnose broken compilers, and finding out an intuition
3888 # of exeext.
3889 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3890 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3891 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3892 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3893   (eval $ac_link_default) 2>&5
3894   ac_status=$?
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); }; then
3897   # Find the output, starting from the most likely.  This scheme is
3898 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3899 # resort.
3900
3901 # Be careful to initialize this variable, since it used to be cached.
3902 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3903 ac_cv_exeext=
3904 # b.out is created by i960 compilers.
3905 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3906 do
3907   test -f "$ac_file" || continue
3908   case $ac_file in
3909     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3910         ;;
3911     conftest.$ac_ext )
3912         # This is the source file.
3913         ;;
3914     [ab].out )
3915         # We found the default executable, but exeext='' is most
3916         # certainly right.
3917         break;;
3918     *.* )
3919         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920         # FIXME: I believe we export ac_cv_exeext for Libtool,
3921         # but it would be cool to find out if it's true.  Does anybody
3922         # maintain Libtool? --akim.
3923         export ac_cv_exeext
3924         break;;
3925     * )
3926         break;;
3927   esac
3928 done
3929 else
3930   echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3934 See \`config.log' for more details." >&5
3935 echo "$as_me: error: C compiler cannot create executables
3936 See \`config.log' for more details." >&2;}
3937    { (exit 77); exit 77; }; }
3938 fi
3939
3940 ac_exeext=$ac_cv_exeext
3941 echo "$as_me:$LINENO: result: $ac_file" >&5
3942 echo "${ECHO_T}$ac_file" >&6
3943
3944 # Check the compiler produces executables we can run.  If not, either
3945 # the compiler is broken, or we cross compile.
3946 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3947 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3948 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3949 # If not cross compiling, check that we can run a simple program.
3950 if test "$cross_compiling" != yes; then
3951   if { ac_try='./$ac_file'
3952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953   (eval $ac_try) 2>&5
3954   ac_status=$?
3955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956   (exit $ac_status); }; }; then
3957     cross_compiling=no
3958   else
3959     if test "$cross_compiling" = maybe; then
3960         cross_compiling=yes
3961     else
3962         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3963 If you meant to cross compile, use \`--host'.
3964 See \`config.log' for more details." >&5
3965 echo "$as_me: error: cannot run C compiled programs.
3966 If you meant to cross compile, use \`--host'.
3967 See \`config.log' for more details." >&2;}
3968    { (exit 1); exit 1; }; }
3969     fi
3970   fi
3971 fi
3972 echo "$as_me:$LINENO: result: yes" >&5
3973 echo "${ECHO_T}yes" >&6
3974
3975 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3976 ac_clean_files=$ac_clean_files_save
3977 # Check the compiler produces executables we can run.  If not, either
3978 # the compiler is broken, or we cross compile.
3979 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3980 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3981 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3982 echo "${ECHO_T}$cross_compiling" >&6
3983
3984 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3985 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3987   (eval $ac_link) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }; then
3991   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3992 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3993 # work properly (i.e., refer to `conftest.exe'), while it won't with
3994 # `rm'.
3995 for ac_file in conftest.exe conftest conftest.*; do
3996   test -f "$ac_file" || continue
3997   case $ac_file in
3998     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3999     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4000           export ac_cv_exeext
4001           break;;
4002     * ) break;;
4003   esac
4004 done
4005 else
4006   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4007 See \`config.log' for more details." >&5
4008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4009 See \`config.log' for more details." >&2;}
4010    { (exit 1); exit 1; }; }
4011 fi
4012
4013 rm -f conftest$ac_cv_exeext
4014 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4015 echo "${ECHO_T}$ac_cv_exeext" >&6
4016
4017 rm -f conftest.$ac_ext
4018 EXEEXT=$ac_cv_exeext
4019 ac_exeext=$EXEEXT
4020 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4021 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4022 if test "${ac_cv_objext+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031
4032 int
4033 main ()
4034 {
4035
4036   ;
4037   return 0;
4038 }
4039 _ACEOF
4040 rm -f conftest.o conftest.obj
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042   (eval $ac_compile) 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }; then
4046   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4047   case $ac_file in
4048     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4049     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4050        break;;
4051   esac
4052 done
4053 else
4054   echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4058 See \`config.log' for more details." >&5
4059 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4060 See \`config.log' for more details." >&2;}
4061    { (exit 1); exit 1; }; }
4062 fi
4063
4064 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4065 fi
4066 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4067 echo "${ECHO_T}$ac_cv_objext" >&6
4068 OBJEXT=$ac_cv_objext
4069 ac_objext=$OBJEXT
4070 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4071 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4072 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081
4082 int
4083 main ()
4084 {
4085 #ifndef __GNUC__
4086        choke me
4087 #endif
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095   (eval $ac_compile) 2>conftest.er1
4096   ac_status=$?
4097   grep -v '^ *+' conftest.er1 >conftest.err
4098   rm -f conftest.er1
4099   cat conftest.err >&5
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); } &&
4102          { ac_try='test -z "$ac_c_werror_flag"
4103                          || test ! -s conftest.err'
4104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105   (eval $ac_try) 2>&5
4106   ac_status=$?
4107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108   (exit $ac_status); }; } &&
4109          { ac_try='test -s conftest.$ac_objext'
4110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111   (eval $ac_try) 2>&5
4112   ac_status=$?
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); }; }; then
4115   ac_compiler_gnu=yes
4116 else
4117   echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 ac_compiler_gnu=no
4121 fi
4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4124
4125 fi
4126 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4128 GCC=`test $ac_compiler_gnu = yes && echo yes`
4129 ac_test_CFLAGS=${CFLAGS+set}
4130 ac_save_CFLAGS=$CFLAGS
4131 CFLAGS="-g"
4132 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4133 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4134 if test "${ac_cv_prog_cc_g+set}" = set; then
4135   echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137   cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143
4144 int
4145 main ()
4146 {
4147
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 rm -f conftest.$ac_objext
4153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4154   (eval $ac_compile) 2>conftest.er1
4155   ac_status=$?
4156   grep -v '^ *+' conftest.er1 >conftest.err
4157   rm -f conftest.er1
4158   cat conftest.err >&5
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); } &&
4161          { ac_try='test -z "$ac_c_werror_flag"
4162                          || test ! -s conftest.err'
4163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164   (eval $ac_try) 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; } &&
4168          { ac_try='test -s conftest.$ac_objext'
4169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170   (eval $ac_try) 2>&5
4171   ac_status=$?
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); }; }; then
4174   ac_cv_prog_cc_g=yes
4175 else
4176   echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 ac_cv_prog_cc_g=no
4180 fi
4181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4182 fi
4183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4184 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4185 if test "$ac_test_CFLAGS" = set; then
4186   CFLAGS=$ac_save_CFLAGS
4187 elif test $ac_cv_prog_cc_g = yes; then
4188   if test "$GCC" = yes; then
4189     CFLAGS="-g -O2"
4190   else
4191     CFLAGS="-g"
4192   fi
4193 else
4194   if test "$GCC" = yes; then
4195     CFLAGS="-O2"
4196   else
4197     CFLAGS=
4198   fi
4199 fi
4200 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4201 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4202 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   ac_cv_prog_cc_stdc=no
4206 ac_save_CC=$CC
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h.  */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h.  */
4213 #include <stdarg.h>
4214 #include <stdio.h>
4215 #include <sys/types.h>
4216 #include <sys/stat.h>
4217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4218 struct buf { int x; };
4219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4220 static char *e (p, i)
4221      char **p;
4222      int i;
4223 {
4224   return p[i];
4225 }
4226 static char *f (char * (*g) (char **, int), char **p, ...)
4227 {
4228   char *s;
4229   va_list v;
4230   va_start (v,p);
4231   s = g (p, va_arg (v,int));
4232   va_end (v);
4233   return s;
4234 }
4235
4236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4237    function prototypes and stuff, but not '\xHH' hex character constants.
4238    These don't provoke an error unfortunately, instead are silently treated
4239    as 'x'.  The following induces an error, until -std1 is added to get
4240    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4241    array size at least.  It's necessary to write '\x00'==0 to get something
4242    that's true only with -std1.  */
4243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4244
4245 int test (int i, double x);
4246 struct s1 {int (*f) (int a);};
4247 struct s2 {int (*f) (double a);};
4248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4249 int argc;
4250 char **argv;
4251 int
4252 main ()
4253 {
4254 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4255   ;
4256   return 0;
4257 }
4258 _ACEOF
4259 # Don't try gcc -ansi; that turns off useful extensions and
4260 # breaks some systems' header files.
4261 # AIX                   -qlanglvl=ansi
4262 # Ultrix and OSF/1      -std1
4263 # HP-UX 10.20 and later -Ae
4264 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4265 # SVR4                  -Xc -D__EXTENSIONS__
4266 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4267 do
4268   CC="$ac_save_CC $ac_arg"
4269   rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271   (eval $ac_compile) 2>conftest.er1
4272   ac_status=$?
4273   grep -v '^ *+' conftest.er1 >conftest.err
4274   rm -f conftest.er1
4275   cat conftest.err >&5
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); } &&
4278          { ac_try='test -z "$ac_c_werror_flag"
4279                          || test ! -s conftest.err'
4280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281   (eval $ac_try) 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; } &&
4285          { ac_try='test -s conftest.$ac_objext'
4286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287   (eval $ac_try) 2>&5
4288   ac_status=$?
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); }; }; then
4291   ac_cv_prog_cc_stdc=$ac_arg
4292 break
4293 else
4294   echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297 fi
4298 rm -f conftest.err conftest.$ac_objext
4299 done
4300 rm -f conftest.$ac_ext conftest.$ac_objext
4301 CC=$ac_save_CC
4302
4303 fi
4304
4305 case "x$ac_cv_prog_cc_stdc" in
4306   x|xno)
4307     echo "$as_me:$LINENO: result: none needed" >&5
4308 echo "${ECHO_T}none needed" >&6 ;;
4309   *)
4310     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4311 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4312     CC="$CC $ac_cv_prog_cc_stdc" ;;
4313 esac
4314
4315 # Some people use a C++ compiler to compile C.  Since we use `exit',
4316 # in C++ we need to declare it.  In case someone uses the same compiler
4317 # for both compiling C and C++ we need to have the C++ compiler decide
4318 # the declaration of exit, since it's the most demanding environment.
4319 cat >conftest.$ac_ext <<_ACEOF
4320 #ifndef __cplusplus
4321   choke me
4322 #endif
4323 _ACEOF
4324 rm -f conftest.$ac_objext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326   (eval $ac_compile) 2>conftest.er1
4327   ac_status=$?
4328   grep -v '^ *+' conftest.er1 >conftest.err
4329   rm -f conftest.er1
4330   cat conftest.err >&5
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); } &&
4333          { ac_try='test -z "$ac_c_werror_flag"
4334                          || test ! -s conftest.err'
4335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336   (eval $ac_try) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; } &&
4340          { ac_try='test -s conftest.$ac_objext'
4341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342   (eval $ac_try) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; }; then
4346   for ac_declaration in \
4347    '' \
4348    'extern "C" void std::exit (int) throw (); using std::exit;' \
4349    'extern "C" void std::exit (int); using std::exit;' \
4350    'extern "C" void exit (int) throw ();' \
4351    'extern "C" void exit (int);' \
4352    'void exit (int);'
4353 do
4354   cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h.  */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h.  */
4360 $ac_declaration
4361 #include <stdlib.h>
4362 int
4363 main ()
4364 {
4365 exit (42);
4366   ;
4367   return 0;
4368 }
4369 _ACEOF
4370 rm -f conftest.$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372   (eval $ac_compile) 2>conftest.er1
4373   ac_status=$?
4374   grep -v '^ *+' conftest.er1 >conftest.err
4375   rm -f conftest.er1
4376   cat conftest.err >&5
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); } &&
4379          { ac_try='test -z "$ac_c_werror_flag"
4380                          || test ! -s conftest.err'
4381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382   (eval $ac_try) 2>&5
4383   ac_status=$?
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); }; } &&
4386          { ac_try='test -s conftest.$ac_objext'
4387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388   (eval $ac_try) 2>&5
4389   ac_status=$?
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); }; }; then
4392   :
4393 else
4394   echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4396
4397 continue
4398 fi
4399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4400   cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h.  */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h.  */
4406 $ac_declaration
4407 int
4408 main ()
4409 {
4410 exit (42);
4411   ;
4412   return 0;
4413 }
4414 _ACEOF
4415 rm -f conftest.$ac_objext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417   (eval $ac_compile) 2>conftest.er1
4418   ac_status=$?
4419   grep -v '^ *+' conftest.er1 >conftest.err
4420   rm -f conftest.er1
4421   cat conftest.err >&5
4422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423   (exit $ac_status); } &&
4424          { ac_try='test -z "$ac_c_werror_flag"
4425                          || test ! -s conftest.err'
4426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427   (eval $ac_try) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; } &&
4431          { ac_try='test -s conftest.$ac_objext'
4432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433   (eval $ac_try) 2>&5
4434   ac_status=$?
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); }; }; then
4437   break
4438 else
4439   echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442 fi
4443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4444 done
4445 rm -f conftest*
4446 if test -n "$ac_declaration"; then
4447   echo '#ifdef __cplusplus' >>confdefs.h
4448   echo $ac_declaration      >>confdefs.h
4449   echo '#endif'             >>confdefs.h
4450 fi
4451
4452 else
4453   echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4455
4456 fi
4457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4458 ac_ext=c
4459 ac_cpp='$CPP $CPPFLAGS'
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463
4464 depcc="$CC"   am_compiler_list=
4465
4466 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4467 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4468 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4469   echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4472   # We make a subdir and do the tests there.  Otherwise we can end up
4473   # making bogus files that we don't know about and never remove.  For
4474   # instance it was reported that on HP-UX the gcc test will end up
4475   # making a dummy file named `D' -- because `-MD' means `put the output
4476   # in D'.
4477   mkdir conftest.dir
4478   # Copy depcomp to subdir because otherwise we won't find it if we're
4479   # using a relative directory.
4480   cp "$am_depcomp" conftest.dir
4481   cd conftest.dir
4482   # We will build objects and dependencies in a subdirectory because
4483   # it helps to detect inapplicable dependency modes.  For instance
4484   # both Tru64's cc and ICC support -MD to output dependencies as a
4485   # side effect of compilation, but ICC will put the dependencies in
4486   # the current directory while Tru64 will put them in the object
4487   # directory.
4488   mkdir sub
4489
4490   am_cv_CC_dependencies_compiler_type=none
4491   if test "$am_compiler_list" = ""; then
4492      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4493   fi
4494   for depmode in $am_compiler_list; do
4495     # Setup a source with many dependencies, because some compilers
4496     # like to wrap large dependency lists on column 80 (with \), and
4497     # we should not choose a depcomp mode which is confused by this.
4498     #
4499     # We need to recreate these files for each test, as the compiler may
4500     # overwrite some of them when testing with obscure command lines.
4501     # This happens at least with the AIX C compiler.
4502     : > sub/conftest.c
4503     for i in 1 2 3 4 5 6; do
4504       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4505       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4506       # Solaris 8's {/usr,}/bin/sh.
4507       touch sub/conftst$i.h
4508     done
4509     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4510
4511     case $depmode in
4512     nosideeffect)
4513       # after this tag, mechanisms are not by side-effect, so they'll
4514       # only be used when explicitly requested
4515       if test "x$enable_dependency_tracking" = xyes; then
4516         continue
4517       else
4518         break
4519       fi
4520       ;;
4521     none) break ;;
4522     esac
4523     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4524     # mode.  It turns out that the SunPro C++ compiler does not properly
4525     # handle `-M -o', and we need to detect this.
4526     if depmode=$depmode \
4527        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4528        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4529        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4530          >/dev/null 2>conftest.err &&
4531        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4532        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4533        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4534       # icc doesn't choke on unknown options, it will just issue warnings
4535       # or remarks (even with -Werror).  So we grep stderr for any message
4536       # that says an option was ignored or not supported.
4537       # When given -MP, icc 7.0 and 7.1 complain thusly:
4538       #   icc: Command line warning: ignoring option '-M'; no argument required
4539       # The diagnosis changed in icc 8.0:
4540       #   icc: Command line remark: option '-MP' not supported
4541       if (grep 'ignoring option' conftest.err ||
4542           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4543         am_cv_CC_dependencies_compiler_type=$depmode
4544         break
4545       fi
4546     fi
4547   done
4548
4549   cd ..
4550   rm -rf conftest.dir
4551 else
4552   am_cv_CC_dependencies_compiler_type=none
4553 fi
4554
4555 fi
4556 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4557 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4559
4560
4561
4562 if
4563   test "x$enable_dependency_tracking" != xno \
4564   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4565   am__fastdepCC_TRUE=
4566   am__fastdepCC_FALSE='#'
4567 else
4568   am__fastdepCC_TRUE='#'
4569   am__fastdepCC_FALSE=
4570 fi
4571
4572
4573 echo "$as_me:$LINENO: checking for egrep" >&5
4574 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4575 if test "${ac_cv_prog_egrep+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4579     then ac_cv_prog_egrep='grep -E'
4580     else ac_cv_prog_egrep='egrep'
4581     fi
4582 fi
4583 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4584 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4585  EGREP=$ac_cv_prog_egrep
4586
4587
4588 echo "$as_me:$LINENO: checking for fgrep" >&5
4589 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4590 if test "${ac_cv_prog_fgrep+set}" = set; then
4591   echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4594     then ac_cv_prog_fgrep='grep -F'
4595     else ac_cv_prog_fgrep='fgrep'
4596     fi
4597 fi
4598 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4599 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4600  FGREP=$ac_cv_prog_fgrep
4601
4602
4603 test -z "$GREP" && GREP=grep
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4624 if test "${with_gnu_ld+set}" = set; then
4625   withval="$with_gnu_ld"
4626   test "$withval" = no || with_gnu_ld=yes
4627 else
4628   with_gnu_ld=no
4629 fi;
4630 ac_prog=ld
4631 if test "$GCC" = yes; then
4632   # Check if gcc -print-prog-name=ld gives a path.
4633   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4634 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4635   case $host in
4636   *-*-mingw*)
4637     # gcc leaves a trailing carriage return which upsets mingw
4638     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4639   *)
4640     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4641   esac
4642   case $ac_prog in
4643     # Accept absolute paths.
4644     [\\/]* | ?:[\\/]*)
4645       re_direlt='/[^/][^/]*/\.\./'
4646       # Canonicalize the pathname of ld
4647       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4648       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4649         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4650       done
4651       test -z "$LD" && LD="$ac_prog"
4652       ;;
4653   "")
4654     # If it fails, then pretend we aren't using GCC.
4655     ac_prog=ld
4656     ;;
4657   *)
4658     # If it is relative, then search for the first ld in PATH.
4659     with_gnu_ld=unknown
4660     ;;
4661   esac
4662 elif test "$with_gnu_ld" = yes; then
4663   echo "$as_me:$LINENO: checking for GNU ld" >&5
4664 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4665 else
4666   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4667 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4668 fi
4669 if test "${lt_cv_path_LD+set}" = set; then
4670   echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672   if test -z "$LD"; then
4673   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4674   for ac_dir in $PATH; do
4675     IFS="$lt_save_ifs"
4676     test -z "$ac_dir" && ac_dir=.
4677     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4678       lt_cv_path_LD="$ac_dir/$ac_prog"
4679       # Check to see if the program is GNU ld.  I'd rather use --version,
4680       # but apparently some variants of GNU ld only accept -v.
4681       # Break only if it was the GNU/non-GNU ld that we prefer.
4682       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4683       *GNU* | *'with BFD'*)
4684         test "$with_gnu_ld" != no && break
4685         ;;
4686       *)
4687         test "$with_gnu_ld" != yes && break
4688         ;;
4689       esac
4690     fi
4691   done
4692   IFS="$lt_save_ifs"
4693 else
4694   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4695 fi
4696 fi
4697
4698 LD="$lt_cv_path_LD"
4699 if test -n "$LD"; then
4700   echo "$as_me:$LINENO: result: $LD" >&5
4701 echo "${ECHO_T}$LD" >&6
4702 else
4703   echo "$as_me:$LINENO: result: no" >&5
4704 echo "${ECHO_T}no" >&6
4705 fi
4706 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4707 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4708    { (exit 1); exit 1; }; }
4709 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4710 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4711 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4715 case `$LD -v 2>&1 </dev/null` in
4716 *GNU* | *'with BFD'*)
4717   lt_cv_prog_gnu_ld=yes
4718   ;;
4719 *)
4720   lt_cv_prog_gnu_ld=no
4721   ;;
4722 esac
4723 fi
4724 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4725 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4726 with_gnu_ld=$lt_cv_prog_gnu_ld
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4738 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4739 if test "${lt_cv_path_NM+set}" = set; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742   if test -n "$NM"; then
4743   # Let the user override the test.
4744   lt_cv_path_NM="$NM"
4745 else
4746   lt_nm_to_check="${ac_tool_prefix}nm"
4747   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4748     lt_nm_to_check="$lt_nm_to_check nm"
4749   fi
4750   for lt_tmp_nm in $lt_nm_to_check; do
4751     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4752     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4753       IFS="$lt_save_ifs"
4754       test -z "$ac_dir" && ac_dir=.
4755       tmp_nm="$ac_dir/$lt_tmp_nm"
4756       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4757         # Check to see if the nm accepts a BSD-compat flag.
4758         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4759         #   nm: unknown option "B" ignored
4760         # Tru64's nm complains that /dev/null is an invalid object file
4761         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4762         */dev/null* | *'Invalid file or object type'*)
4763           lt_cv_path_NM="$tmp_nm -B"
4764           break
4765           ;;
4766         *)
4767           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4768           */dev/null*)
4769             lt_cv_path_NM="$tmp_nm -p"
4770             break
4771             ;;
4772           *)
4773             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4774             continue # so that we can try to find one that supports BSD flags
4775             ;;
4776           esac
4777           ;;
4778         esac
4779       fi
4780     done
4781     IFS="$lt_save_ifs"
4782   done
4783   : ${lt_cv_path_NM=no}
4784 fi
4785 fi
4786 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4787 echo "${ECHO_T}$lt_cv_path_NM" >&6
4788 if test "$lt_cv_path_NM" != "no"; then
4789   NM="$lt_cv_path_NM"
4790 else
4791   # Didn't find any BSD compatible name lister, look for dumpbin.
4792   if test -n "$ac_tool_prefix"; then
4793   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4794   do
4795     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4797 echo "$as_me:$LINENO: checking for $ac_word" >&5
4798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4799 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4800   echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802   if test -n "$DUMPBIN"; then
4803   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808   IFS=$as_save_IFS
4809   test -z "$as_dir" && as_dir=.
4810   for ac_exec_ext in '' $ac_executable_extensions; do
4811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4812     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814     break 2
4815   fi
4816 done
4817 done
4818
4819 fi
4820 fi
4821 DUMPBIN=$ac_cv_prog_DUMPBIN
4822 if test -n "$DUMPBIN"; then
4823   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4824 echo "${ECHO_T}$DUMPBIN" >&6
4825 else
4826   echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6
4828 fi
4829
4830     test -n "$DUMPBIN" && break
4831   done
4832 fi
4833 if test -z "$DUMPBIN"; then
4834   ac_ct_DUMPBIN=$DUMPBIN
4835   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4836 do
4837   # Extract the first word of "$ac_prog", so it can be a program name with args.
4838 set dummy $ac_prog; ac_word=$2
4839 echo "$as_me:$LINENO: checking for $ac_word" >&5
4840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4841 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4842   echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844   if test -n "$ac_ct_DUMPBIN"; then
4845   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4846 else
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850   IFS=$as_save_IFS
4851   test -z "$as_dir" && as_dir=.
4852   for ac_exec_ext in '' $ac_executable_extensions; do
4853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856     break 2
4857   fi
4858 done
4859 done
4860
4861 fi
4862 fi
4863 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4864 if test -n "$ac_ct_DUMPBIN"; then
4865   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4866 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4867 else
4868   echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4870 fi
4871
4872   test -n "$ac_ct_DUMPBIN" && break
4873 done
4874 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4875
4876   DUMPBIN=$ac_ct_DUMPBIN
4877 fi
4878
4879
4880   if test "$DUMPBIN" != ":"; then
4881     NM="$DUMPBIN"
4882   fi
4883 fi
4884 test -z "$NM" && NM=nm
4885
4886
4887
4888
4889
4890
4891 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4892 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4893 if test "${lt_cv_nm_interface+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   lt_cv_nm_interface="BSD nm"
4897   echo "int some_variable = 0;" > conftest.$ac_ext
4898   (eval echo "\"\$as_me:4898: $ac_compile\"" >&5)
4899   (eval "$ac_compile" 2>conftest.err)
4900   cat conftest.err >&5
4901   (eval echo "\"\$as_me:4901: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4902   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4903   cat conftest.err >&5
4904   (eval echo "\"\$as_me:4904: output\"" >&5)
4905   cat conftest.out >&5
4906   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4907     lt_cv_nm_interface="MS dumpbin"
4908   fi
4909   rm -f conftest*
4910 fi
4911 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4912 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4913
4914 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4915 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4916 LN_S=$as_ln_s
4917 if test "$LN_S" = "ln -s"; then
4918   echo "$as_me:$LINENO: result: yes" >&5
4919 echo "${ECHO_T}yes" >&6
4920 else
4921   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4922 echo "${ECHO_T}no, using $LN_S" >&6
4923 fi
4924
4925 # find the maximum length of command line arguments
4926 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4927 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4928 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931     i=0
4932   teststring="ABCD"
4933
4934   case $build_os in
4935   msdosdjgpp*)
4936     # On DJGPP, this test can blow up pretty badly due to problems in libc
4937     # (any single argument exceeding 2000 bytes causes a buffer overrun
4938     # during glob expansion).  Even if it were fixed, the result of this
4939     # check would be larger than it should be.
4940     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4941     ;;
4942
4943   gnu*)
4944     # Under GNU Hurd, this test is not required because there is
4945     # no limit to the length of command line arguments.
4946     # Libtool will interpret -1 as no limit whatsoever
4947     lt_cv_sys_max_cmd_len=-1;
4948     ;;
4949
4950   cygwin* | mingw*)
4951     # On Win9x/ME, this test blows up -- it succeeds, but takes
4952     # about 5 minutes as the teststring grows exponentially.
4953     # Worse, since 9x/ME are not pre-emptively multitasking,
4954     # you end up with a "frozen" computer, even though with patience
4955     # the test eventually succeeds (with a max line length of 256k).
4956     # Instead, let's just punt: use the minimum linelength reported by
4957     # all of the supported platforms: 8192 (on NT/2K/XP).
4958     lt_cv_sys_max_cmd_len=8192;
4959     ;;
4960
4961   amigaos*)
4962     # On AmigaOS with pdksh, this test takes hours, literally.
4963     # So we just punt and use a minimum line length of 8192.
4964     lt_cv_sys_max_cmd_len=8192;
4965     ;;
4966
4967   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4968     # This has been around since 386BSD, at least.  Likely further.
4969     if test -x /sbin/sysctl; then
4970       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4971     elif test -x /usr/sbin/sysctl; then
4972       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4973     else
4974       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4975     fi
4976     # And add a safety zone
4977     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4978     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4979     ;;
4980
4981   interix*)
4982     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4983     lt_cv_sys_max_cmd_len=196608
4984     ;;
4985
4986   osf*)
4987     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4988     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4989     # nice to cause kernel panics so lets avoid the loop below.
4990     # First set a reasonable default.
4991     lt_cv_sys_max_cmd_len=16384
4992     #
4993     if test -x /sbin/sysconfig; then
4994       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4995         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4996       esac
4997     fi
4998     ;;
4999   sco3.2v5*)
5000     lt_cv_sys_max_cmd_len=102400
5001     ;;
5002   sysv5* | sco5v6* | sysv4.2uw2*)
5003     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5004     if test -n "$kargmax"; then
5005       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5006     else
5007       lt_cv_sys_max_cmd_len=32768
5008     fi
5009     ;;
5010   *)
5011     # Make teststring a little bigger before we do anything with it.
5012     # a 1K string should be a reasonable start.
5013     for i in 1 2 3 4 5 6 7 8 ; do
5014       teststring=$teststring$teststring
5015     done
5016     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5017     # If test is not a shell built-in, we'll probably end up computing a
5018     # maximum length that is only half of the actual maximum length, but
5019     # we can't tell.
5020     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5021                = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5022             test $i != 17 # 1/2 MB should be enough
5023     do
5024       i=`expr $i + 1`
5025       teststring=$teststring$teststring
5026     done
5027     # Only check the string length outside the loop.
5028     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5029     teststring=
5030     # Add a significant safety factor because C++ compilers can tack on massive
5031     # amounts of additional arguments before passing them to the linker.
5032     # It appears as though 1/2 is a usable value.
5033     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5034     ;;
5035   esac
5036
5037 fi
5038
5039 if test -n $lt_cv_sys_max_cmd_len ; then
5040   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5041 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5042 else
5043   echo "$as_me:$LINENO: result: none" >&5
5044 echo "${ECHO_T}none" >&6
5045 fi
5046 max_cmd_len=$lt_cv_sys_max_cmd_len
5047
5048
5049
5050
5051
5052
5053 : ${CP="cp -f"}
5054 : ${MV="mv -f"}
5055 : ${RM="rm -f"}
5056
5057 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5058 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5059 # Try some XSI features
5060 xsi_shell=no
5061 ( _lt_dummy="a/b/c"
5062   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5063       = c,a/b,, ) >/dev/null 2>&1 \
5064   && xsi_shell=yes
5065 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5066 echo "${ECHO_T}$xsi_shell" >&6
5067
5068
5069 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5070 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5071 lt_shell_append=no
5072 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5073     >/dev/null 2>&1 \
5074   && lt_shell_append=yes
5075 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5076 echo "${ECHO_T}$lt_shell_append" >&6
5077
5078
5079 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5080   lt_unset=unset
5081 else
5082   lt_unset=false
5083 fi
5084
5085
5086
5087
5088
5089 # test EBCDIC or ASCII
5090 case `echo X|tr X '\101'` in
5091  A) # ASCII based system
5092     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5093   lt_SP2NL='tr \040 \012'
5094   lt_NL2SP='tr \015\012 \040\040'
5095   ;;
5096  *) # EBCDIC based system
5097   lt_SP2NL='tr \100 \n'
5098   lt_NL2SP='tr \r\n \100\100'
5099   ;;
5100 esac
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5111 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5112 if test "${lt_cv_ld_reload_flag+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   lt_cv_ld_reload_flag='-r'
5116 fi
5117 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5118 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5119 reload_flag=$lt_cv_ld_reload_flag
5120 case $reload_flag in
5121 "" | " "*) ;;
5122 *) reload_flag=" $reload_flag" ;;
5123 esac
5124 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5125 case $host_os in
5126   darwin*)
5127     if test "$GCC" = yes; then
5128       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5129     else
5130       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5131     fi
5132     ;;
5133 esac
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5145 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5146 if test "${lt_cv_deplibs_check_method+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149   lt_cv_file_magic_cmd='$MAGIC_CMD'
5150 lt_cv_file_magic_test_file=
5151 lt_cv_deplibs_check_method='unknown'
5152 # Need to set the preceding variable on all platforms that support
5153 # interlibrary dependencies.
5154 # 'none' -- dependencies not supported.
5155 # `unknown' -- same as none, but documents that we really don't know.
5156 # 'pass_all' -- all dependencies passed with no checks.
5157 # 'test_compile' -- check by making test program.
5158 # 'file_magic [[regex]]' -- check by looking for files in library path
5159 # which responds to the $file_magic_cmd with a given extended regex.
5160 # If you have `file' or equivalent on your system and you're not sure
5161 # whether `pass_all' will *always* work, you probably want this one.
5162
5163 case $host_os in
5164 aix4* | aix5*)
5165   lt_cv_deplibs_check_method=pass_all
5166   ;;
5167
5168 beos*)
5169   lt_cv_deplibs_check_method=pass_all
5170   ;;
5171
5172 bsdi[45]*)
5173   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5174   lt_cv_file_magic_cmd='/usr/bin/file -L'
5175   lt_cv_file_magic_test_file=/shlib/libc.so
5176   ;;
5177
5178 cygwin*)
5179   # func_win32_libid is a shell function defined in ltmain.sh
5180   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5181   lt_cv_file_magic_cmd='func_win32_libid'
5182   ;;
5183
5184 mingw* | pw32*)
5185   # Base MSYS/MinGW do not provide the 'file' command needed by
5186   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5187   # unless we find 'file', for example because we are cross-compiling.
5188   if ( file / ) >/dev/null 2>&1; then
5189     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5190     lt_cv_file_magic_cmd='func_win32_libid'
5191   else
5192     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5193     lt_cv_file_magic_cmd='$OBJDUMP -f'
5194   fi
5195   ;;
5196
5197 darwin* | rhapsody*)
5198   lt_cv_deplibs_check_method=pass_all
5199   ;;
5200
5201 freebsd* | dragonfly*)
5202   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5203     case $host_cpu in
5204     i*86 )
5205       # Not sure whether the presence of OpenBSD here was a mistake.
5206       # Let's accept both of them until this is cleared up.
5207       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5208       lt_cv_file_magic_cmd=/usr/bin/file
5209       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5210       ;;
5211     esac
5212   else
5213     lt_cv_deplibs_check_method=pass_all
5214   fi
5215   ;;
5216
5217 gnu*)
5218   lt_cv_deplibs_check_method=pass_all
5219   ;;
5220
5221 hpux10.20* | hpux11*)
5222   lt_cv_file_magic_cmd=/usr/bin/file
5223   case $host_cpu in
5224   ia64*)
5225     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5226     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5227     ;;
5228   hppa*64*)
5229     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]'
5230     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5231     ;;
5232   *)
5233     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5234     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5235     ;;
5236   esac
5237   ;;
5238
5239 interix[3-9]*)
5240   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5241   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5242   ;;
5243
5244 irix5* | irix6* | nonstopux*)
5245   case $LD in
5246   *-32|*"-32 ") libmagic=32-bit;;
5247   *-n32|*"-n32 ") libmagic=N32;;
5248   *-64|*"-64 ") libmagic=64-bit;;
5249   *) libmagic=never-match;;
5250   esac
5251   lt_cv_deplibs_check_method=pass_all
5252   ;;
5253
5254 # This must be Linux ELF.
5255 linux* | k*bsd*-gnu)
5256   lt_cv_deplibs_check_method=pass_all
5257   ;;
5258
5259 netbsd*)
5260   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5261     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5262   else
5263     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5264   fi
5265   ;;
5266
5267 newos6*)
5268   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5269   lt_cv_file_magic_cmd=/usr/bin/file
5270   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5271   ;;
5272
5273 *nto* | *qnx*)
5274   lt_cv_deplibs_check_method=pass_all
5275   ;;
5276
5277 openbsd*)
5278   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5279     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5280   else
5281     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5282   fi
5283   ;;
5284
5285 osf3* | osf4* | osf5*)
5286   lt_cv_deplibs_check_method=pass_all
5287   ;;
5288
5289 rdos*)
5290   lt_cv_deplibs_check_method=pass_all
5291   ;;
5292
5293 solaris*)
5294   lt_cv_deplibs_check_method=pass_all
5295   ;;
5296
5297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5298   lt_cv_deplibs_check_method=pass_all
5299   ;;
5300
5301 sysv4 | sysv4.3*)
5302   case $host_vendor in
5303   motorola)
5304     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]'
5305     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5306     ;;
5307   ncr)
5308     lt_cv_deplibs_check_method=pass_all
5309     ;;
5310   sequent)
5311     lt_cv_file_magic_cmd='/bin/file'
5312     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5313     ;;
5314   sni)
5315     lt_cv_file_magic_cmd='/bin/file'
5316     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5317     lt_cv_file_magic_test_file=/lib/libc.so
5318     ;;
5319   siemens)
5320     lt_cv_deplibs_check_method=pass_all
5321     ;;
5322   pc)
5323     lt_cv_deplibs_check_method=pass_all
5324     ;;
5325   esac
5326   ;;
5327
5328 tpf*)
5329   lt_cv_deplibs_check_method=pass_all
5330   ;;
5331 esac
5332
5333 fi
5334 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5335 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5336 file_magic_cmd=$lt_cv_file_magic_cmd
5337 deplibs_check_method=$lt_cv_deplibs_check_method
5338 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351 if test -n "$ac_tool_prefix"; then
5352   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5353 set dummy ${ac_tool_prefix}ar; ac_word=$2
5354 echo "$as_me:$LINENO: checking for $ac_word" >&5
5355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5356 if test "${ac_cv_prog_AR+set}" = set; then
5357   echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359   if test -n "$AR"; then
5360   ac_cv_prog_AR="$AR" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365   IFS=$as_save_IFS
5366   test -z "$as_dir" && as_dir=.
5367   for ac_exec_ext in '' $ac_executable_extensions; do
5368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369     ac_cv_prog_AR="${ac_tool_prefix}ar"
5370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371     break 2
5372   fi
5373 done
5374 done
5375
5376 fi
5377 fi
5378 AR=$ac_cv_prog_AR
5379 if test -n "$AR"; then
5380   echo "$as_me:$LINENO: result: $AR" >&5
5381 echo "${ECHO_T}$AR" >&6
5382 else
5383   echo "$as_me:$LINENO: result: no" >&5
5384 echo "${ECHO_T}no" >&6
5385 fi
5386
5387 fi
5388 if test -z "$ac_cv_prog_AR"; then
5389   ac_ct_AR=$AR
5390   # Extract the first word of "ar", so it can be a program name with args.
5391 set dummy ar; ac_word=$2
5392 echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5394 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   if test -n "$ac_ct_AR"; then
5398   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403   IFS=$as_save_IFS
5404   test -z "$as_dir" && as_dir=.
5405   for ac_exec_ext in '' $ac_executable_extensions; do
5406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407     ac_cv_prog_ac_ct_AR="ar"
5408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409     break 2
5410   fi
5411 done
5412 done
5413
5414   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5415 fi
5416 fi
5417 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5418 if test -n "$ac_ct_AR"; then
5419   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5420 echo "${ECHO_T}$ac_ct_AR" >&6
5421 else
5422   echo "$as_me:$LINENO: result: no" >&5
5423 echo "${ECHO_T}no" >&6
5424 fi
5425
5426   AR=$ac_ct_AR
5427 else
5428   AR="$ac_cv_prog_AR"
5429 fi
5430
5431 test -z "$AR" && AR=ar
5432 test -z "$AR_FLAGS" && AR_FLAGS=cru
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444 if test -n "$ac_tool_prefix"; then
5445   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5446 set dummy ${ac_tool_prefix}strip; ac_word=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_prog_STRIP+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452   if test -n "$STRIP"; then
5453   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460   for ac_exec_ext in '' $ac_executable_extensions; do
5461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467 done
5468
5469 fi
5470 fi
5471 STRIP=$ac_cv_prog_STRIP
5472 if test -n "$STRIP"; then
5473   echo "$as_me:$LINENO: result: $STRIP" >&5
5474 echo "${ECHO_T}$STRIP" >&6
5475 else
5476   echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6
5478 fi
5479
5480 fi
5481 if test -z "$ac_cv_prog_STRIP"; then
5482   ac_ct_STRIP=$STRIP
5483   # Extract the first word of "strip", so it can be a program name with args.
5484 set dummy strip; ac_word=$2
5485 echo "$as_me:$LINENO: checking for $ac_word" >&5
5486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   if test -n "$ac_ct_STRIP"; then
5491   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498   for ac_exec_ext in '' $ac_executable_extensions; do
5499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500     ac_cv_prog_ac_ct_STRIP="strip"
5501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502     break 2
5503   fi
5504 done
5505 done
5506
5507   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5508 fi
5509 fi
5510 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5511 if test -n "$ac_ct_STRIP"; then
5512   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5513 echo "${ECHO_T}$ac_ct_STRIP" >&6
5514 else
5515   echo "$as_me:$LINENO: result: no" >&5
5516 echo "${ECHO_T}no" >&6
5517 fi
5518
5519   STRIP=$ac_ct_STRIP
5520 else
5521   STRIP="$ac_cv_prog_STRIP"
5522 fi
5523
5524 test -z "$STRIP" && STRIP=:
5525
5526
5527
5528
5529
5530
5531 if test -n "$ac_tool_prefix"; then
5532   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5534 echo "$as_me:$LINENO: checking for $ac_word" >&5
5535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5536 if test "${ac_cv_prog_RANLIB+set}" = set; then
5537   echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539   if test -n "$RANLIB"; then
5540   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545   IFS=$as_save_IFS
5546   test -z "$as_dir" && as_dir=.
5547   for ac_exec_ext in '' $ac_executable_extensions; do
5548   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5551     break 2
5552   fi
5553 done
5554 done
5555
5556 fi
5557 fi
5558 RANLIB=$ac_cv_prog_RANLIB
5559 if test -n "$RANLIB"; then
5560   echo "$as_me:$LINENO: result: $RANLIB" >&5
5561 echo "${ECHO_T}$RANLIB" >&6
5562 else
5563   echo "$as_me:$LINENO: result: no" >&5
5564 echo "${ECHO_T}no" >&6
5565 fi
5566
5567 fi
5568 if test -z "$ac_cv_prog_RANLIB"; then
5569   ac_ct_RANLIB=$RANLIB
5570   # Extract the first word of "ranlib", so it can be a program name with args.
5571 set dummy ranlib; ac_word=$2
5572 echo "$as_me:$LINENO: checking for $ac_word" >&5
5573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5574 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5575   echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577   if test -n "$ac_ct_RANLIB"; then
5578   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583   IFS=$as_save_IFS
5584   test -z "$as_dir" && as_dir=.
5585   for ac_exec_ext in '' $ac_executable_extensions; do
5586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587     ac_cv_prog_ac_ct_RANLIB="ranlib"
5588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589     break 2
5590   fi
5591 done
5592 done
5593
5594   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5595 fi
5596 fi
5597 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5598 if test -n "$ac_ct_RANLIB"; then
5599   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5600 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5601 else
5602   echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6
5604 fi
5605
5606   RANLIB=$ac_ct_RANLIB
5607 else
5608   RANLIB="$ac_cv_prog_RANLIB"
5609 fi
5610
5611 test -z "$RANLIB" && RANLIB=:
5612
5613
5614
5615
5616
5617
5618 # Determine commands to create old-style static archives.
5619 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5620 old_postinstall_cmds='chmod 644 $oldlib'
5621 old_postuninstall_cmds=
5622
5623 if test -n "$RANLIB"; then
5624   case $host_os in
5625   openbsd*)
5626     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5627     ;;
5628   *)
5629     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5630     ;;
5631   esac
5632   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5633 fi
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668 # If no C compiler was specified, use CC.
5669 LTCC=${LTCC-"$CC"}
5670
5671 # If no C compiler flags were specified, use CFLAGS.
5672 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5673
5674 # Allow CC to be a program name with arguments.
5675 compiler=$CC
5676
5677
5678 # Check for command to grab the raw symbol name followed by C symbol from nm.
5679 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5680 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5681 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5682   echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684
5685 # These are sane defaults that work on at least a few old systems.
5686 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5687
5688 # Character class describing NM global symbol codes.
5689 symcode='[BCDEGRST]'
5690
5691 # Regexp to match symbols that can be accessed directly from C.
5692 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5693
5694 # Define system-specific variables.
5695 case $host_os in
5696 aix*)
5697   symcode='[BCDT]'
5698   ;;
5699 cygwin* | mingw* | pw32*)
5700   symcode='[ABCDGISTW]'
5701   ;;
5702 hpux*)
5703   if test "$host_cpu" = ia64; then
5704     symcode='[ABCDEGRST]'
5705   fi
5706   ;;
5707 irix* | nonstopux*)
5708   symcode='[BCDEGRST]'
5709   ;;
5710 osf*)
5711   symcode='[BCDEGQRST]'
5712   ;;
5713 solaris*)
5714   symcode='[BDRT]'
5715   ;;
5716 sco3.2v5*)
5717   symcode='[DT]'
5718   ;;
5719 sysv4.2uw2*)
5720   symcode='[DT]'
5721   ;;
5722 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5723   symcode='[ABDT]'
5724   ;;
5725 sysv4)
5726   symcode='[DFNSTU]'
5727   ;;
5728 esac
5729
5730 # If we're using GNU nm, then use its standard symbol codes.
5731 case `$NM -V 2>&1` in
5732 *GNU* | *'with BFD'*)
5733   symcode='[ABCDGIRSTW]' ;;
5734 esac
5735
5736 # Transform an extracted symbol line into a proper C declaration.
5737 # Some systems (esp. on ia64) link data and code symbols differently,
5738 # so use this general approach.
5739 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5740
5741 # Transform an extracted symbol line into symbol name and symbol address
5742 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5743
5744 # Handle CRLF in mingw tool chain
5745 opt_cr=
5746 case $build_os in
5747 mingw*)
5748   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5749   ;;
5750 esac
5751
5752 # Try without a prefix underscore, then with it.
5753 for ac_symprfx in "" "_"; do
5754
5755   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5756   symxfrm="\\1 $ac_symprfx\\2 \\2"
5757
5758   # Write the raw and C identifiers.
5759   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5760     # Fake it for dumpbin and say T for any non-static function
5761     # and D for any global variable.
5762     # Also find C++ and __fastcall symbols from MSVC++,
5763     # which start with @ or ?.
5764     lt_cv_sys_global_symbol_pipe="$AWK '"\
5765 "     {last_section=section; section=\$ 3};"\
5766 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5767 "     \$ 0!~/External *\|/{next};"\
5768 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5769 "     {if(hide[section]) next};"\
5770 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5771 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5772 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5773 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5774 "     ' prfx=^$ac_symprfx"
5775   else
5776     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5777   fi
5778
5779   # Check to see that the pipe works correctly.
5780   pipe_works=no
5781
5782   rm -f conftest*
5783   cat > conftest.$ac_ext <<_LT_EOF
5784 #ifdef __cplusplus
5785 extern "C" {
5786 #endif
5787 char nm_test_var;
5788 void nm_test_func(void);
5789 void nm_test_func(void){}
5790 #ifdef __cplusplus
5791 }
5792 #endif
5793 int main(){nm_test_var='a';nm_test_func();return(0);}
5794 _LT_EOF
5795
5796   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797   (eval $ac_compile) 2>&5
5798   ac_status=$?
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); }; then
5801     # Now try to grab the symbols.
5802     nlist=conftest.nm
5803     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5804   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5805   ac_status=$?
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); } && test -s "$nlist"; then
5808       # Try sorting and uniquifying the output.
5809       if sort "$nlist" | uniq > "$nlist"T; then
5810         mv -f "$nlist"T "$nlist"
5811       else
5812         rm -f "$nlist"T
5813       fi
5814
5815       # Make sure that we snagged all the symbols we need.
5816       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5817         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5818           cat <<_LT_EOF > conftest.$ac_ext
5819 #ifdef __cplusplus
5820 extern "C" {
5821 #endif
5822
5823 _LT_EOF
5824           # Now generate the symbol file.
5825           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5826
5827           cat <<_LT_EOF >> conftest.$ac_ext
5828
5829 /* The mapping between symbol names and symbols.  */
5830 const struct {
5831   const char *name;
5832   void       *address;
5833 }
5834 lt__PROGRAM__LTX_preloaded_symbols[] =
5835 {
5836   { "@PROGRAM@", (void *) 0 },
5837 _LT_EOF
5838           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5839           cat <<\_LT_EOF >> conftest.$ac_ext
5840   {0, (void *) 0}
5841 };
5842
5843 /* This works around a problem in FreeBSD linker */
5844 #ifdef FREEBSD_WORKAROUND
5845 static const void *lt_preloaded_setup() {
5846   return lt__PROGRAM__LTX_preloaded_symbols;
5847 }
5848 #endif
5849
5850 #ifdef __cplusplus
5851 }
5852 #endif
5853 _LT_EOF
5854           # Now try linking the two files.
5855           mv conftest.$ac_objext conftstm.$ac_objext
5856           lt_save_LIBS="$LIBS"
5857           lt_save_CFLAGS="$CFLAGS"
5858           LIBS="conftstm.$ac_objext"
5859           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5860           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861   (eval $ac_link) 2>&5
5862   ac_status=$?
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5865             pipe_works=yes
5866           fi
5867           LIBS="$lt_save_LIBS"
5868           CFLAGS="$lt_save_CFLAGS"
5869         else
5870           echo "cannot find nm_test_func in $nlist" >&5
5871         fi
5872       else
5873         echo "cannot find nm_test_var in $nlist" >&5
5874       fi
5875     else
5876       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5877     fi
5878   else
5879     echo "$progname: failed program was:" >&5
5880     cat conftest.$ac_ext >&5
5881   fi
5882   rm -f conftest* conftst*
5883
5884   # Do not use the global_symbol_pipe unless it works.
5885   if test "$pipe_works" = yes; then
5886     break
5887   else
5888     lt_cv_sys_global_symbol_pipe=
5889   fi
5890 done
5891
5892 fi
5893
5894 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5895   lt_cv_sys_global_symbol_to_cdecl=
5896 fi
5897 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5898   echo "$as_me:$LINENO: result: failed" >&5
5899 echo "${ECHO_T}failed" >&6
5900 else
5901   echo "$as_me:$LINENO: result: ok" >&5
5902 echo "${ECHO_T}ok" >&6
5903 fi
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5923 if test "${enable_libtool_lock+set}" = set; then
5924   enableval="$enable_libtool_lock"
5925
5926 fi;
5927 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5928
5929 # Some flags need to be propagated to the compiler or linker for good
5930 # libtool support.
5931 case $host in
5932 ia64-*-hpux*)
5933   # Find out which ABI we are using.
5934   echo 'int i;' > conftest.$ac_ext
5935   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936   (eval $ac_compile) 2>&5
5937   ac_status=$?
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); }; then
5940     case `/usr/bin/file conftest.$ac_objext` in
5941       *ELF-32*)
5942         HPUX_IA64_MODE="32"
5943         ;;
5944       *ELF-64*)
5945         HPUX_IA64_MODE="64"
5946         ;;
5947     esac
5948   fi
5949   rm -rf conftest*
5950   ;;
5951 *-*-irix6*)
5952   # Find out which ABI we are using.
5953   echo '#line 5953 "configure"' > conftest.$ac_ext
5954   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955   (eval $ac_compile) 2>&5
5956   ac_status=$?
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); }; then
5959     if test "$lt_cv_prog_gnu_ld" = yes; then
5960       case `/usr/bin/file conftest.$ac_objext` in
5961         *32-bit*)
5962           LD="${LD-ld} -melf32bsmip"
5963           ;;
5964         *N32*)
5965           LD="${LD-ld} -melf32bmipn32"
5966           ;;
5967         *64-bit*)
5968           LD="${LD-ld} -melf64bmip"
5969         ;;
5970       esac
5971     else
5972       case `/usr/bin/file conftest.$ac_objext` in
5973         *32-bit*)
5974           LD="${LD-ld} -32"
5975           ;;
5976         *N32*)
5977           LD="${LD-ld} -n32"
5978           ;;
5979         *64-bit*)
5980           LD="${LD-ld} -64"
5981           ;;
5982       esac
5983     fi
5984   fi
5985   rm -rf conftest*
5986   ;;
5987
5988 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5989 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5990   # Find out which ABI we are using.
5991   echo 'int i;' > conftest.$ac_ext
5992   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5993   (eval $ac_compile) 2>&5
5994   ac_status=$?
5995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996   (exit $ac_status); }; then
5997     case `/usr/bin/file conftest.o` in
5998       *32-bit*)
5999         case $host in
6000           x86_64-*kfreebsd*-gnu)
6001             LD="${LD-ld} -m elf_i386_fbsd"
6002             ;;
6003           x86_64-*linux*)
6004             LD="${LD-ld} -m elf_i386"
6005             ;;
6006           ppc64-*linux*|powerpc64-*linux*)
6007             LD="${LD-ld} -m elf32ppclinux"
6008             ;;
6009           s390x-*linux*)
6010             LD="${LD-ld} -m elf_s390"
6011             ;;
6012           sparc64-*linux*)
6013             LD="${LD-ld} -m elf32_sparc"
6014             ;;
6015         esac
6016         ;;
6017       *64-bit*)
6018         case $host in
6019           x86_64-*kfreebsd*-gnu)
6020             LD="${LD-ld} -m elf_x86_64_fbsd"
6021             ;;
6022           x86_64-*linux*)
6023             LD="${LD-ld} -m elf_x86_64"
6024             ;;
6025           ppc*-*linux*|powerpc*-*linux*)
6026             LD="${LD-ld} -m elf64ppc"
6027             ;;
6028           s390*-*linux*|s390*-*tpf*)
6029             LD="${LD-ld} -m elf64_s390"
6030             ;;
6031           sparc*-*linux*)
6032             LD="${LD-ld} -m elf64_sparc"
6033             ;;
6034         esac
6035         ;;
6036     esac
6037   fi
6038   rm -rf conftest*
6039   ;;
6040
6041 *-*-sco3.2v5*)
6042   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6043   SAVE_CFLAGS="$CFLAGS"
6044   CFLAGS="$CFLAGS -belf"
6045   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6046 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6047 if test "${lt_cv_cc_needs_belf+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   ac_ext=c
6051 ac_cpp='$CPP $CPPFLAGS'
6052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6055
6056      cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062
6063 int
6064 main ()
6065 {
6066
6067   ;
6068   return 0;
6069 }
6070 _ACEOF
6071 rm -f conftest.$ac_objext conftest$ac_exeext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6073   (eval $ac_link) 2>conftest.er1
6074   ac_status=$?
6075   grep -v '^ *+' conftest.er1 >conftest.err
6076   rm -f conftest.er1
6077   cat conftest.err >&5
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); } &&
6080          { ac_try='test -z "$ac_c_werror_flag"
6081                          || test ! -s conftest.err'
6082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083   (eval $ac_try) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; } &&
6087          { ac_try='test -s conftest$ac_exeext'
6088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089   (eval $ac_try) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); }; }; then
6093   lt_cv_cc_needs_belf=yes
6094 else
6095   echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 lt_cv_cc_needs_belf=no
6099 fi
6100 rm -f conftest.err conftest.$ac_objext \
6101       conftest$ac_exeext conftest.$ac_ext
6102      ac_ext=c
6103 ac_cpp='$CPP $CPPFLAGS'
6104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6107
6108 fi
6109 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6110 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6111   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6112     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6113     CFLAGS="$SAVE_CFLAGS"
6114   fi
6115   ;;
6116 sparc*-*solaris*)
6117   # Find out which ABI we are using.
6118   echo 'int i;' > conftest.$ac_ext
6119   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120   (eval $ac_compile) 2>&5
6121   ac_status=$?
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); }; then
6124     case `/usr/bin/file conftest.o` in
6125     *64-bit*)
6126       case $lt_cv_prog_gnu_ld in
6127       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6128       *)    LD="${LD-ld} -64" ;;
6129       esac
6130       ;;
6131     esac
6132   fi
6133   rm -rf conftest*
6134   ;;
6135 esac
6136
6137 need_locks="$enable_libtool_lock"
6138
6139 ac_ext=c
6140 ac_cpp='$CPP $CPPFLAGS'
6141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6144 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6145 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6146 # On Suns, sometimes $CPP names a directory.
6147 if test -n "$CPP" && test -d "$CPP"; then
6148   CPP=
6149 fi
6150 if test -z "$CPP"; then
6151   if test "${ac_cv_prog_CPP+set}" = set; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154       # Double quotes because CPP needs to be expanded
6155     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6156     do
6157       ac_preproc_ok=false
6158 for ac_c_preproc_warn_flag in '' yes
6159 do
6160   # Use a header file that comes with gcc, so configuring glibc
6161   # with a fresh cross-compiler works.
6162   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6163   # <limits.h> exists even on freestanding compilers.
6164   # On the NeXT, cc -E runs the code through the compiler's parser,
6165   # not just through cpp. "Syntax error" is here to catch this case.
6166   cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h.  */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h.  */
6172 #ifdef __STDC__
6173 # include <limits.h>
6174 #else
6175 # include <assert.h>
6176 #endif
6177                      Syntax error
6178 _ACEOF
6179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6181   ac_status=$?
6182   grep -v '^ *+' conftest.er1 >conftest.err
6183   rm -f conftest.er1
6184   cat conftest.err >&5
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); } >/dev/null; then
6187   if test -s conftest.err; then
6188     ac_cpp_err=$ac_c_preproc_warn_flag
6189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6190   else
6191     ac_cpp_err=
6192   fi
6193 else
6194   ac_cpp_err=yes
6195 fi
6196 if test -z "$ac_cpp_err"; then
6197   :
6198 else
6199   echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6201
6202   # Broken: fails on valid input.
6203 continue
6204 fi
6205 rm -f conftest.err conftest.$ac_ext
6206
6207   # OK, works on sane cases.  Now check whether non-existent headers
6208   # can be detected and how.
6209   cat >conftest.$ac_ext <<_ACEOF
6210 /* confdefs.h.  */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h.  */
6215 #include <ac_nonexistent.h>
6216 _ACEOF
6217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6218   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6219   ac_status=$?
6220   grep -v '^ *+' conftest.er1 >conftest.err
6221   rm -f conftest.er1
6222   cat conftest.err >&5
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); } >/dev/null; then
6225   if test -s conftest.err; then
6226     ac_cpp_err=$ac_c_preproc_warn_flag
6227     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6228   else
6229     ac_cpp_err=
6230   fi
6231 else
6232   ac_cpp_err=yes
6233 fi
6234 if test -z "$ac_cpp_err"; then
6235   # Broken: success on invalid input.
6236 continue
6237 else
6238   echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6240
6241   # Passes both tests.
6242 ac_preproc_ok=:
6243 break
6244 fi
6245 rm -f conftest.err conftest.$ac_ext
6246
6247 done
6248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6249 rm -f conftest.err conftest.$ac_ext
6250 if $ac_preproc_ok; then
6251   break
6252 fi
6253
6254     done
6255     ac_cv_prog_CPP=$CPP
6256
6257 fi
6258   CPP=$ac_cv_prog_CPP
6259 else
6260   ac_cv_prog_CPP=$CPP
6261 fi
6262 echo "$as_me:$LINENO: result: $CPP" >&5
6263 echo "${ECHO_T}$CPP" >&6
6264 ac_preproc_ok=false
6265 for ac_c_preproc_warn_flag in '' yes
6266 do
6267   # Use a header file that comes with gcc, so configuring glibc
6268   # with a fresh cross-compiler works.
6269   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6270   # <limits.h> exists even on freestanding compilers.
6271   # On the NeXT, cc -E runs the code through the compiler's parser,
6272   # not just through cpp. "Syntax error" is here to catch this case.
6273   cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h.  */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h.  */
6279 #ifdef __STDC__
6280 # include <limits.h>
6281 #else
6282 # include <assert.h>
6283 #endif
6284                      Syntax error
6285 _ACEOF
6286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6287   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6288   ac_status=$?
6289   grep -v '^ *+' conftest.er1 >conftest.err
6290   rm -f conftest.er1
6291   cat conftest.err >&5
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); } >/dev/null; then
6294   if test -s conftest.err; then
6295     ac_cpp_err=$ac_c_preproc_warn_flag
6296     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6297   else
6298     ac_cpp_err=
6299   fi
6300 else
6301   ac_cpp_err=yes
6302 fi
6303 if test -z "$ac_cpp_err"; then
6304   :
6305 else
6306   echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309   # Broken: fails on valid input.
6310 continue
6311 fi
6312 rm -f conftest.err conftest.$ac_ext
6313
6314   # OK, works on sane cases.  Now check whether non-existent headers
6315   # can be detected and how.
6316   cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h.  */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h.  */
6322 #include <ac_nonexistent.h>
6323 _ACEOF
6324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6326   ac_status=$?
6327   grep -v '^ *+' conftest.er1 >conftest.err
6328   rm -f conftest.er1
6329   cat conftest.err >&5
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); } >/dev/null; then
6332   if test -s conftest.err; then
6333     ac_cpp_err=$ac_c_preproc_warn_flag
6334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6335   else
6336     ac_cpp_err=
6337   fi
6338 else
6339   ac_cpp_err=yes
6340 fi
6341 if test -z "$ac_cpp_err"; then
6342   # Broken: success on invalid input.
6343 continue
6344 else
6345   echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6347
6348   # Passes both tests.
6349 ac_preproc_ok=:
6350 break
6351 fi
6352 rm -f conftest.err conftest.$ac_ext
6353
6354 done
6355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6356 rm -f conftest.err conftest.$ac_ext
6357 if $ac_preproc_ok; then
6358   :
6359 else
6360   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6361 See \`config.log' for more details." >&5
6362 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6363 See \`config.log' for more details." >&2;}
6364    { (exit 1); exit 1; }; }
6365 fi
6366
6367 ac_ext=c
6368 ac_cpp='$CPP $CPPFLAGS'
6369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6372
6373
6374 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6375 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6376 if test "${ac_cv_header_stdc+set}" = set; then
6377   echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379   cat >conftest.$ac_ext <<_ACEOF
6380 /* confdefs.h.  */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h.  */
6385 #include <stdlib.h>
6386 #include <stdarg.h>
6387 #include <string.h>
6388 #include <float.h>
6389
6390 int
6391 main ()
6392 {
6393
6394   ;
6395   return 0;
6396 }
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400   (eval $ac_compile) 2>conftest.er1
6401   ac_status=$?
6402   grep -v '^ *+' conftest.er1 >conftest.err
6403   rm -f conftest.er1
6404   cat conftest.err >&5
6405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406   (exit $ac_status); } &&
6407          { ac_try='test -z "$ac_c_werror_flag"
6408                          || test ! -s conftest.err'
6409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410   (eval $ac_try) 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); }; } &&
6414          { ac_try='test -s conftest.$ac_objext'
6415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416   (eval $ac_try) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); }; }; then
6420   ac_cv_header_stdc=yes
6421 else
6422   echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425 ac_cv_header_stdc=no
6426 fi
6427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428
6429 if test $ac_cv_header_stdc = yes; then
6430   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6431   cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h.  */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h.  */
6437 #include <string.h>
6438
6439 _ACEOF
6440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6441   $EGREP "memchr" >/dev/null 2>&1; then
6442   :
6443 else
6444   ac_cv_header_stdc=no
6445 fi
6446 rm -f conftest*
6447
6448 fi
6449
6450 if test $ac_cv_header_stdc = yes; then
6451   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6452   cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458 #include <stdlib.h>
6459
6460 _ACEOF
6461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6462   $EGREP "free" >/dev/null 2>&1; then
6463   :
6464 else
6465   ac_cv_header_stdc=no
6466 fi
6467 rm -f conftest*
6468
6469 fi
6470
6471 if test $ac_cv_header_stdc = yes; then
6472   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6473   if test "$cross_compiling" = yes; then
6474   :
6475 else
6476   cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h.  */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h.  */
6482 #include <ctype.h>
6483 #if ((' ' & 0x0FF) == 0x020)
6484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6486 #else
6487 # define ISLOWER(c) \
6488                    (('a' <= (c) && (c) <= 'i') \
6489                      || ('j' <= (c) && (c) <= 'r') \
6490                      || ('s' <= (c) && (c) <= 'z'))
6491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6492 #endif
6493
6494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6495 int
6496 main ()
6497 {
6498   int i;
6499   for (i = 0; i < 256; i++)
6500     if (XOR (islower (i), ISLOWER (i))
6501         || toupper (i) != TOUPPER (i))
6502       exit(2);
6503   exit (0);
6504 }
6505 _ACEOF
6506 rm -f conftest$ac_exeext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508   (eval $ac_link) 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513   (eval $ac_try) 2>&5
6514   ac_status=$?
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); }; }; then
6517   :
6518 else
6519   echo "$as_me: program exited with status $ac_status" >&5
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6522
6523 ( exit $ac_status )
6524 ac_cv_header_stdc=no
6525 fi
6526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6527 fi
6528 fi
6529 fi
6530 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6531 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6532 if test $ac_cv_header_stdc = yes; then
6533
6534 cat >>confdefs.h <<\_ACEOF
6535 #define STDC_HEADERS 1
6536 _ACEOF
6537
6538 fi
6539
6540 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6551                   inttypes.h stdint.h unistd.h
6552 do
6553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6554 echo "$as_me:$LINENO: checking for $ac_header" >&5
6555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6557   echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559   cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h.  */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h.  */
6565 $ac_includes_default
6566
6567 #include <$ac_header>
6568 _ACEOF
6569 rm -f conftest.$ac_objext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571   (eval $ac_compile) 2>conftest.er1
6572   ac_status=$?
6573   grep -v '^ *+' conftest.er1 >conftest.err
6574   rm -f conftest.er1
6575   cat conftest.err >&5
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); } &&
6578          { ac_try='test -z "$ac_c_werror_flag"
6579                          || test ! -s conftest.err'
6580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581   (eval $ac_try) 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); }; } &&
6585          { ac_try='test -s conftest.$ac_objext'
6586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587   (eval $ac_try) 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); }; }; then
6591   eval "$as_ac_Header=yes"
6592 else
6593   echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6595
6596 eval "$as_ac_Header=no"
6597 fi
6598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6599 fi
6600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6603   cat >>confdefs.h <<_ACEOF
6604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6605 _ACEOF
6606
6607 fi
6608
6609 done
6610
6611
6612
6613 for ac_header in dlfcn.h
6614 do
6615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6616 echo "$as_me:$LINENO: checking for $ac_header" >&5
6617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
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 $ac_includes_default
6628
6629 #include <$ac_header>
6630 _ACEOF
6631 rm -f conftest.$ac_objext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6633   (eval $ac_compile) 2>conftest.er1
6634   ac_status=$?
6635   grep -v '^ *+' conftest.er1 >conftest.err
6636   rm -f conftest.er1
6637   cat conftest.err >&5
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); } &&
6640          { ac_try='test -z "$ac_c_werror_flag"
6641                          || test ! -s conftest.err'
6642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643   (eval $ac_try) 2>&5
6644   ac_status=$?
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); }; } &&
6647          { ac_try='test -s conftest.$ac_objext'
6648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649   (eval $ac_try) 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); }; }; then
6653   eval "$as_ac_Header=yes"
6654 else
6655   echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6657
6658 eval "$as_ac_Header=no"
6659 fi
6660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6661 fi
6662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6665   cat >>confdefs.h <<_ACEOF
6666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6667 _ACEOF
6668
6669 fi
6670
6671 done
6672
6673
6674
6675 # This can be used to rebuild libtool when needed
6676 LIBTOOL_DEPS="$ltmain"
6677
6678 # Always use our own libtool.
6679 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705 test -z "$LN_S" && LN_S="ln -s"
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720 if test -n "${ZSH_VERSION+set}" ; then
6721    setopt NO_GLOB_SUBST
6722 fi
6723
6724 echo "$as_me:$LINENO: checking for objdir" >&5
6725 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6726 if test "${lt_cv_objdir+set}" = set; then
6727   echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729   rm -f .libs 2>/dev/null
6730 mkdir .libs 2>/dev/null
6731 if test -d .libs; then
6732   lt_cv_objdir=.libs
6733 else
6734   # MS-DOS does not allow filenames that begin with a dot.
6735   lt_cv_objdir=_libs
6736 fi
6737 rmdir .libs 2>/dev/null
6738 fi
6739 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6740 echo "${ECHO_T}$lt_cv_objdir" >&6
6741 objdir=$lt_cv_objdir
6742
6743
6744
6745
6746
6747 cat >>confdefs.h <<_ACEOF
6748 #define LT_OBJDIR "$lt_cv_objdir/"
6749 _ACEOF
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767 case $host_os in
6768 aix3*)
6769   # AIX sometimes has problems with the GCC collect2 program.  For some
6770   # reason, if we set the COLLECT_NAMES environment variable, the problems
6771   # vanish in a puff of smoke.
6772   if test "X${COLLECT_NAMES+set}" != Xset; then
6773     COLLECT_NAMES=
6774     export COLLECT_NAMES
6775   fi
6776   ;;
6777 esac
6778
6779 # Sed substitution that helps us do robust quoting.  It backslashifies
6780 # metacharacters that are still active within double-quoted strings.
6781 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6782
6783 # Same as above, but do not quote variable references.
6784 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6785
6786 # Sed substitution to delay expansion of an escaped shell variable in a
6787 # double_quote_subst'ed string.
6788 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6789
6790 # Sed substitution to delay expansion of an escaped single quote.
6791 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6792
6793 # Sed substitution to avoid accidental globbing in evaled expressions
6794 no_glob_subst='s/\*/\\\*/g'
6795
6796 # Global variables:
6797 ofile=libtool
6798 can_build_shared=yes
6799
6800 # All known linkers require a `.a' archive for static linking (except MSVC,
6801 # which needs '.lib').
6802 libext=a
6803
6804 with_gnu_ld="$lt_cv_prog_gnu_ld"
6805
6806 old_CC="$CC"
6807 old_CFLAGS="$CFLAGS"
6808
6809 # Set sane defaults for various variables
6810 test -z "$CC" && CC=cc
6811 test -z "$LTCC" && LTCC=$CC
6812 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6813 test -z "$LD" && LD=ld
6814 test -z "$ac_objext" && ac_objext=o
6815
6816 for cc_temp in $compiler""; do
6817   case $cc_temp in
6818     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6819     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6820     \-*) ;;
6821     *) break;;
6822   esac
6823 done
6824 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6825
6826
6827 # Only perform the check for file, if the check method requires it
6828 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6829 case $deplibs_check_method in
6830 file_magic*)
6831   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6832     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6833 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6834 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6835   echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837   case $MAGIC_CMD in
6838 [\\/*] |  ?:[\\/]*)
6839   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6840   ;;
6841 *)
6842   lt_save_MAGIC_CMD="$MAGIC_CMD"
6843   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6844   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6845   for ac_dir in $ac_dummy; do
6846     IFS="$lt_save_ifs"
6847     test -z "$ac_dir" && ac_dir=.
6848     if test -f $ac_dir/${ac_tool_prefix}file; then
6849       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6850       if test -n "$file_magic_test_file"; then
6851         case $deplibs_check_method in
6852         "file_magic "*)
6853           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6854           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6855           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6856             $EGREP "$file_magic_regex" > /dev/null; then
6857             :
6858           else
6859             cat <<_LT_EOF 1>&2
6860
6861 *** Warning: the command libtool uses to detect shared libraries,
6862 *** $file_magic_cmd, produces output that libtool cannot recognize.
6863 *** The result is that libtool may fail to recognize shared libraries
6864 *** as such.  This will affect the creation of libtool libraries that
6865 *** depend on shared libraries, but programs linked with such libtool
6866 *** libraries will work regardless of this problem.  Nevertheless, you
6867 *** may want to report the problem to your system manager and/or to
6868 *** bug-libtool@gnu.org
6869
6870 _LT_EOF
6871           fi ;;
6872         esac
6873       fi
6874       break
6875     fi
6876   done
6877   IFS="$lt_save_ifs"
6878   MAGIC_CMD="$lt_save_MAGIC_CMD"
6879   ;;
6880 esac
6881 fi
6882
6883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6884 if test -n "$MAGIC_CMD"; then
6885   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6886 echo "${ECHO_T}$MAGIC_CMD" >&6
6887 else
6888   echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6
6890 fi
6891
6892
6893
6894
6895
6896 if test -z "$lt_cv_path_MAGIC_CMD"; then
6897   if test -n "$ac_tool_prefix"; then
6898     echo "$as_me:$LINENO: checking for file" >&5
6899 echo $ECHO_N "checking for file... $ECHO_C" >&6
6900 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6901   echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903   case $MAGIC_CMD in
6904 [\\/*] |  ?:[\\/]*)
6905   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6906   ;;
6907 *)
6908   lt_save_MAGIC_CMD="$MAGIC_CMD"
6909   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6910   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6911   for ac_dir in $ac_dummy; do
6912     IFS="$lt_save_ifs"
6913     test -z "$ac_dir" && ac_dir=.
6914     if test -f $ac_dir/file; then
6915       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6916       if test -n "$file_magic_test_file"; then
6917         case $deplibs_check_method in
6918         "file_magic "*)
6919           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6920           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6921           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6922             $EGREP "$file_magic_regex" > /dev/null; then
6923             :
6924           else
6925             cat <<_LT_EOF 1>&2
6926
6927 *** Warning: the command libtool uses to detect shared libraries,
6928 *** $file_magic_cmd, produces output that libtool cannot recognize.
6929 *** The result is that libtool may fail to recognize shared libraries
6930 *** as such.  This will affect the creation of libtool libraries that
6931 *** depend on shared libraries, but programs linked with such libtool
6932 *** libraries will work regardless of this problem.  Nevertheless, you
6933 *** may want to report the problem to your system manager and/or to
6934 *** bug-libtool@gnu.org
6935
6936 _LT_EOF
6937           fi ;;
6938         esac
6939       fi
6940       break
6941     fi
6942   done
6943   IFS="$lt_save_ifs"
6944   MAGIC_CMD="$lt_save_MAGIC_CMD"
6945   ;;
6946 esac
6947 fi
6948
6949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6950 if test -n "$MAGIC_CMD"; then
6951   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6952 echo "${ECHO_T}$MAGIC_CMD" >&6
6953 else
6954   echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6
6956 fi
6957
6958
6959   else
6960     MAGIC_CMD=:
6961   fi
6962 fi
6963
6964   fi
6965   ;;
6966 esac
6967
6968 # Use C for the default configuration in the libtool script
6969
6970 lt_save_CC="$CC"
6971 ac_ext=c
6972 ac_cpp='$CPP $CPPFLAGS'
6973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6976
6977
6978 # Source file extension for C test sources.
6979 ac_ext=c
6980
6981 # Object file extension for compiled C test sources.
6982 objext=o
6983 objext=$objext
6984
6985 # Code to be used in simple compile tests
6986 lt_simple_compile_test_code="int some_variable = 0;"
6987
6988 # Code to be used in simple link tests
6989 lt_simple_link_test_code='int main(){return(0);}'
6990
6991
6992
6993
6994
6995
6996
6997 # If no C compiler was specified, use CC.
6998 LTCC=${LTCC-"$CC"}
6999
7000 # If no C compiler flags were specified, use CFLAGS.
7001 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7002
7003 # Allow CC to be a program name with arguments.
7004 compiler=$CC
7005
7006 # Save the default compiler, since it gets overwritten when the other
7007 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7008 compiler_DEFAULT=$CC
7009
7010 # save warnings/boilerplate of simple test code
7011 ac_outfile=conftest.$ac_objext
7012 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7013 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7014 _lt_compiler_boilerplate=`cat conftest.err`
7015 $RM conftest*
7016
7017 ac_outfile=conftest.$ac_objext
7018 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7019 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7020 _lt_linker_boilerplate=`cat conftest.err`
7021 $RM conftest*
7022
7023
7024 ## CAVEAT EMPTOR:
7025 ## There is no encapsulation within the following macros, do not change
7026 ## the running order or otherwise move them around unless you know exactly
7027 ## what you are doing...
7028 if test -n "$compiler"; then
7029
7030 lt_prog_compiler_no_builtin_flag=
7031
7032 if test "$GCC" = yes; then
7033   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7034
7035   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7036 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7037 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7038   echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040   lt_cv_prog_compiler_rtti_exceptions=no
7041    ac_outfile=conftest.$ac_objext
7042    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7043    lt_compiler_flag="-fno-rtti -fno-exceptions"
7044    # Insert the option either (1) after the last *FLAGS variable, or
7045    # (2) before a word containing "conftest.", or (3) at the end.
7046    # Note that $ac_compile itself does not contain backslashes and begins
7047    # with a dollar sign (not a hyphen), so the echo should work correctly.
7048    # The option is referenced via a variable to avoid confusing sed.
7049    lt_compile=`echo "$ac_compile" | $SED \
7050    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7052    -e 's:$: $lt_compiler_flag:'`
7053    (eval echo "\"\$as_me:7053: $lt_compile\"" >&5)
7054    (eval "$lt_compile" 2>conftest.err)
7055    ac_status=$?
7056    cat conftest.err >&5
7057    echo "$as_me:7057: \$? = $ac_status" >&5
7058    if (exit $ac_status) && test -s "$ac_outfile"; then
7059      # The compiler can only warn and ignore the option if not recognized
7060      # So say no if there are warnings other than the usual output.
7061      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7062      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7063      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7064        lt_cv_prog_compiler_rtti_exceptions=yes
7065      fi
7066    fi
7067    $RM conftest*
7068
7069 fi
7070 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7071 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7072
7073 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7074     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7075 else
7076     :
7077 fi
7078
7079 fi
7080
7081
7082
7083
7084
7085
7086   lt_prog_compiler_wl=
7087 lt_prog_compiler_pic=
7088 lt_prog_compiler_static=
7089
7090 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7091 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7092
7093   if test "$GCC" = yes; then
7094     lt_prog_compiler_wl='-Wl,'
7095     lt_prog_compiler_static='-static'
7096
7097     case $host_os in
7098       aix*)
7099       # All AIX code is PIC.
7100       if test "$host_cpu" = ia64; then
7101         # AIX 5 now supports IA64 processor
7102         lt_prog_compiler_static='-Bstatic'
7103       fi
7104       ;;
7105
7106     amigaos*)
7107       if test "$host_cpu" = m68k; then
7108         # FIXME: we need at least 68020 code to build shared libraries, but
7109         # adding the `-m68020' flag to GCC prevents building anything better,
7110         # like `-m68040'.
7111         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7112       fi
7113       ;;
7114
7115     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7116       # PIC is the default for these OSes.
7117       ;;
7118
7119     mingw* | cygwin* | pw32* | os2*)
7120       # This hack is so that the source file can tell whether it is being
7121       # built for inclusion in a dll (and should export symbols for example).
7122       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7123       # (--disable-auto-import) libraries
7124       lt_prog_compiler_pic='-DDLL_EXPORT'
7125       ;;
7126
7127     darwin* | rhapsody*)
7128       # PIC is the default on this platform
7129       # Common symbols not allowed in MH_DYLIB files
7130       lt_prog_compiler_pic='-fno-common'
7131       ;;
7132
7133     hpux*)
7134       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7135       # not for PA HP-UX.
7136       case $host_cpu in
7137       hppa*64*|ia64*)
7138         # +Z the default
7139         ;;
7140       *)
7141         lt_prog_compiler_pic='-fPIC'
7142         ;;
7143       esac
7144       ;;
7145
7146     interix[3-9]*)
7147       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7148       # Instead, we relocate shared libraries at runtime.
7149       ;;
7150
7151     msdosdjgpp*)
7152       # Just because we use GCC doesn't mean we suddenly get shared libraries
7153       # on systems that don't support them.
7154       lt_prog_compiler_can_build_shared=no
7155       enable_shared=no
7156       ;;
7157
7158     *nto* | *qnx*)
7159       # QNX uses GNU C++, but need to define -shared option too, otherwise
7160       # it will coredump.
7161       lt_prog_compiler_pic='-fPIC -shared'
7162       ;;
7163
7164     sysv4*MP*)
7165       if test -d /usr/nec; then
7166         lt_prog_compiler_pic=-Kconform_pic
7167       fi
7168       ;;
7169
7170     *)
7171       lt_prog_compiler_pic='-fPIC'
7172       ;;
7173     esac
7174   else
7175     # PORTME Check for flag to pass linker flags through the system compiler.
7176     case $host_os in
7177     aix*)
7178       lt_prog_compiler_wl='-Wl,'
7179       if test "$host_cpu" = ia64; then
7180         # AIX 5 now supports IA64 processor
7181         lt_prog_compiler_static='-Bstatic'
7182       else
7183         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7184       fi
7185       ;;
7186     darwin*)
7187       # PIC is the default on this platform
7188       # Common symbols not allowed in MH_DYLIB files
7189       case $cc_basename in
7190       xlc*)
7191         lt_prog_compiler_pic='-qnocommon'
7192         lt_prog_compiler_wl='-Wl,'
7193         ;;
7194       esac
7195       ;;
7196
7197     mingw* | cygwin* | pw32* | os2*)
7198       # This hack is so that the source file can tell whether it is being
7199       # built for inclusion in a dll (and should export symbols for example).
7200       lt_prog_compiler_pic='-DDLL_EXPORT'
7201       ;;
7202
7203     hpux9* | hpux10* | hpux11*)
7204       lt_prog_compiler_wl='-Wl,'
7205       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7206       # not for PA HP-UX.
7207       case $host_cpu in
7208       hppa*64*|ia64*)
7209         # +Z the default
7210         ;;
7211       *)
7212         lt_prog_compiler_pic='+Z'
7213         ;;
7214       esac
7215       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7216       lt_prog_compiler_static='${wl}-a ${wl}archive'
7217       ;;
7218
7219     irix5* | irix6* | nonstopux*)
7220       lt_prog_compiler_wl='-Wl,'
7221       # PIC (with -KPIC) is the default.
7222       lt_prog_compiler_static='-non_shared'
7223       ;;
7224
7225     linux* | k*bsd*-gnu)
7226       case $cc_basename in
7227       icc* | ecc*)
7228         lt_prog_compiler_wl='-Wl,'
7229         lt_prog_compiler_pic='-KPIC'
7230         lt_prog_compiler_static='-static'
7231         ;;
7232       pgcc* | pgf77* | pgf90* | pgf95*)
7233         # Portland Group compilers (*not* the Pentium gcc compiler,
7234         # which looks to be a dead project)
7235         lt_prog_compiler_wl='-Wl,'
7236         lt_prog_compiler_pic='-fpic'
7237         lt_prog_compiler_static='-Bstatic'
7238         ;;
7239       ccc*)
7240         lt_prog_compiler_wl='-Wl,'
7241         # All Alpha code is PIC.
7242         lt_prog_compiler_static='-non_shared'
7243         ;;
7244       *)
7245         case `$CC -V 2>&1 | sed 5q` in
7246         *Sun\ C*)
7247           # Sun C 5.9
7248           lt_prog_compiler_pic='-KPIC'
7249           lt_prog_compiler_static='-Bstatic'
7250           lt_prog_compiler_wl='-Wl,'
7251           ;;
7252         *Sun\ F*)
7253           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7254           lt_prog_compiler_pic='-KPIC'
7255           lt_prog_compiler_static='-Bstatic'
7256           lt_prog_compiler_wl=''
7257           ;;
7258         esac
7259         ;;
7260       esac
7261       ;;
7262
7263     newsos6)
7264       lt_prog_compiler_pic='-KPIC'
7265       lt_prog_compiler_static='-Bstatic'
7266       ;;
7267
7268     *nto* | *qnx*)
7269       # QNX uses GNU C++, but need to define -shared option too, otherwise
7270       # it will coredump.
7271       lt_prog_compiler_pic='-fPIC -shared'
7272       ;;
7273
7274     osf3* | osf4* | osf5*)
7275       lt_prog_compiler_wl='-Wl,'
7276       # All OSF/1 code is PIC.
7277       lt_prog_compiler_static='-non_shared'
7278       ;;
7279
7280     rdos*)
7281       lt_prog_compiler_static='-non_shared'
7282       ;;
7283
7284     solaris*)
7285       lt_prog_compiler_pic='-KPIC'
7286       lt_prog_compiler_static='-Bstatic'
7287       case $cc_basename in
7288       f77* | f90* | f95*)
7289         lt_prog_compiler_wl='-Qoption ld ';;
7290       *)
7291         lt_prog_compiler_wl='-Wl,';;
7292       esac
7293       ;;
7294
7295     sunos4*)
7296       lt_prog_compiler_wl='-Qoption ld '
7297       lt_prog_compiler_pic='-PIC'
7298       lt_prog_compiler_static='-Bstatic'
7299       ;;
7300
7301     sysv4 | sysv4.2uw2* | sysv4.3*)
7302       lt_prog_compiler_wl='-Wl,'
7303       lt_prog_compiler_pic='-KPIC'
7304       lt_prog_compiler_static='-Bstatic'
7305       ;;
7306
7307     sysv4*MP*)
7308       if test -d /usr/nec ;then
7309         lt_prog_compiler_pic='-Kconform_pic'
7310         lt_prog_compiler_static='-Bstatic'
7311       fi
7312       ;;
7313
7314     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7315       lt_prog_compiler_wl='-Wl,'
7316       lt_prog_compiler_pic='-KPIC'
7317       lt_prog_compiler_static='-Bstatic'
7318       ;;
7319
7320     unicos*)
7321       lt_prog_compiler_wl='-Wl,'
7322       lt_prog_compiler_can_build_shared=no
7323       ;;
7324
7325     uts4*)
7326       lt_prog_compiler_pic='-pic'
7327       lt_prog_compiler_static='-Bstatic'
7328       ;;
7329
7330     *)
7331       lt_prog_compiler_can_build_shared=no
7332       ;;
7333     esac
7334   fi
7335
7336 case $host_os in
7337   # For platforms which do not support PIC, -DPIC is meaningless:
7338   *djgpp*)
7339     lt_prog_compiler_pic=
7340     ;;
7341   *)
7342     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7343     ;;
7344 esac
7345 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7346 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7347
7348
7349
7350
7351
7352
7353 #
7354 # Check to make sure the PIC flag actually works.
7355 #
7356 if test -n "$lt_prog_compiler_pic"; then
7357   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7358 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7359 if test "${lt_prog_compiler_pic_works+set}" = set; then
7360   echo $ECHO_N "(cached) $ECHO_C" >&6
7361 else
7362   lt_prog_compiler_pic_works=no
7363    ac_outfile=conftest.$ac_objext
7364    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7365    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7366    # Insert the option either (1) after the last *FLAGS variable, or
7367    # (2) before a word containing "conftest.", or (3) at the end.
7368    # Note that $ac_compile itself does not contain backslashes and begins
7369    # with a dollar sign (not a hyphen), so the echo should work correctly.
7370    # The option is referenced via a variable to avoid confusing sed.
7371    lt_compile=`echo "$ac_compile" | $SED \
7372    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7373    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7374    -e 's:$: $lt_compiler_flag:'`
7375    (eval echo "\"\$as_me:7375: $lt_compile\"" >&5)
7376    (eval "$lt_compile" 2>conftest.err)
7377    ac_status=$?
7378    cat conftest.err >&5
7379    echo "$as_me:7379: \$? = $ac_status" >&5
7380    if (exit $ac_status) && test -s "$ac_outfile"; then
7381      # The compiler can only warn and ignore the option if not recognized
7382      # So say no if there are warnings other than the usual output.
7383      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7384      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7385      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7386        lt_prog_compiler_pic_works=yes
7387      fi
7388    fi
7389    $RM conftest*
7390
7391 fi
7392 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7393 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7394
7395 if test x"$lt_prog_compiler_pic_works" = xyes; then
7396     case $lt_prog_compiler_pic in
7397      "" | " "*) ;;
7398      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7399      esac
7400 else
7401     lt_prog_compiler_pic=
7402      lt_prog_compiler_can_build_shared=no
7403 fi
7404
7405 fi
7406
7407
7408
7409
7410
7411
7412 #
7413 # Check to make sure the static flag actually works.
7414 #
7415 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7416 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7417 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7418 if test "${lt_prog_compiler_static_works+set}" = set; then
7419   echo $ECHO_N "(cached) $ECHO_C" >&6
7420 else
7421   lt_prog_compiler_static_works=no
7422    save_LDFLAGS="$LDFLAGS"
7423    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7424    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7425    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7426      # The linker can only warn and ignore the option if not recognized
7427      # So say no if there are warnings
7428      if test -s conftest.err; then
7429        # Append any errors to the config.log.
7430        cat conftest.err 1>&5
7431        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7432        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7433        if diff conftest.exp conftest.er2 >/dev/null; then
7434          lt_prog_compiler_static_works=yes
7435        fi
7436      else
7437        lt_prog_compiler_static_works=yes
7438      fi
7439    fi
7440    $RM conftest*
7441    LDFLAGS="$save_LDFLAGS"
7442
7443 fi
7444 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7445 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7446
7447 if test x"$lt_prog_compiler_static_works" = xyes; then
7448     :
7449 else
7450     lt_prog_compiler_static=
7451 fi
7452
7453
7454
7455
7456
7457
7458
7459   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7460 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7461 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   lt_cv_prog_compiler_c_o=no
7465    $RM -r conftest 2>/dev/null
7466    mkdir conftest
7467    cd conftest
7468    mkdir out
7469    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7470
7471    lt_compiler_flag="-o out/conftest2.$ac_objext"
7472    # Insert the option either (1) after the last *FLAGS variable, or
7473    # (2) before a word containing "conftest.", or (3) at the end.
7474    # Note that $ac_compile itself does not contain backslashes and begins
7475    # with a dollar sign (not a hyphen), so the echo should work correctly.
7476    lt_compile=`echo "$ac_compile" | $SED \
7477    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7478    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7479    -e 's:$: $lt_compiler_flag:'`
7480    (eval echo "\"\$as_me:7480: $lt_compile\"" >&5)
7481    (eval "$lt_compile" 2>out/conftest.err)
7482    ac_status=$?
7483    cat out/conftest.err >&5
7484    echo "$as_me:7484: \$? = $ac_status" >&5
7485    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7486    then
7487      # The compiler can only warn and ignore the option if not recognized
7488      # So say no if there are warnings
7489      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7490      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7491      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7492        lt_cv_prog_compiler_c_o=yes
7493      fi
7494    fi
7495    chmod u+w . 2>&5
7496    $RM conftest*
7497    # SGI C++ compiler will create directory out/ii_files/ for
7498    # template instantiation
7499    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7500    $RM out/* && rmdir out
7501    cd ..
7502    $RM -r conftest
7503    $RM conftest*
7504
7505 fi
7506 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7507 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7508
7509
7510
7511
7512
7513
7514   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7515 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7516 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   lt_cv_prog_compiler_c_o=no
7520    $RM -r conftest 2>/dev/null
7521    mkdir conftest
7522    cd conftest
7523    mkdir out
7524    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7525
7526    lt_compiler_flag="-o out/conftest2.$ac_objext"
7527    # Insert the option either (1) after the last *FLAGS variable, or
7528    # (2) before a word containing "conftest.", or (3) at the end.
7529    # Note that $ac_compile itself does not contain backslashes and begins
7530    # with a dollar sign (not a hyphen), so the echo should work correctly.
7531    lt_compile=`echo "$ac_compile" | $SED \
7532    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7533    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7534    -e 's:$: $lt_compiler_flag:'`
7535    (eval echo "\"\$as_me:7535: $lt_compile\"" >&5)
7536    (eval "$lt_compile" 2>out/conftest.err)
7537    ac_status=$?
7538    cat out/conftest.err >&5
7539    echo "$as_me:7539: \$? = $ac_status" >&5
7540    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7541    then
7542      # The compiler can only warn and ignore the option if not recognized
7543      # So say no if there are warnings
7544      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7545      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7546      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7547        lt_cv_prog_compiler_c_o=yes
7548      fi
7549    fi
7550    chmod u+w . 2>&5
7551    $RM conftest*
7552    # SGI C++ compiler will create directory out/ii_files/ for
7553    # template instantiation
7554    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7555    $RM out/* && rmdir out
7556    cd ..
7557    $RM -r conftest
7558    $RM conftest*
7559
7560 fi
7561 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7562 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7563
7564
7565
7566
7567 hard_links="nottested"
7568 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7569   # do not overwrite the value of need_locks provided by the user
7570   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7571 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7572   hard_links=yes
7573   $RM conftest*
7574   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7575   touch conftest.a
7576   ln conftest.a conftest.b 2>&5 || hard_links=no
7577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7578   echo "$as_me:$LINENO: result: $hard_links" >&5
7579 echo "${ECHO_T}$hard_links" >&6
7580   if test "$hard_links" = no; then
7581     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7582 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7583     need_locks=warn
7584   fi
7585 else
7586   need_locks=no
7587 fi
7588
7589
7590
7591
7592
7593
7594   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7595 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7596
7597   runpath_var=
7598   allow_undefined_flag=
7599   always_export_symbols=no
7600   archive_cmds=
7601   archive_expsym_cmds=
7602   compiler_needs_object=no
7603   enable_shared_with_static_runtimes=no
7604   export_dynamic_flag_spec=
7605   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7606   hardcode_automatic=no
7607   hardcode_direct=no
7608   hardcode_direct_absolute=no
7609   hardcode_libdir_flag_spec=
7610   hardcode_libdir_flag_spec_ld=
7611   hardcode_libdir_separator=
7612   hardcode_minus_L=no
7613   hardcode_shlibpath_var=unsupported
7614   inherit_rpath=no
7615   link_all_deplibs=unknown
7616   module_cmds=
7617   module_expsym_cmds=
7618   old_archive_from_new_cmds=
7619   old_archive_from_expsyms_cmds=
7620   thread_safe_flag_spec=
7621   whole_archive_flag_spec=
7622   # include_expsyms should be a list of space-separated symbols to be *always*
7623   # included in the symbol list
7624   include_expsyms=
7625   # exclude_expsyms can be an extended regexp of symbols to exclude
7626   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7627   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7628   # as well as any symbol that contains `d'.
7629   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7630   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7631   # platforms (ab)use it in PIC code, but their linkers get confused if
7632   # the symbol is explicitly referenced.  Since portable code cannot
7633   # rely on this symbol name, it's probably fine to never include it in
7634   # preloaded symbol tables.
7635   extract_expsyms_cmds=
7636
7637   case $host_os in
7638   cygwin* | mingw* | pw32*)
7639     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7640     # When not using gcc, we currently assume that we are using
7641     # Microsoft Visual C++.
7642     if test "$GCC" != yes; then
7643       with_gnu_ld=no
7644     fi
7645     ;;
7646   interix*)
7647     # we just hope/assume this is gcc and not c89 (= MSVC++)
7648     with_gnu_ld=yes
7649     ;;
7650   openbsd*)
7651     with_gnu_ld=no
7652     ;;
7653   esac
7654
7655   ld_shlibs=yes
7656   if test "$with_gnu_ld" = yes; then
7657     # If archive_cmds runs LD, not CC, wlarc should be empty
7658     wlarc='${wl}'
7659
7660     # Set some defaults for GNU ld with shared library support. These
7661     # are reset later if shared libraries are not supported. Putting them
7662     # here allows them to be overridden if necessary.
7663     runpath_var=LD_RUN_PATH
7664     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7665     export_dynamic_flag_spec='${wl}--export-dynamic'
7666     # ancient GNU ld didn't support --whole-archive et. al.
7667     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7668       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7669     else
7670       whole_archive_flag_spec=
7671     fi
7672     supports_anon_versioning=no
7673     case `$LD -v 2>&1` in
7674       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7675       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7676       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7677       *\ 2.11.*) ;; # other 2.11 versions
7678       *) supports_anon_versioning=yes ;;
7679     esac
7680
7681     # See if GNU ld supports shared libraries.
7682     case $host_os in
7683     aix3* | aix4* | aix5*)
7684       # On AIX/PPC, the GNU linker is very broken
7685       if test "$host_cpu" != ia64; then
7686         ld_shlibs=no
7687         cat <<_LT_EOF 1>&2
7688
7689 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7690 *** to be unable to reliably create shared libraries on AIX.
7691 *** Therefore, libtool is disabling shared libraries support.  If you
7692 *** really care for shared libraries, you may want to modify your PATH
7693 *** so that a non-GNU linker is found, and then restart.
7694
7695 _LT_EOF
7696       fi
7697       ;;
7698
7699     amigaos*)
7700       if test "$host_cpu" = m68k; then
7701         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)'
7702         hardcode_libdir_flag_spec='-L$libdir'
7703         hardcode_minus_L=yes
7704       fi
7705
7706       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7707       # that the semantics of dynamic libraries on AmigaOS, at least up
7708       # to version 4, is to share data among multiple programs linked
7709       # with the same dynamic library.  Since this doesn't match the
7710       # behavior of shared libraries on other platforms, we can't use
7711       # them.
7712       ld_shlibs=no
7713       ;;
7714
7715     beos*)
7716       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7717         allow_undefined_flag=unsupported
7718         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7719         # support --undefined.  This deserves some investigation.  FIXME
7720         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7721       else
7722         ld_shlibs=no
7723       fi
7724       ;;
7725
7726     cygwin* | mingw* | pw32*)
7727       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7728       # as there is no search path for DLLs.
7729       hardcode_libdir_flag_spec='-L$libdir'
7730       allow_undefined_flag=unsupported
7731       always_export_symbols=no
7732       enable_shared_with_static_runtimes=yes
7733       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7734
7735       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7736         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7737         # If the export-symbols file already is a .def file (1st line
7738         # is EXPORTS), use it as is; otherwise, prepend...
7739         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7740           cp $export_symbols $output_objdir/$soname.def;
7741         else
7742           echo EXPORTS > $output_objdir/$soname.def;
7743           cat $export_symbols >> $output_objdir/$soname.def;
7744         fi~
7745         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7746       else
7747         ld_shlibs=no
7748       fi
7749       ;;
7750
7751     interix[3-9]*)
7752       hardcode_direct=no
7753       hardcode_shlibpath_var=no
7754       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7755       export_dynamic_flag_spec='${wl}-E'
7756       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7757       # Instead, shared libraries are loaded at an image base (0x10000000 by
7758       # default) and relocated if they conflict, which is a slow very memory
7759       # consuming and fragmenting process.  To avoid this, we pick a random,
7760       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7761       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7762       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7763       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'
7764       ;;
7765
7766     gnu* | linux* | tpf* | k*bsd*-gnu)
7767       tmp_diet=no
7768       if test "$host_os" = linux-dietlibc; then
7769         case $cc_basename in
7770           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7771         esac
7772       fi
7773       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7774          && test "$tmp_diet" = no
7775       then
7776         tmp_addflag=
7777         case $cc_basename,$host_cpu in
7778         pgcc*)                          # Portland Group C compiler
7779           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'
7780           tmp_addflag=' $pic_flag'
7781           ;;
7782         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7783           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'
7784           tmp_addflag=' $pic_flag -Mnomain' ;;
7785         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7786           tmp_addflag=' -i_dynamic' ;;
7787         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7788           tmp_addflag=' -i_dynamic -nofor_main' ;;
7789         ifc* | ifort*)                  # Intel Fortran compiler
7790           tmp_addflag=' -nofor_main' ;;
7791         esac
7792         case `$CC -V 2>&1 | sed 5q` in
7793         *Sun\ C*)                       # Sun C 5.9
7794           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'
7795           compiler_needs_object=yes
7796           tmp_sharedflag='-G' ;;
7797         *Sun\ F*)                       # Sun Fortran 8.3
7798           tmp_sharedflag='-G' ;;
7799         *)
7800           tmp_sharedflag='-shared' ;;
7801         esac
7802         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7803
7804         if test "x$supports_anon_versioning" = xyes; then
7805           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7806             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7807             echo "local: *; };" >> $output_objdir/$libname.ver~
7808             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7809         fi
7810       else
7811         ld_shlibs=no
7812       fi
7813       ;;
7814
7815     netbsd*)
7816       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7817         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7818         wlarc=
7819       else
7820         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7821         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7822       fi
7823       ;;
7824
7825     solaris*)
7826       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7827         ld_shlibs=no
7828         cat <<_LT_EOF 1>&2
7829
7830 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7831 *** create shared libraries on Solaris systems.  Therefore, libtool
7832 *** is disabling shared libraries support.  We urge you to upgrade GNU
7833 *** binutils to release 2.9.1 or newer.  Another option is to modify
7834 *** your PATH or compiler configuration so that the native linker is
7835 *** used, and then restart.
7836
7837 _LT_EOF
7838       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7839         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7840         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7841       else
7842         ld_shlibs=no
7843       fi
7844       ;;
7845
7846     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7847       case `$LD -v 2>&1` in
7848         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7849         ld_shlibs=no
7850         cat <<_LT_EOF 1>&2
7851
7852 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7853 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7854 *** is disabling shared libraries support.  We urge you to upgrade GNU
7855 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7856 *** your PATH or compiler configuration so that the native linker is
7857 *** used, and then restart.
7858
7859 _LT_EOF
7860         ;;
7861         *)
7862           # For security reasons, it is highly recommended that you always
7863           # use absolute paths for naming shared libraries, and exclude the
7864           # DT_RUNPATH tag from executables and libraries.  But doing so
7865           # requires that you compile everything twice, which is a pain.
7866           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7867             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7868             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7869             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7870           else
7871             ld_shlibs=no
7872           fi
7873         ;;
7874       esac
7875       ;;
7876
7877     sunos4*)
7878       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7879       wlarc=
7880       hardcode_direct=yes
7881       hardcode_shlibpath_var=no
7882       ;;
7883
7884     *)
7885       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7886         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7887         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7888       else
7889         ld_shlibs=no
7890       fi
7891       ;;
7892     esac
7893
7894     if test "$ld_shlibs" = no; then
7895       runpath_var=
7896       hardcode_libdir_flag_spec=
7897       export_dynamic_flag_spec=
7898       whole_archive_flag_spec=
7899     fi
7900   else
7901     # PORTME fill in a description of your system's linker (not GNU ld)
7902     case $host_os in
7903     aix3*)
7904       allow_undefined_flag=unsupported
7905       always_export_symbols=yes
7906       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'
7907       # Note: this linker hardcodes the directories in LIBPATH if there
7908       # are no directories specified by -L.
7909       hardcode_minus_L=yes
7910       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7911         # Neither direct hardcoding nor static linking is supported with a
7912         # broken collect2.
7913         hardcode_direct=unsupported
7914       fi
7915       ;;
7916
7917     aix4* | aix5*)
7918       if test "$host_cpu" = ia64; then
7919         # On IA64, the linker does run time linking by default, so we don't
7920         # have to do anything special.
7921         aix_use_runtimelinking=no
7922         exp_sym_flag='-Bexport'
7923         no_entry_flag=""
7924       else
7925         # If we're using GNU nm, then we don't want the "-C" option.
7926         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7927         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7928           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'
7929         else
7930           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'
7931         fi
7932         aix_use_runtimelinking=no
7933
7934         # Test if we are trying to use run time linking or normal
7935         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7936         # need to do runtime linking.
7937         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7938           for ld_flag in $LDFLAGS; do
7939           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7940             aix_use_runtimelinking=yes
7941             break
7942           fi
7943           done
7944           ;;
7945         esac
7946
7947         exp_sym_flag='-bexport'
7948         no_entry_flag='-bnoentry'
7949       fi
7950
7951       # When large executables or shared objects are built, AIX ld can
7952       # have problems creating the table of contents.  If linking a library
7953       # or program results in "error TOC overflow" add -mminimal-toc to
7954       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7955       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7956
7957       archive_cmds=''
7958       hardcode_direct=yes
7959       hardcode_direct_absolute=yes
7960       hardcode_libdir_separator=':'
7961       link_all_deplibs=yes
7962       file_list_spec='${wl}-f,'
7963
7964       if test "$GCC" = yes; then
7965         case $host_os in aix4.[012]|aix4.[012].*)
7966         # We only want to do this on AIX 4.2 and lower, the check
7967         # below for broken collect2 doesn't work under 4.3+
7968           collect2name=`${CC} -print-prog-name=collect2`
7969           if test -f "$collect2name" &&
7970            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7971           then
7972           # We have reworked collect2
7973           :
7974           else
7975           # We have old collect2
7976           hardcode_direct=unsupported
7977           # It fails to find uninstalled libraries when the uninstalled
7978           # path is not listed in the libpath.  Setting hardcode_minus_L
7979           # to unsupported forces relinking
7980           hardcode_minus_L=yes
7981           hardcode_libdir_flag_spec='-L$libdir'
7982           hardcode_libdir_separator=
7983           fi
7984           ;;
7985         esac
7986         shared_flag='-shared'
7987         if test "$aix_use_runtimelinking" = yes; then
7988           shared_flag="$shared_flag "'${wl}-G'
7989         fi
7990       else
7991         # not using gcc
7992         if test "$host_cpu" = ia64; then
7993         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7994         # chokes on -Wl,-G. The following line is correct:
7995           shared_flag='-G'
7996         else
7997           if test "$aix_use_runtimelinking" = yes; then
7998             shared_flag='${wl}-G'
7999           else
8000             shared_flag='${wl}-bM:SRE'
8001           fi
8002         fi
8003       fi
8004
8005       # It seems that -bexpall does not export symbols beginning with
8006       # underscore (_), so it is better to generate a list of symbols to export.
8007       always_export_symbols=yes
8008       if test "$aix_use_runtimelinking" = yes; then
8009         # Warning - without using the other runtime loading flags (-brtl),
8010         # -berok will link without error, but may produce a broken library.
8011         allow_undefined_flag='-berok'
8012         # Determine the default libpath from the value encoded in an
8013         # empty executable.
8014         cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h.  */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h.  */
8020
8021 int
8022 main ()
8023 {
8024
8025   ;
8026   return 0;
8027 }
8028 _ACEOF
8029 rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8031   (eval $ac_link) 2>conftest.er1
8032   ac_status=$?
8033   grep -v '^ *+' conftest.er1 >conftest.err
8034   rm -f conftest.er1
8035   cat conftest.err >&5
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); } &&
8038          { ac_try='test -z "$ac_c_werror_flag"
8039                          || test ! -s conftest.err'
8040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041   (eval $ac_try) 2>&5
8042   ac_status=$?
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); }; } &&
8045          { ac_try='test -s conftest$ac_exeext'
8046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047   (eval $ac_try) 2>&5
8048   ac_status=$?
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); }; }; then
8051
8052 lt_aix_libpath_sed='
8053     /Import File Strings/,/^$/ {
8054         /^0/ {
8055             s/^0  *\(.*\)$/\1/
8056             p
8057         }
8058     }'
8059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8060 # Check for a 64-bit object if we didn't find anything.
8061 if test -z "$aix_libpath"; then
8062   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8063 fi
8064 else
8065   echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8067
8068 fi
8069 rm -f conftest.err conftest.$ac_objext \
8070       conftest$ac_exeext conftest.$ac_ext
8071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8072
8073         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8074         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"
8075       else
8076         if test "$host_cpu" = ia64; then
8077           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8078           allow_undefined_flag="-z nodefs"
8079           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"
8080         else
8081          # Determine the default libpath from the value encoded in an
8082          # empty executable.
8083          cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h.  */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h.  */
8089
8090 int
8091 main ()
8092 {
8093
8094   ;
8095   return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext conftest$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100   (eval $ac_link) 2>conftest.er1
8101   ac_status=$?
8102   grep -v '^ *+' conftest.er1 >conftest.err
8103   rm -f conftest.er1
8104   cat conftest.err >&5
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } &&
8107          { ac_try='test -z "$ac_c_werror_flag"
8108                          || test ! -s conftest.err'
8109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110   (eval $ac_try) 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); }; } &&
8114          { ac_try='test -s conftest$ac_exeext'
8115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116   (eval $ac_try) 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; }; then
8120
8121 lt_aix_libpath_sed='
8122     /Import File Strings/,/^$/ {
8123         /^0/ {
8124             s/^0  *\(.*\)$/\1/
8125             p
8126         }
8127     }'
8128 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8129 # Check for a 64-bit object if we didn't find anything.
8130 if test -z "$aix_libpath"; then
8131   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8132 fi
8133 else
8134   echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8136
8137 fi
8138 rm -f conftest.err conftest.$ac_objext \
8139       conftest$ac_exeext conftest.$ac_ext
8140 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8141
8142          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8143           # Warning - without using the other run time loading flags,
8144           # -berok will link without error, but may produce a broken library.
8145           no_undefined_flag=' ${wl}-bernotok'
8146           allow_undefined_flag=' ${wl}-berok'
8147           # Exported symbols can be pulled into shared objects from archives
8148           whole_archive_flag_spec='$convenience'
8149           archive_cmds_need_lc=yes
8150           # This is similar to how AIX traditionally builds its shared libraries.
8151           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'
8152         fi
8153       fi
8154       ;;
8155
8156     amigaos*)
8157       if test "$host_cpu" = m68k; then
8158         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)'
8159         hardcode_libdir_flag_spec='-L$libdir'
8160         hardcode_minus_L=yes
8161       fi
8162       # see comment about different semantics on the GNU ld section
8163       ld_shlibs=no
8164       ;;
8165
8166     bsdi[45]*)
8167       export_dynamic_flag_spec=-rdynamic
8168       ;;
8169
8170     cygwin* | mingw* | pw32*)
8171       # When not using gcc, we currently assume that we are using
8172       # Microsoft Visual C++.
8173       # hardcode_libdir_flag_spec is actually meaningless, as there is
8174       # no search path for DLLs.
8175       hardcode_libdir_flag_spec=' '
8176       allow_undefined_flag=unsupported
8177       # Tell ltmain to make .lib files, not .a files.
8178       libext=lib
8179       # Tell ltmain to make .dll files, not .so files.
8180       shrext_cmds=".dll"
8181       # FIXME: Setting linknames here is a bad hack.
8182       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8183       # The linker will automatically build a .lib file if we build a DLL.
8184       old_archive_from_new_cmds='true'
8185       # FIXME: Should let the user specify the lib program.
8186       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8187       fix_srcfile_path='`cygpath -w "$srcfile"`'
8188       enable_shared_with_static_runtimes=yes
8189       ;;
8190
8191     darwin* | rhapsody*)
8192       case $host_os in
8193       rhapsody* | darwin1.[012])
8194         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8195         ;;
8196       *) # Darwin 1.3 on
8197         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8198         10.[012])
8199           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8200           ;;
8201         10.*)
8202           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8203           ;;
8204         esac
8205         ;;
8206       esac
8207       archive_cmds_need_lc=no
8208       hardcode_direct=no
8209       hardcode_automatic=yes
8210       hardcode_shlibpath_var=unsupported
8211       whole_archive_flag_spec=''
8212       link_all_deplibs=yes
8213       if test "$GCC" = yes ; then
8214         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8215   echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217   lt_cv_apple_cc_single_mod=no
8218         if test -z "${LT_MULTI_MODULE}"; then
8219           # By default we will add the -single_module flag. You can override
8220           # by either setting the environment variable LT_MULTI_MODULE
8221           # non-empty at configure time, or by adding -multi-module to the
8222           # link flags.
8223           echo "int foo(void){return 1;}" > conftest.c
8224           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8225               -dynamiclib ${wl}-single_module conftest.c
8226           if test -f libconftest.dylib; then
8227               lt_cv_apple_cc_single_mod=yes
8228               rm libconftest.dylib
8229           fi
8230           rm conftest.$ac_ext
8231         fi
8232 fi
8233
8234         output_verbose_link_cmd=echo
8235         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8236           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8237           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}'
8238         else
8239           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8240           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}'
8241         fi
8242         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8243         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}'
8244       else
8245         case $cc_basename in
8246         xlc*)
8247           output_verbose_link_cmd=echo
8248           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8249           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8250           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8251           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}'
8252           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}'
8253           ;;
8254         *)
8255           ld_shlibs=no
8256           ;;
8257         esac
8258       fi
8259       ;;
8260
8261     dgux*)
8262       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8263       hardcode_libdir_flag_spec='-L$libdir'
8264       hardcode_shlibpath_var=no
8265       ;;
8266
8267     freebsd1*)
8268       ld_shlibs=no
8269       ;;
8270
8271     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8272     # support.  Future versions do this automatically, but an explicit c++rt0.o
8273     # does not break anything, and helps significantly (at the cost of a little
8274     # extra space).
8275     freebsd2.2*)
8276       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8277       hardcode_libdir_flag_spec='-R$libdir'
8278       hardcode_direct=yes
8279       hardcode_shlibpath_var=no
8280       ;;
8281
8282     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8283     freebsd2*)
8284       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8285       hardcode_direct=yes
8286       hardcode_minus_L=yes
8287       hardcode_shlibpath_var=no
8288       ;;
8289
8290     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8291     freebsd* | dragonfly*)
8292       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8293       hardcode_libdir_flag_spec='-R$libdir'
8294       hardcode_direct=yes
8295       hardcode_shlibpath_var=no
8296       ;;
8297
8298     hpux9*)
8299       if test "$GCC" = yes; then
8300         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'
8301       else
8302         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'
8303       fi
8304       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8305       hardcode_libdir_separator=:
8306       hardcode_direct=yes
8307
8308       # hardcode_minus_L: Not really in the search PATH,
8309       # but as the default location of the library.
8310       hardcode_minus_L=yes
8311       export_dynamic_flag_spec='${wl}-E'
8312       ;;
8313
8314     hpux10*)
8315       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8316         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8317       else
8318         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8319       fi
8320       if test "$with_gnu_ld" = no; then
8321         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8322         hardcode_libdir_flag_spec_ld='+b $libdir'
8323         hardcode_libdir_separator=:
8324         hardcode_direct=yes
8325         hardcode_direct_absolute=yes
8326         export_dynamic_flag_spec='${wl}-E'
8327         # hardcode_minus_L: Not really in the search PATH,
8328         # but as the default location of the library.
8329         hardcode_minus_L=yes
8330       fi
8331       ;;
8332
8333     hpux11*)
8334       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8335         case $host_cpu in
8336         hppa*64*)
8337           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8338           ;;
8339         ia64*)
8340           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8341           ;;
8342         *)
8343           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8344           ;;
8345         esac
8346       else
8347         case $host_cpu in
8348         hppa*64*)
8349           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8350           ;;
8351         ia64*)
8352           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8353           ;;
8354         *)
8355           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8356           ;;
8357         esac
8358       fi
8359       if test "$with_gnu_ld" = no; then
8360         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8361         hardcode_libdir_separator=:
8362
8363         case $host_cpu in
8364         hppa*64*|ia64*)
8365           hardcode_direct=no
8366           hardcode_shlibpath_var=no
8367           ;;
8368         *)
8369           hardcode_direct=yes
8370           hardcode_direct_absolute=yes
8371           export_dynamic_flag_spec='${wl}-E'
8372
8373           # hardcode_minus_L: Not really in the search PATH,
8374           # but as the default location of the library.
8375           hardcode_minus_L=yes
8376           ;;
8377         esac
8378       fi
8379       ;;
8380
8381     irix5* | irix6* | nonstopux*)
8382       if test "$GCC" = yes; then
8383         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'
8384         # Try to use the -exported_symbol ld option, if it does not
8385         # work, assume that -exports_file does not work either and
8386         # implicitly export all symbols.
8387         save_LDFLAGS="$LDFLAGS"
8388         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8389         cat >conftest.$ac_ext <<_ACEOF
8390 int foo(void) {}
8391 _ACEOF
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394   (eval $ac_link) 2>conftest.er1
8395   ac_status=$?
8396   grep -v '^ *+' conftest.er1 >conftest.err
8397   rm -f conftest.er1
8398   cat conftest.err >&5
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); } &&
8401          { ac_try='test -z "$ac_c_werror_flag"
8402                          || test ! -s conftest.err'
8403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404   (eval $ac_try) 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; } &&
8408          { ac_try='test -s conftest$ac_exeext'
8409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410   (eval $ac_try) 2>&5
8411   ac_status=$?
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); }; }; then
8414   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'
8415
8416 else
8417   echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8419
8420 fi
8421 rm -f conftest.err conftest.$ac_objext \
8422       conftest$ac_exeext conftest.$ac_ext
8423         LDFLAGS="$save_LDFLAGS"
8424       else
8425         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'
8426         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'
8427       fi
8428       archive_cmds_need_lc='no'
8429       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8430       hardcode_libdir_separator=:
8431       inherit_rpath=yes
8432       link_all_deplibs=yes
8433       ;;
8434
8435     netbsd*)
8436       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8437         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8438       else
8439         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8440       fi
8441       hardcode_libdir_flag_spec='-R$libdir'
8442       hardcode_direct=yes
8443       hardcode_shlibpath_var=no
8444       ;;
8445
8446     newsos6)
8447       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448       hardcode_direct=yes
8449       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8450       hardcode_libdir_separator=:
8451       hardcode_shlibpath_var=no
8452       ;;
8453
8454     *nto* | *qnx*)
8455       ;;
8456
8457     openbsd*)
8458       hardcode_direct=yes
8459       hardcode_shlibpath_var=no
8460       hardcode_direct_absolute=yes
8461       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8462         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8463         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8464         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8465         export_dynamic_flag_spec='${wl}-E'
8466       else
8467         case $host_os in
8468         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8469           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8470           hardcode_libdir_flag_spec='-R$libdir'
8471           ;;
8472         *)
8473           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8474           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8475           ;;
8476         esac
8477       fi
8478       ;;
8479
8480     os2*)
8481       hardcode_libdir_flag_spec='-L$libdir'
8482       hardcode_minus_L=yes
8483       allow_undefined_flag=unsupported
8484       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'
8485       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8486       ;;
8487
8488     osf3*)
8489       if test "$GCC" = yes; then
8490         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8491         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'
8492       else
8493         allow_undefined_flag=' -expect_unresolved \*'
8494         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'
8495       fi
8496       archive_cmds_need_lc='no'
8497       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8498       hardcode_libdir_separator=:
8499       ;;
8500
8501     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8502       if test "$GCC" = yes; then
8503         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8504         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'
8505         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8506       else
8507         allow_undefined_flag=' -expect_unresolved \*'
8508         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'
8509         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~
8510         $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'
8511
8512         # Both c and cxx compiler support -rpath directly
8513         hardcode_libdir_flag_spec='-rpath $libdir'
8514       fi
8515       archive_cmds_need_lc='no'
8516       hardcode_libdir_separator=:
8517       ;;
8518
8519     solaris*)
8520       no_undefined_flag=' -z defs'
8521       if test "$GCC" = yes; then
8522         wlarc='${wl}'
8523         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8524         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8525           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8526       else
8527         case `$CC -V 2>&1` in
8528         *"Compilers 5.0"*)
8529           wlarc=''
8530           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8531           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8532           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8533           ;;
8534         *)
8535           wlarc='${wl}'
8536           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8537           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8538           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8539           ;;
8540         esac
8541       fi
8542       hardcode_libdir_flag_spec='-R$libdir'
8543       hardcode_shlibpath_var=no
8544       case $host_os in
8545       solaris2.[0-5] | solaris2.[0-5].*) ;;
8546       *)
8547         # The compiler driver will combine and reorder linker options,
8548         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8549         # but is careful enough not to reorder.
8550         # Supported since Solaris 2.6 (maybe 2.5.1?)
8551         if test "$GCC" = yes; then
8552           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8553         else
8554           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8555         fi
8556         ;;
8557       esac
8558       link_all_deplibs=yes
8559       ;;
8560
8561     sunos4*)
8562       if test "x$host_vendor" = xsequent; then
8563         # Use $CC to link under sequent, because it throws in some extra .o
8564         # files that make .init and .fini sections work.
8565         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8566       else
8567         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8568       fi
8569       hardcode_libdir_flag_spec='-L$libdir'
8570       hardcode_direct=yes
8571       hardcode_minus_L=yes
8572       hardcode_shlibpath_var=no
8573       ;;
8574
8575     sysv4)
8576       case $host_vendor in
8577         sni)
8578           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8579           hardcode_direct=yes # is this really true???
8580         ;;
8581         siemens)
8582           ## LD is ld it makes a PLAMLIB
8583           ## CC just makes a GrossModule.
8584           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8585           reload_cmds='$CC -r -o $output$reload_objs'
8586           hardcode_direct=no
8587         ;;
8588         motorola)
8589           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8590           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8591         ;;
8592       esac
8593       runpath_var='LD_RUN_PATH'
8594       hardcode_shlibpath_var=no
8595       ;;
8596
8597     sysv4.3*)
8598       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8599       hardcode_shlibpath_var=no
8600       export_dynamic_flag_spec='-Bexport'
8601       ;;
8602
8603     sysv4*MP*)
8604       if test -d /usr/nec; then
8605         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8606         hardcode_shlibpath_var=no
8607         runpath_var=LD_RUN_PATH
8608         hardcode_runpath_var=yes
8609         ld_shlibs=yes
8610       fi
8611       ;;
8612
8613     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8614       no_undefined_flag='${wl}-z,text'
8615       archive_cmds_need_lc=no
8616       hardcode_shlibpath_var=no
8617       runpath_var='LD_RUN_PATH'
8618
8619       if test "$GCC" = yes; then
8620         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8621         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8622       else
8623         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8624         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8625       fi
8626       ;;
8627
8628     sysv5* | sco3.2v5* | sco5v6*)
8629       # Note: We can NOT use -z defs as we might desire, because we do not
8630       # link with -lc, and that would cause any symbols used from libc to
8631       # always be unresolved, which means just about no library would
8632       # ever link correctly.  If we're not using GNU ld we use -z text
8633       # though, which does catch some bad symbols but isn't as heavy-handed
8634       # as -z defs.
8635       no_undefined_flag='${wl}-z,text'
8636       allow_undefined_flag='${wl}-z,nodefs'
8637       archive_cmds_need_lc=no
8638       hardcode_shlibpath_var=no
8639       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8640       hardcode_libdir_separator=':'
8641       link_all_deplibs=yes
8642       export_dynamic_flag_spec='${wl}-Bexport'
8643       runpath_var='LD_RUN_PATH'
8644
8645       if test "$GCC" = yes; then
8646         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8647         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8648       else
8649         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8650         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8651       fi
8652       ;;
8653
8654     uts4*)
8655       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8656       hardcode_libdir_flag_spec='-L$libdir'
8657       hardcode_shlibpath_var=no
8658       ;;
8659
8660     *)
8661       ld_shlibs=no
8662       ;;
8663     esac
8664
8665     if test x$host_vendor = xsni; then
8666       case $host in
8667       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8668         export_dynamic_flag_spec='${wl}-Blargedynsym'
8669         ;;
8670       esac
8671     fi
8672   fi
8673
8674 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8675 echo "${ECHO_T}$ld_shlibs" >&6
8676 test "$ld_shlibs" = no && can_build_shared=no
8677
8678 with_gnu_ld=$with_gnu_ld
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694 #
8695 # Do we need to explicitly link libc?
8696 #
8697 case "x$archive_cmds_need_lc" in
8698 x|xyes)
8699   # Assume -lc should be added
8700   archive_cmds_need_lc=yes
8701
8702   if test "$enable_shared" = yes && test "$GCC" = yes; then
8703     case $archive_cmds in
8704     *'~'*)
8705       # FIXME: we may have to deal with multi-command sequences.
8706       ;;
8707     '$CC '*)
8708       # Test whether the compiler implicitly links with -lc since on some
8709       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8710       # to ld, don't add -lc before -lgcc.
8711       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8712 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8713       $RM conftest*
8714       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8715
8716       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8717   (eval $ac_compile) 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } 2>conftest.err; then
8721         soname=conftest
8722         lib=conftest
8723         libobjs=conftest.$ac_objext
8724         deplibs=
8725         wl=$lt_prog_compiler_wl
8726         pic_flag=$lt_prog_compiler_pic
8727         compiler_flags=-v
8728         linker_flags=-v
8729         verstring=
8730         output_objdir=.
8731         libname=conftest
8732         lt_save_allow_undefined_flag=$allow_undefined_flag
8733         allow_undefined_flag=
8734         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8735   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8736   ac_status=$?
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); }
8739         then
8740           archive_cmds_need_lc=no
8741         else
8742           archive_cmds_need_lc=yes
8743         fi
8744         allow_undefined_flag=$lt_save_allow_undefined_flag
8745       else
8746         cat conftest.err 1>&5
8747       fi
8748       $RM conftest*
8749       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8750 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8751       ;;
8752     esac
8753   fi
8754   ;;
8755 esac
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8914 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8915 withGCC=$GCC
8916 if test "$withGCC" = yes; then
8917   case $host_os in
8918     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8919     *) lt_awk_arg="/^libraries:/" ;;
8920   esac
8921   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8922   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8923     # if the path contains ";" then we assume it to be the separator
8924     # otherwise default to the standard path separator (i.e. ":") - it is
8925     # assumed that no part of a normal pathname contains ";" but that should
8926     # okay in the real world where ";" in dirpaths is itself problematic.
8927     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8928   else
8929     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8930   fi
8931   # Ok, now we have the path, separated by spaces, we can step through it
8932   # and add multilib dir if necessary.
8933   lt_tmp_lt_search_path_spec=
8934   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8935   for lt_sys_path in $lt_search_path_spec; do
8936     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8937       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8938     else
8939       test -d "$lt_sys_path" && \
8940         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8941     fi
8942   done
8943   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8944 BEGIN {RS=" "; FS="/|\n";} {
8945   lt_foo="";
8946   lt_count=0;
8947   for (lt_i = NF; lt_i > 0; lt_i--) {
8948     if ($lt_i != "" && $lt_i != ".") {
8949       if ($lt_i == "..") {
8950         lt_count++;
8951       } else {
8952         if (lt_count == 0) {
8953           lt_foo="/" $lt_i lt_foo;
8954         } else {
8955           lt_count--;
8956         }
8957       }
8958     }
8959   }
8960   if (lt_foo != "") { lt_freq[lt_foo]++; }
8961   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8962 }'`
8963   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8964 else
8965   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8966 fi
8967 library_names_spec=
8968 libname_spec='lib$name'
8969 soname_spec=
8970 shrext_cmds=".so"
8971 postinstall_cmds=
8972 postuninstall_cmds=
8973 finish_cmds=
8974 finish_eval=
8975 shlibpath_var=
8976 shlibpath_overrides_runpath=unknown
8977 version_type=none
8978 dynamic_linker="$host_os ld.so"
8979 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8980 need_lib_prefix=unknown
8981 hardcode_into_libs=no
8982
8983 # when you set need_version to no, make sure it does not cause -set_version
8984 # flags to be left without arguments
8985 need_version=unknown
8986
8987 case $host_os in
8988 aix3*)
8989   version_type=linux
8990   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8991   shlibpath_var=LIBPATH
8992
8993   # AIX 3 has no versioning support, so we append a major version to the name.
8994   soname_spec='${libname}${release}${shared_ext}$major'
8995   ;;
8996
8997 aix4* | aix5*)
8998   version_type=linux
8999   need_lib_prefix=no
9000   need_version=no
9001   hardcode_into_libs=yes
9002   if test "$host_cpu" = ia64; then
9003     # AIX 5 supports IA64
9004     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9005     shlibpath_var=LD_LIBRARY_PATH
9006   else
9007     # With GCC up to 2.95.x, collect2 would create an import file
9008     # for dependence libraries.  The import file would start with
9009     # the line `#! .'.  This would cause the generated library to
9010     # depend on `.', always an invalid library.  This was fixed in
9011     # development snapshots of GCC prior to 3.0.
9012     case $host_os in
9013       aix4 | aix4.[01] | aix4.[01].*)
9014       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9015            echo ' yes '
9016            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9017         :
9018       else
9019         can_build_shared=no
9020       fi
9021       ;;
9022     esac
9023     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9024     # soname into executable. Probably we can add versioning support to
9025     # collect2, so additional links can be useful in future.
9026     if test "$aix_use_runtimelinking" = yes; then
9027       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9028       # instead of lib<name>.a to let people know that these are not
9029       # typical AIX shared libraries.
9030       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031     else
9032       # We preserve .a as extension for shared libraries through AIX4.2
9033       # and later when we are not doing run time linking.
9034       library_names_spec='${libname}${release}.a $libname.a'
9035       soname_spec='${libname}${release}${shared_ext}$major'
9036     fi
9037     shlibpath_var=LIBPATH
9038   fi
9039   ;;
9040
9041 amigaos*)
9042   if test "$host_cpu" = m68k; then
9043     library_names_spec='$libname.ixlibrary $libname.a'
9044     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9045     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'
9046   else
9047     dynamic_linker=no
9048   fi
9049   ;;
9050
9051 beos*)
9052   library_names_spec='${libname}${shared_ext}'
9053   dynamic_linker="$host_os ld.so"
9054   shlibpath_var=LIBRARY_PATH
9055   ;;
9056
9057 bsdi[45]*)
9058   version_type=linux
9059   need_version=no
9060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061   soname_spec='${libname}${release}${shared_ext}$major'
9062   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9063   shlibpath_var=LD_LIBRARY_PATH
9064   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9065   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9066   # the default ld.so.conf also contains /usr/contrib/lib and
9067   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9068   # libtool to hard-code these into programs
9069   ;;
9070
9071 cygwin* | mingw* | pw32*)
9072   version_type=windows
9073   shrext_cmds=".dll"
9074   need_version=no
9075   need_lib_prefix=no
9076
9077   case $withGCC,$host_os in
9078   yes,cygwin* | yes,mingw* | yes,pw32*)
9079     library_names_spec='$libname.dll.a'
9080     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9081     postinstall_cmds='base_file=`basename \${file}`~
9082       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9083       dldir=$destdir/`dirname \$dlpath`~
9084       test -d \$dldir || mkdir -p \$dldir~
9085       $install_prog $dir/$dlname \$dldir/$dlname~
9086       chmod a+x \$dldir/$dlname~
9087       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9088         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9089       fi'
9090     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9091       dlpath=$dir/\$dldll~
9092        $RM \$dlpath'
9093     shlibpath_overrides_runpath=yes
9094
9095     case $host_os in
9096     cygwin*)
9097       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9098       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9099       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9100       ;;
9101     mingw*)
9102       # MinGW DLLs use traditional 'lib' prefix
9103       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9104       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9105       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9106         # It is most probably a Windows format PATH printed by
9107         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9108         # path with ; separators, and with drive letters. We can handle the
9109         # drive letters (cygwin fileutils understands them), so leave them,
9110         # especially as we might pass files found there to a mingw objdump,
9111         # which wouldn't understand a cygwinified path. Ahh.
9112         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9113       else
9114         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9115       fi
9116       ;;
9117     pw32*)
9118       # pw32 DLLs use 'pw' prefix rather than 'lib'
9119       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9120       ;;
9121     esac
9122     ;;
9123
9124   *)
9125     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9126     ;;
9127   esac
9128   dynamic_linker='Win32 ld.exe'
9129   # FIXME: first we should search . and the directory the executable is in
9130   shlibpath_var=PATH
9131   ;;
9132
9133 darwin* | rhapsody*)
9134   dynamic_linker="$host_os dyld"
9135   version_type=darwin
9136   need_lib_prefix=no
9137   need_version=no
9138   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9139   soname_spec='${libname}${release}${major}$shared_ext'
9140   shlibpath_overrides_runpath=yes
9141   shlibpath_var=DYLD_LIBRARY_PATH
9142   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9143
9144   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9145   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9146   ;;
9147
9148 dgux*)
9149   version_type=linux
9150   need_lib_prefix=no
9151   need_version=no
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9153   soname_spec='${libname}${release}${shared_ext}$major'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   ;;
9156
9157 freebsd1*)
9158   dynamic_linker=no
9159   ;;
9160
9161 freebsd* | dragonfly*)
9162   # DragonFly does not have aout.  When/if they implement a new
9163   # versioning mechanism, adjust this.
9164   if test -x /usr/bin/objformat; then
9165     objformat=`/usr/bin/objformat`
9166   else
9167     case $host_os in
9168     freebsd[123]*) objformat=aout ;;
9169     *) objformat=elf ;;
9170     esac
9171   fi
9172   version_type=freebsd-$objformat
9173   case $version_type in
9174     freebsd-elf*)
9175       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9176       need_version=no
9177       need_lib_prefix=no
9178       ;;
9179     freebsd-*)
9180       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9181       need_version=yes
9182       ;;
9183   esac
9184   shlibpath_var=LD_LIBRARY_PATH
9185   case $host_os in
9186   freebsd2*)
9187     shlibpath_overrides_runpath=yes
9188     ;;
9189   freebsd3.[01]* | freebsdelf3.[01]*)
9190     shlibpath_overrides_runpath=yes
9191     hardcode_into_libs=yes
9192     ;;
9193   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9194   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9195     shlibpath_overrides_runpath=no
9196     hardcode_into_libs=yes
9197     ;;
9198   *) # from 4.6 on, and DragonFly
9199     shlibpath_overrides_runpath=yes
9200     hardcode_into_libs=yes
9201     ;;
9202   esac
9203   ;;
9204
9205 gnu*)
9206   version_type=linux
9207   need_lib_prefix=no
9208   need_version=no
9209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9210   soname_spec='${libname}${release}${shared_ext}$major'
9211   shlibpath_var=LD_LIBRARY_PATH
9212   hardcode_into_libs=yes
9213   ;;
9214
9215 hpux9* | hpux10* | hpux11*)
9216   # Give a soname corresponding to the major version so that dld.sl refuses to
9217   # link against other versions.
9218   version_type=sunos
9219   need_lib_prefix=no
9220   need_version=no
9221   case $host_cpu in
9222   ia64*)
9223     shrext_cmds='.so'
9224     hardcode_into_libs=yes
9225     dynamic_linker="$host_os dld.so"
9226     shlibpath_var=LD_LIBRARY_PATH
9227     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229     soname_spec='${libname}${release}${shared_ext}$major'
9230     if test "X$HPUX_IA64_MODE" = X32; then
9231       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9232     else
9233       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9234     fi
9235     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9236     ;;
9237   hppa*64*)
9238     shrext_cmds='.sl'
9239     hardcode_into_libs=yes
9240     dynamic_linker="$host_os dld.sl"
9241     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9242     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244     soname_spec='${libname}${release}${shared_ext}$major'
9245     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9246     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9247     ;;
9248   *)
9249     shrext_cmds='.sl'
9250     dynamic_linker="$host_os dld.sl"
9251     shlibpath_var=SHLIB_PATH
9252     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9254     soname_spec='${libname}${release}${shared_ext}$major'
9255     ;;
9256   esac
9257   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9258   postinstall_cmds='chmod 555 $lib'
9259   ;;
9260
9261 interix[3-9]*)
9262   version_type=linux
9263   need_lib_prefix=no
9264   need_version=no
9265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9266   soname_spec='${libname}${release}${shared_ext}$major'
9267   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9268   shlibpath_var=LD_LIBRARY_PATH
9269   shlibpath_overrides_runpath=no
9270   hardcode_into_libs=yes
9271   ;;
9272
9273 irix5* | irix6* | nonstopux*)
9274   case $host_os in
9275     nonstopux*) version_type=nonstopux ;;
9276     *)
9277         if test "$lt_cv_prog_gnu_ld" = yes; then
9278                 version_type=linux
9279         else
9280                 version_type=irix
9281         fi ;;
9282   esac
9283   need_lib_prefix=no
9284   need_version=no
9285   soname_spec='${libname}${release}${shared_ext}$major'
9286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9287   case $host_os in
9288   irix5* | nonstopux*)
9289     libsuff= shlibsuff=
9290     ;;
9291   *)
9292     case $LD in # libtool.m4 will add one of these switches to LD
9293     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9294       libsuff= shlibsuff= libmagic=32-bit;;
9295     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9296       libsuff=32 shlibsuff=N32 libmagic=N32;;
9297     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9298       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9299     *) libsuff= shlibsuff= libmagic=never-match;;
9300     esac
9301     ;;
9302   esac
9303   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9304   shlibpath_overrides_runpath=no
9305   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9306   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9307   hardcode_into_libs=yes
9308   ;;
9309
9310 # No shared lib support for Linux oldld, aout, or coff.
9311 linux*oldld* | linux*aout* | linux*coff*)
9312   dynamic_linker=no
9313   ;;
9314
9315 # This must be Linux ELF.
9316 linux* | k*bsd*-gnu)
9317   version_type=linux
9318   need_lib_prefix=no
9319   need_version=no
9320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321   soname_spec='${libname}${release}${shared_ext}$major'
9322   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9323   shlibpath_var=LD_LIBRARY_PATH
9324   shlibpath_overrides_runpath=no
9325   # Some binutils ld are patched to set DT_RUNPATH
9326   save_LDFLAGS=$LDFLAGS
9327   save_libdir=$libdir
9328   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9329        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9330   cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h.  */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h.  */
9336
9337 int
9338 main ()
9339 {
9340
9341   ;
9342   return 0;
9343 }
9344 _ACEOF
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9347   (eval $ac_link) 2>conftest.er1
9348   ac_status=$?
9349   grep -v '^ *+' conftest.er1 >conftest.err
9350   rm -f conftest.er1
9351   cat conftest.err >&5
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); } &&
9354          { ac_try='test -z "$ac_c_werror_flag"
9355                          || test ! -s conftest.err'
9356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357   (eval $ac_try) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; } &&
9361          { ac_try='test -s conftest$ac_exeext'
9362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363   (eval $ac_try) 2>&5
9364   ac_status=$?
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); }; }; then
9367   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9368   shlibpath_overrides_runpath=yes
9369 fi
9370
9371 else
9372   echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9374
9375 fi
9376 rm -f conftest.err conftest.$ac_objext \
9377       conftest$ac_exeext conftest.$ac_ext
9378   LDFLAGS=$save_LDFLAGS
9379   libdir=$save_libdir
9380
9381   # This implies no fast_install, which is unacceptable.
9382   # Some rework will be needed to allow for fast_install
9383   # before this can be enabled.
9384   hardcode_into_libs=yes
9385
9386   # Append ld.so.conf contents to the search path
9387   if test -f /etc/ld.so.conf; then
9388     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' ' '`
9389     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9390   fi
9391
9392   # We used to test for /lib/ld.so.1 and disable shared libraries on
9393   # powerpc, because MkLinux only supported shared libraries with the
9394   # GNU dynamic linker.  Since this was broken with cross compilers,
9395   # most powerpc-linux boxes support dynamic linking these days and
9396   # people can always --disable-shared, the test was removed, and we
9397   # assume the GNU/Linux dynamic linker is in use.
9398   dynamic_linker='GNU/Linux ld.so'
9399   ;;
9400
9401 netbsd*)
9402   version_type=sunos
9403   need_lib_prefix=no
9404   need_version=no
9405   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9407     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9408     dynamic_linker='NetBSD (a.out) ld.so'
9409   else
9410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9411     soname_spec='${libname}${release}${shared_ext}$major'
9412     dynamic_linker='NetBSD ld.elf_so'
9413   fi
9414   shlibpath_var=LD_LIBRARY_PATH
9415   shlibpath_overrides_runpath=yes
9416   hardcode_into_libs=yes
9417   ;;
9418
9419 newsos6)
9420   version_type=linux
9421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9422   shlibpath_var=LD_LIBRARY_PATH
9423   shlibpath_overrides_runpath=yes
9424   ;;
9425
9426 *nto* | *qnx*)
9427   version_type=qnx
9428   need_lib_prefix=no
9429   need_version=no
9430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431   soname_spec='${libname}${release}${shared_ext}$major'
9432   shlibpath_var=LD_LIBRARY_PATH
9433   shlibpath_overrides_runpath=no
9434   hardcode_into_libs=yes
9435   dynamic_linker='ldqnx.so'
9436   ;;
9437
9438 openbsd*)
9439   version_type=sunos
9440   sys_lib_dlsearch_path_spec="/usr/lib"
9441   need_lib_prefix=no
9442   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9443   case $host_os in
9444     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9445     *)                          need_version=no  ;;
9446   esac
9447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9448   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9449   shlibpath_var=LD_LIBRARY_PATH
9450   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9451     case $host_os in
9452       openbsd2.[89] | openbsd2.[89].*)
9453         shlibpath_overrides_runpath=no
9454         ;;
9455       *)
9456         shlibpath_overrides_runpath=yes
9457         ;;
9458       esac
9459   else
9460     shlibpath_overrides_runpath=yes
9461   fi
9462   ;;
9463
9464 os2*)
9465   libname_spec='$name'
9466   shrext_cmds=".dll"
9467   need_lib_prefix=no
9468   library_names_spec='$libname${shared_ext} $libname.a'
9469   dynamic_linker='OS/2 ld.exe'
9470   shlibpath_var=LIBPATH
9471   ;;
9472
9473 osf3* | osf4* | osf5*)
9474   version_type=osf
9475   need_lib_prefix=no
9476   need_version=no
9477   soname_spec='${libname}${release}${shared_ext}$major'
9478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479   shlibpath_var=LD_LIBRARY_PATH
9480   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9481   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9482   ;;
9483
9484 rdos*)
9485   dynamic_linker=no
9486   ;;
9487
9488 solaris*)
9489   version_type=linux
9490   need_lib_prefix=no
9491   need_version=no
9492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493   soname_spec='${libname}${release}${shared_ext}$major'
9494   shlibpath_var=LD_LIBRARY_PATH
9495   shlibpath_overrides_runpath=yes
9496   hardcode_into_libs=yes
9497   # ldd complains unless libraries are executable
9498   postinstall_cmds='chmod +x $lib'
9499   ;;
9500
9501 sunos4*)
9502   version_type=sunos
9503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9504   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9505   shlibpath_var=LD_LIBRARY_PATH
9506   shlibpath_overrides_runpath=yes
9507   if test "$with_gnu_ld" = yes; then
9508     need_lib_prefix=no
9509   fi
9510   need_version=yes
9511   ;;
9512
9513 sysv4 | sysv4.3*)
9514   version_type=linux
9515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516   soname_spec='${libname}${release}${shared_ext}$major'
9517   shlibpath_var=LD_LIBRARY_PATH
9518   case $host_vendor in
9519     sni)
9520       shlibpath_overrides_runpath=no
9521       need_lib_prefix=no
9522       runpath_var=LD_RUN_PATH
9523       ;;
9524     siemens)
9525       need_lib_prefix=no
9526       ;;
9527     motorola)
9528       need_lib_prefix=no
9529       need_version=no
9530       shlibpath_overrides_runpath=no
9531       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9532       ;;
9533   esac
9534   ;;
9535
9536 sysv4*MP*)
9537   if test -d /usr/nec ;then
9538     version_type=linux
9539     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9540     soname_spec='$libname${shared_ext}.$major'
9541     shlibpath_var=LD_LIBRARY_PATH
9542   fi
9543   ;;
9544
9545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9546   version_type=freebsd-elf
9547   need_lib_prefix=no
9548   need_version=no
9549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9550   soname_spec='${libname}${release}${shared_ext}$major'
9551   shlibpath_var=LD_LIBRARY_PATH
9552   shlibpath_overrides_runpath=yes
9553   hardcode_into_libs=yes
9554   if test "$with_gnu_ld" = yes; then
9555     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9556   else
9557     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9558     case $host_os in
9559       sco3.2v5*)
9560         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9561         ;;
9562     esac
9563   fi
9564   sys_lib_dlsearch_path_spec='/usr/lib'
9565   ;;
9566
9567 tpf*)
9568   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9569   version_type=linux
9570   need_lib_prefix=no
9571   need_version=no
9572   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573   shlibpath_var=LD_LIBRARY_PATH
9574   shlibpath_overrides_runpath=no
9575   hardcode_into_libs=yes
9576   ;;
9577
9578 uts4*)
9579   version_type=linux
9580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581   soname_spec='${libname}${release}${shared_ext}$major'
9582   shlibpath_var=LD_LIBRARY_PATH
9583   ;;
9584
9585 *)
9586   dynamic_linker=no
9587   ;;
9588 esac
9589 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9590 echo "${ECHO_T}$dynamic_linker" >&6
9591 test "$dynamic_linker" = no && can_build_shared=no
9592
9593 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9594 if test "$GCC" = yes; then
9595   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9596 fi
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9685 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9686 hardcode_action=
9687 if test -n "$hardcode_libdir_flag_spec" ||
9688    test -n "$runpath_var" ||
9689    test "X$hardcode_automatic" = "Xyes" ; then
9690
9691   # We can hardcode non-existent directories.
9692   if test "$hardcode_direct" != no &&
9693      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9694      # have to relink, otherwise we might link with an installed library
9695      # when we should be linking with a yet-to-be-installed one
9696      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9697      test "$hardcode_minus_L" != no; then
9698     # Linking always hardcodes the temporary library directory.
9699     hardcode_action=relink
9700   else
9701     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9702     hardcode_action=immediate
9703   fi
9704 else
9705   # We cannot hardcode anything, or else we can only hardcode existing
9706   # directories.
9707   hardcode_action=unsupported
9708 fi
9709 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9710 echo "${ECHO_T}$hardcode_action" >&6
9711
9712 if test "$hardcode_action" = relink ||
9713    test "$inherit_rpath" = yes; then
9714   # Fast installation is not supported
9715   enable_fast_install=no
9716 elif test "$shlibpath_overrides_runpath" = yes ||
9717      test "$enable_shared" = no; then
9718   # Fast installation is not necessary
9719   enable_fast_install=needless
9720 fi
9721
9722
9723
9724
9725
9726
9727   if test "x$enable_dlopen" != xyes; then
9728   enable_dlopen=unknown
9729   enable_dlopen_self=unknown
9730   enable_dlopen_self_static=unknown
9731 else
9732   lt_cv_dlopen=no
9733   lt_cv_dlopen_libs=
9734
9735   case $host_os in
9736   beos*)
9737     lt_cv_dlopen="load_add_on"
9738     lt_cv_dlopen_libs=
9739     lt_cv_dlopen_self=yes
9740     ;;
9741
9742   mingw* | pw32*)
9743     lt_cv_dlopen="LoadLibrary"
9744     lt_cv_dlopen_libs=
9745     ;;
9746
9747   cygwin*)
9748     lt_cv_dlopen="dlopen"
9749     lt_cv_dlopen_libs=
9750     ;;
9751
9752   darwin*)
9753   # if libdl is installed we need to link against it
9754     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9755 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9756 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   ac_check_lib_save_LIBS=$LIBS
9760 LIBS="-ldl  $LIBS"
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h.  */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h.  */
9767
9768 /* Override any gcc2 internal prototype to avoid an error.  */
9769 #ifdef __cplusplus
9770 extern "C"
9771 #endif
9772 /* We use char because int might match the return type of a gcc2
9773    builtin and then its argument prototype would still apply.  */
9774 char dlopen ();
9775 int
9776 main ()
9777 {
9778 dlopen ();
9779   ;
9780   return 0;
9781 }
9782 _ACEOF
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785   (eval $ac_link) 2>conftest.er1
9786   ac_status=$?
9787   grep -v '^ *+' conftest.er1 >conftest.err
9788   rm -f conftest.er1
9789   cat conftest.err >&5
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); } &&
9792          { ac_try='test -z "$ac_c_werror_flag"
9793                          || test ! -s conftest.err'
9794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795   (eval $ac_try) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; } &&
9799          { ac_try='test -s conftest$ac_exeext'
9800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801   (eval $ac_try) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; }; then
9805   ac_cv_lib_dl_dlopen=yes
9806 else
9807   echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 ac_cv_lib_dl_dlopen=no
9811 fi
9812 rm -f conftest.err conftest.$ac_objext \
9813       conftest$ac_exeext conftest.$ac_ext
9814 LIBS=$ac_check_lib_save_LIBS
9815 fi
9816 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9817 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9818 if test $ac_cv_lib_dl_dlopen = yes; then
9819   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9820 else
9821
9822     lt_cv_dlopen="dyld"
9823     lt_cv_dlopen_libs=
9824     lt_cv_dlopen_self=yes
9825
9826 fi
9827
9828     ;;
9829
9830   *)
9831     echo "$as_me:$LINENO: checking for shl_load" >&5
9832 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9833 if test "${ac_cv_func_shl_load+set}" = set; then
9834   echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836   cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h.  */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h.  */
9842 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9844 #define shl_load innocuous_shl_load
9845
9846 /* System header to define __stub macros and hopefully few prototypes,
9847     which can conflict with char shl_load (); below.
9848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9849     <limits.h> exists even on freestanding compilers.  */
9850
9851 #ifdef __STDC__
9852 # include <limits.h>
9853 #else
9854 # include <assert.h>
9855 #endif
9856
9857 #undef shl_load
9858
9859 /* Override any gcc2 internal prototype to avoid an error.  */
9860 #ifdef __cplusplus
9861 extern "C"
9862 {
9863 #endif
9864 /* We use char because int might match the return type of a gcc2
9865    builtin and then its argument prototype would still apply.  */
9866 char shl_load ();
9867 /* The GNU C library defines this for functions which it implements
9868     to always fail with ENOSYS.  Some functions are actually named
9869     something starting with __ and the normal name is an alias.  */
9870 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9871 choke me
9872 #else
9873 char (*f) () = shl_load;
9874 #endif
9875 #ifdef __cplusplus
9876 }
9877 #endif
9878
9879 int
9880 main ()
9881 {
9882 return f != shl_load;
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9889   (eval $ac_link) 2>conftest.er1
9890   ac_status=$?
9891   grep -v '^ *+' conftest.er1 >conftest.err
9892   rm -f conftest.er1
9893   cat conftest.err >&5
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); } &&
9896          { ac_try='test -z "$ac_c_werror_flag"
9897                          || test ! -s conftest.err'
9898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899   (eval $ac_try) 2>&5
9900   ac_status=$?
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); }; } &&
9903          { ac_try='test -s conftest$ac_exeext'
9904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905   (eval $ac_try) 2>&5
9906   ac_status=$?
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); }; }; then
9909   ac_cv_func_shl_load=yes
9910 else
9911   echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9913
9914 ac_cv_func_shl_load=no
9915 fi
9916 rm -f conftest.err conftest.$ac_objext \
9917       conftest$ac_exeext conftest.$ac_ext
9918 fi
9919 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9920 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9921 if test $ac_cv_func_shl_load = yes; then
9922   lt_cv_dlopen="shl_load"
9923 else
9924   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9925 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9926 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9927   echo $ECHO_N "(cached) $ECHO_C" >&6
9928 else
9929   ac_check_lib_save_LIBS=$LIBS
9930 LIBS="-ldld  $LIBS"
9931 cat >conftest.$ac_ext <<_ACEOF
9932 /* confdefs.h.  */
9933 _ACEOF
9934 cat confdefs.h >>conftest.$ac_ext
9935 cat >>conftest.$ac_ext <<_ACEOF
9936 /* end confdefs.h.  */
9937
9938 /* Override any gcc2 internal prototype to avoid an error.  */
9939 #ifdef __cplusplus
9940 extern "C"
9941 #endif
9942 /* We use char because int might match the return type of a gcc2
9943    builtin and then its argument prototype would still apply.  */
9944 char shl_load ();
9945 int
9946 main ()
9947 {
9948 shl_load ();
9949   ;
9950   return 0;
9951 }
9952 _ACEOF
9953 rm -f conftest.$ac_objext conftest$ac_exeext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9955   (eval $ac_link) 2>conftest.er1
9956   ac_status=$?
9957   grep -v '^ *+' conftest.er1 >conftest.err
9958   rm -f conftest.er1
9959   cat conftest.err >&5
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } &&
9962          { ac_try='test -z "$ac_c_werror_flag"
9963                          || test ! -s conftest.err'
9964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965   (eval $ac_try) 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; } &&
9969          { ac_try='test -s conftest$ac_exeext'
9970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971   (eval $ac_try) 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; }; then
9975   ac_cv_lib_dld_shl_load=yes
9976 else
9977   echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9979
9980 ac_cv_lib_dld_shl_load=no
9981 fi
9982 rm -f conftest.err conftest.$ac_objext \
9983       conftest$ac_exeext conftest.$ac_ext
9984 LIBS=$ac_check_lib_save_LIBS
9985 fi
9986 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9987 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9988 if test $ac_cv_lib_dld_shl_load = yes; then
9989   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9990 else
9991   echo "$as_me:$LINENO: checking for dlopen" >&5
9992 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9993 if test "${ac_cv_func_dlopen+set}" = set; then
9994   echo $ECHO_N "(cached) $ECHO_C" >&6
9995 else
9996   cat >conftest.$ac_ext <<_ACEOF
9997 /* confdefs.h.  */
9998 _ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h.  */
10002 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10004 #define dlopen innocuous_dlopen
10005
10006 /* System header to define __stub macros and hopefully few prototypes,
10007     which can conflict with char dlopen (); below.
10008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10009     <limits.h> exists even on freestanding compilers.  */
10010
10011 #ifdef __STDC__
10012 # include <limits.h>
10013 #else
10014 # include <assert.h>
10015 #endif
10016
10017 #undef dlopen
10018
10019 /* Override any gcc2 internal prototype to avoid an error.  */
10020 #ifdef __cplusplus
10021 extern "C"
10022 {
10023 #endif
10024 /* We use char because int might match the return type of a gcc2
10025    builtin and then its argument prototype would still apply.  */
10026 char dlopen ();
10027 /* The GNU C library defines this for functions which it implements
10028     to always fail with ENOSYS.  Some functions are actually named
10029     something starting with __ and the normal name is an alias.  */
10030 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10031 choke me
10032 #else
10033 char (*f) () = dlopen;
10034 #endif
10035 #ifdef __cplusplus
10036 }
10037 #endif
10038
10039 int
10040 main ()
10041 {
10042 return f != dlopen;
10043   ;
10044   return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10049   (eval $ac_link) 2>conftest.er1
10050   ac_status=$?
10051   grep -v '^ *+' conftest.er1 >conftest.err
10052   rm -f conftest.er1
10053   cat conftest.err >&5
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } &&
10056          { ac_try='test -z "$ac_c_werror_flag"
10057                          || test ! -s conftest.err'
10058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059   (eval $ac_try) 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; } &&
10063          { ac_try='test -s conftest$ac_exeext'
10064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065   (eval $ac_try) 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); }; }; then
10069   ac_cv_func_dlopen=yes
10070 else
10071   echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10073
10074 ac_cv_func_dlopen=no
10075 fi
10076 rm -f conftest.err conftest.$ac_objext \
10077       conftest$ac_exeext conftest.$ac_ext
10078 fi
10079 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10080 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10081 if test $ac_cv_func_dlopen = yes; then
10082   lt_cv_dlopen="dlopen"
10083 else
10084   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10085 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10086 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10087   echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089   ac_check_lib_save_LIBS=$LIBS
10090 LIBS="-ldl  $LIBS"
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h.  */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h.  */
10097
10098 /* Override any gcc2 internal prototype to avoid an error.  */
10099 #ifdef __cplusplus
10100 extern "C"
10101 #endif
10102 /* We use char because int might match the return type of a gcc2
10103    builtin and then its argument prototype would still apply.  */
10104 char dlopen ();
10105 int
10106 main ()
10107 {
10108 dlopen ();
10109   ;
10110   return 0;
10111 }
10112 _ACEOF
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10115   (eval $ac_link) 2>conftest.er1
10116   ac_status=$?
10117   grep -v '^ *+' conftest.er1 >conftest.err
10118   rm -f conftest.er1
10119   cat conftest.err >&5
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } &&
10122          { ac_try='test -z "$ac_c_werror_flag"
10123                          || test ! -s conftest.err'
10124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125   (eval $ac_try) 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; } &&
10129          { ac_try='test -s conftest$ac_exeext'
10130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131   (eval $ac_try) 2>&5
10132   ac_status=$?
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); }; }; then
10135   ac_cv_lib_dl_dlopen=yes
10136 else
10137   echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10139
10140 ac_cv_lib_dl_dlopen=no
10141 fi
10142 rm -f conftest.err conftest.$ac_objext \
10143       conftest$ac_exeext conftest.$ac_ext
10144 LIBS=$ac_check_lib_save_LIBS
10145 fi
10146 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10147 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10148 if test $ac_cv_lib_dl_dlopen = yes; then
10149   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10150 else
10151   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10152 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10153 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156   ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lsvld  $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h.  */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h.  */
10164
10165 /* Override any gcc2 internal prototype to avoid an error.  */
10166 #ifdef __cplusplus
10167 extern "C"
10168 #endif
10169 /* We use char because int might match the return type of a gcc2
10170    builtin and then its argument prototype would still apply.  */
10171 char dlopen ();
10172 int
10173 main ()
10174 {
10175 dlopen ();
10176   ;
10177   return 0;
10178 }
10179 _ACEOF
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10182   (eval $ac_link) 2>conftest.er1
10183   ac_status=$?
10184   grep -v '^ *+' conftest.er1 >conftest.err
10185   rm -f conftest.er1
10186   cat conftest.err >&5
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); } &&
10189          { ac_try='test -z "$ac_c_werror_flag"
10190                          || test ! -s conftest.err'
10191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192   (eval $ac_try) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }; } &&
10196          { ac_try='test -s conftest$ac_exeext'
10197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198   (eval $ac_try) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); }; }; then
10202   ac_cv_lib_svld_dlopen=yes
10203 else
10204   echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10206
10207 ac_cv_lib_svld_dlopen=no
10208 fi
10209 rm -f conftest.err conftest.$ac_objext \
10210       conftest$ac_exeext conftest.$ac_ext
10211 LIBS=$ac_check_lib_save_LIBS
10212 fi
10213 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10214 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10215 if test $ac_cv_lib_svld_dlopen = yes; then
10216   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10217 else
10218   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10219 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10220 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10221   echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223   ac_check_lib_save_LIBS=$LIBS
10224 LIBS="-ldld  $LIBS"
10225 cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h.  */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h.  */
10231
10232 /* Override any gcc2 internal prototype to avoid an error.  */
10233 #ifdef __cplusplus
10234 extern "C"
10235 #endif
10236 /* We use char because int might match the return type of a gcc2
10237    builtin and then its argument prototype would still apply.  */
10238 char dld_link ();
10239 int
10240 main ()
10241 {
10242 dld_link ();
10243   ;
10244   return 0;
10245 }
10246 _ACEOF
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10249   (eval $ac_link) 2>conftest.er1
10250   ac_status=$?
10251   grep -v '^ *+' conftest.er1 >conftest.err
10252   rm -f conftest.er1
10253   cat conftest.err >&5
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } &&
10256          { ac_try='test -z "$ac_c_werror_flag"
10257                          || test ! -s conftest.err'
10258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259   (eval $ac_try) 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); }; } &&
10263          { ac_try='test -s conftest$ac_exeext'
10264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265   (eval $ac_try) 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; }; then
10269   ac_cv_lib_dld_dld_link=yes
10270 else
10271   echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10273
10274 ac_cv_lib_dld_dld_link=no
10275 fi
10276 rm -f conftest.err conftest.$ac_objext \
10277       conftest$ac_exeext conftest.$ac_ext
10278 LIBS=$ac_check_lib_save_LIBS
10279 fi
10280 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10281 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10282 if test $ac_cv_lib_dld_dld_link = yes; then
10283   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10284 fi
10285
10286
10287 fi
10288
10289
10290 fi
10291
10292
10293 fi
10294
10295
10296 fi
10297
10298
10299 fi
10300
10301     ;;
10302   esac
10303
10304   if test "x$lt_cv_dlopen" != xno; then
10305     enable_dlopen=yes
10306   else
10307     enable_dlopen=no
10308   fi
10309
10310   case $lt_cv_dlopen in
10311   dlopen)
10312     save_CPPFLAGS="$CPPFLAGS"
10313     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10314
10315     save_LDFLAGS="$LDFLAGS"
10316     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10317
10318     save_LIBS="$LIBS"
10319     LIBS="$lt_cv_dlopen_libs $LIBS"
10320
10321     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10322 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10323 if test "${lt_cv_dlopen_self+set}" = set; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326           if test "$cross_compiling" = yes; then :
10327   lt_cv_dlopen_self=cross
10328 else
10329   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10330   lt_status=$lt_dlunknown
10331   cat > conftest.$ac_ext <<_LT_EOF
10332 #line 10332 "configure"
10333 #include "confdefs.h"
10334
10335 #if HAVE_DLFCN_H
10336 #include <dlfcn.h>
10337 #endif
10338
10339 #include <stdio.h>
10340
10341 #ifdef RTLD_GLOBAL
10342 #  define LT_DLGLOBAL           RTLD_GLOBAL
10343 #else
10344 #  ifdef DL_GLOBAL
10345 #    define LT_DLGLOBAL         DL_GLOBAL
10346 #  else
10347 #    define LT_DLGLOBAL         0
10348 #  endif
10349 #endif
10350
10351 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10352    find out it does not work in some platform. */
10353 #ifndef LT_DLLAZY_OR_NOW
10354 #  ifdef RTLD_LAZY
10355 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10356 #  else
10357 #    ifdef DL_LAZY
10358 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10359 #    else
10360 #      ifdef RTLD_NOW
10361 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10362 #      else
10363 #        ifdef DL_NOW
10364 #          define LT_DLLAZY_OR_NOW      DL_NOW
10365 #        else
10366 #          define LT_DLLAZY_OR_NOW      0
10367 #        endif
10368 #      endif
10369 #    endif
10370 #  endif
10371 #endif
10372
10373 #ifdef __cplusplus
10374 extern "C" void exit (int);
10375 #endif
10376
10377 void fnord() { int i=42;}
10378 int main ()
10379 {
10380   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10381   int status = $lt_dlunknown;
10382
10383   if (self)
10384     {
10385       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10386       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10387       /* dlclose (self); */
10388     }
10389   else
10390     puts (dlerror ());
10391
10392     exit (status);
10393 }
10394 _LT_EOF
10395   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10396   (eval $ac_link) 2>&5
10397   ac_status=$?
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10400     (./conftest; exit; ) >&5 2>/dev/null
10401     lt_status=$?
10402     case x$lt_status in
10403       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10404       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10405       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10406     esac
10407   else :
10408     # compilation failed
10409     lt_cv_dlopen_self=no
10410   fi
10411 fi
10412 rm -fr conftest*
10413
10414
10415 fi
10416 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10417 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10418
10419     if test "x$lt_cv_dlopen_self" = xyes; then
10420       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10421       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10422 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10423 if test "${lt_cv_dlopen_self_static+set}" = set; then
10424   echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426           if test "$cross_compiling" = yes; then :
10427   lt_cv_dlopen_self_static=cross
10428 else
10429   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10430   lt_status=$lt_dlunknown
10431   cat > conftest.$ac_ext <<_LT_EOF
10432 #line 10432 "configure"
10433 #include "confdefs.h"
10434
10435 #if HAVE_DLFCN_H
10436 #include <dlfcn.h>
10437 #endif
10438
10439 #include <stdio.h>
10440
10441 #ifdef RTLD_GLOBAL
10442 #  define LT_DLGLOBAL           RTLD_GLOBAL
10443 #else
10444 #  ifdef DL_GLOBAL
10445 #    define LT_DLGLOBAL         DL_GLOBAL
10446 #  else
10447 #    define LT_DLGLOBAL         0
10448 #  endif
10449 #endif
10450
10451 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10452    find out it does not work in some platform. */
10453 #ifndef LT_DLLAZY_OR_NOW
10454 #  ifdef RTLD_LAZY
10455 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10456 #  else
10457 #    ifdef DL_LAZY
10458 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10459 #    else
10460 #      ifdef RTLD_NOW
10461 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10462 #      else
10463 #        ifdef DL_NOW
10464 #          define LT_DLLAZY_OR_NOW      DL_NOW
10465 #        else
10466 #          define LT_DLLAZY_OR_NOW      0
10467 #        endif
10468 #      endif
10469 #    endif
10470 #  endif
10471 #endif
10472
10473 #ifdef __cplusplus
10474 extern "C" void exit (int);
10475 #endif
10476
10477 void fnord() { int i=42;}
10478 int main ()
10479 {
10480   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10481   int status = $lt_dlunknown;
10482
10483   if (self)
10484     {
10485       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10486       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10487       /* dlclose (self); */
10488     }
10489   else
10490     puts (dlerror ());
10491
10492     exit (status);
10493 }
10494 _LT_EOF
10495   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10496   (eval $ac_link) 2>&5
10497   ac_status=$?
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10500     (./conftest; exit; ) >&5 2>/dev/null
10501     lt_status=$?
10502     case x$lt_status in
10503       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10504       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10505       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10506     esac
10507   else :
10508     # compilation failed
10509     lt_cv_dlopen_self_static=no
10510   fi
10511 fi
10512 rm -fr conftest*
10513
10514
10515 fi
10516 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10517 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10518     fi
10519
10520     CPPFLAGS="$save_CPPFLAGS"
10521     LDFLAGS="$save_LDFLAGS"
10522     LIBS="$save_LIBS"
10523     ;;
10524   esac
10525
10526   case $lt_cv_dlopen_self in
10527   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10528   *) enable_dlopen_self=unknown ;;
10529   esac
10530
10531   case $lt_cv_dlopen_self_static in
10532   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10533   *) enable_dlopen_self_static=unknown ;;
10534   esac
10535 fi
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553 striplib=
10554 old_striplib=
10555 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10556 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10557 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10558   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10559   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10560   echo "$as_me:$LINENO: result: yes" >&5
10561 echo "${ECHO_T}yes" >&6
10562 else
10563 # FIXME - insert some real tests, host_os isn't really good enough
10564   case $host_os in
10565   darwin*)
10566     if test -n "$STRIP" ; then
10567       striplib="$STRIP -x"
10568       old_striplib="$STRIP -S"
10569       echo "$as_me:$LINENO: result: yes" >&5
10570 echo "${ECHO_T}yes" >&6
10571     else
10572       echo "$as_me:$LINENO: result: no" >&5
10573 echo "${ECHO_T}no" >&6
10574     fi
10575     ;;
10576   *)
10577     echo "$as_me:$LINENO: result: no" >&5
10578 echo "${ECHO_T}no" >&6
10579     ;;
10580   esac
10581 fi
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594   # Report which library types will actually be built
10595   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10596 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10597   echo "$as_me:$LINENO: result: $can_build_shared" >&5
10598 echo "${ECHO_T}$can_build_shared" >&6
10599
10600   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10601 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10602   test "$can_build_shared" = "no" && enable_shared=no
10603
10604   # On AIX, shared libraries and static libraries use the same namespace, and
10605   # are all built from PIC.
10606   case $host_os in
10607   aix3*)
10608     test "$enable_shared" = yes && enable_static=no
10609     if test -n "$RANLIB"; then
10610       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10611       postinstall_cmds='$RANLIB $lib'
10612     fi
10613     ;;
10614
10615   aix4* | aix5*)
10616     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10617       test "$enable_shared" = yes && enable_static=no
10618     fi
10619     ;;
10620   esac
10621   echo "$as_me:$LINENO: result: $enable_shared" >&5
10622 echo "${ECHO_T}$enable_shared" >&6
10623
10624   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10625 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10626   # Make sure either enable_shared or enable_static is yes.
10627   test "$enable_shared" = yes || enable_static=yes
10628   echo "$as_me:$LINENO: result: $enable_static" >&5
10629 echo "${ECHO_T}$enable_static" >&6
10630
10631
10632
10633
10634 fi
10635 ac_ext=c
10636 ac_cpp='$CPP $CPPFLAGS'
10637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10640
10641 CC="$lt_save_CC"
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655                   ac_config_commands="$ac_config_commands libtool"
10656
10657
10658
10659
10660 # Only expand once:
10661
10662
10663 fi
10664
10665
10666
10667 subdirs="$subdirs machine sys"
10668
10669
10670 CRT0=
10671 if test "x${have_crt0}" = "xyes"; then
10672   CRT0=crt0.o
10673 fi
10674
10675
10676
10677 LIBC_POSIX_LIB=
10678 if test -n "${posix_dir}"; then
10679   if test "${use_libtool}" = "yes"; then
10680     LIBC_POSIX_LIB=${posix_dir}/lib${posix_dir}.${aext}
10681   else
10682     LIBC_POSIX_LIB=${posix_dir}/lib.${aext}
10683   fi
10684 fi
10685
10686
10687
10688 if test x${posix_dir} != x; then
10689   HAVE_POSIX_DIR_TRUE=
10690   HAVE_POSIX_DIR_FALSE='#'
10691 else
10692   HAVE_POSIX_DIR_TRUE='#'
10693   HAVE_POSIX_DIR_FALSE=
10694 fi
10695
10696
10697 LIBC_SIGNAL_LIB=
10698 LIBC_SIGNAL_DEF=
10699 if test -n "${signal_dir}"; then
10700   if test "${use_libtool}" = "yes"; then
10701     LIBC_SIGNAL_LIB=${signal_dir}/lib${signal_dir}.${aext}
10702   else
10703     LIBC_SIGNAL_LIB=${signal_dir}/lib.${aext}
10704   fi
10705   LIBC_SIGNAL_DEF=${signal_dir}/stmp-def
10706 fi
10707
10708
10709
10710
10711 if test x${signal_dir} != x; then
10712   HAVE_SIGNAL_DIR_TRUE=
10713   HAVE_SIGNAL_DIR_FALSE='#'
10714 else
10715   HAVE_SIGNAL_DIR_TRUE='#'
10716   HAVE_SIGNAL_DIR_FALSE=
10717 fi
10718
10719
10720 LIBC_STDIO_LIB=
10721 LIBC_STDIO_DEF=
10722 if test -n "${stdio_dir}"; then
10723   if test "${use_libtool}" = "yes"; then
10724     LIBC_STDIO_LIB=${stdio_dir}/lib${stdio_dir}.${aext}
10725   else
10726     LIBC_STDIO_LIB=${stdio_dir}/lib.${aext}
10727   fi
10728   LIBC_STDIO_DEF=${stdio_dir}/stmp-def
10729 fi
10730
10731
10732
10733
10734 if test x${stdio_dir} != x; then
10735   HAVE_STDIO_DIR_TRUE=
10736   HAVE_STDIO_DIR_FALSE='#'
10737 else
10738   HAVE_STDIO_DIR_TRUE='#'
10739   HAVE_STDIO_DIR_FALSE=
10740 fi
10741
10742
10743 LIBC_STDIO64_LIB=
10744 LIBC_STDIO64_DEF=
10745 if test -n "${stdio64_dir}"; then
10746   if test "${use_libtool}" = "yes"; then
10747     LIBC_STDIO64_LIB=${stdio64_dir}/lib${stdio64_dir}.${aext}
10748   else
10749     LIBC_STDIO64_LIB=${stdio64_dir}/lib.${aext}
10750   fi
10751   LIBC_STDIO64_DEF=${stdio64_dir}/stmp-def
10752 fi
10753
10754
10755
10756
10757 if test x${stdio64_dir} != x; then
10758   HAVE_STDIO64_DIR_TRUE=
10759   HAVE_STDIO64_DIR_FALSE='#'
10760 else
10761   HAVE_STDIO64_DIR_TRUE='#'
10762   HAVE_STDIO64_DIR_FALSE=
10763 fi
10764
10765
10766 LIBC_SYSCALL_LIB=
10767 if test -n "${syscall_dir}"; then
10768   if test "${use_libtool}" = "yes"; then
10769     LIBC_SYSCALL_LIB=${syscall_dir}/lib${syscall_dir}.${aext}
10770   else
10771     LIBC_SYSCALL_LIB=${syscall_dir}/lib.${aext}
10772   fi
10773 fi
10774
10775
10776
10777 if test x${syscall_dir} != x; then
10778   HAVE_SYSCALL_DIR_TRUE=
10779   HAVE_SYSCALL_DIR_FALSE='#'
10780 else
10781   HAVE_SYSCALL_DIR_TRUE='#'
10782   HAVE_SYSCALL_DIR_FALSE=
10783 fi
10784
10785
10786 LIBC_UNIX_LIB=
10787 if test -n "${unix_dir}"; then
10788   if test "${use_libtool}" = "yes"; then
10789     LIBC_UNIX_LIB=${unix_dir}/lib${unix_dir}.${aext}
10790   else
10791     LIBC_UNIX_LIB=${unix_dir}/lib.${aext}
10792   fi
10793 fi
10794
10795
10796
10797 if test x${unix_dir} != x; then
10798   HAVE_UNIX_DIR_TRUE=
10799   HAVE_UNIX_DIR_FALSE='#'
10800 else
10801   HAVE_UNIX_DIR_TRUE='#'
10802   HAVE_UNIX_DIR_FALSE=
10803 fi
10804
10805
10806 LIBC_EXTRA_LIB=
10807 LIBC_EXTRA_DEF=
10808 extra_dir=
10809
10810
10811
10812
10813
10814
10815 LIBC_SYS_LIB=
10816 if test -n "${sys_dir}"; then
10817   if test "${use_libtool}" = "yes"; then
10818     LIBC_SYS_LIB=sys/${sys_dir}/lib${sys_dir}.${aext}
10819   else
10820     LIBC_SYS_LIB=sys/lib.${aext}
10821   fi
10822 fi
10823
10824
10825
10826
10827
10828 if test x${newlib_iconv} != x; then
10829   ENABLE_NEWLIB_ICONV_TRUE=
10830   ENABLE_NEWLIB_ICONV_FALSE='#'
10831 else
10832   ENABLE_NEWLIB_ICONV_TRUE='#'
10833   ENABLE_NEWLIB_ICONV_FALSE=
10834 fi
10835
10836
10837 if test -n "${machine_dir}"; then
10838   if test "${use_libtool}" = "yes"; then
10839     LIBC_MACHINE_LIB=machine/${machine_dir}/lib${machine_dir}.${aext}
10840   else
10841     LIBC_MACHINE_LIB=machine/lib.${aext}
10842   fi
10843 fi
10844
10845
10846
10847                                                                                                                                                                                                                             ac_config_files="$ac_config_files Makefile argz/Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile search/Makefile stdio/Makefile stdio64/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile iconv/Makefile iconv/ces/Makefile iconv/ccs/Makefile iconv/ccs/binary/Makefile iconv/lib/Makefile"
10848
10849 cat >confcache <<\_ACEOF
10850 # This file is a shell script that caches the results of configure
10851 # tests run on this system so they can be shared between configure
10852 # scripts and configure runs, see configure's option --config-cache.
10853 # It is not useful on other systems.  If it contains results you don't
10854 # want to keep, you may remove or edit it.
10855 #
10856 # config.status only pays attention to the cache file if you give it
10857 # the --recheck option to rerun configure.
10858 #
10859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10861 # following values.
10862
10863 _ACEOF
10864
10865 # The following way of writing the cache mishandles newlines in values,
10866 # but we know of no workaround that is simple, portable, and efficient.
10867 # So, don't put newlines in cache variables' values.
10868 # Ultrix sh set writes to stderr and can't be redirected directly,
10869 # and sets the high bit in the cache file unless we assign to the vars.
10870 {
10871   (set) 2>&1 |
10872     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10873     *ac_space=\ *)
10874       # `set' does not quote correctly, so add quotes (double-quote
10875       # substitution turns \\\\ into \\, and sed turns \\ into \).
10876       sed -n \
10877         "s/'/'\\\\''/g;
10878           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10879       ;;
10880     *)
10881       # `set' quotes correctly as required by POSIX, so do not add quotes.
10882       sed -n \
10883         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10884       ;;
10885     esac;
10886 } |
10887   sed '
10888      t clear
10889      : clear
10890      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10891      t end
10892      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10893      : end' >>confcache
10894 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10895   if test -w $cache_file; then
10896     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10897     cat confcache >$cache_file
10898   else
10899     echo "not updating unwritable cache $cache_file"
10900   fi
10901 fi
10902 rm -f confcache
10903
10904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10905 # Let make expand exec_prefix.
10906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10907
10908 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10909 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10910 # trailing colons and then remove the whole line if VPATH becomes empty
10911 # (actually we leave an empty line to preserve line numbers).
10912 if test "x$srcdir" = x.; then
10913   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10914 s/:*\$(srcdir):*/:/;
10915 s/:*\${srcdir}:*/:/;
10916 s/:*@srcdir@:*/:/;
10917 s/^\([^=]*=[     ]*\):*/\1/;
10918 s/:*$//;
10919 s/^[^=]*=[       ]*$//;
10920 }'
10921 fi
10922
10923 # Transform confdefs.h into DEFS.
10924 # Protect against shell expansion while executing Makefile rules.
10925 # Protect against Makefile macro expansion.
10926 #
10927 # If the first sed substitution is executed (which looks for macros that
10928 # take arguments), then we branch to the quote section.  Otherwise,
10929 # look for a macro that doesn't take arguments.
10930 cat >confdef2opt.sed <<\_ACEOF
10931 t clear
10932 : clear
10933 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
10934 t quote
10935 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
10936 t quote
10937 d
10938 : quote
10939 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
10940 s,\[,\\&,g
10941 s,\],\\&,g
10942 s,\$,$$,g
10943 p
10944 _ACEOF
10945 # We use echo to avoid assuming a particular line-breaking character.
10946 # The extra dot is to prevent the shell from consuming trailing
10947 # line-breaks from the sub-command output.  A line-break within
10948 # single-quotes doesn't work because, if this script is created in a
10949 # platform that uses two characters for line-breaks (e.g., DOS), tr
10950 # would break.
10951 ac_LF_and_DOT=`echo; echo .`
10952 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10953 rm -f confdef2opt.sed
10954
10955
10956 ac_libobjs=
10957 ac_ltlibobjs=
10958 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10959   # 1. Remove the extension, and $U if already installed.
10960   ac_i=`echo "$ac_i" |
10961          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10962   # 2. Add them.
10963   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10964   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10965 done
10966 LIBOBJS=$ac_libobjs
10967
10968 LTLIBOBJS=$ac_ltlibobjs
10969
10970
10971 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
10972   { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
10973 Usually this means the macro was only invoked conditionally." >&5
10974 echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
10975 Usually this means the macro was only invoked conditionally." >&2;}
10976    { (exit 1); exit 1; }; }
10977 fi
10978 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10979   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10980 Usually this means the macro was only invoked conditionally." >&5
10981 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10982 Usually this means the macro was only invoked conditionally." >&2;}
10983    { (exit 1); exit 1; }; }
10984 fi
10985 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10986   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10987 Usually this means the macro was only invoked conditionally." >&5
10988 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10989 Usually this means the macro was only invoked conditionally." >&2;}
10990    { (exit 1); exit 1; }; }
10991 fi
10992 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10993   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10994 Usually this means the macro was only invoked conditionally." >&5
10995 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10996 Usually this means the macro was only invoked conditionally." >&2;}
10997    { (exit 1); exit 1; }; }
10998 fi
10999 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
11000   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
11001 Usually this means the macro was only invoked conditionally." >&5
11002 echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
11003 Usually this means the macro was only invoked conditionally." >&2;}
11004    { (exit 1); exit 1; }; }
11005 fi
11006 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
11007   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
11008 Usually this means the macro was only invoked conditionally." >&5
11009 echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
11010 Usually this means the macro was only invoked conditionally." >&2;}
11011    { (exit 1); exit 1; }; }
11012 fi
11013 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
11014   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
11015 Usually this means the macro was only invoked conditionally." >&5
11016 echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
11017 Usually this means the macro was only invoked conditionally." >&2;}
11018    { (exit 1); exit 1; }; }
11019 fi
11020 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
11021   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
11022 Usually this means the macro was only invoked conditionally." >&5
11023 echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
11024 Usually this means the macro was only invoked conditionally." >&2;}
11025    { (exit 1); exit 1; }; }
11026 fi
11027 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
11028   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
11029 Usually this means the macro was only invoked conditionally." >&5
11030 echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
11031 Usually this means the macro was only invoked conditionally." >&2;}
11032    { (exit 1); exit 1; }; }
11033 fi
11034 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
11035   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
11036 Usually this means the macro was only invoked conditionally." >&5
11037 echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
11038 Usually this means the macro was only invoked conditionally." >&2;}
11039    { (exit 1); exit 1; }; }
11040 fi
11041 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11042   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11043 Usually this means the macro was only invoked conditionally." >&5
11044 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11045 Usually this means the macro was only invoked conditionally." >&2;}
11046    { (exit 1); exit 1; }; }
11047 fi
11048 if test -z "${HAVE_POSIX_DIR_TRUE}" && test -z "${HAVE_POSIX_DIR_FALSE}"; then
11049   { { echo "$as_me:$LINENO: error: conditional \"HAVE_POSIX_DIR\" was never defined.
11050 Usually this means the macro was only invoked conditionally." >&5
11051 echo "$as_me: error: conditional \"HAVE_POSIX_DIR\" was never defined.
11052 Usually this means the macro was only invoked conditionally." >&2;}
11053    { (exit 1); exit 1; }; }
11054 fi
11055 if test -z "${HAVE_SIGNAL_DIR_TRUE}" && test -z "${HAVE_SIGNAL_DIR_FALSE}"; then
11056   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SIGNAL_DIR\" was never defined.
11057 Usually this means the macro was only invoked conditionally." >&5
11058 echo "$as_me: error: conditional \"HAVE_SIGNAL_DIR\" was never defined.
11059 Usually this means the macro was only invoked conditionally." >&2;}
11060    { (exit 1); exit 1; }; }
11061 fi
11062 if test -z "${HAVE_STDIO_DIR_TRUE}" && test -z "${HAVE_STDIO_DIR_FALSE}"; then
11063   { { echo "$as_me:$LINENO: error: conditional \"HAVE_STDIO_DIR\" was never defined.
11064 Usually this means the macro was only invoked conditionally." >&5
11065 echo "$as_me: error: conditional \"HAVE_STDIO_DIR\" was never defined.
11066 Usually this means the macro was only invoked conditionally." >&2;}
11067    { (exit 1); exit 1; }; }
11068 fi
11069 if test -z "${HAVE_STDIO64_DIR_TRUE}" && test -z "${HAVE_STDIO64_DIR_FALSE}"; then
11070   { { echo "$as_me:$LINENO: error: conditional \"HAVE_STDIO64_DIR\" was never defined.
11071 Usually this means the macro was only invoked conditionally." >&5
11072 echo "$as_me: error: conditional \"HAVE_STDIO64_DIR\" was never defined.
11073 Usually this means the macro was only invoked conditionally." >&2;}
11074    { (exit 1); exit 1; }; }
11075 fi
11076 if test -z "${HAVE_SYSCALL_DIR_TRUE}" && test -z "${HAVE_SYSCALL_DIR_FALSE}"; then
11077   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYSCALL_DIR\" was never defined.
11078 Usually this means the macro was only invoked conditionally." >&5
11079 echo "$as_me: error: conditional \"HAVE_SYSCALL_DIR\" was never defined.
11080 Usually this means the macro was only invoked conditionally." >&2;}
11081    { (exit 1); exit 1; }; }
11082 fi
11083 if test -z "${HAVE_UNIX_DIR_TRUE}" && test -z "${HAVE_UNIX_DIR_FALSE}"; then
11084   { { echo "$as_me:$LINENO: error: conditional \"HAVE_UNIX_DIR\" was never defined.
11085 Usually this means the macro was only invoked conditionally." >&5
11086 echo "$as_me: error: conditional \"HAVE_UNIX_DIR\" was never defined.
11087 Usually this means the macro was only invoked conditionally." >&2;}
11088    { (exit 1); exit 1; }; }
11089 fi
11090 if test -z "${ENABLE_NEWLIB_ICONV_TRUE}" && test -z "${ENABLE_NEWLIB_ICONV_FALSE}"; then
11091   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NEWLIB_ICONV\" was never defined.
11092 Usually this means the macro was only invoked conditionally." >&5
11093 echo "$as_me: error: conditional \"ENABLE_NEWLIB_ICONV\" was never defined.
11094 Usually this means the macro was only invoked conditionally." >&2;}
11095    { (exit 1); exit 1; }; }
11096 fi
11097
11098 : ${CONFIG_STATUS=./config.status}
11099 ac_clean_files_save=$ac_clean_files
11100 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11101 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11102 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11103 cat >$CONFIG_STATUS <<_ACEOF
11104 #! $SHELL
11105 # Generated by $as_me.
11106 # Run this file to recreate the current configuration.
11107 # Compiler output produced by configure, useful for debugging
11108 # configure, is in config.log if it exists.
11109
11110 debug=false
11111 ac_cs_recheck=false
11112 ac_cs_silent=false
11113 SHELL=\${CONFIG_SHELL-$SHELL}
11114 _ACEOF
11115
11116 cat >>$CONFIG_STATUS <<\_ACEOF
11117 ## --------------------- ##
11118 ## M4sh Initialization.  ##
11119 ## --------------------- ##
11120
11121 # Be Bourne compatible
11122 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11123   emulate sh
11124   NULLCMD=:
11125   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11126   # is contrary to our usage.  Disable this feature.
11127   alias -g '${1+"$@"}'='"$@"'
11128 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11129   set -o posix
11130 fi
11131 DUALCASE=1; export DUALCASE # for MKS sh
11132
11133 # Support unset when possible.
11134 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11135   as_unset=unset
11136 else
11137   as_unset=false
11138 fi
11139
11140
11141 # Work around bugs in pre-3.0 UWIN ksh.
11142 $as_unset ENV MAIL MAILPATH
11143 PS1='$ '
11144 PS2='> '
11145 PS4='+ '
11146
11147 # NLS nuisances.
11148 for as_var in \
11149   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11150   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11151   LC_TELEPHONE LC_TIME
11152 do
11153   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11154     eval $as_var=C; export $as_var
11155   else
11156     $as_unset $as_var
11157   fi
11158 done
11159
11160 # Required to use basename.
11161 if expr a : '\(a\)' >/dev/null 2>&1; then
11162   as_expr=expr
11163 else
11164   as_expr=false
11165 fi
11166
11167 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11168   as_basename=basename
11169 else
11170   as_basename=false
11171 fi
11172
11173
11174 # Name of the executable.
11175 as_me=`$as_basename "$0" ||
11176 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11177          X"$0" : 'X\(//\)$' \| \
11178          X"$0" : 'X\(/\)$' \| \
11179          .     : '\(.\)' 2>/dev/null ||
11180 echo X/"$0" |
11181     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11182           /^X\/\(\/\/\)$/{ s//\1/; q; }
11183           /^X\/\(\/\).*/{ s//\1/; q; }
11184           s/.*/./; q'`
11185
11186
11187 # PATH needs CR, and LINENO needs CR and PATH.
11188 # Avoid depending upon Character Ranges.
11189 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11190 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11191 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11192 as_cr_digits='0123456789'
11193 as_cr_alnum=$as_cr_Letters$as_cr_digits
11194
11195 # The user is always right.
11196 if test "${PATH_SEPARATOR+set}" != set; then
11197   echo "#! /bin/sh" >conf$$.sh
11198   echo  "exit 0"   >>conf$$.sh
11199   chmod +x conf$$.sh
11200   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11201     PATH_SEPARATOR=';'
11202   else
11203     PATH_SEPARATOR=:
11204   fi
11205   rm -f conf$$.sh
11206 fi
11207
11208
11209   as_lineno_1=$LINENO
11210   as_lineno_2=$LINENO
11211   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11212   test "x$as_lineno_1" != "x$as_lineno_2" &&
11213   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11214   # Find who we are.  Look in the path if we contain no path at all
11215   # relative or not.
11216   case $0 in
11217     *[\\/]* ) as_myself=$0 ;;
11218     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219 for as_dir in $PATH
11220 do
11221   IFS=$as_save_IFS
11222   test -z "$as_dir" && as_dir=.
11223   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11224 done
11225
11226        ;;
11227   esac
11228   # We did not find ourselves, most probably we were run as `sh COMMAND'
11229   # in which case we are not to be found in the path.
11230   if test "x$as_myself" = x; then
11231     as_myself=$0
11232   fi
11233   if test ! -f "$as_myself"; then
11234     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11235 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11236    { (exit 1); exit 1; }; }
11237   fi
11238   case $CONFIG_SHELL in
11239   '')
11240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11242 do
11243   IFS=$as_save_IFS
11244   test -z "$as_dir" && as_dir=.
11245   for as_base in sh bash ksh sh5; do
11246          case $as_dir in
11247          /*)
11248            if ("$as_dir/$as_base" -c '
11249   as_lineno_1=$LINENO
11250   as_lineno_2=$LINENO
11251   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11252   test "x$as_lineno_1" != "x$as_lineno_2" &&
11253   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11254              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11255              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11256              CONFIG_SHELL=$as_dir/$as_base
11257              export CONFIG_SHELL
11258              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11259            fi;;
11260          esac
11261        done
11262 done
11263 ;;
11264   esac
11265
11266   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11267   # uniformly replaced by the line number.  The first 'sed' inserts a
11268   # line-number line before each line; the second 'sed' does the real
11269   # work.  The second script uses 'N' to pair each line-number line
11270   # with the numbered line, and appends trailing '-' during
11271   # substitution so that $LINENO is not a special case at line end.
11272   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11273   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11274   sed '=' <$as_myself |
11275     sed '
11276       N
11277       s,$,-,
11278       : loop
11279       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11280       t loop
11281       s,-$,,
11282       s,^['$as_cr_digits']*\n,,
11283     ' >$as_me.lineno &&
11284   chmod +x $as_me.lineno ||
11285     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11286 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11287    { (exit 1); exit 1; }; }
11288
11289   # Don't try to exec as it changes $[0], causing all sort of problems
11290   # (the dirname of $[0] is not the place where we might find the
11291   # original and so on.  Autoconf is especially sensible to this).
11292   . ./$as_me.lineno
11293   # Exit status is that of the last command.
11294   exit
11295 }
11296
11297
11298 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11299   *c*,-n*) ECHO_N= ECHO_C='
11300 ' ECHO_T='      ' ;;
11301   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11302   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11303 esac
11304
11305 if expr a : '\(a\)' >/dev/null 2>&1; then
11306   as_expr=expr
11307 else
11308   as_expr=false
11309 fi
11310
11311 rm -f conf$$ conf$$.exe conf$$.file
11312 echo >conf$$.file
11313 if ln -s conf$$.file conf$$ 2>/dev/null; then
11314   # We could just check for DJGPP; but this test a) works b) is more generic
11315   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11316   if test -f conf$$.exe; then
11317     # Don't use ln at all; we don't have any links
11318     as_ln_s='cp -p'
11319   else
11320     as_ln_s='ln -s'
11321   fi
11322 elif ln conf$$.file conf$$ 2>/dev/null; then
11323   as_ln_s=ln
11324 else
11325   as_ln_s='cp -p'
11326 fi
11327 rm -f conf$$ conf$$.exe conf$$.file
11328
11329 if mkdir -p . 2>/dev/null; then
11330   as_mkdir_p=:
11331 else
11332   test -d ./-p && rmdir ./-p
11333   as_mkdir_p=false
11334 fi
11335
11336 as_executable_p="test -f"
11337
11338 # Sed expression to map a string onto a valid CPP name.
11339 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11340
11341 # Sed expression to map a string onto a valid variable name.
11342 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11343
11344
11345 # IFS
11346 # We need space, tab and new line, in precisely that order.
11347 as_nl='
11348 '
11349 IFS="   $as_nl"
11350
11351 # CDPATH.
11352 $as_unset CDPATH
11353
11354 exec 6>&1
11355
11356 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11357 # report actual input values of CONFIG_FILES etc. instead of their
11358 # values after options handling.  Logging --version etc. is OK.
11359 exec 5>>config.log
11360 {
11361   echo
11362   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11363 ## Running $as_me. ##
11364 _ASBOX
11365 } >&5
11366 cat >&5 <<_CSEOF
11367
11368 This file was extended by newlib $as_me 1.15.0, which was
11369 generated by GNU Autoconf 2.59.  Invocation command line was
11370
11371   CONFIG_FILES    = $CONFIG_FILES
11372   CONFIG_HEADERS  = $CONFIG_HEADERS
11373   CONFIG_LINKS    = $CONFIG_LINKS
11374   CONFIG_COMMANDS = $CONFIG_COMMANDS
11375   $ $0 $@
11376
11377 _CSEOF
11378 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11379 echo >&5
11380 _ACEOF
11381
11382 # Files that config.status was made for.
11383 if test -n "$ac_config_files"; then
11384   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11385 fi
11386
11387 if test -n "$ac_config_headers"; then
11388   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11389 fi
11390
11391 if test -n "$ac_config_links"; then
11392   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11393 fi
11394
11395 if test -n "$ac_config_commands"; then
11396   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11397 fi
11398
11399 cat >>$CONFIG_STATUS <<\_ACEOF
11400
11401 ac_cs_usage="\
11402 \`$as_me' instantiates files from templates according to the
11403 current configuration.
11404
11405 Usage: $0 [OPTIONS] [FILE]...
11406
11407   -h, --help       print this help, then exit
11408   -V, --version    print version number, then exit
11409   -q, --quiet      do not print progress messages
11410   -d, --debug      don't remove temporary files
11411       --recheck    update $as_me by reconfiguring in the same conditions
11412   --file=FILE[:TEMPLATE]
11413                    instantiate the configuration file FILE
11414
11415 Configuration files:
11416 $config_files
11417
11418 Configuration commands:
11419 $config_commands
11420
11421 Report bugs to <bug-autoconf@gnu.org>."
11422 _ACEOF
11423
11424 cat >>$CONFIG_STATUS <<_ACEOF
11425 ac_cs_version="\\
11426 newlib config.status 1.15.0
11427 configured by $0, generated by GNU Autoconf 2.59,
11428   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11429
11430 Copyright (C) 2003 Free Software Foundation, Inc.
11431 This config.status script is free software; the Free Software Foundation
11432 gives unlimited permission to copy, distribute and modify it."
11433 srcdir=$srcdir
11434 INSTALL="$INSTALL"
11435 _ACEOF
11436
11437 cat >>$CONFIG_STATUS <<\_ACEOF
11438 # If no file are specified by the user, then we need to provide default
11439 # value.  By we need to know if files were specified by the user.
11440 ac_need_defaults=:
11441 while test $# != 0
11442 do
11443   case $1 in
11444   --*=*)
11445     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11446     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11447     ac_shift=:
11448     ;;
11449   -*)
11450     ac_option=$1
11451     ac_optarg=$2
11452     ac_shift=shift
11453     ;;
11454   *) # This is not an option, so the user has probably given explicit
11455      # arguments.
11456      ac_option=$1
11457      ac_need_defaults=false;;
11458   esac
11459
11460   case $ac_option in
11461   # Handling of the options.
11462 _ACEOF
11463 cat >>$CONFIG_STATUS <<\_ACEOF
11464   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11465     ac_cs_recheck=: ;;
11466   --version | --vers* | -V )
11467     echo "$ac_cs_version"; exit 0 ;;
11468   --he | --h)
11469     # Conflict between --help and --header
11470     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11471 Try \`$0 --help' for more information." >&5
11472 echo "$as_me: error: ambiguous option: $1
11473 Try \`$0 --help' for more information." >&2;}
11474    { (exit 1); exit 1; }; };;
11475   --help | --hel | -h )
11476     echo "$ac_cs_usage"; exit 0 ;;
11477   --debug | --d* | -d )
11478     debug=: ;;
11479   --file | --fil | --fi | --f )
11480     $ac_shift
11481     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11482     ac_need_defaults=false;;
11483   --header | --heade | --head | --hea )
11484     $ac_shift
11485     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11486     ac_need_defaults=false;;
11487   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11488   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11489     ac_cs_silent=: ;;
11490
11491   # This is an error.
11492   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11493 Try \`$0 --help' for more information." >&5
11494 echo "$as_me: error: unrecognized option: $1
11495 Try \`$0 --help' for more information." >&2;}
11496    { (exit 1); exit 1; }; } ;;
11497
11498   *) ac_config_targets="$ac_config_targets $1" ;;
11499
11500   esac
11501   shift
11502 done
11503
11504 ac_configure_extra_args=
11505
11506 if $ac_cs_silent; then
11507   exec 6>/dev/null
11508   ac_configure_extra_args="$ac_configure_extra_args --silent"
11509 fi
11510
11511 _ACEOF
11512 cat >>$CONFIG_STATUS <<_ACEOF
11513 if \$ac_cs_recheck; then
11514   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11515   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11516 fi
11517
11518 _ACEOF
11519
11520 cat >>$CONFIG_STATUS <<_ACEOF
11521 #
11522 # INIT-COMMANDS section.
11523 #
11524
11525 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11526
11527
11528 # The HP-UX ksh and POSIX shell print the target directory to stdout
11529 # if CDPATH is set.
11530 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11531
11532 sed_quote_subst='$sed_quote_subst'
11533 double_quote_subst='$double_quote_subst'
11534 delay_variable_subst='$delay_variable_subst'
11535 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11536 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11537 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11538 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11539 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11540 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11541 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11542 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11543 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11544 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11545 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11546 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11547 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11548 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11549 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11550 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11551 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11552 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11553 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11554 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11555 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11556 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11557 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11558 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11559 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11560 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11561 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11562 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11563 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11564 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11565 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11566 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11567 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11568 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11569 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11570 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11571 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11572 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11573 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11574 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11575 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11576 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11577 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11578 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11579 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11580 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11581 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"`'
11582 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11583 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11584 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11585 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11586 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11587 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11588 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11589 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11590 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11591 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11592 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11593 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11594 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11595 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11596 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11597 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11598 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11599 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11600 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11601 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11602 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11603 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11604 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11605 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11606 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11607 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11608 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11609 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11610 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11611 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11612 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11613 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11614 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11615 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11616 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11617 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11618 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11619 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11620 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11621 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11622 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11623 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11624 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11625 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11626 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11627 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11628 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11629 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11630 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11631 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11632 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11633 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11634 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11635 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11636 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11637 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11638 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11639 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11640 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11641 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11642 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11643 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11644 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11645 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11646 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11647 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11648 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11649
11650 LTCC='$LTCC'
11651 LTCFLAGS='$LTCFLAGS'
11652 compiler='$compiler_DEFAULT'
11653
11654 # Quote evaled strings.
11655 for var in SED \
11656 GREP \
11657 EGREP \
11658 FGREP \
11659 LD \
11660 NM \
11661 LN_S \
11662 lt_SP2NL \
11663 lt_NL2SP \
11664 reload_flag \
11665 deplibs_check_method \
11666 file_magic_cmd \
11667 AR \
11668 AR_FLAGS \
11669 STRIP \
11670 RANLIB \
11671 CC \
11672 CFLAGS \
11673 compiler \
11674 lt_cv_sys_global_symbol_pipe \
11675 lt_cv_sys_global_symbol_to_cdecl \
11676 lt_cv_sys_global_symbol_to_c_name_address \
11677 SHELL \
11678 ECHO \
11679 lt_prog_compiler_no_builtin_flag \
11680 lt_prog_compiler_wl \
11681 lt_prog_compiler_pic \
11682 lt_prog_compiler_static \
11683 lt_cv_prog_compiler_c_o \
11684 need_locks \
11685 shrext_cmds \
11686 export_dynamic_flag_spec \
11687 whole_archive_flag_spec \
11688 compiler_needs_object \
11689 with_gnu_ld \
11690 allow_undefined_flag \
11691 no_undefined_flag \
11692 hardcode_libdir_flag_spec \
11693 hardcode_libdir_flag_spec_ld \
11694 hardcode_libdir_separator \
11695 fix_srcfile_path \
11696 exclude_expsyms \
11697 include_expsyms \
11698 file_list_spec \
11699 variables_saved_for_relink \
11700 libname_spec \
11701 library_names_spec \
11702 soname_spec \
11703 finish_eval \
11704 old_striplib \
11705 striplib; do
11706     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11707     *[\\\\\\\`\\"\\\$]*)
11708       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11709       ;;
11710     *)
11711       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11712       ;;
11713     esac
11714 done
11715
11716 # Double-quote double-evaled strings.
11717 for var in reload_cmds \
11718 old_postinstall_cmds \
11719 old_postuninstall_cmds \
11720 old_archive_cmds \
11721 extract_expsyms_cmds \
11722 old_archive_from_new_cmds \
11723 old_archive_from_expsyms_cmds \
11724 archive_cmds \
11725 archive_expsym_cmds \
11726 module_cmds \
11727 module_expsym_cmds \
11728 export_symbols_cmds \
11729 prelink_cmds \
11730 postinstall_cmds \
11731 postuninstall_cmds \
11732 finish_cmds \
11733 sys_lib_search_path_spec \
11734 sys_lib_dlsearch_path_spec; do
11735     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11736     *[\\\\\\\`\\"\\\$]*)
11737       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11738       ;;
11739     *)
11740       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11741       ;;
11742     esac
11743 done
11744
11745 # Fix-up fallback echo if it was mangled by the above quoting rules.
11746 case \$lt_ECHO in
11747 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11748   ;;
11749 esac
11750
11751 ac_aux_dir='$ac_aux_dir'
11752 xsi_shell='$xsi_shell'
11753 lt_shell_append='$lt_shell_append'
11754
11755 # See if we are running on zsh, and set the options which allow our
11756 # commands through without removal of \ escapes INIT.
11757 if test -n "\${ZSH_VERSION+set}" ; then
11758    setopt NO_GLOB_SUBST
11759 fi
11760
11761
11762     PACKAGE='$PACKAGE'
11763     VERSION='$VERSION'
11764     TIMESTAMP='$TIMESTAMP'
11765     RM='$RM'
11766     ofile='$ofile'
11767
11768
11769
11770
11771 _ACEOF
11772
11773
11774
11775 cat >>$CONFIG_STATUS <<\_ACEOF
11776 for ac_config_target in $ac_config_targets
11777 do
11778   case "$ac_config_target" in
11779   # Handling of arguments.
11780   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11781   "argz/Makefile" ) CONFIG_FILES="$CONFIG_FILES argz/Makefile" ;;
11782   "ctype/Makefile" ) CONFIG_FILES="$CONFIG_FILES ctype/Makefile" ;;
11783   "errno/Makefile" ) CONFIG_FILES="$CONFIG_FILES errno/Makefile" ;;
11784   "locale/Makefile" ) CONFIG_FILES="$CONFIG_FILES locale/Makefile" ;;
11785   "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
11786   "reent/Makefile" ) CONFIG_FILES="$CONFIG_FILES reent/Makefile" ;;
11787   "search/Makefile" ) CONFIG_FILES="$CONFIG_FILES search/Makefile" ;;
11788   "stdio/Makefile" ) CONFIG_FILES="$CONFIG_FILES stdio/Makefile" ;;
11789   "stdio64/Makefile" ) CONFIG_FILES="$CONFIG_FILES stdio64/Makefile" ;;
11790   "stdlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES stdlib/Makefile" ;;
11791   "string/Makefile" ) CONFIG_FILES="$CONFIG_FILES string/Makefile" ;;
11792   "time/Makefile" ) CONFIG_FILES="$CONFIG_FILES time/Makefile" ;;
11793   "posix/Makefile" ) CONFIG_FILES="$CONFIG_FILES posix/Makefile" ;;
11794   "signal/Makefile" ) CONFIG_FILES="$CONFIG_FILES signal/Makefile" ;;
11795   "syscalls/Makefile" ) CONFIG_FILES="$CONFIG_FILES syscalls/Makefile" ;;
11796   "unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES unix/Makefile" ;;
11797   "iconv/Makefile" ) CONFIG_FILES="$CONFIG_FILES iconv/Makefile" ;;
11798   "iconv/ces/Makefile" ) CONFIG_FILES="$CONFIG_FILES iconv/ces/Makefile" ;;
11799   "iconv/ccs/Makefile" ) CONFIG_FILES="$CONFIG_FILES iconv/ccs/Makefile" ;;
11800   "iconv/ccs/binary/Makefile" ) CONFIG_FILES="$CONFIG_FILES iconv/ccs/binary/Makefile" ;;
11801   "iconv/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES iconv/lib/Makefile" ;;
11802   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11803   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11804   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11805 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11806    { (exit 1); exit 1; }; };;
11807   esac
11808 done
11809
11810 # If the user did not use the arguments to specify the items to instantiate,
11811 # then the envvar interface is used.  Set only those that are not.
11812 # We use the long form for the default assignment because of an extremely
11813 # bizarre bug on SunOS 4.1.3.
11814 if $ac_need_defaults; then
11815   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11816   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11817 fi
11818
11819 # Have a temporary directory for convenience.  Make it in the build tree
11820 # simply because there is no reason to put it here, and in addition,
11821 # creating and moving files from /tmp can sometimes cause problems.
11822 # Create a temporary directory, and hook for its removal unless debugging.
11823 $debug ||
11824 {
11825   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11826   trap '{ (exit 1); exit 1; }' 1 2 13 15
11827 }
11828
11829 # Create a (secure) tmp directory for tmp files.
11830
11831 {
11832   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11833   test -n "$tmp" && test -d "$tmp"
11834 }  ||
11835 {
11836   tmp=./confstat$$-$RANDOM
11837   (umask 077 && mkdir $tmp)
11838 } ||
11839 {
11840    echo "$me: cannot create a temporary directory in ." >&2
11841    { (exit 1); exit 1; }
11842 }
11843
11844 _ACEOF
11845
11846 cat >>$CONFIG_STATUS <<_ACEOF
11847
11848 #
11849 # CONFIG_FILES section.
11850 #
11851
11852 # No need to generate the scripts if there are no CONFIG_FILES.
11853 # This happens for instance when ./config.status config.h
11854 if test -n "\$CONFIG_FILES"; then
11855   # Protect against being on the right side of a sed subst in config.status.
11856   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11857    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11858 s,@SHELL@,$SHELL,;t t
11859 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11860 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11861 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11862 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11863 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11864 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11865 s,@exec_prefix@,$exec_prefix,;t t
11866 s,@prefix@,$prefix,;t t
11867 s,@program_transform_name@,$program_transform_name,;t t
11868 s,@bindir@,$bindir,;t t
11869 s,@sbindir@,$sbindir,;t t
11870 s,@libexecdir@,$libexecdir,;t t
11871 s,@datadir@,$datadir,;t t
11872 s,@sysconfdir@,$sysconfdir,;t t
11873 s,@sharedstatedir@,$sharedstatedir,;t t
11874 s,@localstatedir@,$localstatedir,;t t
11875 s,@libdir@,$libdir,;t t
11876 s,@includedir@,$includedir,;t t
11877 s,@oldincludedir@,$oldincludedir,;t t
11878 s,@infodir@,$infodir,;t t
11879 s,@mandir@,$mandir,;t t
11880 s,@build_alias@,$build_alias,;t t
11881 s,@host_alias@,$host_alias,;t t
11882 s,@target_alias@,$target_alias,;t t
11883 s,@DEFS@,$DEFS,;t t
11884 s,@ECHO_C@,$ECHO_C,;t t
11885 s,@ECHO_N@,$ECHO_N,;t t
11886 s,@ECHO_T@,$ECHO_T,;t t
11887 s,@LIBS@,$LIBS,;t t
11888 s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
11889 s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
11890 s,@newlib_basedir@,$newlib_basedir,;t t
11891 s,@build@,$build,;t t
11892 s,@build_cpu@,$build_cpu,;t t
11893 s,@build_vendor@,$build_vendor,;t t
11894 s,@build_os@,$build_os,;t t
11895 s,@host@,$host,;t t
11896 s,@host_cpu@,$host_cpu,;t t
11897 s,@host_vendor@,$host_vendor,;t t
11898 s,@host_os@,$host_os,;t t
11899 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11900 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11901 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11902 s,@CYGPATH_W@,$CYGPATH_W,;t t
11903 s,@PACKAGE@,$PACKAGE,;t t
11904 s,@VERSION@,$VERSION,;t t
11905 s,@ACLOCAL@,$ACLOCAL,;t t
11906 s,@AUTOCONF@,$AUTOCONF,;t t
11907 s,@AUTOMAKE@,$AUTOMAKE,;t t
11908 s,@AUTOHEADER@,$AUTOHEADER,;t t
11909 s,@MAKEINFO@,$MAKEINFO,;t t
11910 s,@install_sh@,$install_sh,;t t
11911 s,@STRIP@,$STRIP,;t t
11912 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11913 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11914 s,@mkdir_p@,$mkdir_p,;t t
11915 s,@AWK@,$AWK,;t t
11916 s,@SET_MAKE@,$SET_MAKE,;t t
11917 s,@am__leading_dot@,$am__leading_dot,;t t
11918 s,@AMTAR@,$AMTAR,;t t
11919 s,@am__tar@,$am__tar,;t t
11920 s,@am__untar@,$am__untar,;t t
11921 s,@CC@,$CC,;t t
11922 s,@DEPDIR@,$DEPDIR,;t t
11923 s,@am__include@,$am__include,;t t
11924 s,@am__quote@,$am__quote,;t t
11925 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11926 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11927 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11928 s,@CCDEPMODE@,$CCDEPMODE,;t t
11929 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11930 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11931 s,@AS@,$AS,;t t
11932 s,@ac_ct_AS@,$ac_ct_AS,;t t
11933 s,@AR@,$AR,;t t
11934 s,@ac_ct_AR@,$ac_ct_AR,;t t
11935 s,@RANLIB@,$RANLIB,;t t
11936 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11937 s,@READELF@,$READELF,;t t
11938 s,@ac_ct_READELF@,$ac_ct_READELF,;t t
11939 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11940 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11941 s,@MAINT@,$MAINT,;t t
11942 s,@CCAS@,$CCAS,;t t
11943 s,@CCASFLAGS@,$CCASFLAGS,;t t
11944 s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
11945 s,@LDFLAGS@,$LDFLAGS,;t t
11946 s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
11947 s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
11948 s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
11949 s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
11950 s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
11951 s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
11952 s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
11953 s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
11954 s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
11955 s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
11956 s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
11957 s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
11958 s,@OBJEXT@,$OBJEXT,;t t
11959 s,@oext@,$oext,;t t
11960 s,@aext@,$aext,;t t
11961 s,@lpfx@,$lpfx,;t t
11962 s,@libm_machine_dir@,$libm_machine_dir,;t t
11963 s,@machine_dir@,$machine_dir,;t t
11964 s,@sys_dir@,$sys_dir,;t t
11965 s,@SED@,$SED,;t t
11966 s,@DLLTOOL@,$DLLTOOL,;t t
11967 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
11968 s,@OBJDUMP@,$OBJDUMP,;t t
11969 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
11970 s,@LIBTOOL@,$LIBTOOL,;t t
11971 s,@CFLAGS@,$CFLAGS,;t t
11972 s,@CPPFLAGS@,$CPPFLAGS,;t t
11973 s,@ac_ct_CC@,$ac_ct_CC,;t t
11974 s,@EXEEXT@,$EXEEXT,;t t
11975 s,@EGREP@,$EGREP,;t t
11976 s,@FGREP@,$FGREP,;t t
11977 s,@GREP@,$GREP,;t t
11978 s,@LD@,$LD,;t t
11979 s,@DUMPBIN@,$DUMPBIN,;t t
11980 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11981 s,@NM@,$NM,;t t
11982 s,@LN_S@,$LN_S,;t t
11983 s,@lt_ECHO@,$lt_ECHO,;t t
11984 s,@CPP@,$CPP,;t t
11985 s,@subdirs@,$subdirs,;t t
11986 s,@CRT0@,$CRT0,;t t
11987 s,@LIBC_POSIX_LIB@,$LIBC_POSIX_LIB,;t t
11988 s,@HAVE_POSIX_DIR_TRUE@,$HAVE_POSIX_DIR_TRUE,;t t
11989 s,@HAVE_POSIX_DIR_FALSE@,$HAVE_POSIX_DIR_FALSE,;t t
11990 s,@LIBC_SIGNAL_LIB@,$LIBC_SIGNAL_LIB,;t t
11991 s,@LIBC_SIGNAL_DEF@,$LIBC_SIGNAL_DEF,;t t
11992 s,@HAVE_SIGNAL_DIR_TRUE@,$HAVE_SIGNAL_DIR_TRUE,;t t
11993 s,@HAVE_SIGNAL_DIR_FALSE@,$HAVE_SIGNAL_DIR_FALSE,;t t
11994 s,@LIBC_STDIO_LIB@,$LIBC_STDIO_LIB,;t t
11995 s,@LIBC_STDIO_DEF@,$LIBC_STDIO_DEF,;t t
11996 s,@HAVE_STDIO_DIR_TRUE@,$HAVE_STDIO_DIR_TRUE,;t t
11997 s,@HAVE_STDIO_DIR_FALSE@,$HAVE_STDIO_DIR_FALSE,;t t
11998 s,@LIBC_STDIO64_LIB@,$LIBC_STDIO64_LIB,;t t
11999 s,@LIBC_STDIO64_DEF@,$LIBC_STDIO64_DEF,;t t
12000 s,@HAVE_STDIO64_DIR_TRUE@,$HAVE_STDIO64_DIR_TRUE,;t t
12001 s,@HAVE_STDIO64_DIR_FALSE@,$HAVE_STDIO64_DIR_FALSE,;t t
12002 s,@LIBC_SYSCALL_LIB@,$LIBC_SYSCALL_LIB,;t t
12003 s,@HAVE_SYSCALL_DIR_TRUE@,$HAVE_SYSCALL_DIR_TRUE,;t t
12004 s,@HAVE_SYSCALL_DIR_FALSE@,$HAVE_SYSCALL_DIR_FALSE,;t t
12005 s,@LIBC_UNIX_LIB@,$LIBC_UNIX_LIB,;t t
12006 s,@HAVE_UNIX_DIR_TRUE@,$HAVE_UNIX_DIR_TRUE,;t t
12007 s,@HAVE_UNIX_DIR_FALSE@,$HAVE_UNIX_DIR_FALSE,;t t
12008 s,@LIBC_EXTRA_LIB@,$LIBC_EXTRA_LIB,;t t
12009 s,@LIBC_EXTRA_DEF@,$LIBC_EXTRA_DEF,;t t
12010 s,@extra_dir@,$extra_dir,;t t
12011 s,@LIBC_SYS_LIB@,$LIBC_SYS_LIB,;t t
12012 s,@ENABLE_NEWLIB_ICONV_TRUE@,$ENABLE_NEWLIB_ICONV_TRUE,;t t
12013 s,@ENABLE_NEWLIB_ICONV_FALSE@,$ENABLE_NEWLIB_ICONV_FALSE,;t t
12014 s,@LIBC_MACHINE_LIB@,$LIBC_MACHINE_LIB,;t t
12015 s,@LIBOBJS@,$LIBOBJS,;t t
12016 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12017 CEOF
12018
12019 _ACEOF
12020
12021   cat >>$CONFIG_STATUS <<\_ACEOF
12022   # Split the substitutions into bite-sized pieces for seds with
12023   # small command number limits, like on Digital OSF/1 and HP-UX.
12024   ac_max_sed_lines=48
12025   ac_sed_frag=1 # Number of current file.
12026   ac_beg=1 # First line for current file.
12027   ac_end=$ac_max_sed_lines # Line after last line for current file.
12028   ac_more_lines=:
12029   ac_sed_cmds=
12030   while $ac_more_lines; do
12031     if test $ac_beg -gt 1; then
12032       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12033     else
12034       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12035     fi
12036     if test ! -s $tmp/subs.frag; then
12037       ac_more_lines=false
12038     else
12039       # The purpose of the label and of the branching condition is to
12040       # speed up the sed processing (if there are no `@' at all, there
12041       # is no need to browse any of the substitutions).
12042       # These are the two extra sed commands mentioned above.
12043       (echo ':t
12044   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12045       if test -z "$ac_sed_cmds"; then
12046         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12047       else
12048         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12049       fi
12050       ac_sed_frag=`expr $ac_sed_frag + 1`
12051       ac_beg=$ac_end
12052       ac_end=`expr $ac_end + $ac_max_sed_lines`
12053     fi
12054   done
12055   if test -z "$ac_sed_cmds"; then
12056     ac_sed_cmds=cat
12057   fi
12058 fi # test -n "$CONFIG_FILES"
12059
12060 _ACEOF
12061 cat >>$CONFIG_STATUS <<\_ACEOF
12062 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12063   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12064   case $ac_file in
12065   - | *:- | *:-:* ) # input from stdin
12066         cat >$tmp/stdin
12067         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12068         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12069   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12070         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12071   * )   ac_file_in=$ac_file.in ;;
12072   esac
12073
12074   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12075   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12076 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12077          X"$ac_file" : 'X\(//\)[^/]' \| \
12078          X"$ac_file" : 'X\(//\)$' \| \
12079          X"$ac_file" : 'X\(/\)' \| \
12080          .     : '\(.\)' 2>/dev/null ||
12081 echo X"$ac_file" |
12082     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12083           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12084           /^X\(\/\/\)$/{ s//\1/; q; }
12085           /^X\(\/\).*/{ s//\1/; q; }
12086           s/.*/./; q'`
12087   { if $as_mkdir_p; then
12088     mkdir -p "$ac_dir"
12089   else
12090     as_dir="$ac_dir"
12091     as_dirs=
12092     while test ! -d "$as_dir"; do
12093       as_dirs="$as_dir $as_dirs"
12094       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12096          X"$as_dir" : 'X\(//\)[^/]' \| \
12097          X"$as_dir" : 'X\(//\)$' \| \
12098          X"$as_dir" : 'X\(/\)' \| \
12099          .     : '\(.\)' 2>/dev/null ||
12100 echo X"$as_dir" |
12101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12102           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12103           /^X\(\/\/\)$/{ s//\1/; q; }
12104           /^X\(\/\).*/{ s//\1/; q; }
12105           s/.*/./; q'`
12106     done
12107     test ! -n "$as_dirs" || mkdir $as_dirs
12108   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12109 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12110    { (exit 1); exit 1; }; }; }
12111
12112   ac_builddir=.
12113
12114 if test "$ac_dir" != .; then
12115   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12116   # A "../" for each directory in $ac_dir_suffix.
12117   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12118 else
12119   ac_dir_suffix= ac_top_builddir=
12120 fi
12121
12122 case $srcdir in
12123   .)  # No --srcdir option.  We are building in place.
12124     ac_srcdir=.
12125     if test -z "$ac_top_builddir"; then
12126        ac_top_srcdir=.
12127     else
12128        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12129     fi ;;
12130   [\\/]* | ?:[\\/]* )  # Absolute path.
12131     ac_srcdir=$srcdir$ac_dir_suffix;
12132     ac_top_srcdir=$srcdir ;;
12133   *) # Relative path.
12134     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12135     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12136 esac
12137
12138 # Do not use `cd foo && pwd` to compute absolute paths, because
12139 # the directories may not exist.
12140 case `pwd` in
12141 .) ac_abs_builddir="$ac_dir";;
12142 *)
12143   case "$ac_dir" in
12144   .) ac_abs_builddir=`pwd`;;
12145   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12146   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12147   esac;;
12148 esac
12149 case $ac_abs_builddir in
12150 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12151 *)
12152   case ${ac_top_builddir}. in
12153   .) ac_abs_top_builddir=$ac_abs_builddir;;
12154   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12155   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12156   esac;;
12157 esac
12158 case $ac_abs_builddir in
12159 .) ac_abs_srcdir=$ac_srcdir;;
12160 *)
12161   case $ac_srcdir in
12162   .) ac_abs_srcdir=$ac_abs_builddir;;
12163   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12164   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12165   esac;;
12166 esac
12167 case $ac_abs_builddir in
12168 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12169 *)
12170   case $ac_top_srcdir in
12171   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12172   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12173   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12174   esac;;
12175 esac
12176
12177
12178   case $INSTALL in
12179   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12180   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12181   esac
12182
12183   if test x"$ac_file" != x-; then
12184     { echo "$as_me:$LINENO: creating $ac_file" >&5
12185 echo "$as_me: creating $ac_file" >&6;}
12186     rm -f "$ac_file"
12187   fi
12188   # Let's still pretend it is `configure' which instantiates (i.e., don't
12189   # use $as_me), people would be surprised to read:
12190   #    /* config.h.  Generated by config.status.  */
12191   if test x"$ac_file" = x-; then
12192     configure_input=
12193   else
12194     configure_input="$ac_file.  "
12195   fi
12196   configure_input=$configure_input"Generated from `echo $ac_file_in |
12197                                      sed 's,.*/,,'` by configure."
12198
12199   # First look for the input files in the build tree, otherwise in the
12200   # src tree.
12201   ac_file_inputs=`IFS=:
12202     for f in $ac_file_in; do
12203       case $f in
12204       -) echo $tmp/stdin ;;
12205       [\\/$]*)
12206          # Absolute (can't be DOS-style, as IFS=:)
12207          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12208 echo "$as_me: error: cannot find input file: $f" >&2;}
12209    { (exit 1); exit 1; }; }
12210          echo "$f";;
12211       *) # Relative
12212          if test -f "$f"; then
12213            # Build tree
12214            echo "$f"
12215          elif test -f "$srcdir/$f"; then
12216            # Source tree
12217            echo "$srcdir/$f"
12218          else
12219            # /dev/null tree
12220            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12221 echo "$as_me: error: cannot find input file: $f" >&2;}
12222    { (exit 1); exit 1; }; }
12223          fi;;
12224       esac
12225     done` || { (exit 1); exit 1; }
12226 _ACEOF
12227 cat >>$CONFIG_STATUS <<_ACEOF
12228   sed "$ac_vpsub
12229 $extrasub
12230 _ACEOF
12231 cat >>$CONFIG_STATUS <<\_ACEOF
12232 :t
12233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12234 s,@configure_input@,$configure_input,;t t
12235 s,@srcdir@,$ac_srcdir,;t t
12236 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12237 s,@top_srcdir@,$ac_top_srcdir,;t t
12238 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12239 s,@builddir@,$ac_builddir,;t t
12240 s,@abs_builddir@,$ac_abs_builddir,;t t
12241 s,@top_builddir@,$ac_top_builddir,;t t
12242 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12243 s,@INSTALL@,$ac_INSTALL,;t t
12244 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12245   rm -f $tmp/stdin
12246   if test x"$ac_file" != x-; then
12247     mv $tmp/out $ac_file
12248   else
12249     cat $tmp/out
12250     rm -f $tmp/out
12251   fi
12252
12253 done
12254 _ACEOF
12255 cat >>$CONFIG_STATUS <<\_ACEOF
12256
12257 #
12258 # CONFIG_COMMANDS section.
12259 #
12260 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12261   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12262   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12263   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12264 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12265          X"$ac_dest" : 'X\(//\)[^/]' \| \
12266          X"$ac_dest" : 'X\(//\)$' \| \
12267          X"$ac_dest" : 'X\(/\)' \| \
12268          .     : '\(.\)' 2>/dev/null ||
12269 echo X"$ac_dest" |
12270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12271           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12272           /^X\(\/\/\)$/{ s//\1/; q; }
12273           /^X\(\/\).*/{ s//\1/; q; }
12274           s/.*/./; q'`
12275   { if $as_mkdir_p; then
12276     mkdir -p "$ac_dir"
12277   else
12278     as_dir="$ac_dir"
12279     as_dirs=
12280     while test ! -d "$as_dir"; do
12281       as_dirs="$as_dir $as_dirs"
12282       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12284          X"$as_dir" : 'X\(//\)[^/]' \| \
12285          X"$as_dir" : 'X\(//\)$' \| \
12286          X"$as_dir" : 'X\(/\)' \| \
12287          .     : '\(.\)' 2>/dev/null ||
12288 echo X"$as_dir" |
12289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12290           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12291           /^X\(\/\/\)$/{ s//\1/; q; }
12292           /^X\(\/\).*/{ s//\1/; q; }
12293           s/.*/./; q'`
12294     done
12295     test ! -n "$as_dirs" || mkdir $as_dirs
12296   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12297 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12298    { (exit 1); exit 1; }; }; }
12299
12300   ac_builddir=.
12301
12302 if test "$ac_dir" != .; then
12303   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12304   # A "../" for each directory in $ac_dir_suffix.
12305   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12306 else
12307   ac_dir_suffix= ac_top_builddir=
12308 fi
12309
12310 case $srcdir in
12311   .)  # No --srcdir option.  We are building in place.
12312     ac_srcdir=.
12313     if test -z "$ac_top_builddir"; then
12314        ac_top_srcdir=.
12315     else
12316        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12317     fi ;;
12318   [\\/]* | ?:[\\/]* )  # Absolute path.
12319     ac_srcdir=$srcdir$ac_dir_suffix;
12320     ac_top_srcdir=$srcdir ;;
12321   *) # Relative path.
12322     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12323     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12324 esac
12325
12326 # Do not use `cd foo && pwd` to compute absolute paths, because
12327 # the directories may not exist.
12328 case `pwd` in
12329 .) ac_abs_builddir="$ac_dir";;
12330 *)
12331   case "$ac_dir" in
12332   .) ac_abs_builddir=`pwd`;;
12333   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12334   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12335   esac;;
12336 esac
12337 case $ac_abs_builddir in
12338 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12339 *)
12340   case ${ac_top_builddir}. in
12341   .) ac_abs_top_builddir=$ac_abs_builddir;;
12342   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12343   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12344   esac;;
12345 esac
12346 case $ac_abs_builddir in
12347 .) ac_abs_srcdir=$ac_srcdir;;
12348 *)
12349   case $ac_srcdir in
12350   .) ac_abs_srcdir=$ac_abs_builddir;;
12351   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12352   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12353   esac;;
12354 esac
12355 case $ac_abs_builddir in
12356 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12357 *)
12358   case $ac_top_srcdir in
12359   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12360   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12361   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12362   esac;;
12363 esac
12364
12365
12366   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12367 echo "$as_me: executing $ac_dest commands" >&6;}
12368   case $ac_dest in
12369     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12370   # Strip MF so we end up with the name of the file.
12371   mf=`echo "$mf" | sed -e 's/:.*$//'`
12372   # Check whether this is an Automake generated Makefile or not.
12373   # We used to match only the files named `Makefile.in', but
12374   # some people rename them; so instead we look at the file content.
12375   # Grep'ing the first line is not enough: some people post-process
12376   # each Makefile.in and add a new line on top of each file to say so.
12377   # So let's grep whole file.
12378   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12379     dirpart=`(dirname "$mf") 2>/dev/null ||
12380 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12381          X"$mf" : 'X\(//\)[^/]' \| \
12382          X"$mf" : 'X\(//\)$' \| \
12383          X"$mf" : 'X\(/\)' \| \
12384          .     : '\(.\)' 2>/dev/null ||
12385 echo X"$mf" |
12386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12387           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12388           /^X\(\/\/\)$/{ s//\1/; q; }
12389           /^X\(\/\).*/{ s//\1/; q; }
12390           s/.*/./; q'`
12391   else
12392     continue
12393   fi
12394   # Extract the definition of DEPDIR, am__include, and am__quote
12395   # from the Makefile without running `make'.
12396   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12397   test -z "$DEPDIR" && continue
12398   am__include=`sed -n 's/^am__include = //p' < "$mf"`
12399   test -z "am__include" && continue
12400   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12401   # When using ansi2knr, U may be empty or an underscore; expand it
12402   U=`sed -n 's/^U = //p' < "$mf"`
12403   # Find all dependency output files, they are included files with
12404   # $(DEPDIR) in their names.  We invoke sed twice because it is the
12405   # simplest approach to changing $(DEPDIR) to its actual value in the
12406   # expansion.
12407   for file in `sed -n "
12408     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12409        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12410     # Make sure the directory exists.
12411     test -f "$dirpart/$file" && continue
12412     fdir=`(dirname "$file") 2>/dev/null ||
12413 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12414          X"$file" : 'X\(//\)[^/]' \| \
12415          X"$file" : 'X\(//\)$' \| \
12416          X"$file" : 'X\(/\)' \| \
12417          .     : '\(.\)' 2>/dev/null ||
12418 echo X"$file" |
12419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12420           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12421           /^X\(\/\/\)$/{ s//\1/; q; }
12422           /^X\(\/\).*/{ s//\1/; q; }
12423           s/.*/./; q'`
12424     { if $as_mkdir_p; then
12425     mkdir -p $dirpart/$fdir
12426   else
12427     as_dir=$dirpart/$fdir
12428     as_dirs=
12429     while test ! -d "$as_dir"; do
12430       as_dirs="$as_dir $as_dirs"
12431       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12433          X"$as_dir" : 'X\(//\)[^/]' \| \
12434          X"$as_dir" : 'X\(//\)$' \| \
12435          X"$as_dir" : 'X\(/\)' \| \
12436          .     : '\(.\)' 2>/dev/null ||
12437 echo X"$as_dir" |
12438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12439           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12440           /^X\(\/\/\)$/{ s//\1/; q; }
12441           /^X\(\/\).*/{ s//\1/; q; }
12442           s/.*/./; q'`
12443     done
12444     test ! -n "$as_dirs" || mkdir $as_dirs
12445   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12446 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12447    { (exit 1); exit 1; }; }; }
12448
12449     # echo "creating $dirpart/$file"
12450     echo '# dummy' > "$dirpart/$file"
12451   done
12452 done
12453  ;;
12454     libtool )
12455
12456     # See if we are running on zsh, and set the options which allow our
12457     # commands through without removal of \ escapes.
12458     if test -n "${ZSH_VERSION+set}" ; then
12459       setopt NO_GLOB_SUBST
12460     fi
12461
12462     cfgfile="${ofile}T"
12463     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12464     $RM "$cfgfile"
12465
12466     cat <<_LT_EOF >> "$cfgfile"
12467 #! $SHELL
12468
12469 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12470 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12471 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12472 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12473 #
12474 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12475 # 2006, 2007 Free Software Foundation, Inc.
12476 #
12477 # This file is part of GNU Libtool:
12478 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12479 #
12480 # This program is free software; you can redistribute it and/or modify
12481 # it under the terms of the GNU General Public License as published by
12482 # the Free Software Foundation; either version 2 of the License, or
12483 # (at your option) any later version.
12484 #
12485 # This program is distributed in the hope that it will be useful, but
12486 # WITHOUT ANY WARRANTY; without even the implied warranty of
12487 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12488 # General Public License for more details.
12489 #
12490 # You should have received a copy of the GNU General Public License
12491 # along with this program; if not, a copy can be downloaded from
12492 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12493 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12494 # MA 02110-1301, USA.
12495 #
12496 # As a special exception to the GNU General Public License, if you
12497 # distribute this file as part of a program that contains a
12498 # configuration script generated by Autoconf, you may include it under
12499 # the same distribution terms that you use for the rest of that program.
12500
12501
12502 # The names of the tagged configurations supported by this script.
12503 available_tags=""
12504
12505 # ### BEGIN LIBTOOL CONFIG
12506
12507 # A sed program that does not truncate output.
12508 SED=$lt_SED
12509
12510 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12511 Xsed="\$SED -e 1s/^X//"
12512
12513 # Assembler program.
12514 AS=$AS
12515
12516 # DLL creation program.
12517 DLLTOOL=$DLLTOOL
12518
12519 # Object dumper program.
12520 OBJDUMP=$OBJDUMP
12521
12522 # Which release of libtool.m4 was used?
12523 macro_version=$macro_version
12524 macro_revision=$macro_revision
12525
12526 # Whether or not to build shared libraries.
12527 build_libtool_libs=$enable_shared
12528
12529 # Whether or not to build static libraries.
12530 build_old_libs=$enable_static
12531
12532 # What type of objects to build.
12533 pic_mode=$pic_mode
12534
12535 # Whether or not to optimize for fast installation.
12536 fast_install=$enable_fast_install
12537
12538 # The host system.
12539 host_alias=$host_alias
12540 host=$host
12541 host_os=$host_os
12542
12543 # The build system.
12544 build_alias=$build_alias
12545 build=$build
12546 build_os=$build_os
12547
12548 # A grep program that handles long lines.
12549 GREP=$lt_GREP
12550
12551 # An ERE matcher.
12552 EGREP=$lt_EGREP
12553
12554 # A literal string matcher.
12555 FGREP=$lt_FGREP
12556
12557 # A BSD- or MS-compatible name lister.
12558 NM=$lt_NM
12559
12560 # Whether we need soft or hard links.
12561 LN_S=$lt_LN_S
12562
12563 # What is the maximum length of a command?
12564 max_cmd_len=$max_cmd_len
12565
12566 # Object file suffix (normally "o").
12567 objext=$ac_objext
12568
12569 # Executable file suffix (normally "").
12570 exeext=$exeext
12571
12572 # whether the shell understands "unset".
12573 lt_unset=$lt_unset
12574
12575 # turn spaces into newlines.
12576 SP2NL=$lt_lt_SP2NL
12577
12578 # turn newlines into spaces.
12579 NL2SP=$lt_lt_NL2SP
12580
12581 # How to create reloadable object files.
12582 reload_flag=$lt_reload_flag
12583 reload_cmds=$lt_reload_cmds
12584
12585 # Method to check whether dependent libraries are shared objects.
12586 deplibs_check_method=$lt_deplibs_check_method
12587
12588 # Command to use when deplibs_check_method == "file_magic".
12589 file_magic_cmd=$lt_file_magic_cmd
12590
12591 # The archiver.
12592 AR=$lt_AR
12593 AR_FLAGS=$lt_AR_FLAGS
12594
12595 # A symbol stripping program.
12596 STRIP=$lt_STRIP
12597
12598 # Commands used to install an old-style archive.
12599 RANLIB=$lt_RANLIB
12600 old_postinstall_cmds=$lt_old_postinstall_cmds
12601 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12602
12603 # A C compiler.
12604 LTCC=$lt_CC
12605
12606 # LTCC compiler flags.
12607 LTCFLAGS=$lt_CFLAGS
12608
12609 # Take the output of nm and produce a listing of raw symbols and C names.
12610 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12611
12612 # Transform the output of nm in a proper C declaration.
12613 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12614
12615 # Transform the output of nm in a C name address pair.
12616 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12617
12618 # The name of the directory that contains temporary libtool files.
12619 objdir=$objdir
12620
12621 # Shell to use when invoking shell scripts.
12622 SHELL=$lt_SHELL
12623
12624 # An echo program that does not interpret backslashes.
12625 ECHO=$lt_ECHO
12626
12627 # Used to examine libraries when file_magic_cmd begins with "file".
12628 MAGIC_CMD=$MAGIC_CMD
12629
12630 # Must we lock files when doing compilation?
12631 need_locks=$lt_need_locks
12632
12633 # Old archive suffix (normally "a").
12634 libext=$libext
12635
12636 # Shared library suffix (normally ".so").
12637 shrext_cmds=$lt_shrext_cmds
12638
12639 # The commands to extract the exported symbol list from a shared archive.
12640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12641
12642 # Variables whose values should be saved in libtool wrapper scripts and
12643 # restored at link time.
12644 variables_saved_for_relink=$lt_variables_saved_for_relink
12645
12646 # Do we need the "lib" prefix for modules?
12647 need_lib_prefix=$need_lib_prefix
12648
12649 # Do we need a version for libraries?
12650 need_version=$need_version
12651
12652 # Library versioning type.
12653 version_type=$version_type
12654
12655 # Shared library runtime path variable.
12656 runpath_var=$runpath_var
12657
12658 # Shared library path variable.
12659 shlibpath_var=$shlibpath_var
12660
12661 # Is shlibpath searched before the hard-coded library search path?
12662 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12663
12664 # Format of library name prefix.
12665 libname_spec=$lt_libname_spec
12666
12667 # List of archive names.  First name is the real one, the rest are links.
12668 # The last name is the one that the linker finds with -lNAME
12669 library_names_spec=$lt_library_names_spec
12670
12671 # The coded name of the library, if different from the real name.
12672 soname_spec=$lt_soname_spec
12673
12674 # Command to use after installation of a shared archive.
12675 postinstall_cmds=$lt_postinstall_cmds
12676
12677 # Command to use after uninstallation of a shared archive.
12678 postuninstall_cmds=$lt_postuninstall_cmds
12679
12680 # Commands used to finish a libtool library installation in a directory.
12681 finish_cmds=$lt_finish_cmds
12682
12683 # As "finish_cmds", except a single script fragment to be evaled but
12684 # not shown.
12685 finish_eval=$lt_finish_eval
12686
12687 # Whether we should hardcode library paths into libraries.
12688 hardcode_into_libs=$hardcode_into_libs
12689
12690 # Compile-time system search path for libraries.
12691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12692
12693 # Run-time system search path for libraries.
12694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12695
12696 # Whether dlopen is supported.
12697 dlopen_support=$enable_dlopen
12698
12699 # Whether dlopen of programs is supported.
12700 dlopen_self=$enable_dlopen_self
12701
12702 # Whether dlopen of statically linked programs is supported.
12703 dlopen_self_static=$enable_dlopen_self_static
12704
12705 # Commands to strip libraries.
12706 old_striplib=$lt_old_striplib
12707 striplib=$lt_striplib
12708
12709
12710 # The linker used to build libraries.
12711 LD=$lt_LD
12712
12713 # Commands used to build an old-style archive.
12714 old_archive_cmds=$lt_old_archive_cmds
12715
12716 # A language specific compiler.
12717 CC=$lt_compiler
12718
12719 # Is the compiler the GNU compiler?
12720 with_gcc=$GCC
12721
12722 # Compiler flag to turn off builtin functions.
12723 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12724
12725 # How to pass a linker flag through the compiler.
12726 wl=$lt_lt_prog_compiler_wl
12727
12728 # Additional compiler flags for building library objects.
12729 pic_flag=$lt_lt_prog_compiler_pic
12730
12731 # Compiler flag to prevent dynamic linking.
12732 link_static_flag=$lt_lt_prog_compiler_static
12733
12734 # Does compiler simultaneously support -c and -o options?
12735 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12736
12737 # Whether or not to add -lc for building shared libraries.
12738 build_libtool_need_lc=$archive_cmds_need_lc
12739
12740 # Whether or not to disallow shared libs when runtime libs are static.
12741 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12742
12743 # Compiler flag to allow reflexive dlopens.
12744 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12745
12746 # Compiler flag to generate shared objects directly from archives.
12747 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12748
12749 # Whether the compiler copes with passing no objects directly.
12750 compiler_needs_object=$lt_compiler_needs_object
12751
12752 # Create an old-style archive from a shared archive.
12753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12754
12755 # Create a temporary old-style archive to link instead of a shared archive.
12756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12757
12758 # Commands used to build a shared archive.
12759 archive_cmds=$lt_archive_cmds
12760 archive_expsym_cmds=$lt_archive_expsym_cmds
12761
12762 # Commands used to build a loadable module if different from building
12763 # a shared archive.
12764 module_cmds=$lt_module_cmds
12765 module_expsym_cmds=$lt_module_expsym_cmds
12766
12767 # Whether we are building with GNU ld or not.
12768 with_gnu_ld=$lt_with_gnu_ld
12769
12770 # Flag that allows shared libraries with undefined symbols to be built.
12771 allow_undefined_flag=$lt_allow_undefined_flag
12772
12773 # Flag that enforces no undefined symbols.
12774 no_undefined_flag=$lt_no_undefined_flag
12775
12776 # Flag to hardcode \$libdir into a binary during linking.
12777 # This must work even if \$libdir does not exist
12778 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12779
12780 # If ld is used when linking, flag to hardcode \$libdir into a binary
12781 # during linking.  This must work even if \$libdir does not exist.
12782 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12783
12784 # Whether we need a single "-rpath" flag with a separated argument.
12785 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12786
12787 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12788 # DIR into the resulting binary.
12789 hardcode_direct=$hardcode_direct
12790
12791 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12792 # DIR into the resulting binary and the resulting library dependency is
12793 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12794 # library is relocated.
12795 hardcode_direct_absolute=$hardcode_direct_absolute
12796
12797 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12798 # into the resulting binary.
12799 hardcode_minus_L=$hardcode_minus_L
12800
12801 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12802 # into the resulting binary.
12803 hardcode_shlibpath_var=$hardcode_shlibpath_var
12804
12805 # Set to "yes" if building a shared library automatically hardcodes DIR
12806 # into the library and all subsequent libraries and executables linked
12807 # against it.
12808 hardcode_automatic=$hardcode_automatic
12809
12810 # Set to yes if linker adds runtime paths of dependent libraries
12811 # to runtime path list.
12812 inherit_rpath=$inherit_rpath
12813
12814 # Whether libtool must link a program against all its dependency libraries.
12815 link_all_deplibs=$link_all_deplibs
12816
12817 # Fix the shell variable \$srcfile for the compiler.
12818 fix_srcfile_path=$lt_fix_srcfile_path
12819
12820 # Set to "yes" if exported symbols are required.
12821 always_export_symbols=$always_export_symbols
12822
12823 # The commands to list exported symbols.
12824 export_symbols_cmds=$lt_export_symbols_cmds
12825
12826 # Symbols that should not be listed in the preloaded symbols.
12827 exclude_expsyms=$lt_exclude_expsyms
12828
12829 # Symbols that must always be exported.
12830 include_expsyms=$lt_include_expsyms
12831
12832 # Commands necessary for linking programs (against libraries) with templates.
12833 prelink_cmds=$lt_prelink_cmds
12834
12835 # Specify filename containing input files.
12836 file_list_spec=$lt_file_list_spec
12837
12838 # How to hardcode a shared library path into an executable.
12839 hardcode_action=$hardcode_action
12840
12841 # ### END LIBTOOL CONFIG
12842
12843 _LT_EOF
12844
12845   case $host_os in
12846   aix3*)
12847     cat <<\_LT_EOF >> "$cfgfile"
12848 # AIX sometimes has problems with the GCC collect2 program.  For some
12849 # reason, if we set the COLLECT_NAMES environment variable, the problems
12850 # vanish in a puff of smoke.
12851 if test "X${COLLECT_NAMES+set}" != Xset; then
12852   COLLECT_NAMES=
12853   export COLLECT_NAMES
12854 fi
12855 _LT_EOF
12856     ;;
12857   esac
12858
12859
12860 ltmain="$ac_aux_dir/ltmain.sh"
12861
12862
12863   # We use sed instead of cat because bash on DJGPP gets confused if
12864   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12865   # text mode, it properly converts lines to CR/LF.  This bash problem
12866   # is reportedly fixed, but why not run on old versions too?
12867   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12868     || (rm -f "$cfgfile"; exit 1)
12869
12870   case $xsi_shell in
12871   yes)
12872     cat << \_LT_EOF >> "$cfgfile"
12873 # func_dirname file append nondir_replacement
12874 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12875 # otherwise set result to NONDIR_REPLACEMENT.
12876 func_dirname ()
12877 {
12878   case ${1} in
12879     */*) func_dirname_result="${1%/*}${2}" ;;
12880     *  ) func_dirname_result="${3}" ;;
12881   esac
12882 }
12883
12884 # func_basename file
12885 func_basename ()
12886 {
12887   func_basename_result="${1##*/}"
12888 }
12889
12890 # func_stripname prefix suffix name
12891 # strip PREFIX and SUFFIX off of NAME.
12892 # PREFIX and SUFFIX must not contain globbing or regex special
12893 # characters, hashes, percent signs, but SUFFIX may contain a leading
12894 # dot (in which case that matches only a dot).
12895 func_stripname ()
12896 {
12897   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12898   # positional parameters, so assign one to ordinary parameter first.
12899   func_stripname_result=${3}
12900   func_stripname_result=${func_stripname_result#"${1}"}
12901   func_stripname_result=${func_stripname_result%"${2}"}
12902 }
12903
12904 # func_opt_split
12905 func_opt_split ()
12906 {
12907   func_opt_split_opt=${1%%=*}
12908   func_opt_split_arg=${1#*=}
12909 }
12910
12911 # func_lo2o object
12912 func_lo2o ()
12913 {
12914   case ${1} in
12915     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12916     *)    func_lo2o_result=${1} ;;
12917   esac
12918 }
12919 _LT_EOF
12920     ;;
12921   *) # Bourne compatible functions.
12922     cat << \_LT_EOF >> "$cfgfile"
12923 # func_dirname file append nondir_replacement
12924 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12925 # otherwise set result to NONDIR_REPLACEMENT.
12926 func_dirname ()
12927 {
12928   # Extract subdirectory from the argument.
12929   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12930   if test "X$func_dirname_result" = "X${1}"; then
12931     func_dirname_result="${3}"
12932   else
12933     func_dirname_result="$func_dirname_result${2}"
12934   fi
12935 }
12936
12937 # func_basename file
12938 func_basename ()
12939 {
12940   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12941 }
12942
12943 # func_stripname prefix suffix name
12944 # strip PREFIX and SUFFIX off of NAME.
12945 # PREFIX and SUFFIX must not contain globbing or regex special
12946 # characters, hashes, percent signs, but SUFFIX may contain a leading
12947 # dot (in which case that matches only a dot).
12948 # func_strip_suffix prefix name
12949 func_stripname ()
12950 {
12951   case ${2} in
12952     .*) func_stripname_result=`$ECHO "X${3}" \
12953            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12954     *)  func_stripname_result=`$ECHO "X${3}" \
12955            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12956   esac
12957 }
12958
12959 # sed scripts:
12960 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12961 my_sed_long_arg='1s/^-[^=]*=//'
12962
12963 # func_opt_split
12964 func_opt_split ()
12965 {
12966   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12967   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12968 }
12969
12970 # func_lo2o object
12971 func_lo2o ()
12972 {
12973   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12974 }
12975 _LT_EOF
12976 esac
12977
12978 case $lt_shell_append in
12979   yes)
12980     cat << \_LT_EOF >> "$cfgfile"
12981
12982 # func_append var value
12983 # Append VALUE to the end of shell variable VAR.
12984 func_append ()
12985 {
12986   eval "$1+=\$2"
12987 }
12988 _LT_EOF
12989     ;;
12990   *)
12991     cat << \_LT_EOF >> "$cfgfile"
12992
12993 # func_append var value
12994 # Append VALUE to the end of shell variable VAR.
12995 func_append ()
12996 {
12997   eval "$1=\$$1\$2"
12998 }
12999 _LT_EOF
13000     ;;
13001   esac
13002
13003
13004   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13005     || (rm -f "$cfgfile"; exit 1)
13006
13007   mv -f "$cfgfile" "$ofile" ||
13008     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13009   chmod +x "$ofile"
13010
13011  ;;
13012   esac
13013 done
13014 _ACEOF
13015
13016 cat >>$CONFIG_STATUS <<\_ACEOF
13017
13018 { (exit 0); exit 0; }
13019 _ACEOF
13020 chmod +x $CONFIG_STATUS
13021 ac_clean_files=$ac_clean_files_save
13022
13023
13024 # configure is writing to config.log, and then calls config.status.
13025 # config.status does its own redirection, appending to config.log.
13026 # Unfortunately, on DOS this fails, as config.log is still kept open
13027 # by configure, so config.status won't be able to write to it; its
13028 # output is simply discarded.  So we exec the FD to /dev/null,
13029 # effectively closing config.log, so it can be properly (re)opened and
13030 # appended to by config.status.  When coming back to configure, we
13031 # need to make the FD available again.
13032 if test "$no_create" != yes; then
13033   ac_cs_success=:
13034   ac_config_status_args=
13035   test "$silent" = yes &&
13036     ac_config_status_args="$ac_config_status_args --quiet"
13037   exec 5>/dev/null
13038   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13039   exec 5>>config.log
13040   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13041   # would make configure fail if this is the last instruction.
13042   $ac_cs_success || { (exit 1); exit 1; }
13043 fi
13044
13045 #
13046 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
13047 #
13048 if test "$no_recursion" != yes; then
13049
13050   # Remove --cache-file and --srcdir arguments so they do not pile up.
13051   ac_sub_configure_args=
13052   ac_prev=
13053   eval "set x $ac_configure_args"
13054   shift
13055   for ac_arg
13056   do
13057     if test -n "$ac_prev"; then
13058       ac_prev=
13059       continue
13060     fi
13061     case $ac_arg in
13062     -cache-file | --cache-file | --cache-fil | --cache-fi \
13063     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13064       ac_prev=cache_file ;;
13065     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13066     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13067     | --c=*)
13068       ;;
13069     --config-cache | -C)
13070       ;;
13071     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13072       ac_prev=srcdir ;;
13073     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13074       ;;
13075     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13076       ac_prev=prefix ;;
13077     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13078       ;;
13079     *)
13080       case $ac_arg in
13081       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13082       esac
13083       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
13084     esac
13085   done
13086
13087   # Always prepend --prefix to ensure using the same prefix
13088   # in subdir configurations.
13089   ac_arg="--prefix=$prefix"
13090   case $ac_arg in
13091   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13092   esac
13093   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
13094
13095   ac_popdir=`pwd`
13096   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13097
13098     # Do not complain, so a configure script can configure whichever
13099     # parts of a large source tree are present.
13100     test -d "$srcdir/$ac_dir" || continue
13101
13102     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
13103 echo "$as_me: configuring in $ac_dir" >&6;}
13104     { if $as_mkdir_p; then
13105     mkdir -p "$ac_dir"
13106   else
13107     as_dir="$ac_dir"
13108     as_dirs=
13109     while test ! -d "$as_dir"; do
13110       as_dirs="$as_dir $as_dirs"
13111       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13113          X"$as_dir" : 'X\(//\)[^/]' \| \
13114          X"$as_dir" : 'X\(//\)$' \| \
13115          X"$as_dir" : 'X\(/\)' \| \
13116          .     : '\(.\)' 2>/dev/null ||
13117 echo X"$as_dir" |
13118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13119           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13120           /^X\(\/\/\)$/{ s//\1/; q; }
13121           /^X\(\/\).*/{ s//\1/; q; }
13122           s/.*/./; q'`
13123     done
13124     test ! -n "$as_dirs" || mkdir $as_dirs
13125   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13126 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13127    { (exit 1); exit 1; }; }; }
13128
13129     ac_builddir=.
13130
13131 if test "$ac_dir" != .; then
13132   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13133   # A "../" for each directory in $ac_dir_suffix.
13134   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13135 else
13136   ac_dir_suffix= ac_top_builddir=
13137 fi
13138
13139 case $srcdir in
13140   .)  # No --srcdir option.  We are building in place.
13141     ac_srcdir=.
13142     if test -z "$ac_top_builddir"; then
13143        ac_top_srcdir=.
13144     else
13145        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13146     fi ;;
13147   [\\/]* | ?:[\\/]* )  # Absolute path.
13148     ac_srcdir=$srcdir$ac_dir_suffix;
13149     ac_top_srcdir=$srcdir ;;
13150   *) # Relative path.
13151     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13152     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13153 esac
13154
13155 # Do not use `cd foo && pwd` to compute absolute paths, because
13156 # the directories may not exist.
13157 case `pwd` in
13158 .) ac_abs_builddir="$ac_dir";;
13159 *)
13160   case "$ac_dir" in
13161   .) ac_abs_builddir=`pwd`;;
13162   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13163   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13164   esac;;
13165 esac
13166 case $ac_abs_builddir in
13167 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13168 *)
13169   case ${ac_top_builddir}. in
13170   .) ac_abs_top_builddir=$ac_abs_builddir;;
13171   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13172   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13173   esac;;
13174 esac
13175 case $ac_abs_builddir in
13176 .) ac_abs_srcdir=$ac_srcdir;;
13177 *)
13178   case $ac_srcdir in
13179   .) ac_abs_srcdir=$ac_abs_builddir;;
13180   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13181   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13182   esac;;
13183 esac
13184 case $ac_abs_builddir in
13185 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13186 *)
13187   case $ac_top_srcdir in
13188   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13189   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13190   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13191   esac;;
13192 esac
13193
13194
13195     cd "$ac_dir"
13196
13197     # Check for guested configure; otherwise get Cygnus style configure.
13198     if test -f "$ac_srcdir/configure.gnu"; then
13199       ac_sub_configure=$ac_srcdir/configure.gnu
13200     elif test -f "$ac_srcdir/configure"; then
13201       ac_sub_configure=$ac_srcdir/configure
13202     elif test -f "$ac_srcdir/configure.in"; then
13203       # This should be Cygnus configure.
13204       ac_sub_configure=$ac_aux_dir/configure
13205     else
13206       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
13207 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13208       ac_sub_configure=
13209     fi
13210
13211     # The recursion is here.
13212     if test -n "$ac_sub_configure"; then
13213       # Make the cache file name correct relative to the subdirectory.
13214       case $cache_file in
13215       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13216       *) # Relative path.
13217         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
13218       esac
13219
13220       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
13221 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13222       # The eval makes quoting arguments work.
13223       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13224            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13225         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
13226 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
13227    { (exit 1); exit 1; }; }
13228     fi
13229
13230     cd "$ac_popdir"
13231   done
13232 fi
13233