1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for expat 2.0.1.
4#
5# Report bugs to <expat-bugs@libexpat.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='expat'
425PACKAGE_TARNAME='expat'
426PACKAGE_VERSION='2.0.1'
427PACKAGE_STRING='expat 2.0.1'
428PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
429
430ac_unique_file="Makefile.in"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBCURRENT LIBREVISION LIBAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA FILEMAP LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954  # Omit some internal or obsolete options to make the list less imposing.
955  # This message is too long to be a string in the A/UX 3.1 sh.
956  cat <<_ACEOF
957\`configure' configures expat 2.0.1 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982			  [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984			  [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010System types:
1011  --build=BUILD     configure for building on BUILD [guessed]
1012  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013_ACEOF
1014fi
1015
1016if test -n "$ac_init_help"; then
1017  case $ac_init_help in
1018     short | recursive ) echo "Configuration of expat 2.0.1:";;
1019   esac
1020  cat <<\_ACEOF
1021
1022Optional Features:
1023  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
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
1033Optional Packages:
1034  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1035  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1036  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1037  --with-pic              try to use only PIC/non-PIC objects [default=use
1038                          both]
1039  --with-tags[=TAGS]
1040                          include additional configurations [automatic]
1041
1042Some influential environment variables:
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  CXX         C++ compiler command
1051  CXXFLAGS    C++ compiler flags
1052  CXXCPP      C++ preprocessor
1053  F77         Fortran 77 compiler command
1054  FFLAGS      Fortran 77 compiler flags
1055
1056Use these variables to override the choices made by `configure' or to help
1057it to find libraries and programs with nonstandard names/locations.
1058
1059Report bugs to <expat-bugs@libexpat.org>.
1060_ACEOF
1061fi
1062
1063if test "$ac_init_help" = "recursive"; then
1064  # If there are subdirs, report their specific --help.
1065  ac_popdir=`pwd`
1066  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1067    test -d $ac_dir || continue
1068    ac_builddir=.
1069
1070if test "$ac_dir" != .; then
1071  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1072  # A "../" for each directory in $ac_dir_suffix.
1073  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1074else
1075  ac_dir_suffix= ac_top_builddir=
1076fi
1077
1078case $srcdir in
1079  .)  # No --srcdir option.  We are building in place.
1080    ac_srcdir=.
1081    if test -z "$ac_top_builddir"; then
1082       ac_top_srcdir=.
1083    else
1084       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1085    fi ;;
1086  [\\/]* | ?:[\\/]* )  # Absolute path.
1087    ac_srcdir=$srcdir$ac_dir_suffix;
1088    ac_top_srcdir=$srcdir ;;
1089  *) # Relative path.
1090    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1091    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1092esac
1093
1094# Do not use `cd foo && pwd` to compute absolute paths, because
1095# the directories may not exist.
1096case `pwd` in
1097.) ac_abs_builddir="$ac_dir";;
1098*)
1099  case "$ac_dir" in
1100  .) ac_abs_builddir=`pwd`;;
1101  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1102  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1103  esac;;
1104esac
1105case $ac_abs_builddir in
1106.) ac_abs_top_builddir=${ac_top_builddir}.;;
1107*)
1108  case ${ac_top_builddir}. in
1109  .) ac_abs_top_builddir=$ac_abs_builddir;;
1110  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1111  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1112  esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_srcdir=$ac_srcdir;;
1116*)
1117  case $ac_srcdir in
1118  .) ac_abs_srcdir=$ac_abs_builddir;;
1119  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1120  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1121  esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_top_srcdir=$ac_top_srcdir;;
1125*)
1126  case $ac_top_srcdir in
1127  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1128  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1129  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1130  esac;;
1131esac
1132
1133    cd $ac_dir
1134    # Check for guested configure; otherwise get Cygnus style configure.
1135    if test -f $ac_srcdir/configure.gnu; then
1136      echo
1137      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1138    elif test -f $ac_srcdir/configure; then
1139      echo
1140      $SHELL $ac_srcdir/configure  --help=recursive
1141    elif test -f $ac_srcdir/configure.ac ||
1142	   test -f $ac_srcdir/configure.in; then
1143      echo
1144      $ac_configure --help
1145    else
1146      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1147    fi
1148    cd $ac_popdir
1149  done
1150fi
1151
1152test -n "$ac_init_help" && exit 0
1153if $ac_init_version; then
1154  cat <<\_ACEOF
1155expat configure 2.0.1
1156generated by GNU Autoconf 2.59
1157
1158Copyright (C) 2003 Free Software Foundation, Inc.
1159This configure script is free software; the Free Software Foundation
1160gives unlimited permission to copy, distribute and modify it.
1161_ACEOF
1162  exit 0
1163fi
1164exec 5>config.log
1165cat >&5 <<_ACEOF
1166This file contains any messages produced by compilers while
1167running configure, to aid debugging if configure makes a mistake.
1168
1169It was created by expat $as_me 2.0.1, which was
1170generated by GNU Autoconf 2.59.  Invocation command line was
1171
1172  $ $0 $@
1173
1174_ACEOF
1175{
1176cat <<_ASUNAME
1177## --------- ##
1178## Platform. ##
1179## --------- ##
1180
1181hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1182uname -m = `(uname -m) 2>/dev/null || echo unknown`
1183uname -r = `(uname -r) 2>/dev/null || echo unknown`
1184uname -s = `(uname -s) 2>/dev/null || echo unknown`
1185uname -v = `(uname -v) 2>/dev/null || echo unknown`
1186
1187/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1188/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1189
1190/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1191/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1192/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1193hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1194/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1195/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1196/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1197
1198_ASUNAME
1199
1200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1201for as_dir in $PATH
1202do
1203  IFS=$as_save_IFS
1204  test -z "$as_dir" && as_dir=.
1205  echo "PATH: $as_dir"
1206done
1207
1208} >&5
1209
1210cat >&5 <<_ACEOF
1211
1212
1213## ----------- ##
1214## Core tests. ##
1215## ----------- ##
1216
1217_ACEOF
1218
1219
1220# Keep a trace of the command line.
1221# Strip out --no-create and --no-recursion so they do not pile up.
1222# Strip out --silent because we don't want to record it for future runs.
1223# Also quote any args containing shell meta-characters.
1224# Make two passes to allow for proper duplicate-argument suppression.
1225ac_configure_args=
1226ac_configure_args0=
1227ac_configure_args1=
1228ac_sep=
1229ac_must_keep_next=false
1230for ac_pass in 1 2
1231do
1232  for ac_arg
1233  do
1234    case $ac_arg in
1235    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1236    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237    | -silent | --silent | --silen | --sile | --sil)
1238      continue ;;
1239    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1241    esac
1242    case $ac_pass in
1243    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1244    2)
1245      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1246      if test $ac_must_keep_next = true; then
1247	ac_must_keep_next=false # Got value, back to normal.
1248      else
1249	case $ac_arg in
1250	  *=* | --config-cache | -C | -disable-* | --disable-* \
1251	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1252	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1253	  | -with-* | --with-* | -without-* | --without-* | --x)
1254	    case "$ac_configure_args0 " in
1255	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1256	    esac
1257	    ;;
1258	  -* ) ac_must_keep_next=true ;;
1259	esac
1260      fi
1261      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1262      # Get rid of the leading space.
1263      ac_sep=" "
1264      ;;
1265    esac
1266  done
1267done
1268$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1269$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1270
1271# When interrupted or exit'd, cleanup temporary files, and complete
1272# config.log.  We remove comments because anyway the quotes in there
1273# would cause problems or look ugly.
1274# WARNING: Be sure not to use single quotes in there, as some shells,
1275# such as our DU 5.0 friend, will then `close' the trap.
1276trap 'exit_status=$?
1277  # Save into config.log some information that might help in debugging.
1278  {
1279    echo
1280
1281    cat <<\_ASBOX
1282## ---------------- ##
1283## Cache variables. ##
1284## ---------------- ##
1285_ASBOX
1286    echo
1287    # The following way of writing the cache mishandles newlines in values,
1288{
1289  (set) 2>&1 |
1290    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1291    *ac_space=\ *)
1292      sed -n \
1293	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1294	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1295      ;;
1296    *)
1297      sed -n \
1298	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1299      ;;
1300    esac;
1301}
1302    echo
1303
1304    cat <<\_ASBOX
1305## ----------------- ##
1306## Output variables. ##
1307## ----------------- ##
1308_ASBOX
1309    echo
1310    for ac_var in $ac_subst_vars
1311    do
1312      eval ac_val=$`echo $ac_var`
1313      echo "$ac_var='"'"'$ac_val'"'"'"
1314    done | sort
1315    echo
1316
1317    if test -n "$ac_subst_files"; then
1318      cat <<\_ASBOX
1319## ------------- ##
1320## Output files. ##
1321## ------------- ##
1322_ASBOX
1323      echo
1324      for ac_var in $ac_subst_files
1325      do
1326	eval ac_val=$`echo $ac_var`
1327	echo "$ac_var='"'"'$ac_val'"'"'"
1328      done | sort
1329      echo
1330    fi
1331
1332    if test -s confdefs.h; then
1333      cat <<\_ASBOX
1334## ----------- ##
1335## confdefs.h. ##
1336## ----------- ##
1337_ASBOX
1338      echo
1339      sed "/^$/d" confdefs.h | sort
1340      echo
1341    fi
1342    test "$ac_signal" != 0 &&
1343      echo "$as_me: caught signal $ac_signal"
1344    echo "$as_me: exit $exit_status"
1345  } >&5
1346  rm -f core *.core &&
1347  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1348    exit $exit_status
1349     ' 0
1350for ac_signal in 1 2 13 15; do
1351  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1352done
1353ac_signal=0
1354
1355# confdefs.h avoids OS command line length limits that DEFS can exceed.
1356rm -rf conftest* confdefs.h
1357# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1358echo >confdefs.h
1359
1360# Predefined preprocessor variables.
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_NAME "$PACKAGE_NAME"
1364_ACEOF
1365
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1369_ACEOF
1370
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_VERSION "$PACKAGE_VERSION"
1374_ACEOF
1375
1376
1377cat >>confdefs.h <<_ACEOF
1378#define PACKAGE_STRING "$PACKAGE_STRING"
1379_ACEOF
1380
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1384_ACEOF
1385
1386
1387# Let the site file select an alternate cache file if it wants to.
1388# Prefer explicitly selected file to automatically selected ones.
1389if test -z "$CONFIG_SITE"; then
1390  if test "x$prefix" != xNONE; then
1391    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1392  else
1393    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1394  fi
1395fi
1396for ac_site_file in $CONFIG_SITE; do
1397  if test -r "$ac_site_file"; then
1398    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1399echo "$as_me: loading site script $ac_site_file" >&6;}
1400    sed 's/^/| /' "$ac_site_file" >&5
1401    . "$ac_site_file"
1402  fi
1403done
1404
1405if test -r "$cache_file"; then
1406  # Some versions of bash will fail to source /dev/null (special
1407  # files actually), so we avoid doing that.
1408  if test -f "$cache_file"; then
1409    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1410echo "$as_me: loading cache $cache_file" >&6;}
1411    case $cache_file in
1412      [\\/]* | ?:[\\/]* ) . $cache_file;;
1413      *)                      . ./$cache_file;;
1414    esac
1415  fi
1416else
1417  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1418echo "$as_me: creating cache $cache_file" >&6;}
1419  >$cache_file
1420fi
1421
1422# Check that the precious variables saved in the cache have kept the same
1423# value.
1424ac_cache_corrupted=false
1425for ac_var in `(set) 2>&1 |
1426	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1427  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1428  eval ac_new_set=\$ac_env_${ac_var}_set
1429  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1430  eval ac_new_val="\$ac_env_${ac_var}_value"
1431  case $ac_old_set,$ac_new_set in
1432    set,)
1433      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1434echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1435      ac_cache_corrupted=: ;;
1436    ,set)
1437      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1438echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1439      ac_cache_corrupted=: ;;
1440    ,);;
1441    *)
1442      if test "x$ac_old_val" != "x$ac_new_val"; then
1443	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1444echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1445	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1446echo "$as_me:   former value:  $ac_old_val" >&2;}
1447	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1448echo "$as_me:   current value: $ac_new_val" >&2;}
1449	ac_cache_corrupted=:
1450      fi;;
1451  esac
1452  # Pass precious variables to config.status.
1453  if test "$ac_new_set" = set; then
1454    case $ac_new_val in
1455    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1456      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1457    *) ac_arg=$ac_var=$ac_new_val ;;
1458    esac
1459    case " $ac_configure_args " in
1460      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1461      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1462    esac
1463  fi
1464done
1465if $ac_cache_corrupted; then
1466  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470   { (exit 1); exit 1; }; }
1471fi
1472
1473ac_ext=c
1474ac_cpp='$CPP $CPPFLAGS'
1475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508ac_aux_dir=
1509for ac_dir in conftools $srcdir/conftools; do
1510  if test -f $ac_dir/install-sh; then
1511    ac_aux_dir=$ac_dir
1512    ac_install_sh="$ac_aux_dir/install-sh -c"
1513    break
1514  elif test -f $ac_dir/install.sh; then
1515    ac_aux_dir=$ac_dir
1516    ac_install_sh="$ac_aux_dir/install.sh -c"
1517    break
1518  elif test -f $ac_dir/shtool; then
1519    ac_aux_dir=$ac_dir
1520    ac_install_sh="$ac_aux_dir/shtool install -c"
1521    break
1522  fi
1523done
1524if test -z "$ac_aux_dir"; then
1525  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&5
1526echo "$as_me: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&2;}
1527   { (exit 1); exit 1; }; }
1528fi
1529ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1530ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1531ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1532
1533
1534
1535
1536LIBCURRENT=6
1537LIBREVISION=2
1538LIBAGE=5
1539
1540          ac_config_headers="$ac_config_headers expat_config.h"
1541
1542
1543# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1544## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
1545## Free Software Foundation, Inc.
1546## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1547##
1548## This file is free software; the Free Software Foundation gives
1549## unlimited permission to copy and/or distribute it, with or without
1550## modifications, as long as this notice is preserved.
1551
1552# serial 48 AC_PROG_LIBTOOL
1553
1554
1555# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1556# -----------------------------------------------------------
1557# If this macro is not defined by Autoconf, define it here.
1558
1559
1560
1561# AC_PROG_LIBTOOL
1562# ---------------
1563# AC_PROG_LIBTOOL
1564
1565
1566# _AC_PROG_LIBTOOL
1567# ----------------
1568# _AC_PROG_LIBTOOL
1569
1570
1571# AC_LIBTOOL_SETUP
1572# ----------------
1573# AC_LIBTOOL_SETUP
1574
1575
1576# _LT_AC_SYS_COMPILER
1577# -------------------
1578# _LT_AC_SYS_COMPILER
1579
1580
1581# _LT_CC_BASENAME(CC)
1582# -------------------
1583# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1584
1585
1586
1587# _LT_COMPILER_BOILERPLATE
1588# ------------------------
1589# Check for compiler boilerplate output or warnings with
1590# the simple compiler test code.
1591# _LT_COMPILER_BOILERPLATE
1592
1593
1594# _LT_LINKER_BOILERPLATE
1595# ----------------------
1596# Check for linker boilerplate output or warnings with
1597# the simple link test code.
1598# _LT_LINKER_BOILERPLATE
1599
1600
1601# _LT_AC_SYS_LIBPATH_AIX
1602# ----------------------
1603# Links a minimal program and checks the executable
1604# for the system default hardcoded library path. In most cases,
1605# this is /usr/lib:/lib, but when the MPI compilers are used
1606# the location of the communication and MPI libs are included too.
1607# If we don't find anything, use the default library path according
1608# to the aix ld manual.
1609# _LT_AC_SYS_LIBPATH_AIX
1610
1611
1612# _LT_AC_SHELL_INIT(ARG)
1613# ----------------------
1614# _LT_AC_SHELL_INIT
1615
1616
1617# _LT_AC_PROG_ECHO_BACKSLASH
1618# --------------------------
1619# Add some code to the start of the generated configure script which
1620# will find an echo command which doesn't interpret backslashes.
1621# _LT_AC_PROG_ECHO_BACKSLASH
1622
1623
1624# _LT_AC_LOCK
1625# -----------
1626# _LT_AC_LOCK
1627
1628
1629# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1630#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1631# ----------------------------------------------------------------
1632# Check whether the given compiler option works
1633# AC_LIBTOOL_COMPILER_OPTION
1634
1635
1636# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1637#                          [ACTION-SUCCESS], [ACTION-FAILURE])
1638# ------------------------------------------------------------
1639# Check whether the given compiler option works
1640# AC_LIBTOOL_LINKER_OPTION
1641
1642
1643# AC_LIBTOOL_SYS_MAX_CMD_LEN
1644# --------------------------
1645# AC_LIBTOOL_SYS_MAX_CMD_LEN
1646
1647
1648# _LT_AC_CHECK_DLFCN
1649# ------------------
1650# _LT_AC_CHECK_DLFCN
1651
1652
1653# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1654#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1655# ---------------------------------------------------------------------
1656# _LT_AC_TRY_DLOPEN_SELF
1657
1658
1659# AC_LIBTOOL_DLOPEN_SELF
1660# ----------------------
1661# AC_LIBTOOL_DLOPEN_SELF
1662
1663
1664# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1665# ---------------------------------
1666# Check to see if options -c and -o are simultaneously supported by compiler
1667# AC_LIBTOOL_PROG_CC_C_O
1668
1669
1670# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1671# -----------------------------------------
1672# Check to see if we can do hard links to lock some files if needed
1673# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1674
1675
1676# AC_LIBTOOL_OBJDIR
1677# -----------------
1678# AC_LIBTOOL_OBJDIR
1679
1680
1681# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1682# ----------------------------------------------
1683# Check hardcoding attributes.
1684# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1685
1686
1687# AC_LIBTOOL_SYS_LIB_STRIP
1688# ------------------------
1689# AC_LIBTOOL_SYS_LIB_STRIP
1690
1691
1692# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1693# -----------------------------
1694# PORTME Fill in your ld.so characteristics
1695# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1696
1697
1698# _LT_AC_TAGCONFIG
1699# ----------------
1700# _LT_AC_TAGCONFIG
1701
1702
1703# AC_LIBTOOL_DLOPEN
1704# -----------------
1705# enable checks for dlopen support
1706# AC_LIBTOOL_DLOPEN
1707
1708
1709# AC_LIBTOOL_WIN32_DLL
1710# --------------------
1711# declare package support for building win32 DLLs
1712# AC_LIBTOOL_WIN32_DLL
1713
1714
1715# AC_ENABLE_SHARED([DEFAULT])
1716# ---------------------------
1717# implement the --enable-shared flag
1718# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1719# AC_ENABLE_SHARED
1720
1721
1722# AC_DISABLE_SHARED
1723# -----------------
1724# set the default shared flag to --disable-shared
1725# AC_DISABLE_SHARED
1726
1727
1728# AC_ENABLE_STATIC([DEFAULT])
1729# ---------------------------
1730# implement the --enable-static flag
1731# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1732# AC_ENABLE_STATIC
1733
1734
1735# AC_DISABLE_STATIC
1736# -----------------
1737# set the default static flag to --disable-static
1738# AC_DISABLE_STATIC
1739
1740
1741# AC_ENABLE_FAST_INSTALL([DEFAULT])
1742# ---------------------------------
1743# implement the --enable-fast-install flag
1744# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1745# AC_ENABLE_FAST_INSTALL
1746
1747
1748# AC_DISABLE_FAST_INSTALL
1749# -----------------------
1750# set the default to --disable-fast-install
1751# AC_DISABLE_FAST_INSTALL
1752
1753
1754# AC_LIBTOOL_PICMODE([MODE])
1755# --------------------------
1756# implement the --with-pic flag
1757# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
1758# AC_LIBTOOL_PICMODE
1759
1760
1761# AC_PROG_EGREP
1762# -------------
1763# This is predefined starting with Autoconf 2.54, so this conditional
1764# definition can be removed once we require Autoconf 2.54 or later.
1765
1766
1767
1768# AC_PATH_TOOL_PREFIX
1769# -------------------
1770# find a file program which can recognise shared library
1771# AC_PATH_TOOL_PREFIX
1772
1773
1774# AC_PATH_MAGIC
1775# -------------
1776# find a file program which can recognise a shared library
1777# AC_PATH_MAGIC
1778
1779
1780# AC_PROG_LD
1781# ----------
1782# find the pathname to the GNU or non-GNU linker
1783# AC_PROG_LD
1784
1785
1786# AC_PROG_LD_GNU
1787# --------------
1788# AC_PROG_LD_GNU
1789
1790
1791# AC_PROG_LD_RELOAD_FLAG
1792# ----------------------
1793# find reload flag for linker
1794#   -- PORTME Some linkers may need a different reload flag.
1795# AC_PROG_LD_RELOAD_FLAG
1796
1797
1798# AC_DEPLIBS_CHECK_METHOD
1799# -----------------------
1800# how to check for library dependencies
1801#  -- PORTME fill in with the dynamic library characteristics
1802# AC_DEPLIBS_CHECK_METHOD
1803
1804
1805# AC_PROG_NM
1806# ----------
1807# find the pathname to a BSD-compatible name lister
1808# AC_PROG_NM
1809
1810
1811# AC_CHECK_LIBM
1812# -------------
1813# check for math library
1814# AC_CHECK_LIBM
1815
1816
1817# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
1818# -----------------------------------
1819# sets LIBLTDL to the link flags for the libltdl convenience library and
1820# LTDLINCL to the include flags for the libltdl header and adds
1821# --enable-ltdl-convenience to the configure arguments.  Note that
1822# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
1823# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
1824# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
1825# (note the single quotes!).  If your package is not flat and you're not
1826# using automake, define top_builddir and top_srcdir appropriately in
1827# the Makefiles.
1828# AC_LIBLTDL_CONVENIENCE
1829
1830
1831# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
1832# -----------------------------------
1833# sets LIBLTDL to the link flags for the libltdl installable library and
1834# LTDLINCL to the include flags for the libltdl header and adds
1835# --enable-ltdl-install to the configure arguments.  Note that
1836# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
1837# and an installed libltdl is not found, it is assumed to be `libltdl'.
1838# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
1839# '${top_srcdir}/' (note the single quotes!).  If your package is not
1840# flat and you're not using automake, define top_builddir and top_srcdir
1841# appropriately in the Makefiles.
1842# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1843# AC_LIBLTDL_INSTALLABLE
1844
1845
1846# AC_LIBTOOL_CXX
1847# --------------
1848# enable support for C++ libraries
1849# AC_LIBTOOL_CXX
1850
1851
1852# _LT_AC_LANG_CXX
1853# ---------------
1854# _LT_AC_LANG_CXX
1855
1856# _LT_AC_PROG_CXXCPP
1857# ------------------
1858# _LT_AC_PROG_CXXCPP
1859
1860# AC_LIBTOOL_F77
1861# --------------
1862# enable support for Fortran 77 libraries
1863# AC_LIBTOOL_F77
1864
1865
1866# _LT_AC_LANG_F77
1867# ---------------
1868# _LT_AC_LANG_F77
1869
1870
1871# AC_LIBTOOL_GCJ
1872# --------------
1873# enable support for GCJ libraries
1874# AC_LIBTOOL_GCJ
1875
1876
1877# _LT_AC_LANG_GCJ
1878# ---------------
1879# _LT_AC_LANG_GCJ
1880
1881
1882# AC_LIBTOOL_RC
1883# -------------
1884# enable support for Windows resource files
1885# AC_LIBTOOL_RC
1886
1887
1888# AC_LIBTOOL_LANG_C_CONFIG
1889# ------------------------
1890# Ensure that the configuration vars for the C compiler are
1891# suitably defined.  Those variables are subsequently used by
1892# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1893
1894# AC_LIBTOOL_LANG_C_CONFIG
1895
1896
1897# AC_LIBTOOL_LANG_CXX_CONFIG
1898# --------------------------
1899# Ensure that the configuration vars for the C compiler are
1900# suitably defined.  Those variables are subsequently used by
1901# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1902
1903# AC_LIBTOOL_LANG_CXX_CONFIG
1904
1905# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
1906# ------------------------------------
1907# Figure out "hidden" library dependencies from verbose
1908# compiler output when linking a shared library.
1909# Parse the compiler output and extract the necessary
1910# objects, libraries and library flags.
1911# AC_LIBTOOL_POSTDEP_PREDEP
1912
1913# AC_LIBTOOL_LANG_F77_CONFIG
1914# --------------------------
1915# Ensure that the configuration vars for the C compiler are
1916# suitably defined.  Those variables are subsequently used by
1917# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1918
1919# AC_LIBTOOL_LANG_F77_CONFIG
1920
1921
1922# AC_LIBTOOL_LANG_GCJ_CONFIG
1923# --------------------------
1924# Ensure that the configuration vars for the C compiler are
1925# suitably defined.  Those variables are subsequently used by
1926# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1927
1928# AC_LIBTOOL_LANG_GCJ_CONFIG
1929
1930
1931# AC_LIBTOOL_LANG_RC_CONFIG
1932# -------------------------
1933# Ensure that the configuration vars for the Windows resource compiler are
1934# suitably defined.  Those variables are subsequently used by
1935# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1936
1937# AC_LIBTOOL_LANG_RC_CONFIG
1938
1939
1940# AC_LIBTOOL_CONFIG([TAGNAME])
1941# ----------------------------
1942# If TAGNAME is not passed, then create an initial libtool script
1943# with a default configuration from the untagged config vars.  Otherwise
1944# add code to config.status for appending the configuration named by
1945# TAGNAME from the matching tagged config vars.
1946# AC_LIBTOOL_CONFIG
1947
1948
1949# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
1950# -------------------------------------------
1951# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
1952
1953
1954# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1955# ---------------------------------
1956 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1957
1958
1959# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
1960# ---------------------------------------
1961
1962
1963
1964# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
1965# ------------------------------------
1966# See if the linker supports building shared libraries.
1967# AC_LIBTOOL_PROG_LD_SHLIBS
1968
1969
1970# _LT_AC_FILE_LTDLL_C
1971# -------------------
1972# Be careful that the start marker always follows a newline.
1973# _LT_AC_FILE_LTDLL_C
1974
1975
1976# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
1977# ---------------------------------
1978
1979
1980
1981# old names
1982
1983
1984
1985
1986
1987
1988
1989
1990# This is just to silence aclocal about the macro not being used
1991
1992
1993
1994
1995
1996
1997############################################################
1998# NOTE: This macro has been submitted for inclusion into   #
1999#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
2000#  a released version of Autoconf we should remove this    #
2001#  macro and use it instead.                               #
2002############################################################
2003# LT_AC_PROG_SED
2004# --------------
2005# Check for a fully-functional sed program, that truncates
2006# as few characters as possible.  Prefer GNU sed if found.
2007
2008
2009
2010
2011
2012
2013
2014# Check whether --enable-shared or --disable-shared was given.
2015if test "${enable_shared+set}" = set; then
2016  enableval="$enable_shared"
2017  p=${PACKAGE-default}
2018    case $enableval in
2019    yes) enable_shared=yes ;;
2020    no) enable_shared=no ;;
2021    *)
2022      enable_shared=no
2023      # Look at the argument we got.  We use all the common list separators.
2024      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2025      for pkg in $enableval; do
2026	IFS="$lt_save_ifs"
2027	if test "X$pkg" = "X$p"; then
2028	  enable_shared=yes
2029	fi
2030      done
2031      IFS="$lt_save_ifs"
2032      ;;
2033    esac
2034else
2035  enable_shared=yes
2036fi;
2037
2038# Check whether --enable-static or --disable-static was given.
2039if test "${enable_static+set}" = set; then
2040  enableval="$enable_static"
2041  p=${PACKAGE-default}
2042    case $enableval in
2043    yes) enable_static=yes ;;
2044    no) enable_static=no ;;
2045    *)
2046     enable_static=no
2047      # Look at the argument we got.  We use all the common list separators.
2048      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2049      for pkg in $enableval; do
2050	IFS="$lt_save_ifs"
2051	if test "X$pkg" = "X$p"; then
2052	  enable_static=yes
2053	fi
2054      done
2055      IFS="$lt_save_ifs"
2056      ;;
2057    esac
2058else
2059  enable_static=yes
2060fi;
2061
2062# Check whether --enable-fast-install or --disable-fast-install was given.
2063if test "${enable_fast_install+set}" = set; then
2064  enableval="$enable_fast_install"
2065  p=${PACKAGE-default}
2066    case $enableval in
2067    yes) enable_fast_install=yes ;;
2068    no) enable_fast_install=no ;;
2069    *)
2070      enable_fast_install=no
2071      # Look at the argument we got.  We use all the common list separators.
2072      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2073      for pkg in $enableval; do
2074	IFS="$lt_save_ifs"
2075	if test "X$pkg" = "X$p"; then
2076	  enable_fast_install=yes
2077	fi
2078      done
2079      IFS="$lt_save_ifs"
2080      ;;
2081    esac
2082else
2083  enable_fast_install=yes
2084fi;
2085
2086# Make sure we can run config.sub.
2087$ac_config_sub sun4 >/dev/null 2>&1 ||
2088  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2089echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2090   { (exit 1); exit 1; }; }
2091
2092echo "$as_me:$LINENO: checking build system type" >&5
2093echo $ECHO_N "checking build system type... $ECHO_C" >&6
2094if test "${ac_cv_build+set}" = set; then
2095  echo $ECHO_N "(cached) $ECHO_C" >&6
2096else
2097  ac_cv_build_alias=$build_alias
2098test -z "$ac_cv_build_alias" &&
2099  ac_cv_build_alias=`$ac_config_guess`
2100test -z "$ac_cv_build_alias" &&
2101  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2102echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2103   { (exit 1); exit 1; }; }
2104ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2105  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2106echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2107   { (exit 1); exit 1; }; }
2108
2109fi
2110echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2111echo "${ECHO_T}$ac_cv_build" >&6
2112build=$ac_cv_build
2113build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2114build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2115build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2116
2117
2118echo "$as_me:$LINENO: checking host system type" >&5
2119echo $ECHO_N "checking host system type... $ECHO_C" >&6
2120if test "${ac_cv_host+set}" = set; then
2121  echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123  ac_cv_host_alias=$host_alias
2124test -z "$ac_cv_host_alias" &&
2125  ac_cv_host_alias=$ac_cv_build_alias
2126ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2127  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2128echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2129   { (exit 1); exit 1; }; }
2130
2131fi
2132echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2133echo "${ECHO_T}$ac_cv_host" >&6
2134host=$ac_cv_host
2135host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2136host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2137host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2138
2139
2140ac_ext=c
2141ac_cpp='$CPP $CPPFLAGS'
2142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145if test -n "$ac_tool_prefix"; then
2146  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148echo "$as_me:$LINENO: checking for $ac_word" >&5
2149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150if test "${ac_cv_prog_CC+set}" = set; then
2151  echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153  if test -n "$CC"; then
2154  ac_cv_prog_CC="$CC" # Let the user override the test.
2155else
2156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157for as_dir in $PATH
2158do
2159  IFS=$as_save_IFS
2160  test -z "$as_dir" && as_dir=.
2161  for ac_exec_ext in '' $ac_executable_extensions; do
2162  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165    break 2
2166  fi
2167done
2168done
2169
2170fi
2171fi
2172CC=$ac_cv_prog_CC
2173if test -n "$CC"; then
2174  echo "$as_me:$LINENO: result: $CC" >&5
2175echo "${ECHO_T}$CC" >&6
2176else
2177  echo "$as_me:$LINENO: result: no" >&5
2178echo "${ECHO_T}no" >&6
2179fi
2180
2181fi
2182if test -z "$ac_cv_prog_CC"; then
2183  ac_ct_CC=$CC
2184  # Extract the first word of "gcc", so it can be a program name with args.
2185set dummy gcc; ac_word=$2
2186echo "$as_me:$LINENO: checking for $ac_word" >&5
2187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189  echo $ECHO_N "(cached) $ECHO_C" >&6
2190else
2191  if test -n "$ac_ct_CC"; then
2192  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193else
2194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195for as_dir in $PATH
2196do
2197  IFS=$as_save_IFS
2198  test -z "$as_dir" && as_dir=.
2199  for ac_exec_ext in '' $ac_executable_extensions; do
2200  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201    ac_cv_prog_ac_ct_CC="gcc"
2202    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203    break 2
2204  fi
2205done
2206done
2207
2208fi
2209fi
2210ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211if test -n "$ac_ct_CC"; then
2212  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213echo "${ECHO_T}$ac_ct_CC" >&6
2214else
2215  echo "$as_me:$LINENO: result: no" >&5
2216echo "${ECHO_T}no" >&6
2217fi
2218
2219  CC=$ac_ct_CC
2220else
2221  CC="$ac_cv_prog_CC"
2222fi
2223
2224if test -z "$CC"; then
2225  if test -n "$ac_tool_prefix"; then
2226  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2227set dummy ${ac_tool_prefix}cc; ac_word=$2
2228echo "$as_me:$LINENO: checking for $ac_word" >&5
2229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230if test "${ac_cv_prog_CC+set}" = set; then
2231  echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
2233  if test -n "$CC"; then
2234  ac_cv_prog_CC="$CC" # Let the user override the test.
2235else
2236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237for as_dir in $PATH
2238do
2239  IFS=$as_save_IFS
2240  test -z "$as_dir" && as_dir=.
2241  for ac_exec_ext in '' $ac_executable_extensions; do
2242  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243    ac_cv_prog_CC="${ac_tool_prefix}cc"
2244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245    break 2
2246  fi
2247done
2248done
2249
2250fi
2251fi
2252CC=$ac_cv_prog_CC
2253if test -n "$CC"; then
2254  echo "$as_me:$LINENO: result: $CC" >&5
2255echo "${ECHO_T}$CC" >&6
2256else
2257  echo "$as_me:$LINENO: result: no" >&5
2258echo "${ECHO_T}no" >&6
2259fi
2260
2261fi
2262if test -z "$ac_cv_prog_CC"; then
2263  ac_ct_CC=$CC
2264  # Extract the first word of "cc", so it can be a program name with args.
2265set dummy cc; ac_word=$2
2266echo "$as_me:$LINENO: checking for $ac_word" >&5
2267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2269  echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
2271  if test -n "$ac_ct_CC"; then
2272  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2273else
2274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275for as_dir in $PATH
2276do
2277  IFS=$as_save_IFS
2278  test -z "$as_dir" && as_dir=.
2279  for ac_exec_ext in '' $ac_executable_extensions; do
2280  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2281    ac_cv_prog_ac_ct_CC="cc"
2282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283    break 2
2284  fi
2285done
2286done
2287
2288fi
2289fi
2290ac_ct_CC=$ac_cv_prog_ac_ct_CC
2291if test -n "$ac_ct_CC"; then
2292  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2293echo "${ECHO_T}$ac_ct_CC" >&6
2294else
2295  echo "$as_me:$LINENO: result: no" >&5
2296echo "${ECHO_T}no" >&6
2297fi
2298
2299  CC=$ac_ct_CC
2300else
2301  CC="$ac_cv_prog_CC"
2302fi
2303
2304fi
2305if test -z "$CC"; then
2306  # Extract the first word of "cc", so it can be a program name with args.
2307set dummy cc; ac_word=$2
2308echo "$as_me:$LINENO: checking for $ac_word" >&5
2309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310if test "${ac_cv_prog_CC+set}" = set; then
2311  echo $ECHO_N "(cached) $ECHO_C" >&6
2312else
2313  if test -n "$CC"; then
2314  ac_cv_prog_CC="$CC" # Let the user override the test.
2315else
2316  ac_prog_rejected=no
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320  IFS=$as_save_IFS
2321  test -z "$as_dir" && as_dir=.
2322  for ac_exec_ext in '' $ac_executable_extensions; do
2323  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2325       ac_prog_rejected=yes
2326       continue
2327     fi
2328    ac_cv_prog_CC="cc"
2329    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330    break 2
2331  fi
2332done
2333done
2334
2335if test $ac_prog_rejected = yes; then
2336  # We found a bogon in the path, so make sure we never use it.
2337  set dummy $ac_cv_prog_CC
2338  shift
2339  if test $# != 0; then
2340    # We chose a different compiler from the bogus one.
2341    # However, it has the same basename, so the bogon will be chosen
2342    # first if we set CC to just the basename; use the full file name.
2343    shift
2344    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2345  fi
2346fi
2347fi
2348fi
2349CC=$ac_cv_prog_CC
2350if test -n "$CC"; then
2351  echo "$as_me:$LINENO: result: $CC" >&5
2352echo "${ECHO_T}$CC" >&6
2353else
2354  echo "$as_me:$LINENO: result: no" >&5
2355echo "${ECHO_T}no" >&6
2356fi
2357
2358fi
2359if test -z "$CC"; then
2360  if test -n "$ac_tool_prefix"; then
2361  for ac_prog in cl
2362  do
2363    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2364set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2365echo "$as_me:$LINENO: checking for $ac_word" >&5
2366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367if test "${ac_cv_prog_CC+set}" = set; then
2368  echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370  if test -n "$CC"; then
2371  ac_cv_prog_CC="$CC" # Let the user override the test.
2372else
2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374for as_dir in $PATH
2375do
2376  IFS=$as_save_IFS
2377  test -z "$as_dir" && as_dir=.
2378  for ac_exec_ext in '' $ac_executable_extensions; do
2379  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2381    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382    break 2
2383  fi
2384done
2385done
2386
2387fi
2388fi
2389CC=$ac_cv_prog_CC
2390if test -n "$CC"; then
2391  echo "$as_me:$LINENO: result: $CC" >&5
2392echo "${ECHO_T}$CC" >&6
2393else
2394  echo "$as_me:$LINENO: result: no" >&5
2395echo "${ECHO_T}no" >&6
2396fi
2397
2398    test -n "$CC" && break
2399  done
2400fi
2401if test -z "$CC"; then
2402  ac_ct_CC=$CC
2403  for ac_prog in cl
2404do
2405  # Extract the first word of "$ac_prog", so it can be a program name with args.
2406set dummy $ac_prog; ac_word=$2
2407echo "$as_me:$LINENO: checking for $ac_word" >&5
2408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2410  echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412  if test -n "$ac_ct_CC"; then
2413  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2414else
2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418  IFS=$as_save_IFS
2419  test -z "$as_dir" && as_dir=.
2420  for ac_exec_ext in '' $ac_executable_extensions; do
2421  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422    ac_cv_prog_ac_ct_CC="$ac_prog"
2423    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424    break 2
2425  fi
2426done
2427done
2428
2429fi
2430fi
2431ac_ct_CC=$ac_cv_prog_ac_ct_CC
2432if test -n "$ac_ct_CC"; then
2433  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2434echo "${ECHO_T}$ac_ct_CC" >&6
2435else
2436  echo "$as_me:$LINENO: result: no" >&5
2437echo "${ECHO_T}no" >&6
2438fi
2439
2440  test -n "$ac_ct_CC" && break
2441done
2442
2443  CC=$ac_ct_CC
2444fi
2445
2446fi
2447
2448
2449test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2450See \`config.log' for more details." >&5
2451echo "$as_me: error: no acceptable C compiler found in \$PATH
2452See \`config.log' for more details." >&2;}
2453   { (exit 1); exit 1; }; }
2454
2455# Provide some information about the compiler.
2456echo "$as_me:$LINENO:" \
2457     "checking for C compiler version" >&5
2458ac_compiler=`set X $ac_compile; echo $2`
2459{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2460  (eval $ac_compiler --version </dev/null >&5) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }
2464{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2465  (eval $ac_compiler -v </dev/null >&5) 2>&5
2466  ac_status=$?
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); }
2469{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2470  (eval $ac_compiler -V </dev/null >&5) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }
2474
2475cat >conftest.$ac_ext <<_ACEOF
2476/* confdefs.h.  */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h.  */
2481
2482int
2483main ()
2484{
2485
2486  ;
2487  return 0;
2488}
2489_ACEOF
2490ac_clean_files_save=$ac_clean_files
2491ac_clean_files="$ac_clean_files a.out a.exe b.out"
2492# Try to create an executable without -o first, disregard a.out.
2493# It will help us diagnose broken compilers, and finding out an intuition
2494# of exeext.
2495echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2496echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2497ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2498if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2499  (eval $ac_link_default) 2>&5
2500  ac_status=$?
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); }; then
2503  # Find the output, starting from the most likely.  This scheme is
2504# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2505# resort.
2506
2507# Be careful to initialize this variable, since it used to be cached.
2508# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2509ac_cv_exeext=
2510# b.out is created by i960 compilers.
2511for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2512do
2513  test -f "$ac_file" || continue
2514  case $ac_file in
2515    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2516	;;
2517    conftest.$ac_ext )
2518	# This is the source file.
2519	;;
2520    [ab].out )
2521	# We found the default executable, but exeext='' is most
2522	# certainly right.
2523	break;;
2524    *.* )
2525	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2526	# FIXME: I believe we export ac_cv_exeext for Libtool,
2527	# but it would be cool to find out if it's true.  Does anybody
2528	# maintain Libtool? --akim.
2529	export ac_cv_exeext
2530	break;;
2531    * )
2532	break;;
2533  esac
2534done
2535else
2536  echo "$as_me: failed program was:" >&5
2537sed 's/^/| /' conftest.$ac_ext >&5
2538
2539{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2540See \`config.log' for more details." >&5
2541echo "$as_me: error: C compiler cannot create executables
2542See \`config.log' for more details." >&2;}
2543   { (exit 77); exit 77; }; }
2544fi
2545
2546ac_exeext=$ac_cv_exeext
2547echo "$as_me:$LINENO: result: $ac_file" >&5
2548echo "${ECHO_T}$ac_file" >&6
2549
2550# Check the compiler produces executables we can run.  If not, either
2551# the compiler is broken, or we cross compile.
2552echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2553echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2554# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2555# If not cross compiling, check that we can run a simple program.
2556if test "$cross_compiling" != yes; then
2557  if { ac_try='./$ac_file'
2558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559  (eval $ac_try) 2>&5
2560  ac_status=$?
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); }; }; then
2563    cross_compiling=no
2564  else
2565    if test "$cross_compiling" = maybe; then
2566	cross_compiling=yes
2567    else
2568	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2569If you meant to cross compile, use \`--host'.
2570See \`config.log' for more details." >&5
2571echo "$as_me: error: cannot run C compiled programs.
2572If you meant to cross compile, use \`--host'.
2573See \`config.log' for more details." >&2;}
2574   { (exit 1); exit 1; }; }
2575    fi
2576  fi
2577fi
2578echo "$as_me:$LINENO: result: yes" >&5
2579echo "${ECHO_T}yes" >&6
2580
2581rm -f a.out a.exe conftest$ac_cv_exeext b.out
2582ac_clean_files=$ac_clean_files_save
2583# Check the compiler produces executables we can run.  If not, either
2584# the compiler is broken, or we cross compile.
2585echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2586echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2587echo "$as_me:$LINENO: result: $cross_compiling" >&5
2588echo "${ECHO_T}$cross_compiling" >&6
2589
2590echo "$as_me:$LINENO: checking for suffix of executables" >&5
2591echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2593  (eval $ac_link) 2>&5
2594  ac_status=$?
2595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596  (exit $ac_status); }; then
2597  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2598# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2599# work properly (i.e., refer to `conftest.exe'), while it won't with
2600# `rm'.
2601for ac_file in conftest.exe conftest conftest.*; do
2602  test -f "$ac_file" || continue
2603  case $ac_file in
2604    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2605    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2606	  export ac_cv_exeext
2607	  break;;
2608    * ) break;;
2609  esac
2610done
2611else
2612  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2613See \`config.log' for more details." >&5
2614echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2615See \`config.log' for more details." >&2;}
2616   { (exit 1); exit 1; }; }
2617fi
2618
2619rm -f conftest$ac_cv_exeext
2620echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2621echo "${ECHO_T}$ac_cv_exeext" >&6
2622
2623rm -f conftest.$ac_ext
2624EXEEXT=$ac_cv_exeext
2625ac_exeext=$EXEEXT
2626echo "$as_me:$LINENO: checking for suffix of object files" >&5
2627echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2628if test "${ac_cv_objext+set}" = set; then
2629  echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
2631  cat >conftest.$ac_ext <<_ACEOF
2632/* confdefs.h.  */
2633_ACEOF
2634cat confdefs.h >>conftest.$ac_ext
2635cat >>conftest.$ac_ext <<_ACEOF
2636/* end confdefs.h.  */
2637
2638int
2639main ()
2640{
2641
2642  ;
2643  return 0;
2644}
2645_ACEOF
2646rm -f conftest.o conftest.obj
2647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648  (eval $ac_compile) 2>&5
2649  ac_status=$?
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); }; then
2652  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2653  case $ac_file in
2654    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2655    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2656       break;;
2657  esac
2658done
2659else
2660  echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
2663{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2664See \`config.log' for more details." >&5
2665echo "$as_me: error: cannot compute suffix of object files: cannot compile
2666See \`config.log' for more details." >&2;}
2667   { (exit 1); exit 1; }; }
2668fi
2669
2670rm -f conftest.$ac_cv_objext conftest.$ac_ext
2671fi
2672echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2673echo "${ECHO_T}$ac_cv_objext" >&6
2674OBJEXT=$ac_cv_objext
2675ac_objext=$OBJEXT
2676echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2677echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2678if test "${ac_cv_c_compiler_gnu+set}" = set; then
2679  echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681  cat >conftest.$ac_ext <<_ACEOF
2682/* confdefs.h.  */
2683_ACEOF
2684cat confdefs.h >>conftest.$ac_ext
2685cat >>conftest.$ac_ext <<_ACEOF
2686/* end confdefs.h.  */
2687
2688int
2689main ()
2690{
2691#ifndef __GNUC__
2692       choke me
2693#endif
2694
2695  ;
2696  return 0;
2697}
2698_ACEOF
2699rm -f conftest.$ac_objext
2700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701  (eval $ac_compile) 2>conftest.er1
2702  ac_status=$?
2703  grep -v '^ *+' conftest.er1 >conftest.err
2704  rm -f conftest.er1
2705  cat conftest.err >&5
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); } &&
2708	 { ac_try='test -z "$ac_c_werror_flag"
2709			 || test ! -s conftest.err'
2710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711  (eval $ac_try) 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }; } &&
2715	 { ac_try='test -s conftest.$ac_objext'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; }; then
2721  ac_compiler_gnu=yes
2722else
2723  echo "$as_me: failed program was:" >&5
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
2726ac_compiler_gnu=no
2727fi
2728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729ac_cv_c_compiler_gnu=$ac_compiler_gnu
2730
2731fi
2732echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2733echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2734GCC=`test $ac_compiler_gnu = yes && echo yes`
2735ac_test_CFLAGS=${CFLAGS+set}
2736ac_save_CFLAGS=$CFLAGS
2737CFLAGS="-g"
2738echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2739echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2740if test "${ac_cv_prog_cc_g+set}" = set; then
2741  echo $ECHO_N "(cached) $ECHO_C" >&6
2742else
2743  cat >conftest.$ac_ext <<_ACEOF
2744/* confdefs.h.  */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h.  */
2749
2750int
2751main ()
2752{
2753
2754  ;
2755  return 0;
2756}
2757_ACEOF
2758rm -f conftest.$ac_objext
2759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760  (eval $ac_compile) 2>conftest.er1
2761  ac_status=$?
2762  grep -v '^ *+' conftest.er1 >conftest.err
2763  rm -f conftest.er1
2764  cat conftest.err >&5
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); } &&
2767	 { ac_try='test -z "$ac_c_werror_flag"
2768			 || test ! -s conftest.err'
2769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770  (eval $ac_try) 2>&5
2771  ac_status=$?
2772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773  (exit $ac_status); }; } &&
2774	 { ac_try='test -s conftest.$ac_objext'
2775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776  (eval $ac_try) 2>&5
2777  ac_status=$?
2778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779  (exit $ac_status); }; }; then
2780  ac_cv_prog_cc_g=yes
2781else
2782  echo "$as_me: failed program was:" >&5
2783sed 's/^/| /' conftest.$ac_ext >&5
2784
2785ac_cv_prog_cc_g=no
2786fi
2787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2788fi
2789echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2790echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2791if test "$ac_test_CFLAGS" = set; then
2792  CFLAGS=$ac_save_CFLAGS
2793elif test $ac_cv_prog_cc_g = yes; then
2794  if test "$GCC" = yes; then
2795    CFLAGS="-g -O2"
2796  else
2797    CFLAGS="-g"
2798  fi
2799else
2800  if test "$GCC" = yes; then
2801    CFLAGS="-O2"
2802  else
2803    CFLAGS=
2804  fi
2805fi
2806echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2807echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2808if test "${ac_cv_prog_cc_stdc+set}" = set; then
2809  echo $ECHO_N "(cached) $ECHO_C" >&6
2810else
2811  ac_cv_prog_cc_stdc=no
2812ac_save_CC=$CC
2813cat >conftest.$ac_ext <<_ACEOF
2814/* confdefs.h.  */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h.  */
2819#include <stdarg.h>
2820#include <stdio.h>
2821#include <sys/types.h>
2822#include <sys/stat.h>
2823/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2824struct buf { int x; };
2825FILE * (*rcsopen) (struct buf *, struct stat *, int);
2826static char *e (p, i)
2827     char **p;
2828     int i;
2829{
2830  return p[i];
2831}
2832static char *f (char * (*g) (char **, int), char **p, ...)
2833{
2834  char *s;
2835  va_list v;
2836  va_start (v,p);
2837  s = g (p, va_arg (v,int));
2838  va_end (v);
2839  return s;
2840}
2841
2842/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2843   function prototypes and stuff, but not '\xHH' hex character constants.
2844   These don't provoke an error unfortunately, instead are silently treated
2845   as 'x'.  The following induces an error, until -std1 is added to get
2846   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2847   array size at least.  It's necessary to write '\x00'==0 to get something
2848   that's true only with -std1.  */
2849int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2850
2851int test (int i, double x);
2852struct s1 {int (*f) (int a);};
2853struct s2 {int (*f) (double a);};
2854int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2855int argc;
2856char **argv;
2857int
2858main ()
2859{
2860return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2861  ;
2862  return 0;
2863}
2864_ACEOF
2865# Don't try gcc -ansi; that turns off useful extensions and
2866# breaks some systems' header files.
2867# AIX			-qlanglvl=ansi
2868# Ultrix and OSF/1	-std1
2869# HP-UX 10.20 and later	-Ae
2870# HP-UX older versions	-Aa -D_HPUX_SOURCE
2871# SVR4			-Xc -D__EXTENSIONS__
2872for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2873do
2874  CC="$ac_save_CC $ac_arg"
2875  rm -f conftest.$ac_objext
2876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877  (eval $ac_compile) 2>conftest.er1
2878  ac_status=$?
2879  grep -v '^ *+' conftest.er1 >conftest.err
2880  rm -f conftest.er1
2881  cat conftest.err >&5
2882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883  (exit $ac_status); } &&
2884	 { ac_try='test -z "$ac_c_werror_flag"
2885			 || test ! -s conftest.err'
2886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887  (eval $ac_try) 2>&5
2888  ac_status=$?
2889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890  (exit $ac_status); }; } &&
2891	 { ac_try='test -s conftest.$ac_objext'
2892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893  (eval $ac_try) 2>&5
2894  ac_status=$?
2895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896  (exit $ac_status); }; }; then
2897  ac_cv_prog_cc_stdc=$ac_arg
2898break
2899else
2900  echo "$as_me: failed program was:" >&5
2901sed 's/^/| /' conftest.$ac_ext >&5
2902
2903fi
2904rm -f conftest.err conftest.$ac_objext
2905done
2906rm -f conftest.$ac_ext conftest.$ac_objext
2907CC=$ac_save_CC
2908
2909fi
2910
2911case "x$ac_cv_prog_cc_stdc" in
2912  x|xno)
2913    echo "$as_me:$LINENO: result: none needed" >&5
2914echo "${ECHO_T}none needed" >&6 ;;
2915  *)
2916    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2917echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2918    CC="$CC $ac_cv_prog_cc_stdc" ;;
2919esac
2920
2921# Some people use a C++ compiler to compile C.  Since we use `exit',
2922# in C++ we need to declare it.  In case someone uses the same compiler
2923# for both compiling C and C++ we need to have the C++ compiler decide
2924# the declaration of exit, since it's the most demanding environment.
2925cat >conftest.$ac_ext <<_ACEOF
2926#ifndef __cplusplus
2927  choke me
2928#endif
2929_ACEOF
2930rm -f conftest.$ac_objext
2931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932  (eval $ac_compile) 2>conftest.er1
2933  ac_status=$?
2934  grep -v '^ *+' conftest.er1 >conftest.err
2935  rm -f conftest.er1
2936  cat conftest.err >&5
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); } &&
2939	 { ac_try='test -z "$ac_c_werror_flag"
2940			 || test ! -s conftest.err'
2941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942  (eval $ac_try) 2>&5
2943  ac_status=$?
2944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945  (exit $ac_status); }; } &&
2946	 { ac_try='test -s conftest.$ac_objext'
2947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948  (eval $ac_try) 2>&5
2949  ac_status=$?
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); }; }; then
2952  for ac_declaration in \
2953   '' \
2954   'extern "C" void std::exit (int) throw (); using std::exit;' \
2955   'extern "C" void std::exit (int); using std::exit;' \
2956   'extern "C" void exit (int) throw ();' \
2957   'extern "C" void exit (int);' \
2958   'void exit (int);'
2959do
2960  cat >conftest.$ac_ext <<_ACEOF
2961/* confdefs.h.  */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
2965/* end confdefs.h.  */
2966$ac_declaration
2967#include <stdlib.h>
2968int
2969main ()
2970{
2971exit (42);
2972  ;
2973  return 0;
2974}
2975_ACEOF
2976rm -f conftest.$ac_objext
2977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978  (eval $ac_compile) 2>conftest.er1
2979  ac_status=$?
2980  grep -v '^ *+' conftest.er1 >conftest.err
2981  rm -f conftest.er1
2982  cat conftest.err >&5
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); } &&
2985	 { ac_try='test -z "$ac_c_werror_flag"
2986			 || test ! -s conftest.err'
2987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988  (eval $ac_try) 2>&5
2989  ac_status=$?
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); }; } &&
2992	 { ac_try='test -s conftest.$ac_objext'
2993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994  (eval $ac_try) 2>&5
2995  ac_status=$?
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); }; }; then
2998  :
2999else
3000  echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003continue
3004fi
3005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006  cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h.  */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h.  */
3012$ac_declaration
3013int
3014main ()
3015{
3016exit (42);
3017  ;
3018  return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext
3022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023  (eval $ac_compile) 2>conftest.er1
3024  ac_status=$?
3025  grep -v '^ *+' conftest.er1 >conftest.err
3026  rm -f conftest.er1
3027  cat conftest.err >&5
3028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029  (exit $ac_status); } &&
3030	 { ac_try='test -z "$ac_c_werror_flag"
3031			 || test ! -s conftest.err'
3032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033  (eval $ac_try) 2>&5
3034  ac_status=$?
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); }; } &&
3037	 { ac_try='test -s conftest.$ac_objext'
3038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039  (eval $ac_try) 2>&5
3040  ac_status=$?
3041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042  (exit $ac_status); }; }; then
3043  break
3044else
3045  echo "$as_me: failed program was:" >&5
3046sed 's/^/| /' conftest.$ac_ext >&5
3047
3048fi
3049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3050done
3051rm -f conftest*
3052if test -n "$ac_declaration"; then
3053  echo '#ifdef __cplusplus' >>confdefs.h
3054  echo $ac_declaration      >>confdefs.h
3055  echo '#endif'             >>confdefs.h
3056fi
3057
3058else
3059  echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062fi
3063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064ac_ext=c
3065ac_cpp='$CPP $CPPFLAGS'
3066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069
3070echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3071echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3072if test "${lt_cv_path_SED+set}" = set; then
3073  echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075  # Loop through the user's path and test for sed and gsed.
3076# Then use that list of sed's as ones to test for truncation.
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080  IFS=$as_save_IFS
3081  test -z "$as_dir" && as_dir=.
3082  for lt_ac_prog in sed gsed; do
3083    for ac_exec_ext in '' $ac_executable_extensions; do
3084      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3085        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3086      fi
3087    done
3088  done
3089done
3090lt_ac_max=0
3091lt_ac_count=0
3092# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3093# along with /bin/sed that truncates output.
3094for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3095  test ! -f $lt_ac_sed && continue
3096  cat /dev/null > conftest.in
3097  lt_ac_count=0
3098  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3099  # Check for GNU sed and select it if it is found.
3100  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3101    lt_cv_path_SED=$lt_ac_sed
3102    break
3103  fi
3104  while true; do
3105    cat conftest.in conftest.in >conftest.tmp
3106    mv conftest.tmp conftest.in
3107    cp conftest.in conftest.nl
3108    echo >>conftest.nl
3109    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3110    cmp -s conftest.out conftest.nl || break
3111    # 10000 chars as input seems more than enough
3112    test $lt_ac_count -gt 10 && break
3113    lt_ac_count=`expr $lt_ac_count + 1`
3114    if test $lt_ac_count -gt $lt_ac_max; then
3115      lt_ac_max=$lt_ac_count
3116      lt_cv_path_SED=$lt_ac_sed
3117    fi
3118  done
3119done
3120
3121fi
3122
3123SED=$lt_cv_path_SED
3124echo "$as_me:$LINENO: result: $SED" >&5
3125echo "${ECHO_T}$SED" >&6
3126
3127echo "$as_me:$LINENO: checking for egrep" >&5
3128echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3129if test "${ac_cv_prog_egrep+set}" = set; then
3130  echo $ECHO_N "(cached) $ECHO_C" >&6
3131else
3132  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3133    then ac_cv_prog_egrep='grep -E'
3134    else ac_cv_prog_egrep='egrep'
3135    fi
3136fi
3137echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3138echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3139 EGREP=$ac_cv_prog_egrep
3140
3141
3142
3143# Check whether --with-gnu-ld or --without-gnu-ld was given.
3144if test "${with_gnu_ld+set}" = set; then
3145  withval="$with_gnu_ld"
3146  test "$withval" = no || with_gnu_ld=yes
3147else
3148  with_gnu_ld=no
3149fi;
3150ac_prog=ld
3151if test "$GCC" = yes; then
3152  # Check if gcc -print-prog-name=ld gives a path.
3153  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3154echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3155  case $host in
3156  *-*-mingw*)
3157    # gcc leaves a trailing carriage return which upsets mingw
3158    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3159  *)
3160    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3161  esac
3162  case $ac_prog in
3163    # Accept absolute paths.
3164    [\\/]* | ?:[\\/]*)
3165      re_direlt='/[^/][^/]*/\.\./'
3166      # Canonicalize the pathname of ld
3167      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3168      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3169	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3170      done
3171      test -z "$LD" && LD="$ac_prog"
3172      ;;
3173  "")
3174    # If it fails, then pretend we aren't using GCC.
3175    ac_prog=ld
3176    ;;
3177  *)
3178    # If it is relative, then search for the first ld in PATH.
3179    with_gnu_ld=unknown
3180    ;;
3181  esac
3182elif test "$with_gnu_ld" = yes; then
3183  echo "$as_me:$LINENO: checking for GNU ld" >&5
3184echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3185else
3186  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3187echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3188fi
3189if test "${lt_cv_path_LD+set}" = set; then
3190  echo $ECHO_N "(cached) $ECHO_C" >&6
3191else
3192  if test -z "$LD"; then
3193  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3194  for ac_dir in $PATH; do
3195    IFS="$lt_save_ifs"
3196    test -z "$ac_dir" && ac_dir=.
3197    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3198      lt_cv_path_LD="$ac_dir/$ac_prog"
3199      # Check to see if the program is GNU ld.  I'd rather use --version,
3200      # but apparently some variants of GNU ld only accept -v.
3201      # Break only if it was the GNU/non-GNU ld that we prefer.
3202      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3203      *GNU* | *'with BFD'*)
3204	test "$with_gnu_ld" != no && break
3205	;;
3206      *)
3207	test "$with_gnu_ld" != yes && break
3208	;;
3209      esac
3210    fi
3211  done
3212  IFS="$lt_save_ifs"
3213else
3214  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3215fi
3216fi
3217
3218LD="$lt_cv_path_LD"
3219if test -n "$LD"; then
3220  echo "$as_me:$LINENO: result: $LD" >&5
3221echo "${ECHO_T}$LD" >&6
3222else
3223  echo "$as_me:$LINENO: result: no" >&5
3224echo "${ECHO_T}no" >&6
3225fi
3226test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3227echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3228   { (exit 1); exit 1; }; }
3229echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3230echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3231if test "${lt_cv_prog_gnu_ld+set}" = set; then
3232  echo $ECHO_N "(cached) $ECHO_C" >&6
3233else
3234  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3235case `$LD -v 2>&1 </dev/null` in
3236*GNU* | *'with BFD'*)
3237  lt_cv_prog_gnu_ld=yes
3238  ;;
3239*)
3240  lt_cv_prog_gnu_ld=no
3241  ;;
3242esac
3243fi
3244echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3245echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3246with_gnu_ld=$lt_cv_prog_gnu_ld
3247
3248
3249echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3250echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3251if test "${lt_cv_ld_reload_flag+set}" = set; then
3252  echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
3254  lt_cv_ld_reload_flag='-r'
3255fi
3256echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3257echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3258reload_flag=$lt_cv_ld_reload_flag
3259case $reload_flag in
3260"" | " "*) ;;
3261*) reload_flag=" $reload_flag" ;;
3262esac
3263reload_cmds='$LD$reload_flag -o $output$reload_objs'
3264case $host_os in
3265  darwin*)
3266    if test "$GCC" = yes; then
3267      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3268    else
3269      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3270    fi
3271    ;;
3272esac
3273
3274echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3275echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3276if test "${lt_cv_path_NM+set}" = set; then
3277  echo $ECHO_N "(cached) $ECHO_C" >&6
3278else
3279  if test -n "$NM"; then
3280  # Let the user override the test.
3281  lt_cv_path_NM="$NM"
3282else
3283  lt_nm_to_check="${ac_tool_prefix}nm"
3284  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3285    lt_nm_to_check="$lt_nm_to_check nm"
3286  fi
3287  for lt_tmp_nm in $lt_nm_to_check; do
3288    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3289    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3290      IFS="$lt_save_ifs"
3291      test -z "$ac_dir" && ac_dir=.
3292      tmp_nm="$ac_dir/$lt_tmp_nm"
3293      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3294	# Check to see if the nm accepts a BSD-compat flag.
3295	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3296	#   nm: unknown option "B" ignored
3297	# Tru64's nm complains that /dev/null is an invalid object file
3298	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3299	*/dev/null* | *'Invalid file or object type'*)
3300	  lt_cv_path_NM="$tmp_nm -B"
3301	  break
3302	  ;;
3303	*)
3304	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3305	  */dev/null*)
3306	    lt_cv_path_NM="$tmp_nm -p"
3307	    break
3308	    ;;
3309	  *)
3310	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3311	    continue # so that we can try to find one that supports BSD flags
3312	    ;;
3313	  esac
3314	  ;;
3315	esac
3316      fi
3317    done
3318    IFS="$lt_save_ifs"
3319  done
3320  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3321fi
3322fi
3323echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3324echo "${ECHO_T}$lt_cv_path_NM" >&6
3325NM="$lt_cv_path_NM"
3326
3327echo "$as_me:$LINENO: checking whether ln -s works" >&5
3328echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3329LN_S=$as_ln_s
3330if test "$LN_S" = "ln -s"; then
3331  echo "$as_me:$LINENO: result: yes" >&5
3332echo "${ECHO_T}yes" >&6
3333else
3334  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3335echo "${ECHO_T}no, using $LN_S" >&6
3336fi
3337
3338echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3339echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3340if test "${lt_cv_deplibs_check_method+set}" = set; then
3341  echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343  lt_cv_file_magic_cmd='$MAGIC_CMD'
3344lt_cv_file_magic_test_file=
3345lt_cv_deplibs_check_method='unknown'
3346# Need to set the preceding variable on all platforms that support
3347# interlibrary dependencies.
3348# 'none' -- dependencies not supported.
3349# `unknown' -- same as none, but documents that we really don't know.
3350# 'pass_all' -- all dependencies passed with no checks.
3351# 'test_compile' -- check by making test program.
3352# 'file_magic [[regex]]' -- check by looking for files in library path
3353# which responds to the $file_magic_cmd with a given extended regex.
3354# If you have `file' or equivalent on your system and you're not sure
3355# whether `pass_all' will *always* work, you probably want this one.
3356
3357case $host_os in
3358aix4* | aix5*)
3359  lt_cv_deplibs_check_method=pass_all
3360  ;;
3361
3362beos*)
3363  lt_cv_deplibs_check_method=pass_all
3364  ;;
3365
3366bsdi[45]*)
3367  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3368  lt_cv_file_magic_cmd='/usr/bin/file -L'
3369  lt_cv_file_magic_test_file=/shlib/libc.so
3370  ;;
3371
3372cygwin*)
3373  # func_win32_libid is a shell function defined in ltmain.sh
3374  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3375  lt_cv_file_magic_cmd='func_win32_libid'
3376  ;;
3377
3378mingw* | pw32*)
3379  # Base MSYS/MinGW do not provide the 'file' command needed by
3380  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3381  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3382  lt_cv_file_magic_cmd='$OBJDUMP -f'
3383  ;;
3384
3385darwin* | rhapsody*)
3386  lt_cv_deplibs_check_method=pass_all
3387  ;;
3388
3389freebsd* | kfreebsd*-gnu | dragonfly*)
3390  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3391    case $host_cpu in
3392    i*86 )
3393      # Not sure whether the presence of OpenBSD here was a mistake.
3394      # Let's accept both of them until this is cleared up.
3395      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3396      lt_cv_file_magic_cmd=/usr/bin/file
3397      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3398      ;;
3399    esac
3400  else
3401    lt_cv_deplibs_check_method=pass_all
3402  fi
3403  ;;
3404
3405gnu*)
3406  lt_cv_deplibs_check_method=pass_all
3407  ;;
3408
3409hpux10.20* | hpux11*)
3410  lt_cv_file_magic_cmd=/usr/bin/file
3411  case $host_cpu in
3412  ia64*)
3413    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3414    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3415    ;;
3416  hppa*64*)
3417    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]'
3418    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3419    ;;
3420  *)
3421    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3422    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3423    ;;
3424  esac
3425  ;;
3426
3427interix3*)
3428  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3429  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3430  ;;
3431
3432irix5* | irix6* | nonstopux*)
3433  case $LD in
3434  *-32|*"-32 ") libmagic=32-bit;;
3435  *-n32|*"-n32 ") libmagic=N32;;
3436  *-64|*"-64 ") libmagic=64-bit;;
3437  *) libmagic=never-match;;
3438  esac
3439  lt_cv_deplibs_check_method=pass_all
3440  ;;
3441
3442# This must be Linux ELF.
3443linux*)
3444  lt_cv_deplibs_check_method=pass_all
3445  ;;
3446
3447netbsd*)
3448  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3449    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3450  else
3451    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3452  fi
3453  ;;
3454
3455newos6*)
3456  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3457  lt_cv_file_magic_cmd=/usr/bin/file
3458  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3459  ;;
3460
3461nto-qnx*)
3462  lt_cv_deplibs_check_method=unknown
3463  ;;
3464
3465openbsd*)
3466  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3467    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3468  else
3469    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3470  fi
3471  ;;
3472
3473osf3* | osf4* | osf5*)
3474  lt_cv_deplibs_check_method=pass_all
3475  ;;
3476
3477solaris*)
3478  lt_cv_deplibs_check_method=pass_all
3479  ;;
3480
3481sysv4 | sysv4.3*)
3482  case $host_vendor in
3483  motorola)
3484    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]'
3485    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3486    ;;
3487  ncr)
3488    lt_cv_deplibs_check_method=pass_all
3489    ;;
3490  sequent)
3491    lt_cv_file_magic_cmd='/bin/file'
3492    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3493    ;;
3494  sni)
3495    lt_cv_file_magic_cmd='/bin/file'
3496    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3497    lt_cv_file_magic_test_file=/lib/libc.so
3498    ;;
3499  siemens)
3500    lt_cv_deplibs_check_method=pass_all
3501    ;;
3502  pc)
3503    lt_cv_deplibs_check_method=pass_all
3504    ;;
3505  esac
3506  ;;
3507
3508sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3509  lt_cv_deplibs_check_method=pass_all
3510  ;;
3511esac
3512
3513fi
3514echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3515echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3516file_magic_cmd=$lt_cv_file_magic_cmd
3517deplibs_check_method=$lt_cv_deplibs_check_method
3518test -z "$deplibs_check_method" && deplibs_check_method=unknown
3519
3520
3521
3522
3523# If no C compiler was specified, use CC.
3524LTCC=${LTCC-"$CC"}
3525
3526# If no C compiler flags were specified, use CFLAGS.
3527LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3528
3529# Allow CC to be a program name with arguments.
3530compiler=$CC
3531
3532
3533# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3534if test "${enable_libtool_lock+set}" = set; then
3535  enableval="$enable_libtool_lock"
3536
3537fi;
3538test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3539
3540# Some flags need to be propagated to the compiler or linker for good
3541# libtool support.
3542case $host in
3543ia64-*-hpux*)
3544  # Find out which ABI we are using.
3545  echo 'int i;' > conftest.$ac_ext
3546  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547  (eval $ac_compile) 2>&5
3548  ac_status=$?
3549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550  (exit $ac_status); }; then
3551    case `/usr/bin/file conftest.$ac_objext` in
3552    *ELF-32*)
3553      HPUX_IA64_MODE="32"
3554      ;;
3555    *ELF-64*)
3556      HPUX_IA64_MODE="64"
3557      ;;
3558    esac
3559  fi
3560  rm -rf conftest*
3561  ;;
3562*-*-irix6*)
3563  # Find out which ABI we are using.
3564  echo '#line 3564 "configure"' > conftest.$ac_ext
3565  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566  (eval $ac_compile) 2>&5
3567  ac_status=$?
3568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569  (exit $ac_status); }; then
3570   if test "$lt_cv_prog_gnu_ld" = yes; then
3571    case `/usr/bin/file conftest.$ac_objext` in
3572    *32-bit*)
3573      LD="${LD-ld} -melf32bsmip"
3574      ;;
3575    *N32*)
3576      LD="${LD-ld} -melf32bmipn32"
3577      ;;
3578    *64-bit*)
3579      LD="${LD-ld} -melf64bmip"
3580      ;;
3581    esac
3582   else
3583    case `/usr/bin/file conftest.$ac_objext` in
3584    *32-bit*)
3585      LD="${LD-ld} -32"
3586      ;;
3587    *N32*)
3588      LD="${LD-ld} -n32"
3589      ;;
3590    *64-bit*)
3591      LD="${LD-ld} -64"
3592      ;;
3593    esac
3594   fi
3595  fi
3596  rm -rf conftest*
3597  ;;
3598
3599x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3600  # Find out which ABI we are using.
3601  echo 'int i;' > conftest.$ac_ext
3602  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603  (eval $ac_compile) 2>&5
3604  ac_status=$?
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); }; then
3607    case `/usr/bin/file conftest.o` in
3608    *32-bit*)
3609      case $host in
3610        x86_64-*linux*)
3611          LD="${LD-ld} -m elf_i386"
3612          ;;
3613        ppc64-*linux*|powerpc64-*linux*)
3614          LD="${LD-ld} -m elf32ppclinux"
3615          ;;
3616        s390x-*linux*)
3617          LD="${LD-ld} -m elf_s390"
3618          ;;
3619        sparc64-*linux*)
3620          LD="${LD-ld} -m elf32_sparc"
3621          ;;
3622      esac
3623      ;;
3624    *64-bit*)
3625      case $host in
3626        x86_64-*linux*)
3627          LD="${LD-ld} -m elf_x86_64"
3628          ;;
3629        ppc*-*linux*|powerpc*-*linux*)
3630          LD="${LD-ld} -m elf64ppc"
3631          ;;
3632        s390*-*linux*)
3633          LD="${LD-ld} -m elf64_s390"
3634          ;;
3635        sparc*-*linux*)
3636          LD="${LD-ld} -m elf64_sparc"
3637          ;;
3638      esac
3639      ;;
3640    esac
3641  fi
3642  rm -rf conftest*
3643  ;;
3644
3645*-*-sco3.2v5*)
3646  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3647  SAVE_CFLAGS="$CFLAGS"
3648  CFLAGS="$CFLAGS -belf"
3649  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3650echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3651if test "${lt_cv_cc_needs_belf+set}" = set; then
3652  echo $ECHO_N "(cached) $ECHO_C" >&6
3653else
3654  ac_ext=c
3655ac_cpp='$CPP $CPPFLAGS'
3656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659
3660     cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h.  */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h.  */
3666
3667int
3668main ()
3669{
3670
3671  ;
3672  return 0;
3673}
3674_ACEOF
3675rm -f conftest.$ac_objext conftest$ac_exeext
3676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3677  (eval $ac_link) 2>conftest.er1
3678  ac_status=$?
3679  grep -v '^ *+' conftest.er1 >conftest.err
3680  rm -f conftest.er1
3681  cat conftest.err >&5
3682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683  (exit $ac_status); } &&
3684	 { ac_try='test -z "$ac_c_werror_flag"
3685			 || test ! -s conftest.err'
3686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687  (eval $ac_try) 2>&5
3688  ac_status=$?
3689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690  (exit $ac_status); }; } &&
3691	 { ac_try='test -s conftest$ac_exeext'
3692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693  (eval $ac_try) 2>&5
3694  ac_status=$?
3695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696  (exit $ac_status); }; }; then
3697  lt_cv_cc_needs_belf=yes
3698else
3699  echo "$as_me: failed program was:" >&5
3700sed 's/^/| /' conftest.$ac_ext >&5
3701
3702lt_cv_cc_needs_belf=no
3703fi
3704rm -f conftest.err conftest.$ac_objext \
3705      conftest$ac_exeext conftest.$ac_ext
3706     ac_ext=c
3707ac_cpp='$CPP $CPPFLAGS'
3708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711
3712fi
3713echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3714echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3715  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3716    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3717    CFLAGS="$SAVE_CFLAGS"
3718  fi
3719  ;;
3720sparc*-*solaris*)
3721  # Find out which ABI we are using.
3722  echo 'int i;' > conftest.$ac_ext
3723  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3724  (eval $ac_compile) 2>&5
3725  ac_status=$?
3726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727  (exit $ac_status); }; then
3728    case `/usr/bin/file conftest.o` in
3729    *64-bit*)
3730      case $lt_cv_prog_gnu_ld in
3731      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3732      *)    LD="${LD-ld} -64" ;;
3733      esac
3734      ;;
3735    esac
3736  fi
3737  rm -rf conftest*
3738  ;;
3739
3740*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3741  if test -n "$ac_tool_prefix"; then
3742  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3743set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3744echo "$as_me:$LINENO: checking for $ac_word" >&5
3745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3746if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3747  echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749  if test -n "$DLLTOOL"; then
3750  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3751else
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
3754do
3755  IFS=$as_save_IFS
3756  test -z "$as_dir" && as_dir=.
3757  for ac_exec_ext in '' $ac_executable_extensions; do
3758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761    break 2
3762  fi
3763done
3764done
3765
3766fi
3767fi
3768DLLTOOL=$ac_cv_prog_DLLTOOL
3769if test -n "$DLLTOOL"; then
3770  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3771echo "${ECHO_T}$DLLTOOL" >&6
3772else
3773  echo "$as_me:$LINENO: result: no" >&5
3774echo "${ECHO_T}no" >&6
3775fi
3776
3777fi
3778if test -z "$ac_cv_prog_DLLTOOL"; then
3779  ac_ct_DLLTOOL=$DLLTOOL
3780  # Extract the first word of "dlltool", so it can be a program name with args.
3781set dummy dlltool; ac_word=$2
3782echo "$as_me:$LINENO: checking for $ac_word" >&5
3783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3785  echo $ECHO_N "(cached) $ECHO_C" >&6
3786else
3787  if test -n "$ac_ct_DLLTOOL"; then
3788  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3789else
3790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791for as_dir in $PATH
3792do
3793  IFS=$as_save_IFS
3794  test -z "$as_dir" && as_dir=.
3795  for ac_exec_ext in '' $ac_executable_extensions; do
3796  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3798    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799    break 2
3800  fi
3801done
3802done
3803
3804  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3805fi
3806fi
3807ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3808if test -n "$ac_ct_DLLTOOL"; then
3809  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3810echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3811else
3812  echo "$as_me:$LINENO: result: no" >&5
3813echo "${ECHO_T}no" >&6
3814fi
3815
3816  DLLTOOL=$ac_ct_DLLTOOL
3817else
3818  DLLTOOL="$ac_cv_prog_DLLTOOL"
3819fi
3820
3821  if test -n "$ac_tool_prefix"; then
3822  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3823set dummy ${ac_tool_prefix}as; ac_word=$2
3824echo "$as_me:$LINENO: checking for $ac_word" >&5
3825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826if test "${ac_cv_prog_AS+set}" = set; then
3827  echo $ECHO_N "(cached) $ECHO_C" >&6
3828else
3829  if test -n "$AS"; then
3830  ac_cv_prog_AS="$AS" # Let the user override the test.
3831else
3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835  IFS=$as_save_IFS
3836  test -z "$as_dir" && as_dir=.
3837  for ac_exec_ext in '' $ac_executable_extensions; do
3838  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839    ac_cv_prog_AS="${ac_tool_prefix}as"
3840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841    break 2
3842  fi
3843done
3844done
3845
3846fi
3847fi
3848AS=$ac_cv_prog_AS
3849if test -n "$AS"; then
3850  echo "$as_me:$LINENO: result: $AS" >&5
3851echo "${ECHO_T}$AS" >&6
3852else
3853  echo "$as_me:$LINENO: result: no" >&5
3854echo "${ECHO_T}no" >&6
3855fi
3856
3857fi
3858if test -z "$ac_cv_prog_AS"; then
3859  ac_ct_AS=$AS
3860  # Extract the first word of "as", so it can be a program name with args.
3861set dummy as; ac_word=$2
3862echo "$as_me:$LINENO: checking for $ac_word" >&5
3863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3865  echo $ECHO_N "(cached) $ECHO_C" >&6
3866else
3867  if test -n "$ac_ct_AS"; then
3868  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3869else
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH
3872do
3873  IFS=$as_save_IFS
3874  test -z "$as_dir" && as_dir=.
3875  for ac_exec_ext in '' $ac_executable_extensions; do
3876  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877    ac_cv_prog_ac_ct_AS="as"
3878    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879    break 2
3880  fi
3881done
3882done
3883
3884  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3885fi
3886fi
3887ac_ct_AS=$ac_cv_prog_ac_ct_AS
3888if test -n "$ac_ct_AS"; then
3889  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3890echo "${ECHO_T}$ac_ct_AS" >&6
3891else
3892  echo "$as_me:$LINENO: result: no" >&5
3893echo "${ECHO_T}no" >&6
3894fi
3895
3896  AS=$ac_ct_AS
3897else
3898  AS="$ac_cv_prog_AS"
3899fi
3900
3901  if test -n "$ac_tool_prefix"; then
3902  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3903set dummy ${ac_tool_prefix}objdump; ac_word=$2
3904echo "$as_me:$LINENO: checking for $ac_word" >&5
3905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3907  echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909  if test -n "$OBJDUMP"; then
3910  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3911else
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915  IFS=$as_save_IFS
3916  test -z "$as_dir" && as_dir=.
3917  for ac_exec_ext in '' $ac_executable_extensions; do
3918  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921    break 2
3922  fi
3923done
3924done
3925
3926fi
3927fi
3928OBJDUMP=$ac_cv_prog_OBJDUMP
3929if test -n "$OBJDUMP"; then
3930  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3931echo "${ECHO_T}$OBJDUMP" >&6
3932else
3933  echo "$as_me:$LINENO: result: no" >&5
3934echo "${ECHO_T}no" >&6
3935fi
3936
3937fi
3938if test -z "$ac_cv_prog_OBJDUMP"; then
3939  ac_ct_OBJDUMP=$OBJDUMP
3940  # Extract the first word of "objdump", so it can be a program name with args.
3941set dummy objdump; ac_word=$2
3942echo "$as_me:$LINENO: checking for $ac_word" >&5
3943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3944if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3945  echo $ECHO_N "(cached) $ECHO_C" >&6
3946else
3947  if test -n "$ac_ct_OBJDUMP"; then
3948  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3949else
3950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951for as_dir in $PATH
3952do
3953  IFS=$as_save_IFS
3954  test -z "$as_dir" && as_dir=.
3955  for ac_exec_ext in '' $ac_executable_extensions; do
3956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957    ac_cv_prog_ac_ct_OBJDUMP="objdump"
3958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959    break 2
3960  fi
3961done
3962done
3963
3964  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3965fi
3966fi
3967ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3968if test -n "$ac_ct_OBJDUMP"; then
3969  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3970echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3971else
3972  echo "$as_me:$LINENO: result: no" >&5
3973echo "${ECHO_T}no" >&6
3974fi
3975
3976  OBJDUMP=$ac_ct_OBJDUMP
3977else
3978  OBJDUMP="$ac_cv_prog_OBJDUMP"
3979fi
3980
3981  ;;
3982
3983esac
3984
3985need_locks="$enable_libtool_lock"
3986
3987
3988ac_ext=c
3989ac_cpp='$CPP $CPPFLAGS'
3990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3994echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3995# On Suns, sometimes $CPP names a directory.
3996if test -n "$CPP" && test -d "$CPP"; then
3997  CPP=
3998fi
3999if test -z "$CPP"; then
4000  if test "${ac_cv_prog_CPP+set}" = set; then
4001  echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
4003      # Double quotes because CPP needs to be expanded
4004    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4005    do
4006      ac_preproc_ok=false
4007for ac_c_preproc_warn_flag in '' yes
4008do
4009  # Use a header file that comes with gcc, so configuring glibc
4010  # with a fresh cross-compiler works.
4011  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4012  # <limits.h> exists even on freestanding compilers.
4013  # On the NeXT, cc -E runs the code through the compiler's parser,
4014  # not just through cpp. "Syntax error" is here to catch this case.
4015  cat >conftest.$ac_ext <<_ACEOF
4016/* confdefs.h.  */
4017_ACEOF
4018cat confdefs.h >>conftest.$ac_ext
4019cat >>conftest.$ac_ext <<_ACEOF
4020/* end confdefs.h.  */
4021#ifdef __STDC__
4022# include <limits.h>
4023#else
4024# include <assert.h>
4025#endif
4026		     Syntax error
4027_ACEOF
4028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030  ac_status=$?
4031  grep -v '^ *+' conftest.er1 >conftest.err
4032  rm -f conftest.er1
4033  cat conftest.err >&5
4034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035  (exit $ac_status); } >/dev/null; then
4036  if test -s conftest.err; then
4037    ac_cpp_err=$ac_c_preproc_warn_flag
4038    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039  else
4040    ac_cpp_err=
4041  fi
4042else
4043  ac_cpp_err=yes
4044fi
4045if test -z "$ac_cpp_err"; then
4046  :
4047else
4048  echo "$as_me: failed program was:" >&5
4049sed 's/^/| /' conftest.$ac_ext >&5
4050
4051  # Broken: fails on valid input.
4052continue
4053fi
4054rm -f conftest.err conftest.$ac_ext
4055
4056  # OK, works on sane cases.  Now check whether non-existent headers
4057  # can be detected and how.
4058  cat >conftest.$ac_ext <<_ACEOF
4059/* confdefs.h.  */
4060_ACEOF
4061cat confdefs.h >>conftest.$ac_ext
4062cat >>conftest.$ac_ext <<_ACEOF
4063/* end confdefs.h.  */
4064#include <ac_nonexistent.h>
4065_ACEOF
4066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4067  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4068  ac_status=$?
4069  grep -v '^ *+' conftest.er1 >conftest.err
4070  rm -f conftest.er1
4071  cat conftest.err >&5
4072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073  (exit $ac_status); } >/dev/null; then
4074  if test -s conftest.err; then
4075    ac_cpp_err=$ac_c_preproc_warn_flag
4076    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4077  else
4078    ac_cpp_err=
4079  fi
4080else
4081  ac_cpp_err=yes
4082fi
4083if test -z "$ac_cpp_err"; then
4084  # Broken: success on invalid input.
4085continue
4086else
4087  echo "$as_me: failed program was:" >&5
4088sed 's/^/| /' conftest.$ac_ext >&5
4089
4090  # Passes both tests.
4091ac_preproc_ok=:
4092break
4093fi
4094rm -f conftest.err conftest.$ac_ext
4095
4096done
4097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4098rm -f conftest.err conftest.$ac_ext
4099if $ac_preproc_ok; then
4100  break
4101fi
4102
4103    done
4104    ac_cv_prog_CPP=$CPP
4105
4106fi
4107  CPP=$ac_cv_prog_CPP
4108else
4109  ac_cv_prog_CPP=$CPP
4110fi
4111echo "$as_me:$LINENO: result: $CPP" >&5
4112echo "${ECHO_T}$CPP" >&6
4113ac_preproc_ok=false
4114for ac_c_preproc_warn_flag in '' yes
4115do
4116  # Use a header file that comes with gcc, so configuring glibc
4117  # with a fresh cross-compiler works.
4118  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119  # <limits.h> exists even on freestanding compilers.
4120  # On the NeXT, cc -E runs the code through the compiler's parser,
4121  # not just through cpp. "Syntax error" is here to catch this case.
4122  cat >conftest.$ac_ext <<_ACEOF
4123/* confdefs.h.  */
4124_ACEOF
4125cat confdefs.h >>conftest.$ac_ext
4126cat >>conftest.$ac_ext <<_ACEOF
4127/* end confdefs.h.  */
4128#ifdef __STDC__
4129# include <limits.h>
4130#else
4131# include <assert.h>
4132#endif
4133		     Syntax error
4134_ACEOF
4135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4136  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4137  ac_status=$?
4138  grep -v '^ *+' conftest.er1 >conftest.err
4139  rm -f conftest.er1
4140  cat conftest.err >&5
4141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142  (exit $ac_status); } >/dev/null; then
4143  if test -s conftest.err; then
4144    ac_cpp_err=$ac_c_preproc_warn_flag
4145    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4146  else
4147    ac_cpp_err=
4148  fi
4149else
4150  ac_cpp_err=yes
4151fi
4152if test -z "$ac_cpp_err"; then
4153  :
4154else
4155  echo "$as_me: failed program was:" >&5
4156sed 's/^/| /' conftest.$ac_ext >&5
4157
4158  # Broken: fails on valid input.
4159continue
4160fi
4161rm -f conftest.err conftest.$ac_ext
4162
4163  # OK, works on sane cases.  Now check whether non-existent headers
4164  # can be detected and how.
4165  cat >conftest.$ac_ext <<_ACEOF
4166/* confdefs.h.  */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h.  */
4171#include <ac_nonexistent.h>
4172_ACEOF
4173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4174  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4175  ac_status=$?
4176  grep -v '^ *+' conftest.er1 >conftest.err
4177  rm -f conftest.er1
4178  cat conftest.err >&5
4179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180  (exit $ac_status); } >/dev/null; then
4181  if test -s conftest.err; then
4182    ac_cpp_err=$ac_c_preproc_warn_flag
4183    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4184  else
4185    ac_cpp_err=
4186  fi
4187else
4188  ac_cpp_err=yes
4189fi
4190if test -z "$ac_cpp_err"; then
4191  # Broken: success on invalid input.
4192continue
4193else
4194  echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197  # Passes both tests.
4198ac_preproc_ok=:
4199break
4200fi
4201rm -f conftest.err conftest.$ac_ext
4202
4203done
4204# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4205rm -f conftest.err conftest.$ac_ext
4206if $ac_preproc_ok; then
4207  :
4208else
4209  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4210See \`config.log' for more details." >&5
4211echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4212See \`config.log' for more details." >&2;}
4213   { (exit 1); exit 1; }; }
4214fi
4215
4216ac_ext=c
4217ac_cpp='$CPP $CPPFLAGS'
4218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221
4222
4223echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4224echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4225if test "${ac_cv_header_stdc+set}" = set; then
4226  echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228  cat >conftest.$ac_ext <<_ACEOF
4229/* confdefs.h.  */
4230_ACEOF
4231cat confdefs.h >>conftest.$ac_ext
4232cat >>conftest.$ac_ext <<_ACEOF
4233/* end confdefs.h.  */
4234#include <stdlib.h>
4235#include <stdarg.h>
4236#include <string.h>
4237#include <float.h>
4238
4239int
4240main ()
4241{
4242
4243  ;
4244  return 0;
4245}
4246_ACEOF
4247rm -f conftest.$ac_objext
4248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249  (eval $ac_compile) 2>conftest.er1
4250  ac_status=$?
4251  grep -v '^ *+' conftest.er1 >conftest.err
4252  rm -f conftest.er1
4253  cat conftest.err >&5
4254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255  (exit $ac_status); } &&
4256	 { ac_try='test -z "$ac_c_werror_flag"
4257			 || test ! -s conftest.err'
4258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259  (eval $ac_try) 2>&5
4260  ac_status=$?
4261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262  (exit $ac_status); }; } &&
4263	 { ac_try='test -s conftest.$ac_objext'
4264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265  (eval $ac_try) 2>&5
4266  ac_status=$?
4267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268  (exit $ac_status); }; }; then
4269  ac_cv_header_stdc=yes
4270else
4271  echo "$as_me: failed program was:" >&5
4272sed 's/^/| /' conftest.$ac_ext >&5
4273
4274ac_cv_header_stdc=no
4275fi
4276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4277
4278if test $ac_cv_header_stdc = yes; then
4279  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4280  cat >conftest.$ac_ext <<_ACEOF
4281/* confdefs.h.  */
4282_ACEOF
4283cat confdefs.h >>conftest.$ac_ext
4284cat >>conftest.$ac_ext <<_ACEOF
4285/* end confdefs.h.  */
4286#include <string.h>
4287
4288_ACEOF
4289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4290  $EGREP "memchr" >/dev/null 2>&1; then
4291  :
4292else
4293  ac_cv_header_stdc=no
4294fi
4295rm -f conftest*
4296
4297fi
4298
4299if test $ac_cv_header_stdc = yes; then
4300  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4301  cat >conftest.$ac_ext <<_ACEOF
4302/* confdefs.h.  */
4303_ACEOF
4304cat confdefs.h >>conftest.$ac_ext
4305cat >>conftest.$ac_ext <<_ACEOF
4306/* end confdefs.h.  */
4307#include <stdlib.h>
4308
4309_ACEOF
4310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311  $EGREP "free" >/dev/null 2>&1; then
4312  :
4313else
4314  ac_cv_header_stdc=no
4315fi
4316rm -f conftest*
4317
4318fi
4319
4320if test $ac_cv_header_stdc = yes; then
4321  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4322  if test "$cross_compiling" = yes; then
4323  :
4324else
4325  cat >conftest.$ac_ext <<_ACEOF
4326/* confdefs.h.  */
4327_ACEOF
4328cat confdefs.h >>conftest.$ac_ext
4329cat >>conftest.$ac_ext <<_ACEOF
4330/* end confdefs.h.  */
4331#include <ctype.h>
4332#if ((' ' & 0x0FF) == 0x020)
4333# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4334# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4335#else
4336# define ISLOWER(c) \
4337		   (('a' <= (c) && (c) <= 'i') \
4338		     || ('j' <= (c) && (c) <= 'r') \
4339		     || ('s' <= (c) && (c) <= 'z'))
4340# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4341#endif
4342
4343#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4344int
4345main ()
4346{
4347  int i;
4348  for (i = 0; i < 256; i++)
4349    if (XOR (islower (i), ISLOWER (i))
4350	|| toupper (i) != TOUPPER (i))
4351      exit(2);
4352  exit (0);
4353}
4354_ACEOF
4355rm -f conftest$ac_exeext
4356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4357  (eval $ac_link) 2>&5
4358  ac_status=$?
4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362  (eval $ac_try) 2>&5
4363  ac_status=$?
4364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365  (exit $ac_status); }; }; then
4366  :
4367else
4368  echo "$as_me: program exited with status $ac_status" >&5
4369echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372( exit $ac_status )
4373ac_cv_header_stdc=no
4374fi
4375rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4376fi
4377fi
4378fi
4379echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4380echo "${ECHO_T}$ac_cv_header_stdc" >&6
4381if test $ac_cv_header_stdc = yes; then
4382
4383cat >>confdefs.h <<\_ACEOF
4384#define STDC_HEADERS 1
4385_ACEOF
4386
4387fi
4388
4389# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4400		  inttypes.h stdint.h unistd.h
4401do
4402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4403echo "$as_me:$LINENO: checking for $ac_header" >&5
4404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4405if eval "test \"\${$as_ac_Header+set}\" = set"; then
4406  echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408  cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h.  */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
4413/* end confdefs.h.  */
4414$ac_includes_default
4415
4416#include <$ac_header>
4417_ACEOF
4418rm -f conftest.$ac_objext
4419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420  (eval $ac_compile) 2>conftest.er1
4421  ac_status=$?
4422  grep -v '^ *+' conftest.er1 >conftest.err
4423  rm -f conftest.er1
4424  cat conftest.err >&5
4425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426  (exit $ac_status); } &&
4427	 { ac_try='test -z "$ac_c_werror_flag"
4428			 || test ! -s conftest.err'
4429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430  (eval $ac_try) 2>&5
4431  ac_status=$?
4432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433  (exit $ac_status); }; } &&
4434	 { ac_try='test -s conftest.$ac_objext'
4435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436  (eval $ac_try) 2>&5
4437  ac_status=$?
4438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439  (exit $ac_status); }; }; then
4440  eval "$as_ac_Header=yes"
4441else
4442  echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
4444
4445eval "$as_ac_Header=no"
4446fi
4447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448fi
4449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4451if test `eval echo '${'$as_ac_Header'}'` = yes; then
4452  cat >>confdefs.h <<_ACEOF
4453#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4454_ACEOF
4455
4456fi
4457
4458done
4459
4460
4461
4462for ac_header in dlfcn.h
4463do
4464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4465if eval "test \"\${$as_ac_Header+set}\" = set"; then
4466  echo "$as_me:$LINENO: checking for $ac_header" >&5
4467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4468if eval "test \"\${$as_ac_Header+set}\" = set"; then
4469  echo $ECHO_N "(cached) $ECHO_C" >&6
4470fi
4471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4473else
4474  # Is the header compilable?
4475echo "$as_me:$LINENO: checking $ac_header usability" >&5
4476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4477cat >conftest.$ac_ext <<_ACEOF
4478/* confdefs.h.  */
4479_ACEOF
4480cat confdefs.h >>conftest.$ac_ext
4481cat >>conftest.$ac_ext <<_ACEOF
4482/* end confdefs.h.  */
4483$ac_includes_default
4484#include <$ac_header>
4485_ACEOF
4486rm -f conftest.$ac_objext
4487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488  (eval $ac_compile) 2>conftest.er1
4489  ac_status=$?
4490  grep -v '^ *+' conftest.er1 >conftest.err
4491  rm -f conftest.er1
4492  cat conftest.err >&5
4493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); } &&
4495	 { ac_try='test -z "$ac_c_werror_flag"
4496			 || test ! -s conftest.err'
4497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498  (eval $ac_try) 2>&5
4499  ac_status=$?
4500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501  (exit $ac_status); }; } &&
4502	 { ac_try='test -s conftest.$ac_objext'
4503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504  (eval $ac_try) 2>&5
4505  ac_status=$?
4506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507  (exit $ac_status); }; }; then
4508  ac_header_compiler=yes
4509else
4510  echo "$as_me: failed program was:" >&5
4511sed 's/^/| /' conftest.$ac_ext >&5
4512
4513ac_header_compiler=no
4514fi
4515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4517echo "${ECHO_T}$ac_header_compiler" >&6
4518
4519# Is the header present?
4520echo "$as_me:$LINENO: checking $ac_header presence" >&5
4521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4522cat >conftest.$ac_ext <<_ACEOF
4523/* confdefs.h.  */
4524_ACEOF
4525cat confdefs.h >>conftest.$ac_ext
4526cat >>conftest.$ac_ext <<_ACEOF
4527/* end confdefs.h.  */
4528#include <$ac_header>
4529_ACEOF
4530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4531  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4532  ac_status=$?
4533  grep -v '^ *+' conftest.er1 >conftest.err
4534  rm -f conftest.er1
4535  cat conftest.err >&5
4536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537  (exit $ac_status); } >/dev/null; then
4538  if test -s conftest.err; then
4539    ac_cpp_err=$ac_c_preproc_warn_flag
4540    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4541  else
4542    ac_cpp_err=
4543  fi
4544else
4545  ac_cpp_err=yes
4546fi
4547if test -z "$ac_cpp_err"; then
4548  ac_header_preproc=yes
4549else
4550  echo "$as_me: failed program was:" >&5
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553  ac_header_preproc=no
4554fi
4555rm -f conftest.err conftest.$ac_ext
4556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4557echo "${ECHO_T}$ac_header_preproc" >&6
4558
4559# So?  What about this header?
4560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4561  yes:no: )
4562    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4564    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4566    ac_header_preproc=yes
4567    ;;
4568  no:yes:* )
4569    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4571    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4572echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4573    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4575    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4576echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4577    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4579    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4581    (
4582      cat <<\_ASBOX
4583## -------------------------------------- ##
4584## Report this to expat-bugs@libexpat.org ##
4585## -------------------------------------- ##
4586_ASBOX
4587    ) |
4588      sed "s/^/$as_me: WARNING:     /" >&2
4589    ;;
4590esac
4591echo "$as_me:$LINENO: checking for $ac_header" >&5
4592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4593if eval "test \"\${$as_ac_Header+set}\" = set"; then
4594  echo $ECHO_N "(cached) $ECHO_C" >&6
4595else
4596  eval "$as_ac_Header=\$ac_header_preproc"
4597fi
4598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4600
4601fi
4602if test `eval echo '${'$as_ac_Header'}'` = yes; then
4603  cat >>confdefs.h <<_ACEOF
4604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605_ACEOF
4606
4607fi
4608
4609done
4610
4611ac_ext=cc
4612ac_cpp='$CXXCPP $CPPFLAGS'
4613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4616if test -n "$ac_tool_prefix"; then
4617  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4618  do
4619    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4621echo "$as_me:$LINENO: checking for $ac_word" >&5
4622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623if test "${ac_cv_prog_CXX+set}" = set; then
4624  echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626  if test -n "$CXX"; then
4627  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632  IFS=$as_save_IFS
4633  test -z "$as_dir" && as_dir=.
4634  for ac_exec_ext in '' $ac_executable_extensions; do
4635  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638    break 2
4639  fi
4640done
4641done
4642
4643fi
4644fi
4645CXX=$ac_cv_prog_CXX
4646if test -n "$CXX"; then
4647  echo "$as_me:$LINENO: result: $CXX" >&5
4648echo "${ECHO_T}$CXX" >&6
4649else
4650  echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6
4652fi
4653
4654    test -n "$CXX" && break
4655  done
4656fi
4657if test -z "$CXX"; then
4658  ac_ct_CXX=$CXX
4659  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4660do
4661  # Extract the first word of "$ac_prog", so it can be a program name with args.
4662set dummy $ac_prog; ac_word=$2
4663echo "$as_me:$LINENO: checking for $ac_word" >&5
4664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4666  echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668  if test -n "$ac_ct_CXX"; then
4669  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4670else
4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674  IFS=$as_save_IFS
4675  test -z "$as_dir" && as_dir=.
4676  for ac_exec_ext in '' $ac_executable_extensions; do
4677  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678    ac_cv_prog_ac_ct_CXX="$ac_prog"
4679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680    break 2
4681  fi
4682done
4683done
4684
4685fi
4686fi
4687ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4688if test -n "$ac_ct_CXX"; then
4689  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4690echo "${ECHO_T}$ac_ct_CXX" >&6
4691else
4692  echo "$as_me:$LINENO: result: no" >&5
4693echo "${ECHO_T}no" >&6
4694fi
4695
4696  test -n "$ac_ct_CXX" && break
4697done
4698test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4699
4700  CXX=$ac_ct_CXX
4701fi
4702
4703
4704# Provide some information about the compiler.
4705echo "$as_me:$LINENO:" \
4706     "checking for C++ compiler version" >&5
4707ac_compiler=`set X $ac_compile; echo $2`
4708{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4709  (eval $ac_compiler --version </dev/null >&5) 2>&5
4710  ac_status=$?
4711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712  (exit $ac_status); }
4713{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4714  (eval $ac_compiler -v </dev/null >&5) 2>&5
4715  ac_status=$?
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); }
4718{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4719  (eval $ac_compiler -V </dev/null >&5) 2>&5
4720  ac_status=$?
4721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722  (exit $ac_status); }
4723
4724echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4725echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4726if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4727  echo $ECHO_N "(cached) $ECHO_C" >&6
4728else
4729  cat >conftest.$ac_ext <<_ACEOF
4730/* confdefs.h.  */
4731_ACEOF
4732cat confdefs.h >>conftest.$ac_ext
4733cat >>conftest.$ac_ext <<_ACEOF
4734/* end confdefs.h.  */
4735
4736int
4737main ()
4738{
4739#ifndef __GNUC__
4740       choke me
4741#endif
4742
4743  ;
4744  return 0;
4745}
4746_ACEOF
4747rm -f conftest.$ac_objext
4748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749  (eval $ac_compile) 2>conftest.er1
4750  ac_status=$?
4751  grep -v '^ *+' conftest.er1 >conftest.err
4752  rm -f conftest.er1
4753  cat conftest.err >&5
4754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755  (exit $ac_status); } &&
4756	 { ac_try='test -z "$ac_cxx_werror_flag"
4757			 || test ! -s conftest.err'
4758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759  (eval $ac_try) 2>&5
4760  ac_status=$?
4761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762  (exit $ac_status); }; } &&
4763	 { ac_try='test -s conftest.$ac_objext'
4764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765  (eval $ac_try) 2>&5
4766  ac_status=$?
4767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768  (exit $ac_status); }; }; then
4769  ac_compiler_gnu=yes
4770else
4771  echo "$as_me: failed program was:" >&5
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774ac_compiler_gnu=no
4775fi
4776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4777ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4778
4779fi
4780echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4781echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4782GXX=`test $ac_compiler_gnu = yes && echo yes`
4783ac_test_CXXFLAGS=${CXXFLAGS+set}
4784ac_save_CXXFLAGS=$CXXFLAGS
4785CXXFLAGS="-g"
4786echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4787echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4788if test "${ac_cv_prog_cxx_g+set}" = set; then
4789  echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791  cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h.  */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h.  */
4797
4798int
4799main ()
4800{
4801
4802  ;
4803  return 0;
4804}
4805_ACEOF
4806rm -f conftest.$ac_objext
4807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808  (eval $ac_compile) 2>conftest.er1
4809  ac_status=$?
4810  grep -v '^ *+' conftest.er1 >conftest.err
4811  rm -f conftest.er1
4812  cat conftest.err >&5
4813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814  (exit $ac_status); } &&
4815	 { ac_try='test -z "$ac_cxx_werror_flag"
4816			 || test ! -s conftest.err'
4817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818  (eval $ac_try) 2>&5
4819  ac_status=$?
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); }; } &&
4822	 { ac_try='test -s conftest.$ac_objext'
4823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824  (eval $ac_try) 2>&5
4825  ac_status=$?
4826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827  (exit $ac_status); }; }; then
4828  ac_cv_prog_cxx_g=yes
4829else
4830  echo "$as_me: failed program was:" >&5
4831sed 's/^/| /' conftest.$ac_ext >&5
4832
4833ac_cv_prog_cxx_g=no
4834fi
4835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4836fi
4837echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4838echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4839if test "$ac_test_CXXFLAGS" = set; then
4840  CXXFLAGS=$ac_save_CXXFLAGS
4841elif test $ac_cv_prog_cxx_g = yes; then
4842  if test "$GXX" = yes; then
4843    CXXFLAGS="-g -O2"
4844  else
4845    CXXFLAGS="-g"
4846  fi
4847else
4848  if test "$GXX" = yes; then
4849    CXXFLAGS="-O2"
4850  else
4851    CXXFLAGS=
4852  fi
4853fi
4854for ac_declaration in \
4855   '' \
4856   'extern "C" void std::exit (int) throw (); using std::exit;' \
4857   'extern "C" void std::exit (int); using std::exit;' \
4858   'extern "C" void exit (int) throw ();' \
4859   'extern "C" void exit (int);' \
4860   'void exit (int);'
4861do
4862  cat >conftest.$ac_ext <<_ACEOF
4863/* confdefs.h.  */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h.  */
4868$ac_declaration
4869#include <stdlib.h>
4870int
4871main ()
4872{
4873exit (42);
4874  ;
4875  return 0;
4876}
4877_ACEOF
4878rm -f conftest.$ac_objext
4879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880  (eval $ac_compile) 2>conftest.er1
4881  ac_status=$?
4882  grep -v '^ *+' conftest.er1 >conftest.err
4883  rm -f conftest.er1
4884  cat conftest.err >&5
4885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886  (exit $ac_status); } &&
4887	 { ac_try='test -z "$ac_cxx_werror_flag"
4888			 || test ! -s conftest.err'
4889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890  (eval $ac_try) 2>&5
4891  ac_status=$?
4892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893  (exit $ac_status); }; } &&
4894	 { ac_try='test -s conftest.$ac_objext'
4895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896  (eval $ac_try) 2>&5
4897  ac_status=$?
4898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899  (exit $ac_status); }; }; then
4900  :
4901else
4902  echo "$as_me: failed program was:" >&5
4903sed 's/^/| /' conftest.$ac_ext >&5
4904
4905continue
4906fi
4907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4908  cat >conftest.$ac_ext <<_ACEOF
4909/* confdefs.h.  */
4910_ACEOF
4911cat confdefs.h >>conftest.$ac_ext
4912cat >>conftest.$ac_ext <<_ACEOF
4913/* end confdefs.h.  */
4914$ac_declaration
4915int
4916main ()
4917{
4918exit (42);
4919  ;
4920  return 0;
4921}
4922_ACEOF
4923rm -f conftest.$ac_objext
4924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925  (eval $ac_compile) 2>conftest.er1
4926  ac_status=$?
4927  grep -v '^ *+' conftest.er1 >conftest.err
4928  rm -f conftest.er1
4929  cat conftest.err >&5
4930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931  (exit $ac_status); } &&
4932	 { ac_try='test -z "$ac_cxx_werror_flag"
4933			 || test ! -s conftest.err'
4934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935  (eval $ac_try) 2>&5
4936  ac_status=$?
4937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938  (exit $ac_status); }; } &&
4939	 { ac_try='test -s conftest.$ac_objext'
4940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941  (eval $ac_try) 2>&5
4942  ac_status=$?
4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944  (exit $ac_status); }; }; then
4945  break
4946else
4947  echo "$as_me: failed program was:" >&5
4948sed 's/^/| /' conftest.$ac_ext >&5
4949
4950fi
4951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952done
4953rm -f conftest*
4954if test -n "$ac_declaration"; then
4955  echo '#ifdef __cplusplus' >>confdefs.h
4956  echo $ac_declaration      >>confdefs.h
4957  echo '#endif'             >>confdefs.h
4958fi
4959
4960ac_ext=cc
4961ac_cpp='$CXXCPP $CPPFLAGS'
4962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4965
4966
4967
4968if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4969    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4970    (test "X$CXX" != "Xg++"))) ; then
4971  ac_ext=cc
4972ac_cpp='$CXXCPP $CPPFLAGS'
4973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4976echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4977echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4978if test -z "$CXXCPP"; then
4979  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4980  echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982      # Double quotes because CXXCPP needs to be expanded
4983    for CXXCPP in "$CXX -E" "/lib/cpp"
4984    do
4985      ac_preproc_ok=false
4986for ac_cxx_preproc_warn_flag in '' yes
4987do
4988  # Use a header file that comes with gcc, so configuring glibc
4989  # with a fresh cross-compiler works.
4990  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4991  # <limits.h> exists even on freestanding compilers.
4992  # On the NeXT, cc -E runs the code through the compiler's parser,
4993  # not just through cpp. "Syntax error" is here to catch this case.
4994  cat >conftest.$ac_ext <<_ACEOF
4995/* confdefs.h.  */
4996_ACEOF
4997cat confdefs.h >>conftest.$ac_ext
4998cat >>conftest.$ac_ext <<_ACEOF
4999/* end confdefs.h.  */
5000#ifdef __STDC__
5001# include <limits.h>
5002#else
5003# include <assert.h>
5004#endif
5005		     Syntax error
5006_ACEOF
5007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5009  ac_status=$?
5010  grep -v '^ *+' conftest.er1 >conftest.err
5011  rm -f conftest.er1
5012  cat conftest.err >&5
5013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014  (exit $ac_status); } >/dev/null; then
5015  if test -s conftest.err; then
5016    ac_cpp_err=$ac_cxx_preproc_warn_flag
5017    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5018  else
5019    ac_cpp_err=
5020  fi
5021else
5022  ac_cpp_err=yes
5023fi
5024if test -z "$ac_cpp_err"; then
5025  :
5026else
5027  echo "$as_me: failed program was:" >&5
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
5030  # Broken: fails on valid input.
5031continue
5032fi
5033rm -f conftest.err conftest.$ac_ext
5034
5035  # OK, works on sane cases.  Now check whether non-existent headers
5036  # can be detected and how.
5037  cat >conftest.$ac_ext <<_ACEOF
5038/* confdefs.h.  */
5039_ACEOF
5040cat confdefs.h >>conftest.$ac_ext
5041cat >>conftest.$ac_ext <<_ACEOF
5042/* end confdefs.h.  */
5043#include <ac_nonexistent.h>
5044_ACEOF
5045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5046  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5047  ac_status=$?
5048  grep -v '^ *+' conftest.er1 >conftest.err
5049  rm -f conftest.er1
5050  cat conftest.err >&5
5051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052  (exit $ac_status); } >/dev/null; then
5053  if test -s conftest.err; then
5054    ac_cpp_err=$ac_cxx_preproc_warn_flag
5055    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5056  else
5057    ac_cpp_err=
5058  fi
5059else
5060  ac_cpp_err=yes
5061fi
5062if test -z "$ac_cpp_err"; then
5063  # Broken: success on invalid input.
5064continue
5065else
5066  echo "$as_me: failed program was:" >&5
5067sed 's/^/| /' conftest.$ac_ext >&5
5068
5069  # Passes both tests.
5070ac_preproc_ok=:
5071break
5072fi
5073rm -f conftest.err conftest.$ac_ext
5074
5075done
5076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077rm -f conftest.err conftest.$ac_ext
5078if $ac_preproc_ok; then
5079  break
5080fi
5081
5082    done
5083    ac_cv_prog_CXXCPP=$CXXCPP
5084
5085fi
5086  CXXCPP=$ac_cv_prog_CXXCPP
5087else
5088  ac_cv_prog_CXXCPP=$CXXCPP
5089fi
5090echo "$as_me:$LINENO: result: $CXXCPP" >&5
5091echo "${ECHO_T}$CXXCPP" >&6
5092ac_preproc_ok=false
5093for ac_cxx_preproc_warn_flag in '' yes
5094do
5095  # Use a header file that comes with gcc, so configuring glibc
5096  # with a fresh cross-compiler works.
5097  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5098  # <limits.h> exists even on freestanding compilers.
5099  # On the NeXT, cc -E runs the code through the compiler's parser,
5100  # not just through cpp. "Syntax error" is here to catch this case.
5101  cat >conftest.$ac_ext <<_ACEOF
5102/* confdefs.h.  */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
5106/* end confdefs.h.  */
5107#ifdef __STDC__
5108# include <limits.h>
5109#else
5110# include <assert.h>
5111#endif
5112		     Syntax error
5113_ACEOF
5114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5115  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5116  ac_status=$?
5117  grep -v '^ *+' conftest.er1 >conftest.err
5118  rm -f conftest.er1
5119  cat conftest.err >&5
5120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121  (exit $ac_status); } >/dev/null; then
5122  if test -s conftest.err; then
5123    ac_cpp_err=$ac_cxx_preproc_warn_flag
5124    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5125  else
5126    ac_cpp_err=
5127  fi
5128else
5129  ac_cpp_err=yes
5130fi
5131if test -z "$ac_cpp_err"; then
5132  :
5133else
5134  echo "$as_me: failed program was:" >&5
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
5137  # Broken: fails on valid input.
5138continue
5139fi
5140rm -f conftest.err conftest.$ac_ext
5141
5142  # OK, works on sane cases.  Now check whether non-existent headers
5143  # can be detected and how.
5144  cat >conftest.$ac_ext <<_ACEOF
5145/* confdefs.h.  */
5146_ACEOF
5147cat confdefs.h >>conftest.$ac_ext
5148cat >>conftest.$ac_ext <<_ACEOF
5149/* end confdefs.h.  */
5150#include <ac_nonexistent.h>
5151_ACEOF
5152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5153  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5154  ac_status=$?
5155  grep -v '^ *+' conftest.er1 >conftest.err
5156  rm -f conftest.er1
5157  cat conftest.err >&5
5158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159  (exit $ac_status); } >/dev/null; then
5160  if test -s conftest.err; then
5161    ac_cpp_err=$ac_cxx_preproc_warn_flag
5162    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5163  else
5164    ac_cpp_err=
5165  fi
5166else
5167  ac_cpp_err=yes
5168fi
5169if test -z "$ac_cpp_err"; then
5170  # Broken: success on invalid input.
5171continue
5172else
5173  echo "$as_me: failed program was:" >&5
5174sed 's/^/| /' conftest.$ac_ext >&5
5175
5176  # Passes both tests.
5177ac_preproc_ok=:
5178break
5179fi
5180rm -f conftest.err conftest.$ac_ext
5181
5182done
5183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5184rm -f conftest.err conftest.$ac_ext
5185if $ac_preproc_ok; then
5186  :
5187else
5188  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5189See \`config.log' for more details." >&5
5190echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5191See \`config.log' for more details." >&2;}
5192   { (exit 1); exit 1; }; }
5193fi
5194
5195ac_ext=cc
5196ac_cpp='$CXXCPP $CPPFLAGS'
5197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5200
5201fi
5202
5203
5204ac_ext=f
5205ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5206ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5208if test -n "$ac_tool_prefix"; then
5209  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5210  do
5211    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213echo "$as_me:$LINENO: checking for $ac_word" >&5
5214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215if test "${ac_cv_prog_F77+set}" = set; then
5216  echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218  if test -n "$F77"; then
5219  ac_cv_prog_F77="$F77" # Let the user override the test.
5220else
5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224  IFS=$as_save_IFS
5225  test -z "$as_dir" && as_dir=.
5226  for ac_exec_ext in '' $ac_executable_extensions; do
5227  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230    break 2
5231  fi
5232done
5233done
5234
5235fi
5236fi
5237F77=$ac_cv_prog_F77
5238if test -n "$F77"; then
5239  echo "$as_me:$LINENO: result: $F77" >&5
5240echo "${ECHO_T}$F77" >&6
5241else
5242  echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6
5244fi
5245
5246    test -n "$F77" && break
5247  done
5248fi
5249if test -z "$F77"; then
5250  ac_ct_F77=$F77
5251  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5252do
5253  # Extract the first word of "$ac_prog", so it can be a program name with args.
5254set dummy $ac_prog; ac_word=$2
5255echo "$as_me:$LINENO: checking for $ac_word" >&5
5256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5258  echo $ECHO_N "(cached) $ECHO_C" >&6
5259else
5260  if test -n "$ac_ct_F77"; then
5261  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5262else
5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266  IFS=$as_save_IFS
5267  test -z "$as_dir" && as_dir=.
5268  for ac_exec_ext in '' $ac_executable_extensions; do
5269  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270    ac_cv_prog_ac_ct_F77="$ac_prog"
5271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272    break 2
5273  fi
5274done
5275done
5276
5277fi
5278fi
5279ac_ct_F77=$ac_cv_prog_ac_ct_F77
5280if test -n "$ac_ct_F77"; then
5281  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5282echo "${ECHO_T}$ac_ct_F77" >&6
5283else
5284  echo "$as_me:$LINENO: result: no" >&5
5285echo "${ECHO_T}no" >&6
5286fi
5287
5288  test -n "$ac_ct_F77" && break
5289done
5290
5291  F77=$ac_ct_F77
5292fi
5293
5294
5295# Provide some information about the compiler.
5296echo "$as_me:5296:" \
5297     "checking for Fortran 77 compiler version" >&5
5298ac_compiler=`set X $ac_compile; echo $2`
5299{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5300  (eval $ac_compiler --version </dev/null >&5) 2>&5
5301  ac_status=$?
5302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303  (exit $ac_status); }
5304{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5305  (eval $ac_compiler -v </dev/null >&5) 2>&5
5306  ac_status=$?
5307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308  (exit $ac_status); }
5309{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5310  (eval $ac_compiler -V </dev/null >&5) 2>&5
5311  ac_status=$?
5312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313  (exit $ac_status); }
5314rm -f a.out
5315
5316# If we don't use `.F' as extension, the preprocessor is not run on the
5317# input file.  (Note that this only needs to work for GNU compilers.)
5318ac_save_ext=$ac_ext
5319ac_ext=F
5320echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5321echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5322if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5323  echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325  cat >conftest.$ac_ext <<_ACEOF
5326      program main
5327#ifndef __GNUC__
5328       choke me
5329#endif
5330
5331      end
5332_ACEOF
5333rm -f conftest.$ac_objext
5334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335  (eval $ac_compile) 2>conftest.er1
5336  ac_status=$?
5337  grep -v '^ *+' conftest.er1 >conftest.err
5338  rm -f conftest.er1
5339  cat conftest.err >&5
5340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341  (exit $ac_status); } &&
5342	 { ac_try='test -z "$ac_f77_werror_flag"
5343			 || test ! -s conftest.err'
5344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345  (eval $ac_try) 2>&5
5346  ac_status=$?
5347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348  (exit $ac_status); }; } &&
5349	 { ac_try='test -s conftest.$ac_objext'
5350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351  (eval $ac_try) 2>&5
5352  ac_status=$?
5353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354  (exit $ac_status); }; }; then
5355  ac_compiler_gnu=yes
5356else
5357  echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360ac_compiler_gnu=no
5361fi
5362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5363ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5364
5365fi
5366echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5367echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5368ac_ext=$ac_save_ext
5369ac_test_FFLAGS=${FFLAGS+set}
5370ac_save_FFLAGS=$FFLAGS
5371FFLAGS=
5372echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5373echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5374if test "${ac_cv_prog_f77_g+set}" = set; then
5375  echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377  FFLAGS=-g
5378cat >conftest.$ac_ext <<_ACEOF
5379      program main
5380
5381      end
5382_ACEOF
5383rm -f conftest.$ac_objext
5384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385  (eval $ac_compile) 2>conftest.er1
5386  ac_status=$?
5387  grep -v '^ *+' conftest.er1 >conftest.err
5388  rm -f conftest.er1
5389  cat conftest.err >&5
5390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391  (exit $ac_status); } &&
5392	 { ac_try='test -z "$ac_f77_werror_flag"
5393			 || test ! -s conftest.err'
5394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395  (eval $ac_try) 2>&5
5396  ac_status=$?
5397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); }; } &&
5399	 { ac_try='test -s conftest.$ac_objext'
5400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401  (eval $ac_try) 2>&5
5402  ac_status=$?
5403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404  (exit $ac_status); }; }; then
5405  ac_cv_prog_f77_g=yes
5406else
5407  echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
5409
5410ac_cv_prog_f77_g=no
5411fi
5412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5413
5414fi
5415echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5416echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5417if test "$ac_test_FFLAGS" = set; then
5418  FFLAGS=$ac_save_FFLAGS
5419elif test $ac_cv_prog_f77_g = yes; then
5420  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5421    FFLAGS="-g -O2"
5422  else
5423    FFLAGS="-g"
5424  fi
5425else
5426  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5427    FFLAGS="-O2"
5428  else
5429    FFLAGS=
5430  fi
5431fi
5432
5433G77=`test $ac_compiler_gnu = yes && echo yes`
5434ac_ext=c
5435ac_cpp='$CPP $CPPFLAGS'
5436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438ac_compiler_gnu=$ac_cv_c_compiler_gnu
5439
5440
5441
5442# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5443
5444# find the maximum length of command line arguments
5445echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5446echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5447if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5448  echo $ECHO_N "(cached) $ECHO_C" >&6
5449else
5450    i=0
5451  teststring="ABCD"
5452
5453  case $build_os in
5454  msdosdjgpp*)
5455    # On DJGPP, this test can blow up pretty badly due to problems in libc
5456    # (any single argument exceeding 2000 bytes causes a buffer overrun
5457    # during glob expansion).  Even if it were fixed, the result of this
5458    # check would be larger than it should be.
5459    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5460    ;;
5461
5462  gnu*)
5463    # Under GNU Hurd, this test is not required because there is
5464    # no limit to the length of command line arguments.
5465    # Libtool will interpret -1 as no limit whatsoever
5466    lt_cv_sys_max_cmd_len=-1;
5467    ;;
5468
5469  cygwin* | mingw*)
5470    # On Win9x/ME, this test blows up -- it succeeds, but takes
5471    # about 5 minutes as the teststring grows exponentially.
5472    # Worse, since 9x/ME are not pre-emptively multitasking,
5473    # you end up with a "frozen" computer, even though with patience
5474    # the test eventually succeeds (with a max line length of 256k).
5475    # Instead, let's just punt: use the minimum linelength reported by
5476    # all of the supported platforms: 8192 (on NT/2K/XP).
5477    lt_cv_sys_max_cmd_len=8192;
5478    ;;
5479
5480  amigaos*)
5481    # On AmigaOS with pdksh, this test takes hours, literally.
5482    # So we just punt and use a minimum line length of 8192.
5483    lt_cv_sys_max_cmd_len=8192;
5484    ;;
5485
5486  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5487    # This has been around since 386BSD, at least.  Likely further.
5488    if test -x /sbin/sysctl; then
5489      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5490    elif test -x /usr/sbin/sysctl; then
5491      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5492    else
5493      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5494    fi
5495    # And add a safety zone
5496    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5497    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5498    ;;
5499
5500  interix*)
5501    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5502    lt_cv_sys_max_cmd_len=196608
5503    ;;
5504
5505  osf*)
5506    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5507    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5508    # nice to cause kernel panics so lets avoid the loop below.
5509    # First set a reasonable default.
5510    lt_cv_sys_max_cmd_len=16384
5511    #
5512    if test -x /sbin/sysconfig; then
5513      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5514        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5515      esac
5516    fi
5517    ;;
5518  sco3.2v5*)
5519    lt_cv_sys_max_cmd_len=102400
5520    ;;
5521  sysv5* | sco5v6* | sysv4.2uw2*)
5522    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5523    if test -n "$kargmax"; then
5524      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5525    else
5526      lt_cv_sys_max_cmd_len=32768
5527    fi
5528    ;;
5529  *)
5530    # If test is not a shell built-in, we'll probably end up computing a
5531    # maximum length that is only half of the actual maximum length, but
5532    # we can't tell.
5533    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5534    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5535	       = "XX$teststring") >/dev/null 2>&1 &&
5536	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5537	    lt_cv_sys_max_cmd_len=$new_result &&
5538	    test $i != 17 # 1/2 MB should be enough
5539    do
5540      i=`expr $i + 1`
5541      teststring=$teststring$teststring
5542    done
5543    teststring=
5544    # Add a significant safety factor because C++ compilers can tack on massive
5545    # amounts of additional arguments before passing them to the linker.
5546    # It appears as though 1/2 is a usable value.
5547    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5548    ;;
5549  esac
5550
5551fi
5552
5553if test -n $lt_cv_sys_max_cmd_len ; then
5554  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5555echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5556else
5557  echo "$as_me:$LINENO: result: none" >&5
5558echo "${ECHO_T}none" >&6
5559fi
5560
5561
5562
5563
5564# Check for command to grab the raw symbol name followed by C symbol from nm.
5565echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5566echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5567if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5568  echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
5570
5571# These are sane defaults that work on at least a few old systems.
5572# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5573
5574# Character class describing NM global symbol codes.
5575symcode='[BCDEGRST]'
5576
5577# Regexp to match symbols that can be accessed directly from C.
5578sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5579
5580# Transform an extracted symbol line into a proper C declaration
5581lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5582
5583# Transform an extracted symbol line into symbol name and symbol address
5584lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5585
5586# Define system-specific variables.
5587case $host_os in
5588aix*)
5589  symcode='[BCDT]'
5590  ;;
5591cygwin* | mingw* | pw32*)
5592  symcode='[ABCDGISTW]'
5593  ;;
5594hpux*) # Its linker distinguishes data from code symbols
5595  if test "$host_cpu" = ia64; then
5596    symcode='[ABCDEGRST]'
5597  fi
5598  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5599  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5600  ;;
5601linux*)
5602  if test "$host_cpu" = ia64; then
5603    symcode='[ABCDGIRSTW]'
5604    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5605    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5606  fi
5607  ;;
5608irix* | nonstopux*)
5609  symcode='[BCDEGRST]'
5610  ;;
5611osf*)
5612  symcode='[BCDEGQRST]'
5613  ;;
5614solaris*)
5615  symcode='[BDRT]'
5616  ;;
5617sco3.2v5*)
5618  symcode='[DT]'
5619  ;;
5620sysv4.2uw2*)
5621  symcode='[DT]'
5622  ;;
5623sysv5* | sco5v6* | unixware* | OpenUNIX*)
5624  symcode='[ABDT]'
5625  ;;
5626sysv4)
5627  symcode='[DFNSTU]'
5628  ;;
5629esac
5630
5631# Handle CRLF in mingw tool chain
5632opt_cr=
5633case $build_os in
5634mingw*)
5635  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5636  ;;
5637esac
5638
5639# If we're using GNU nm, then use its standard symbol codes.
5640case `$NM -V 2>&1` in
5641*GNU* | *'with BFD'*)
5642  symcode='[ABCDGIRSTW]' ;;
5643esac
5644
5645# Try without a prefix undercore, then with it.
5646for ac_symprfx in "" "_"; do
5647
5648  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5649  symxfrm="\\1 $ac_symprfx\\2 \\2"
5650
5651  # Write the raw and C identifiers.
5652  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5653
5654  # Check to see that the pipe works correctly.
5655  pipe_works=no
5656
5657  rm -f conftest*
5658  cat > conftest.$ac_ext <<EOF
5659#ifdef __cplusplus
5660extern "C" {
5661#endif
5662char nm_test_var;
5663void nm_test_func(){}
5664#ifdef __cplusplus
5665}
5666#endif
5667int main(){nm_test_var='a';nm_test_func();return(0);}
5668EOF
5669
5670  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671  (eval $ac_compile) 2>&5
5672  ac_status=$?
5673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674  (exit $ac_status); }; then
5675    # Now try to grab the symbols.
5676    nlist=conftest.nm
5677    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5678  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5679  ac_status=$?
5680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681  (exit $ac_status); } && test -s "$nlist"; then
5682      # Try sorting and uniquifying the output.
5683      if sort "$nlist" | uniq > "$nlist"T; then
5684	mv -f "$nlist"T "$nlist"
5685      else
5686	rm -f "$nlist"T
5687      fi
5688
5689      # Make sure that we snagged all the symbols we need.
5690      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5691	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5692	  cat <<EOF > conftest.$ac_ext
5693#ifdef __cplusplus
5694extern "C" {
5695#endif
5696
5697EOF
5698	  # Now generate the symbol file.
5699	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5700
5701	  cat <<EOF >> conftest.$ac_ext
5702#if defined (__STDC__) && __STDC__
5703# define lt_ptr_t void *
5704#else
5705# define lt_ptr_t char *
5706# define const
5707#endif
5708
5709/* The mapping between symbol names and symbols. */
5710const struct {
5711  const char *name;
5712  lt_ptr_t address;
5713}
5714lt_preloaded_symbols[] =
5715{
5716EOF
5717	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5718	  cat <<\EOF >> conftest.$ac_ext
5719  {0, (lt_ptr_t) 0}
5720};
5721
5722#ifdef __cplusplus
5723}
5724#endif
5725EOF
5726	  # Now try linking the two files.
5727	  mv conftest.$ac_objext conftstm.$ac_objext
5728	  lt_save_LIBS="$LIBS"
5729	  lt_save_CFLAGS="$CFLAGS"
5730	  LIBS="conftstm.$ac_objext"
5731	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5732	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733  (eval $ac_link) 2>&5
5734  ac_status=$?
5735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5737	    pipe_works=yes
5738	  fi
5739	  LIBS="$lt_save_LIBS"
5740	  CFLAGS="$lt_save_CFLAGS"
5741	else
5742	  echo "cannot find nm_test_func in $nlist" >&5
5743	fi
5744      else
5745	echo "cannot find nm_test_var in $nlist" >&5
5746      fi
5747    else
5748      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5749    fi
5750  else
5751    echo "$progname: failed program was:" >&5
5752    cat conftest.$ac_ext >&5
5753  fi
5754  rm -f conftest* conftst*
5755
5756  # Do not use the global_symbol_pipe unless it works.
5757  if test "$pipe_works" = yes; then
5758    break
5759  else
5760    lt_cv_sys_global_symbol_pipe=
5761  fi
5762done
5763
5764fi
5765
5766if test -z "$lt_cv_sys_global_symbol_pipe"; then
5767  lt_cv_sys_global_symbol_to_cdecl=
5768fi
5769if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5770  echo "$as_me:$LINENO: result: failed" >&5
5771echo "${ECHO_T}failed" >&6
5772else
5773  echo "$as_me:$LINENO: result: ok" >&5
5774echo "${ECHO_T}ok" >&6
5775fi
5776
5777echo "$as_me:$LINENO: checking for objdir" >&5
5778echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5779if test "${lt_cv_objdir+set}" = set; then
5780  echo $ECHO_N "(cached) $ECHO_C" >&6
5781else
5782  rm -f .libs 2>/dev/null
5783mkdir .libs 2>/dev/null
5784if test -d .libs; then
5785  lt_cv_objdir=.libs
5786else
5787  # MS-DOS does not allow filenames that begin with a dot.
5788  lt_cv_objdir=_libs
5789fi
5790rmdir .libs 2>/dev/null
5791fi
5792echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5793echo "${ECHO_T}$lt_cv_objdir" >&6
5794objdir=$lt_cv_objdir
5795
5796
5797
5798
5799
5800case $host_os in
5801aix3*)
5802  # AIX sometimes has problems with the GCC collect2 program.  For some
5803  # reason, if we set the COLLECT_NAMES environment variable, the problems
5804  # vanish in a puff of smoke.
5805  if test "X${COLLECT_NAMES+set}" != Xset; then
5806    COLLECT_NAMES=
5807    export COLLECT_NAMES
5808  fi
5809  ;;
5810esac
5811
5812# Sed substitution that helps us do robust quoting.  It backslashifies
5813# metacharacters that are still active within double-quoted strings.
5814Xsed='sed -e 1s/^X//'
5815sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5816
5817# Same as above, but do not quote variable references.
5818double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5819
5820# Sed substitution to delay expansion of an escaped shell variable in a
5821# double_quote_subst'ed string.
5822delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5823
5824# Sed substitution to avoid accidental globbing in evaled expressions
5825no_glob_subst='s/\*/\\\*/g'
5826
5827# Constants:
5828rm="rm -f"
5829
5830# Global variables:
5831default_ofile=libtool
5832can_build_shared=yes
5833
5834# All known linkers require a `.a' archive for static linking (except MSVC,
5835# which needs '.lib').
5836libext=a
5837ltmain="$ac_aux_dir/ltmain.sh"
5838ofile="$default_ofile"
5839with_gnu_ld="$lt_cv_prog_gnu_ld"
5840
5841if test -n "$ac_tool_prefix"; then
5842  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5843set dummy ${ac_tool_prefix}ar; ac_word=$2
5844echo "$as_me:$LINENO: checking for $ac_word" >&5
5845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5846if test "${ac_cv_prog_AR+set}" = set; then
5847  echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849  if test -n "$AR"; then
5850  ac_cv_prog_AR="$AR" # Let the user override the test.
5851else
5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH
5854do
5855  IFS=$as_save_IFS
5856  test -z "$as_dir" && as_dir=.
5857  for ac_exec_ext in '' $ac_executable_extensions; do
5858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859    ac_cv_prog_AR="${ac_tool_prefix}ar"
5860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861    break 2
5862  fi
5863done
5864done
5865
5866fi
5867fi
5868AR=$ac_cv_prog_AR
5869if test -n "$AR"; then
5870  echo "$as_me:$LINENO: result: $AR" >&5
5871echo "${ECHO_T}$AR" >&6
5872else
5873  echo "$as_me:$LINENO: result: no" >&5
5874echo "${ECHO_T}no" >&6
5875fi
5876
5877fi
5878if test -z "$ac_cv_prog_AR"; then
5879  ac_ct_AR=$AR
5880  # Extract the first word of "ar", so it can be a program name with args.
5881set dummy ar; ac_word=$2
5882echo "$as_me:$LINENO: checking for $ac_word" >&5
5883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5884if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5885  echo $ECHO_N "(cached) $ECHO_C" >&6
5886else
5887  if test -n "$ac_ct_AR"; then
5888  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5889else
5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891for as_dir in $PATH
5892do
5893  IFS=$as_save_IFS
5894  test -z "$as_dir" && as_dir=.
5895  for ac_exec_ext in '' $ac_executable_extensions; do
5896  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897    ac_cv_prog_ac_ct_AR="ar"
5898    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899    break 2
5900  fi
5901done
5902done
5903
5904  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5905fi
5906fi
5907ac_ct_AR=$ac_cv_prog_ac_ct_AR
5908if test -n "$ac_ct_AR"; then
5909  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5910echo "${ECHO_T}$ac_ct_AR" >&6
5911else
5912  echo "$as_me:$LINENO: result: no" >&5
5913echo "${ECHO_T}no" >&6
5914fi
5915
5916  AR=$ac_ct_AR
5917else
5918  AR="$ac_cv_prog_AR"
5919fi
5920
5921if test -n "$ac_tool_prefix"; then
5922  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5923set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5924echo "$as_me:$LINENO: checking for $ac_word" >&5
5925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926if test "${ac_cv_prog_RANLIB+set}" = set; then
5927  echo $ECHO_N "(cached) $ECHO_C" >&6
5928else
5929  if test -n "$RANLIB"; then
5930  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935  IFS=$as_save_IFS
5936  test -z "$as_dir" && as_dir=.
5937  for ac_exec_ext in '' $ac_executable_extensions; do
5938  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5940    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941    break 2
5942  fi
5943done
5944done
5945
5946fi
5947fi
5948RANLIB=$ac_cv_prog_RANLIB
5949if test -n "$RANLIB"; then
5950  echo "$as_me:$LINENO: result: $RANLIB" >&5
5951echo "${ECHO_T}$RANLIB" >&6
5952else
5953  echo "$as_me:$LINENO: result: no" >&5
5954echo "${ECHO_T}no" >&6
5955fi
5956
5957fi
5958if test -z "$ac_cv_prog_RANLIB"; then
5959  ac_ct_RANLIB=$RANLIB
5960  # Extract the first word of "ranlib", so it can be a program name with args.
5961set dummy ranlib; ac_word=$2
5962echo "$as_me:$LINENO: checking for $ac_word" >&5
5963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5964if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5965  echo $ECHO_N "(cached) $ECHO_C" >&6
5966else
5967  if test -n "$ac_ct_RANLIB"; then
5968  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5969else
5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973  IFS=$as_save_IFS
5974  test -z "$as_dir" && as_dir=.
5975  for ac_exec_ext in '' $ac_executable_extensions; do
5976  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977    ac_cv_prog_ac_ct_RANLIB="ranlib"
5978    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979    break 2
5980  fi
5981done
5982done
5983
5984  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5985fi
5986fi
5987ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5988if test -n "$ac_ct_RANLIB"; then
5989  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5990echo "${ECHO_T}$ac_ct_RANLIB" >&6
5991else
5992  echo "$as_me:$LINENO: result: no" >&5
5993echo "${ECHO_T}no" >&6
5994fi
5995
5996  RANLIB=$ac_ct_RANLIB
5997else
5998  RANLIB="$ac_cv_prog_RANLIB"
5999fi
6000
6001if test -n "$ac_tool_prefix"; then
6002  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6003set dummy ${ac_tool_prefix}strip; ac_word=$2
6004echo "$as_me:$LINENO: checking for $ac_word" >&5
6005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6006if test "${ac_cv_prog_STRIP+set}" = set; then
6007  echo $ECHO_N "(cached) $ECHO_C" >&6
6008else
6009  if test -n "$STRIP"; then
6010  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6011else
6012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013for as_dir in $PATH
6014do
6015  IFS=$as_save_IFS
6016  test -z "$as_dir" && as_dir=.
6017  for ac_exec_ext in '' $ac_executable_extensions; do
6018  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6019    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6020    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021    break 2
6022  fi
6023done
6024done
6025
6026fi
6027fi
6028STRIP=$ac_cv_prog_STRIP
6029if test -n "$STRIP"; then
6030  echo "$as_me:$LINENO: result: $STRIP" >&5
6031echo "${ECHO_T}$STRIP" >&6
6032else
6033  echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6
6035fi
6036
6037fi
6038if test -z "$ac_cv_prog_STRIP"; then
6039  ac_ct_STRIP=$STRIP
6040  # Extract the first word of "strip", so it can be a program name with args.
6041set dummy strip; ac_word=$2
6042echo "$as_me:$LINENO: checking for $ac_word" >&5
6043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6044if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6045  echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
6047  if test -n "$ac_ct_STRIP"; then
6048  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6049else
6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053  IFS=$as_save_IFS
6054  test -z "$as_dir" && as_dir=.
6055  for ac_exec_ext in '' $ac_executable_extensions; do
6056  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057    ac_cv_prog_ac_ct_STRIP="strip"
6058    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059    break 2
6060  fi
6061done
6062done
6063
6064  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6065fi
6066fi
6067ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6068if test -n "$ac_ct_STRIP"; then
6069  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6070echo "${ECHO_T}$ac_ct_STRIP" >&6
6071else
6072  echo "$as_me:$LINENO: result: no" >&5
6073echo "${ECHO_T}no" >&6
6074fi
6075
6076  STRIP=$ac_ct_STRIP
6077else
6078  STRIP="$ac_cv_prog_STRIP"
6079fi
6080
6081
6082old_CC="$CC"
6083old_CFLAGS="$CFLAGS"
6084
6085# Set sane defaults for various variables
6086test -z "$AR" && AR=ar
6087test -z "$AR_FLAGS" && AR_FLAGS=cru
6088test -z "$AS" && AS=as
6089test -z "$CC" && CC=cc
6090test -z "$LTCC" && LTCC=$CC
6091test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6092test -z "$DLLTOOL" && DLLTOOL=dlltool
6093test -z "$LD" && LD=ld
6094test -z "$LN_S" && LN_S="ln -s"
6095test -z "$MAGIC_CMD" && MAGIC_CMD=file
6096test -z "$NM" && NM=nm
6097test -z "$SED" && SED=sed
6098test -z "$OBJDUMP" && OBJDUMP=objdump
6099test -z "$RANLIB" && RANLIB=:
6100test -z "$STRIP" && STRIP=:
6101test -z "$ac_objext" && ac_objext=o
6102
6103# Determine commands to create old-style static archives.
6104old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6105old_postinstall_cmds='chmod 644 $oldlib'
6106old_postuninstall_cmds=
6107
6108if test -n "$RANLIB"; then
6109  case $host_os in
6110  openbsd*)
6111    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6112    ;;
6113  *)
6114    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6115    ;;
6116  esac
6117  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6118fi
6119
6120for cc_temp in $compiler""; do
6121  case $cc_temp in
6122    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6123    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6124    \-*) ;;
6125    *) break;;
6126  esac
6127done
6128cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6129
6130
6131# Only perform the check for file, if the check method requires it
6132case $deplibs_check_method in
6133file_magic*)
6134  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6135    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6136echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6137if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6138  echo $ECHO_N "(cached) $ECHO_C" >&6
6139else
6140  case $MAGIC_CMD in
6141[\\/*] |  ?:[\\/]*)
6142  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6143  ;;
6144*)
6145  lt_save_MAGIC_CMD="$MAGIC_CMD"
6146  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6147  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6148  for ac_dir in $ac_dummy; do
6149    IFS="$lt_save_ifs"
6150    test -z "$ac_dir" && ac_dir=.
6151    if test -f $ac_dir/${ac_tool_prefix}file; then
6152      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6153      if test -n "$file_magic_test_file"; then
6154	case $deplibs_check_method in
6155	"file_magic "*)
6156	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6157	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6158	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6159	    $EGREP "$file_magic_regex" > /dev/null; then
6160	    :
6161	  else
6162	    cat <<EOF 1>&2
6163
6164*** Warning: the command libtool uses to detect shared libraries,
6165*** $file_magic_cmd, produces output that libtool cannot recognize.
6166*** The result is that libtool may fail to recognize shared libraries
6167*** as such.  This will affect the creation of libtool libraries that
6168*** depend on shared libraries, but programs linked with such libtool
6169*** libraries will work regardless of this problem.  Nevertheless, you
6170*** may want to report the problem to your system manager and/or to
6171*** bug-libtool@gnu.org
6172
6173EOF
6174	  fi ;;
6175	esac
6176      fi
6177      break
6178    fi
6179  done
6180  IFS="$lt_save_ifs"
6181  MAGIC_CMD="$lt_save_MAGIC_CMD"
6182  ;;
6183esac
6184fi
6185
6186MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6187if test -n "$MAGIC_CMD"; then
6188  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6189echo "${ECHO_T}$MAGIC_CMD" >&6
6190else
6191  echo "$as_me:$LINENO: result: no" >&5
6192echo "${ECHO_T}no" >&6
6193fi
6194
6195if test -z "$lt_cv_path_MAGIC_CMD"; then
6196  if test -n "$ac_tool_prefix"; then
6197    echo "$as_me:$LINENO: checking for file" >&5
6198echo $ECHO_N "checking for file... $ECHO_C" >&6
6199if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6200  echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202  case $MAGIC_CMD in
6203[\\/*] |  ?:[\\/]*)
6204  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6205  ;;
6206*)
6207  lt_save_MAGIC_CMD="$MAGIC_CMD"
6208  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6209  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6210  for ac_dir in $ac_dummy; do
6211    IFS="$lt_save_ifs"
6212    test -z "$ac_dir" && ac_dir=.
6213    if test -f $ac_dir/file; then
6214      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6215      if test -n "$file_magic_test_file"; then
6216	case $deplibs_check_method in
6217	"file_magic "*)
6218	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6219	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6220	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6221	    $EGREP "$file_magic_regex" > /dev/null; then
6222	    :
6223	  else
6224	    cat <<EOF 1>&2
6225
6226*** Warning: the command libtool uses to detect shared libraries,
6227*** $file_magic_cmd, produces output that libtool cannot recognize.
6228*** The result is that libtool may fail to recognize shared libraries
6229*** as such.  This will affect the creation of libtool libraries that
6230*** depend on shared libraries, but programs linked with such libtool
6231*** libraries will work regardless of this problem.  Nevertheless, you
6232*** may want to report the problem to your system manager and/or to
6233*** bug-libtool@gnu.org
6234
6235EOF
6236	  fi ;;
6237	esac
6238      fi
6239      break
6240    fi
6241  done
6242  IFS="$lt_save_ifs"
6243  MAGIC_CMD="$lt_save_MAGIC_CMD"
6244  ;;
6245esac
6246fi
6247
6248MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6249if test -n "$MAGIC_CMD"; then
6250  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6251echo "${ECHO_T}$MAGIC_CMD" >&6
6252else
6253  echo "$as_me:$LINENO: result: no" >&5
6254echo "${ECHO_T}no" >&6
6255fi
6256
6257  else
6258    MAGIC_CMD=:
6259  fi
6260fi
6261
6262  fi
6263  ;;
6264esac
6265
6266enable_dlopen=no
6267enable_win32_dll=yes
6268
6269# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6270if test "${enable_libtool_lock+set}" = set; then
6271  enableval="$enable_libtool_lock"
6272
6273fi;
6274test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6275
6276
6277# Check whether --with-pic or --without-pic was given.
6278if test "${with_pic+set}" = set; then
6279  withval="$with_pic"
6280  pic_mode="$withval"
6281else
6282  pic_mode=default
6283fi;
6284test -z "$pic_mode" && pic_mode=default
6285
6286# Use C for the default configuration in the libtool script
6287tagname=
6288lt_save_CC="$CC"
6289ac_ext=c
6290ac_cpp='$CPP $CPPFLAGS'
6291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6293ac_compiler_gnu=$ac_cv_c_compiler_gnu
6294
6295
6296# Source file extension for C test sources.
6297ac_ext=c
6298
6299# Object file extension for compiled C test sources.
6300objext=o
6301objext=$objext
6302
6303# Code to be used in simple compile tests
6304lt_simple_compile_test_code="int some_variable = 0;\n"
6305
6306# Code to be used in simple link tests
6307lt_simple_link_test_code='int main(){return(0);}\n'
6308
6309
6310# If no C compiler was specified, use CC.
6311LTCC=${LTCC-"$CC"}
6312
6313# If no C compiler flags were specified, use CFLAGS.
6314LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6315
6316# Allow CC to be a program name with arguments.
6317compiler=$CC
6318
6319
6320# save warnings/boilerplate of simple test code
6321ac_outfile=conftest.$ac_objext
6322printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6323eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6324_lt_compiler_boilerplate=`cat conftest.err`
6325$rm conftest*
6326
6327ac_outfile=conftest.$ac_objext
6328printf "$lt_simple_link_test_code" >conftest.$ac_ext
6329eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6330_lt_linker_boilerplate=`cat conftest.err`
6331$rm conftest*
6332
6333
6334## CAVEAT EMPTOR:
6335## There is no encapsulation within the following macros, do not change
6336## the running order or otherwise move them around unless you know exactly
6337## what you are doing...
6338
6339lt_prog_compiler_no_builtin_flag=
6340
6341if test "$GCC" = yes; then
6342  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6343
6344
6345echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6346echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6347if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6348  echo $ECHO_N "(cached) $ECHO_C" >&6
6349else
6350  lt_cv_prog_compiler_rtti_exceptions=no
6351  ac_outfile=conftest.$ac_objext
6352   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6353   lt_compiler_flag="-fno-rtti -fno-exceptions"
6354   # Insert the option either (1) after the last *FLAGS variable, or
6355   # (2) before a word containing "conftest.", or (3) at the end.
6356   # Note that $ac_compile itself does not contain backslashes and begins
6357   # with a dollar sign (not a hyphen), so the echo should work correctly.
6358   # The option is referenced via a variable to avoid confusing sed.
6359   lt_compile=`echo "$ac_compile" | $SED \
6360   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6361   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6362   -e 's:$: $lt_compiler_flag:'`
6363   (eval echo "\"\$as_me:6363: $lt_compile\"" >&5)
6364   (eval "$lt_compile" 2>conftest.err)
6365   ac_status=$?
6366   cat conftest.err >&5
6367   echo "$as_me:6367: \$? = $ac_status" >&5
6368   if (exit $ac_status) && test -s "$ac_outfile"; then
6369     # The compiler can only warn and ignore the option if not recognized
6370     # So say no if there are warnings other than the usual output.
6371     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6372     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6373     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6374       lt_cv_prog_compiler_rtti_exceptions=yes
6375     fi
6376   fi
6377   $rm conftest*
6378
6379fi
6380echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6381echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6382
6383if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6384    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6385else
6386    :
6387fi
6388
6389fi
6390
6391lt_prog_compiler_wl=
6392lt_prog_compiler_pic=
6393lt_prog_compiler_static=
6394
6395echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6396echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6397
6398  if test "$GCC" = yes; then
6399    lt_prog_compiler_wl='-Wl,'
6400    lt_prog_compiler_static='-static'
6401
6402    case $host_os in
6403      aix*)
6404      # All AIX code is PIC.
6405      if test "$host_cpu" = ia64; then
6406	# AIX 5 now supports IA64 processor
6407	lt_prog_compiler_static='-Bstatic'
6408      fi
6409      ;;
6410
6411    amigaos*)
6412      # FIXME: we need at least 68020 code to build shared libraries, but
6413      # adding the `-m68020' flag to GCC prevents building anything better,
6414      # like `-m68040'.
6415      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6416      ;;
6417
6418    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6419      # PIC is the default for these OSes.
6420      ;;
6421
6422    mingw* | pw32* | os2*)
6423      # This hack is so that the source file can tell whether it is being
6424      # built for inclusion in a dll (and should export symbols for example).
6425      lt_prog_compiler_pic='-DDLL_EXPORT'
6426      ;;
6427
6428    darwin* | rhapsody*)
6429      # PIC is the default on this platform
6430      # Common symbols not allowed in MH_DYLIB files
6431      lt_prog_compiler_pic='-fno-common'
6432      ;;
6433
6434    interix3*)
6435      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6436      # Instead, we relocate shared libraries at runtime.
6437      ;;
6438
6439    msdosdjgpp*)
6440      # Just because we use GCC doesn't mean we suddenly get shared libraries
6441      # on systems that don't support them.
6442      lt_prog_compiler_can_build_shared=no
6443      enable_shared=no
6444      ;;
6445
6446    sysv4*MP*)
6447      if test -d /usr/nec; then
6448	lt_prog_compiler_pic=-Kconform_pic
6449      fi
6450      ;;
6451
6452    hpux*)
6453      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6454      # not for PA HP-UX.
6455      case $host_cpu in
6456      hppa*64*|ia64*)
6457	# +Z the default
6458	;;
6459      *)
6460	lt_prog_compiler_pic='-fPIC'
6461	;;
6462      esac
6463      ;;
6464
6465    *)
6466      lt_prog_compiler_pic='-fPIC'
6467      ;;
6468    esac
6469  else
6470    # PORTME Check for flag to pass linker flags through the system compiler.
6471    case $host_os in
6472    aix*)
6473      lt_prog_compiler_wl='-Wl,'
6474      if test "$host_cpu" = ia64; then
6475	# AIX 5 now supports IA64 processor
6476	lt_prog_compiler_static='-Bstatic'
6477      else
6478	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6479      fi
6480      ;;
6481      darwin*)
6482        # PIC is the default on this platform
6483        # Common symbols not allowed in MH_DYLIB files
6484       case $cc_basename in
6485         xlc*)
6486         lt_prog_compiler_pic='-qnocommon'
6487         lt_prog_compiler_wl='-Wl,'
6488         ;;
6489       esac
6490       ;;
6491
6492    mingw* | pw32* | os2*)
6493      # This hack is so that the source file can tell whether it is being
6494      # built for inclusion in a dll (and should export symbols for example).
6495      lt_prog_compiler_pic='-DDLL_EXPORT'
6496      ;;
6497
6498    hpux9* | hpux10* | hpux11*)
6499      lt_prog_compiler_wl='-Wl,'
6500      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6501      # not for PA HP-UX.
6502      case $host_cpu in
6503      hppa*64*|ia64*)
6504	# +Z the default
6505	;;
6506      *)
6507	lt_prog_compiler_pic='+Z'
6508	;;
6509      esac
6510      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6511      lt_prog_compiler_static='${wl}-a ${wl}archive'
6512      ;;
6513
6514    irix5* | irix6* | nonstopux*)
6515      lt_prog_compiler_wl='-Wl,'
6516      # PIC (with -KPIC) is the default.
6517      lt_prog_compiler_static='-non_shared'
6518      ;;
6519
6520    newsos6)
6521      lt_prog_compiler_pic='-KPIC'
6522      lt_prog_compiler_static='-Bstatic'
6523      ;;
6524
6525    linux*)
6526      case $cc_basename in
6527      icc* | ecc*)
6528	lt_prog_compiler_wl='-Wl,'
6529	lt_prog_compiler_pic='-KPIC'
6530	lt_prog_compiler_static='-static'
6531        ;;
6532      pgcc* | pgf77* | pgf90* | pgf95*)
6533        # Portland Group compilers (*not* the Pentium gcc compiler,
6534	# which looks to be a dead project)
6535	lt_prog_compiler_wl='-Wl,'
6536	lt_prog_compiler_pic='-fpic'
6537	lt_prog_compiler_static='-Bstatic'
6538        ;;
6539      ccc*)
6540        lt_prog_compiler_wl='-Wl,'
6541        # All Alpha code is PIC.
6542        lt_prog_compiler_static='-non_shared'
6543        ;;
6544      esac
6545      ;;
6546
6547    osf3* | osf4* | osf5*)
6548      lt_prog_compiler_wl='-Wl,'
6549      # All OSF/1 code is PIC.
6550      lt_prog_compiler_static='-non_shared'
6551      ;;
6552
6553    solaris*)
6554      lt_prog_compiler_pic='-KPIC'
6555      lt_prog_compiler_static='-Bstatic'
6556      case $cc_basename in
6557      f77* | f90* | f95*)
6558	lt_prog_compiler_wl='-Qoption ld ';;
6559      *)
6560	lt_prog_compiler_wl='-Wl,';;
6561      esac
6562      ;;
6563
6564    sunos4*)
6565      lt_prog_compiler_wl='-Qoption ld '
6566      lt_prog_compiler_pic='-PIC'
6567      lt_prog_compiler_static='-Bstatic'
6568      ;;
6569
6570    sysv4 | sysv4.2uw2* | sysv4.3*)
6571      lt_prog_compiler_wl='-Wl,'
6572      lt_prog_compiler_pic='-KPIC'
6573      lt_prog_compiler_static='-Bstatic'
6574      ;;
6575
6576    sysv4*MP*)
6577      if test -d /usr/nec ;then
6578	lt_prog_compiler_pic='-Kconform_pic'
6579	lt_prog_compiler_static='-Bstatic'
6580      fi
6581      ;;
6582
6583    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6584      lt_prog_compiler_wl='-Wl,'
6585      lt_prog_compiler_pic='-KPIC'
6586      lt_prog_compiler_static='-Bstatic'
6587      ;;
6588
6589    unicos*)
6590      lt_prog_compiler_wl='-Wl,'
6591      lt_prog_compiler_can_build_shared=no
6592      ;;
6593
6594    uts4*)
6595      lt_prog_compiler_pic='-pic'
6596      lt_prog_compiler_static='-Bstatic'
6597      ;;
6598
6599    *)
6600      lt_prog_compiler_can_build_shared=no
6601      ;;
6602    esac
6603  fi
6604
6605echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6606echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6607
6608#
6609# Check to make sure the PIC flag actually works.
6610#
6611if test -n "$lt_prog_compiler_pic"; then
6612
6613echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6614echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6615if test "${lt_prog_compiler_pic_works+set}" = set; then
6616  echo $ECHO_N "(cached) $ECHO_C" >&6
6617else
6618  lt_prog_compiler_pic_works=no
6619  ac_outfile=conftest.$ac_objext
6620   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6621   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6622   # Insert the option either (1) after the last *FLAGS variable, or
6623   # (2) before a word containing "conftest.", or (3) at the end.
6624   # Note that $ac_compile itself does not contain backslashes and begins
6625   # with a dollar sign (not a hyphen), so the echo should work correctly.
6626   # The option is referenced via a variable to avoid confusing sed.
6627   lt_compile=`echo "$ac_compile" | $SED \
6628   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6629   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6630   -e 's:$: $lt_compiler_flag:'`
6631   (eval echo "\"\$as_me:6631: $lt_compile\"" >&5)
6632   (eval "$lt_compile" 2>conftest.err)
6633   ac_status=$?
6634   cat conftest.err >&5
6635   echo "$as_me:6635: \$? = $ac_status" >&5
6636   if (exit $ac_status) && test -s "$ac_outfile"; then
6637     # The compiler can only warn and ignore the option if not recognized
6638     # So say no if there are warnings other than the usual output.
6639     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6640     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6641     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6642       lt_prog_compiler_pic_works=yes
6643     fi
6644   fi
6645   $rm conftest*
6646
6647fi
6648echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6649echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6650
6651if test x"$lt_prog_compiler_pic_works" = xyes; then
6652    case $lt_prog_compiler_pic in
6653     "" | " "*) ;;
6654     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6655     esac
6656else
6657    lt_prog_compiler_pic=
6658     lt_prog_compiler_can_build_shared=no
6659fi
6660
6661fi
6662case $host_os in
6663  # For platforms which do not support PIC, -DPIC is meaningless:
6664  *djgpp*)
6665    lt_prog_compiler_pic=
6666    ;;
6667  *)
6668    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6669    ;;
6670esac
6671
6672#
6673# Check to make sure the static flag actually works.
6674#
6675wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6676echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6677echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6678if test "${lt_prog_compiler_static_works+set}" = set; then
6679  echo $ECHO_N "(cached) $ECHO_C" >&6
6680else
6681  lt_prog_compiler_static_works=no
6682   save_LDFLAGS="$LDFLAGS"
6683   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6684   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6685   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6686     # The linker can only warn and ignore the option if not recognized
6687     # So say no if there are warnings
6688     if test -s conftest.err; then
6689       # Append any errors to the config.log.
6690       cat conftest.err 1>&5
6691       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6692       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6693       if diff conftest.exp conftest.er2 >/dev/null; then
6694         lt_prog_compiler_static_works=yes
6695       fi
6696     else
6697       lt_prog_compiler_static_works=yes
6698     fi
6699   fi
6700   $rm conftest*
6701   LDFLAGS="$save_LDFLAGS"
6702
6703fi
6704echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6705echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6706
6707if test x"$lt_prog_compiler_static_works" = xyes; then
6708    :
6709else
6710    lt_prog_compiler_static=
6711fi
6712
6713
6714echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6715echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6716if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6717  echo $ECHO_N "(cached) $ECHO_C" >&6
6718else
6719  lt_cv_prog_compiler_c_o=no
6720   $rm -r conftest 2>/dev/null
6721   mkdir conftest
6722   cd conftest
6723   mkdir out
6724   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6725
6726   lt_compiler_flag="-o out/conftest2.$ac_objext"
6727   # Insert the option either (1) after the last *FLAGS variable, or
6728   # (2) before a word containing "conftest.", or (3) at the end.
6729   # Note that $ac_compile itself does not contain backslashes and begins
6730   # with a dollar sign (not a hyphen), so the echo should work correctly.
6731   lt_compile=`echo "$ac_compile" | $SED \
6732   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6733   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6734   -e 's:$: $lt_compiler_flag:'`
6735   (eval echo "\"\$as_me:6735: $lt_compile\"" >&5)
6736   (eval "$lt_compile" 2>out/conftest.err)
6737   ac_status=$?
6738   cat out/conftest.err >&5
6739   echo "$as_me:6739: \$? = $ac_status" >&5
6740   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6741   then
6742     # The compiler can only warn and ignore the option if not recognized
6743     # So say no if there are warnings
6744     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6745     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6746     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6747       lt_cv_prog_compiler_c_o=yes
6748     fi
6749   fi
6750   chmod u+w . 2>&5
6751   $rm conftest*
6752   # SGI C++ compiler will create directory out/ii_files/ for
6753   # template instantiation
6754   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6755   $rm out/* && rmdir out
6756   cd ..
6757   rmdir conftest
6758   $rm conftest*
6759
6760fi
6761echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6762echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6763
6764
6765hard_links="nottested"
6766if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6767  # do not overwrite the value of need_locks provided by the user
6768  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6769echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6770  hard_links=yes
6771  $rm conftest*
6772  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6773  touch conftest.a
6774  ln conftest.a conftest.b 2>&5 || hard_links=no
6775  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6776  echo "$as_me:$LINENO: result: $hard_links" >&5
6777echo "${ECHO_T}$hard_links" >&6
6778  if test "$hard_links" = no; then
6779    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6780echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6781    need_locks=warn
6782  fi
6783else
6784  need_locks=no
6785fi
6786
6787echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6788echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6789
6790  runpath_var=
6791  allow_undefined_flag=
6792  enable_shared_with_static_runtimes=no
6793  archive_cmds=
6794  archive_expsym_cmds=
6795  old_archive_From_new_cmds=
6796  old_archive_from_expsyms_cmds=
6797  export_dynamic_flag_spec=
6798  whole_archive_flag_spec=
6799  thread_safe_flag_spec=
6800  hardcode_libdir_flag_spec=
6801  hardcode_libdir_flag_spec_ld=
6802  hardcode_libdir_separator=
6803  hardcode_direct=no
6804  hardcode_minus_L=no
6805  hardcode_shlibpath_var=unsupported
6806  link_all_deplibs=unknown
6807  hardcode_automatic=no
6808  module_cmds=
6809  module_expsym_cmds=
6810  always_export_symbols=no
6811  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6812  # include_expsyms should be a list of space-separated symbols to be *always*
6813  # included in the symbol list
6814  include_expsyms=
6815  # exclude_expsyms can be an extended regexp of symbols to exclude
6816  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6817  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6818  # as well as any symbol that contains `d'.
6819  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6820  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6821  # platforms (ab)use it in PIC code, but their linkers get confused if
6822  # the symbol is explicitly referenced.  Since portable code cannot
6823  # rely on this symbol name, it's probably fine to never include it in
6824  # preloaded symbol tables.
6825  extract_expsyms_cmds=
6826  # Just being paranoid about ensuring that cc_basename is set.
6827  for cc_temp in $compiler""; do
6828  case $cc_temp in
6829    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6830    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6831    \-*) ;;
6832    *) break;;
6833  esac
6834done
6835cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6836
6837  case $host_os in
6838  cygwin* | mingw* | pw32*)
6839    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6840    # When not using gcc, we currently assume that we are using
6841    # Microsoft Visual C++.
6842    if test "$GCC" != yes; then
6843      with_gnu_ld=no
6844    fi
6845    ;;
6846  interix*)
6847    # we just hope/assume this is gcc and not c89 (= MSVC++)
6848    with_gnu_ld=yes
6849    ;;
6850  openbsd*)
6851    with_gnu_ld=no
6852    ;;
6853  esac
6854
6855  ld_shlibs=yes
6856  if test "$with_gnu_ld" = yes; then
6857    # If archive_cmds runs LD, not CC, wlarc should be empty
6858    wlarc='${wl}'
6859
6860    # Set some defaults for GNU ld with shared library support. These
6861    # are reset later if shared libraries are not supported. Putting them
6862    # here allows them to be overridden if necessary.
6863    runpath_var=LD_RUN_PATH
6864    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6865    export_dynamic_flag_spec='${wl}--export-dynamic'
6866    # ancient GNU ld didn't support --whole-archive et. al.
6867    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6868	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6869      else
6870  	whole_archive_flag_spec=
6871    fi
6872    supports_anon_versioning=no
6873    case `$LD -v 2>/dev/null` in
6874      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6875      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6876      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6877      *\ 2.11.*) ;; # other 2.11 versions
6878      *) supports_anon_versioning=yes ;;
6879    esac
6880
6881    # See if GNU ld supports shared libraries.
6882    case $host_os in
6883    aix3* | aix4* | aix5*)
6884      # On AIX/PPC, the GNU linker is very broken
6885      if test "$host_cpu" != ia64; then
6886	ld_shlibs=no
6887	cat <<EOF 1>&2
6888
6889*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6890*** to be unable to reliably create shared libraries on AIX.
6891*** Therefore, libtool is disabling shared libraries support.  If you
6892*** really care for shared libraries, you may want to modify your PATH
6893*** so that a non-GNU linker is found, and then restart.
6894
6895EOF
6896      fi
6897      ;;
6898
6899    amigaos*)
6900      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)'
6901      hardcode_libdir_flag_spec='-L$libdir'
6902      hardcode_minus_L=yes
6903
6904      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6905      # that the semantics of dynamic libraries on AmigaOS, at least up
6906      # to version 4, is to share data among multiple programs linked
6907      # with the same dynamic library.  Since this doesn't match the
6908      # behavior of shared libraries on other platforms, we can't use
6909      # them.
6910      ld_shlibs=no
6911      ;;
6912
6913    beos*)
6914      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6915	allow_undefined_flag=unsupported
6916	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6917	# support --undefined.  This deserves some investigation.  FIXME
6918	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6919      else
6920	ld_shlibs=no
6921      fi
6922      ;;
6923
6924    cygwin* | mingw* | pw32*)
6925      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6926      # as there is no search path for DLLs.
6927      hardcode_libdir_flag_spec='-L$libdir'
6928      allow_undefined_flag=unsupported
6929      always_export_symbols=no
6930      enable_shared_with_static_runtimes=yes
6931      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6932
6933      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6934        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6935	# If the export-symbols file already is a .def file (1st line
6936	# is EXPORTS), use it as is; otherwise, prepend...
6937	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6938	  cp $export_symbols $output_objdir/$soname.def;
6939	else
6940	  echo EXPORTS > $output_objdir/$soname.def;
6941	  cat $export_symbols >> $output_objdir/$soname.def;
6942	fi~
6943	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6944      else
6945	ld_shlibs=no
6946      fi
6947      ;;
6948
6949    interix3*)
6950      hardcode_direct=no
6951      hardcode_shlibpath_var=no
6952      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6953      export_dynamic_flag_spec='${wl}-E'
6954      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6955      # Instead, shared libraries are loaded at an image base (0x10000000 by
6956      # default) and relocated if they conflict, which is a slow very memory
6957      # consuming and fragmenting process.  To avoid this, we pick a random,
6958      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6959      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6960      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6961      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'
6962      ;;
6963
6964    linux*)
6965      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6966	tmp_addflag=
6967	case $cc_basename,$host_cpu in
6968	pgcc*)				# Portland Group C compiler
6969	  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'
6970	  tmp_addflag=' $pic_flag'
6971	  ;;
6972	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6973	  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'
6974	  tmp_addflag=' $pic_flag -Mnomain' ;;
6975	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6976	  tmp_addflag=' -i_dynamic' ;;
6977	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6978	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6979	ifc* | ifort*)			# Intel Fortran compiler
6980	  tmp_addflag=' -nofor_main' ;;
6981	esac
6982	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6983
6984	if test $supports_anon_versioning = yes; then
6985	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6986  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6987  $echo "local: *; };" >> $output_objdir/$libname.ver~
6988	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6989	fi
6990      else
6991	ld_shlibs=no
6992      fi
6993      ;;
6994
6995    netbsd*)
6996      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6997	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6998	wlarc=
6999      else
7000	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7001	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7002      fi
7003      ;;
7004
7005    solaris*)
7006      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7007	ld_shlibs=no
7008	cat <<EOF 1>&2
7009
7010*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7011*** create shared libraries on Solaris systems.  Therefore, libtool
7012*** is disabling shared libraries support.  We urge you to upgrade GNU
7013*** binutils to release 2.9.1 or newer.  Another option is to modify
7014*** your PATH or compiler configuration so that the native linker is
7015*** used, and then restart.
7016
7017EOF
7018      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7019	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7020	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7021      else
7022	ld_shlibs=no
7023      fi
7024      ;;
7025
7026    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7027      case `$LD -v 2>&1` in
7028        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7029	ld_shlibs=no
7030	cat <<_LT_EOF 1>&2
7031
7032*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7033*** reliably create shared libraries on SCO systems.  Therefore, libtool
7034*** is disabling shared libraries support.  We urge you to upgrade GNU
7035*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7036*** your PATH or compiler configuration so that the native linker is
7037*** used, and then restart.
7038
7039_LT_EOF
7040	;;
7041	*)
7042	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7043	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7044	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7045	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7046	  else
7047	    ld_shlibs=no
7048	  fi
7049	;;
7050      esac
7051      ;;
7052
7053    sunos4*)
7054      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7055      wlarc=
7056      hardcode_direct=yes
7057      hardcode_shlibpath_var=no
7058      ;;
7059
7060    *)
7061      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7062	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7063	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7064      else
7065	ld_shlibs=no
7066      fi
7067      ;;
7068    esac
7069
7070    if test "$ld_shlibs" = no; then
7071      runpath_var=
7072      hardcode_libdir_flag_spec=
7073      export_dynamic_flag_spec=
7074      whole_archive_flag_spec=
7075    fi
7076  else
7077    # PORTME fill in a description of your system's linker (not GNU ld)
7078    case $host_os in
7079    aix3*)
7080      allow_undefined_flag=unsupported
7081      always_export_symbols=yes
7082      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'
7083      # Note: this linker hardcodes the directories in LIBPATH if there
7084      # are no directories specified by -L.
7085      hardcode_minus_L=yes
7086      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7087	# Neither direct hardcoding nor static linking is supported with a
7088	# broken collect2.
7089	hardcode_direct=unsupported
7090      fi
7091      ;;
7092
7093    aix4* | aix5*)
7094      if test "$host_cpu" = ia64; then
7095	# On IA64, the linker does run time linking by default, so we don't
7096	# have to do anything special.
7097	aix_use_runtimelinking=no
7098	exp_sym_flag='-Bexport'
7099	no_entry_flag=""
7100      else
7101	# If we're using GNU nm, then we don't want the "-C" option.
7102	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7103	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7104	  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'
7105	else
7106	  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'
7107	fi
7108	aix_use_runtimelinking=no
7109
7110	# Test if we are trying to use run time linking or normal
7111	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7112	# need to do runtime linking.
7113	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7114	  for ld_flag in $LDFLAGS; do
7115  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7116  	    aix_use_runtimelinking=yes
7117  	    break
7118  	  fi
7119	  done
7120	  ;;
7121	esac
7122
7123	exp_sym_flag='-bexport'
7124	no_entry_flag='-bnoentry'
7125      fi
7126
7127      # When large executables or shared objects are built, AIX ld can
7128      # have problems creating the table of contents.  If linking a library
7129      # or program results in "error TOC overflow" add -mminimal-toc to
7130      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7131      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7132
7133      archive_cmds=''
7134      hardcode_direct=yes
7135      hardcode_libdir_separator=':'
7136      link_all_deplibs=yes
7137
7138      if test "$GCC" = yes; then
7139	case $host_os in aix4.[012]|aix4.[012].*)
7140	# We only want to do this on AIX 4.2 and lower, the check
7141	# below for broken collect2 doesn't work under 4.3+
7142	  collect2name=`${CC} -print-prog-name=collect2`
7143	  if test -f "$collect2name" && \
7144  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7145	  then
7146  	  # We have reworked collect2
7147  	  hardcode_direct=yes
7148	  else
7149  	  # We have old collect2
7150  	  hardcode_direct=unsupported
7151  	  # It fails to find uninstalled libraries when the uninstalled
7152  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7153  	  # to unsupported forces relinking
7154  	  hardcode_minus_L=yes
7155  	  hardcode_libdir_flag_spec='-L$libdir'
7156  	  hardcode_libdir_separator=
7157	  fi
7158	  ;;
7159	esac
7160	shared_flag='-shared'
7161	if test "$aix_use_runtimelinking" = yes; then
7162	  shared_flag="$shared_flag "'${wl}-G'
7163	fi
7164      else
7165	# not using gcc
7166	if test "$host_cpu" = ia64; then
7167  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7168  	# chokes on -Wl,-G. The following line is correct:
7169	  shared_flag='-G'
7170	else
7171	  if test "$aix_use_runtimelinking" = yes; then
7172	    shared_flag='${wl}-G'
7173	  else
7174	    shared_flag='${wl}-bM:SRE'
7175	  fi
7176	fi
7177      fi
7178
7179      # It seems that -bexpall does not export symbols beginning with
7180      # underscore (_), so it is better to generate a list of symbols to export.
7181      always_export_symbols=yes
7182      if test "$aix_use_runtimelinking" = yes; then
7183	# Warning - without using the other runtime loading flags (-brtl),
7184	# -berok will link without error, but may produce a broken library.
7185	allow_undefined_flag='-berok'
7186       # Determine the default libpath from the value encoded in an empty executable.
7187       cat >conftest.$ac_ext <<_ACEOF
7188/* confdefs.h.  */
7189_ACEOF
7190cat confdefs.h >>conftest.$ac_ext
7191cat >>conftest.$ac_ext <<_ACEOF
7192/* end confdefs.h.  */
7193
7194int
7195main ()
7196{
7197
7198  ;
7199  return 0;
7200}
7201_ACEOF
7202rm -f conftest.$ac_objext conftest$ac_exeext
7203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7204  (eval $ac_link) 2>conftest.er1
7205  ac_status=$?
7206  grep -v '^ *+' conftest.er1 >conftest.err
7207  rm -f conftest.er1
7208  cat conftest.err >&5
7209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210  (exit $ac_status); } &&
7211	 { ac_try='test -z "$ac_c_werror_flag"
7212			 || test ! -s conftest.err'
7213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214  (eval $ac_try) 2>&5
7215  ac_status=$?
7216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217  (exit $ac_status); }; } &&
7218	 { ac_try='test -s conftest$ac_exeext'
7219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220  (eval $ac_try) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); }; }; then
7224
7225aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7226}'`
7227# Check for a 64-bit object if we didn't find anything.
7228if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7229}'`; fi
7230else
7231  echo "$as_me: failed program was:" >&5
7232sed 's/^/| /' conftest.$ac_ext >&5
7233
7234fi
7235rm -f conftest.err conftest.$ac_objext \
7236      conftest$ac_exeext conftest.$ac_ext
7237if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7238
7239       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7240	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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7241       else
7242	if test "$host_cpu" = ia64; then
7243	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7244	  allow_undefined_flag="-z nodefs"
7245	  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"
7246	else
7247	 # Determine the default libpath from the value encoded in an empty executable.
7248	 cat >conftest.$ac_ext <<_ACEOF
7249/* confdefs.h.  */
7250_ACEOF
7251cat confdefs.h >>conftest.$ac_ext
7252cat >>conftest.$ac_ext <<_ACEOF
7253/* end confdefs.h.  */
7254
7255int
7256main ()
7257{
7258
7259  ;
7260  return 0;
7261}
7262_ACEOF
7263rm -f conftest.$ac_objext conftest$ac_exeext
7264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265  (eval $ac_link) 2>conftest.er1
7266  ac_status=$?
7267  grep -v '^ *+' conftest.er1 >conftest.err
7268  rm -f conftest.er1
7269  cat conftest.err >&5
7270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271  (exit $ac_status); } &&
7272	 { ac_try='test -z "$ac_c_werror_flag"
7273			 || test ! -s conftest.err'
7274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275  (eval $ac_try) 2>&5
7276  ac_status=$?
7277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278  (exit $ac_status); }; } &&
7279	 { ac_try='test -s conftest$ac_exeext'
7280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281  (eval $ac_try) 2>&5
7282  ac_status=$?
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); }; }; then
7285
7286aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7287}'`
7288# Check for a 64-bit object if we didn't find anything.
7289if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7290}'`; fi
7291else
7292  echo "$as_me: failed program was:" >&5
7293sed 's/^/| /' conftest.$ac_ext >&5
7294
7295fi
7296rm -f conftest.err conftest.$ac_objext \
7297      conftest$ac_exeext conftest.$ac_ext
7298if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7299
7300	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7301	  # Warning - without using the other run time loading flags,
7302	  # -berok will link without error, but may produce a broken library.
7303	  no_undefined_flag=' ${wl}-bernotok'
7304	  allow_undefined_flag=' ${wl}-berok'
7305	  # Exported symbols can be pulled into shared objects from archives
7306	  whole_archive_flag_spec='$convenience'
7307	  archive_cmds_need_lc=yes
7308	  # This is similar to how AIX traditionally builds its shared libraries.
7309	  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'
7310	fi
7311      fi
7312      ;;
7313
7314    amigaos*)
7315      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)'
7316      hardcode_libdir_flag_spec='-L$libdir'
7317      hardcode_minus_L=yes
7318      # see comment about different semantics on the GNU ld section
7319      ld_shlibs=no
7320      ;;
7321
7322    bsdi[45]*)
7323      export_dynamic_flag_spec=-rdynamic
7324      ;;
7325
7326    cygwin* | mingw* | pw32*)
7327      # When not using gcc, we currently assume that we are using
7328      # Microsoft Visual C++.
7329      # hardcode_libdir_flag_spec is actually meaningless, as there is
7330      # no search path for DLLs.
7331      hardcode_libdir_flag_spec=' '
7332      allow_undefined_flag=unsupported
7333      # Tell ltmain to make .lib files, not .a files.
7334      libext=lib
7335      # Tell ltmain to make .dll files, not .so files.
7336      shrext_cmds=".dll"
7337      # FIXME: Setting linknames here is a bad hack.
7338      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7339      # The linker will automatically build a .lib file if we build a DLL.
7340      old_archive_From_new_cmds='true'
7341      # FIXME: Should let the user specify the lib program.
7342      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7343      fix_srcfile_path='`cygpath -w "$srcfile"`'
7344      enable_shared_with_static_runtimes=yes
7345      ;;
7346
7347    darwin* | rhapsody*)
7348      case $host_os in
7349        rhapsody* | darwin1.[012])
7350         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7351         ;;
7352       *) # Darwin 1.3 on
7353         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7354           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7355         else
7356           case ${MACOSX_DEPLOYMENT_TARGET} in
7357             10.[012])
7358               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7359               ;;
7360             10.*)
7361               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7362               ;;
7363           esac
7364         fi
7365         ;;
7366      esac
7367      archive_cmds_need_lc=no
7368      hardcode_direct=no
7369      hardcode_automatic=yes
7370      hardcode_shlibpath_var=unsupported
7371      whole_archive_flag_spec=''
7372      link_all_deplibs=yes
7373    if test "$GCC" = yes ; then
7374    	output_verbose_link_cmd='echo'
7375        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7376      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7377      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7378      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
7379      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
7380    else
7381      case $cc_basename in
7382        xlc*)
7383         output_verbose_link_cmd='echo'
7384         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7385         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7386          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7387         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
7388          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
7389          ;;
7390       *)
7391         ld_shlibs=no
7392          ;;
7393      esac
7394    fi
7395      ;;
7396
7397    dgux*)
7398      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7399      hardcode_libdir_flag_spec='-L$libdir'
7400      hardcode_shlibpath_var=no
7401      ;;
7402
7403    freebsd1*)
7404      ld_shlibs=no
7405      ;;
7406
7407    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7408    # support.  Future versions do this automatically, but an explicit c++rt0.o
7409    # does not break anything, and helps significantly (at the cost of a little
7410    # extra space).
7411    freebsd2.2*)
7412      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7413      hardcode_libdir_flag_spec='-R$libdir'
7414      hardcode_direct=yes
7415      hardcode_shlibpath_var=no
7416      ;;
7417
7418    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7419    freebsd2*)
7420      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7421      hardcode_direct=yes
7422      hardcode_minus_L=yes
7423      hardcode_shlibpath_var=no
7424      ;;
7425
7426    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7427    freebsd* | kfreebsd*-gnu | dragonfly*)
7428      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7429      hardcode_libdir_flag_spec='-R$libdir'
7430      hardcode_direct=yes
7431      hardcode_shlibpath_var=no
7432      ;;
7433
7434    hpux9*)
7435      if test "$GCC" = yes; then
7436	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'
7437      else
7438	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'
7439      fi
7440      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7441      hardcode_libdir_separator=:
7442      hardcode_direct=yes
7443
7444      # hardcode_minus_L: Not really in the search PATH,
7445      # but as the default location of the library.
7446      hardcode_minus_L=yes
7447      export_dynamic_flag_spec='${wl}-E'
7448      ;;
7449
7450    hpux10*)
7451      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7452	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7453      else
7454	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7455      fi
7456      if test "$with_gnu_ld" = no; then
7457	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7458	hardcode_libdir_separator=:
7459
7460	hardcode_direct=yes
7461	export_dynamic_flag_spec='${wl}-E'
7462
7463	# hardcode_minus_L: Not really in the search PATH,
7464	# but as the default location of the library.
7465	hardcode_minus_L=yes
7466      fi
7467      ;;
7468
7469    hpux11*)
7470      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7471	case $host_cpu in
7472	hppa*64*)
7473	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7474	  ;;
7475	ia64*)
7476	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7477	  ;;
7478	*)
7479	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7480	  ;;
7481	esac
7482      else
7483	case $host_cpu in
7484	hppa*64*)
7485	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7486	  ;;
7487	ia64*)
7488	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7489	  ;;
7490	*)
7491	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7492	  ;;
7493	esac
7494      fi
7495      if test "$with_gnu_ld" = no; then
7496	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7497	hardcode_libdir_separator=:
7498
7499	case $host_cpu in
7500	hppa*64*|ia64*)
7501	  hardcode_libdir_flag_spec_ld='+b $libdir'
7502	  hardcode_direct=no
7503	  hardcode_shlibpath_var=no
7504	  ;;
7505	*)
7506	  hardcode_direct=yes
7507	  export_dynamic_flag_spec='${wl}-E'
7508
7509	  # hardcode_minus_L: Not really in the search PATH,
7510	  # but as the default location of the library.
7511	  hardcode_minus_L=yes
7512	  ;;
7513	esac
7514      fi
7515      ;;
7516
7517    irix5* | irix6* | nonstopux*)
7518      if test "$GCC" = yes; then
7519	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7520      else
7521	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7522	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7523      fi
7524      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7525      hardcode_libdir_separator=:
7526      link_all_deplibs=yes
7527      ;;
7528
7529    netbsd*)
7530      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7531	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7532      else
7533	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7534      fi
7535      hardcode_libdir_flag_spec='-R$libdir'
7536      hardcode_direct=yes
7537      hardcode_shlibpath_var=no
7538      ;;
7539
7540    newsos6)
7541      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7542      hardcode_direct=yes
7543      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7544      hardcode_libdir_separator=:
7545      hardcode_shlibpath_var=no
7546      ;;
7547
7548    openbsd*)
7549      hardcode_direct=yes
7550      hardcode_shlibpath_var=no
7551      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7552	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7553	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7554	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7555	export_dynamic_flag_spec='${wl}-E'
7556      else
7557       case $host_os in
7558	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7559	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7560	   hardcode_libdir_flag_spec='-R$libdir'
7561	   ;;
7562	 *)
7563	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7564	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7565	   ;;
7566       esac
7567      fi
7568      ;;
7569
7570    os2*)
7571      hardcode_libdir_flag_spec='-L$libdir'
7572      hardcode_minus_L=yes
7573      allow_undefined_flag=unsupported
7574      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'
7575      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7576      ;;
7577
7578    osf3*)
7579      if test "$GCC" = yes; then
7580	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7581	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7582      else
7583	allow_undefined_flag=' -expect_unresolved \*'
7584	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7585      fi
7586      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7587      hardcode_libdir_separator=:
7588      ;;
7589
7590    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7591      if test "$GCC" = yes; then
7592	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7593	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7594	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7595      else
7596	allow_undefined_flag=' -expect_unresolved \*'
7597	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7598	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7599	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7600
7601	# Both c and cxx compiler support -rpath directly
7602	hardcode_libdir_flag_spec='-rpath $libdir'
7603      fi
7604      hardcode_libdir_separator=:
7605      ;;
7606
7607    solaris*)
7608      no_undefined_flag=' -z text'
7609      if test "$GCC" = yes; then
7610	wlarc='${wl}'
7611	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7612	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7613	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7614      else
7615	wlarc=''
7616	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7617	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7618  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7619      fi
7620      hardcode_libdir_flag_spec='-R$libdir'
7621      hardcode_shlibpath_var=no
7622      case $host_os in
7623      solaris2.[0-5] | solaris2.[0-5].*) ;;
7624      *)
7625 	# The compiler driver will combine linker options so we
7626 	# cannot just pass the convience library names through
7627 	# without $wl, iff we do not link with $LD.
7628 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7629 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7630 	case $wlarc in
7631 	'')
7632 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7633 	*)
7634 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7635 	esac ;;
7636      esac
7637      link_all_deplibs=yes
7638      ;;
7639
7640    sunos4*)
7641      if test "x$host_vendor" = xsequent; then
7642	# Use $CC to link under sequent, because it throws in some extra .o
7643	# files that make .init and .fini sections work.
7644	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7645      else
7646	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7647      fi
7648      hardcode_libdir_flag_spec='-L$libdir'
7649      hardcode_direct=yes
7650      hardcode_minus_L=yes
7651      hardcode_shlibpath_var=no
7652      ;;
7653
7654    sysv4)
7655      case $host_vendor in
7656	sni)
7657	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7658	  hardcode_direct=yes # is this really true???
7659	;;
7660	siemens)
7661	  ## LD is ld it makes a PLAMLIB
7662	  ## CC just makes a GrossModule.
7663	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7664	  reload_cmds='$CC -r -o $output$reload_objs'
7665	  hardcode_direct=no
7666        ;;
7667	motorola)
7668	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7669	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7670	;;
7671      esac
7672      runpath_var='LD_RUN_PATH'
7673      hardcode_shlibpath_var=no
7674      ;;
7675
7676    sysv4.3*)
7677      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7678      hardcode_shlibpath_var=no
7679      export_dynamic_flag_spec='-Bexport'
7680      ;;
7681
7682    sysv4*MP*)
7683      if test -d /usr/nec; then
7684	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7685	hardcode_shlibpath_var=no
7686	runpath_var=LD_RUN_PATH
7687	hardcode_runpath_var=yes
7688	ld_shlibs=yes
7689      fi
7690      ;;
7691
7692    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7693      no_undefined_flag='${wl}-z,text'
7694      archive_cmds_need_lc=no
7695      hardcode_shlibpath_var=no
7696      runpath_var='LD_RUN_PATH'
7697
7698      if test "$GCC" = yes; then
7699	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7700	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7701      else
7702	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7703	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7704      fi
7705      ;;
7706
7707    sysv5* | sco3.2v5* | sco5v6*)
7708      # Note: We can NOT use -z defs as we might desire, because we do not
7709      # link with -lc, and that would cause any symbols used from libc to
7710      # always be unresolved, which means just about no library would
7711      # ever link correctly.  If we're not using GNU ld we use -z text
7712      # though, which does catch some bad symbols but isn't as heavy-handed
7713      # as -z defs.
7714      no_undefined_flag='${wl}-z,text'
7715      allow_undefined_flag='${wl}-z,nodefs'
7716      archive_cmds_need_lc=no
7717      hardcode_shlibpath_var=no
7718      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7719      hardcode_libdir_separator=':'
7720      link_all_deplibs=yes
7721      export_dynamic_flag_spec='${wl}-Bexport'
7722      runpath_var='LD_RUN_PATH'
7723
7724      if test "$GCC" = yes; then
7725	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7726	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7727      else
7728	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7729	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7730      fi
7731      ;;
7732
7733    uts4*)
7734      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7735      hardcode_libdir_flag_spec='-L$libdir'
7736      hardcode_shlibpath_var=no
7737      ;;
7738
7739    *)
7740      ld_shlibs=no
7741      ;;
7742    esac
7743  fi
7744
7745echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7746echo "${ECHO_T}$ld_shlibs" >&6
7747test "$ld_shlibs" = no && can_build_shared=no
7748
7749#
7750# Do we need to explicitly link libc?
7751#
7752case "x$archive_cmds_need_lc" in
7753x|xyes)
7754  # Assume -lc should be added
7755  archive_cmds_need_lc=yes
7756
7757  if test "$enable_shared" = yes && test "$GCC" = yes; then
7758    case $archive_cmds in
7759    *'~'*)
7760      # FIXME: we may have to deal with multi-command sequences.
7761      ;;
7762    '$CC '*)
7763      # Test whether the compiler implicitly links with -lc since on some
7764      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7765      # to ld, don't add -lc before -lgcc.
7766      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7767echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7768      $rm conftest*
7769      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7770
7771      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772  (eval $ac_compile) 2>&5
7773  ac_status=$?
7774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775  (exit $ac_status); } 2>conftest.err; then
7776        soname=conftest
7777        lib=conftest
7778        libobjs=conftest.$ac_objext
7779        deplibs=
7780        wl=$lt_prog_compiler_wl
7781	pic_flag=$lt_prog_compiler_pic
7782        compiler_flags=-v
7783        linker_flags=-v
7784        verstring=
7785        output_objdir=.
7786        libname=conftest
7787        lt_save_allow_undefined_flag=$allow_undefined_flag
7788        allow_undefined_flag=
7789        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7790  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7791  ac_status=$?
7792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793  (exit $ac_status); }
7794        then
7795	  archive_cmds_need_lc=no
7796        else
7797	  archive_cmds_need_lc=yes
7798        fi
7799        allow_undefined_flag=$lt_save_allow_undefined_flag
7800      else
7801        cat conftest.err 1>&5
7802      fi
7803      $rm conftest*
7804      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7805echo "${ECHO_T}$archive_cmds_need_lc" >&6
7806      ;;
7807    esac
7808  fi
7809  ;;
7810esac
7811
7812echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7813echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7814library_names_spec=
7815libname_spec='lib$name'
7816soname_spec=
7817shrext_cmds=".so"
7818postinstall_cmds=
7819postuninstall_cmds=
7820finish_cmds=
7821finish_eval=
7822shlibpath_var=
7823shlibpath_overrides_runpath=unknown
7824version_type=none
7825dynamic_linker="$host_os ld.so"
7826sys_lib_dlsearch_path_spec="/lib /usr/lib"
7827if test "$GCC" = yes; then
7828  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7829  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7830    # if the path contains ";" then we assume it to be the separator
7831    # otherwise default to the standard path separator (i.e. ":") - it is
7832    # assumed that no part of a normal pathname contains ";" but that should
7833    # okay in the real world where ";" in dirpaths is itself problematic.
7834    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7835  else
7836    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7837  fi
7838else
7839  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7840fi
7841need_lib_prefix=unknown
7842hardcode_into_libs=no
7843
7844# when you set need_version to no, make sure it does not cause -set_version
7845# flags to be left without arguments
7846need_version=unknown
7847
7848case $host_os in
7849aix3*)
7850  version_type=linux
7851  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7852  shlibpath_var=LIBPATH
7853
7854  # AIX 3 has no versioning support, so we append a major version to the name.
7855  soname_spec='${libname}${release}${shared_ext}$major'
7856  ;;
7857
7858aix4* | aix5*)
7859  version_type=linux
7860  need_lib_prefix=no
7861  need_version=no
7862  hardcode_into_libs=yes
7863  if test "$host_cpu" = ia64; then
7864    # AIX 5 supports IA64
7865    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7866    shlibpath_var=LD_LIBRARY_PATH
7867  else
7868    # With GCC up to 2.95.x, collect2 would create an import file
7869    # for dependence libraries.  The import file would start with
7870    # the line `#! .'.  This would cause the generated library to
7871    # depend on `.', always an invalid library.  This was fixed in
7872    # development snapshots of GCC prior to 3.0.
7873    case $host_os in
7874      aix4 | aix4.[01] | aix4.[01].*)
7875      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7876	   echo ' yes '
7877	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7878	:
7879      else
7880	can_build_shared=no
7881      fi
7882      ;;
7883    esac
7884    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7885    # soname into executable. Probably we can add versioning support to
7886    # collect2, so additional links can be useful in future.
7887    if test "$aix_use_runtimelinking" = yes; then
7888      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7889      # instead of lib<name>.a to let people know that these are not
7890      # typical AIX shared libraries.
7891      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7892    else
7893      # We preserve .a as extension for shared libraries through AIX4.2
7894      # and later when we are not doing run time linking.
7895      library_names_spec='${libname}${release}.a $libname.a'
7896      soname_spec='${libname}${release}${shared_ext}$major'
7897    fi
7898    shlibpath_var=LIBPATH
7899  fi
7900  ;;
7901
7902amigaos*)
7903  library_names_spec='$libname.ixlibrary $libname.a'
7904  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7905  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'
7906  ;;
7907
7908beos*)
7909  library_names_spec='${libname}${shared_ext}'
7910  dynamic_linker="$host_os ld.so"
7911  shlibpath_var=LIBRARY_PATH
7912  ;;
7913
7914bsdi[45]*)
7915  version_type=linux
7916  need_version=no
7917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7918  soname_spec='${libname}${release}${shared_ext}$major'
7919  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7920  shlibpath_var=LD_LIBRARY_PATH
7921  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7922  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7923  # the default ld.so.conf also contains /usr/contrib/lib and
7924  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7925  # libtool to hard-code these into programs
7926  ;;
7927
7928cygwin* | mingw* | pw32*)
7929  version_type=windows
7930  shrext_cmds=".dll"
7931  need_version=no
7932  need_lib_prefix=no
7933
7934  case $GCC,$host_os in
7935  yes,cygwin* | yes,mingw* | yes,pw32*)
7936    library_names_spec='$libname.dll.a'
7937    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7938    postinstall_cmds='base_file=`basename \${file}`~
7939      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7940      dldir=$destdir/`dirname \$dlpath`~
7941      test -d \$dldir || mkdir -p \$dldir~
7942      $install_prog $dir/$dlname \$dldir/$dlname~
7943      chmod a+x \$dldir/$dlname'
7944    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7945      dlpath=$dir/\$dldll~
7946       $rm \$dlpath'
7947    shlibpath_overrides_runpath=yes
7948
7949    case $host_os in
7950    cygwin*)
7951      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7952      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7953      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7954      ;;
7955    mingw*)
7956      # MinGW DLLs use traditional 'lib' prefix
7957      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7958      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7959      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7960        # It is most probably a Windows format PATH printed by
7961        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7962        # path with ; separators, and with drive letters. We can handle the
7963        # drive letters (cygwin fileutils understands them), so leave them,
7964        # especially as we might pass files found there to a mingw objdump,
7965        # which wouldn't understand a cygwinified path. Ahh.
7966        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7967      else
7968        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7969      fi
7970      ;;
7971    pw32*)
7972      # pw32 DLLs use 'pw' prefix rather than 'lib'
7973      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7974      ;;
7975    esac
7976    ;;
7977
7978  *)
7979    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7980    ;;
7981  esac
7982  dynamic_linker='Win32 ld.exe'
7983  # FIXME: first we should search . and the directory the executable is in
7984  shlibpath_var=PATH
7985  ;;
7986
7987darwin* | rhapsody*)
7988  dynamic_linker="$host_os dyld"
7989  version_type=darwin
7990  need_lib_prefix=no
7991  need_version=no
7992  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7993  soname_spec='${libname}${release}${major}$shared_ext'
7994  shlibpath_overrides_runpath=yes
7995  shlibpath_var=DYLD_LIBRARY_PATH
7996  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7997  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7998  if test "$GCC" = yes; then
7999    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8000  else
8001    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8002  fi
8003  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8004  ;;
8005
8006dgux*)
8007  version_type=linux
8008  need_lib_prefix=no
8009  need_version=no
8010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8011  soname_spec='${libname}${release}${shared_ext}$major'
8012  shlibpath_var=LD_LIBRARY_PATH
8013  ;;
8014
8015freebsd1*)
8016  dynamic_linker=no
8017  ;;
8018
8019kfreebsd*-gnu)
8020  version_type=linux
8021  need_lib_prefix=no
8022  need_version=no
8023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8024  soname_spec='${libname}${release}${shared_ext}$major'
8025  shlibpath_var=LD_LIBRARY_PATH
8026  shlibpath_overrides_runpath=no
8027  hardcode_into_libs=yes
8028  dynamic_linker='GNU ld.so'
8029  ;;
8030
8031freebsd* | dragonfly*)
8032  # DragonFly does not have aout.  When/if they implement a new
8033  # versioning mechanism, adjust this.
8034  if test -x /usr/bin/objformat; then
8035    objformat=`/usr/bin/objformat`
8036  else
8037    case $host_os in
8038    freebsd[123]*) objformat=aout ;;
8039    *) objformat=elf ;;
8040    esac
8041  fi
8042  version_type=freebsd-$objformat
8043  case $version_type in
8044    freebsd-elf*)
8045      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8046      need_version=no
8047      need_lib_prefix=no
8048      ;;
8049    freebsd-*)
8050      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8051      need_version=yes
8052      ;;
8053  esac
8054  shlibpath_var=LD_LIBRARY_PATH
8055  case $host_os in
8056  freebsd2*)
8057    shlibpath_overrides_runpath=yes
8058    ;;
8059  freebsd3.[01]* | freebsdelf3.[01]*)
8060    shlibpath_overrides_runpath=yes
8061    hardcode_into_libs=yes
8062    ;;
8063  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8064  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8065    shlibpath_overrides_runpath=no
8066    hardcode_into_libs=yes
8067    ;;
8068  freebsd*) # from 4.6 on
8069    shlibpath_overrides_runpath=yes
8070    hardcode_into_libs=yes
8071    ;;
8072  esac
8073  ;;
8074
8075gnu*)
8076  version_type=linux
8077  need_lib_prefix=no
8078  need_version=no
8079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8080  soname_spec='${libname}${release}${shared_ext}$major'
8081  shlibpath_var=LD_LIBRARY_PATH
8082  hardcode_into_libs=yes
8083  ;;
8084
8085hpux9* | hpux10* | hpux11*)
8086  # Give a soname corresponding to the major version so that dld.sl refuses to
8087  # link against other versions.
8088  version_type=sunos
8089  need_lib_prefix=no
8090  need_version=no
8091  case $host_cpu in
8092  ia64*)
8093    shrext_cmds='.so'
8094    hardcode_into_libs=yes
8095    dynamic_linker="$host_os dld.so"
8096    shlibpath_var=LD_LIBRARY_PATH
8097    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8098    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8099    soname_spec='${libname}${release}${shared_ext}$major'
8100    if test "X$HPUX_IA64_MODE" = X32; then
8101      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8102    else
8103      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8104    fi
8105    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8106    ;;
8107   hppa*64*)
8108     shrext_cmds='.sl'
8109     hardcode_into_libs=yes
8110     dynamic_linker="$host_os dld.sl"
8111     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8112     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8114     soname_spec='${libname}${release}${shared_ext}$major'
8115     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8116     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8117     ;;
8118   *)
8119    shrext_cmds='.sl'
8120    dynamic_linker="$host_os dld.sl"
8121    shlibpath_var=SHLIB_PATH
8122    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8123    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8124    soname_spec='${libname}${release}${shared_ext}$major'
8125    ;;
8126  esac
8127  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8128  postinstall_cmds='chmod 555 $lib'
8129  ;;
8130
8131interix3*)
8132  version_type=linux
8133  need_lib_prefix=no
8134  need_version=no
8135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8136  soname_spec='${libname}${release}${shared_ext}$major'
8137  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8138  shlibpath_var=LD_LIBRARY_PATH
8139  shlibpath_overrides_runpath=no
8140  hardcode_into_libs=yes
8141  ;;
8142
8143irix5* | irix6* | nonstopux*)
8144  case $host_os in
8145    nonstopux*) version_type=nonstopux ;;
8146    *)
8147	if test "$lt_cv_prog_gnu_ld" = yes; then
8148		version_type=linux
8149	else
8150		version_type=irix
8151	fi ;;
8152  esac
8153  need_lib_prefix=no
8154  need_version=no
8155  soname_spec='${libname}${release}${shared_ext}$major'
8156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8157  case $host_os in
8158  irix5* | nonstopux*)
8159    libsuff= shlibsuff=
8160    ;;
8161  *)
8162    case $LD in # libtool.m4 will add one of these switches to LD
8163    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8164      libsuff= shlibsuff= libmagic=32-bit;;
8165    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8166      libsuff=32 shlibsuff=N32 libmagic=N32;;
8167    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8168      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8169    *) libsuff= shlibsuff= libmagic=never-match;;
8170    esac
8171    ;;
8172  esac
8173  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8174  shlibpath_overrides_runpath=no
8175  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8176  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8177  hardcode_into_libs=yes
8178  ;;
8179
8180# No shared lib support for Linux oldld, aout, or coff.
8181linux*oldld* | linux*aout* | linux*coff*)
8182  dynamic_linker=no
8183  ;;
8184
8185# This must be Linux ELF.
8186linux*)
8187  version_type=linux
8188  need_lib_prefix=no
8189  need_version=no
8190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8191  soname_spec='${libname}${release}${shared_ext}$major'
8192  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8193  shlibpath_var=LD_LIBRARY_PATH
8194  shlibpath_overrides_runpath=no
8195  # This implies no fast_install, which is unacceptable.
8196  # Some rework will be needed to allow for fast_install
8197  # before this can be enabled.
8198  hardcode_into_libs=yes
8199
8200  # Append ld.so.conf contents to the search path
8201  if test -f /etc/ld.so.conf; then
8202    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8203    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8204  fi
8205
8206  # We used to test for /lib/ld.so.1 and disable shared libraries on
8207  # powerpc, because MkLinux only supported shared libraries with the
8208  # GNU dynamic linker.  Since this was broken with cross compilers,
8209  # most powerpc-linux boxes support dynamic linking these days and
8210  # people can always --disable-shared, the test was removed, and we
8211  # assume the GNU/Linux dynamic linker is in use.
8212  dynamic_linker='GNU/Linux ld.so'
8213  ;;
8214
8215knetbsd*-gnu)
8216  version_type=linux
8217  need_lib_prefix=no
8218  need_version=no
8219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8220  soname_spec='${libname}${release}${shared_ext}$major'
8221  shlibpath_var=LD_LIBRARY_PATH
8222  shlibpath_overrides_runpath=no
8223  hardcode_into_libs=yes
8224  dynamic_linker='GNU ld.so'
8225  ;;
8226
8227netbsd*)
8228  version_type=sunos
8229  need_lib_prefix=no
8230  need_version=no
8231  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8232    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8233    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8234    dynamic_linker='NetBSD (a.out) ld.so'
8235  else
8236    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8237    soname_spec='${libname}${release}${shared_ext}$major'
8238    dynamic_linker='NetBSD ld.elf_so'
8239  fi
8240  shlibpath_var=LD_LIBRARY_PATH
8241  shlibpath_overrides_runpath=yes
8242  hardcode_into_libs=yes
8243  ;;
8244
8245newsos6)
8246  version_type=linux
8247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8248  shlibpath_var=LD_LIBRARY_PATH
8249  shlibpath_overrides_runpath=yes
8250  ;;
8251
8252nto-qnx*)
8253  version_type=linux
8254  need_lib_prefix=no
8255  need_version=no
8256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8257  soname_spec='${libname}${release}${shared_ext}$major'
8258  shlibpath_var=LD_LIBRARY_PATH
8259  shlibpath_overrides_runpath=yes
8260  ;;
8261
8262openbsd*)
8263  version_type=sunos
8264  sys_lib_dlsearch_path_spec="/usr/lib"
8265  need_lib_prefix=no
8266  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8267  case $host_os in
8268    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8269    *)                         need_version=no  ;;
8270  esac
8271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8272  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8273  shlibpath_var=LD_LIBRARY_PATH
8274  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8275    case $host_os in
8276      openbsd2.[89] | openbsd2.[89].*)
8277	shlibpath_overrides_runpath=no
8278	;;
8279      *)
8280	shlibpath_overrides_runpath=yes
8281	;;
8282      esac
8283  else
8284    shlibpath_overrides_runpath=yes
8285  fi
8286  ;;
8287
8288os2*)
8289  libname_spec='$name'
8290  shrext_cmds=".dll"
8291  need_lib_prefix=no
8292  library_names_spec='$libname${shared_ext} $libname.a'
8293  dynamic_linker='OS/2 ld.exe'
8294  shlibpath_var=LIBPATH
8295  ;;
8296
8297osf3* | osf4* | osf5*)
8298  version_type=osf
8299  need_lib_prefix=no
8300  need_version=no
8301  soname_spec='${libname}${release}${shared_ext}$major'
8302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8303  shlibpath_var=LD_LIBRARY_PATH
8304  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8305  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8306  ;;
8307
8308solaris*)
8309  version_type=linux
8310  need_lib_prefix=no
8311  need_version=no
8312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8313  soname_spec='${libname}${release}${shared_ext}$major'
8314  shlibpath_var=LD_LIBRARY_PATH
8315  shlibpath_overrides_runpath=yes
8316  hardcode_into_libs=yes
8317  # ldd complains unless libraries are executable
8318  postinstall_cmds='chmod +x $lib'
8319  ;;
8320
8321sunos4*)
8322  version_type=sunos
8323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8324  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8325  shlibpath_var=LD_LIBRARY_PATH
8326  shlibpath_overrides_runpath=yes
8327  if test "$with_gnu_ld" = yes; then
8328    need_lib_prefix=no
8329  fi
8330  need_version=yes
8331  ;;
8332
8333sysv4 | sysv4.3*)
8334  version_type=linux
8335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8336  soname_spec='${libname}${release}${shared_ext}$major'
8337  shlibpath_var=LD_LIBRARY_PATH
8338  case $host_vendor in
8339    sni)
8340      shlibpath_overrides_runpath=no
8341      need_lib_prefix=no
8342      export_dynamic_flag_spec='${wl}-Blargedynsym'
8343      runpath_var=LD_RUN_PATH
8344      ;;
8345    siemens)
8346      need_lib_prefix=no
8347      ;;
8348    motorola)
8349      need_lib_prefix=no
8350      need_version=no
8351      shlibpath_overrides_runpath=no
8352      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8353      ;;
8354  esac
8355  ;;
8356
8357sysv4*MP*)
8358  if test -d /usr/nec ;then
8359    version_type=linux
8360    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8361    soname_spec='$libname${shared_ext}.$major'
8362    shlibpath_var=LD_LIBRARY_PATH
8363  fi
8364  ;;
8365
8366sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8367  version_type=freebsd-elf
8368  need_lib_prefix=no
8369  need_version=no
8370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8371  soname_spec='${libname}${release}${shared_ext}$major'
8372  shlibpath_var=LD_LIBRARY_PATH
8373  hardcode_into_libs=yes
8374  if test "$with_gnu_ld" = yes; then
8375    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8376    shlibpath_overrides_runpath=no
8377  else
8378    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8379    shlibpath_overrides_runpath=yes
8380    case $host_os in
8381      sco3.2v5*)
8382        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8383	;;
8384    esac
8385  fi
8386  sys_lib_dlsearch_path_spec='/usr/lib'
8387  ;;
8388
8389uts4*)
8390  version_type=linux
8391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392  soname_spec='${libname}${release}${shared_ext}$major'
8393  shlibpath_var=LD_LIBRARY_PATH
8394  ;;
8395
8396*)
8397  dynamic_linker=no
8398  ;;
8399esac
8400echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8401echo "${ECHO_T}$dynamic_linker" >&6
8402test "$dynamic_linker" = no && can_build_shared=no
8403
8404variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8405if test "$GCC" = yes; then
8406  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8407fi
8408
8409echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8410echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8411hardcode_action=
8412if test -n "$hardcode_libdir_flag_spec" || \
8413   test -n "$runpath_var" || \
8414   test "X$hardcode_automatic" = "Xyes" ; then
8415
8416  # We can hardcode non-existant directories.
8417  if test "$hardcode_direct" != no &&
8418     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8419     # have to relink, otherwise we might link with an installed library
8420     # when we should be linking with a yet-to-be-installed one
8421     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8422     test "$hardcode_minus_L" != no; then
8423    # Linking always hardcodes the temporary library directory.
8424    hardcode_action=relink
8425  else
8426    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8427    hardcode_action=immediate
8428  fi
8429else
8430  # We cannot hardcode anything, or else we can only hardcode existing
8431  # directories.
8432  hardcode_action=unsupported
8433fi
8434echo "$as_me:$LINENO: result: $hardcode_action" >&5
8435echo "${ECHO_T}$hardcode_action" >&6
8436
8437if test "$hardcode_action" = relink; then
8438  # Fast installation is not supported
8439  enable_fast_install=no
8440elif test "$shlibpath_overrides_runpath" = yes ||
8441     test "$enable_shared" = no; then
8442  # Fast installation is not necessary
8443  enable_fast_install=needless
8444fi
8445
8446striplib=
8447old_striplib=
8448echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8449echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8450if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8451  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8452  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8453  echo "$as_me:$LINENO: result: yes" >&5
8454echo "${ECHO_T}yes" >&6
8455else
8456# FIXME - insert some real tests, host_os isn't really good enough
8457  case $host_os in
8458   darwin*)
8459       if test -n "$STRIP" ; then
8460         striplib="$STRIP -x"
8461         echo "$as_me:$LINENO: result: yes" >&5
8462echo "${ECHO_T}yes" >&6
8463       else
8464  echo "$as_me:$LINENO: result: no" >&5
8465echo "${ECHO_T}no" >&6
8466fi
8467       ;;
8468   *)
8469  echo "$as_me:$LINENO: result: no" >&5
8470echo "${ECHO_T}no" >&6
8471    ;;
8472  esac
8473fi
8474
8475if test "x$enable_dlopen" != xyes; then
8476  enable_dlopen=unknown
8477  enable_dlopen_self=unknown
8478  enable_dlopen_self_static=unknown
8479else
8480  lt_cv_dlopen=no
8481  lt_cv_dlopen_libs=
8482
8483  case $host_os in
8484  beos*)
8485    lt_cv_dlopen="load_add_on"
8486    lt_cv_dlopen_libs=
8487    lt_cv_dlopen_self=yes
8488    ;;
8489
8490  mingw* | pw32*)
8491    lt_cv_dlopen="LoadLibrary"
8492    lt_cv_dlopen_libs=
8493   ;;
8494
8495  cygwin*)
8496    lt_cv_dlopen="dlopen"
8497    lt_cv_dlopen_libs=
8498   ;;
8499
8500  darwin*)
8501  # if libdl is installed we need to link against it
8502    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8503echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8504if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8505  echo $ECHO_N "(cached) $ECHO_C" >&6
8506else
8507  ac_check_lib_save_LIBS=$LIBS
8508LIBS="-ldl  $LIBS"
8509cat >conftest.$ac_ext <<_ACEOF
8510/* confdefs.h.  */
8511_ACEOF
8512cat confdefs.h >>conftest.$ac_ext
8513cat >>conftest.$ac_ext <<_ACEOF
8514/* end confdefs.h.  */
8515
8516/* Override any gcc2 internal prototype to avoid an error.  */
8517#ifdef __cplusplus
8518extern "C"
8519#endif
8520/* We use char because int might match the return type of a gcc2
8521   builtin and then its argument prototype would still apply.  */
8522char dlopen ();
8523int
8524main ()
8525{
8526dlopen ();
8527  ;
8528  return 0;
8529}
8530_ACEOF
8531rm -f conftest.$ac_objext conftest$ac_exeext
8532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533  (eval $ac_link) 2>conftest.er1
8534  ac_status=$?
8535  grep -v '^ *+' conftest.er1 >conftest.err
8536  rm -f conftest.er1
8537  cat conftest.err >&5
8538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539  (exit $ac_status); } &&
8540	 { ac_try='test -z "$ac_c_werror_flag"
8541			 || test ! -s conftest.err'
8542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543  (eval $ac_try) 2>&5
8544  ac_status=$?
8545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546  (exit $ac_status); }; } &&
8547	 { ac_try='test -s conftest$ac_exeext'
8548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549  (eval $ac_try) 2>&5
8550  ac_status=$?
8551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552  (exit $ac_status); }; }; then
8553  ac_cv_lib_dl_dlopen=yes
8554else
8555  echo "$as_me: failed program was:" >&5
8556sed 's/^/| /' conftest.$ac_ext >&5
8557
8558ac_cv_lib_dl_dlopen=no
8559fi
8560rm -f conftest.err conftest.$ac_objext \
8561      conftest$ac_exeext conftest.$ac_ext
8562LIBS=$ac_check_lib_save_LIBS
8563fi
8564echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8565echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8566if test $ac_cv_lib_dl_dlopen = yes; then
8567  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8568else
8569
8570    lt_cv_dlopen="dyld"
8571    lt_cv_dlopen_libs=
8572    lt_cv_dlopen_self=yes
8573
8574fi
8575
8576   ;;
8577
8578  *)
8579    echo "$as_me:$LINENO: checking for shl_load" >&5
8580echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8581if test "${ac_cv_func_shl_load+set}" = set; then
8582  echo $ECHO_N "(cached) $ECHO_C" >&6
8583else
8584  cat >conftest.$ac_ext <<_ACEOF
8585/* confdefs.h.  */
8586_ACEOF
8587cat confdefs.h >>conftest.$ac_ext
8588cat >>conftest.$ac_ext <<_ACEOF
8589/* end confdefs.h.  */
8590/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8591   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8592#define shl_load innocuous_shl_load
8593
8594/* System header to define __stub macros and hopefully few prototypes,
8595    which can conflict with char shl_load (); below.
8596    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8597    <limits.h> exists even on freestanding compilers.  */
8598
8599#ifdef __STDC__
8600# include <limits.h>
8601#else
8602# include <assert.h>
8603#endif
8604
8605#undef shl_load
8606
8607/* Override any gcc2 internal prototype to avoid an error.  */
8608#ifdef __cplusplus
8609extern "C"
8610{
8611#endif
8612/* We use char because int might match the return type of a gcc2
8613   builtin and then its argument prototype would still apply.  */
8614char shl_load ();
8615/* The GNU C library defines this for functions which it implements
8616    to always fail with ENOSYS.  Some functions are actually named
8617    something starting with __ and the normal name is an alias.  */
8618#if defined (__stub_shl_load) || defined (__stub___shl_load)
8619choke me
8620#else
8621char (*f) () = shl_load;
8622#endif
8623#ifdef __cplusplus
8624}
8625#endif
8626
8627int
8628main ()
8629{
8630return f != shl_load;
8631  ;
8632  return 0;
8633}
8634_ACEOF
8635rm -f conftest.$ac_objext conftest$ac_exeext
8636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8637  (eval $ac_link) 2>conftest.er1
8638  ac_status=$?
8639  grep -v '^ *+' conftest.er1 >conftest.err
8640  rm -f conftest.er1
8641  cat conftest.err >&5
8642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643  (exit $ac_status); } &&
8644	 { ac_try='test -z "$ac_c_werror_flag"
8645			 || test ! -s conftest.err'
8646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647  (eval $ac_try) 2>&5
8648  ac_status=$?
8649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650  (exit $ac_status); }; } &&
8651	 { ac_try='test -s conftest$ac_exeext'
8652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653  (eval $ac_try) 2>&5
8654  ac_status=$?
8655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656  (exit $ac_status); }; }; then
8657  ac_cv_func_shl_load=yes
8658else
8659  echo "$as_me: failed program was:" >&5
8660sed 's/^/| /' conftest.$ac_ext >&5
8661
8662ac_cv_func_shl_load=no
8663fi
8664rm -f conftest.err conftest.$ac_objext \
8665      conftest$ac_exeext conftest.$ac_ext
8666fi
8667echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8668echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8669if test $ac_cv_func_shl_load = yes; then
8670  lt_cv_dlopen="shl_load"
8671else
8672  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8673echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8674if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8675  echo $ECHO_N "(cached) $ECHO_C" >&6
8676else
8677  ac_check_lib_save_LIBS=$LIBS
8678LIBS="-ldld  $LIBS"
8679cat >conftest.$ac_ext <<_ACEOF
8680/* confdefs.h.  */
8681_ACEOF
8682cat confdefs.h >>conftest.$ac_ext
8683cat >>conftest.$ac_ext <<_ACEOF
8684/* end confdefs.h.  */
8685
8686/* Override any gcc2 internal prototype to avoid an error.  */
8687#ifdef __cplusplus
8688extern "C"
8689#endif
8690/* We use char because int might match the return type of a gcc2
8691   builtin and then its argument prototype would still apply.  */
8692char shl_load ();
8693int
8694main ()
8695{
8696shl_load ();
8697  ;
8698  return 0;
8699}
8700_ACEOF
8701rm -f conftest.$ac_objext conftest$ac_exeext
8702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703  (eval $ac_link) 2>conftest.er1
8704  ac_status=$?
8705  grep -v '^ *+' conftest.er1 >conftest.err
8706  rm -f conftest.er1
8707  cat conftest.err >&5
8708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709  (exit $ac_status); } &&
8710	 { ac_try='test -z "$ac_c_werror_flag"
8711			 || test ! -s conftest.err'
8712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713  (eval $ac_try) 2>&5
8714  ac_status=$?
8715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716  (exit $ac_status); }; } &&
8717	 { ac_try='test -s conftest$ac_exeext'
8718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719  (eval $ac_try) 2>&5
8720  ac_status=$?
8721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722  (exit $ac_status); }; }; then
8723  ac_cv_lib_dld_shl_load=yes
8724else
8725  echo "$as_me: failed program was:" >&5
8726sed 's/^/| /' conftest.$ac_ext >&5
8727
8728ac_cv_lib_dld_shl_load=no
8729fi
8730rm -f conftest.err conftest.$ac_objext \
8731      conftest$ac_exeext conftest.$ac_ext
8732LIBS=$ac_check_lib_save_LIBS
8733fi
8734echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8735echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8736if test $ac_cv_lib_dld_shl_load = yes; then
8737  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8738else
8739  echo "$as_me:$LINENO: checking for dlopen" >&5
8740echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8741if test "${ac_cv_func_dlopen+set}" = set; then
8742  echo $ECHO_N "(cached) $ECHO_C" >&6
8743else
8744  cat >conftest.$ac_ext <<_ACEOF
8745/* confdefs.h.  */
8746_ACEOF
8747cat confdefs.h >>conftest.$ac_ext
8748cat >>conftest.$ac_ext <<_ACEOF
8749/* end confdefs.h.  */
8750/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8751   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8752#define dlopen innocuous_dlopen
8753
8754/* System header to define __stub macros and hopefully few prototypes,
8755    which can conflict with char dlopen (); below.
8756    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8757    <limits.h> exists even on freestanding compilers.  */
8758
8759#ifdef __STDC__
8760# include <limits.h>
8761#else
8762# include <assert.h>
8763#endif
8764
8765#undef dlopen
8766
8767/* Override any gcc2 internal prototype to avoid an error.  */
8768#ifdef __cplusplus
8769extern "C"
8770{
8771#endif
8772/* We use char because int might match the return type of a gcc2
8773   builtin and then its argument prototype would still apply.  */
8774char dlopen ();
8775/* The GNU C library defines this for functions which it implements
8776    to always fail with ENOSYS.  Some functions are actually named
8777    something starting with __ and the normal name is an alias.  */
8778#if defined (__stub_dlopen) || defined (__stub___dlopen)
8779choke me
8780#else
8781char (*f) () = dlopen;
8782#endif
8783#ifdef __cplusplus
8784}
8785#endif
8786
8787int
8788main ()
8789{
8790return f != dlopen;
8791  ;
8792  return 0;
8793}
8794_ACEOF
8795rm -f conftest.$ac_objext conftest$ac_exeext
8796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797  (eval $ac_link) 2>conftest.er1
8798  ac_status=$?
8799  grep -v '^ *+' conftest.er1 >conftest.err
8800  rm -f conftest.er1
8801  cat conftest.err >&5
8802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803  (exit $ac_status); } &&
8804	 { ac_try='test -z "$ac_c_werror_flag"
8805			 || test ! -s conftest.err'
8806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807  (eval $ac_try) 2>&5
8808  ac_status=$?
8809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810  (exit $ac_status); }; } &&
8811	 { ac_try='test -s conftest$ac_exeext'
8812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813  (eval $ac_try) 2>&5
8814  ac_status=$?
8815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816  (exit $ac_status); }; }; then
8817  ac_cv_func_dlopen=yes
8818else
8819  echo "$as_me: failed program was:" >&5
8820sed 's/^/| /' conftest.$ac_ext >&5
8821
8822ac_cv_func_dlopen=no
8823fi
8824rm -f conftest.err conftest.$ac_objext \
8825      conftest$ac_exeext conftest.$ac_ext
8826fi
8827echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8828echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8829if test $ac_cv_func_dlopen = yes; then
8830  lt_cv_dlopen="dlopen"
8831else
8832  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8833echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8834if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8835  echo $ECHO_N "(cached) $ECHO_C" >&6
8836else
8837  ac_check_lib_save_LIBS=$LIBS
8838LIBS="-ldl  $LIBS"
8839cat >conftest.$ac_ext <<_ACEOF
8840/* confdefs.h.  */
8841_ACEOF
8842cat confdefs.h >>conftest.$ac_ext
8843cat >>conftest.$ac_ext <<_ACEOF
8844/* end confdefs.h.  */
8845
8846/* Override any gcc2 internal prototype to avoid an error.  */
8847#ifdef __cplusplus
8848extern "C"
8849#endif
8850/* We use char because int might match the return type of a gcc2
8851   builtin and then its argument prototype would still apply.  */
8852char dlopen ();
8853int
8854main ()
8855{
8856dlopen ();
8857  ;
8858  return 0;
8859}
8860_ACEOF
8861rm -f conftest.$ac_objext conftest$ac_exeext
8862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863  (eval $ac_link) 2>conftest.er1
8864  ac_status=$?
8865  grep -v '^ *+' conftest.er1 >conftest.err
8866  rm -f conftest.er1
8867  cat conftest.err >&5
8868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869  (exit $ac_status); } &&
8870	 { ac_try='test -z "$ac_c_werror_flag"
8871			 || test ! -s conftest.err'
8872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873  (eval $ac_try) 2>&5
8874  ac_status=$?
8875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876  (exit $ac_status); }; } &&
8877	 { ac_try='test -s conftest$ac_exeext'
8878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879  (eval $ac_try) 2>&5
8880  ac_status=$?
8881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882  (exit $ac_status); }; }; then
8883  ac_cv_lib_dl_dlopen=yes
8884else
8885  echo "$as_me: failed program was:" >&5
8886sed 's/^/| /' conftest.$ac_ext >&5
8887
8888ac_cv_lib_dl_dlopen=no
8889fi
8890rm -f conftest.err conftest.$ac_objext \
8891      conftest$ac_exeext conftest.$ac_ext
8892LIBS=$ac_check_lib_save_LIBS
8893fi
8894echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8895echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8896if test $ac_cv_lib_dl_dlopen = yes; then
8897  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8898else
8899  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8900echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8901if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8902  echo $ECHO_N "(cached) $ECHO_C" >&6
8903else
8904  ac_check_lib_save_LIBS=$LIBS
8905LIBS="-lsvld  $LIBS"
8906cat >conftest.$ac_ext <<_ACEOF
8907/* confdefs.h.  */
8908_ACEOF
8909cat confdefs.h >>conftest.$ac_ext
8910cat >>conftest.$ac_ext <<_ACEOF
8911/* end confdefs.h.  */
8912
8913/* Override any gcc2 internal prototype to avoid an error.  */
8914#ifdef __cplusplus
8915extern "C"
8916#endif
8917/* We use char because int might match the return type of a gcc2
8918   builtin and then its argument prototype would still apply.  */
8919char dlopen ();
8920int
8921main ()
8922{
8923dlopen ();
8924  ;
8925  return 0;
8926}
8927_ACEOF
8928rm -f conftest.$ac_objext conftest$ac_exeext
8929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930  (eval $ac_link) 2>conftest.er1
8931  ac_status=$?
8932  grep -v '^ *+' conftest.er1 >conftest.err
8933  rm -f conftest.er1
8934  cat conftest.err >&5
8935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936  (exit $ac_status); } &&
8937	 { ac_try='test -z "$ac_c_werror_flag"
8938			 || test ! -s conftest.err'
8939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940  (eval $ac_try) 2>&5
8941  ac_status=$?
8942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943  (exit $ac_status); }; } &&
8944	 { ac_try='test -s conftest$ac_exeext'
8945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946  (eval $ac_try) 2>&5
8947  ac_status=$?
8948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949  (exit $ac_status); }; }; then
8950  ac_cv_lib_svld_dlopen=yes
8951else
8952  echo "$as_me: failed program was:" >&5
8953sed 's/^/| /' conftest.$ac_ext >&5
8954
8955ac_cv_lib_svld_dlopen=no
8956fi
8957rm -f conftest.err conftest.$ac_objext \
8958      conftest$ac_exeext conftest.$ac_ext
8959LIBS=$ac_check_lib_save_LIBS
8960fi
8961echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8962echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8963if test $ac_cv_lib_svld_dlopen = yes; then
8964  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8965else
8966  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8967echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8968if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8969  echo $ECHO_N "(cached) $ECHO_C" >&6
8970else
8971  ac_check_lib_save_LIBS=$LIBS
8972LIBS="-ldld  $LIBS"
8973cat >conftest.$ac_ext <<_ACEOF
8974/* confdefs.h.  */
8975_ACEOF
8976cat confdefs.h >>conftest.$ac_ext
8977cat >>conftest.$ac_ext <<_ACEOF
8978/* end confdefs.h.  */
8979
8980/* Override any gcc2 internal prototype to avoid an error.  */
8981#ifdef __cplusplus
8982extern "C"
8983#endif
8984/* We use char because int might match the return type of a gcc2
8985   builtin and then its argument prototype would still apply.  */
8986char dld_link ();
8987int
8988main ()
8989{
8990dld_link ();
8991  ;
8992  return 0;
8993}
8994_ACEOF
8995rm -f conftest.$ac_objext conftest$ac_exeext
8996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997  (eval $ac_link) 2>conftest.er1
8998  ac_status=$?
8999  grep -v '^ *+' conftest.er1 >conftest.err
9000  rm -f conftest.er1
9001  cat conftest.err >&5
9002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003  (exit $ac_status); } &&
9004	 { ac_try='test -z "$ac_c_werror_flag"
9005			 || test ! -s conftest.err'
9006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007  (eval $ac_try) 2>&5
9008  ac_status=$?
9009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010  (exit $ac_status); }; } &&
9011	 { ac_try='test -s conftest$ac_exeext'
9012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013  (eval $ac_try) 2>&5
9014  ac_status=$?
9015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016  (exit $ac_status); }; }; then
9017  ac_cv_lib_dld_dld_link=yes
9018else
9019  echo "$as_me: failed program was:" >&5
9020sed 's/^/| /' conftest.$ac_ext >&5
9021
9022ac_cv_lib_dld_dld_link=no
9023fi
9024rm -f conftest.err conftest.$ac_objext \
9025      conftest$ac_exeext conftest.$ac_ext
9026LIBS=$ac_check_lib_save_LIBS
9027fi
9028echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9029echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9030if test $ac_cv_lib_dld_dld_link = yes; then
9031  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9032fi
9033
9034
9035fi
9036
9037
9038fi
9039
9040
9041fi
9042
9043
9044fi
9045
9046
9047fi
9048
9049    ;;
9050  esac
9051
9052  if test "x$lt_cv_dlopen" != xno; then
9053    enable_dlopen=yes
9054  else
9055    enable_dlopen=no
9056  fi
9057
9058  case $lt_cv_dlopen in
9059  dlopen)
9060    save_CPPFLAGS="$CPPFLAGS"
9061    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9062
9063    save_LDFLAGS="$LDFLAGS"
9064    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9065
9066    save_LIBS="$LIBS"
9067    LIBS="$lt_cv_dlopen_libs $LIBS"
9068
9069    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9070echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9071if test "${lt_cv_dlopen_self+set}" = set; then
9072  echo $ECHO_N "(cached) $ECHO_C" >&6
9073else
9074  	  if test "$cross_compiling" = yes; then :
9075  lt_cv_dlopen_self=cross
9076else
9077  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9078  lt_status=$lt_dlunknown
9079  cat > conftest.$ac_ext <<EOF
9080#line 9080 "configure"
9081#include "confdefs.h"
9082
9083#if HAVE_DLFCN_H
9084#include <dlfcn.h>
9085#endif
9086
9087#include <stdio.h>
9088
9089#ifdef RTLD_GLOBAL
9090#  define LT_DLGLOBAL		RTLD_GLOBAL
9091#else
9092#  ifdef DL_GLOBAL
9093#    define LT_DLGLOBAL		DL_GLOBAL
9094#  else
9095#    define LT_DLGLOBAL		0
9096#  endif
9097#endif
9098
9099/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9100   find out it does not work in some platform. */
9101#ifndef LT_DLLAZY_OR_NOW
9102#  ifdef RTLD_LAZY
9103#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9104#  else
9105#    ifdef DL_LAZY
9106#      define LT_DLLAZY_OR_NOW		DL_LAZY
9107#    else
9108#      ifdef RTLD_NOW
9109#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9110#      else
9111#        ifdef DL_NOW
9112#          define LT_DLLAZY_OR_NOW	DL_NOW
9113#        else
9114#          define LT_DLLAZY_OR_NOW	0
9115#        endif
9116#      endif
9117#    endif
9118#  endif
9119#endif
9120
9121#ifdef __cplusplus
9122extern "C" void exit (int);
9123#endif
9124
9125void fnord() { int i=42;}
9126int main ()
9127{
9128  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9129  int status = $lt_dlunknown;
9130
9131  if (self)
9132    {
9133      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9134      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9135      /* dlclose (self); */
9136    }
9137  else
9138    puts (dlerror ());
9139
9140    exit (status);
9141}
9142EOF
9143  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144  (eval $ac_link) 2>&5
9145  ac_status=$?
9146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9148    (./conftest; exit; ) >&5 2>/dev/null
9149    lt_status=$?
9150    case x$lt_status in
9151      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9152      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9153      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9154    esac
9155  else :
9156    # compilation failed
9157    lt_cv_dlopen_self=no
9158  fi
9159fi
9160rm -fr conftest*
9161
9162
9163fi
9164echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9165echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9166
9167    if test "x$lt_cv_dlopen_self" = xyes; then
9168      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9169      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9170echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9171if test "${lt_cv_dlopen_self_static+set}" = set; then
9172  echo $ECHO_N "(cached) $ECHO_C" >&6
9173else
9174  	  if test "$cross_compiling" = yes; then :
9175  lt_cv_dlopen_self_static=cross
9176else
9177  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9178  lt_status=$lt_dlunknown
9179  cat > conftest.$ac_ext <<EOF
9180#line 9180 "configure"
9181#include "confdefs.h"
9182
9183#if HAVE_DLFCN_H
9184#include <dlfcn.h>
9185#endif
9186
9187#include <stdio.h>
9188
9189#ifdef RTLD_GLOBAL
9190#  define LT_DLGLOBAL		RTLD_GLOBAL
9191#else
9192#  ifdef DL_GLOBAL
9193#    define LT_DLGLOBAL		DL_GLOBAL
9194#  else
9195#    define LT_DLGLOBAL		0
9196#  endif
9197#endif
9198
9199/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9200   find out it does not work in some platform. */
9201#ifndef LT_DLLAZY_OR_NOW
9202#  ifdef RTLD_LAZY
9203#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9204#  else
9205#    ifdef DL_LAZY
9206#      define LT_DLLAZY_OR_NOW		DL_LAZY
9207#    else
9208#      ifdef RTLD_NOW
9209#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9210#      else
9211#        ifdef DL_NOW
9212#          define LT_DLLAZY_OR_NOW	DL_NOW
9213#        else
9214#          define LT_DLLAZY_OR_NOW	0
9215#        endif
9216#      endif
9217#    endif
9218#  endif
9219#endif
9220
9221#ifdef __cplusplus
9222extern "C" void exit (int);
9223#endif
9224
9225void fnord() { int i=42;}
9226int main ()
9227{
9228  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9229  int status = $lt_dlunknown;
9230
9231  if (self)
9232    {
9233      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9234      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9235      /* dlclose (self); */
9236    }
9237  else
9238    puts (dlerror ());
9239
9240    exit (status);
9241}
9242EOF
9243  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9244  (eval $ac_link) 2>&5
9245  ac_status=$?
9246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9248    (./conftest; exit; ) >&5 2>/dev/null
9249    lt_status=$?
9250    case x$lt_status in
9251      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9252      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9253      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9254    esac
9255  else :
9256    # compilation failed
9257    lt_cv_dlopen_self_static=no
9258  fi
9259fi
9260rm -fr conftest*
9261
9262
9263fi
9264echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9265echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9266    fi
9267
9268    CPPFLAGS="$save_CPPFLAGS"
9269    LDFLAGS="$save_LDFLAGS"
9270    LIBS="$save_LIBS"
9271    ;;
9272  esac
9273
9274  case $lt_cv_dlopen_self in
9275  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9276  *) enable_dlopen_self=unknown ;;
9277  esac
9278
9279  case $lt_cv_dlopen_self_static in
9280  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9281  *) enable_dlopen_self_static=unknown ;;
9282  esac
9283fi
9284
9285
9286# Report which library types will actually be built
9287echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9288echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9289echo "$as_me:$LINENO: result: $can_build_shared" >&5
9290echo "${ECHO_T}$can_build_shared" >&6
9291
9292echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9293echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9294test "$can_build_shared" = "no" && enable_shared=no
9295
9296# On AIX, shared libraries and static libraries use the same namespace, and
9297# are all built from PIC.
9298case $host_os in
9299aix3*)
9300  test "$enable_shared" = yes && enable_static=no
9301  if test -n "$RANLIB"; then
9302    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9303    postinstall_cmds='$RANLIB $lib'
9304  fi
9305  ;;
9306
9307aix4* | aix5*)
9308  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9309    test "$enable_shared" = yes && enable_static=no
9310  fi
9311    ;;
9312esac
9313echo "$as_me:$LINENO: result: $enable_shared" >&5
9314echo "${ECHO_T}$enable_shared" >&6
9315
9316echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9317echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9318# Make sure either enable_shared or enable_static is yes.
9319test "$enable_shared" = yes || enable_static=yes
9320echo "$as_me:$LINENO: result: $enable_static" >&5
9321echo "${ECHO_T}$enable_static" >&6
9322
9323# The else clause should only fire when bootstrapping the
9324# libtool distribution, otherwise you forgot to ship ltmain.sh
9325# with your package, and you will get complaints that there are
9326# no rules to generate ltmain.sh.
9327if test -f "$ltmain"; then
9328  # See if we are running on zsh, and set the options which allow our commands through
9329  # without removal of \ escapes.
9330  if test -n "${ZSH_VERSION+set}" ; then
9331    setopt NO_GLOB_SUBST
9332  fi
9333  # Now quote all the things that may contain metacharacters while being
9334  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9335  # variables and quote the copies for generation of the libtool script.
9336  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9337    SED SHELL STRIP \
9338    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9339    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9340    deplibs_check_method reload_flag reload_cmds need_locks \
9341    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9342    lt_cv_sys_global_symbol_to_c_name_address \
9343    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9344    old_postinstall_cmds old_postuninstall_cmds \
9345    compiler \
9346    CC \
9347    LD \
9348    lt_prog_compiler_wl \
9349    lt_prog_compiler_pic \
9350    lt_prog_compiler_static \
9351    lt_prog_compiler_no_builtin_flag \
9352    export_dynamic_flag_spec \
9353    thread_safe_flag_spec \
9354    whole_archive_flag_spec \
9355    enable_shared_with_static_runtimes \
9356    old_archive_cmds \
9357    old_archive_from_new_cmds \
9358    predep_objects \
9359    postdep_objects \
9360    predeps \
9361    postdeps \
9362    compiler_lib_search_path \
9363    archive_cmds \
9364    archive_expsym_cmds \
9365    postinstall_cmds \
9366    postuninstall_cmds \
9367    old_archive_from_expsyms_cmds \
9368    allow_undefined_flag \
9369    no_undefined_flag \
9370    export_symbols_cmds \
9371    hardcode_libdir_flag_spec \
9372    hardcode_libdir_flag_spec_ld \
9373    hardcode_libdir_separator \
9374    hardcode_automatic \
9375    module_cmds \
9376    module_expsym_cmds \
9377    lt_cv_prog_compiler_c_o \
9378    exclude_expsyms \
9379    include_expsyms; do
9380
9381    case $var in
9382    old_archive_cmds | \
9383    old_archive_from_new_cmds | \
9384    archive_cmds | \
9385    archive_expsym_cmds | \
9386    module_cmds | \
9387    module_expsym_cmds | \
9388    old_archive_from_expsyms_cmds | \
9389    export_symbols_cmds | \
9390    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9391    postinstall_cmds | postuninstall_cmds | \
9392    old_postinstall_cmds | old_postuninstall_cmds | \
9393    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9394      # Double-quote double-evaled strings.
9395      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9396      ;;
9397    *)
9398      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9399      ;;
9400    esac
9401  done
9402
9403  case $lt_echo in
9404  *'\$0 --fallback-echo"')
9405    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9406    ;;
9407  esac
9408
9409cfgfile="${ofile}T"
9410  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9411  $rm -f "$cfgfile"
9412  { echo "$as_me:$LINENO: creating $ofile" >&5
9413echo "$as_me: creating $ofile" >&6;}
9414
9415  cat <<__EOF__ >> "$cfgfile"
9416#! $SHELL
9417
9418# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9419# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9420# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9421#
9422# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9423# Free Software Foundation, Inc.
9424#
9425# This file is part of GNU Libtool:
9426# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9427#
9428# This program is free software; you can redistribute it and/or modify
9429# it under the terms of the GNU General Public License as published by
9430# the Free Software Foundation; either version 2 of the License, or
9431# (at your option) any later version.
9432#
9433# This program is distributed in the hope that it will be useful, but
9434# WITHOUT ANY WARRANTY; without even the implied warranty of
9435# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9436# General Public License for more details.
9437#
9438# You should have received a copy of the GNU General Public License
9439# along with this program; if not, write to the Free Software
9440# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9441#
9442# As a special exception to the GNU General Public License, if you
9443# distribute this file as part of a program that contains a
9444# configuration script generated by Autoconf, you may include it under
9445# the same distribution terms that you use for the rest of that program.
9446
9447# A sed program that does not truncate output.
9448SED=$lt_SED
9449
9450# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9451Xsed="$SED -e 1s/^X//"
9452
9453# The HP-UX ksh and POSIX shell print the target directory to stdout
9454# if CDPATH is set.
9455(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9456
9457# The names of the tagged configurations supported by this script.
9458available_tags=
9459
9460# ### BEGIN LIBTOOL CONFIG
9461
9462# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9463
9464# Shell to use when invoking shell scripts.
9465SHELL=$lt_SHELL
9466
9467# Whether or not to build shared libraries.
9468build_libtool_libs=$enable_shared
9469
9470# Whether or not to build static libraries.
9471build_old_libs=$enable_static
9472
9473# Whether or not to add -lc for building shared libraries.
9474build_libtool_need_lc=$archive_cmds_need_lc
9475
9476# Whether or not to disallow shared libs when runtime libs are static
9477allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9478
9479# Whether or not to optimize for fast installation.
9480fast_install=$enable_fast_install
9481
9482# The host system.
9483host_alias=$host_alias
9484host=$host
9485host_os=$host_os
9486
9487# The build system.
9488build_alias=$build_alias
9489build=$build
9490build_os=$build_os
9491
9492# An echo program that does not interpret backslashes.
9493echo=$lt_echo
9494
9495# The archiver.
9496AR=$lt_AR
9497AR_FLAGS=$lt_AR_FLAGS
9498
9499# A C compiler.
9500LTCC=$lt_LTCC
9501
9502# LTCC compiler flags.
9503LTCFLAGS=$lt_LTCFLAGS
9504
9505# A language-specific compiler.
9506CC=$lt_compiler
9507
9508# Is the compiler the GNU C compiler?
9509with_gcc=$GCC
9510
9511# An ERE matcher.
9512EGREP=$lt_EGREP
9513
9514# The linker used to build libraries.
9515LD=$lt_LD
9516
9517# Whether we need hard or soft links.
9518LN_S=$lt_LN_S
9519
9520# A BSD-compatible nm program.
9521NM=$lt_NM
9522
9523# A symbol stripping program
9524STRIP=$lt_STRIP
9525
9526# Used to examine libraries when file_magic_cmd begins "file"
9527MAGIC_CMD=$MAGIC_CMD
9528
9529# Used on cygwin: DLL creation program.
9530DLLTOOL="$DLLTOOL"
9531
9532# Used on cygwin: object dumper.
9533OBJDUMP="$OBJDUMP"
9534
9535# Used on cygwin: assembler.
9536AS="$AS"
9537
9538# The name of the directory that contains temporary libtool files.
9539objdir=$objdir
9540
9541# How to create reloadable object files.
9542reload_flag=$lt_reload_flag
9543reload_cmds=$lt_reload_cmds
9544
9545# How to pass a linker flag through the compiler.
9546wl=$lt_lt_prog_compiler_wl
9547
9548# Object file suffix (normally "o").
9549objext="$ac_objext"
9550
9551# Old archive suffix (normally "a").
9552libext="$libext"
9553
9554# Shared library suffix (normally ".so").
9555shrext_cmds='$shrext_cmds'
9556
9557# Executable file suffix (normally "").
9558exeext="$exeext"
9559
9560# Additional compiler flags for building library objects.
9561pic_flag=$lt_lt_prog_compiler_pic
9562pic_mode=$pic_mode
9563
9564# What is the maximum length of a command?
9565max_cmd_len=$lt_cv_sys_max_cmd_len
9566
9567# Does compiler simultaneously support -c and -o options?
9568compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9569
9570# Must we lock files when doing compilation?
9571need_locks=$lt_need_locks
9572
9573# Do we need the lib prefix for modules?
9574need_lib_prefix=$need_lib_prefix
9575
9576# Do we need a version for libraries?
9577need_version=$need_version
9578
9579# Whether dlopen is supported.
9580dlopen_support=$enable_dlopen
9581
9582# Whether dlopen of programs is supported.
9583dlopen_self=$enable_dlopen_self
9584
9585# Whether dlopen of statically linked programs is supported.
9586dlopen_self_static=$enable_dlopen_self_static
9587
9588# Compiler flag to prevent dynamic linking.
9589link_static_flag=$lt_lt_prog_compiler_static
9590
9591# Compiler flag to turn off builtin functions.
9592no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9593
9594# Compiler flag to allow reflexive dlopens.
9595export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9596
9597# Compiler flag to generate shared objects directly from archives.
9598whole_archive_flag_spec=$lt_whole_archive_flag_spec
9599
9600# Compiler flag to generate thread-safe objects.
9601thread_safe_flag_spec=$lt_thread_safe_flag_spec
9602
9603# Library versioning type.
9604version_type=$version_type
9605
9606# Format of library name prefix.
9607libname_spec=$lt_libname_spec
9608
9609# List of archive names.  First name is the real one, the rest are links.
9610# The last name is the one that the linker finds with -lNAME.
9611library_names_spec=$lt_library_names_spec
9612
9613# The coded name of the library, if different from the real name.
9614soname_spec=$lt_soname_spec
9615
9616# Commands used to build and install an old-style archive.
9617RANLIB=$lt_RANLIB
9618old_archive_cmds=$lt_old_archive_cmds
9619old_postinstall_cmds=$lt_old_postinstall_cmds
9620old_postuninstall_cmds=$lt_old_postuninstall_cmds
9621
9622# Create an old-style archive from a shared archive.
9623old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9624
9625# Create a temporary old-style archive to link instead of a shared archive.
9626old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9627
9628# Commands used to build and install a shared archive.
9629archive_cmds=$lt_archive_cmds
9630archive_expsym_cmds=$lt_archive_expsym_cmds
9631postinstall_cmds=$lt_postinstall_cmds
9632postuninstall_cmds=$lt_postuninstall_cmds
9633
9634# Commands used to build a loadable module (assumed same as above if empty)
9635module_cmds=$lt_module_cmds
9636module_expsym_cmds=$lt_module_expsym_cmds
9637
9638# Commands to strip libraries.
9639old_striplib=$lt_old_striplib
9640striplib=$lt_striplib
9641
9642# Dependencies to place before the objects being linked to create a
9643# shared library.
9644predep_objects=$lt_predep_objects
9645
9646# Dependencies to place after the objects being linked to create a
9647# shared library.
9648postdep_objects=$lt_postdep_objects
9649
9650# Dependencies to place before the objects being linked to create a
9651# shared library.
9652predeps=$lt_predeps
9653
9654# Dependencies to place after the objects being linked to create a
9655# shared library.
9656postdeps=$lt_postdeps
9657
9658# The library search path used internally by the compiler when linking
9659# a shared library.
9660compiler_lib_search_path=$lt_compiler_lib_search_path
9661
9662# Method to check whether dependent libraries are shared objects.
9663deplibs_check_method=$lt_deplibs_check_method
9664
9665# Command to use when deplibs_check_method == file_magic.
9666file_magic_cmd=$lt_file_magic_cmd
9667
9668# Flag that allows shared libraries with undefined symbols to be built.
9669allow_undefined_flag=$lt_allow_undefined_flag
9670
9671# Flag that forces no undefined symbols.
9672no_undefined_flag=$lt_no_undefined_flag
9673
9674# Commands used to finish a libtool library installation in a directory.
9675finish_cmds=$lt_finish_cmds
9676
9677# Same as above, but a single script fragment to be evaled but not shown.
9678finish_eval=$lt_finish_eval
9679
9680# Take the output of nm and produce a listing of raw symbols and C names.
9681global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9682
9683# Transform the output of nm in a proper C declaration
9684global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9685
9686# Transform the output of nm in a C name address pair
9687global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9688
9689# This is the shared library runtime path variable.
9690runpath_var=$runpath_var
9691
9692# This is the shared library path variable.
9693shlibpath_var=$shlibpath_var
9694
9695# Is shlibpath searched before the hard-coded library search path?
9696shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9697
9698# How to hardcode a shared library path into an executable.
9699hardcode_action=$hardcode_action
9700
9701# Whether we should hardcode library paths into libraries.
9702hardcode_into_libs=$hardcode_into_libs
9703
9704# Flag to hardcode \$libdir into a binary during linking.
9705# This must work even if \$libdir does not exist.
9706hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9707
9708# If ld is used when linking, flag to hardcode \$libdir into
9709# a binary during linking. This must work even if \$libdir does
9710# not exist.
9711hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9712
9713# Whether we need a single -rpath flag with a separated argument.
9714hardcode_libdir_separator=$lt_hardcode_libdir_separator
9715
9716# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9717# resulting binary.
9718hardcode_direct=$hardcode_direct
9719
9720# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9721# resulting binary.
9722hardcode_minus_L=$hardcode_minus_L
9723
9724# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9725# the resulting binary.
9726hardcode_shlibpath_var=$hardcode_shlibpath_var
9727
9728# Set to yes if building a shared library automatically hardcodes DIR into the library
9729# and all subsequent libraries and executables linked against it.
9730hardcode_automatic=$hardcode_automatic
9731
9732# Variables whose values should be saved in libtool wrapper scripts and
9733# restored at relink time.
9734variables_saved_for_relink="$variables_saved_for_relink"
9735
9736# Whether libtool must link a program against all its dependency libraries.
9737link_all_deplibs=$link_all_deplibs
9738
9739# Compile-time system search path for libraries
9740sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9741
9742# Run-time system search path for libraries
9743sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9744
9745# Fix the shell variable \$srcfile for the compiler.
9746fix_srcfile_path="$fix_srcfile_path"
9747
9748# Set to yes if exported symbols are required.
9749always_export_symbols=$always_export_symbols
9750
9751# The commands to list exported symbols.
9752export_symbols_cmds=$lt_export_symbols_cmds
9753
9754# The commands to extract the exported symbol list from a shared archive.
9755extract_expsyms_cmds=$lt_extract_expsyms_cmds
9756
9757# Symbols that should not be listed in the preloaded symbols.
9758exclude_expsyms=$lt_exclude_expsyms
9759
9760# Symbols that must always be exported.
9761include_expsyms=$lt_include_expsyms
9762
9763# ### END LIBTOOL CONFIG
9764
9765__EOF__
9766
9767
9768  case $host_os in
9769  aix3*)
9770    cat <<\EOF >> "$cfgfile"
9771
9772# AIX sometimes has problems with the GCC collect2 program.  For some
9773# reason, if we set the COLLECT_NAMES environment variable, the problems
9774# vanish in a puff of smoke.
9775if test "X${COLLECT_NAMES+set}" != Xset; then
9776  COLLECT_NAMES=
9777  export COLLECT_NAMES
9778fi
9779EOF
9780    ;;
9781  esac
9782
9783  # We use sed instead of cat because bash on DJGPP gets confused if
9784  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9785  # text mode, it properly converts lines to CR/LF.  This bash problem
9786  # is reportedly fixed, but why not run on old versions too?
9787  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9788
9789  mv -f "$cfgfile" "$ofile" || \
9790    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9791  chmod +x "$ofile"
9792
9793else
9794  # If there is no Makefile yet, we rely on a make rule to execute
9795  # `config.status --recheck' to rerun these tests and create the
9796  # libtool script then.
9797  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9798  if test -f "$ltmain_in"; then
9799    test -f Makefile && make "$ltmain"
9800  fi
9801fi
9802
9803
9804ac_ext=c
9805ac_cpp='$CPP $CPPFLAGS'
9806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9808ac_compiler_gnu=$ac_cv_c_compiler_gnu
9809
9810CC="$lt_save_CC"
9811
9812
9813# Check whether --with-tags or --without-tags was given.
9814if test "${with_tags+set}" = set; then
9815  withval="$with_tags"
9816  tagnames="$withval"
9817fi;
9818
9819if test -f "$ltmain" && test -n "$tagnames"; then
9820  if test ! -f "${ofile}"; then
9821    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9822echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9823  fi
9824
9825  if test -z "$LTCC"; then
9826    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9827    if test -z "$LTCC"; then
9828      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9829echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9830    else
9831      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9832echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9833    fi
9834  fi
9835  if test -z "$LTCFLAGS"; then
9836    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9837  fi
9838
9839  # Extract list of available tagged configurations in $ofile.
9840  # Note that this assumes the entire list is on one line.
9841  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9842
9843  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9844  for tagname in $tagnames; do
9845    IFS="$lt_save_ifs"
9846    # Check whether tagname contains only valid characters
9847    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9848    "") ;;
9849    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9850echo "$as_me: error: invalid tag name: $tagname" >&2;}
9851   { (exit 1); exit 1; }; }
9852	;;
9853    esac
9854
9855    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9856    then
9857      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9858echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9859   { (exit 1); exit 1; }; }
9860    fi
9861
9862    # Update the list of available tags.
9863    if test -n "$tagname"; then
9864      echo appending configuration tag \"$tagname\" to $ofile
9865
9866      case $tagname in
9867      CXX)
9868	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9869	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9870	    (test "X$CXX" != "Xg++"))) ; then
9871	  ac_ext=cc
9872ac_cpp='$CXXCPP $CPPFLAGS'
9873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9876
9877
9878
9879
9880archive_cmds_need_lc_CXX=no
9881allow_undefined_flag_CXX=
9882always_export_symbols_CXX=no
9883archive_expsym_cmds_CXX=
9884export_dynamic_flag_spec_CXX=
9885hardcode_direct_CXX=no
9886hardcode_libdir_flag_spec_CXX=
9887hardcode_libdir_flag_spec_ld_CXX=
9888hardcode_libdir_separator_CXX=
9889hardcode_minus_L_CXX=no
9890hardcode_shlibpath_var_CXX=unsupported
9891hardcode_automatic_CXX=no
9892module_cmds_CXX=
9893module_expsym_cmds_CXX=
9894link_all_deplibs_CXX=unknown
9895old_archive_cmds_CXX=$old_archive_cmds
9896no_undefined_flag_CXX=
9897whole_archive_flag_spec_CXX=
9898enable_shared_with_static_runtimes_CXX=no
9899
9900# Dependencies to place before and after the object being linked:
9901predep_objects_CXX=
9902postdep_objects_CXX=
9903predeps_CXX=
9904postdeps_CXX=
9905compiler_lib_search_path_CXX=
9906
9907# Source file extension for C++ test sources.
9908ac_ext=cpp
9909
9910# Object file extension for compiled C++ test sources.
9911objext=o
9912objext_CXX=$objext
9913
9914# Code to be used in simple compile tests
9915lt_simple_compile_test_code="int some_variable = 0;\n"
9916
9917# Code to be used in simple link tests
9918lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9919
9920# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9921
9922# If no C compiler was specified, use CC.
9923LTCC=${LTCC-"$CC"}
9924
9925# If no C compiler flags were specified, use CFLAGS.
9926LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9927
9928# Allow CC to be a program name with arguments.
9929compiler=$CC
9930
9931
9932# save warnings/boilerplate of simple test code
9933ac_outfile=conftest.$ac_objext
9934printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9935eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9936_lt_compiler_boilerplate=`cat conftest.err`
9937$rm conftest*
9938
9939ac_outfile=conftest.$ac_objext
9940printf "$lt_simple_link_test_code" >conftest.$ac_ext
9941eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9942_lt_linker_boilerplate=`cat conftest.err`
9943$rm conftest*
9944
9945
9946# Allow CC to be a program name with arguments.
9947lt_save_CC=$CC
9948lt_save_LD=$LD
9949lt_save_GCC=$GCC
9950GCC=$GXX
9951lt_save_with_gnu_ld=$with_gnu_ld
9952lt_save_path_LD=$lt_cv_path_LD
9953if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9954  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9955else
9956  $as_unset lt_cv_prog_gnu_ld
9957fi
9958if test -n "${lt_cv_path_LDCXX+set}"; then
9959  lt_cv_path_LD=$lt_cv_path_LDCXX
9960else
9961  $as_unset lt_cv_path_LD
9962fi
9963test -z "${LDCXX+set}" || LD=$LDCXX
9964CC=${CXX-"c++"}
9965compiler=$CC
9966compiler_CXX=$CC
9967for cc_temp in $compiler""; do
9968  case $cc_temp in
9969    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9970    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9971    \-*) ;;
9972    *) break;;
9973  esac
9974done
9975cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9976
9977
9978# We don't want -fno-exception wen compiling C++ code, so set the
9979# no_builtin_flag separately
9980if test "$GXX" = yes; then
9981  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9982else
9983  lt_prog_compiler_no_builtin_flag_CXX=
9984fi
9985
9986if test "$GXX" = yes; then
9987  # Set up default GNU C++ configuration
9988
9989
9990# Check whether --with-gnu-ld or --without-gnu-ld was given.
9991if test "${with_gnu_ld+set}" = set; then
9992  withval="$with_gnu_ld"
9993  test "$withval" = no || with_gnu_ld=yes
9994else
9995  with_gnu_ld=no
9996fi;
9997ac_prog=ld
9998if test "$GCC" = yes; then
9999  # Check if gcc -print-prog-name=ld gives a path.
10000  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10001echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10002  case $host in
10003  *-*-mingw*)
10004    # gcc leaves a trailing carriage return which upsets mingw
10005    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10006  *)
10007    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10008  esac
10009  case $ac_prog in
10010    # Accept absolute paths.
10011    [\\/]* | ?:[\\/]*)
10012      re_direlt='/[^/][^/]*/\.\./'
10013      # Canonicalize the pathname of ld
10014      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10015      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10016	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10017      done
10018      test -z "$LD" && LD="$ac_prog"
10019      ;;
10020  "")
10021    # If it fails, then pretend we aren't using GCC.
10022    ac_prog=ld
10023    ;;
10024  *)
10025    # If it is relative, then search for the first ld in PATH.
10026    with_gnu_ld=unknown
10027    ;;
10028  esac
10029elif test "$with_gnu_ld" = yes; then
10030  echo "$as_me:$LINENO: checking for GNU ld" >&5
10031echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10032else
10033  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10034echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10035fi
10036if test "${lt_cv_path_LD+set}" = set; then
10037  echo $ECHO_N "(cached) $ECHO_C" >&6
10038else
10039  if test -z "$LD"; then
10040  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10041  for ac_dir in $PATH; do
10042    IFS="$lt_save_ifs"
10043    test -z "$ac_dir" && ac_dir=.
10044    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10045      lt_cv_path_LD="$ac_dir/$ac_prog"
10046      # Check to see if the program is GNU ld.  I'd rather use --version,
10047      # but apparently some variants of GNU ld only accept -v.
10048      # Break only if it was the GNU/non-GNU ld that we prefer.
10049      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10050      *GNU* | *'with BFD'*)
10051	test "$with_gnu_ld" != no && break
10052	;;
10053      *)
10054	test "$with_gnu_ld" != yes && break
10055	;;
10056      esac
10057    fi
10058  done
10059  IFS="$lt_save_ifs"
10060else
10061  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10062fi
10063fi
10064
10065LD="$lt_cv_path_LD"
10066if test -n "$LD"; then
10067  echo "$as_me:$LINENO: result: $LD" >&5
10068echo "${ECHO_T}$LD" >&6
10069else
10070  echo "$as_me:$LINENO: result: no" >&5
10071echo "${ECHO_T}no" >&6
10072fi
10073test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10074echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10075   { (exit 1); exit 1; }; }
10076echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10077echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10078if test "${lt_cv_prog_gnu_ld+set}" = set; then
10079  echo $ECHO_N "(cached) $ECHO_C" >&6
10080else
10081  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10082case `$LD -v 2>&1 </dev/null` in
10083*GNU* | *'with BFD'*)
10084  lt_cv_prog_gnu_ld=yes
10085  ;;
10086*)
10087  lt_cv_prog_gnu_ld=no
10088  ;;
10089esac
10090fi
10091echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10092echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10093with_gnu_ld=$lt_cv_prog_gnu_ld
10094
10095
10096
10097  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10098  # archiving commands below assume that GNU ld is being used.
10099  if test "$with_gnu_ld" = yes; then
10100    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10101    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10102
10103    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10104    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10105
10106    # If archive_cmds runs LD, not CC, wlarc should be empty
10107    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10108    #     investigate it a little bit more. (MM)
10109    wlarc='${wl}'
10110
10111    # ancient GNU ld didn't support --whole-archive et. al.
10112    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10113	grep 'no-whole-archive' > /dev/null; then
10114      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10115    else
10116      whole_archive_flag_spec_CXX=
10117    fi
10118  else
10119    with_gnu_ld=no
10120    wlarc=
10121
10122    # A generic and very simple default shared library creation
10123    # command for GNU C++ for the case where it uses the native
10124    # linker, instead of GNU ld.  If possible, this setting should
10125    # overridden to take advantage of the native linker features on
10126    # the platform it is being used on.
10127    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10128  fi
10129
10130  # Commands to make compiler produce verbose output that lists
10131  # what "hidden" libraries, object files and flags are used when
10132  # linking a shared library.
10133  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10134
10135else
10136  GXX=no
10137  with_gnu_ld=no
10138  wlarc=
10139fi
10140
10141# PORTME: fill in a description of your system's C++ link characteristics
10142echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10143echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10144ld_shlibs_CXX=yes
10145case $host_os in
10146  aix3*)
10147    # FIXME: insert proper C++ library support
10148    ld_shlibs_CXX=no
10149    ;;
10150  aix4* | aix5*)
10151    if test "$host_cpu" = ia64; then
10152      # On IA64, the linker does run time linking by default, so we don't
10153      # have to do anything special.
10154      aix_use_runtimelinking=no
10155      exp_sym_flag='-Bexport'
10156      no_entry_flag=""
10157    else
10158      aix_use_runtimelinking=no
10159
10160      # Test if we are trying to use run time linking or normal
10161      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10162      # need to do runtime linking.
10163      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10164	for ld_flag in $LDFLAGS; do
10165	  case $ld_flag in
10166	  *-brtl*)
10167	    aix_use_runtimelinking=yes
10168	    break
10169	    ;;
10170	  esac
10171	done
10172	;;
10173      esac
10174
10175      exp_sym_flag='-bexport'
10176      no_entry_flag='-bnoentry'
10177    fi
10178
10179    # When large executables or shared objects are built, AIX ld can
10180    # have problems creating the table of contents.  If linking a library
10181    # or program results in "error TOC overflow" add -mminimal-toc to
10182    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10183    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10184
10185    archive_cmds_CXX=''
10186    hardcode_direct_CXX=yes
10187    hardcode_libdir_separator_CXX=':'
10188    link_all_deplibs_CXX=yes
10189
10190    if test "$GXX" = yes; then
10191      case $host_os in aix4.[012]|aix4.[012].*)
10192      # We only want to do this on AIX 4.2 and lower, the check
10193      # below for broken collect2 doesn't work under 4.3+
10194	collect2name=`${CC} -print-prog-name=collect2`
10195	if test -f "$collect2name" && \
10196	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10197	then
10198	  # We have reworked collect2
10199	  hardcode_direct_CXX=yes
10200	else
10201	  # We have old collect2
10202	  hardcode_direct_CXX=unsupported
10203	  # It fails to find uninstalled libraries when the uninstalled
10204	  # path is not listed in the libpath.  Setting hardcode_minus_L
10205	  # to unsupported forces relinking
10206	  hardcode_minus_L_CXX=yes
10207	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10208	  hardcode_libdir_separator_CXX=
10209	fi
10210	;;
10211      esac
10212      shared_flag='-shared'
10213      if test "$aix_use_runtimelinking" = yes; then
10214	shared_flag="$shared_flag "'${wl}-G'
10215      fi
10216    else
10217      # not using gcc
10218      if test "$host_cpu" = ia64; then
10219	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10220	# chokes on -Wl,-G. The following line is correct:
10221	shared_flag='-G'
10222      else
10223	if test "$aix_use_runtimelinking" = yes; then
10224	  shared_flag='${wl}-G'
10225	else
10226	  shared_flag='${wl}-bM:SRE'
10227	fi
10228      fi
10229    fi
10230
10231    # It seems that -bexpall does not export symbols beginning with
10232    # underscore (_), so it is better to generate a list of symbols to export.
10233    always_export_symbols_CXX=yes
10234    if test "$aix_use_runtimelinking" = yes; then
10235      # Warning - without using the other runtime loading flags (-brtl),
10236      # -berok will link without error, but may produce a broken library.
10237      allow_undefined_flag_CXX='-berok'
10238      # Determine the default libpath from the value encoded in an empty executable.
10239      cat >conftest.$ac_ext <<_ACEOF
10240/* confdefs.h.  */
10241_ACEOF
10242cat confdefs.h >>conftest.$ac_ext
10243cat >>conftest.$ac_ext <<_ACEOF
10244/* end confdefs.h.  */
10245
10246int
10247main ()
10248{
10249
10250  ;
10251  return 0;
10252}
10253_ACEOF
10254rm -f conftest.$ac_objext conftest$ac_exeext
10255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10256  (eval $ac_link) 2>conftest.er1
10257  ac_status=$?
10258  grep -v '^ *+' conftest.er1 >conftest.err
10259  rm -f conftest.er1
10260  cat conftest.err >&5
10261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262  (exit $ac_status); } &&
10263	 { ac_try='test -z "$ac_cxx_werror_flag"
10264			 || test ! -s conftest.err'
10265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266  (eval $ac_try) 2>&5
10267  ac_status=$?
10268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269  (exit $ac_status); }; } &&
10270	 { ac_try='test -s conftest$ac_exeext'
10271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272  (eval $ac_try) 2>&5
10273  ac_status=$?
10274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275  (exit $ac_status); }; }; then
10276
10277aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10278}'`
10279# Check for a 64-bit object if we didn't find anything.
10280if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10281}'`; fi
10282else
10283  echo "$as_me: failed program was:" >&5
10284sed 's/^/| /' conftest.$ac_ext >&5
10285
10286fi
10287rm -f conftest.err conftest.$ac_objext \
10288      conftest$ac_exeext conftest.$ac_ext
10289if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10290
10291      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10292
10293      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10294     else
10295      if test "$host_cpu" = ia64; then
10296	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10297	allow_undefined_flag_CXX="-z nodefs"
10298	archive_expsym_cmds_CXX="\$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"
10299      else
10300	# Determine the default libpath from the value encoded in an empty executable.
10301	cat >conftest.$ac_ext <<_ACEOF
10302/* confdefs.h.  */
10303_ACEOF
10304cat confdefs.h >>conftest.$ac_ext
10305cat >>conftest.$ac_ext <<_ACEOF
10306/* end confdefs.h.  */
10307
10308int
10309main ()
10310{
10311
10312  ;
10313  return 0;
10314}
10315_ACEOF
10316rm -f conftest.$ac_objext conftest$ac_exeext
10317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10318  (eval $ac_link) 2>conftest.er1
10319  ac_status=$?
10320  grep -v '^ *+' conftest.er1 >conftest.err
10321  rm -f conftest.er1
10322  cat conftest.err >&5
10323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324  (exit $ac_status); } &&
10325	 { ac_try='test -z "$ac_cxx_werror_flag"
10326			 || test ! -s conftest.err'
10327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328  (eval $ac_try) 2>&5
10329  ac_status=$?
10330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331  (exit $ac_status); }; } &&
10332	 { ac_try='test -s conftest$ac_exeext'
10333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334  (eval $ac_try) 2>&5
10335  ac_status=$?
10336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337  (exit $ac_status); }; }; then
10338
10339aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10340}'`
10341# Check for a 64-bit object if we didn't find anything.
10342if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10343}'`; fi
10344else
10345  echo "$as_me: failed program was:" >&5
10346sed 's/^/| /' conftest.$ac_ext >&5
10347
10348fi
10349rm -f conftest.err conftest.$ac_objext \
10350      conftest$ac_exeext conftest.$ac_ext
10351if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10352
10353	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10354	# Warning - without using the other run time loading flags,
10355	# -berok will link without error, but may produce a broken library.
10356	no_undefined_flag_CXX=' ${wl}-bernotok'
10357	allow_undefined_flag_CXX=' ${wl}-berok'
10358	# Exported symbols can be pulled into shared objects from archives
10359	whole_archive_flag_spec_CXX='$convenience'
10360	archive_cmds_need_lc_CXX=yes
10361	# This is similar to how AIX traditionally builds its shared libraries.
10362	archive_expsym_cmds_CXX="\$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'
10363      fi
10364    fi
10365    ;;
10366
10367  beos*)
10368    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10369      allow_undefined_flag_CXX=unsupported
10370      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10371      # support --undefined.  This deserves some investigation.  FIXME
10372      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10373    else
10374      ld_shlibs_CXX=no
10375    fi
10376    ;;
10377
10378  chorus*)
10379    case $cc_basename in
10380      *)
10381	# FIXME: insert proper C++ library support
10382	ld_shlibs_CXX=no
10383	;;
10384    esac
10385    ;;
10386
10387  cygwin* | mingw* | pw32*)
10388    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10389    # as there is no search path for DLLs.
10390    hardcode_libdir_flag_spec_CXX='-L$libdir'
10391    allow_undefined_flag_CXX=unsupported
10392    always_export_symbols_CXX=no
10393    enable_shared_with_static_runtimes_CXX=yes
10394
10395    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10396      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10397      # If the export-symbols file already is a .def file (1st line
10398      # is EXPORTS), use it as is; otherwise, prepend...
10399      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10400	cp $export_symbols $output_objdir/$soname.def;
10401      else
10402	echo EXPORTS > $output_objdir/$soname.def;
10403	cat $export_symbols >> $output_objdir/$soname.def;
10404      fi~
10405      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10406    else
10407      ld_shlibs_CXX=no
10408    fi
10409  ;;
10410      darwin* | rhapsody*)
10411        case $host_os in
10412        rhapsody* | darwin1.[012])
10413         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10414         ;;
10415       *) # Darwin 1.3 on
10416         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10417           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10418         else
10419           case ${MACOSX_DEPLOYMENT_TARGET} in
10420             10.[012])
10421               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10422               ;;
10423             10.*)
10424               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10425               ;;
10426           esac
10427         fi
10428         ;;
10429        esac
10430      archive_cmds_need_lc_CXX=no
10431      hardcode_direct_CXX=no
10432      hardcode_automatic_CXX=yes
10433      hardcode_shlibpath_var_CXX=unsupported
10434      whole_archive_flag_spec_CXX=''
10435      link_all_deplibs_CXX=yes
10436
10437    if test "$GXX" = yes ; then
10438      lt_int_apple_cc_single_mod=no
10439      output_verbose_link_cmd='echo'
10440      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10441       lt_int_apple_cc_single_mod=yes
10442      fi
10443      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10444       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10445      else
10446          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10447        fi
10448        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10449        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10450          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10451            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10452          else
10453            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10454          fi
10455            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
10456      else
10457      case $cc_basename in
10458        xlc*)
10459         output_verbose_link_cmd='echo'
10460          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10461          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10462          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10463          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10464          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
10465          ;;
10466       *)
10467         ld_shlibs_CXX=no
10468          ;;
10469      esac
10470      fi
10471        ;;
10472
10473  dgux*)
10474    case $cc_basename in
10475      ec++*)
10476	# FIXME: insert proper C++ library support
10477	ld_shlibs_CXX=no
10478	;;
10479      ghcx*)
10480	# Green Hills C++ Compiler
10481	# FIXME: insert proper C++ library support
10482	ld_shlibs_CXX=no
10483	;;
10484      *)
10485	# FIXME: insert proper C++ library support
10486	ld_shlibs_CXX=no
10487	;;
10488    esac
10489    ;;
10490  freebsd[12]*)
10491    # C++ shared libraries reported to be fairly broken before switch to ELF
10492    ld_shlibs_CXX=no
10493    ;;
10494  freebsd-elf*)
10495    archive_cmds_need_lc_CXX=no
10496    ;;
10497  freebsd* | kfreebsd*-gnu | dragonfly*)
10498    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10499    # conventions
10500    ld_shlibs_CXX=yes
10501    ;;
10502  gnu*)
10503    ;;
10504  hpux9*)
10505    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10506    hardcode_libdir_separator_CXX=:
10507    export_dynamic_flag_spec_CXX='${wl}-E'
10508    hardcode_direct_CXX=yes
10509    hardcode_minus_L_CXX=yes # Not in the search PATH,
10510				# but as the default
10511				# location of the library.
10512
10513    case $cc_basename in
10514    CC*)
10515      # FIXME: insert proper C++ library support
10516      ld_shlibs_CXX=no
10517      ;;
10518    aCC*)
10519      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10520      # Commands to make compiler produce verbose output that lists
10521      # what "hidden" libraries, object files and flags are used when
10522      # linking a shared library.
10523      #
10524      # There doesn't appear to be a way to prevent this compiler from
10525      # explicitly linking system object files so we need to strip them
10526      # from the output so that they don't get included in the library
10527      # dependencies.
10528      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10529      ;;
10530    *)
10531      if test "$GXX" = yes; then
10532        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10533      else
10534        # FIXME: insert proper C++ library support
10535        ld_shlibs_CXX=no
10536      fi
10537      ;;
10538    esac
10539    ;;
10540  hpux10*|hpux11*)
10541    if test $with_gnu_ld = no; then
10542      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10543      hardcode_libdir_separator_CXX=:
10544
10545      case $host_cpu in
10546      hppa*64*|ia64*)
10547	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10548        ;;
10549      *)
10550	export_dynamic_flag_spec_CXX='${wl}-E'
10551        ;;
10552      esac
10553    fi
10554    case $host_cpu in
10555    hppa*64*|ia64*)
10556      hardcode_direct_CXX=no
10557      hardcode_shlibpath_var_CXX=no
10558      ;;
10559    *)
10560      hardcode_direct_CXX=yes
10561      hardcode_minus_L_CXX=yes # Not in the search PATH,
10562					      # but as the default
10563					      # location of the library.
10564      ;;
10565    esac
10566
10567    case $cc_basename in
10568      CC*)
10569	# FIXME: insert proper C++ library support
10570	ld_shlibs_CXX=no
10571	;;
10572      aCC*)
10573	case $host_cpu in
10574	hppa*64*)
10575	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10576	  ;;
10577	ia64*)
10578	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10579	  ;;
10580	*)
10581	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10582	  ;;
10583	esac
10584	# Commands to make compiler produce verbose output that lists
10585	# what "hidden" libraries, object files and flags are used when
10586	# linking a shared library.
10587	#
10588	# There doesn't appear to be a way to prevent this compiler from
10589	# explicitly linking system object files so we need to strip them
10590	# from the output so that they don't get included in the library
10591	# dependencies.
10592	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10593	;;
10594      *)
10595	if test "$GXX" = yes; then
10596	  if test $with_gnu_ld = no; then
10597	    case $host_cpu in
10598	    hppa*64*)
10599	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10600	      ;;
10601	    ia64*)
10602	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10603	      ;;
10604	    *)
10605	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10606	      ;;
10607	    esac
10608	  fi
10609	else
10610	  # FIXME: insert proper C++ library support
10611	  ld_shlibs_CXX=no
10612	fi
10613	;;
10614    esac
10615    ;;
10616  interix3*)
10617    hardcode_direct_CXX=no
10618    hardcode_shlibpath_var_CXX=no
10619    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10620    export_dynamic_flag_spec_CXX='${wl}-E'
10621    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10622    # Instead, shared libraries are loaded at an image base (0x10000000 by
10623    # default) and relocated if they conflict, which is a slow very memory
10624    # consuming and fragmenting process.  To avoid this, we pick a random,
10625    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10626    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10627    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10628    archive_expsym_cmds_CXX='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'
10629    ;;
10630  irix5* | irix6*)
10631    case $cc_basename in
10632      CC*)
10633	# SGI C++
10634	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10635
10636	# Archives containing C++ object files must be created using
10637	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10638	# necessary to make sure instantiated templates are included
10639	# in the archive.
10640	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10641	;;
10642      *)
10643	if test "$GXX" = yes; then
10644	  if test "$with_gnu_ld" = no; then
10645	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10646	  else
10647	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10648	  fi
10649	fi
10650	link_all_deplibs_CXX=yes
10651	;;
10652    esac
10653    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10654    hardcode_libdir_separator_CXX=:
10655    ;;
10656  linux*)
10657    case $cc_basename in
10658      KCC*)
10659	# Kuck and Associates, Inc. (KAI) C++ Compiler
10660
10661	# KCC will only create a shared library if the output file
10662	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10663	# to its proper name (with version) after linking.
10664	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10665	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10666	# Commands to make compiler produce verbose output that lists
10667	# what "hidden" libraries, object files and flags are used when
10668	# linking a shared library.
10669	#
10670	# There doesn't appear to be a way to prevent this compiler from
10671	# explicitly linking system object files so we need to strip them
10672	# from the output so that they don't get included in the library
10673	# dependencies.
10674	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10675
10676	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10677	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10678
10679	# Archives containing C++ object files must be created using
10680	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10681	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10682	;;
10683      icpc*)
10684	# Intel C++
10685	with_gnu_ld=yes
10686	# version 8.0 and above of icpc choke on multiply defined symbols
10687	# if we add $predep_objects and $postdep_objects, however 7.1 and
10688	# earlier do not add the objects themselves.
10689	case `$CC -V 2>&1` in
10690	*"Version 7."*)
10691  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10692  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10693	  ;;
10694	*)  # Version 8.0 or newer
10695	  tmp_idyn=
10696	  case $host_cpu in
10697	    ia64*) tmp_idyn=' -i_dynamic';;
10698	  esac
10699  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10700	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10701	  ;;
10702	esac
10703	archive_cmds_need_lc_CXX=no
10704	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10705	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10706	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10707	;;
10708      pgCC*)
10709        # Portland Group C++ compiler
10710	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10711  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10712
10713	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10714	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10715	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10716        ;;
10717      cxx*)
10718	# Compaq C++
10719	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10720	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10721
10722	runpath_var=LD_RUN_PATH
10723	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10724	hardcode_libdir_separator_CXX=:
10725
10726	# Commands to make compiler produce verbose output that lists
10727	# what "hidden" libraries, object files and flags are used when
10728	# linking a shared library.
10729	#
10730	# There doesn't appear to be a way to prevent this compiler from
10731	# explicitly linking system object files so we need to strip them
10732	# from the output so that they don't get included in the library
10733	# dependencies.
10734	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10735	;;
10736    esac
10737    ;;
10738  lynxos*)
10739    # FIXME: insert proper C++ library support
10740    ld_shlibs_CXX=no
10741    ;;
10742  m88k*)
10743    # FIXME: insert proper C++ library support
10744    ld_shlibs_CXX=no
10745    ;;
10746  mvs*)
10747    case $cc_basename in
10748      cxx*)
10749	# FIXME: insert proper C++ library support
10750	ld_shlibs_CXX=no
10751	;;
10752      *)
10753	# FIXME: insert proper C++ library support
10754	ld_shlibs_CXX=no
10755	;;
10756    esac
10757    ;;
10758  netbsd*)
10759    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10760      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10761      wlarc=
10762      hardcode_libdir_flag_spec_CXX='-R$libdir'
10763      hardcode_direct_CXX=yes
10764      hardcode_shlibpath_var_CXX=no
10765    fi
10766    # Workaround some broken pre-1.5 toolchains
10767    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10768    ;;
10769  openbsd2*)
10770    # C++ shared libraries are fairly broken
10771    ld_shlibs_CXX=no
10772    ;;
10773  openbsd*)
10774    hardcode_direct_CXX=yes
10775    hardcode_shlibpath_var_CXX=no
10776    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10777    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10778    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10779      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10780      export_dynamic_flag_spec_CXX='${wl}-E'
10781      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10782    fi
10783    output_verbose_link_cmd='echo'
10784    ;;
10785  osf3*)
10786    case $cc_basename in
10787      KCC*)
10788	# Kuck and Associates, Inc. (KAI) C++ Compiler
10789
10790	# KCC will only create a shared library if the output file
10791	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10792	# to its proper name (with version) after linking.
10793	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10794
10795	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10796	hardcode_libdir_separator_CXX=:
10797
10798	# Archives containing C++ object files must be created using
10799	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10800	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10801
10802	;;
10803      RCC*)
10804	# Rational C++ 2.4.1
10805	# FIXME: insert proper C++ library support
10806	ld_shlibs_CXX=no
10807	;;
10808      cxx*)
10809	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10810	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10811
10812	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10813	hardcode_libdir_separator_CXX=:
10814
10815	# Commands to make compiler produce verbose output that lists
10816	# what "hidden" libraries, object files and flags are used when
10817	# linking a shared library.
10818	#
10819	# There doesn't appear to be a way to prevent this compiler from
10820	# explicitly linking system object files so we need to strip them
10821	# from the output so that they don't get included in the library
10822	# dependencies.
10823	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10824	;;
10825      *)
10826	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10827	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10828	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10829
10830	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10831	  hardcode_libdir_separator_CXX=:
10832
10833	  # Commands to make compiler produce verbose output that lists
10834	  # what "hidden" libraries, object files and flags are used when
10835	  # linking a shared library.
10836	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10837
10838	else
10839	  # FIXME: insert proper C++ library support
10840	  ld_shlibs_CXX=no
10841	fi
10842	;;
10843    esac
10844    ;;
10845  osf4* | osf5*)
10846    case $cc_basename in
10847      KCC*)
10848	# Kuck and Associates, Inc. (KAI) C++ Compiler
10849
10850	# KCC will only create a shared library if the output file
10851	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10852	# to its proper name (with version) after linking.
10853	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10854
10855	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10856	hardcode_libdir_separator_CXX=:
10857
10858	# Archives containing C++ object files must be created using
10859	# the KAI C++ compiler.
10860	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10861	;;
10862      RCC*)
10863	# Rational C++ 2.4.1
10864	# FIXME: insert proper C++ library support
10865	ld_shlibs_CXX=no
10866	;;
10867      cxx*)
10868	allow_undefined_flag_CXX=' -expect_unresolved \*'
10869	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10870	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10871	  echo "-hidden">> $lib.exp~
10872	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10873	  $rm $lib.exp'
10874
10875	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10876	hardcode_libdir_separator_CXX=:
10877
10878	# Commands to make compiler produce verbose output that lists
10879	# what "hidden" libraries, object files and flags are used when
10880	# linking a shared library.
10881	#
10882	# There doesn't appear to be a way to prevent this compiler from
10883	# explicitly linking system object files so we need to strip them
10884	# from the output so that they don't get included in the library
10885	# dependencies.
10886	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10887	;;
10888      *)
10889	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10890	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10891	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10892
10893	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10894	  hardcode_libdir_separator_CXX=:
10895
10896	  # Commands to make compiler produce verbose output that lists
10897	  # what "hidden" libraries, object files and flags are used when
10898	  # linking a shared library.
10899	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10900
10901	else
10902	  # FIXME: insert proper C++ library support
10903	  ld_shlibs_CXX=no
10904	fi
10905	;;
10906    esac
10907    ;;
10908  psos*)
10909    # FIXME: insert proper C++ library support
10910    ld_shlibs_CXX=no
10911    ;;
10912  sunos4*)
10913    case $cc_basename in
10914      CC*)
10915	# Sun C++ 4.x
10916	# FIXME: insert proper C++ library support
10917	ld_shlibs_CXX=no
10918	;;
10919      lcc*)
10920	# Lucid
10921	# FIXME: insert proper C++ library support
10922	ld_shlibs_CXX=no
10923	;;
10924      *)
10925	# FIXME: insert proper C++ library support
10926	ld_shlibs_CXX=no
10927	;;
10928    esac
10929    ;;
10930  solaris*)
10931    case $cc_basename in
10932      CC*)
10933	# Sun C++ 4.2, 5.x and Centerline C++
10934        archive_cmds_need_lc_CXX=yes
10935	no_undefined_flag_CXX=' -zdefs'
10936	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10937	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10938	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10939
10940	hardcode_libdir_flag_spec_CXX='-R$libdir'
10941	hardcode_shlibpath_var_CXX=no
10942	case $host_os in
10943	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10944	  *)
10945	    # The C++ compiler is used as linker so we must use $wl
10946	    # flag to pass the commands to the underlying system
10947	    # linker. We must also pass each convience library through
10948	    # to the system linker between allextract/defaultextract.
10949	    # The C++ compiler will combine linker options so we
10950	    # cannot just pass the convience library names through
10951	    # without $wl.
10952	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10953	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10954	    ;;
10955	esac
10956	link_all_deplibs_CXX=yes
10957
10958	output_verbose_link_cmd='echo'
10959
10960	# Archives containing C++ object files must be created using
10961	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10962	# necessary to make sure instantiated templates are included
10963	# in the archive.
10964	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10965	;;
10966      gcx*)
10967	# Green Hills C++ Compiler
10968	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10969
10970	# The C++ compiler must be used to create the archive.
10971	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10972	;;
10973      *)
10974	# GNU C++ compiler with Solaris linker
10975	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10976	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10977	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10978	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10979	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10980		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10981
10982	    # Commands to make compiler produce verbose output that lists
10983	    # what "hidden" libraries, object files and flags are used when
10984	    # linking a shared library.
10985	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10986	  else
10987	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10988	    # platform.
10989	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10990	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10991		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10992
10993	    # Commands to make compiler produce verbose output that lists
10994	    # what "hidden" libraries, object files and flags are used when
10995	    # linking a shared library.
10996	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10997	  fi
10998
10999	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11000	fi
11001	;;
11002    esac
11003    ;;
11004  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11005    no_undefined_flag_CXX='${wl}-z,text'
11006    archive_cmds_need_lc_CXX=no
11007    hardcode_shlibpath_var_CXX=no
11008    runpath_var='LD_RUN_PATH'
11009
11010    case $cc_basename in
11011      CC*)
11012	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014	;;
11015      *)
11016	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018	;;
11019    esac
11020    ;;
11021  sysv5* | sco3.2v5* | sco5v6*)
11022    # Note: We can NOT use -z defs as we might desire, because we do not
11023    # link with -lc, and that would cause any symbols used from libc to
11024    # always be unresolved, which means just about no library would
11025    # ever link correctly.  If we're not using GNU ld we use -z text
11026    # though, which does catch some bad symbols but isn't as heavy-handed
11027    # as -z defs.
11028    # For security reasons, it is highly recommended that you always
11029    # use absolute paths for naming shared libraries, and exclude the
11030    # DT_RUNPATH tag from executables and libraries.  But doing so
11031    # requires that you compile everything twice, which is a pain.
11032    # So that behaviour is only enabled if SCOABSPATH is set to a
11033    # non-empty value in the environment.  Most likely only useful for
11034    # creating official distributions of packages.
11035    # This is a hack until libtool officially supports absolute path
11036    # names for shared libraries.
11037    no_undefined_flag_CXX='${wl}-z,text'
11038    allow_undefined_flag_CXX='${wl}-z,nodefs'
11039    archive_cmds_need_lc_CXX=no
11040    hardcode_shlibpath_var_CXX=no
11041    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11042    hardcode_libdir_separator_CXX=':'
11043    link_all_deplibs_CXX=yes
11044    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11045    runpath_var='LD_RUN_PATH'
11046
11047    case $cc_basename in
11048      CC*)
11049	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11050	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11051	;;
11052      *)
11053	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11054	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11055	;;
11056    esac
11057    ;;
11058  tandem*)
11059    case $cc_basename in
11060      NCC*)
11061	# NonStop-UX NCC 3.20
11062	# FIXME: insert proper C++ library support
11063	ld_shlibs_CXX=no
11064	;;
11065      *)
11066	# FIXME: insert proper C++ library support
11067	ld_shlibs_CXX=no
11068	;;
11069    esac
11070    ;;
11071  vxworks*)
11072    # FIXME: insert proper C++ library support
11073    ld_shlibs_CXX=no
11074    ;;
11075  *)
11076    # FIXME: insert proper C++ library support
11077    ld_shlibs_CXX=no
11078    ;;
11079esac
11080echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11081echo "${ECHO_T}$ld_shlibs_CXX" >&6
11082test "$ld_shlibs_CXX" = no && can_build_shared=no
11083
11084GCC_CXX="$GXX"
11085LD_CXX="$LD"
11086
11087## CAVEAT EMPTOR:
11088## There is no encapsulation within the following macros, do not change
11089## the running order or otherwise move them around unless you know exactly
11090## what you are doing...
11091
11092cat > conftest.$ac_ext <<EOF
11093class Foo
11094{
11095public:
11096  Foo (void) { a = 0; }
11097private:
11098  int a;
11099};
11100EOF
11101
11102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11103  (eval $ac_compile) 2>&5
11104  ac_status=$?
11105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106  (exit $ac_status); }; then
11107  # Parse the compiler output and extract the necessary
11108  # objects, libraries and library flags.
11109
11110  # Sentinel used to keep track of whether or not we are before
11111  # the conftest object file.
11112  pre_test_object_deps_done=no
11113
11114  # The `*' in the case matches for architectures that use `case' in
11115  # $output_verbose_cmd can trigger glob expansion during the loop
11116  # eval without this substitution.
11117  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11118
11119  for p in `eval $output_verbose_link_cmd`; do
11120    case $p in
11121
11122    -L* | -R* | -l*)
11123       # Some compilers place space between "-{L,R}" and the path.
11124       # Remove the space.
11125       if test $p = "-L" \
11126	  || test $p = "-R"; then
11127	 prev=$p
11128	 continue
11129       else
11130	 prev=
11131       fi
11132
11133       if test "$pre_test_object_deps_done" = no; then
11134	 case $p in
11135	 -L* | -R*)
11136	   # Internal compiler library paths should come after those
11137	   # provided the user.  The postdeps already come after the
11138	   # user supplied libs so there is no need to process them.
11139	   if test -z "$compiler_lib_search_path_CXX"; then
11140	     compiler_lib_search_path_CXX="${prev}${p}"
11141	   else
11142	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11143	   fi
11144	   ;;
11145	 # The "-l" case would never come before the object being
11146	 # linked, so don't bother handling this case.
11147	 esac
11148       else
11149	 if test -z "$postdeps_CXX"; then
11150	   postdeps_CXX="${prev}${p}"
11151	 else
11152	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11153	 fi
11154       fi
11155       ;;
11156
11157    *.$objext)
11158       # This assumes that the test object file only shows up
11159       # once in the compiler output.
11160       if test "$p" = "conftest.$objext"; then
11161	 pre_test_object_deps_done=yes
11162	 continue
11163       fi
11164
11165       if test "$pre_test_object_deps_done" = no; then
11166	 if test -z "$predep_objects_CXX"; then
11167	   predep_objects_CXX="$p"
11168	 else
11169	   predep_objects_CXX="$predep_objects_CXX $p"
11170	 fi
11171       else
11172	 if test -z "$postdep_objects_CXX"; then
11173	   postdep_objects_CXX="$p"
11174	 else
11175	   postdep_objects_CXX="$postdep_objects_CXX $p"
11176	 fi
11177       fi
11178       ;;
11179
11180    *) ;; # Ignore the rest.
11181
11182    esac
11183  done
11184
11185  # Clean up.
11186  rm -f a.out a.exe
11187else
11188  echo "libtool.m4: error: problem compiling CXX test program"
11189fi
11190
11191$rm -f confest.$objext
11192
11193# PORTME: override above test on systems where it is broken
11194case $host_os in
11195interix3*)
11196  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11197  # hack all around it, let's just trust "g++" to DTRT.
11198  predep_objects_CXX=
11199  postdep_objects_CXX=
11200  postdeps_CXX=
11201  ;;
11202
11203solaris*)
11204  case $cc_basename in
11205  CC*)
11206    # Adding this requires a known-good setup of shared libraries for
11207    # Sun compiler versions before 5.6, else PIC objects from an old
11208    # archive will be linked into the output, leading to subtle bugs.
11209    postdeps_CXX='-lCstd -lCrun'
11210    ;;
11211  esac
11212  ;;
11213esac
11214
11215
11216case " $postdeps_CXX " in
11217*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11218esac
11219
11220lt_prog_compiler_wl_CXX=
11221lt_prog_compiler_pic_CXX=
11222lt_prog_compiler_static_CXX=
11223
11224echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11225echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11226
11227  # C++ specific cases for pic, static, wl, etc.
11228  if test "$GXX" = yes; then
11229    lt_prog_compiler_wl_CXX='-Wl,'
11230    lt_prog_compiler_static_CXX='-static'
11231
11232    case $host_os in
11233    aix*)
11234      # All AIX code is PIC.
11235      if test "$host_cpu" = ia64; then
11236	# AIX 5 now supports IA64 processor
11237	lt_prog_compiler_static_CXX='-Bstatic'
11238      fi
11239      ;;
11240    amigaos*)
11241      # FIXME: we need at least 68020 code to build shared libraries, but
11242      # adding the `-m68020' flag to GCC prevents building anything better,
11243      # like `-m68040'.
11244      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11245      ;;
11246    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11247      # PIC is the default for these OSes.
11248      ;;
11249    mingw* | os2* | pw32*)
11250      # This hack is so that the source file can tell whether it is being
11251      # built for inclusion in a dll (and should export symbols for example).
11252      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11253      ;;
11254    darwin* | rhapsody*)
11255      # PIC is the default on this platform
11256      # Common symbols not allowed in MH_DYLIB files
11257      lt_prog_compiler_pic_CXX='-fno-common'
11258      ;;
11259    *djgpp*)
11260      # DJGPP does not support shared libraries at all
11261      lt_prog_compiler_pic_CXX=
11262      ;;
11263    interix3*)
11264      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11265      # Instead, we relocate shared libraries at runtime.
11266      ;;
11267    sysv4*MP*)
11268      if test -d /usr/nec; then
11269	lt_prog_compiler_pic_CXX=-Kconform_pic
11270      fi
11271      ;;
11272    hpux*)
11273      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11274      # not for PA HP-UX.
11275      case $host_cpu in
11276      hppa*64*|ia64*)
11277	;;
11278      *)
11279	lt_prog_compiler_pic_CXX='-fPIC'
11280	;;
11281      esac
11282      ;;
11283    *)
11284      lt_prog_compiler_pic_CXX='-fPIC'
11285      ;;
11286    esac
11287  else
11288    case $host_os in
11289      aix4* | aix5*)
11290	# All AIX code is PIC.
11291	if test "$host_cpu" = ia64; then
11292	  # AIX 5 now supports IA64 processor
11293	  lt_prog_compiler_static_CXX='-Bstatic'
11294	else
11295	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11296	fi
11297	;;
11298      chorus*)
11299	case $cc_basename in
11300	cxch68*)
11301	  # Green Hills C++ Compiler
11302	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11303	  ;;
11304	esac
11305	;;
11306       darwin*)
11307         # PIC is the default on this platform
11308         # Common symbols not allowed in MH_DYLIB files
11309         case $cc_basename in
11310           xlc*)
11311           lt_prog_compiler_pic_CXX='-qnocommon'
11312           lt_prog_compiler_wl_CXX='-Wl,'
11313           ;;
11314         esac
11315       ;;
11316      dgux*)
11317	case $cc_basename in
11318	  ec++*)
11319	    lt_prog_compiler_pic_CXX='-KPIC'
11320	    ;;
11321	  ghcx*)
11322	    # Green Hills C++ Compiler
11323	    lt_prog_compiler_pic_CXX='-pic'
11324	    ;;
11325	  *)
11326	    ;;
11327	esac
11328	;;
11329      freebsd* | kfreebsd*-gnu | dragonfly*)
11330	# FreeBSD uses GNU C++
11331	;;
11332      hpux9* | hpux10* | hpux11*)
11333	case $cc_basename in
11334	  CC*)
11335	    lt_prog_compiler_wl_CXX='-Wl,'
11336	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11337	    if test "$host_cpu" != ia64; then
11338	      lt_prog_compiler_pic_CXX='+Z'
11339	    fi
11340	    ;;
11341	  aCC*)
11342	    lt_prog_compiler_wl_CXX='-Wl,'
11343	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11344	    case $host_cpu in
11345	    hppa*64*|ia64*)
11346	      # +Z the default
11347	      ;;
11348	    *)
11349	      lt_prog_compiler_pic_CXX='+Z'
11350	      ;;
11351	    esac
11352	    ;;
11353	  *)
11354	    ;;
11355	esac
11356	;;
11357      interix*)
11358	# This is c89, which is MS Visual C++ (no shared libs)
11359	# Anyone wants to do a port?
11360	;;
11361      irix5* | irix6* | nonstopux*)
11362	case $cc_basename in
11363	  CC*)
11364	    lt_prog_compiler_wl_CXX='-Wl,'
11365	    lt_prog_compiler_static_CXX='-non_shared'
11366	    # CC pic flag -KPIC is the default.
11367	    ;;
11368	  *)
11369	    ;;
11370	esac
11371	;;
11372      linux*)
11373	case $cc_basename in
11374	  KCC*)
11375	    # KAI C++ Compiler
11376	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11377	    lt_prog_compiler_pic_CXX='-fPIC'
11378	    ;;
11379	  icpc* | ecpc*)
11380	    # Intel C++
11381	    lt_prog_compiler_wl_CXX='-Wl,'
11382	    lt_prog_compiler_pic_CXX='-KPIC'
11383	    lt_prog_compiler_static_CXX='-static'
11384	    ;;
11385	  pgCC*)
11386	    # Portland Group C++ compiler.
11387	    lt_prog_compiler_wl_CXX='-Wl,'
11388	    lt_prog_compiler_pic_CXX='-fpic'
11389	    lt_prog_compiler_static_CXX='-Bstatic'
11390	    ;;
11391	  cxx*)
11392	    # Compaq C++
11393	    # Make sure the PIC flag is empty.  It appears that all Alpha
11394	    # Linux and Compaq Tru64 Unix objects are PIC.
11395	    lt_prog_compiler_pic_CXX=
11396	    lt_prog_compiler_static_CXX='-non_shared'
11397	    ;;
11398	  *)
11399	    ;;
11400	esac
11401	;;
11402      lynxos*)
11403	;;
11404      m88k*)
11405	;;
11406      mvs*)
11407	case $cc_basename in
11408	  cxx*)
11409	    lt_prog_compiler_pic_CXX='-W c,exportall'
11410	    ;;
11411	  *)
11412	    ;;
11413	esac
11414	;;
11415      netbsd*)
11416	;;
11417      osf3* | osf4* | osf5*)
11418	case $cc_basename in
11419	  KCC*)
11420	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11421	    ;;
11422	  RCC*)
11423	    # Rational C++ 2.4.1
11424	    lt_prog_compiler_pic_CXX='-pic'
11425	    ;;
11426	  cxx*)
11427	    # Digital/Compaq C++
11428	    lt_prog_compiler_wl_CXX='-Wl,'
11429	    # Make sure the PIC flag is empty.  It appears that all Alpha
11430	    # Linux and Compaq Tru64 Unix objects are PIC.
11431	    lt_prog_compiler_pic_CXX=
11432	    lt_prog_compiler_static_CXX='-non_shared'
11433	    ;;
11434	  *)
11435	    ;;
11436	esac
11437	;;
11438      psos*)
11439	;;
11440      solaris*)
11441	case $cc_basename in
11442	  CC*)
11443	    # Sun C++ 4.2, 5.x and Centerline C++
11444	    lt_prog_compiler_pic_CXX='-KPIC'
11445	    lt_prog_compiler_static_CXX='-Bstatic'
11446	    lt_prog_compiler_wl_CXX='-Qoption ld '
11447	    ;;
11448	  gcx*)
11449	    # Green Hills C++ Compiler
11450	    lt_prog_compiler_pic_CXX='-PIC'
11451	    ;;
11452	  *)
11453	    ;;
11454	esac
11455	;;
11456      sunos4*)
11457	case $cc_basename in
11458	  CC*)
11459	    # Sun C++ 4.x
11460	    lt_prog_compiler_pic_CXX='-pic'
11461	    lt_prog_compiler_static_CXX='-Bstatic'
11462	    ;;
11463	  lcc*)
11464	    # Lucid
11465	    lt_prog_compiler_pic_CXX='-pic'
11466	    ;;
11467	  *)
11468	    ;;
11469	esac
11470	;;
11471      tandem*)
11472	case $cc_basename in
11473	  NCC*)
11474	    # NonStop-UX NCC 3.20
11475	    lt_prog_compiler_pic_CXX='-KPIC'
11476	    ;;
11477	  *)
11478	    ;;
11479	esac
11480	;;
11481      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11482	case $cc_basename in
11483	  CC*)
11484	    lt_prog_compiler_wl_CXX='-Wl,'
11485	    lt_prog_compiler_pic_CXX='-KPIC'
11486	    lt_prog_compiler_static_CXX='-Bstatic'
11487	    ;;
11488	esac
11489	;;
11490      vxworks*)
11491	;;
11492      *)
11493	lt_prog_compiler_can_build_shared_CXX=no
11494	;;
11495    esac
11496  fi
11497
11498echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11499echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11500
11501#
11502# Check to make sure the PIC flag actually works.
11503#
11504if test -n "$lt_prog_compiler_pic_CXX"; then
11505
11506echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11507echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11508if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11509  echo $ECHO_N "(cached) $ECHO_C" >&6
11510else
11511  lt_prog_compiler_pic_works_CXX=no
11512  ac_outfile=conftest.$ac_objext
11513   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11514   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11515   # Insert the option either (1) after the last *FLAGS variable, or
11516   # (2) before a word containing "conftest.", or (3) at the end.
11517   # Note that $ac_compile itself does not contain backslashes and begins
11518   # with a dollar sign (not a hyphen), so the echo should work correctly.
11519   # The option is referenced via a variable to avoid confusing sed.
11520   lt_compile=`echo "$ac_compile" | $SED \
11521   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11522   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11523   -e 's:$: $lt_compiler_flag:'`
11524   (eval echo "\"\$as_me:11524: $lt_compile\"" >&5)
11525   (eval "$lt_compile" 2>conftest.err)
11526   ac_status=$?
11527   cat conftest.err >&5
11528   echo "$as_me:11528: \$? = $ac_status" >&5
11529   if (exit $ac_status) && test -s "$ac_outfile"; then
11530     # The compiler can only warn and ignore the option if not recognized
11531     # So say no if there are warnings other than the usual output.
11532     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11533     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11534     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11535       lt_prog_compiler_pic_works_CXX=yes
11536     fi
11537   fi
11538   $rm conftest*
11539
11540fi
11541echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11542echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11543
11544if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11545    case $lt_prog_compiler_pic_CXX in
11546     "" | " "*) ;;
11547     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11548     esac
11549else
11550    lt_prog_compiler_pic_CXX=
11551     lt_prog_compiler_can_build_shared_CXX=no
11552fi
11553
11554fi
11555case $host_os in
11556  # For platforms which do not support PIC, -DPIC is meaningless:
11557  *djgpp*)
11558    lt_prog_compiler_pic_CXX=
11559    ;;
11560  *)
11561    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11562    ;;
11563esac
11564
11565#
11566# Check to make sure the static flag actually works.
11567#
11568wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11569echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11570echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11571if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11572  echo $ECHO_N "(cached) $ECHO_C" >&6
11573else
11574  lt_prog_compiler_static_works_CXX=no
11575   save_LDFLAGS="$LDFLAGS"
11576   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11577   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11578   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11579     # The linker can only warn and ignore the option if not recognized
11580     # So say no if there are warnings
11581     if test -s conftest.err; then
11582       # Append any errors to the config.log.
11583       cat conftest.err 1>&5
11584       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11585       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11586       if diff conftest.exp conftest.er2 >/dev/null; then
11587         lt_prog_compiler_static_works_CXX=yes
11588       fi
11589     else
11590       lt_prog_compiler_static_works_CXX=yes
11591     fi
11592   fi
11593   $rm conftest*
11594   LDFLAGS="$save_LDFLAGS"
11595
11596fi
11597echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11598echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11599
11600if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11601    :
11602else
11603    lt_prog_compiler_static_CXX=
11604fi
11605
11606
11607echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11608echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11609if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11610  echo $ECHO_N "(cached) $ECHO_C" >&6
11611else
11612  lt_cv_prog_compiler_c_o_CXX=no
11613   $rm -r conftest 2>/dev/null
11614   mkdir conftest
11615   cd conftest
11616   mkdir out
11617   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11618
11619   lt_compiler_flag="-o out/conftest2.$ac_objext"
11620   # Insert the option either (1) after the last *FLAGS variable, or
11621   # (2) before a word containing "conftest.", or (3) at the end.
11622   # Note that $ac_compile itself does not contain backslashes and begins
11623   # with a dollar sign (not a hyphen), so the echo should work correctly.
11624   lt_compile=`echo "$ac_compile" | $SED \
11625   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11626   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11627   -e 's:$: $lt_compiler_flag:'`
11628   (eval echo "\"\$as_me:11628: $lt_compile\"" >&5)
11629   (eval "$lt_compile" 2>out/conftest.err)
11630   ac_status=$?
11631   cat out/conftest.err >&5
11632   echo "$as_me:11632: \$? = $ac_status" >&5
11633   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11634   then
11635     # The compiler can only warn and ignore the option if not recognized
11636     # So say no if there are warnings
11637     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11638     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11639     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11640       lt_cv_prog_compiler_c_o_CXX=yes
11641     fi
11642   fi
11643   chmod u+w . 2>&5
11644   $rm conftest*
11645   # SGI C++ compiler will create directory out/ii_files/ for
11646   # template instantiation
11647   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11648   $rm out/* && rmdir out
11649   cd ..
11650   rmdir conftest
11651   $rm conftest*
11652
11653fi
11654echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11655echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11656
11657
11658hard_links="nottested"
11659if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11660  # do not overwrite the value of need_locks provided by the user
11661  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11662echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11663  hard_links=yes
11664  $rm conftest*
11665  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11666  touch conftest.a
11667  ln conftest.a conftest.b 2>&5 || hard_links=no
11668  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11669  echo "$as_me:$LINENO: result: $hard_links" >&5
11670echo "${ECHO_T}$hard_links" >&6
11671  if test "$hard_links" = no; then
11672    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11673echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11674    need_locks=warn
11675  fi
11676else
11677  need_locks=no
11678fi
11679
11680echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11681echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11682
11683  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11684  case $host_os in
11685  aix4* | aix5*)
11686    # If we're using GNU nm, then we don't want the "-C" option.
11687    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11688    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11689      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11690    else
11691      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11692    fi
11693    ;;
11694  pw32*)
11695    export_symbols_cmds_CXX="$ltdll_cmds"
11696  ;;
11697  cygwin* | mingw*)
11698    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11699  ;;
11700  *)
11701    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11702  ;;
11703  esac
11704
11705echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11706echo "${ECHO_T}$ld_shlibs_CXX" >&6
11707test "$ld_shlibs_CXX" = no && can_build_shared=no
11708
11709#
11710# Do we need to explicitly link libc?
11711#
11712case "x$archive_cmds_need_lc_CXX" in
11713x|xyes)
11714  # Assume -lc should be added
11715  archive_cmds_need_lc_CXX=yes
11716
11717  if test "$enable_shared" = yes && test "$GCC" = yes; then
11718    case $archive_cmds_CXX in
11719    *'~'*)
11720      # FIXME: we may have to deal with multi-command sequences.
11721      ;;
11722    '$CC '*)
11723      # Test whether the compiler implicitly links with -lc since on some
11724      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11725      # to ld, don't add -lc before -lgcc.
11726      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11727echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11728      $rm conftest*
11729      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11730
11731      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11732  (eval $ac_compile) 2>&5
11733  ac_status=$?
11734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735  (exit $ac_status); } 2>conftest.err; then
11736        soname=conftest
11737        lib=conftest
11738        libobjs=conftest.$ac_objext
11739        deplibs=
11740        wl=$lt_prog_compiler_wl_CXX
11741	pic_flag=$lt_prog_compiler_pic_CXX
11742        compiler_flags=-v
11743        linker_flags=-v
11744        verstring=
11745        output_objdir=.
11746        libname=conftest
11747        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11748        allow_undefined_flag_CXX=
11749        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11750  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11751  ac_status=$?
11752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753  (exit $ac_status); }
11754        then
11755	  archive_cmds_need_lc_CXX=no
11756        else
11757	  archive_cmds_need_lc_CXX=yes
11758        fi
11759        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11760      else
11761        cat conftest.err 1>&5
11762      fi
11763      $rm conftest*
11764      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11765echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11766      ;;
11767    esac
11768  fi
11769  ;;
11770esac
11771
11772echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11773echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11774library_names_spec=
11775libname_spec='lib$name'
11776soname_spec=
11777shrext_cmds=".so"
11778postinstall_cmds=
11779postuninstall_cmds=
11780finish_cmds=
11781finish_eval=
11782shlibpath_var=
11783shlibpath_overrides_runpath=unknown
11784version_type=none
11785dynamic_linker="$host_os ld.so"
11786sys_lib_dlsearch_path_spec="/lib /usr/lib"
11787if test "$GCC" = yes; then
11788  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11789  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11790    # if the path contains ";" then we assume it to be the separator
11791    # otherwise default to the standard path separator (i.e. ":") - it is
11792    # assumed that no part of a normal pathname contains ";" but that should
11793    # okay in the real world where ";" in dirpaths is itself problematic.
11794    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11795  else
11796    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11797  fi
11798else
11799  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11800fi
11801need_lib_prefix=unknown
11802hardcode_into_libs=no
11803
11804# when you set need_version to no, make sure it does not cause -set_version
11805# flags to be left without arguments
11806need_version=unknown
11807
11808case $host_os in
11809aix3*)
11810  version_type=linux
11811  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11812  shlibpath_var=LIBPATH
11813
11814  # AIX 3 has no versioning support, so we append a major version to the name.
11815  soname_spec='${libname}${release}${shared_ext}$major'
11816  ;;
11817
11818aix4* | aix5*)
11819  version_type=linux
11820  need_lib_prefix=no
11821  need_version=no
11822  hardcode_into_libs=yes
11823  if test "$host_cpu" = ia64; then
11824    # AIX 5 supports IA64
11825    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11826    shlibpath_var=LD_LIBRARY_PATH
11827  else
11828    # With GCC up to 2.95.x, collect2 would create an import file
11829    # for dependence libraries.  The import file would start with
11830    # the line `#! .'.  This would cause the generated library to
11831    # depend on `.', always an invalid library.  This was fixed in
11832    # development snapshots of GCC prior to 3.0.
11833    case $host_os in
11834      aix4 | aix4.[01] | aix4.[01].*)
11835      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11836	   echo ' yes '
11837	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11838	:
11839      else
11840	can_build_shared=no
11841      fi
11842      ;;
11843    esac
11844    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11845    # soname into executable. Probably we can add versioning support to
11846    # collect2, so additional links can be useful in future.
11847    if test "$aix_use_runtimelinking" = yes; then
11848      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11849      # instead of lib<name>.a to let people know that these are not
11850      # typical AIX shared libraries.
11851      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11852    else
11853      # We preserve .a as extension for shared libraries through AIX4.2
11854      # and later when we are not doing run time linking.
11855      library_names_spec='${libname}${release}.a $libname.a'
11856      soname_spec='${libname}${release}${shared_ext}$major'
11857    fi
11858    shlibpath_var=LIBPATH
11859  fi
11860  ;;
11861
11862amigaos*)
11863  library_names_spec='$libname.ixlibrary $libname.a'
11864  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11865  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'
11866  ;;
11867
11868beos*)
11869  library_names_spec='${libname}${shared_ext}'
11870  dynamic_linker="$host_os ld.so"
11871  shlibpath_var=LIBRARY_PATH
11872  ;;
11873
11874bsdi[45]*)
11875  version_type=linux
11876  need_version=no
11877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878  soname_spec='${libname}${release}${shared_ext}$major'
11879  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11880  shlibpath_var=LD_LIBRARY_PATH
11881  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11882  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11883  # the default ld.so.conf also contains /usr/contrib/lib and
11884  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11885  # libtool to hard-code these into programs
11886  ;;
11887
11888cygwin* | mingw* | pw32*)
11889  version_type=windows
11890  shrext_cmds=".dll"
11891  need_version=no
11892  need_lib_prefix=no
11893
11894  case $GCC,$host_os in
11895  yes,cygwin* | yes,mingw* | yes,pw32*)
11896    library_names_spec='$libname.dll.a'
11897    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11898    postinstall_cmds='base_file=`basename \${file}`~
11899      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11900      dldir=$destdir/`dirname \$dlpath`~
11901      test -d \$dldir || mkdir -p \$dldir~
11902      $install_prog $dir/$dlname \$dldir/$dlname~
11903      chmod a+x \$dldir/$dlname'
11904    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11905      dlpath=$dir/\$dldll~
11906       $rm \$dlpath'
11907    shlibpath_overrides_runpath=yes
11908
11909    case $host_os in
11910    cygwin*)
11911      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11912      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11913      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11914      ;;
11915    mingw*)
11916      # MinGW DLLs use traditional 'lib' prefix
11917      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11918      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11919      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11920        # It is most probably a Windows format PATH printed by
11921        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11922        # path with ; separators, and with drive letters. We can handle the
11923        # drive letters (cygwin fileutils understands them), so leave them,
11924        # especially as we might pass files found there to a mingw objdump,
11925        # which wouldn't understand a cygwinified path. Ahh.
11926        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11927      else
11928        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11929      fi
11930      ;;
11931    pw32*)
11932      # pw32 DLLs use 'pw' prefix rather than 'lib'
11933      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11934      ;;
11935    esac
11936    ;;
11937
11938  *)
11939    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11940    ;;
11941  esac
11942  dynamic_linker='Win32 ld.exe'
11943  # FIXME: first we should search . and the directory the executable is in
11944  shlibpath_var=PATH
11945  ;;
11946
11947darwin* | rhapsody*)
11948  dynamic_linker="$host_os dyld"
11949  version_type=darwin
11950  need_lib_prefix=no
11951  need_version=no
11952  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11953  soname_spec='${libname}${release}${major}$shared_ext'
11954  shlibpath_overrides_runpath=yes
11955  shlibpath_var=DYLD_LIBRARY_PATH
11956  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11957  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11958  if test "$GCC" = yes; then
11959    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11960  else
11961    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11962  fi
11963  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11964  ;;
11965
11966dgux*)
11967  version_type=linux
11968  need_lib_prefix=no
11969  need_version=no
11970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11971  soname_spec='${libname}${release}${shared_ext}$major'
11972  shlibpath_var=LD_LIBRARY_PATH
11973  ;;
11974
11975freebsd1*)
11976  dynamic_linker=no
11977  ;;
11978
11979kfreebsd*-gnu)
11980  version_type=linux
11981  need_lib_prefix=no
11982  need_version=no
11983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11984  soname_spec='${libname}${release}${shared_ext}$major'
11985  shlibpath_var=LD_LIBRARY_PATH
11986  shlibpath_overrides_runpath=no
11987  hardcode_into_libs=yes
11988  dynamic_linker='GNU ld.so'
11989  ;;
11990
11991freebsd* | dragonfly*)
11992  # DragonFly does not have aout.  When/if they implement a new
11993  # versioning mechanism, adjust this.
11994  if test -x /usr/bin/objformat; then
11995    objformat=`/usr/bin/objformat`
11996  else
11997    case $host_os in
11998    freebsd[123]*) objformat=aout ;;
11999    *) objformat=elf ;;
12000    esac
12001  fi
12002  version_type=freebsd-$objformat
12003  case $version_type in
12004    freebsd-elf*)
12005      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12006      need_version=no
12007      need_lib_prefix=no
12008      ;;
12009    freebsd-*)
12010      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12011      need_version=yes
12012      ;;
12013  esac
12014  shlibpath_var=LD_LIBRARY_PATH
12015  case $host_os in
12016  freebsd2*)
12017    shlibpath_overrides_runpath=yes
12018    ;;
12019  freebsd3.[01]* | freebsdelf3.[01]*)
12020    shlibpath_overrides_runpath=yes
12021    hardcode_into_libs=yes
12022    ;;
12023  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12024  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12025    shlibpath_overrides_runpath=no
12026    hardcode_into_libs=yes
12027    ;;
12028  freebsd*) # from 4.6 on
12029    shlibpath_overrides_runpath=yes
12030    hardcode_into_libs=yes
12031    ;;
12032  esac
12033  ;;
12034
12035gnu*)
12036  version_type=linux
12037  need_lib_prefix=no
12038  need_version=no
12039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12040  soname_spec='${libname}${release}${shared_ext}$major'
12041  shlibpath_var=LD_LIBRARY_PATH
12042  hardcode_into_libs=yes
12043  ;;
12044
12045hpux9* | hpux10* | hpux11*)
12046  # Give a soname corresponding to the major version so that dld.sl refuses to
12047  # link against other versions.
12048  version_type=sunos
12049  need_lib_prefix=no
12050  need_version=no
12051  case $host_cpu in
12052  ia64*)
12053    shrext_cmds='.so'
12054    hardcode_into_libs=yes
12055    dynamic_linker="$host_os dld.so"
12056    shlibpath_var=LD_LIBRARY_PATH
12057    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12058    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12059    soname_spec='${libname}${release}${shared_ext}$major'
12060    if test "X$HPUX_IA64_MODE" = X32; then
12061      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12062    else
12063      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12064    fi
12065    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12066    ;;
12067   hppa*64*)
12068     shrext_cmds='.sl'
12069     hardcode_into_libs=yes
12070     dynamic_linker="$host_os dld.sl"
12071     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12072     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12074     soname_spec='${libname}${release}${shared_ext}$major'
12075     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12076     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12077     ;;
12078   *)
12079    shrext_cmds='.sl'
12080    dynamic_linker="$host_os dld.sl"
12081    shlibpath_var=SHLIB_PATH
12082    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12083    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12084    soname_spec='${libname}${release}${shared_ext}$major'
12085    ;;
12086  esac
12087  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12088  postinstall_cmds='chmod 555 $lib'
12089  ;;
12090
12091interix3*)
12092  version_type=linux
12093  need_lib_prefix=no
12094  need_version=no
12095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12096  soname_spec='${libname}${release}${shared_ext}$major'
12097  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12098  shlibpath_var=LD_LIBRARY_PATH
12099  shlibpath_overrides_runpath=no
12100  hardcode_into_libs=yes
12101  ;;
12102
12103irix5* | irix6* | nonstopux*)
12104  case $host_os in
12105    nonstopux*) version_type=nonstopux ;;
12106    *)
12107	if test "$lt_cv_prog_gnu_ld" = yes; then
12108		version_type=linux
12109	else
12110		version_type=irix
12111	fi ;;
12112  esac
12113  need_lib_prefix=no
12114  need_version=no
12115  soname_spec='${libname}${release}${shared_ext}$major'
12116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12117  case $host_os in
12118  irix5* | nonstopux*)
12119    libsuff= shlibsuff=
12120    ;;
12121  *)
12122    case $LD in # libtool.m4 will add one of these switches to LD
12123    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12124      libsuff= shlibsuff= libmagic=32-bit;;
12125    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12126      libsuff=32 shlibsuff=N32 libmagic=N32;;
12127    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12128      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12129    *) libsuff= shlibsuff= libmagic=never-match;;
12130    esac
12131    ;;
12132  esac
12133  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12134  shlibpath_overrides_runpath=no
12135  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12136  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12137  hardcode_into_libs=yes
12138  ;;
12139
12140# No shared lib support for Linux oldld, aout, or coff.
12141linux*oldld* | linux*aout* | linux*coff*)
12142  dynamic_linker=no
12143  ;;
12144
12145# This must be Linux ELF.
12146linux*)
12147  version_type=linux
12148  need_lib_prefix=no
12149  need_version=no
12150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12151  soname_spec='${libname}${release}${shared_ext}$major'
12152  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12153  shlibpath_var=LD_LIBRARY_PATH
12154  shlibpath_overrides_runpath=no
12155  # This implies no fast_install, which is unacceptable.
12156  # Some rework will be needed to allow for fast_install
12157  # before this can be enabled.
12158  hardcode_into_libs=yes
12159
12160  # Append ld.so.conf contents to the search path
12161  if test -f /etc/ld.so.conf; then
12162    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12163    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12164  fi
12165
12166  # We used to test for /lib/ld.so.1 and disable shared libraries on
12167  # powerpc, because MkLinux only supported shared libraries with the
12168  # GNU dynamic linker.  Since this was broken with cross compilers,
12169  # most powerpc-linux boxes support dynamic linking these days and
12170  # people can always --disable-shared, the test was removed, and we
12171  # assume the GNU/Linux dynamic linker is in use.
12172  dynamic_linker='GNU/Linux ld.so'
12173  ;;
12174
12175knetbsd*-gnu)
12176  version_type=linux
12177  need_lib_prefix=no
12178  need_version=no
12179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12180  soname_spec='${libname}${release}${shared_ext}$major'
12181  shlibpath_var=LD_LIBRARY_PATH
12182  shlibpath_overrides_runpath=no
12183  hardcode_into_libs=yes
12184  dynamic_linker='GNU ld.so'
12185  ;;
12186
12187netbsd*)
12188  version_type=sunos
12189  need_lib_prefix=no
12190  need_version=no
12191  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12192    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12193    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12194    dynamic_linker='NetBSD (a.out) ld.so'
12195  else
12196    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12197    soname_spec='${libname}${release}${shared_ext}$major'
12198    dynamic_linker='NetBSD ld.elf_so'
12199  fi
12200  shlibpath_var=LD_LIBRARY_PATH
12201  shlibpath_overrides_runpath=yes
12202  hardcode_into_libs=yes
12203  ;;
12204
12205newsos6)
12206  version_type=linux
12207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12208  shlibpath_var=LD_LIBRARY_PATH
12209  shlibpath_overrides_runpath=yes
12210  ;;
12211
12212nto-qnx*)
12213  version_type=linux
12214  need_lib_prefix=no
12215  need_version=no
12216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12217  soname_spec='${libname}${release}${shared_ext}$major'
12218  shlibpath_var=LD_LIBRARY_PATH
12219  shlibpath_overrides_runpath=yes
12220  ;;
12221
12222openbsd*)
12223  version_type=sunos
12224  sys_lib_dlsearch_path_spec="/usr/lib"
12225  need_lib_prefix=no
12226  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12227  case $host_os in
12228    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12229    *)                         need_version=no  ;;
12230  esac
12231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12232  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12233  shlibpath_var=LD_LIBRARY_PATH
12234  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12235    case $host_os in
12236      openbsd2.[89] | openbsd2.[89].*)
12237	shlibpath_overrides_runpath=no
12238	;;
12239      *)
12240	shlibpath_overrides_runpath=yes
12241	;;
12242      esac
12243  else
12244    shlibpath_overrides_runpath=yes
12245  fi
12246  ;;
12247
12248os2*)
12249  libname_spec='$name'
12250  shrext_cmds=".dll"
12251  need_lib_prefix=no
12252  library_names_spec='$libname${shared_ext} $libname.a'
12253  dynamic_linker='OS/2 ld.exe'
12254  shlibpath_var=LIBPATH
12255  ;;
12256
12257osf3* | osf4* | osf5*)
12258  version_type=osf
12259  need_lib_prefix=no
12260  need_version=no
12261  soname_spec='${libname}${release}${shared_ext}$major'
12262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12263  shlibpath_var=LD_LIBRARY_PATH
12264  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12265  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12266  ;;
12267
12268solaris*)
12269  version_type=linux
12270  need_lib_prefix=no
12271  need_version=no
12272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273  soname_spec='${libname}${release}${shared_ext}$major'
12274  shlibpath_var=LD_LIBRARY_PATH
12275  shlibpath_overrides_runpath=yes
12276  hardcode_into_libs=yes
12277  # ldd complains unless libraries are executable
12278  postinstall_cmds='chmod +x $lib'
12279  ;;
12280
12281sunos4*)
12282  version_type=sunos
12283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12284  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12285  shlibpath_var=LD_LIBRARY_PATH
12286  shlibpath_overrides_runpath=yes
12287  if test "$with_gnu_ld" = yes; then
12288    need_lib_prefix=no
12289  fi
12290  need_version=yes
12291  ;;
12292
12293sysv4 | sysv4.3*)
12294  version_type=linux
12295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12296  soname_spec='${libname}${release}${shared_ext}$major'
12297  shlibpath_var=LD_LIBRARY_PATH
12298  case $host_vendor in
12299    sni)
12300      shlibpath_overrides_runpath=no
12301      need_lib_prefix=no
12302      export_dynamic_flag_spec='${wl}-Blargedynsym'
12303      runpath_var=LD_RUN_PATH
12304      ;;
12305    siemens)
12306      need_lib_prefix=no
12307      ;;
12308    motorola)
12309      need_lib_prefix=no
12310      need_version=no
12311      shlibpath_overrides_runpath=no
12312      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12313      ;;
12314  esac
12315  ;;
12316
12317sysv4*MP*)
12318  if test -d /usr/nec ;then
12319    version_type=linux
12320    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12321    soname_spec='$libname${shared_ext}.$major'
12322    shlibpath_var=LD_LIBRARY_PATH
12323  fi
12324  ;;
12325
12326sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12327  version_type=freebsd-elf
12328  need_lib_prefix=no
12329  need_version=no
12330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12331  soname_spec='${libname}${release}${shared_ext}$major'
12332  shlibpath_var=LD_LIBRARY_PATH
12333  hardcode_into_libs=yes
12334  if test "$with_gnu_ld" = yes; then
12335    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12336    shlibpath_overrides_runpath=no
12337  else
12338    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12339    shlibpath_overrides_runpath=yes
12340    case $host_os in
12341      sco3.2v5*)
12342        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12343	;;
12344    esac
12345  fi
12346  sys_lib_dlsearch_path_spec='/usr/lib'
12347  ;;
12348
12349uts4*)
12350  version_type=linux
12351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12352  soname_spec='${libname}${release}${shared_ext}$major'
12353  shlibpath_var=LD_LIBRARY_PATH
12354  ;;
12355
12356*)
12357  dynamic_linker=no
12358  ;;
12359esac
12360echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12361echo "${ECHO_T}$dynamic_linker" >&6
12362test "$dynamic_linker" = no && can_build_shared=no
12363
12364variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12365if test "$GCC" = yes; then
12366  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12367fi
12368
12369echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12370echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12371hardcode_action_CXX=
12372if test -n "$hardcode_libdir_flag_spec_CXX" || \
12373   test -n "$runpath_var_CXX" || \
12374   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12375
12376  # We can hardcode non-existant directories.
12377  if test "$hardcode_direct_CXX" != no &&
12378     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12379     # have to relink, otherwise we might link with an installed library
12380     # when we should be linking with a yet-to-be-installed one
12381     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12382     test "$hardcode_minus_L_CXX" != no; then
12383    # Linking always hardcodes the temporary library directory.
12384    hardcode_action_CXX=relink
12385  else
12386    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12387    hardcode_action_CXX=immediate
12388  fi
12389else
12390  # We cannot hardcode anything, or else we can only hardcode existing
12391  # directories.
12392  hardcode_action_CXX=unsupported
12393fi
12394echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12395echo "${ECHO_T}$hardcode_action_CXX" >&6
12396
12397if test "$hardcode_action_CXX" = relink; then
12398  # Fast installation is not supported
12399  enable_fast_install=no
12400elif test "$shlibpath_overrides_runpath" = yes ||
12401     test "$enable_shared" = no; then
12402  # Fast installation is not necessary
12403  enable_fast_install=needless
12404fi
12405
12406
12407# The else clause should only fire when bootstrapping the
12408# libtool distribution, otherwise you forgot to ship ltmain.sh
12409# with your package, and you will get complaints that there are
12410# no rules to generate ltmain.sh.
12411if test -f "$ltmain"; then
12412  # See if we are running on zsh, and set the options which allow our commands through
12413  # without removal of \ escapes.
12414  if test -n "${ZSH_VERSION+set}" ; then
12415    setopt NO_GLOB_SUBST
12416  fi
12417  # Now quote all the things that may contain metacharacters while being
12418  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12419  # variables and quote the copies for generation of the libtool script.
12420  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12421    SED SHELL STRIP \
12422    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12423    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12424    deplibs_check_method reload_flag reload_cmds need_locks \
12425    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12426    lt_cv_sys_global_symbol_to_c_name_address \
12427    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12428    old_postinstall_cmds old_postuninstall_cmds \
12429    compiler_CXX \
12430    CC_CXX \
12431    LD_CXX \
12432    lt_prog_compiler_wl_CXX \
12433    lt_prog_compiler_pic_CXX \
12434    lt_prog_compiler_static_CXX \
12435    lt_prog_compiler_no_builtin_flag_CXX \
12436    export_dynamic_flag_spec_CXX \
12437    thread_safe_flag_spec_CXX \
12438    whole_archive_flag_spec_CXX \
12439    enable_shared_with_static_runtimes_CXX \
12440    old_archive_cmds_CXX \
12441    old_archive_from_new_cmds_CXX \
12442    predep_objects_CXX \
12443    postdep_objects_CXX \
12444    predeps_CXX \
12445    postdeps_CXX \
12446    compiler_lib_search_path_CXX \
12447    archive_cmds_CXX \
12448    archive_expsym_cmds_CXX \
12449    postinstall_cmds_CXX \
12450    postuninstall_cmds_CXX \
12451    old_archive_from_expsyms_cmds_CXX \
12452    allow_undefined_flag_CXX \
12453    no_undefined_flag_CXX \
12454    export_symbols_cmds_CXX \
12455    hardcode_libdir_flag_spec_CXX \
12456    hardcode_libdir_flag_spec_ld_CXX \
12457    hardcode_libdir_separator_CXX \
12458    hardcode_automatic_CXX \
12459    module_cmds_CXX \
12460    module_expsym_cmds_CXX \
12461    lt_cv_prog_compiler_c_o_CXX \
12462    exclude_expsyms_CXX \
12463    include_expsyms_CXX; do
12464
12465    case $var in
12466    old_archive_cmds_CXX | \
12467    old_archive_from_new_cmds_CXX | \
12468    archive_cmds_CXX | \
12469    archive_expsym_cmds_CXX | \
12470    module_cmds_CXX | \
12471    module_expsym_cmds_CXX | \
12472    old_archive_from_expsyms_cmds_CXX | \
12473    export_symbols_cmds_CXX | \
12474    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12475    postinstall_cmds | postuninstall_cmds | \
12476    old_postinstall_cmds | old_postuninstall_cmds | \
12477    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12478      # Double-quote double-evaled strings.
12479      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12480      ;;
12481    *)
12482      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12483      ;;
12484    esac
12485  done
12486
12487  case $lt_echo in
12488  *'\$0 --fallback-echo"')
12489    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12490    ;;
12491  esac
12492
12493cfgfile="$ofile"
12494
12495  cat <<__EOF__ >> "$cfgfile"
12496# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12497
12498# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12499
12500# Shell to use when invoking shell scripts.
12501SHELL=$lt_SHELL
12502
12503# Whether or not to build shared libraries.
12504build_libtool_libs=$enable_shared
12505
12506# Whether or not to build static libraries.
12507build_old_libs=$enable_static
12508
12509# Whether or not to add -lc for building shared libraries.
12510build_libtool_need_lc=$archive_cmds_need_lc_CXX
12511
12512# Whether or not to disallow shared libs when runtime libs are static
12513allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12514
12515# Whether or not to optimize for fast installation.
12516fast_install=$enable_fast_install
12517
12518# The host system.
12519host_alias=$host_alias
12520host=$host
12521host_os=$host_os
12522
12523# The build system.
12524build_alias=$build_alias
12525build=$build
12526build_os=$build_os
12527
12528# An echo program that does not interpret backslashes.
12529echo=$lt_echo
12530
12531# The archiver.
12532AR=$lt_AR
12533AR_FLAGS=$lt_AR_FLAGS
12534
12535# A C compiler.
12536LTCC=$lt_LTCC
12537
12538# LTCC compiler flags.
12539LTCFLAGS=$lt_LTCFLAGS
12540
12541# A language-specific compiler.
12542CC=$lt_compiler_CXX
12543
12544# Is the compiler the GNU C compiler?
12545with_gcc=$GCC_CXX
12546
12547# An ERE matcher.
12548EGREP=$lt_EGREP
12549
12550# The linker used to build libraries.
12551LD=$lt_LD_CXX
12552
12553# Whether we need hard or soft links.
12554LN_S=$lt_LN_S
12555
12556# A BSD-compatible nm program.
12557NM=$lt_NM
12558
12559# A symbol stripping program
12560STRIP=$lt_STRIP
12561
12562# Used to examine libraries when file_magic_cmd begins "file"
12563MAGIC_CMD=$MAGIC_CMD
12564
12565# Used on cygwin: DLL creation program.
12566DLLTOOL="$DLLTOOL"
12567
12568# Used on cygwin: object dumper.
12569OBJDUMP="$OBJDUMP"
12570
12571# Used on cygwin: assembler.
12572AS="$AS"
12573
12574# The name of the directory that contains temporary libtool files.
12575objdir=$objdir
12576
12577# How to create reloadable object files.
12578reload_flag=$lt_reload_flag
12579reload_cmds=$lt_reload_cmds
12580
12581# How to pass a linker flag through the compiler.
12582wl=$lt_lt_prog_compiler_wl_CXX
12583
12584# Object file suffix (normally "o").
12585objext="$ac_objext"
12586
12587# Old archive suffix (normally "a").
12588libext="$libext"
12589
12590# Shared library suffix (normally ".so").
12591shrext_cmds='$shrext_cmds'
12592
12593# Executable file suffix (normally "").
12594exeext="$exeext"
12595
12596# Additional compiler flags for building library objects.
12597pic_flag=$lt_lt_prog_compiler_pic_CXX
12598pic_mode=$pic_mode
12599
12600# What is the maximum length of a command?
12601max_cmd_len=$lt_cv_sys_max_cmd_len
12602
12603# Does compiler simultaneously support -c and -o options?
12604compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12605
12606# Must we lock files when doing compilation?
12607need_locks=$lt_need_locks
12608
12609# Do we need the lib prefix for modules?
12610need_lib_prefix=$need_lib_prefix
12611
12612# Do we need a version for libraries?
12613need_version=$need_version
12614
12615# Whether dlopen is supported.
12616dlopen_support=$enable_dlopen
12617
12618# Whether dlopen of programs is supported.
12619dlopen_self=$enable_dlopen_self
12620
12621# Whether dlopen of statically linked programs is supported.
12622dlopen_self_static=$enable_dlopen_self_static
12623
12624# Compiler flag to prevent dynamic linking.
12625link_static_flag=$lt_lt_prog_compiler_static_CXX
12626
12627# Compiler flag to turn off builtin functions.
12628no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12629
12630# Compiler flag to allow reflexive dlopens.
12631export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12632
12633# Compiler flag to generate shared objects directly from archives.
12634whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12635
12636# Compiler flag to generate thread-safe objects.
12637thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12638
12639# Library versioning type.
12640version_type=$version_type
12641
12642# Format of library name prefix.
12643libname_spec=$lt_libname_spec
12644
12645# List of archive names.  First name is the real one, the rest are links.
12646# The last name is the one that the linker finds with -lNAME.
12647library_names_spec=$lt_library_names_spec
12648
12649# The coded name of the library, if different from the real name.
12650soname_spec=$lt_soname_spec
12651
12652# Commands used to build and install an old-style archive.
12653RANLIB=$lt_RANLIB
12654old_archive_cmds=$lt_old_archive_cmds_CXX
12655old_postinstall_cmds=$lt_old_postinstall_cmds
12656old_postuninstall_cmds=$lt_old_postuninstall_cmds
12657
12658# Create an old-style archive from a shared archive.
12659old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12660
12661# Create a temporary old-style archive to link instead of a shared archive.
12662old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12663
12664# Commands used to build and install a shared archive.
12665archive_cmds=$lt_archive_cmds_CXX
12666archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12667postinstall_cmds=$lt_postinstall_cmds
12668postuninstall_cmds=$lt_postuninstall_cmds
12669
12670# Commands used to build a loadable module (assumed same as above if empty)
12671module_cmds=$lt_module_cmds_CXX
12672module_expsym_cmds=$lt_module_expsym_cmds_CXX
12673
12674# Commands to strip libraries.
12675old_striplib=$lt_old_striplib
12676striplib=$lt_striplib
12677
12678# Dependencies to place before the objects being linked to create a
12679# shared library.
12680predep_objects=$lt_predep_objects_CXX
12681
12682# Dependencies to place after the objects being linked to create a
12683# shared library.
12684postdep_objects=$lt_postdep_objects_CXX
12685
12686# Dependencies to place before the objects being linked to create a
12687# shared library.
12688predeps=$lt_predeps_CXX
12689
12690# Dependencies to place after the objects being linked to create a
12691# shared library.
12692postdeps=$lt_postdeps_CXX
12693
12694# The library search path used internally by the compiler when linking
12695# a shared library.
12696compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12697
12698# Method to check whether dependent libraries are shared objects.
12699deplibs_check_method=$lt_deplibs_check_method
12700
12701# Command to use when deplibs_check_method == file_magic.
12702file_magic_cmd=$lt_file_magic_cmd
12703
12704# Flag that allows shared libraries with undefined symbols to be built.
12705allow_undefined_flag=$lt_allow_undefined_flag_CXX
12706
12707# Flag that forces no undefined symbols.
12708no_undefined_flag=$lt_no_undefined_flag_CXX
12709
12710# Commands used to finish a libtool library installation in a directory.
12711finish_cmds=$lt_finish_cmds
12712
12713# Same as above, but a single script fragment to be evaled but not shown.
12714finish_eval=$lt_finish_eval
12715
12716# Take the output of nm and produce a listing of raw symbols and C names.
12717global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12718
12719# Transform the output of nm in a proper C declaration
12720global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12721
12722# Transform the output of nm in a C name address pair
12723global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12724
12725# This is the shared library runtime path variable.
12726runpath_var=$runpath_var
12727
12728# This is the shared library path variable.
12729shlibpath_var=$shlibpath_var
12730
12731# Is shlibpath searched before the hard-coded library search path?
12732shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12733
12734# How to hardcode a shared library path into an executable.
12735hardcode_action=$hardcode_action_CXX
12736
12737# Whether we should hardcode library paths into libraries.
12738hardcode_into_libs=$hardcode_into_libs
12739
12740# Flag to hardcode \$libdir into a binary during linking.
12741# This must work even if \$libdir does not exist.
12742hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12743
12744# If ld is used when linking, flag to hardcode \$libdir into
12745# a binary during linking. This must work even if \$libdir does
12746# not exist.
12747hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12748
12749# Whether we need a single -rpath flag with a separated argument.
12750hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12751
12752# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12753# resulting binary.
12754hardcode_direct=$hardcode_direct_CXX
12755
12756# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12757# resulting binary.
12758hardcode_minus_L=$hardcode_minus_L_CXX
12759
12760# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12761# the resulting binary.
12762hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12763
12764# Set to yes if building a shared library automatically hardcodes DIR into the library
12765# and all subsequent libraries and executables linked against it.
12766hardcode_automatic=$hardcode_automatic_CXX
12767
12768# Variables whose values should be saved in libtool wrapper scripts and
12769# restored at relink time.
12770variables_saved_for_relink="$variables_saved_for_relink"
12771
12772# Whether libtool must link a program against all its dependency libraries.
12773link_all_deplibs=$link_all_deplibs_CXX
12774
12775# Compile-time system search path for libraries
12776sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12777
12778# Run-time system search path for libraries
12779sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12780
12781# Fix the shell variable \$srcfile for the compiler.
12782fix_srcfile_path="$fix_srcfile_path_CXX"
12783
12784# Set to yes if exported symbols are required.
12785always_export_symbols=$always_export_symbols_CXX
12786
12787# The commands to list exported symbols.
12788export_symbols_cmds=$lt_export_symbols_cmds_CXX
12789
12790# The commands to extract the exported symbol list from a shared archive.
12791extract_expsyms_cmds=$lt_extract_expsyms_cmds
12792
12793# Symbols that should not be listed in the preloaded symbols.
12794exclude_expsyms=$lt_exclude_expsyms_CXX
12795
12796# Symbols that must always be exported.
12797include_expsyms=$lt_include_expsyms_CXX
12798
12799# ### END LIBTOOL TAG CONFIG: $tagname
12800
12801__EOF__
12802
12803
12804else
12805  # If there is no Makefile yet, we rely on a make rule to execute
12806  # `config.status --recheck' to rerun these tests and create the
12807  # libtool script then.
12808  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12809  if test -f "$ltmain_in"; then
12810    test -f Makefile && make "$ltmain"
12811  fi
12812fi
12813
12814
12815ac_ext=c
12816ac_cpp='$CPP $CPPFLAGS'
12817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819ac_compiler_gnu=$ac_cv_c_compiler_gnu
12820
12821CC=$lt_save_CC
12822LDCXX=$LD
12823LD=$lt_save_LD
12824GCC=$lt_save_GCC
12825with_gnu_ldcxx=$with_gnu_ld
12826with_gnu_ld=$lt_save_with_gnu_ld
12827lt_cv_path_LDCXX=$lt_cv_path_LD
12828lt_cv_path_LD=$lt_save_path_LD
12829lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12830lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12831
12832	else
12833	  tagname=""
12834	fi
12835	;;
12836
12837      F77)
12838	if test -n "$F77" && test "X$F77" != "Xno"; then
12839
12840ac_ext=f
12841ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12842ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12843ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12844
12845
12846archive_cmds_need_lc_F77=no
12847allow_undefined_flag_F77=
12848always_export_symbols_F77=no
12849archive_expsym_cmds_F77=
12850export_dynamic_flag_spec_F77=
12851hardcode_direct_F77=no
12852hardcode_libdir_flag_spec_F77=
12853hardcode_libdir_flag_spec_ld_F77=
12854hardcode_libdir_separator_F77=
12855hardcode_minus_L_F77=no
12856hardcode_automatic_F77=no
12857module_cmds_F77=
12858module_expsym_cmds_F77=
12859link_all_deplibs_F77=unknown
12860old_archive_cmds_F77=$old_archive_cmds
12861no_undefined_flag_F77=
12862whole_archive_flag_spec_F77=
12863enable_shared_with_static_runtimes_F77=no
12864
12865# Source file extension for f77 test sources.
12866ac_ext=f
12867
12868# Object file extension for compiled f77 test sources.
12869objext=o
12870objext_F77=$objext
12871
12872# Code to be used in simple compile tests
12873lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12874
12875# Code to be used in simple link tests
12876lt_simple_link_test_code="      program t\n      end\n"
12877
12878# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12879
12880# If no C compiler was specified, use CC.
12881LTCC=${LTCC-"$CC"}
12882
12883# If no C compiler flags were specified, use CFLAGS.
12884LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12885
12886# Allow CC to be a program name with arguments.
12887compiler=$CC
12888
12889
12890# save warnings/boilerplate of simple test code
12891ac_outfile=conftest.$ac_objext
12892printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12893eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12894_lt_compiler_boilerplate=`cat conftest.err`
12895$rm conftest*
12896
12897ac_outfile=conftest.$ac_objext
12898printf "$lt_simple_link_test_code" >conftest.$ac_ext
12899eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12900_lt_linker_boilerplate=`cat conftest.err`
12901$rm conftest*
12902
12903
12904# Allow CC to be a program name with arguments.
12905lt_save_CC="$CC"
12906CC=${F77-"f77"}
12907compiler=$CC
12908compiler_F77=$CC
12909for cc_temp in $compiler""; do
12910  case $cc_temp in
12911    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12912    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12913    \-*) ;;
12914    *) break;;
12915  esac
12916done
12917cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12918
12919
12920echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12921echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12922echo "$as_me:$LINENO: result: $can_build_shared" >&5
12923echo "${ECHO_T}$can_build_shared" >&6
12924
12925echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12926echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12927test "$can_build_shared" = "no" && enable_shared=no
12928
12929# On AIX, shared libraries and static libraries use the same namespace, and
12930# are all built from PIC.
12931case $host_os in
12932aix3*)
12933  test "$enable_shared" = yes && enable_static=no
12934  if test -n "$RANLIB"; then
12935    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12936    postinstall_cmds='$RANLIB $lib'
12937  fi
12938  ;;
12939aix4* | aix5*)
12940  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12941    test "$enable_shared" = yes && enable_static=no
12942  fi
12943  ;;
12944esac
12945echo "$as_me:$LINENO: result: $enable_shared" >&5
12946echo "${ECHO_T}$enable_shared" >&6
12947
12948echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12949echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12950# Make sure either enable_shared or enable_static is yes.
12951test "$enable_shared" = yes || enable_static=yes
12952echo "$as_me:$LINENO: result: $enable_static" >&5
12953echo "${ECHO_T}$enable_static" >&6
12954
12955GCC_F77="$G77"
12956LD_F77="$LD"
12957
12958lt_prog_compiler_wl_F77=
12959lt_prog_compiler_pic_F77=
12960lt_prog_compiler_static_F77=
12961
12962echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12963echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12964
12965  if test "$GCC" = yes; then
12966    lt_prog_compiler_wl_F77='-Wl,'
12967    lt_prog_compiler_static_F77='-static'
12968
12969    case $host_os in
12970      aix*)
12971      # All AIX code is PIC.
12972      if test "$host_cpu" = ia64; then
12973	# AIX 5 now supports IA64 processor
12974	lt_prog_compiler_static_F77='-Bstatic'
12975      fi
12976      ;;
12977
12978    amigaos*)
12979      # FIXME: we need at least 68020 code to build shared libraries, but
12980      # adding the `-m68020' flag to GCC prevents building anything better,
12981      # like `-m68040'.
12982      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12983      ;;
12984
12985    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12986      # PIC is the default for these OSes.
12987      ;;
12988
12989    mingw* | pw32* | os2*)
12990      # This hack is so that the source file can tell whether it is being
12991      # built for inclusion in a dll (and should export symbols for example).
12992      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12993      ;;
12994
12995    darwin* | rhapsody*)
12996      # PIC is the default on this platform
12997      # Common symbols not allowed in MH_DYLIB files
12998      lt_prog_compiler_pic_F77='-fno-common'
12999      ;;
13000
13001    interix3*)
13002      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13003      # Instead, we relocate shared libraries at runtime.
13004      ;;
13005
13006    msdosdjgpp*)
13007      # Just because we use GCC doesn't mean we suddenly get shared libraries
13008      # on systems that don't support them.
13009      lt_prog_compiler_can_build_shared_F77=no
13010      enable_shared=no
13011      ;;
13012
13013    sysv4*MP*)
13014      if test -d /usr/nec; then
13015	lt_prog_compiler_pic_F77=-Kconform_pic
13016      fi
13017      ;;
13018
13019    hpux*)
13020      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13021      # not for PA HP-UX.
13022      case $host_cpu in
13023      hppa*64*|ia64*)
13024	# +Z the default
13025	;;
13026      *)
13027	lt_prog_compiler_pic_F77='-fPIC'
13028	;;
13029      esac
13030      ;;
13031
13032    *)
13033      lt_prog_compiler_pic_F77='-fPIC'
13034      ;;
13035    esac
13036  else
13037    # PORTME Check for flag to pass linker flags through the system compiler.
13038    case $host_os in
13039    aix*)
13040      lt_prog_compiler_wl_F77='-Wl,'
13041      if test "$host_cpu" = ia64; then
13042	# AIX 5 now supports IA64 processor
13043	lt_prog_compiler_static_F77='-Bstatic'
13044      else
13045	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13046      fi
13047      ;;
13048      darwin*)
13049        # PIC is the default on this platform
13050        # Common symbols not allowed in MH_DYLIB files
13051       case $cc_basename in
13052         xlc*)
13053         lt_prog_compiler_pic_F77='-qnocommon'
13054         lt_prog_compiler_wl_F77='-Wl,'
13055         ;;
13056       esac
13057       ;;
13058
13059    mingw* | pw32* | os2*)
13060      # This hack is so that the source file can tell whether it is being
13061      # built for inclusion in a dll (and should export symbols for example).
13062      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13063      ;;
13064
13065    hpux9* | hpux10* | hpux11*)
13066      lt_prog_compiler_wl_F77='-Wl,'
13067      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13068      # not for PA HP-UX.
13069      case $host_cpu in
13070      hppa*64*|ia64*)
13071	# +Z the default
13072	;;
13073      *)
13074	lt_prog_compiler_pic_F77='+Z'
13075	;;
13076      esac
13077      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13078      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13079      ;;
13080
13081    irix5* | irix6* | nonstopux*)
13082      lt_prog_compiler_wl_F77='-Wl,'
13083      # PIC (with -KPIC) is the default.
13084      lt_prog_compiler_static_F77='-non_shared'
13085      ;;
13086
13087    newsos6)
13088      lt_prog_compiler_pic_F77='-KPIC'
13089      lt_prog_compiler_static_F77='-Bstatic'
13090      ;;
13091
13092    linux*)
13093      case $cc_basename in
13094      icc* | ecc*)
13095	lt_prog_compiler_wl_F77='-Wl,'
13096	lt_prog_compiler_pic_F77='-KPIC'
13097	lt_prog_compiler_static_F77='-static'
13098        ;;
13099      pgcc* | pgf77* | pgf90* | pgf95*)
13100        # Portland Group compilers (*not* the Pentium gcc compiler,
13101	# which looks to be a dead project)
13102	lt_prog_compiler_wl_F77='-Wl,'
13103	lt_prog_compiler_pic_F77='-fpic'
13104	lt_prog_compiler_static_F77='-Bstatic'
13105        ;;
13106      ccc*)
13107        lt_prog_compiler_wl_F77='-Wl,'
13108        # All Alpha code is PIC.
13109        lt_prog_compiler_static_F77='-non_shared'
13110        ;;
13111      esac
13112      ;;
13113
13114    osf3* | osf4* | osf5*)
13115      lt_prog_compiler_wl_F77='-Wl,'
13116      # All OSF/1 code is PIC.
13117      lt_prog_compiler_static_F77='-non_shared'
13118      ;;
13119
13120    solaris*)
13121      lt_prog_compiler_pic_F77='-KPIC'
13122      lt_prog_compiler_static_F77='-Bstatic'
13123      case $cc_basename in
13124      f77* | f90* | f95*)
13125	lt_prog_compiler_wl_F77='-Qoption ld ';;
13126      *)
13127	lt_prog_compiler_wl_F77='-Wl,';;
13128      esac
13129      ;;
13130
13131    sunos4*)
13132      lt_prog_compiler_wl_F77='-Qoption ld '
13133      lt_prog_compiler_pic_F77='-PIC'
13134      lt_prog_compiler_static_F77='-Bstatic'
13135      ;;
13136
13137    sysv4 | sysv4.2uw2* | sysv4.3*)
13138      lt_prog_compiler_wl_F77='-Wl,'
13139      lt_prog_compiler_pic_F77='-KPIC'
13140      lt_prog_compiler_static_F77='-Bstatic'
13141      ;;
13142
13143    sysv4*MP*)
13144      if test -d /usr/nec ;then
13145	lt_prog_compiler_pic_F77='-Kconform_pic'
13146	lt_prog_compiler_static_F77='-Bstatic'
13147      fi
13148      ;;
13149
13150    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13151      lt_prog_compiler_wl_F77='-Wl,'
13152      lt_prog_compiler_pic_F77='-KPIC'
13153      lt_prog_compiler_static_F77='-Bstatic'
13154      ;;
13155
13156    unicos*)
13157      lt_prog_compiler_wl_F77='-Wl,'
13158      lt_prog_compiler_can_build_shared_F77=no
13159      ;;
13160
13161    uts4*)
13162      lt_prog_compiler_pic_F77='-pic'
13163      lt_prog_compiler_static_F77='-Bstatic'
13164      ;;
13165
13166    *)
13167      lt_prog_compiler_can_build_shared_F77=no
13168      ;;
13169    esac
13170  fi
13171
13172echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13173echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13174
13175#
13176# Check to make sure the PIC flag actually works.
13177#
13178if test -n "$lt_prog_compiler_pic_F77"; then
13179
13180echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13181echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13182if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13183  echo $ECHO_N "(cached) $ECHO_C" >&6
13184else
13185  lt_prog_compiler_pic_works_F77=no
13186  ac_outfile=conftest.$ac_objext
13187   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13188   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13189   # Insert the option either (1) after the last *FLAGS variable, or
13190   # (2) before a word containing "conftest.", or (3) at the end.
13191   # Note that $ac_compile itself does not contain backslashes and begins
13192   # with a dollar sign (not a hyphen), so the echo should work correctly.
13193   # The option is referenced via a variable to avoid confusing sed.
13194   lt_compile=`echo "$ac_compile" | $SED \
13195   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13196   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13197   -e 's:$: $lt_compiler_flag:'`
13198   (eval echo "\"\$as_me:13198: $lt_compile\"" >&5)
13199   (eval "$lt_compile" 2>conftest.err)
13200   ac_status=$?
13201   cat conftest.err >&5
13202   echo "$as_me:13202: \$? = $ac_status" >&5
13203   if (exit $ac_status) && test -s "$ac_outfile"; then
13204     # The compiler can only warn and ignore the option if not recognized
13205     # So say no if there are warnings other than the usual output.
13206     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13207     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13208     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13209       lt_prog_compiler_pic_works_F77=yes
13210     fi
13211   fi
13212   $rm conftest*
13213
13214fi
13215echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13216echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13217
13218if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13219    case $lt_prog_compiler_pic_F77 in
13220     "" | " "*) ;;
13221     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13222     esac
13223else
13224    lt_prog_compiler_pic_F77=
13225     lt_prog_compiler_can_build_shared_F77=no
13226fi
13227
13228fi
13229case $host_os in
13230  # For platforms which do not support PIC, -DPIC is meaningless:
13231  *djgpp*)
13232    lt_prog_compiler_pic_F77=
13233    ;;
13234  *)
13235    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13236    ;;
13237esac
13238
13239#
13240# Check to make sure the static flag actually works.
13241#
13242wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13243echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13244echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13245if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13246  echo $ECHO_N "(cached) $ECHO_C" >&6
13247else
13248  lt_prog_compiler_static_works_F77=no
13249   save_LDFLAGS="$LDFLAGS"
13250   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13251   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13252   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13253     # The linker can only warn and ignore the option if not recognized
13254     # So say no if there are warnings
13255     if test -s conftest.err; then
13256       # Append any errors to the config.log.
13257       cat conftest.err 1>&5
13258       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13259       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13260       if diff conftest.exp conftest.er2 >/dev/null; then
13261         lt_prog_compiler_static_works_F77=yes
13262       fi
13263     else
13264       lt_prog_compiler_static_works_F77=yes
13265     fi
13266   fi
13267   $rm conftest*
13268   LDFLAGS="$save_LDFLAGS"
13269
13270fi
13271echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13272echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13273
13274if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13275    :
13276else
13277    lt_prog_compiler_static_F77=
13278fi
13279
13280
13281echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13282echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13283if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13284  echo $ECHO_N "(cached) $ECHO_C" >&6
13285else
13286  lt_cv_prog_compiler_c_o_F77=no
13287   $rm -r conftest 2>/dev/null
13288   mkdir conftest
13289   cd conftest
13290   mkdir out
13291   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13292
13293   lt_compiler_flag="-o out/conftest2.$ac_objext"
13294   # Insert the option either (1) after the last *FLAGS variable, or
13295   # (2) before a word containing "conftest.", or (3) at the end.
13296   # Note that $ac_compile itself does not contain backslashes and begins
13297   # with a dollar sign (not a hyphen), so the echo should work correctly.
13298   lt_compile=`echo "$ac_compile" | $SED \
13299   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13300   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13301   -e 's:$: $lt_compiler_flag:'`
13302   (eval echo "\"\$as_me:13302: $lt_compile\"" >&5)
13303   (eval "$lt_compile" 2>out/conftest.err)
13304   ac_status=$?
13305   cat out/conftest.err >&5
13306   echo "$as_me:13306: \$? = $ac_status" >&5
13307   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13308   then
13309     # The compiler can only warn and ignore the option if not recognized
13310     # So say no if there are warnings
13311     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13312     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13313     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13314       lt_cv_prog_compiler_c_o_F77=yes
13315     fi
13316   fi
13317   chmod u+w . 2>&5
13318   $rm conftest*
13319   # SGI C++ compiler will create directory out/ii_files/ for
13320   # template instantiation
13321   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13322   $rm out/* && rmdir out
13323   cd ..
13324   rmdir conftest
13325   $rm conftest*
13326
13327fi
13328echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13329echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13330
13331
13332hard_links="nottested"
13333if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13334  # do not overwrite the value of need_locks provided by the user
13335  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13336echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13337  hard_links=yes
13338  $rm conftest*
13339  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13340  touch conftest.a
13341  ln conftest.a conftest.b 2>&5 || hard_links=no
13342  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13343  echo "$as_me:$LINENO: result: $hard_links" >&5
13344echo "${ECHO_T}$hard_links" >&6
13345  if test "$hard_links" = no; then
13346    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13347echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13348    need_locks=warn
13349  fi
13350else
13351  need_locks=no
13352fi
13353
13354echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13355echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13356
13357  runpath_var=
13358  allow_undefined_flag_F77=
13359  enable_shared_with_static_runtimes_F77=no
13360  archive_cmds_F77=
13361  archive_expsym_cmds_F77=
13362  old_archive_From_new_cmds_F77=
13363  old_archive_from_expsyms_cmds_F77=
13364  export_dynamic_flag_spec_F77=
13365  whole_archive_flag_spec_F77=
13366  thread_safe_flag_spec_F77=
13367  hardcode_libdir_flag_spec_F77=
13368  hardcode_libdir_flag_spec_ld_F77=
13369  hardcode_libdir_separator_F77=
13370  hardcode_direct_F77=no
13371  hardcode_minus_L_F77=no
13372  hardcode_shlibpath_var_F77=unsupported
13373  link_all_deplibs_F77=unknown
13374  hardcode_automatic_F77=no
13375  module_cmds_F77=
13376  module_expsym_cmds_F77=
13377  always_export_symbols_F77=no
13378  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13379  # include_expsyms should be a list of space-separated symbols to be *always*
13380  # included in the symbol list
13381  include_expsyms_F77=
13382  # exclude_expsyms can be an extended regexp of symbols to exclude
13383  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13384  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13385  # as well as any symbol that contains `d'.
13386  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13387  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13388  # platforms (ab)use it in PIC code, but their linkers get confused if
13389  # the symbol is explicitly referenced.  Since portable code cannot
13390  # rely on this symbol name, it's probably fine to never include it in
13391  # preloaded symbol tables.
13392  extract_expsyms_cmds=
13393  # Just being paranoid about ensuring that cc_basename is set.
13394  for cc_temp in $compiler""; do
13395  case $cc_temp in
13396    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13397    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13398    \-*) ;;
13399    *) break;;
13400  esac
13401done
13402cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13403
13404  case $host_os in
13405  cygwin* | mingw* | pw32*)
13406    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13407    # When not using gcc, we currently assume that we are using
13408    # Microsoft Visual C++.
13409    if test "$GCC" != yes; then
13410      with_gnu_ld=no
13411    fi
13412    ;;
13413  interix*)
13414    # we just hope/assume this is gcc and not c89 (= MSVC++)
13415    with_gnu_ld=yes
13416    ;;
13417  openbsd*)
13418    with_gnu_ld=no
13419    ;;
13420  esac
13421
13422  ld_shlibs_F77=yes
13423  if test "$with_gnu_ld" = yes; then
13424    # If archive_cmds runs LD, not CC, wlarc should be empty
13425    wlarc='${wl}'
13426
13427    # Set some defaults for GNU ld with shared library support. These
13428    # are reset later if shared libraries are not supported. Putting them
13429    # here allows them to be overridden if necessary.
13430    runpath_var=LD_RUN_PATH
13431    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13432    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13433    # ancient GNU ld didn't support --whole-archive et. al.
13434    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13435	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13436      else
13437  	whole_archive_flag_spec_F77=
13438    fi
13439    supports_anon_versioning=no
13440    case `$LD -v 2>/dev/null` in
13441      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13442      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13443      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13444      *\ 2.11.*) ;; # other 2.11 versions
13445      *) supports_anon_versioning=yes ;;
13446    esac
13447
13448    # See if GNU ld supports shared libraries.
13449    case $host_os in
13450    aix3* | aix4* | aix5*)
13451      # On AIX/PPC, the GNU linker is very broken
13452      if test "$host_cpu" != ia64; then
13453	ld_shlibs_F77=no
13454	cat <<EOF 1>&2
13455
13456*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13457*** to be unable to reliably create shared libraries on AIX.
13458*** Therefore, libtool is disabling shared libraries support.  If you
13459*** really care for shared libraries, you may want to modify your PATH
13460*** so that a non-GNU linker is found, and then restart.
13461
13462EOF
13463      fi
13464      ;;
13465
13466    amigaos*)
13467      archive_cmds_F77='$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)'
13468      hardcode_libdir_flag_spec_F77='-L$libdir'
13469      hardcode_minus_L_F77=yes
13470
13471      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13472      # that the semantics of dynamic libraries on AmigaOS, at least up
13473      # to version 4, is to share data among multiple programs linked
13474      # with the same dynamic library.  Since this doesn't match the
13475      # behavior of shared libraries on other platforms, we can't use
13476      # them.
13477      ld_shlibs_F77=no
13478      ;;
13479
13480    beos*)
13481      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13482	allow_undefined_flag_F77=unsupported
13483	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13484	# support --undefined.  This deserves some investigation.  FIXME
13485	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13486      else
13487	ld_shlibs_F77=no
13488      fi
13489      ;;
13490
13491    cygwin* | mingw* | pw32*)
13492      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13493      # as there is no search path for DLLs.
13494      hardcode_libdir_flag_spec_F77='-L$libdir'
13495      allow_undefined_flag_F77=unsupported
13496      always_export_symbols_F77=no
13497      enable_shared_with_static_runtimes_F77=yes
13498      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13499
13500      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13501        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13502	# If the export-symbols file already is a .def file (1st line
13503	# is EXPORTS), use it as is; otherwise, prepend...
13504	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13505	  cp $export_symbols $output_objdir/$soname.def;
13506	else
13507	  echo EXPORTS > $output_objdir/$soname.def;
13508	  cat $export_symbols >> $output_objdir/$soname.def;
13509	fi~
13510	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13511      else
13512	ld_shlibs_F77=no
13513      fi
13514      ;;
13515
13516    interix3*)
13517      hardcode_direct_F77=no
13518      hardcode_shlibpath_var_F77=no
13519      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13520      export_dynamic_flag_spec_F77='${wl}-E'
13521      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13522      # Instead, shared libraries are loaded at an image base (0x10000000 by
13523      # default) and relocated if they conflict, which is a slow very memory
13524      # consuming and fragmenting process.  To avoid this, we pick a random,
13525      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13526      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13527      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13528      archive_expsym_cmds_F77='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'
13529      ;;
13530
13531    linux*)
13532      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13533	tmp_addflag=
13534	case $cc_basename,$host_cpu in
13535	pgcc*)				# Portland Group C compiler
13536	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13537	  tmp_addflag=' $pic_flag'
13538	  ;;
13539	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13540	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13541	  tmp_addflag=' $pic_flag -Mnomain' ;;
13542	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13543	  tmp_addflag=' -i_dynamic' ;;
13544	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13545	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13546	ifc* | ifort*)			# Intel Fortran compiler
13547	  tmp_addflag=' -nofor_main' ;;
13548	esac
13549	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13550
13551	if test $supports_anon_versioning = yes; then
13552	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13553  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13554  $echo "local: *; };" >> $output_objdir/$libname.ver~
13555	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13556	fi
13557      else
13558	ld_shlibs_F77=no
13559      fi
13560      ;;
13561
13562    netbsd*)
13563      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13564	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13565	wlarc=
13566      else
13567	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13568	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13569      fi
13570      ;;
13571
13572    solaris*)
13573      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13574	ld_shlibs_F77=no
13575	cat <<EOF 1>&2
13576
13577*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13578*** create shared libraries on Solaris systems.  Therefore, libtool
13579*** is disabling shared libraries support.  We urge you to upgrade GNU
13580*** binutils to release 2.9.1 or newer.  Another option is to modify
13581*** your PATH or compiler configuration so that the native linker is
13582*** used, and then restart.
13583
13584EOF
13585      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13586	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13587	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13588      else
13589	ld_shlibs_F77=no
13590      fi
13591      ;;
13592
13593    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13594      case `$LD -v 2>&1` in
13595        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13596	ld_shlibs_F77=no
13597	cat <<_LT_EOF 1>&2
13598
13599*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13600*** reliably create shared libraries on SCO systems.  Therefore, libtool
13601*** is disabling shared libraries support.  We urge you to upgrade GNU
13602*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13603*** your PATH or compiler configuration so that the native linker is
13604*** used, and then restart.
13605
13606_LT_EOF
13607	;;
13608	*)
13609	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13610	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13611	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13612	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13613	  else
13614	    ld_shlibs_F77=no
13615	  fi
13616	;;
13617      esac
13618      ;;
13619
13620    sunos4*)
13621      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13622      wlarc=
13623      hardcode_direct_F77=yes
13624      hardcode_shlibpath_var_F77=no
13625      ;;
13626
13627    *)
13628      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13629	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13630	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13631      else
13632	ld_shlibs_F77=no
13633      fi
13634      ;;
13635    esac
13636
13637    if test "$ld_shlibs_F77" = no; then
13638      runpath_var=
13639      hardcode_libdir_flag_spec_F77=
13640      export_dynamic_flag_spec_F77=
13641      whole_archive_flag_spec_F77=
13642    fi
13643  else
13644    # PORTME fill in a description of your system's linker (not GNU ld)
13645    case $host_os in
13646    aix3*)
13647      allow_undefined_flag_F77=unsupported
13648      always_export_symbols_F77=yes
13649      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13650      # Note: this linker hardcodes the directories in LIBPATH if there
13651      # are no directories specified by -L.
13652      hardcode_minus_L_F77=yes
13653      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13654	# Neither direct hardcoding nor static linking is supported with a
13655	# broken collect2.
13656	hardcode_direct_F77=unsupported
13657      fi
13658      ;;
13659
13660    aix4* | aix5*)
13661      if test "$host_cpu" = ia64; then
13662	# On IA64, the linker does run time linking by default, so we don't
13663	# have to do anything special.
13664	aix_use_runtimelinking=no
13665	exp_sym_flag='-Bexport'
13666	no_entry_flag=""
13667      else
13668	# If we're using GNU nm, then we don't want the "-C" option.
13669	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13670	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13671	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13672	else
13673	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13674	fi
13675	aix_use_runtimelinking=no
13676
13677	# Test if we are trying to use run time linking or normal
13678	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13679	# need to do runtime linking.
13680	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13681	  for ld_flag in $LDFLAGS; do
13682  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13683  	    aix_use_runtimelinking=yes
13684  	    break
13685  	  fi
13686	  done
13687	  ;;
13688	esac
13689
13690	exp_sym_flag='-bexport'
13691	no_entry_flag='-bnoentry'
13692      fi
13693
13694      # When large executables or shared objects are built, AIX ld can
13695      # have problems creating the table of contents.  If linking a library
13696      # or program results in "error TOC overflow" add -mminimal-toc to
13697      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13698      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13699
13700      archive_cmds_F77=''
13701      hardcode_direct_F77=yes
13702      hardcode_libdir_separator_F77=':'
13703      link_all_deplibs_F77=yes
13704
13705      if test "$GCC" = yes; then
13706	case $host_os in aix4.[012]|aix4.[012].*)
13707	# We only want to do this on AIX 4.2 and lower, the check
13708	# below for broken collect2 doesn't work under 4.3+
13709	  collect2name=`${CC} -print-prog-name=collect2`
13710	  if test -f "$collect2name" && \
13711  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13712	  then
13713  	  # We have reworked collect2
13714  	  hardcode_direct_F77=yes
13715	  else
13716  	  # We have old collect2
13717  	  hardcode_direct_F77=unsupported
13718  	  # It fails to find uninstalled libraries when the uninstalled
13719  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13720  	  # to unsupported forces relinking
13721  	  hardcode_minus_L_F77=yes
13722  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13723  	  hardcode_libdir_separator_F77=
13724	  fi
13725	  ;;
13726	esac
13727	shared_flag='-shared'
13728	if test "$aix_use_runtimelinking" = yes; then
13729	  shared_flag="$shared_flag "'${wl}-G'
13730	fi
13731      else
13732	# not using gcc
13733	if test "$host_cpu" = ia64; then
13734  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13735  	# chokes on -Wl,-G. The following line is correct:
13736	  shared_flag='-G'
13737	else
13738	  if test "$aix_use_runtimelinking" = yes; then
13739	    shared_flag='${wl}-G'
13740	  else
13741	    shared_flag='${wl}-bM:SRE'
13742	  fi
13743	fi
13744      fi
13745
13746      # It seems that -bexpall does not export symbols beginning with
13747      # underscore (_), so it is better to generate a list of symbols to export.
13748      always_export_symbols_F77=yes
13749      if test "$aix_use_runtimelinking" = yes; then
13750	# Warning - without using the other runtime loading flags (-brtl),
13751	# -berok will link without error, but may produce a broken library.
13752	allow_undefined_flag_F77='-berok'
13753       # Determine the default libpath from the value encoded in an empty executable.
13754       cat >conftest.$ac_ext <<_ACEOF
13755      program main
13756
13757      end
13758_ACEOF
13759rm -f conftest.$ac_objext conftest$ac_exeext
13760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13761  (eval $ac_link) 2>conftest.er1
13762  ac_status=$?
13763  grep -v '^ *+' conftest.er1 >conftest.err
13764  rm -f conftest.er1
13765  cat conftest.err >&5
13766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767  (exit $ac_status); } &&
13768	 { ac_try='test -z "$ac_f77_werror_flag"
13769			 || test ! -s conftest.err'
13770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771  (eval $ac_try) 2>&5
13772  ac_status=$?
13773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774  (exit $ac_status); }; } &&
13775	 { ac_try='test -s conftest$ac_exeext'
13776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777  (eval $ac_try) 2>&5
13778  ac_status=$?
13779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780  (exit $ac_status); }; }; then
13781
13782aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13783}'`
13784# Check for a 64-bit object if we didn't find anything.
13785if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13786}'`; fi
13787else
13788  echo "$as_me: failed program was:" >&5
13789sed 's/^/| /' conftest.$ac_ext >&5
13790
13791fi
13792rm -f conftest.err conftest.$ac_objext \
13793      conftest$ac_exeext conftest.$ac_ext
13794if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13795
13796       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13797	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13798       else
13799	if test "$host_cpu" = ia64; then
13800	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13801	  allow_undefined_flag_F77="-z nodefs"
13802	  archive_expsym_cmds_F77="\$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"
13803	else
13804	 # Determine the default libpath from the value encoded in an empty executable.
13805	 cat >conftest.$ac_ext <<_ACEOF
13806      program main
13807
13808      end
13809_ACEOF
13810rm -f conftest.$ac_objext conftest$ac_exeext
13811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13812  (eval $ac_link) 2>conftest.er1
13813  ac_status=$?
13814  grep -v '^ *+' conftest.er1 >conftest.err
13815  rm -f conftest.er1
13816  cat conftest.err >&5
13817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818  (exit $ac_status); } &&
13819	 { ac_try='test -z "$ac_f77_werror_flag"
13820			 || test ! -s conftest.err'
13821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822  (eval $ac_try) 2>&5
13823  ac_status=$?
13824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825  (exit $ac_status); }; } &&
13826	 { ac_try='test -s conftest$ac_exeext'
13827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828  (eval $ac_try) 2>&5
13829  ac_status=$?
13830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831  (exit $ac_status); }; }; then
13832
13833aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13834}'`
13835# Check for a 64-bit object if we didn't find anything.
13836if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13837}'`; fi
13838else
13839  echo "$as_me: failed program was:" >&5
13840sed 's/^/| /' conftest.$ac_ext >&5
13841
13842fi
13843rm -f conftest.err conftest.$ac_objext \
13844      conftest$ac_exeext conftest.$ac_ext
13845if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13846
13847	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13848	  # Warning - without using the other run time loading flags,
13849	  # -berok will link without error, but may produce a broken library.
13850	  no_undefined_flag_F77=' ${wl}-bernotok'
13851	  allow_undefined_flag_F77=' ${wl}-berok'
13852	  # Exported symbols can be pulled into shared objects from archives
13853	  whole_archive_flag_spec_F77='$convenience'
13854	  archive_cmds_need_lc_F77=yes
13855	  # This is similar to how AIX traditionally builds its shared libraries.
13856	  archive_expsym_cmds_F77="\$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'
13857	fi
13858      fi
13859      ;;
13860
13861    amigaos*)
13862      archive_cmds_F77='$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)'
13863      hardcode_libdir_flag_spec_F77='-L$libdir'
13864      hardcode_minus_L_F77=yes
13865      # see comment about different semantics on the GNU ld section
13866      ld_shlibs_F77=no
13867      ;;
13868
13869    bsdi[45]*)
13870      export_dynamic_flag_spec_F77=-rdynamic
13871      ;;
13872
13873    cygwin* | mingw* | pw32*)
13874      # When not using gcc, we currently assume that we are using
13875      # Microsoft Visual C++.
13876      # hardcode_libdir_flag_spec is actually meaningless, as there is
13877      # no search path for DLLs.
13878      hardcode_libdir_flag_spec_F77=' '
13879      allow_undefined_flag_F77=unsupported
13880      # Tell ltmain to make .lib files, not .a files.
13881      libext=lib
13882      # Tell ltmain to make .dll files, not .so files.
13883      shrext_cmds=".dll"
13884      # FIXME: Setting linknames here is a bad hack.
13885      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13886      # The linker will automatically build a .lib file if we build a DLL.
13887      old_archive_From_new_cmds_F77='true'
13888      # FIXME: Should let the user specify the lib program.
13889      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13890      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13891      enable_shared_with_static_runtimes_F77=yes
13892      ;;
13893
13894    darwin* | rhapsody*)
13895      case $host_os in
13896        rhapsody* | darwin1.[012])
13897         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13898         ;;
13899       *) # Darwin 1.3 on
13900         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13901           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13902         else
13903           case ${MACOSX_DEPLOYMENT_TARGET} in
13904             10.[012])
13905               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13906               ;;
13907             10.*)
13908               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13909               ;;
13910           esac
13911         fi
13912         ;;
13913      esac
13914      archive_cmds_need_lc_F77=no
13915      hardcode_direct_F77=no
13916      hardcode_automatic_F77=yes
13917      hardcode_shlibpath_var_F77=unsupported
13918      whole_archive_flag_spec_F77=''
13919      link_all_deplibs_F77=yes
13920    if test "$GCC" = yes ; then
13921    	output_verbose_link_cmd='echo'
13922        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13923      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13924      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13925      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
13926      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
13927    else
13928      case $cc_basename in
13929        xlc*)
13930         output_verbose_link_cmd='echo'
13931         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13932         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13933          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13934         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
13935          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
13936          ;;
13937       *)
13938         ld_shlibs_F77=no
13939          ;;
13940      esac
13941    fi
13942      ;;
13943
13944    dgux*)
13945      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13946      hardcode_libdir_flag_spec_F77='-L$libdir'
13947      hardcode_shlibpath_var_F77=no
13948      ;;
13949
13950    freebsd1*)
13951      ld_shlibs_F77=no
13952      ;;
13953
13954    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13955    # support.  Future versions do this automatically, but an explicit c++rt0.o
13956    # does not break anything, and helps significantly (at the cost of a little
13957    # extra space).
13958    freebsd2.2*)
13959      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13960      hardcode_libdir_flag_spec_F77='-R$libdir'
13961      hardcode_direct_F77=yes
13962      hardcode_shlibpath_var_F77=no
13963      ;;
13964
13965    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13966    freebsd2*)
13967      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13968      hardcode_direct_F77=yes
13969      hardcode_minus_L_F77=yes
13970      hardcode_shlibpath_var_F77=no
13971      ;;
13972
13973    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13974    freebsd* | kfreebsd*-gnu | dragonfly*)
13975      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13976      hardcode_libdir_flag_spec_F77='-R$libdir'
13977      hardcode_direct_F77=yes
13978      hardcode_shlibpath_var_F77=no
13979      ;;
13980
13981    hpux9*)
13982      if test "$GCC" = yes; then
13983	archive_cmds_F77='$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'
13984      else
13985	archive_cmds_F77='$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'
13986      fi
13987      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13988      hardcode_libdir_separator_F77=:
13989      hardcode_direct_F77=yes
13990
13991      # hardcode_minus_L: Not really in the search PATH,
13992      # but as the default location of the library.
13993      hardcode_minus_L_F77=yes
13994      export_dynamic_flag_spec_F77='${wl}-E'
13995      ;;
13996
13997    hpux10*)
13998      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13999	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14000      else
14001	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14002      fi
14003      if test "$with_gnu_ld" = no; then
14004	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14005	hardcode_libdir_separator_F77=:
14006
14007	hardcode_direct_F77=yes
14008	export_dynamic_flag_spec_F77='${wl}-E'
14009
14010	# hardcode_minus_L: Not really in the search PATH,
14011	# but as the default location of the library.
14012	hardcode_minus_L_F77=yes
14013      fi
14014      ;;
14015
14016    hpux11*)
14017      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14018	case $host_cpu in
14019	hppa*64*)
14020	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14021	  ;;
14022	ia64*)
14023	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14024	  ;;
14025	*)
14026	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14027	  ;;
14028	esac
14029      else
14030	case $host_cpu in
14031	hppa*64*)
14032	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14033	  ;;
14034	ia64*)
14035	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14036	  ;;
14037	*)
14038	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14039	  ;;
14040	esac
14041      fi
14042      if test "$with_gnu_ld" = no; then
14043	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14044	hardcode_libdir_separator_F77=:
14045
14046	case $host_cpu in
14047	hppa*64*|ia64*)
14048	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14049	  hardcode_direct_F77=no
14050	  hardcode_shlibpath_var_F77=no
14051	  ;;
14052	*)
14053	  hardcode_direct_F77=yes
14054	  export_dynamic_flag_spec_F77='${wl}-E'
14055
14056	  # hardcode_minus_L: Not really in the search PATH,
14057	  # but as the default location of the library.
14058	  hardcode_minus_L_F77=yes
14059	  ;;
14060	esac
14061      fi
14062      ;;
14063
14064    irix5* | irix6* | nonstopux*)
14065      if test "$GCC" = yes; then
14066	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14067      else
14068	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14069	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14070      fi
14071      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14072      hardcode_libdir_separator_F77=:
14073      link_all_deplibs_F77=yes
14074      ;;
14075
14076    netbsd*)
14077      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14078	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14079      else
14080	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14081      fi
14082      hardcode_libdir_flag_spec_F77='-R$libdir'
14083      hardcode_direct_F77=yes
14084      hardcode_shlibpath_var_F77=no
14085      ;;
14086
14087    newsos6)
14088      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14089      hardcode_direct_F77=yes
14090      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14091      hardcode_libdir_separator_F77=:
14092      hardcode_shlibpath_var_F77=no
14093      ;;
14094
14095    openbsd*)
14096      hardcode_direct_F77=yes
14097      hardcode_shlibpath_var_F77=no
14098      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14099	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14100	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14101	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14102	export_dynamic_flag_spec_F77='${wl}-E'
14103      else
14104       case $host_os in
14105	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14106	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14107	   hardcode_libdir_flag_spec_F77='-R$libdir'
14108	   ;;
14109	 *)
14110	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14111	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14112	   ;;
14113       esac
14114      fi
14115      ;;
14116
14117    os2*)
14118      hardcode_libdir_flag_spec_F77='-L$libdir'
14119      hardcode_minus_L_F77=yes
14120      allow_undefined_flag_F77=unsupported
14121      archive_cmds_F77='$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'
14122      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14123      ;;
14124
14125    osf3*)
14126      if test "$GCC" = yes; then
14127	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14128	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14129      else
14130	allow_undefined_flag_F77=' -expect_unresolved \*'
14131	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14132      fi
14133      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14134      hardcode_libdir_separator_F77=:
14135      ;;
14136
14137    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14138      if test "$GCC" = yes; then
14139	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14140	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14141	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14142      else
14143	allow_undefined_flag_F77=' -expect_unresolved \*'
14144	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14145	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14146	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14147
14148	# Both c and cxx compiler support -rpath directly
14149	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14150      fi
14151      hardcode_libdir_separator_F77=:
14152      ;;
14153
14154    solaris*)
14155      no_undefined_flag_F77=' -z text'
14156      if test "$GCC" = yes; then
14157	wlarc='${wl}'
14158	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14159	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14160	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14161      else
14162	wlarc=''
14163	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14164	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14165  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14166      fi
14167      hardcode_libdir_flag_spec_F77='-R$libdir'
14168      hardcode_shlibpath_var_F77=no
14169      case $host_os in
14170      solaris2.[0-5] | solaris2.[0-5].*) ;;
14171      *)
14172 	# The compiler driver will combine linker options so we
14173 	# cannot just pass the convience library names through
14174 	# without $wl, iff we do not link with $LD.
14175 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14176 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14177 	case $wlarc in
14178 	'')
14179 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14180 	*)
14181 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14182 	esac ;;
14183      esac
14184      link_all_deplibs_F77=yes
14185      ;;
14186
14187    sunos4*)
14188      if test "x$host_vendor" = xsequent; then
14189	# Use $CC to link under sequent, because it throws in some extra .o
14190	# files that make .init and .fini sections work.
14191	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14192      else
14193	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14194      fi
14195      hardcode_libdir_flag_spec_F77='-L$libdir'
14196      hardcode_direct_F77=yes
14197      hardcode_minus_L_F77=yes
14198      hardcode_shlibpath_var_F77=no
14199      ;;
14200
14201    sysv4)
14202      case $host_vendor in
14203	sni)
14204	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14205	  hardcode_direct_F77=yes # is this really true???
14206	;;
14207	siemens)
14208	  ## LD is ld it makes a PLAMLIB
14209	  ## CC just makes a GrossModule.
14210	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14211	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14212	  hardcode_direct_F77=no
14213        ;;
14214	motorola)
14215	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14216	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14217	;;
14218      esac
14219      runpath_var='LD_RUN_PATH'
14220      hardcode_shlibpath_var_F77=no
14221      ;;
14222
14223    sysv4.3*)
14224      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14225      hardcode_shlibpath_var_F77=no
14226      export_dynamic_flag_spec_F77='-Bexport'
14227      ;;
14228
14229    sysv4*MP*)
14230      if test -d /usr/nec; then
14231	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14232	hardcode_shlibpath_var_F77=no
14233	runpath_var=LD_RUN_PATH
14234	hardcode_runpath_var=yes
14235	ld_shlibs_F77=yes
14236      fi
14237      ;;
14238
14239    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14240      no_undefined_flag_F77='${wl}-z,text'
14241      archive_cmds_need_lc_F77=no
14242      hardcode_shlibpath_var_F77=no
14243      runpath_var='LD_RUN_PATH'
14244
14245      if test "$GCC" = yes; then
14246	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14247	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14248      else
14249	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14250	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14251      fi
14252      ;;
14253
14254    sysv5* | sco3.2v5* | sco5v6*)
14255      # Note: We can NOT use -z defs as we might desire, because we do not
14256      # link with -lc, and that would cause any symbols used from libc to
14257      # always be unresolved, which means just about no library would
14258      # ever link correctly.  If we're not using GNU ld we use -z text
14259      # though, which does catch some bad symbols but isn't as heavy-handed
14260      # as -z defs.
14261      no_undefined_flag_F77='${wl}-z,text'
14262      allow_undefined_flag_F77='${wl}-z,nodefs'
14263      archive_cmds_need_lc_F77=no
14264      hardcode_shlibpath_var_F77=no
14265      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14266      hardcode_libdir_separator_F77=':'
14267      link_all_deplibs_F77=yes
14268      export_dynamic_flag_spec_F77='${wl}-Bexport'
14269      runpath_var='LD_RUN_PATH'
14270
14271      if test "$GCC" = yes; then
14272	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14273	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14274      else
14275	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14276	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14277      fi
14278      ;;
14279
14280    uts4*)
14281      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14282      hardcode_libdir_flag_spec_F77='-L$libdir'
14283      hardcode_shlibpath_var_F77=no
14284      ;;
14285
14286    *)
14287      ld_shlibs_F77=no
14288      ;;
14289    esac
14290  fi
14291
14292echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14293echo "${ECHO_T}$ld_shlibs_F77" >&6
14294test "$ld_shlibs_F77" = no && can_build_shared=no
14295
14296#
14297# Do we need to explicitly link libc?
14298#
14299case "x$archive_cmds_need_lc_F77" in
14300x|xyes)
14301  # Assume -lc should be added
14302  archive_cmds_need_lc_F77=yes
14303
14304  if test "$enable_shared" = yes && test "$GCC" = yes; then
14305    case $archive_cmds_F77 in
14306    *'~'*)
14307      # FIXME: we may have to deal with multi-command sequences.
14308      ;;
14309    '$CC '*)
14310      # Test whether the compiler implicitly links with -lc since on some
14311      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14312      # to ld, don't add -lc before -lgcc.
14313      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14314echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14315      $rm conftest*
14316      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14317
14318      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319  (eval $ac_compile) 2>&5
14320  ac_status=$?
14321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322  (exit $ac_status); } 2>conftest.err; then
14323        soname=conftest
14324        lib=conftest
14325        libobjs=conftest.$ac_objext
14326        deplibs=
14327        wl=$lt_prog_compiler_wl_F77
14328	pic_flag=$lt_prog_compiler_pic_F77
14329        compiler_flags=-v
14330        linker_flags=-v
14331        verstring=
14332        output_objdir=.
14333        libname=conftest
14334        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14335        allow_undefined_flag_F77=
14336        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14337  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14338  ac_status=$?
14339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340  (exit $ac_status); }
14341        then
14342	  archive_cmds_need_lc_F77=no
14343        else
14344	  archive_cmds_need_lc_F77=yes
14345        fi
14346        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14347      else
14348        cat conftest.err 1>&5
14349      fi
14350      $rm conftest*
14351      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14352echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14353      ;;
14354    esac
14355  fi
14356  ;;
14357esac
14358
14359echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14360echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14361library_names_spec=
14362libname_spec='lib$name'
14363soname_spec=
14364shrext_cmds=".so"
14365postinstall_cmds=
14366postuninstall_cmds=
14367finish_cmds=
14368finish_eval=
14369shlibpath_var=
14370shlibpath_overrides_runpath=unknown
14371version_type=none
14372dynamic_linker="$host_os ld.so"
14373sys_lib_dlsearch_path_spec="/lib /usr/lib"
14374if test "$GCC" = yes; then
14375  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14376  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14377    # if the path contains ";" then we assume it to be the separator
14378    # otherwise default to the standard path separator (i.e. ":") - it is
14379    # assumed that no part of a normal pathname contains ";" but that should
14380    # okay in the real world where ";" in dirpaths is itself problematic.
14381    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14382  else
14383    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14384  fi
14385else
14386  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14387fi
14388need_lib_prefix=unknown
14389hardcode_into_libs=no
14390
14391# when you set need_version to no, make sure it does not cause -set_version
14392# flags to be left without arguments
14393need_version=unknown
14394
14395case $host_os in
14396aix3*)
14397  version_type=linux
14398  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14399  shlibpath_var=LIBPATH
14400
14401  # AIX 3 has no versioning support, so we append a major version to the name.
14402  soname_spec='${libname}${release}${shared_ext}$major'
14403  ;;
14404
14405aix4* | aix5*)
14406  version_type=linux
14407  need_lib_prefix=no
14408  need_version=no
14409  hardcode_into_libs=yes
14410  if test "$host_cpu" = ia64; then
14411    # AIX 5 supports IA64
14412    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14413    shlibpath_var=LD_LIBRARY_PATH
14414  else
14415    # With GCC up to 2.95.x, collect2 would create an import file
14416    # for dependence libraries.  The import file would start with
14417    # the line `#! .'.  This would cause the generated library to
14418    # depend on `.', always an invalid library.  This was fixed in
14419    # development snapshots of GCC prior to 3.0.
14420    case $host_os in
14421      aix4 | aix4.[01] | aix4.[01].*)
14422      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14423	   echo ' yes '
14424	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14425	:
14426      else
14427	can_build_shared=no
14428      fi
14429      ;;
14430    esac
14431    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14432    # soname into executable. Probably we can add versioning support to
14433    # collect2, so additional links can be useful in future.
14434    if test "$aix_use_runtimelinking" = yes; then
14435      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14436      # instead of lib<name>.a to let people know that these are not
14437      # typical AIX shared libraries.
14438      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439    else
14440      # We preserve .a as extension for shared libraries through AIX4.2
14441      # and later when we are not doing run time linking.
14442      library_names_spec='${libname}${release}.a $libname.a'
14443      soname_spec='${libname}${release}${shared_ext}$major'
14444    fi
14445    shlibpath_var=LIBPATH
14446  fi
14447  ;;
14448
14449amigaos*)
14450  library_names_spec='$libname.ixlibrary $libname.a'
14451  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14452  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'
14453  ;;
14454
14455beos*)
14456  library_names_spec='${libname}${shared_ext}'
14457  dynamic_linker="$host_os ld.so"
14458  shlibpath_var=LIBRARY_PATH
14459  ;;
14460
14461bsdi[45]*)
14462  version_type=linux
14463  need_version=no
14464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14465  soname_spec='${libname}${release}${shared_ext}$major'
14466  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14467  shlibpath_var=LD_LIBRARY_PATH
14468  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14469  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14470  # the default ld.so.conf also contains /usr/contrib/lib and
14471  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14472  # libtool to hard-code these into programs
14473  ;;
14474
14475cygwin* | mingw* | pw32*)
14476  version_type=windows
14477  shrext_cmds=".dll"
14478  need_version=no
14479  need_lib_prefix=no
14480
14481  case $GCC,$host_os in
14482  yes,cygwin* | yes,mingw* | yes,pw32*)
14483    library_names_spec='$libname.dll.a'
14484    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14485    postinstall_cmds='base_file=`basename \${file}`~
14486      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14487      dldir=$destdir/`dirname \$dlpath`~
14488      test -d \$dldir || mkdir -p \$dldir~
14489      $install_prog $dir/$dlname \$dldir/$dlname~
14490      chmod a+x \$dldir/$dlname'
14491    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14492      dlpath=$dir/\$dldll~
14493       $rm \$dlpath'
14494    shlibpath_overrides_runpath=yes
14495
14496    case $host_os in
14497    cygwin*)
14498      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14499      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14500      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14501      ;;
14502    mingw*)
14503      # MinGW DLLs use traditional 'lib' prefix
14504      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14505      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14506      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14507        # It is most probably a Windows format PATH printed by
14508        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14509        # path with ; separators, and with drive letters. We can handle the
14510        # drive letters (cygwin fileutils understands them), so leave them,
14511        # especially as we might pass files found there to a mingw objdump,
14512        # which wouldn't understand a cygwinified path. Ahh.
14513        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14514      else
14515        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14516      fi
14517      ;;
14518    pw32*)
14519      # pw32 DLLs use 'pw' prefix rather than 'lib'
14520      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14521      ;;
14522    esac
14523    ;;
14524
14525  *)
14526    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14527    ;;
14528  esac
14529  dynamic_linker='Win32 ld.exe'
14530  # FIXME: first we should search . and the directory the executable is in
14531  shlibpath_var=PATH
14532  ;;
14533
14534darwin* | rhapsody*)
14535  dynamic_linker="$host_os dyld"
14536  version_type=darwin
14537  need_lib_prefix=no
14538  need_version=no
14539  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14540  soname_spec='${libname}${release}${major}$shared_ext'
14541  shlibpath_overrides_runpath=yes
14542  shlibpath_var=DYLD_LIBRARY_PATH
14543  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14544  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14545  if test "$GCC" = yes; then
14546    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14547  else
14548    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14549  fi
14550  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14551  ;;
14552
14553dgux*)
14554  version_type=linux
14555  need_lib_prefix=no
14556  need_version=no
14557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14558  soname_spec='${libname}${release}${shared_ext}$major'
14559  shlibpath_var=LD_LIBRARY_PATH
14560  ;;
14561
14562freebsd1*)
14563  dynamic_linker=no
14564  ;;
14565
14566kfreebsd*-gnu)
14567  version_type=linux
14568  need_lib_prefix=no
14569  need_version=no
14570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14571  soname_spec='${libname}${release}${shared_ext}$major'
14572  shlibpath_var=LD_LIBRARY_PATH
14573  shlibpath_overrides_runpath=no
14574  hardcode_into_libs=yes
14575  dynamic_linker='GNU ld.so'
14576  ;;
14577
14578freebsd* | dragonfly*)
14579  # DragonFly does not have aout.  When/if they implement a new
14580  # versioning mechanism, adjust this.
14581  if test -x /usr/bin/objformat; then
14582    objformat=`/usr/bin/objformat`
14583  else
14584    case $host_os in
14585    freebsd[123]*) objformat=aout ;;
14586    *) objformat=elf ;;
14587    esac
14588  fi
14589  version_type=freebsd-$objformat
14590  case $version_type in
14591    freebsd-elf*)
14592      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14593      need_version=no
14594      need_lib_prefix=no
14595      ;;
14596    freebsd-*)
14597      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14598      need_version=yes
14599      ;;
14600  esac
14601  shlibpath_var=LD_LIBRARY_PATH
14602  case $host_os in
14603  freebsd2*)
14604    shlibpath_overrides_runpath=yes
14605    ;;
14606  freebsd3.[01]* | freebsdelf3.[01]*)
14607    shlibpath_overrides_runpath=yes
14608    hardcode_into_libs=yes
14609    ;;
14610  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14611  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14612    shlibpath_overrides_runpath=no
14613    hardcode_into_libs=yes
14614    ;;
14615  freebsd*) # from 4.6 on
14616    shlibpath_overrides_runpath=yes
14617    hardcode_into_libs=yes
14618    ;;
14619  esac
14620  ;;
14621
14622gnu*)
14623  version_type=linux
14624  need_lib_prefix=no
14625  need_version=no
14626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14627  soname_spec='${libname}${release}${shared_ext}$major'
14628  shlibpath_var=LD_LIBRARY_PATH
14629  hardcode_into_libs=yes
14630  ;;
14631
14632hpux9* | hpux10* | hpux11*)
14633  # Give a soname corresponding to the major version so that dld.sl refuses to
14634  # link against other versions.
14635  version_type=sunos
14636  need_lib_prefix=no
14637  need_version=no
14638  case $host_cpu in
14639  ia64*)
14640    shrext_cmds='.so'
14641    hardcode_into_libs=yes
14642    dynamic_linker="$host_os dld.so"
14643    shlibpath_var=LD_LIBRARY_PATH
14644    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14645    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14646    soname_spec='${libname}${release}${shared_ext}$major'
14647    if test "X$HPUX_IA64_MODE" = X32; then
14648      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14649    else
14650      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14651    fi
14652    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14653    ;;
14654   hppa*64*)
14655     shrext_cmds='.sl'
14656     hardcode_into_libs=yes
14657     dynamic_linker="$host_os dld.sl"
14658     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14659     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14660     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661     soname_spec='${libname}${release}${shared_ext}$major'
14662     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14663     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14664     ;;
14665   *)
14666    shrext_cmds='.sl'
14667    dynamic_linker="$host_os dld.sl"
14668    shlibpath_var=SHLIB_PATH
14669    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14670    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671    soname_spec='${libname}${release}${shared_ext}$major'
14672    ;;
14673  esac
14674  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14675  postinstall_cmds='chmod 555 $lib'
14676  ;;
14677
14678interix3*)
14679  version_type=linux
14680  need_lib_prefix=no
14681  need_version=no
14682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14683  soname_spec='${libname}${release}${shared_ext}$major'
14684  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14685  shlibpath_var=LD_LIBRARY_PATH
14686  shlibpath_overrides_runpath=no
14687  hardcode_into_libs=yes
14688  ;;
14689
14690irix5* | irix6* | nonstopux*)
14691  case $host_os in
14692    nonstopux*) version_type=nonstopux ;;
14693    *)
14694	if test "$lt_cv_prog_gnu_ld" = yes; then
14695		version_type=linux
14696	else
14697		version_type=irix
14698	fi ;;
14699  esac
14700  need_lib_prefix=no
14701  need_version=no
14702  soname_spec='${libname}${release}${shared_ext}$major'
14703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14704  case $host_os in
14705  irix5* | nonstopux*)
14706    libsuff= shlibsuff=
14707    ;;
14708  *)
14709    case $LD in # libtool.m4 will add one of these switches to LD
14710    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14711      libsuff= shlibsuff= libmagic=32-bit;;
14712    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14713      libsuff=32 shlibsuff=N32 libmagic=N32;;
14714    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14715      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14716    *) libsuff= shlibsuff= libmagic=never-match;;
14717    esac
14718    ;;
14719  esac
14720  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14721  shlibpath_overrides_runpath=no
14722  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14723  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14724  hardcode_into_libs=yes
14725  ;;
14726
14727# No shared lib support for Linux oldld, aout, or coff.
14728linux*oldld* | linux*aout* | linux*coff*)
14729  dynamic_linker=no
14730  ;;
14731
14732# This must be Linux ELF.
14733linux*)
14734  version_type=linux
14735  need_lib_prefix=no
14736  need_version=no
14737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738  soname_spec='${libname}${release}${shared_ext}$major'
14739  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14740  shlibpath_var=LD_LIBRARY_PATH
14741  shlibpath_overrides_runpath=no
14742  # This implies no fast_install, which is unacceptable.
14743  # Some rework will be needed to allow for fast_install
14744  # before this can be enabled.
14745  hardcode_into_libs=yes
14746
14747  # Append ld.so.conf contents to the search path
14748  if test -f /etc/ld.so.conf; then
14749    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14750    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14751  fi
14752
14753  # We used to test for /lib/ld.so.1 and disable shared libraries on
14754  # powerpc, because MkLinux only supported shared libraries with the
14755  # GNU dynamic linker.  Since this was broken with cross compilers,
14756  # most powerpc-linux boxes support dynamic linking these days and
14757  # people can always --disable-shared, the test was removed, and we
14758  # assume the GNU/Linux dynamic linker is in use.
14759  dynamic_linker='GNU/Linux ld.so'
14760  ;;
14761
14762knetbsd*-gnu)
14763  version_type=linux
14764  need_lib_prefix=no
14765  need_version=no
14766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14767  soname_spec='${libname}${release}${shared_ext}$major'
14768  shlibpath_var=LD_LIBRARY_PATH
14769  shlibpath_overrides_runpath=no
14770  hardcode_into_libs=yes
14771  dynamic_linker='GNU ld.so'
14772  ;;
14773
14774netbsd*)
14775  version_type=sunos
14776  need_lib_prefix=no
14777  need_version=no
14778  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14779    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14780    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14781    dynamic_linker='NetBSD (a.out) ld.so'
14782  else
14783    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14784    soname_spec='${libname}${release}${shared_ext}$major'
14785    dynamic_linker='NetBSD ld.elf_so'
14786  fi
14787  shlibpath_var=LD_LIBRARY_PATH
14788  shlibpath_overrides_runpath=yes
14789  hardcode_into_libs=yes
14790  ;;
14791
14792newsos6)
14793  version_type=linux
14794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14795  shlibpath_var=LD_LIBRARY_PATH
14796  shlibpath_overrides_runpath=yes
14797  ;;
14798
14799nto-qnx*)
14800  version_type=linux
14801  need_lib_prefix=no
14802  need_version=no
14803  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804  soname_spec='${libname}${release}${shared_ext}$major'
14805  shlibpath_var=LD_LIBRARY_PATH
14806  shlibpath_overrides_runpath=yes
14807  ;;
14808
14809openbsd*)
14810  version_type=sunos
14811  sys_lib_dlsearch_path_spec="/usr/lib"
14812  need_lib_prefix=no
14813  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14814  case $host_os in
14815    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14816    *)                         need_version=no  ;;
14817  esac
14818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14819  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14820  shlibpath_var=LD_LIBRARY_PATH
14821  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14822    case $host_os in
14823      openbsd2.[89] | openbsd2.[89].*)
14824	shlibpath_overrides_runpath=no
14825	;;
14826      *)
14827	shlibpath_overrides_runpath=yes
14828	;;
14829      esac
14830  else
14831    shlibpath_overrides_runpath=yes
14832  fi
14833  ;;
14834
14835os2*)
14836  libname_spec='$name'
14837  shrext_cmds=".dll"
14838  need_lib_prefix=no
14839  library_names_spec='$libname${shared_ext} $libname.a'
14840  dynamic_linker='OS/2 ld.exe'
14841  shlibpath_var=LIBPATH
14842  ;;
14843
14844osf3* | osf4* | osf5*)
14845  version_type=osf
14846  need_lib_prefix=no
14847  need_version=no
14848  soname_spec='${libname}${release}${shared_ext}$major'
14849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850  shlibpath_var=LD_LIBRARY_PATH
14851  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14852  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14853  ;;
14854
14855solaris*)
14856  version_type=linux
14857  need_lib_prefix=no
14858  need_version=no
14859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860  soname_spec='${libname}${release}${shared_ext}$major'
14861  shlibpath_var=LD_LIBRARY_PATH
14862  shlibpath_overrides_runpath=yes
14863  hardcode_into_libs=yes
14864  # ldd complains unless libraries are executable
14865  postinstall_cmds='chmod +x $lib'
14866  ;;
14867
14868sunos4*)
14869  version_type=sunos
14870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14871  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14872  shlibpath_var=LD_LIBRARY_PATH
14873  shlibpath_overrides_runpath=yes
14874  if test "$with_gnu_ld" = yes; then
14875    need_lib_prefix=no
14876  fi
14877  need_version=yes
14878  ;;
14879
14880sysv4 | sysv4.3*)
14881  version_type=linux
14882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883  soname_spec='${libname}${release}${shared_ext}$major'
14884  shlibpath_var=LD_LIBRARY_PATH
14885  case $host_vendor in
14886    sni)
14887      shlibpath_overrides_runpath=no
14888      need_lib_prefix=no
14889      export_dynamic_flag_spec='${wl}-Blargedynsym'
14890      runpath_var=LD_RUN_PATH
14891      ;;
14892    siemens)
14893      need_lib_prefix=no
14894      ;;
14895    motorola)
14896      need_lib_prefix=no
14897      need_version=no
14898      shlibpath_overrides_runpath=no
14899      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14900      ;;
14901  esac
14902  ;;
14903
14904sysv4*MP*)
14905  if test -d /usr/nec ;then
14906    version_type=linux
14907    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14908    soname_spec='$libname${shared_ext}.$major'
14909    shlibpath_var=LD_LIBRARY_PATH
14910  fi
14911  ;;
14912
14913sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14914  version_type=freebsd-elf
14915  need_lib_prefix=no
14916  need_version=no
14917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14918  soname_spec='${libname}${release}${shared_ext}$major'
14919  shlibpath_var=LD_LIBRARY_PATH
14920  hardcode_into_libs=yes
14921  if test "$with_gnu_ld" = yes; then
14922    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14923    shlibpath_overrides_runpath=no
14924  else
14925    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14926    shlibpath_overrides_runpath=yes
14927    case $host_os in
14928      sco3.2v5*)
14929        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14930	;;
14931    esac
14932  fi
14933  sys_lib_dlsearch_path_spec='/usr/lib'
14934  ;;
14935
14936uts4*)
14937  version_type=linux
14938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939  soname_spec='${libname}${release}${shared_ext}$major'
14940  shlibpath_var=LD_LIBRARY_PATH
14941  ;;
14942
14943*)
14944  dynamic_linker=no
14945  ;;
14946esac
14947echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14948echo "${ECHO_T}$dynamic_linker" >&6
14949test "$dynamic_linker" = no && can_build_shared=no
14950
14951variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14952if test "$GCC" = yes; then
14953  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14954fi
14955
14956echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14957echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14958hardcode_action_F77=
14959if test -n "$hardcode_libdir_flag_spec_F77" || \
14960   test -n "$runpath_var_F77" || \
14961   test "X$hardcode_automatic_F77" = "Xyes" ; then
14962
14963  # We can hardcode non-existant directories.
14964  if test "$hardcode_direct_F77" != no &&
14965     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14966     # have to relink, otherwise we might link with an installed library
14967     # when we should be linking with a yet-to-be-installed one
14968     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14969     test "$hardcode_minus_L_F77" != no; then
14970    # Linking always hardcodes the temporary library directory.
14971    hardcode_action_F77=relink
14972  else
14973    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14974    hardcode_action_F77=immediate
14975  fi
14976else
14977  # We cannot hardcode anything, or else we can only hardcode existing
14978  # directories.
14979  hardcode_action_F77=unsupported
14980fi
14981echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14982echo "${ECHO_T}$hardcode_action_F77" >&6
14983
14984if test "$hardcode_action_F77" = relink; then
14985  # Fast installation is not supported
14986  enable_fast_install=no
14987elif test "$shlibpath_overrides_runpath" = yes ||
14988     test "$enable_shared" = no; then
14989  # Fast installation is not necessary
14990  enable_fast_install=needless
14991fi
14992
14993
14994# The else clause should only fire when bootstrapping the
14995# libtool distribution, otherwise you forgot to ship ltmain.sh
14996# with your package, and you will get complaints that there are
14997# no rules to generate ltmain.sh.
14998if test -f "$ltmain"; then
14999  # See if we are running on zsh, and set the options which allow our commands through
15000  # without removal of \ escapes.
15001  if test -n "${ZSH_VERSION+set}" ; then
15002    setopt NO_GLOB_SUBST
15003  fi
15004  # Now quote all the things that may contain metacharacters while being
15005  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15006  # variables and quote the copies for generation of the libtool script.
15007  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15008    SED SHELL STRIP \
15009    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15010    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15011    deplibs_check_method reload_flag reload_cmds need_locks \
15012    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15013    lt_cv_sys_global_symbol_to_c_name_address \
15014    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15015    old_postinstall_cmds old_postuninstall_cmds \
15016    compiler_F77 \
15017    CC_F77 \
15018    LD_F77 \
15019    lt_prog_compiler_wl_F77 \
15020    lt_prog_compiler_pic_F77 \
15021    lt_prog_compiler_static_F77 \
15022    lt_prog_compiler_no_builtin_flag_F77 \
15023    export_dynamic_flag_spec_F77 \
15024    thread_safe_flag_spec_F77 \
15025    whole_archive_flag_spec_F77 \
15026    enable_shared_with_static_runtimes_F77 \
15027    old_archive_cmds_F77 \
15028    old_archive_from_new_cmds_F77 \
15029    predep_objects_F77 \
15030    postdep_objects_F77 \
15031    predeps_F77 \
15032    postdeps_F77 \
15033    compiler_lib_search_path_F77 \
15034    archive_cmds_F77 \
15035    archive_expsym_cmds_F77 \
15036    postinstall_cmds_F77 \
15037    postuninstall_cmds_F77 \
15038    old_archive_from_expsyms_cmds_F77 \
15039    allow_undefined_flag_F77 \
15040    no_undefined_flag_F77 \
15041    export_symbols_cmds_F77 \
15042    hardcode_libdir_flag_spec_F77 \
15043    hardcode_libdir_flag_spec_ld_F77 \
15044    hardcode_libdir_separator_F77 \
15045    hardcode_automatic_F77 \
15046    module_cmds_F77 \
15047    module_expsym_cmds_F77 \
15048    lt_cv_prog_compiler_c_o_F77 \
15049    exclude_expsyms_F77 \
15050    include_expsyms_F77; do
15051
15052    case $var in
15053    old_archive_cmds_F77 | \
15054    old_archive_from_new_cmds_F77 | \
15055    archive_cmds_F77 | \
15056    archive_expsym_cmds_F77 | \
15057    module_cmds_F77 | \
15058    module_expsym_cmds_F77 | \
15059    old_archive_from_expsyms_cmds_F77 | \
15060    export_symbols_cmds_F77 | \
15061    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15062    postinstall_cmds | postuninstall_cmds | \
15063    old_postinstall_cmds | old_postuninstall_cmds | \
15064    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15065      # Double-quote double-evaled strings.
15066      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15067      ;;
15068    *)
15069      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15070      ;;
15071    esac
15072  done
15073
15074  case $lt_echo in
15075  *'\$0 --fallback-echo"')
15076    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15077    ;;
15078  esac
15079
15080cfgfile="$ofile"
15081
15082  cat <<__EOF__ >> "$cfgfile"
15083# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15084
15085# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15086
15087# Shell to use when invoking shell scripts.
15088SHELL=$lt_SHELL
15089
15090# Whether or not to build shared libraries.
15091build_libtool_libs=$enable_shared
15092
15093# Whether or not to build static libraries.
15094build_old_libs=$enable_static
15095
15096# Whether or not to add -lc for building shared libraries.
15097build_libtool_need_lc=$archive_cmds_need_lc_F77
15098
15099# Whether or not to disallow shared libs when runtime libs are static
15100allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15101
15102# Whether or not to optimize for fast installation.
15103fast_install=$enable_fast_install
15104
15105# The host system.
15106host_alias=$host_alias
15107host=$host
15108host_os=$host_os
15109
15110# The build system.
15111build_alias=$build_alias
15112build=$build
15113build_os=$build_os
15114
15115# An echo program that does not interpret backslashes.
15116echo=$lt_echo
15117
15118# The archiver.
15119AR=$lt_AR
15120AR_FLAGS=$lt_AR_FLAGS
15121
15122# A C compiler.
15123LTCC=$lt_LTCC
15124
15125# LTCC compiler flags.
15126LTCFLAGS=$lt_LTCFLAGS
15127
15128# A language-specific compiler.
15129CC=$lt_compiler_F77
15130
15131# Is the compiler the GNU C compiler?
15132with_gcc=$GCC_F77
15133
15134# An ERE matcher.
15135EGREP=$lt_EGREP
15136
15137# The linker used to build libraries.
15138LD=$lt_LD_F77
15139
15140# Whether we need hard or soft links.
15141LN_S=$lt_LN_S
15142
15143# A BSD-compatible nm program.
15144NM=$lt_NM
15145
15146# A symbol stripping program
15147STRIP=$lt_STRIP
15148
15149# Used to examine libraries when file_magic_cmd begins "file"
15150MAGIC_CMD=$MAGIC_CMD
15151
15152# Used on cygwin: DLL creation program.
15153DLLTOOL="$DLLTOOL"
15154
15155# Used on cygwin: object dumper.
15156OBJDUMP="$OBJDUMP"
15157
15158# Used on cygwin: assembler.
15159AS="$AS"
15160
15161# The name of the directory that contains temporary libtool files.
15162objdir=$objdir
15163
15164# How to create reloadable object files.
15165reload_flag=$lt_reload_flag
15166reload_cmds=$lt_reload_cmds
15167
15168# How to pass a linker flag through the compiler.
15169wl=$lt_lt_prog_compiler_wl_F77
15170
15171# Object file suffix (normally "o").
15172objext="$ac_objext"
15173
15174# Old archive suffix (normally "a").
15175libext="$libext"
15176
15177# Shared library suffix (normally ".so").
15178shrext_cmds='$shrext_cmds'
15179
15180# Executable file suffix (normally "").
15181exeext="$exeext"
15182
15183# Additional compiler flags for building library objects.
15184pic_flag=$lt_lt_prog_compiler_pic_F77
15185pic_mode=$pic_mode
15186
15187# What is the maximum length of a command?
15188max_cmd_len=$lt_cv_sys_max_cmd_len
15189
15190# Does compiler simultaneously support -c and -o options?
15191compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15192
15193# Must we lock files when doing compilation?
15194need_locks=$lt_need_locks
15195
15196# Do we need the lib prefix for modules?
15197need_lib_prefix=$need_lib_prefix
15198
15199# Do we need a version for libraries?
15200need_version=$need_version
15201
15202# Whether dlopen is supported.
15203dlopen_support=$enable_dlopen
15204
15205# Whether dlopen of programs is supported.
15206dlopen_self=$enable_dlopen_self
15207
15208# Whether dlopen of statically linked programs is supported.
15209dlopen_self_static=$enable_dlopen_self_static
15210
15211# Compiler flag to prevent dynamic linking.
15212link_static_flag=$lt_lt_prog_compiler_static_F77
15213
15214# Compiler flag to turn off builtin functions.
15215no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15216
15217# Compiler flag to allow reflexive dlopens.
15218export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15219
15220# Compiler flag to generate shared objects directly from archives.
15221whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15222
15223# Compiler flag to generate thread-safe objects.
15224thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15225
15226# Library versioning type.
15227version_type=$version_type
15228
15229# Format of library name prefix.
15230libname_spec=$lt_libname_spec
15231
15232# List of archive names.  First name is the real one, the rest are links.
15233# The last name is the one that the linker finds with -lNAME.
15234library_names_spec=$lt_library_names_spec
15235
15236# The coded name of the library, if different from the real name.
15237soname_spec=$lt_soname_spec
15238
15239# Commands used to build and install an old-style archive.
15240RANLIB=$lt_RANLIB
15241old_archive_cmds=$lt_old_archive_cmds_F77
15242old_postinstall_cmds=$lt_old_postinstall_cmds
15243old_postuninstall_cmds=$lt_old_postuninstall_cmds
15244
15245# Create an old-style archive from a shared archive.
15246old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15247
15248# Create a temporary old-style archive to link instead of a shared archive.
15249old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15250
15251# Commands used to build and install a shared archive.
15252archive_cmds=$lt_archive_cmds_F77
15253archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15254postinstall_cmds=$lt_postinstall_cmds
15255postuninstall_cmds=$lt_postuninstall_cmds
15256
15257# Commands used to build a loadable module (assumed same as above if empty)
15258module_cmds=$lt_module_cmds_F77
15259module_expsym_cmds=$lt_module_expsym_cmds_F77
15260
15261# Commands to strip libraries.
15262old_striplib=$lt_old_striplib
15263striplib=$lt_striplib
15264
15265# Dependencies to place before the objects being linked to create a
15266# shared library.
15267predep_objects=$lt_predep_objects_F77
15268
15269# Dependencies to place after the objects being linked to create a
15270# shared library.
15271postdep_objects=$lt_postdep_objects_F77
15272
15273# Dependencies to place before the objects being linked to create a
15274# shared library.
15275predeps=$lt_predeps_F77
15276
15277# Dependencies to place after the objects being linked to create a
15278# shared library.
15279postdeps=$lt_postdeps_F77
15280
15281# The library search path used internally by the compiler when linking
15282# a shared library.
15283compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15284
15285# Method to check whether dependent libraries are shared objects.
15286deplibs_check_method=$lt_deplibs_check_method
15287
15288# Command to use when deplibs_check_method == file_magic.
15289file_magic_cmd=$lt_file_magic_cmd
15290
15291# Flag that allows shared libraries with undefined symbols to be built.
15292allow_undefined_flag=$lt_allow_undefined_flag_F77
15293
15294# Flag that forces no undefined symbols.
15295no_undefined_flag=$lt_no_undefined_flag_F77
15296
15297# Commands used to finish a libtool library installation in a directory.
15298finish_cmds=$lt_finish_cmds
15299
15300# Same as above, but a single script fragment to be evaled but not shown.
15301finish_eval=$lt_finish_eval
15302
15303# Take the output of nm and produce a listing of raw symbols and C names.
15304global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15305
15306# Transform the output of nm in a proper C declaration
15307global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15308
15309# Transform the output of nm in a C name address pair
15310global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15311
15312# This is the shared library runtime path variable.
15313runpath_var=$runpath_var
15314
15315# This is the shared library path variable.
15316shlibpath_var=$shlibpath_var
15317
15318# Is shlibpath searched before the hard-coded library search path?
15319shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15320
15321# How to hardcode a shared library path into an executable.
15322hardcode_action=$hardcode_action_F77
15323
15324# Whether we should hardcode library paths into libraries.
15325hardcode_into_libs=$hardcode_into_libs
15326
15327# Flag to hardcode \$libdir into a binary during linking.
15328# This must work even if \$libdir does not exist.
15329hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15330
15331# If ld is used when linking, flag to hardcode \$libdir into
15332# a binary during linking. This must work even if \$libdir does
15333# not exist.
15334hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15335
15336# Whether we need a single -rpath flag with a separated argument.
15337hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15338
15339# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15340# resulting binary.
15341hardcode_direct=$hardcode_direct_F77
15342
15343# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15344# resulting binary.
15345hardcode_minus_L=$hardcode_minus_L_F77
15346
15347# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15348# the resulting binary.
15349hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15350
15351# Set to yes if building a shared library automatically hardcodes DIR into the library
15352# and all subsequent libraries and executables linked against it.
15353hardcode_automatic=$hardcode_automatic_F77
15354
15355# Variables whose values should be saved in libtool wrapper scripts and
15356# restored at relink time.
15357variables_saved_for_relink="$variables_saved_for_relink"
15358
15359# Whether libtool must link a program against all its dependency libraries.
15360link_all_deplibs=$link_all_deplibs_F77
15361
15362# Compile-time system search path for libraries
15363sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15364
15365# Run-time system search path for libraries
15366sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15367
15368# Fix the shell variable \$srcfile for the compiler.
15369fix_srcfile_path="$fix_srcfile_path_F77"
15370
15371# Set to yes if exported symbols are required.
15372always_export_symbols=$always_export_symbols_F77
15373
15374# The commands to list exported symbols.
15375export_symbols_cmds=$lt_export_symbols_cmds_F77
15376
15377# The commands to extract the exported symbol list from a shared archive.
15378extract_expsyms_cmds=$lt_extract_expsyms_cmds
15379
15380# Symbols that should not be listed in the preloaded symbols.
15381exclude_expsyms=$lt_exclude_expsyms_F77
15382
15383# Symbols that must always be exported.
15384include_expsyms=$lt_include_expsyms_F77
15385
15386# ### END LIBTOOL TAG CONFIG: $tagname
15387
15388__EOF__
15389
15390
15391else
15392  # If there is no Makefile yet, we rely on a make rule to execute
15393  # `config.status --recheck' to rerun these tests and create the
15394  # libtool script then.
15395  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15396  if test -f "$ltmain_in"; then
15397    test -f Makefile && make "$ltmain"
15398  fi
15399fi
15400
15401
15402ac_ext=c
15403ac_cpp='$CPP $CPPFLAGS'
15404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15406ac_compiler_gnu=$ac_cv_c_compiler_gnu
15407
15408CC="$lt_save_CC"
15409
15410	else
15411	  tagname=""
15412	fi
15413	;;
15414
15415      GCJ)
15416	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15417
15418
15419
15420# Source file extension for Java test sources.
15421ac_ext=java
15422
15423# Object file extension for compiled Java test sources.
15424objext=o
15425objext_GCJ=$objext
15426
15427# Code to be used in simple compile tests
15428lt_simple_compile_test_code="class foo {}\n"
15429
15430# Code to be used in simple link tests
15431lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15432
15433# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15434
15435# If no C compiler was specified, use CC.
15436LTCC=${LTCC-"$CC"}
15437
15438# If no C compiler flags were specified, use CFLAGS.
15439LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15440
15441# Allow CC to be a program name with arguments.
15442compiler=$CC
15443
15444
15445# save warnings/boilerplate of simple test code
15446ac_outfile=conftest.$ac_objext
15447printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15448eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15449_lt_compiler_boilerplate=`cat conftest.err`
15450$rm conftest*
15451
15452ac_outfile=conftest.$ac_objext
15453printf "$lt_simple_link_test_code" >conftest.$ac_ext
15454eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15455_lt_linker_boilerplate=`cat conftest.err`
15456$rm conftest*
15457
15458
15459# Allow CC to be a program name with arguments.
15460lt_save_CC="$CC"
15461CC=${GCJ-"gcj"}
15462compiler=$CC
15463compiler_GCJ=$CC
15464for cc_temp in $compiler""; do
15465  case $cc_temp in
15466    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15467    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15468    \-*) ;;
15469    *) break;;
15470  esac
15471done
15472cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15473
15474
15475# GCJ did not exist at the time GCC didn't implicitly link libc in.
15476archive_cmds_need_lc_GCJ=no
15477
15478old_archive_cmds_GCJ=$old_archive_cmds
15479
15480## CAVEAT EMPTOR:
15481## There is no encapsulation within the following macros, do not change
15482## the running order or otherwise move them around unless you know exactly
15483## what you are doing...
15484
15485lt_prog_compiler_no_builtin_flag_GCJ=
15486
15487if test "$GCC" = yes; then
15488  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15489
15490
15491echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15492echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15493if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15494  echo $ECHO_N "(cached) $ECHO_C" >&6
15495else
15496  lt_cv_prog_compiler_rtti_exceptions=no
15497  ac_outfile=conftest.$ac_objext
15498   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15499   lt_compiler_flag="-fno-rtti -fno-exceptions"
15500   # Insert the option either (1) after the last *FLAGS variable, or
15501   # (2) before a word containing "conftest.", or (3) at the end.
15502   # Note that $ac_compile itself does not contain backslashes and begins
15503   # with a dollar sign (not a hyphen), so the echo should work correctly.
15504   # The option is referenced via a variable to avoid confusing sed.
15505   lt_compile=`echo "$ac_compile" | $SED \
15506   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15507   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15508   -e 's:$: $lt_compiler_flag:'`
15509   (eval echo "\"\$as_me:15509: $lt_compile\"" >&5)
15510   (eval "$lt_compile" 2>conftest.err)
15511   ac_status=$?
15512   cat conftest.err >&5
15513   echo "$as_me:15513: \$? = $ac_status" >&5
15514   if (exit $ac_status) && test -s "$ac_outfile"; then
15515     # The compiler can only warn and ignore the option if not recognized
15516     # So say no if there are warnings other than the usual output.
15517     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15518     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15519     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15520       lt_cv_prog_compiler_rtti_exceptions=yes
15521     fi
15522   fi
15523   $rm conftest*
15524
15525fi
15526echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15527echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15528
15529if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15530    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15531else
15532    :
15533fi
15534
15535fi
15536
15537lt_prog_compiler_wl_GCJ=
15538lt_prog_compiler_pic_GCJ=
15539lt_prog_compiler_static_GCJ=
15540
15541echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15542echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15543
15544  if test "$GCC" = yes; then
15545    lt_prog_compiler_wl_GCJ='-Wl,'
15546    lt_prog_compiler_static_GCJ='-static'
15547
15548    case $host_os in
15549      aix*)
15550      # All AIX code is PIC.
15551      if test "$host_cpu" = ia64; then
15552	# AIX 5 now supports IA64 processor
15553	lt_prog_compiler_static_GCJ='-Bstatic'
15554      fi
15555      ;;
15556
15557    amigaos*)
15558      # FIXME: we need at least 68020 code to build shared libraries, but
15559      # adding the `-m68020' flag to GCC prevents building anything better,
15560      # like `-m68040'.
15561      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15562      ;;
15563
15564    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15565      # PIC is the default for these OSes.
15566      ;;
15567
15568    mingw* | pw32* | os2*)
15569      # This hack is so that the source file can tell whether it is being
15570      # built for inclusion in a dll (and should export symbols for example).
15571      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15572      ;;
15573
15574    darwin* | rhapsody*)
15575      # PIC is the default on this platform
15576      # Common symbols not allowed in MH_DYLIB files
15577      lt_prog_compiler_pic_GCJ='-fno-common'
15578      ;;
15579
15580    interix3*)
15581      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15582      # Instead, we relocate shared libraries at runtime.
15583      ;;
15584
15585    msdosdjgpp*)
15586      # Just because we use GCC doesn't mean we suddenly get shared libraries
15587      # on systems that don't support them.
15588      lt_prog_compiler_can_build_shared_GCJ=no
15589      enable_shared=no
15590      ;;
15591
15592    sysv4*MP*)
15593      if test -d /usr/nec; then
15594	lt_prog_compiler_pic_GCJ=-Kconform_pic
15595      fi
15596      ;;
15597
15598    hpux*)
15599      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15600      # not for PA HP-UX.
15601      case $host_cpu in
15602      hppa*64*|ia64*)
15603	# +Z the default
15604	;;
15605      *)
15606	lt_prog_compiler_pic_GCJ='-fPIC'
15607	;;
15608      esac
15609      ;;
15610
15611    *)
15612      lt_prog_compiler_pic_GCJ='-fPIC'
15613      ;;
15614    esac
15615  else
15616    # PORTME Check for flag to pass linker flags through the system compiler.
15617    case $host_os in
15618    aix*)
15619      lt_prog_compiler_wl_GCJ='-Wl,'
15620      if test "$host_cpu" = ia64; then
15621	# AIX 5 now supports IA64 processor
15622	lt_prog_compiler_static_GCJ='-Bstatic'
15623      else
15624	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15625      fi
15626      ;;
15627      darwin*)
15628        # PIC is the default on this platform
15629        # Common symbols not allowed in MH_DYLIB files
15630       case $cc_basename in
15631         xlc*)
15632         lt_prog_compiler_pic_GCJ='-qnocommon'
15633         lt_prog_compiler_wl_GCJ='-Wl,'
15634         ;;
15635       esac
15636       ;;
15637
15638    mingw* | pw32* | os2*)
15639      # This hack is so that the source file can tell whether it is being
15640      # built for inclusion in a dll (and should export symbols for example).
15641      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15642      ;;
15643
15644    hpux9* | hpux10* | hpux11*)
15645      lt_prog_compiler_wl_GCJ='-Wl,'
15646      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15647      # not for PA HP-UX.
15648      case $host_cpu in
15649      hppa*64*|ia64*)
15650	# +Z the default
15651	;;
15652      *)
15653	lt_prog_compiler_pic_GCJ='+Z'
15654	;;
15655      esac
15656      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15657      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15658      ;;
15659
15660    irix5* | irix6* | nonstopux*)
15661      lt_prog_compiler_wl_GCJ='-Wl,'
15662      # PIC (with -KPIC) is the default.
15663      lt_prog_compiler_static_GCJ='-non_shared'
15664      ;;
15665
15666    newsos6)
15667      lt_prog_compiler_pic_GCJ='-KPIC'
15668      lt_prog_compiler_static_GCJ='-Bstatic'
15669      ;;
15670
15671    linux*)
15672      case $cc_basename in
15673      icc* | ecc*)
15674	lt_prog_compiler_wl_GCJ='-Wl,'
15675	lt_prog_compiler_pic_GCJ='-KPIC'
15676	lt_prog_compiler_static_GCJ='-static'
15677        ;;
15678      pgcc* | pgf77* | pgf90* | pgf95*)
15679        # Portland Group compilers (*not* the Pentium gcc compiler,
15680	# which looks to be a dead project)
15681	lt_prog_compiler_wl_GCJ='-Wl,'
15682	lt_prog_compiler_pic_GCJ='-fpic'
15683	lt_prog_compiler_static_GCJ='-Bstatic'
15684        ;;
15685      ccc*)
15686        lt_prog_compiler_wl_GCJ='-Wl,'
15687        # All Alpha code is PIC.
15688        lt_prog_compiler_static_GCJ='-non_shared'
15689        ;;
15690      esac
15691      ;;
15692
15693    osf3* | osf4* | osf5*)
15694      lt_prog_compiler_wl_GCJ='-Wl,'
15695      # All OSF/1 code is PIC.
15696      lt_prog_compiler_static_GCJ='-non_shared'
15697      ;;
15698
15699    solaris*)
15700      lt_prog_compiler_pic_GCJ='-KPIC'
15701      lt_prog_compiler_static_GCJ='-Bstatic'
15702      case $cc_basename in
15703      f77* | f90* | f95*)
15704	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15705      *)
15706	lt_prog_compiler_wl_GCJ='-Wl,';;
15707      esac
15708      ;;
15709
15710    sunos4*)
15711      lt_prog_compiler_wl_GCJ='-Qoption ld '
15712      lt_prog_compiler_pic_GCJ='-PIC'
15713      lt_prog_compiler_static_GCJ='-Bstatic'
15714      ;;
15715
15716    sysv4 | sysv4.2uw2* | sysv4.3*)
15717      lt_prog_compiler_wl_GCJ='-Wl,'
15718      lt_prog_compiler_pic_GCJ='-KPIC'
15719      lt_prog_compiler_static_GCJ='-Bstatic'
15720      ;;
15721
15722    sysv4*MP*)
15723      if test -d /usr/nec ;then
15724	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15725	lt_prog_compiler_static_GCJ='-Bstatic'
15726      fi
15727      ;;
15728
15729    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15730      lt_prog_compiler_wl_GCJ='-Wl,'
15731      lt_prog_compiler_pic_GCJ='-KPIC'
15732      lt_prog_compiler_static_GCJ='-Bstatic'
15733      ;;
15734
15735    unicos*)
15736      lt_prog_compiler_wl_GCJ='-Wl,'
15737      lt_prog_compiler_can_build_shared_GCJ=no
15738      ;;
15739
15740    uts4*)
15741      lt_prog_compiler_pic_GCJ='-pic'
15742      lt_prog_compiler_static_GCJ='-Bstatic'
15743      ;;
15744
15745    *)
15746      lt_prog_compiler_can_build_shared_GCJ=no
15747      ;;
15748    esac
15749  fi
15750
15751echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15752echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15753
15754#
15755# Check to make sure the PIC flag actually works.
15756#
15757if test -n "$lt_prog_compiler_pic_GCJ"; then
15758
15759echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15760echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15761if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15762  echo $ECHO_N "(cached) $ECHO_C" >&6
15763else
15764  lt_prog_compiler_pic_works_GCJ=no
15765  ac_outfile=conftest.$ac_objext
15766   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15767   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15768   # Insert the option either (1) after the last *FLAGS variable, or
15769   # (2) before a word containing "conftest.", or (3) at the end.
15770   # Note that $ac_compile itself does not contain backslashes and begins
15771   # with a dollar sign (not a hyphen), so the echo should work correctly.
15772   # The option is referenced via a variable to avoid confusing sed.
15773   lt_compile=`echo "$ac_compile" | $SED \
15774   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15775   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15776   -e 's:$: $lt_compiler_flag:'`
15777   (eval echo "\"\$as_me:15777: $lt_compile\"" >&5)
15778   (eval "$lt_compile" 2>conftest.err)
15779   ac_status=$?
15780   cat conftest.err >&5
15781   echo "$as_me:15781: \$? = $ac_status" >&5
15782   if (exit $ac_status) && test -s "$ac_outfile"; then
15783     # The compiler can only warn and ignore the option if not recognized
15784     # So say no if there are warnings other than the usual output.
15785     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15786     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15787     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15788       lt_prog_compiler_pic_works_GCJ=yes
15789     fi
15790   fi
15791   $rm conftest*
15792
15793fi
15794echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15795echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15796
15797if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15798    case $lt_prog_compiler_pic_GCJ in
15799     "" | " "*) ;;
15800     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15801     esac
15802else
15803    lt_prog_compiler_pic_GCJ=
15804     lt_prog_compiler_can_build_shared_GCJ=no
15805fi
15806
15807fi
15808case $host_os in
15809  # For platforms which do not support PIC, -DPIC is meaningless:
15810  *djgpp*)
15811    lt_prog_compiler_pic_GCJ=
15812    ;;
15813  *)
15814    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15815    ;;
15816esac
15817
15818#
15819# Check to make sure the static flag actually works.
15820#
15821wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15822echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15823echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15824if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15825  echo $ECHO_N "(cached) $ECHO_C" >&6
15826else
15827  lt_prog_compiler_static_works_GCJ=no
15828   save_LDFLAGS="$LDFLAGS"
15829   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15830   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15831   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15832     # The linker can only warn and ignore the option if not recognized
15833     # So say no if there are warnings
15834     if test -s conftest.err; then
15835       # Append any errors to the config.log.
15836       cat conftest.err 1>&5
15837       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15838       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15839       if diff conftest.exp conftest.er2 >/dev/null; then
15840         lt_prog_compiler_static_works_GCJ=yes
15841       fi
15842     else
15843       lt_prog_compiler_static_works_GCJ=yes
15844     fi
15845   fi
15846   $rm conftest*
15847   LDFLAGS="$save_LDFLAGS"
15848
15849fi
15850echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15851echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15852
15853if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15854    :
15855else
15856    lt_prog_compiler_static_GCJ=
15857fi
15858
15859
15860echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15861echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15862if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15863  echo $ECHO_N "(cached) $ECHO_C" >&6
15864else
15865  lt_cv_prog_compiler_c_o_GCJ=no
15866   $rm -r conftest 2>/dev/null
15867   mkdir conftest
15868   cd conftest
15869   mkdir out
15870   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15871
15872   lt_compiler_flag="-o out/conftest2.$ac_objext"
15873   # Insert the option either (1) after the last *FLAGS variable, or
15874   # (2) before a word containing "conftest.", or (3) at the end.
15875   # Note that $ac_compile itself does not contain backslashes and begins
15876   # with a dollar sign (not a hyphen), so the echo should work correctly.
15877   lt_compile=`echo "$ac_compile" | $SED \
15878   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15879   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15880   -e 's:$: $lt_compiler_flag:'`
15881   (eval echo "\"\$as_me:15881: $lt_compile\"" >&5)
15882   (eval "$lt_compile" 2>out/conftest.err)
15883   ac_status=$?
15884   cat out/conftest.err >&5
15885   echo "$as_me:15885: \$? = $ac_status" >&5
15886   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15887   then
15888     # The compiler can only warn and ignore the option if not recognized
15889     # So say no if there are warnings
15890     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15891     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15892     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15893       lt_cv_prog_compiler_c_o_GCJ=yes
15894     fi
15895   fi
15896   chmod u+w . 2>&5
15897   $rm conftest*
15898   # SGI C++ compiler will create directory out/ii_files/ for
15899   # template instantiation
15900   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15901   $rm out/* && rmdir out
15902   cd ..
15903   rmdir conftest
15904   $rm conftest*
15905
15906fi
15907echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15908echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15909
15910
15911hard_links="nottested"
15912if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15913  # do not overwrite the value of need_locks provided by the user
15914  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15915echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15916  hard_links=yes
15917  $rm conftest*
15918  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15919  touch conftest.a
15920  ln conftest.a conftest.b 2>&5 || hard_links=no
15921  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15922  echo "$as_me:$LINENO: result: $hard_links" >&5
15923echo "${ECHO_T}$hard_links" >&6
15924  if test "$hard_links" = no; then
15925    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15926echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15927    need_locks=warn
15928  fi
15929else
15930  need_locks=no
15931fi
15932
15933echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15934echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15935
15936  runpath_var=
15937  allow_undefined_flag_GCJ=
15938  enable_shared_with_static_runtimes_GCJ=no
15939  archive_cmds_GCJ=
15940  archive_expsym_cmds_GCJ=
15941  old_archive_From_new_cmds_GCJ=
15942  old_archive_from_expsyms_cmds_GCJ=
15943  export_dynamic_flag_spec_GCJ=
15944  whole_archive_flag_spec_GCJ=
15945  thread_safe_flag_spec_GCJ=
15946  hardcode_libdir_flag_spec_GCJ=
15947  hardcode_libdir_flag_spec_ld_GCJ=
15948  hardcode_libdir_separator_GCJ=
15949  hardcode_direct_GCJ=no
15950  hardcode_minus_L_GCJ=no
15951  hardcode_shlibpath_var_GCJ=unsupported
15952  link_all_deplibs_GCJ=unknown
15953  hardcode_automatic_GCJ=no
15954  module_cmds_GCJ=
15955  module_expsym_cmds_GCJ=
15956  always_export_symbols_GCJ=no
15957  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15958  # include_expsyms should be a list of space-separated symbols to be *always*
15959  # included in the symbol list
15960  include_expsyms_GCJ=
15961  # exclude_expsyms can be an extended regexp of symbols to exclude
15962  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15963  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15964  # as well as any symbol that contains `d'.
15965  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15966  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15967  # platforms (ab)use it in PIC code, but their linkers get confused if
15968  # the symbol is explicitly referenced.  Since portable code cannot
15969  # rely on this symbol name, it's probably fine to never include it in
15970  # preloaded symbol tables.
15971  extract_expsyms_cmds=
15972  # Just being paranoid about ensuring that cc_basename is set.
15973  for cc_temp in $compiler""; do
15974  case $cc_temp in
15975    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15976    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15977    \-*) ;;
15978    *) break;;
15979  esac
15980done
15981cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15982
15983  case $host_os in
15984  cygwin* | mingw* | pw32*)
15985    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15986    # When not using gcc, we currently assume that we are using
15987    # Microsoft Visual C++.
15988    if test "$GCC" != yes; then
15989      with_gnu_ld=no
15990    fi
15991    ;;
15992  interix*)
15993    # we just hope/assume this is gcc and not c89 (= MSVC++)
15994    with_gnu_ld=yes
15995    ;;
15996  openbsd*)
15997    with_gnu_ld=no
15998    ;;
15999  esac
16000
16001  ld_shlibs_GCJ=yes
16002  if test "$with_gnu_ld" = yes; then
16003    # If archive_cmds runs LD, not CC, wlarc should be empty
16004    wlarc='${wl}'
16005
16006    # Set some defaults for GNU ld with shared library support. These
16007    # are reset later if shared libraries are not supported. Putting them
16008    # here allows them to be overridden if necessary.
16009    runpath_var=LD_RUN_PATH
16010    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16011    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16012    # ancient GNU ld didn't support --whole-archive et. al.
16013    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16014	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16015      else
16016  	whole_archive_flag_spec_GCJ=
16017    fi
16018    supports_anon_versioning=no
16019    case `$LD -v 2>/dev/null` in
16020      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16021      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16022      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16023      *\ 2.11.*) ;; # other 2.11 versions
16024      *) supports_anon_versioning=yes ;;
16025    esac
16026
16027    # See if GNU ld supports shared libraries.
16028    case $host_os in
16029    aix3* | aix4* | aix5*)
16030      # On AIX/PPC, the GNU linker is very broken
16031      if test "$host_cpu" != ia64; then
16032	ld_shlibs_GCJ=no
16033	cat <<EOF 1>&2
16034
16035*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16036*** to be unable to reliably create shared libraries on AIX.
16037*** Therefore, libtool is disabling shared libraries support.  If you
16038*** really care for shared libraries, you may want to modify your PATH
16039*** so that a non-GNU linker is found, and then restart.
16040
16041EOF
16042      fi
16043      ;;
16044
16045    amigaos*)
16046      archive_cmds_GCJ='$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)'
16047      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16048      hardcode_minus_L_GCJ=yes
16049
16050      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16051      # that the semantics of dynamic libraries on AmigaOS, at least up
16052      # to version 4, is to share data among multiple programs linked
16053      # with the same dynamic library.  Since this doesn't match the
16054      # behavior of shared libraries on other platforms, we can't use
16055      # them.
16056      ld_shlibs_GCJ=no
16057      ;;
16058
16059    beos*)
16060      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16061	allow_undefined_flag_GCJ=unsupported
16062	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16063	# support --undefined.  This deserves some investigation.  FIXME
16064	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16065      else
16066	ld_shlibs_GCJ=no
16067      fi
16068      ;;
16069
16070    cygwin* | mingw* | pw32*)
16071      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16072      # as there is no search path for DLLs.
16073      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16074      allow_undefined_flag_GCJ=unsupported
16075      always_export_symbols_GCJ=no
16076      enable_shared_with_static_runtimes_GCJ=yes
16077      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16078
16079      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16080        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16081	# If the export-symbols file already is a .def file (1st line
16082	# is EXPORTS), use it as is; otherwise, prepend...
16083	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16084	  cp $export_symbols $output_objdir/$soname.def;
16085	else
16086	  echo EXPORTS > $output_objdir/$soname.def;
16087	  cat $export_symbols >> $output_objdir/$soname.def;
16088	fi~
16089	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16090      else
16091	ld_shlibs_GCJ=no
16092      fi
16093      ;;
16094
16095    interix3*)
16096      hardcode_direct_GCJ=no
16097      hardcode_shlibpath_var_GCJ=no
16098      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16099      export_dynamic_flag_spec_GCJ='${wl}-E'
16100      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16101      # Instead, shared libraries are loaded at an image base (0x10000000 by
16102      # default) and relocated if they conflict, which is a slow very memory
16103      # consuming and fragmenting process.  To avoid this, we pick a random,
16104      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16105      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16106      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16107      archive_expsym_cmds_GCJ='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'
16108      ;;
16109
16110    linux*)
16111      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16112	tmp_addflag=
16113	case $cc_basename,$host_cpu in
16114	pgcc*)				# Portland Group C compiler
16115	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16116	  tmp_addflag=' $pic_flag'
16117	  ;;
16118	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16119	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16120	  tmp_addflag=' $pic_flag -Mnomain' ;;
16121	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16122	  tmp_addflag=' -i_dynamic' ;;
16123	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16124	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16125	ifc* | ifort*)			# Intel Fortran compiler
16126	  tmp_addflag=' -nofor_main' ;;
16127	esac
16128	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16129
16130	if test $supports_anon_versioning = yes; then
16131	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16132  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16133  $echo "local: *; };" >> $output_objdir/$libname.ver~
16134	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16135	fi
16136      else
16137	ld_shlibs_GCJ=no
16138      fi
16139      ;;
16140
16141    netbsd*)
16142      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16143	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16144	wlarc=
16145      else
16146	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16147	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16148      fi
16149      ;;
16150
16151    solaris*)
16152      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16153	ld_shlibs_GCJ=no
16154	cat <<EOF 1>&2
16155
16156*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16157*** create shared libraries on Solaris systems.  Therefore, libtool
16158*** is disabling shared libraries support.  We urge you to upgrade GNU
16159*** binutils to release 2.9.1 or newer.  Another option is to modify
16160*** your PATH or compiler configuration so that the native linker is
16161*** used, and then restart.
16162
16163EOF
16164      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16165	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16166	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16167      else
16168	ld_shlibs_GCJ=no
16169      fi
16170      ;;
16171
16172    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16173      case `$LD -v 2>&1` in
16174        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16175	ld_shlibs_GCJ=no
16176	cat <<_LT_EOF 1>&2
16177
16178*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16179*** reliably create shared libraries on SCO systems.  Therefore, libtool
16180*** is disabling shared libraries support.  We urge you to upgrade GNU
16181*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16182*** your PATH or compiler configuration so that the native linker is
16183*** used, and then restart.
16184
16185_LT_EOF
16186	;;
16187	*)
16188	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16189	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16190	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16191	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16192	  else
16193	    ld_shlibs_GCJ=no
16194	  fi
16195	;;
16196      esac
16197      ;;
16198
16199    sunos4*)
16200      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16201      wlarc=
16202      hardcode_direct_GCJ=yes
16203      hardcode_shlibpath_var_GCJ=no
16204      ;;
16205
16206    *)
16207      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16208	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16209	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16210      else
16211	ld_shlibs_GCJ=no
16212      fi
16213      ;;
16214    esac
16215
16216    if test "$ld_shlibs_GCJ" = no; then
16217      runpath_var=
16218      hardcode_libdir_flag_spec_GCJ=
16219      export_dynamic_flag_spec_GCJ=
16220      whole_archive_flag_spec_GCJ=
16221    fi
16222  else
16223    # PORTME fill in a description of your system's linker (not GNU ld)
16224    case $host_os in
16225    aix3*)
16226      allow_undefined_flag_GCJ=unsupported
16227      always_export_symbols_GCJ=yes
16228      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16229      # Note: this linker hardcodes the directories in LIBPATH if there
16230      # are no directories specified by -L.
16231      hardcode_minus_L_GCJ=yes
16232      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16233	# Neither direct hardcoding nor static linking is supported with a
16234	# broken collect2.
16235	hardcode_direct_GCJ=unsupported
16236      fi
16237      ;;
16238
16239    aix4* | aix5*)
16240      if test "$host_cpu" = ia64; then
16241	# On IA64, the linker does run time linking by default, so we don't
16242	# have to do anything special.
16243	aix_use_runtimelinking=no
16244	exp_sym_flag='-Bexport'
16245	no_entry_flag=""
16246      else
16247	# If we're using GNU nm, then we don't want the "-C" option.
16248	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16249	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16250	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16251	else
16252	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16253	fi
16254	aix_use_runtimelinking=no
16255
16256	# Test if we are trying to use run time linking or normal
16257	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16258	# need to do runtime linking.
16259	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16260	  for ld_flag in $LDFLAGS; do
16261  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16262  	    aix_use_runtimelinking=yes
16263  	    break
16264  	  fi
16265	  done
16266	  ;;
16267	esac
16268
16269	exp_sym_flag='-bexport'
16270	no_entry_flag='-bnoentry'
16271      fi
16272
16273      # When large executables or shared objects are built, AIX ld can
16274      # have problems creating the table of contents.  If linking a library
16275      # or program results in "error TOC overflow" add -mminimal-toc to
16276      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16277      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16278
16279      archive_cmds_GCJ=''
16280      hardcode_direct_GCJ=yes
16281      hardcode_libdir_separator_GCJ=':'
16282      link_all_deplibs_GCJ=yes
16283
16284      if test "$GCC" = yes; then
16285	case $host_os in aix4.[012]|aix4.[012].*)
16286	# We only want to do this on AIX 4.2 and lower, the check
16287	# below for broken collect2 doesn't work under 4.3+
16288	  collect2name=`${CC} -print-prog-name=collect2`
16289	  if test -f "$collect2name" && \
16290  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16291	  then
16292  	  # We have reworked collect2
16293  	  hardcode_direct_GCJ=yes
16294	  else
16295  	  # We have old collect2
16296  	  hardcode_direct_GCJ=unsupported
16297  	  # It fails to find uninstalled libraries when the uninstalled
16298  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16299  	  # to unsupported forces relinking
16300  	  hardcode_minus_L_GCJ=yes
16301  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16302  	  hardcode_libdir_separator_GCJ=
16303	  fi
16304	  ;;
16305	esac
16306	shared_flag='-shared'
16307	if test "$aix_use_runtimelinking" = yes; then
16308	  shared_flag="$shared_flag "'${wl}-G'
16309	fi
16310      else
16311	# not using gcc
16312	if test "$host_cpu" = ia64; then
16313  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16314  	# chokes on -Wl,-G. The following line is correct:
16315	  shared_flag='-G'
16316	else
16317	  if test "$aix_use_runtimelinking" = yes; then
16318	    shared_flag='${wl}-G'
16319	  else
16320	    shared_flag='${wl}-bM:SRE'
16321	  fi
16322	fi
16323      fi
16324
16325      # It seems that -bexpall does not export symbols beginning with
16326      # underscore (_), so it is better to generate a list of symbols to export.
16327      always_export_symbols_GCJ=yes
16328      if test "$aix_use_runtimelinking" = yes; then
16329	# Warning - without using the other runtime loading flags (-brtl),
16330	# -berok will link without error, but may produce a broken library.
16331	allow_undefined_flag_GCJ='-berok'
16332       # Determine the default libpath from the value encoded in an empty executable.
16333       cat >conftest.$ac_ext <<_ACEOF
16334/* confdefs.h.  */
16335_ACEOF
16336cat confdefs.h >>conftest.$ac_ext
16337cat >>conftest.$ac_ext <<_ACEOF
16338/* end confdefs.h.  */
16339
16340int
16341main ()
16342{
16343
16344  ;
16345  return 0;
16346}
16347_ACEOF
16348rm -f conftest.$ac_objext conftest$ac_exeext
16349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16350  (eval $ac_link) 2>conftest.er1
16351  ac_status=$?
16352  grep -v '^ *+' conftest.er1 >conftest.err
16353  rm -f conftest.er1
16354  cat conftest.err >&5
16355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356  (exit $ac_status); } &&
16357	 { ac_try='test -z "$ac_c_werror_flag"
16358			 || test ! -s conftest.err'
16359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360  (eval $ac_try) 2>&5
16361  ac_status=$?
16362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363  (exit $ac_status); }; } &&
16364	 { ac_try='test -s conftest$ac_exeext'
16365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366  (eval $ac_try) 2>&5
16367  ac_status=$?
16368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369  (exit $ac_status); }; }; then
16370
16371aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16372}'`
16373# Check for a 64-bit object if we didn't find anything.
16374if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16375}'`; fi
16376else
16377  echo "$as_me: failed program was:" >&5
16378sed 's/^/| /' conftest.$ac_ext >&5
16379
16380fi
16381rm -f conftest.err conftest.$ac_objext \
16382      conftest$ac_exeext conftest.$ac_ext
16383if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16384
16385       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16386	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16387       else
16388	if test "$host_cpu" = ia64; then
16389	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16390	  allow_undefined_flag_GCJ="-z nodefs"
16391	  archive_expsym_cmds_GCJ="\$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"
16392	else
16393	 # Determine the default libpath from the value encoded in an empty executable.
16394	 cat >conftest.$ac_ext <<_ACEOF
16395/* confdefs.h.  */
16396_ACEOF
16397cat confdefs.h >>conftest.$ac_ext
16398cat >>conftest.$ac_ext <<_ACEOF
16399/* end confdefs.h.  */
16400
16401int
16402main ()
16403{
16404
16405  ;
16406  return 0;
16407}
16408_ACEOF
16409rm -f conftest.$ac_objext conftest$ac_exeext
16410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16411  (eval $ac_link) 2>conftest.er1
16412  ac_status=$?
16413  grep -v '^ *+' conftest.er1 >conftest.err
16414  rm -f conftest.er1
16415  cat conftest.err >&5
16416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417  (exit $ac_status); } &&
16418	 { ac_try='test -z "$ac_c_werror_flag"
16419			 || test ! -s conftest.err'
16420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421  (eval $ac_try) 2>&5
16422  ac_status=$?
16423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424  (exit $ac_status); }; } &&
16425	 { ac_try='test -s conftest$ac_exeext'
16426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427  (eval $ac_try) 2>&5
16428  ac_status=$?
16429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430  (exit $ac_status); }; }; then
16431
16432aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16433}'`
16434# Check for a 64-bit object if we didn't find anything.
16435if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16436}'`; fi
16437else
16438  echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
16441fi
16442rm -f conftest.err conftest.$ac_objext \
16443      conftest$ac_exeext conftest.$ac_ext
16444if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16445
16446	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16447	  # Warning - without using the other run time loading flags,
16448	  # -berok will link without error, but may produce a broken library.
16449	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16450	  allow_undefined_flag_GCJ=' ${wl}-berok'
16451	  # Exported symbols can be pulled into shared objects from archives
16452	  whole_archive_flag_spec_GCJ='$convenience'
16453	  archive_cmds_need_lc_GCJ=yes
16454	  # This is similar to how AIX traditionally builds its shared libraries.
16455	  archive_expsym_cmds_GCJ="\$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'
16456	fi
16457      fi
16458      ;;
16459
16460    amigaos*)
16461      archive_cmds_GCJ='$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)'
16462      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16463      hardcode_minus_L_GCJ=yes
16464      # see comment about different semantics on the GNU ld section
16465      ld_shlibs_GCJ=no
16466      ;;
16467
16468    bsdi[45]*)
16469      export_dynamic_flag_spec_GCJ=-rdynamic
16470      ;;
16471
16472    cygwin* | mingw* | pw32*)
16473      # When not using gcc, we currently assume that we are using
16474      # Microsoft Visual C++.
16475      # hardcode_libdir_flag_spec is actually meaningless, as there is
16476      # no search path for DLLs.
16477      hardcode_libdir_flag_spec_GCJ=' '
16478      allow_undefined_flag_GCJ=unsupported
16479      # Tell ltmain to make .lib files, not .a files.
16480      libext=lib
16481      # Tell ltmain to make .dll files, not .so files.
16482      shrext_cmds=".dll"
16483      # FIXME: Setting linknames here is a bad hack.
16484      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16485      # The linker will automatically build a .lib file if we build a DLL.
16486      old_archive_From_new_cmds_GCJ='true'
16487      # FIXME: Should let the user specify the lib program.
16488      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16489      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16490      enable_shared_with_static_runtimes_GCJ=yes
16491      ;;
16492
16493    darwin* | rhapsody*)
16494      case $host_os in
16495        rhapsody* | darwin1.[012])
16496         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16497         ;;
16498       *) # Darwin 1.3 on
16499         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16500           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16501         else
16502           case ${MACOSX_DEPLOYMENT_TARGET} in
16503             10.[012])
16504               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16505               ;;
16506             10.*)
16507               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16508               ;;
16509           esac
16510         fi
16511         ;;
16512      esac
16513      archive_cmds_need_lc_GCJ=no
16514      hardcode_direct_GCJ=no
16515      hardcode_automatic_GCJ=yes
16516      hardcode_shlibpath_var_GCJ=unsupported
16517      whole_archive_flag_spec_GCJ=''
16518      link_all_deplibs_GCJ=yes
16519    if test "$GCC" = yes ; then
16520    	output_verbose_link_cmd='echo'
16521        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16522      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16523      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16524      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
16525      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
16526    else
16527      case $cc_basename in
16528        xlc*)
16529         output_verbose_link_cmd='echo'
16530         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16531         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16532          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16533         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
16534          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
16535          ;;
16536       *)
16537         ld_shlibs_GCJ=no
16538          ;;
16539      esac
16540    fi
16541      ;;
16542
16543    dgux*)
16544      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16545      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16546      hardcode_shlibpath_var_GCJ=no
16547      ;;
16548
16549    freebsd1*)
16550      ld_shlibs_GCJ=no
16551      ;;
16552
16553    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16554    # support.  Future versions do this automatically, but an explicit c++rt0.o
16555    # does not break anything, and helps significantly (at the cost of a little
16556    # extra space).
16557    freebsd2.2*)
16558      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16559      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16560      hardcode_direct_GCJ=yes
16561      hardcode_shlibpath_var_GCJ=no
16562      ;;
16563
16564    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16565    freebsd2*)
16566      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16567      hardcode_direct_GCJ=yes
16568      hardcode_minus_L_GCJ=yes
16569      hardcode_shlibpath_var_GCJ=no
16570      ;;
16571
16572    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16573    freebsd* | kfreebsd*-gnu | dragonfly*)
16574      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16575      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16576      hardcode_direct_GCJ=yes
16577      hardcode_shlibpath_var_GCJ=no
16578      ;;
16579
16580    hpux9*)
16581      if test "$GCC" = yes; then
16582	archive_cmds_GCJ='$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'
16583      else
16584	archive_cmds_GCJ='$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'
16585      fi
16586      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16587      hardcode_libdir_separator_GCJ=:
16588      hardcode_direct_GCJ=yes
16589
16590      # hardcode_minus_L: Not really in the search PATH,
16591      # but as the default location of the library.
16592      hardcode_minus_L_GCJ=yes
16593      export_dynamic_flag_spec_GCJ='${wl}-E'
16594      ;;
16595
16596    hpux10*)
16597      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16598	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16599      else
16600	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16601      fi
16602      if test "$with_gnu_ld" = no; then
16603	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16604	hardcode_libdir_separator_GCJ=:
16605
16606	hardcode_direct_GCJ=yes
16607	export_dynamic_flag_spec_GCJ='${wl}-E'
16608
16609	# hardcode_minus_L: Not really in the search PATH,
16610	# but as the default location of the library.
16611	hardcode_minus_L_GCJ=yes
16612      fi
16613      ;;
16614
16615    hpux11*)
16616      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16617	case $host_cpu in
16618	hppa*64*)
16619	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16620	  ;;
16621	ia64*)
16622	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16623	  ;;
16624	*)
16625	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16626	  ;;
16627	esac
16628      else
16629	case $host_cpu in
16630	hppa*64*)
16631	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16632	  ;;
16633	ia64*)
16634	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16635	  ;;
16636	*)
16637	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16638	  ;;
16639	esac
16640      fi
16641      if test "$with_gnu_ld" = no; then
16642	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16643	hardcode_libdir_separator_GCJ=:
16644
16645	case $host_cpu in
16646	hppa*64*|ia64*)
16647	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16648	  hardcode_direct_GCJ=no
16649	  hardcode_shlibpath_var_GCJ=no
16650	  ;;
16651	*)
16652	  hardcode_direct_GCJ=yes
16653	  export_dynamic_flag_spec_GCJ='${wl}-E'
16654
16655	  # hardcode_minus_L: Not really in the search PATH,
16656	  # but as the default location of the library.
16657	  hardcode_minus_L_GCJ=yes
16658	  ;;
16659	esac
16660      fi
16661      ;;
16662
16663    irix5* | irix6* | nonstopux*)
16664      if test "$GCC" = yes; then
16665	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16666      else
16667	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16668	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16669      fi
16670      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16671      hardcode_libdir_separator_GCJ=:
16672      link_all_deplibs_GCJ=yes
16673      ;;
16674
16675    netbsd*)
16676      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16677	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16678      else
16679	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16680      fi
16681      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16682      hardcode_direct_GCJ=yes
16683      hardcode_shlibpath_var_GCJ=no
16684      ;;
16685
16686    newsos6)
16687      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16688      hardcode_direct_GCJ=yes
16689      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16690      hardcode_libdir_separator_GCJ=:
16691      hardcode_shlibpath_var_GCJ=no
16692      ;;
16693
16694    openbsd*)
16695      hardcode_direct_GCJ=yes
16696      hardcode_shlibpath_var_GCJ=no
16697      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16698	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16699	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16700	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16701	export_dynamic_flag_spec_GCJ='${wl}-E'
16702      else
16703       case $host_os in
16704	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16705	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16706	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16707	   ;;
16708	 *)
16709	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16710	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16711	   ;;
16712       esac
16713      fi
16714      ;;
16715
16716    os2*)
16717      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16718      hardcode_minus_L_GCJ=yes
16719      allow_undefined_flag_GCJ=unsupported
16720      archive_cmds_GCJ='$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'
16721      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16722      ;;
16723
16724    osf3*)
16725      if test "$GCC" = yes; then
16726	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16727	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16728      else
16729	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16730	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16731      fi
16732      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16733      hardcode_libdir_separator_GCJ=:
16734      ;;
16735
16736    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16737      if test "$GCC" = yes; then
16738	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16739	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16740	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16741      else
16742	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16743	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16744	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16745	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16746
16747	# Both c and cxx compiler support -rpath directly
16748	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16749      fi
16750      hardcode_libdir_separator_GCJ=:
16751      ;;
16752
16753    solaris*)
16754      no_undefined_flag_GCJ=' -z text'
16755      if test "$GCC" = yes; then
16756	wlarc='${wl}'
16757	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16758	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16759	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16760      else
16761	wlarc=''
16762	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16763	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16764  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16765      fi
16766      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16767      hardcode_shlibpath_var_GCJ=no
16768      case $host_os in
16769      solaris2.[0-5] | solaris2.[0-5].*) ;;
16770      *)
16771 	# The compiler driver will combine linker options so we
16772 	# cannot just pass the convience library names through
16773 	# without $wl, iff we do not link with $LD.
16774 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16775 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16776 	case $wlarc in
16777 	'')
16778 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16779 	*)
16780 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16781 	esac ;;
16782      esac
16783      link_all_deplibs_GCJ=yes
16784      ;;
16785
16786    sunos4*)
16787      if test "x$host_vendor" = xsequent; then
16788	# Use $CC to link under sequent, because it throws in some extra .o
16789	# files that make .init and .fini sections work.
16790	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16791      else
16792	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16793      fi
16794      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16795      hardcode_direct_GCJ=yes
16796      hardcode_minus_L_GCJ=yes
16797      hardcode_shlibpath_var_GCJ=no
16798      ;;
16799
16800    sysv4)
16801      case $host_vendor in
16802	sni)
16803	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16804	  hardcode_direct_GCJ=yes # is this really true???
16805	;;
16806	siemens)
16807	  ## LD is ld it makes a PLAMLIB
16808	  ## CC just makes a GrossModule.
16809	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16810	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16811	  hardcode_direct_GCJ=no
16812        ;;
16813	motorola)
16814	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16816	;;
16817      esac
16818      runpath_var='LD_RUN_PATH'
16819      hardcode_shlibpath_var_GCJ=no
16820      ;;
16821
16822    sysv4.3*)
16823      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16824      hardcode_shlibpath_var_GCJ=no
16825      export_dynamic_flag_spec_GCJ='-Bexport'
16826      ;;
16827
16828    sysv4*MP*)
16829      if test -d /usr/nec; then
16830	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16831	hardcode_shlibpath_var_GCJ=no
16832	runpath_var=LD_RUN_PATH
16833	hardcode_runpath_var=yes
16834	ld_shlibs_GCJ=yes
16835      fi
16836      ;;
16837
16838    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16839      no_undefined_flag_GCJ='${wl}-z,text'
16840      archive_cmds_need_lc_GCJ=no
16841      hardcode_shlibpath_var_GCJ=no
16842      runpath_var='LD_RUN_PATH'
16843
16844      if test "$GCC" = yes; then
16845	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16846	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16847      else
16848	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16849	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16850      fi
16851      ;;
16852
16853    sysv5* | sco3.2v5* | sco5v6*)
16854      # Note: We can NOT use -z defs as we might desire, because we do not
16855      # link with -lc, and that would cause any symbols used from libc to
16856      # always be unresolved, which means just about no library would
16857      # ever link correctly.  If we're not using GNU ld we use -z text
16858      # though, which does catch some bad symbols but isn't as heavy-handed
16859      # as -z defs.
16860      no_undefined_flag_GCJ='${wl}-z,text'
16861      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16862      archive_cmds_need_lc_GCJ=no
16863      hardcode_shlibpath_var_GCJ=no
16864      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16865      hardcode_libdir_separator_GCJ=':'
16866      link_all_deplibs_GCJ=yes
16867      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16868      runpath_var='LD_RUN_PATH'
16869
16870      if test "$GCC" = yes; then
16871	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16872	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16873      else
16874	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16875	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16876      fi
16877      ;;
16878
16879    uts4*)
16880      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16881      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16882      hardcode_shlibpath_var_GCJ=no
16883      ;;
16884
16885    *)
16886      ld_shlibs_GCJ=no
16887      ;;
16888    esac
16889  fi
16890
16891echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16892echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16893test "$ld_shlibs_GCJ" = no && can_build_shared=no
16894
16895#
16896# Do we need to explicitly link libc?
16897#
16898case "x$archive_cmds_need_lc_GCJ" in
16899x|xyes)
16900  # Assume -lc should be added
16901  archive_cmds_need_lc_GCJ=yes
16902
16903  if test "$enable_shared" = yes && test "$GCC" = yes; then
16904    case $archive_cmds_GCJ in
16905    *'~'*)
16906      # FIXME: we may have to deal with multi-command sequences.
16907      ;;
16908    '$CC '*)
16909      # Test whether the compiler implicitly links with -lc since on some
16910      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16911      # to ld, don't add -lc before -lgcc.
16912      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16913echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16914      $rm conftest*
16915      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16916
16917      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16918  (eval $ac_compile) 2>&5
16919  ac_status=$?
16920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921  (exit $ac_status); } 2>conftest.err; then
16922        soname=conftest
16923        lib=conftest
16924        libobjs=conftest.$ac_objext
16925        deplibs=
16926        wl=$lt_prog_compiler_wl_GCJ
16927	pic_flag=$lt_prog_compiler_pic_GCJ
16928        compiler_flags=-v
16929        linker_flags=-v
16930        verstring=
16931        output_objdir=.
16932        libname=conftest
16933        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16934        allow_undefined_flag_GCJ=
16935        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16936  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16937  ac_status=$?
16938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939  (exit $ac_status); }
16940        then
16941	  archive_cmds_need_lc_GCJ=no
16942        else
16943	  archive_cmds_need_lc_GCJ=yes
16944        fi
16945        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16946      else
16947        cat conftest.err 1>&5
16948      fi
16949      $rm conftest*
16950      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16951echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16952      ;;
16953    esac
16954  fi
16955  ;;
16956esac
16957
16958echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16959echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16960library_names_spec=
16961libname_spec='lib$name'
16962soname_spec=
16963shrext_cmds=".so"
16964postinstall_cmds=
16965postuninstall_cmds=
16966finish_cmds=
16967finish_eval=
16968shlibpath_var=
16969shlibpath_overrides_runpath=unknown
16970version_type=none
16971dynamic_linker="$host_os ld.so"
16972sys_lib_dlsearch_path_spec="/lib /usr/lib"
16973if test "$GCC" = yes; then
16974  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16975  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16976    # if the path contains ";" then we assume it to be the separator
16977    # otherwise default to the standard path separator (i.e. ":") - it is
16978    # assumed that no part of a normal pathname contains ";" but that should
16979    # okay in the real world where ";" in dirpaths is itself problematic.
16980    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16981  else
16982    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16983  fi
16984else
16985  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16986fi
16987need_lib_prefix=unknown
16988hardcode_into_libs=no
16989
16990# when you set need_version to no, make sure it does not cause -set_version
16991# flags to be left without arguments
16992need_version=unknown
16993
16994case $host_os in
16995aix3*)
16996  version_type=linux
16997  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16998  shlibpath_var=LIBPATH
16999
17000  # AIX 3 has no versioning support, so we append a major version to the name.
17001  soname_spec='${libname}${release}${shared_ext}$major'
17002  ;;
17003
17004aix4* | aix5*)
17005  version_type=linux
17006  need_lib_prefix=no
17007  need_version=no
17008  hardcode_into_libs=yes
17009  if test "$host_cpu" = ia64; then
17010    # AIX 5 supports IA64
17011    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17012    shlibpath_var=LD_LIBRARY_PATH
17013  else
17014    # With GCC up to 2.95.x, collect2 would create an import file
17015    # for dependence libraries.  The import file would start with
17016    # the line `#! .'.  This would cause the generated library to
17017    # depend on `.', always an invalid library.  This was fixed in
17018    # development snapshots of GCC prior to 3.0.
17019    case $host_os in
17020      aix4 | aix4.[01] | aix4.[01].*)
17021      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17022	   echo ' yes '
17023	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17024	:
17025      else
17026	can_build_shared=no
17027      fi
17028      ;;
17029    esac
17030    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17031    # soname into executable. Probably we can add versioning support to
17032    # collect2, so additional links can be useful in future.
17033    if test "$aix_use_runtimelinking" = yes; then
17034      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17035      # instead of lib<name>.a to let people know that these are not
17036      # typical AIX shared libraries.
17037      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038    else
17039      # We preserve .a as extension for shared libraries through AIX4.2
17040      # and later when we are not doing run time linking.
17041      library_names_spec='${libname}${release}.a $libname.a'
17042      soname_spec='${libname}${release}${shared_ext}$major'
17043    fi
17044    shlibpath_var=LIBPATH
17045  fi
17046  ;;
17047
17048amigaos*)
17049  library_names_spec='$libname.ixlibrary $libname.a'
17050  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17051  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'
17052  ;;
17053
17054beos*)
17055  library_names_spec='${libname}${shared_ext}'
17056  dynamic_linker="$host_os ld.so"
17057  shlibpath_var=LIBRARY_PATH
17058  ;;
17059
17060bsdi[45]*)
17061  version_type=linux
17062  need_version=no
17063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064  soname_spec='${libname}${release}${shared_ext}$major'
17065  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17066  shlibpath_var=LD_LIBRARY_PATH
17067  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17068  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17069  # the default ld.so.conf also contains /usr/contrib/lib and
17070  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17071  # libtool to hard-code these into programs
17072  ;;
17073
17074cygwin* | mingw* | pw32*)
17075  version_type=windows
17076  shrext_cmds=".dll"
17077  need_version=no
17078  need_lib_prefix=no
17079
17080  case $GCC,$host_os in
17081  yes,cygwin* | yes,mingw* | yes,pw32*)
17082    library_names_spec='$libname.dll.a'
17083    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17084    postinstall_cmds='base_file=`basename \${file}`~
17085      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17086      dldir=$destdir/`dirname \$dlpath`~
17087      test -d \$dldir || mkdir -p \$dldir~
17088      $install_prog $dir/$dlname \$dldir/$dlname~
17089      chmod a+x \$dldir/$dlname'
17090    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17091      dlpath=$dir/\$dldll~
17092       $rm \$dlpath'
17093    shlibpath_overrides_runpath=yes
17094
17095    case $host_os in
17096    cygwin*)
17097      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17098      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17099      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17100      ;;
17101    mingw*)
17102      # MinGW DLLs use traditional 'lib' prefix
17103      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17104      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17105      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17106        # It is most probably a Windows format PATH printed by
17107        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17108        # path with ; separators, and with drive letters. We can handle the
17109        # drive letters (cygwin fileutils understands them), so leave them,
17110        # especially as we might pass files found there to a mingw objdump,
17111        # which wouldn't understand a cygwinified path. Ahh.
17112        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17113      else
17114        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17115      fi
17116      ;;
17117    pw32*)
17118      # pw32 DLLs use 'pw' prefix rather than 'lib'
17119      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17120      ;;
17121    esac
17122    ;;
17123
17124  *)
17125    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17126    ;;
17127  esac
17128  dynamic_linker='Win32 ld.exe'
17129  # FIXME: first we should search . and the directory the executable is in
17130  shlibpath_var=PATH
17131  ;;
17132
17133darwin* | rhapsody*)
17134  dynamic_linker="$host_os dyld"
17135  version_type=darwin
17136  need_lib_prefix=no
17137  need_version=no
17138  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17139  soname_spec='${libname}${release}${major}$shared_ext'
17140  shlibpath_overrides_runpath=yes
17141  shlibpath_var=DYLD_LIBRARY_PATH
17142  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17143  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17144  if test "$GCC" = yes; then
17145    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17146  else
17147    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17148  fi
17149  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17150  ;;
17151
17152dgux*)
17153  version_type=linux
17154  need_lib_prefix=no
17155  need_version=no
17156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17157  soname_spec='${libname}${release}${shared_ext}$major'
17158  shlibpath_var=LD_LIBRARY_PATH
17159  ;;
17160
17161freebsd1*)
17162  dynamic_linker=no
17163  ;;
17164
17165kfreebsd*-gnu)
17166  version_type=linux
17167  need_lib_prefix=no
17168  need_version=no
17169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17170  soname_spec='${libname}${release}${shared_ext}$major'
17171  shlibpath_var=LD_LIBRARY_PATH
17172  shlibpath_overrides_runpath=no
17173  hardcode_into_libs=yes
17174  dynamic_linker='GNU ld.so'
17175  ;;
17176
17177freebsd* | dragonfly*)
17178  # DragonFly does not have aout.  When/if they implement a new
17179  # versioning mechanism, adjust this.
17180  if test -x /usr/bin/objformat; then
17181    objformat=`/usr/bin/objformat`
17182  else
17183    case $host_os in
17184    freebsd[123]*) objformat=aout ;;
17185    *) objformat=elf ;;
17186    esac
17187  fi
17188  version_type=freebsd-$objformat
17189  case $version_type in
17190    freebsd-elf*)
17191      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17192      need_version=no
17193      need_lib_prefix=no
17194      ;;
17195    freebsd-*)
17196      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17197      need_version=yes
17198      ;;
17199  esac
17200  shlibpath_var=LD_LIBRARY_PATH
17201  case $host_os in
17202  freebsd2*)
17203    shlibpath_overrides_runpath=yes
17204    ;;
17205  freebsd3.[01]* | freebsdelf3.[01]*)
17206    shlibpath_overrides_runpath=yes
17207    hardcode_into_libs=yes
17208    ;;
17209  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17210  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17211    shlibpath_overrides_runpath=no
17212    hardcode_into_libs=yes
17213    ;;
17214  freebsd*) # from 4.6 on
17215    shlibpath_overrides_runpath=yes
17216    hardcode_into_libs=yes
17217    ;;
17218  esac
17219  ;;
17220
17221gnu*)
17222  version_type=linux
17223  need_lib_prefix=no
17224  need_version=no
17225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17226  soname_spec='${libname}${release}${shared_ext}$major'
17227  shlibpath_var=LD_LIBRARY_PATH
17228  hardcode_into_libs=yes
17229  ;;
17230
17231hpux9* | hpux10* | hpux11*)
17232  # Give a soname corresponding to the major version so that dld.sl refuses to
17233  # link against other versions.
17234  version_type=sunos
17235  need_lib_prefix=no
17236  need_version=no
17237  case $host_cpu in
17238  ia64*)
17239    shrext_cmds='.so'
17240    hardcode_into_libs=yes
17241    dynamic_linker="$host_os dld.so"
17242    shlibpath_var=LD_LIBRARY_PATH
17243    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17244    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245    soname_spec='${libname}${release}${shared_ext}$major'
17246    if test "X$HPUX_IA64_MODE" = X32; then
17247      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17248    else
17249      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17250    fi
17251    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17252    ;;
17253   hppa*64*)
17254     shrext_cmds='.sl'
17255     hardcode_into_libs=yes
17256     dynamic_linker="$host_os dld.sl"
17257     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17258     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260     soname_spec='${libname}${release}${shared_ext}$major'
17261     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17262     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17263     ;;
17264   *)
17265    shrext_cmds='.sl'
17266    dynamic_linker="$host_os dld.sl"
17267    shlibpath_var=SHLIB_PATH
17268    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17269    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270    soname_spec='${libname}${release}${shared_ext}$major'
17271    ;;
17272  esac
17273  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17274  postinstall_cmds='chmod 555 $lib'
17275  ;;
17276
17277interix3*)
17278  version_type=linux
17279  need_lib_prefix=no
17280  need_version=no
17281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17282  soname_spec='${libname}${release}${shared_ext}$major'
17283  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17284  shlibpath_var=LD_LIBRARY_PATH
17285  shlibpath_overrides_runpath=no
17286  hardcode_into_libs=yes
17287  ;;
17288
17289irix5* | irix6* | nonstopux*)
17290  case $host_os in
17291    nonstopux*) version_type=nonstopux ;;
17292    *)
17293	if test "$lt_cv_prog_gnu_ld" = yes; then
17294		version_type=linux
17295	else
17296		version_type=irix
17297	fi ;;
17298  esac
17299  need_lib_prefix=no
17300  need_version=no
17301  soname_spec='${libname}${release}${shared_ext}$major'
17302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17303  case $host_os in
17304  irix5* | nonstopux*)
17305    libsuff= shlibsuff=
17306    ;;
17307  *)
17308    case $LD in # libtool.m4 will add one of these switches to LD
17309    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17310      libsuff= shlibsuff= libmagic=32-bit;;
17311    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17312      libsuff=32 shlibsuff=N32 libmagic=N32;;
17313    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17314      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17315    *) libsuff= shlibsuff= libmagic=never-match;;
17316    esac
17317    ;;
17318  esac
17319  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17320  shlibpath_overrides_runpath=no
17321  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17322  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17323  hardcode_into_libs=yes
17324  ;;
17325
17326# No shared lib support for Linux oldld, aout, or coff.
17327linux*oldld* | linux*aout* | linux*coff*)
17328  dynamic_linker=no
17329  ;;
17330
17331# This must be Linux ELF.
17332linux*)
17333  version_type=linux
17334  need_lib_prefix=no
17335  need_version=no
17336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17337  soname_spec='${libname}${release}${shared_ext}$major'
17338  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17339  shlibpath_var=LD_LIBRARY_PATH
17340  shlibpath_overrides_runpath=no
17341  # This implies no fast_install, which is unacceptable.
17342  # Some rework will be needed to allow for fast_install
17343  # before this can be enabled.
17344  hardcode_into_libs=yes
17345
17346  # Append ld.so.conf contents to the search path
17347  if test -f /etc/ld.so.conf; then
17348    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17349    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17350  fi
17351
17352  # We used to test for /lib/ld.so.1 and disable shared libraries on
17353  # powerpc, because MkLinux only supported shared libraries with the
17354  # GNU dynamic linker.  Since this was broken with cross compilers,
17355  # most powerpc-linux boxes support dynamic linking these days and
17356  # people can always --disable-shared, the test was removed, and we
17357  # assume the GNU/Linux dynamic linker is in use.
17358  dynamic_linker='GNU/Linux ld.so'
17359  ;;
17360
17361knetbsd*-gnu)
17362  version_type=linux
17363  need_lib_prefix=no
17364  need_version=no
17365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17366  soname_spec='${libname}${release}${shared_ext}$major'
17367  shlibpath_var=LD_LIBRARY_PATH
17368  shlibpath_overrides_runpath=no
17369  hardcode_into_libs=yes
17370  dynamic_linker='GNU ld.so'
17371  ;;
17372
17373netbsd*)
17374  version_type=sunos
17375  need_lib_prefix=no
17376  need_version=no
17377  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17378    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17379    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17380    dynamic_linker='NetBSD (a.out) ld.so'
17381  else
17382    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17383    soname_spec='${libname}${release}${shared_ext}$major'
17384    dynamic_linker='NetBSD ld.elf_so'
17385  fi
17386  shlibpath_var=LD_LIBRARY_PATH
17387  shlibpath_overrides_runpath=yes
17388  hardcode_into_libs=yes
17389  ;;
17390
17391newsos6)
17392  version_type=linux
17393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17394  shlibpath_var=LD_LIBRARY_PATH
17395  shlibpath_overrides_runpath=yes
17396  ;;
17397
17398nto-qnx*)
17399  version_type=linux
17400  need_lib_prefix=no
17401  need_version=no
17402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17403  soname_spec='${libname}${release}${shared_ext}$major'
17404  shlibpath_var=LD_LIBRARY_PATH
17405  shlibpath_overrides_runpath=yes
17406  ;;
17407
17408openbsd*)
17409  version_type=sunos
17410  sys_lib_dlsearch_path_spec="/usr/lib"
17411  need_lib_prefix=no
17412  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17413  case $host_os in
17414    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17415    *)                         need_version=no  ;;
17416  esac
17417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17418  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17419  shlibpath_var=LD_LIBRARY_PATH
17420  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17421    case $host_os in
17422      openbsd2.[89] | openbsd2.[89].*)
17423	shlibpath_overrides_runpath=no
17424	;;
17425      *)
17426	shlibpath_overrides_runpath=yes
17427	;;
17428      esac
17429  else
17430    shlibpath_overrides_runpath=yes
17431  fi
17432  ;;
17433
17434os2*)
17435  libname_spec='$name'
17436  shrext_cmds=".dll"
17437  need_lib_prefix=no
17438  library_names_spec='$libname${shared_ext} $libname.a'
17439  dynamic_linker='OS/2 ld.exe'
17440  shlibpath_var=LIBPATH
17441  ;;
17442
17443osf3* | osf4* | osf5*)
17444  version_type=osf
17445  need_lib_prefix=no
17446  need_version=no
17447  soname_spec='${libname}${release}${shared_ext}$major'
17448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17449  shlibpath_var=LD_LIBRARY_PATH
17450  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17451  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17452  ;;
17453
17454solaris*)
17455  version_type=linux
17456  need_lib_prefix=no
17457  need_version=no
17458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17459  soname_spec='${libname}${release}${shared_ext}$major'
17460  shlibpath_var=LD_LIBRARY_PATH
17461  shlibpath_overrides_runpath=yes
17462  hardcode_into_libs=yes
17463  # ldd complains unless libraries are executable
17464  postinstall_cmds='chmod +x $lib'
17465  ;;
17466
17467sunos4*)
17468  version_type=sunos
17469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17471  shlibpath_var=LD_LIBRARY_PATH
17472  shlibpath_overrides_runpath=yes
17473  if test "$with_gnu_ld" = yes; then
17474    need_lib_prefix=no
17475  fi
17476  need_version=yes
17477  ;;
17478
17479sysv4 | sysv4.3*)
17480  version_type=linux
17481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17482  soname_spec='${libname}${release}${shared_ext}$major'
17483  shlibpath_var=LD_LIBRARY_PATH
17484  case $host_vendor in
17485    sni)
17486      shlibpath_overrides_runpath=no
17487      need_lib_prefix=no
17488      export_dynamic_flag_spec='${wl}-Blargedynsym'
17489      runpath_var=LD_RUN_PATH
17490      ;;
17491    siemens)
17492      need_lib_prefix=no
17493      ;;
17494    motorola)
17495      need_lib_prefix=no
17496      need_version=no
17497      shlibpath_overrides_runpath=no
17498      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17499      ;;
17500  esac
17501  ;;
17502
17503sysv4*MP*)
17504  if test -d /usr/nec ;then
17505    version_type=linux
17506    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17507    soname_spec='$libname${shared_ext}.$major'
17508    shlibpath_var=LD_LIBRARY_PATH
17509  fi
17510  ;;
17511
17512sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17513  version_type=freebsd-elf
17514  need_lib_prefix=no
17515  need_version=no
17516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17517  soname_spec='${libname}${release}${shared_ext}$major'
17518  shlibpath_var=LD_LIBRARY_PATH
17519  hardcode_into_libs=yes
17520  if test "$with_gnu_ld" = yes; then
17521    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17522    shlibpath_overrides_runpath=no
17523  else
17524    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17525    shlibpath_overrides_runpath=yes
17526    case $host_os in
17527      sco3.2v5*)
17528        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17529	;;
17530    esac
17531  fi
17532  sys_lib_dlsearch_path_spec='/usr/lib'
17533  ;;
17534
17535uts4*)
17536  version_type=linux
17537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17538  soname_spec='${libname}${release}${shared_ext}$major'
17539  shlibpath_var=LD_LIBRARY_PATH
17540  ;;
17541
17542*)
17543  dynamic_linker=no
17544  ;;
17545esac
17546echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17547echo "${ECHO_T}$dynamic_linker" >&6
17548test "$dynamic_linker" = no && can_build_shared=no
17549
17550variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17551if test "$GCC" = yes; then
17552  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17553fi
17554
17555echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17556echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17557hardcode_action_GCJ=
17558if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17559   test -n "$runpath_var_GCJ" || \
17560   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17561
17562  # We can hardcode non-existant directories.
17563  if test "$hardcode_direct_GCJ" != no &&
17564     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17565     # have to relink, otherwise we might link with an installed library
17566     # when we should be linking with a yet-to-be-installed one
17567     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17568     test "$hardcode_minus_L_GCJ" != no; then
17569    # Linking always hardcodes the temporary library directory.
17570    hardcode_action_GCJ=relink
17571  else
17572    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17573    hardcode_action_GCJ=immediate
17574  fi
17575else
17576  # We cannot hardcode anything, or else we can only hardcode existing
17577  # directories.
17578  hardcode_action_GCJ=unsupported
17579fi
17580echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17581echo "${ECHO_T}$hardcode_action_GCJ" >&6
17582
17583if test "$hardcode_action_GCJ" = relink; then
17584  # Fast installation is not supported
17585  enable_fast_install=no
17586elif test "$shlibpath_overrides_runpath" = yes ||
17587     test "$enable_shared" = no; then
17588  # Fast installation is not necessary
17589  enable_fast_install=needless
17590fi
17591
17592
17593# The else clause should only fire when bootstrapping the
17594# libtool distribution, otherwise you forgot to ship ltmain.sh
17595# with your package, and you will get complaints that there are
17596# no rules to generate ltmain.sh.
17597if test -f "$ltmain"; then
17598  # See if we are running on zsh, and set the options which allow our commands through
17599  # without removal of \ escapes.
17600  if test -n "${ZSH_VERSION+set}" ; then
17601    setopt NO_GLOB_SUBST
17602  fi
17603  # Now quote all the things that may contain metacharacters while being
17604  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17605  # variables and quote the copies for generation of the libtool script.
17606  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17607    SED SHELL STRIP \
17608    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17609    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17610    deplibs_check_method reload_flag reload_cmds need_locks \
17611    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17612    lt_cv_sys_global_symbol_to_c_name_address \
17613    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17614    old_postinstall_cmds old_postuninstall_cmds \
17615    compiler_GCJ \
17616    CC_GCJ \
17617    LD_GCJ \
17618    lt_prog_compiler_wl_GCJ \
17619    lt_prog_compiler_pic_GCJ \
17620    lt_prog_compiler_static_GCJ \
17621    lt_prog_compiler_no_builtin_flag_GCJ \
17622    export_dynamic_flag_spec_GCJ \
17623    thread_safe_flag_spec_GCJ \
17624    whole_archive_flag_spec_GCJ \
17625    enable_shared_with_static_runtimes_GCJ \
17626    old_archive_cmds_GCJ \
17627    old_archive_from_new_cmds_GCJ \
17628    predep_objects_GCJ \
17629    postdep_objects_GCJ \
17630    predeps_GCJ \
17631    postdeps_GCJ \
17632    compiler_lib_search_path_GCJ \
17633    archive_cmds_GCJ \
17634    archive_expsym_cmds_GCJ \
17635    postinstall_cmds_GCJ \
17636    postuninstall_cmds_GCJ \
17637    old_archive_from_expsyms_cmds_GCJ \
17638    allow_undefined_flag_GCJ \
17639    no_undefined_flag_GCJ \
17640    export_symbols_cmds_GCJ \
17641    hardcode_libdir_flag_spec_GCJ \
17642    hardcode_libdir_flag_spec_ld_GCJ \
17643    hardcode_libdir_separator_GCJ \
17644    hardcode_automatic_GCJ \
17645    module_cmds_GCJ \
17646    module_expsym_cmds_GCJ \
17647    lt_cv_prog_compiler_c_o_GCJ \
17648    exclude_expsyms_GCJ \
17649    include_expsyms_GCJ; do
17650
17651    case $var in
17652    old_archive_cmds_GCJ | \
17653    old_archive_from_new_cmds_GCJ | \
17654    archive_cmds_GCJ | \
17655    archive_expsym_cmds_GCJ | \
17656    module_cmds_GCJ | \
17657    module_expsym_cmds_GCJ | \
17658    old_archive_from_expsyms_cmds_GCJ | \
17659    export_symbols_cmds_GCJ | \
17660    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17661    postinstall_cmds | postuninstall_cmds | \
17662    old_postinstall_cmds | old_postuninstall_cmds | \
17663    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17664      # Double-quote double-evaled strings.
17665      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17666      ;;
17667    *)
17668      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17669      ;;
17670    esac
17671  done
17672
17673  case $lt_echo in
17674  *'\$0 --fallback-echo"')
17675    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17676    ;;
17677  esac
17678
17679cfgfile="$ofile"
17680
17681  cat <<__EOF__ >> "$cfgfile"
17682# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17683
17684# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17685
17686# Shell to use when invoking shell scripts.
17687SHELL=$lt_SHELL
17688
17689# Whether or not to build shared libraries.
17690build_libtool_libs=$enable_shared
17691
17692# Whether or not to build static libraries.
17693build_old_libs=$enable_static
17694
17695# Whether or not to add -lc for building shared libraries.
17696build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17697
17698# Whether or not to disallow shared libs when runtime libs are static
17699allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17700
17701# Whether or not to optimize for fast installation.
17702fast_install=$enable_fast_install
17703
17704# The host system.
17705host_alias=$host_alias
17706host=$host
17707host_os=$host_os
17708
17709# The build system.
17710build_alias=$build_alias
17711build=$build
17712build_os=$build_os
17713
17714# An echo program that does not interpret backslashes.
17715echo=$lt_echo
17716
17717# The archiver.
17718AR=$lt_AR
17719AR_FLAGS=$lt_AR_FLAGS
17720
17721# A C compiler.
17722LTCC=$lt_LTCC
17723
17724# LTCC compiler flags.
17725LTCFLAGS=$lt_LTCFLAGS
17726
17727# A language-specific compiler.
17728CC=$lt_compiler_GCJ
17729
17730# Is the compiler the GNU C compiler?
17731with_gcc=$GCC_GCJ
17732
17733# An ERE matcher.
17734EGREP=$lt_EGREP
17735
17736# The linker used to build libraries.
17737LD=$lt_LD_GCJ
17738
17739# Whether we need hard or soft links.
17740LN_S=$lt_LN_S
17741
17742# A BSD-compatible nm program.
17743NM=$lt_NM
17744
17745# A symbol stripping program
17746STRIP=$lt_STRIP
17747
17748# Used to examine libraries when file_magic_cmd begins "file"
17749MAGIC_CMD=$MAGIC_CMD
17750
17751# Used on cygwin: DLL creation program.
17752DLLTOOL="$DLLTOOL"
17753
17754# Used on cygwin: object dumper.
17755OBJDUMP="$OBJDUMP"
17756
17757# Used on cygwin: assembler.
17758AS="$AS"
17759
17760# The name of the directory that contains temporary libtool files.
17761objdir=$objdir
17762
17763# How to create reloadable object files.
17764reload_flag=$lt_reload_flag
17765reload_cmds=$lt_reload_cmds
17766
17767# How to pass a linker flag through the compiler.
17768wl=$lt_lt_prog_compiler_wl_GCJ
17769
17770# Object file suffix (normally "o").
17771objext="$ac_objext"
17772
17773# Old archive suffix (normally "a").
17774libext="$libext"
17775
17776# Shared library suffix (normally ".so").
17777shrext_cmds='$shrext_cmds'
17778
17779# Executable file suffix (normally "").
17780exeext="$exeext"
17781
17782# Additional compiler flags for building library objects.
17783pic_flag=$lt_lt_prog_compiler_pic_GCJ
17784pic_mode=$pic_mode
17785
17786# What is the maximum length of a command?
17787max_cmd_len=$lt_cv_sys_max_cmd_len
17788
17789# Does compiler simultaneously support -c and -o options?
17790compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17791
17792# Must we lock files when doing compilation?
17793need_locks=$lt_need_locks
17794
17795# Do we need the lib prefix for modules?
17796need_lib_prefix=$need_lib_prefix
17797
17798# Do we need a version for libraries?
17799need_version=$need_version
17800
17801# Whether dlopen is supported.
17802dlopen_support=$enable_dlopen
17803
17804# Whether dlopen of programs is supported.
17805dlopen_self=$enable_dlopen_self
17806
17807# Whether dlopen of statically linked programs is supported.
17808dlopen_self_static=$enable_dlopen_self_static
17809
17810# Compiler flag to prevent dynamic linking.
17811link_static_flag=$lt_lt_prog_compiler_static_GCJ
17812
17813# Compiler flag to turn off builtin functions.
17814no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17815
17816# Compiler flag to allow reflexive dlopens.
17817export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17818
17819# Compiler flag to generate shared objects directly from archives.
17820whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17821
17822# Compiler flag to generate thread-safe objects.
17823thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17824
17825# Library versioning type.
17826version_type=$version_type
17827
17828# Format of library name prefix.
17829libname_spec=$lt_libname_spec
17830
17831# List of archive names.  First name is the real one, the rest are links.
17832# The last name is the one that the linker finds with -lNAME.
17833library_names_spec=$lt_library_names_spec
17834
17835# The coded name of the library, if different from the real name.
17836soname_spec=$lt_soname_spec
17837
17838# Commands used to build and install an old-style archive.
17839RANLIB=$lt_RANLIB
17840old_archive_cmds=$lt_old_archive_cmds_GCJ
17841old_postinstall_cmds=$lt_old_postinstall_cmds
17842old_postuninstall_cmds=$lt_old_postuninstall_cmds
17843
17844# Create an old-style archive from a shared archive.
17845old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17846
17847# Create a temporary old-style archive to link instead of a shared archive.
17848old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17849
17850# Commands used to build and install a shared archive.
17851archive_cmds=$lt_archive_cmds_GCJ
17852archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17853postinstall_cmds=$lt_postinstall_cmds
17854postuninstall_cmds=$lt_postuninstall_cmds
17855
17856# Commands used to build a loadable module (assumed same as above if empty)
17857module_cmds=$lt_module_cmds_GCJ
17858module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17859
17860# Commands to strip libraries.
17861old_striplib=$lt_old_striplib
17862striplib=$lt_striplib
17863
17864# Dependencies to place before the objects being linked to create a
17865# shared library.
17866predep_objects=$lt_predep_objects_GCJ
17867
17868# Dependencies to place after the objects being linked to create a
17869# shared library.
17870postdep_objects=$lt_postdep_objects_GCJ
17871
17872# Dependencies to place before the objects being linked to create a
17873# shared library.
17874predeps=$lt_predeps_GCJ
17875
17876# Dependencies to place after the objects being linked to create a
17877# shared library.
17878postdeps=$lt_postdeps_GCJ
17879
17880# The library search path used internally by the compiler when linking
17881# a shared library.
17882compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17883
17884# Method to check whether dependent libraries are shared objects.
17885deplibs_check_method=$lt_deplibs_check_method
17886
17887# Command to use when deplibs_check_method == file_magic.
17888file_magic_cmd=$lt_file_magic_cmd
17889
17890# Flag that allows shared libraries with undefined symbols to be built.
17891allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17892
17893# Flag that forces no undefined symbols.
17894no_undefined_flag=$lt_no_undefined_flag_GCJ
17895
17896# Commands used to finish a libtool library installation in a directory.
17897finish_cmds=$lt_finish_cmds
17898
17899# Same as above, but a single script fragment to be evaled but not shown.
17900finish_eval=$lt_finish_eval
17901
17902# Take the output of nm and produce a listing of raw symbols and C names.
17903global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17904
17905# Transform the output of nm in a proper C declaration
17906global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17907
17908# Transform the output of nm in a C name address pair
17909global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17910
17911# This is the shared library runtime path variable.
17912runpath_var=$runpath_var
17913
17914# This is the shared library path variable.
17915shlibpath_var=$shlibpath_var
17916
17917# Is shlibpath searched before the hard-coded library search path?
17918shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17919
17920# How to hardcode a shared library path into an executable.
17921hardcode_action=$hardcode_action_GCJ
17922
17923# Whether we should hardcode library paths into libraries.
17924hardcode_into_libs=$hardcode_into_libs
17925
17926# Flag to hardcode \$libdir into a binary during linking.
17927# This must work even if \$libdir does not exist.
17928hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17929
17930# If ld is used when linking, flag to hardcode \$libdir into
17931# a binary during linking. This must work even if \$libdir does
17932# not exist.
17933hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17934
17935# Whether we need a single -rpath flag with a separated argument.
17936hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17937
17938# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17939# resulting binary.
17940hardcode_direct=$hardcode_direct_GCJ
17941
17942# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17943# resulting binary.
17944hardcode_minus_L=$hardcode_minus_L_GCJ
17945
17946# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17947# the resulting binary.
17948hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17949
17950# Set to yes if building a shared library automatically hardcodes DIR into the library
17951# and all subsequent libraries and executables linked against it.
17952hardcode_automatic=$hardcode_automatic_GCJ
17953
17954# Variables whose values should be saved in libtool wrapper scripts and
17955# restored at relink time.
17956variables_saved_for_relink="$variables_saved_for_relink"
17957
17958# Whether libtool must link a program against all its dependency libraries.
17959link_all_deplibs=$link_all_deplibs_GCJ
17960
17961# Compile-time system search path for libraries
17962sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17963
17964# Run-time system search path for libraries
17965sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17966
17967# Fix the shell variable \$srcfile for the compiler.
17968fix_srcfile_path="$fix_srcfile_path_GCJ"
17969
17970# Set to yes if exported symbols are required.
17971always_export_symbols=$always_export_symbols_GCJ
17972
17973# The commands to list exported symbols.
17974export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17975
17976# The commands to extract the exported symbol list from a shared archive.
17977extract_expsyms_cmds=$lt_extract_expsyms_cmds
17978
17979# Symbols that should not be listed in the preloaded symbols.
17980exclude_expsyms=$lt_exclude_expsyms_GCJ
17981
17982# Symbols that must always be exported.
17983include_expsyms=$lt_include_expsyms_GCJ
17984
17985# ### END LIBTOOL TAG CONFIG: $tagname
17986
17987__EOF__
17988
17989
17990else
17991  # If there is no Makefile yet, we rely on a make rule to execute
17992  # `config.status --recheck' to rerun these tests and create the
17993  # libtool script then.
17994  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17995  if test -f "$ltmain_in"; then
17996    test -f Makefile && make "$ltmain"
17997  fi
17998fi
17999
18000
18001ac_ext=c
18002ac_cpp='$CPP $CPPFLAGS'
18003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18005ac_compiler_gnu=$ac_cv_c_compiler_gnu
18006
18007CC="$lt_save_CC"
18008
18009	else
18010	  tagname=""
18011	fi
18012	;;
18013
18014      RC)
18015
18016
18017
18018# Source file extension for RC test sources.
18019ac_ext=rc
18020
18021# Object file extension for compiled RC test sources.
18022objext=o
18023objext_RC=$objext
18024
18025# Code to be used in simple compile tests
18026lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18027
18028# Code to be used in simple link tests
18029lt_simple_link_test_code="$lt_simple_compile_test_code"
18030
18031# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18032
18033# If no C compiler was specified, use CC.
18034LTCC=${LTCC-"$CC"}
18035
18036# If no C compiler flags were specified, use CFLAGS.
18037LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18038
18039# Allow CC to be a program name with arguments.
18040compiler=$CC
18041
18042
18043# save warnings/boilerplate of simple test code
18044ac_outfile=conftest.$ac_objext
18045printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18046eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18047_lt_compiler_boilerplate=`cat conftest.err`
18048$rm conftest*
18049
18050ac_outfile=conftest.$ac_objext
18051printf "$lt_simple_link_test_code" >conftest.$ac_ext
18052eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18053_lt_linker_boilerplate=`cat conftest.err`
18054$rm conftest*
18055
18056
18057# Allow CC to be a program name with arguments.
18058lt_save_CC="$CC"
18059CC=${RC-"windres"}
18060compiler=$CC
18061compiler_RC=$CC
18062for cc_temp in $compiler""; do
18063  case $cc_temp in
18064    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18065    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18066    \-*) ;;
18067    *) break;;
18068  esac
18069done
18070cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18071
18072lt_cv_prog_compiler_c_o_RC=yes
18073
18074# The else clause should only fire when bootstrapping the
18075# libtool distribution, otherwise you forgot to ship ltmain.sh
18076# with your package, and you will get complaints that there are
18077# no rules to generate ltmain.sh.
18078if test -f "$ltmain"; then
18079  # See if we are running on zsh, and set the options which allow our commands through
18080  # without removal of \ escapes.
18081  if test -n "${ZSH_VERSION+set}" ; then
18082    setopt NO_GLOB_SUBST
18083  fi
18084  # Now quote all the things that may contain metacharacters while being
18085  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18086  # variables and quote the copies for generation of the libtool script.
18087  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18088    SED SHELL STRIP \
18089    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18090    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18091    deplibs_check_method reload_flag reload_cmds need_locks \
18092    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18093    lt_cv_sys_global_symbol_to_c_name_address \
18094    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18095    old_postinstall_cmds old_postuninstall_cmds \
18096    compiler_RC \
18097    CC_RC \
18098    LD_RC \
18099    lt_prog_compiler_wl_RC \
18100    lt_prog_compiler_pic_RC \
18101    lt_prog_compiler_static_RC \
18102    lt_prog_compiler_no_builtin_flag_RC \
18103    export_dynamic_flag_spec_RC \
18104    thread_safe_flag_spec_RC \
18105    whole_archive_flag_spec_RC \
18106    enable_shared_with_static_runtimes_RC \
18107    old_archive_cmds_RC \
18108    old_archive_from_new_cmds_RC \
18109    predep_objects_RC \
18110    postdep_objects_RC \
18111    predeps_RC \
18112    postdeps_RC \
18113    compiler_lib_search_path_RC \
18114    archive_cmds_RC \
18115    archive_expsym_cmds_RC \
18116    postinstall_cmds_RC \
18117    postuninstall_cmds_RC \
18118    old_archive_from_expsyms_cmds_RC \
18119    allow_undefined_flag_RC \
18120    no_undefined_flag_RC \
18121    export_symbols_cmds_RC \
18122    hardcode_libdir_flag_spec_RC \
18123    hardcode_libdir_flag_spec_ld_RC \
18124    hardcode_libdir_separator_RC \
18125    hardcode_automatic_RC \
18126    module_cmds_RC \
18127    module_expsym_cmds_RC \
18128    lt_cv_prog_compiler_c_o_RC \
18129    exclude_expsyms_RC \
18130    include_expsyms_RC; do
18131
18132    case $var in
18133    old_archive_cmds_RC | \
18134    old_archive_from_new_cmds_RC | \
18135    archive_cmds_RC | \
18136    archive_expsym_cmds_RC | \
18137    module_cmds_RC | \
18138    module_expsym_cmds_RC | \
18139    old_archive_from_expsyms_cmds_RC | \
18140    export_symbols_cmds_RC | \
18141    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18142    postinstall_cmds | postuninstall_cmds | \
18143    old_postinstall_cmds | old_postuninstall_cmds | \
18144    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18145      # Double-quote double-evaled strings.
18146      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18147      ;;
18148    *)
18149      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18150      ;;
18151    esac
18152  done
18153
18154  case $lt_echo in
18155  *'\$0 --fallback-echo"')
18156    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18157    ;;
18158  esac
18159
18160cfgfile="$ofile"
18161
18162  cat <<__EOF__ >> "$cfgfile"
18163# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18164
18165# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18166
18167# Shell to use when invoking shell scripts.
18168SHELL=$lt_SHELL
18169
18170# Whether or not to build shared libraries.
18171build_libtool_libs=$enable_shared
18172
18173# Whether or not to build static libraries.
18174build_old_libs=$enable_static
18175
18176# Whether or not to add -lc for building shared libraries.
18177build_libtool_need_lc=$archive_cmds_need_lc_RC
18178
18179# Whether or not to disallow shared libs when runtime libs are static
18180allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18181
18182# Whether or not to optimize for fast installation.
18183fast_install=$enable_fast_install
18184
18185# The host system.
18186host_alias=$host_alias
18187host=$host
18188host_os=$host_os
18189
18190# The build system.
18191build_alias=$build_alias
18192build=$build
18193build_os=$build_os
18194
18195# An echo program that does not interpret backslashes.
18196echo=$lt_echo
18197
18198# The archiver.
18199AR=$lt_AR
18200AR_FLAGS=$lt_AR_FLAGS
18201
18202# A C compiler.
18203LTCC=$lt_LTCC
18204
18205# LTCC compiler flags.
18206LTCFLAGS=$lt_LTCFLAGS
18207
18208# A language-specific compiler.
18209CC=$lt_compiler_RC
18210
18211# Is the compiler the GNU C compiler?
18212with_gcc=$GCC_RC
18213
18214# An ERE matcher.
18215EGREP=$lt_EGREP
18216
18217# The linker used to build libraries.
18218LD=$lt_LD_RC
18219
18220# Whether we need hard or soft links.
18221LN_S=$lt_LN_S
18222
18223# A BSD-compatible nm program.
18224NM=$lt_NM
18225
18226# A symbol stripping program
18227STRIP=$lt_STRIP
18228
18229# Used to examine libraries when file_magic_cmd begins "file"
18230MAGIC_CMD=$MAGIC_CMD
18231
18232# Used on cygwin: DLL creation program.
18233DLLTOOL="$DLLTOOL"
18234
18235# Used on cygwin: object dumper.
18236OBJDUMP="$OBJDUMP"
18237
18238# Used on cygwin: assembler.
18239AS="$AS"
18240
18241# The name of the directory that contains temporary libtool files.
18242objdir=$objdir
18243
18244# How to create reloadable object files.
18245reload_flag=$lt_reload_flag
18246reload_cmds=$lt_reload_cmds
18247
18248# How to pass a linker flag through the compiler.
18249wl=$lt_lt_prog_compiler_wl_RC
18250
18251# Object file suffix (normally "o").
18252objext="$ac_objext"
18253
18254# Old archive suffix (normally "a").
18255libext="$libext"
18256
18257# Shared library suffix (normally ".so").
18258shrext_cmds='$shrext_cmds'
18259
18260# Executable file suffix (normally "").
18261exeext="$exeext"
18262
18263# Additional compiler flags for building library objects.
18264pic_flag=$lt_lt_prog_compiler_pic_RC
18265pic_mode=$pic_mode
18266
18267# What is the maximum length of a command?
18268max_cmd_len=$lt_cv_sys_max_cmd_len
18269
18270# Does compiler simultaneously support -c and -o options?
18271compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18272
18273# Must we lock files when doing compilation?
18274need_locks=$lt_need_locks
18275
18276# Do we need the lib prefix for modules?
18277need_lib_prefix=$need_lib_prefix
18278
18279# Do we need a version for libraries?
18280need_version=$need_version
18281
18282# Whether dlopen is supported.
18283dlopen_support=$enable_dlopen
18284
18285# Whether dlopen of programs is supported.
18286dlopen_self=$enable_dlopen_self
18287
18288# Whether dlopen of statically linked programs is supported.
18289dlopen_self_static=$enable_dlopen_self_static
18290
18291# Compiler flag to prevent dynamic linking.
18292link_static_flag=$lt_lt_prog_compiler_static_RC
18293
18294# Compiler flag to turn off builtin functions.
18295no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18296
18297# Compiler flag to allow reflexive dlopens.
18298export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18299
18300# Compiler flag to generate shared objects directly from archives.
18301whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18302
18303# Compiler flag to generate thread-safe objects.
18304thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18305
18306# Library versioning type.
18307version_type=$version_type
18308
18309# Format of library name prefix.
18310libname_spec=$lt_libname_spec
18311
18312# List of archive names.  First name is the real one, the rest are links.
18313# The last name is the one that the linker finds with -lNAME.
18314library_names_spec=$lt_library_names_spec
18315
18316# The coded name of the library, if different from the real name.
18317soname_spec=$lt_soname_spec
18318
18319# Commands used to build and install an old-style archive.
18320RANLIB=$lt_RANLIB
18321old_archive_cmds=$lt_old_archive_cmds_RC
18322old_postinstall_cmds=$lt_old_postinstall_cmds
18323old_postuninstall_cmds=$lt_old_postuninstall_cmds
18324
18325# Create an old-style archive from a shared archive.
18326old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18327
18328# Create a temporary old-style archive to link instead of a shared archive.
18329old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18330
18331# Commands used to build and install a shared archive.
18332archive_cmds=$lt_archive_cmds_RC
18333archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18334postinstall_cmds=$lt_postinstall_cmds
18335postuninstall_cmds=$lt_postuninstall_cmds
18336
18337# Commands used to build a loadable module (assumed same as above if empty)
18338module_cmds=$lt_module_cmds_RC
18339module_expsym_cmds=$lt_module_expsym_cmds_RC
18340
18341# Commands to strip libraries.
18342old_striplib=$lt_old_striplib
18343striplib=$lt_striplib
18344
18345# Dependencies to place before the objects being linked to create a
18346# shared library.
18347predep_objects=$lt_predep_objects_RC
18348
18349# Dependencies to place after the objects being linked to create a
18350# shared library.
18351postdep_objects=$lt_postdep_objects_RC
18352
18353# Dependencies to place before the objects being linked to create a
18354# shared library.
18355predeps=$lt_predeps_RC
18356
18357# Dependencies to place after the objects being linked to create a
18358# shared library.
18359postdeps=$lt_postdeps_RC
18360
18361# The library search path used internally by the compiler when linking
18362# a shared library.
18363compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18364
18365# Method to check whether dependent libraries are shared objects.
18366deplibs_check_method=$lt_deplibs_check_method
18367
18368# Command to use when deplibs_check_method == file_magic.
18369file_magic_cmd=$lt_file_magic_cmd
18370
18371# Flag that allows shared libraries with undefined symbols to be built.
18372allow_undefined_flag=$lt_allow_undefined_flag_RC
18373
18374# Flag that forces no undefined symbols.
18375no_undefined_flag=$lt_no_undefined_flag_RC
18376
18377# Commands used to finish a libtool library installation in a directory.
18378finish_cmds=$lt_finish_cmds
18379
18380# Same as above, but a single script fragment to be evaled but not shown.
18381finish_eval=$lt_finish_eval
18382
18383# Take the output of nm and produce a listing of raw symbols and C names.
18384global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18385
18386# Transform the output of nm in a proper C declaration
18387global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18388
18389# Transform the output of nm in a C name address pair
18390global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18391
18392# This is the shared library runtime path variable.
18393runpath_var=$runpath_var
18394
18395# This is the shared library path variable.
18396shlibpath_var=$shlibpath_var
18397
18398# Is shlibpath searched before the hard-coded library search path?
18399shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18400
18401# How to hardcode a shared library path into an executable.
18402hardcode_action=$hardcode_action_RC
18403
18404# Whether we should hardcode library paths into libraries.
18405hardcode_into_libs=$hardcode_into_libs
18406
18407# Flag to hardcode \$libdir into a binary during linking.
18408# This must work even if \$libdir does not exist.
18409hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18410
18411# If ld is used when linking, flag to hardcode \$libdir into
18412# a binary during linking. This must work even if \$libdir does
18413# not exist.
18414hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18415
18416# Whether we need a single -rpath flag with a separated argument.
18417hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18418
18419# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18420# resulting binary.
18421hardcode_direct=$hardcode_direct_RC
18422
18423# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18424# resulting binary.
18425hardcode_minus_L=$hardcode_minus_L_RC
18426
18427# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18428# the resulting binary.
18429hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18430
18431# Set to yes if building a shared library automatically hardcodes DIR into the library
18432# and all subsequent libraries and executables linked against it.
18433hardcode_automatic=$hardcode_automatic_RC
18434
18435# Variables whose values should be saved in libtool wrapper scripts and
18436# restored at relink time.
18437variables_saved_for_relink="$variables_saved_for_relink"
18438
18439# Whether libtool must link a program against all its dependency libraries.
18440link_all_deplibs=$link_all_deplibs_RC
18441
18442# Compile-time system search path for libraries
18443sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18444
18445# Run-time system search path for libraries
18446sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18447
18448# Fix the shell variable \$srcfile for the compiler.
18449fix_srcfile_path="$fix_srcfile_path_RC"
18450
18451# Set to yes if exported symbols are required.
18452always_export_symbols=$always_export_symbols_RC
18453
18454# The commands to list exported symbols.
18455export_symbols_cmds=$lt_export_symbols_cmds_RC
18456
18457# The commands to extract the exported symbol list from a shared archive.
18458extract_expsyms_cmds=$lt_extract_expsyms_cmds
18459
18460# Symbols that should not be listed in the preloaded symbols.
18461exclude_expsyms=$lt_exclude_expsyms_RC
18462
18463# Symbols that must always be exported.
18464include_expsyms=$lt_include_expsyms_RC
18465
18466# ### END LIBTOOL TAG CONFIG: $tagname
18467
18468__EOF__
18469
18470
18471else
18472  # If there is no Makefile yet, we rely on a make rule to execute
18473  # `config.status --recheck' to rerun these tests and create the
18474  # libtool script then.
18475  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18476  if test -f "$ltmain_in"; then
18477    test -f Makefile && make "$ltmain"
18478  fi
18479fi
18480
18481
18482ac_ext=c
18483ac_cpp='$CPP $CPPFLAGS'
18484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18486ac_compiler_gnu=$ac_cv_c_compiler_gnu
18487
18488CC="$lt_save_CC"
18489
18490	;;
18491
18492      *)
18493	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18494echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18495   { (exit 1); exit 1; }; }
18496	;;
18497      esac
18498
18499      # Append the new tag name to the list of available tags.
18500      if test -n "$tagname" ; then
18501      available_tags="$available_tags $tagname"
18502    fi
18503    fi
18504  done
18505  IFS="$lt_save_ifs"
18506
18507  # Now substitute the updated list of available tags.
18508  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18509    mv "${ofile}T" "$ofile"
18510    chmod +x "$ofile"
18511  else
18512    rm -f "${ofile}T"
18513    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18514echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18515   { (exit 1); exit 1; }; }
18516  fi
18517fi
18518
18519
18520
18521# This can be used to rebuild libtool when needed
18522LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18523
18524# Always use our own libtool.
18525LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18526
18527# Prevent multiple expansion
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553ac_ext=c
18554ac_cpp='$CPP $CPPFLAGS'
18555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18557ac_compiler_gnu=$ac_cv_c_compiler_gnu
18558if test -n "$ac_tool_prefix"; then
18559  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18560set dummy ${ac_tool_prefix}gcc; ac_word=$2
18561echo "$as_me:$LINENO: checking for $ac_word" >&5
18562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18563if test "${ac_cv_prog_CC+set}" = set; then
18564  echo $ECHO_N "(cached) $ECHO_C" >&6
18565else
18566  if test -n "$CC"; then
18567  ac_cv_prog_CC="$CC" # Let the user override the test.
18568else
18569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18570for as_dir in $PATH
18571do
18572  IFS=$as_save_IFS
18573  test -z "$as_dir" && as_dir=.
18574  for ac_exec_ext in '' $ac_executable_extensions; do
18575  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18576    ac_cv_prog_CC="${ac_tool_prefix}gcc"
18577    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18578    break 2
18579  fi
18580done
18581done
18582
18583fi
18584fi
18585CC=$ac_cv_prog_CC
18586if test -n "$CC"; then
18587  echo "$as_me:$LINENO: result: $CC" >&5
18588echo "${ECHO_T}$CC" >&6
18589else
18590  echo "$as_me:$LINENO: result: no" >&5
18591echo "${ECHO_T}no" >&6
18592fi
18593
18594fi
18595if test -z "$ac_cv_prog_CC"; then
18596  ac_ct_CC=$CC
18597  # Extract the first word of "gcc", so it can be a program name with args.
18598set dummy gcc; ac_word=$2
18599echo "$as_me:$LINENO: checking for $ac_word" >&5
18600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18601if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18602  echo $ECHO_N "(cached) $ECHO_C" >&6
18603else
18604  if test -n "$ac_ct_CC"; then
18605  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18606else
18607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18608for as_dir in $PATH
18609do
18610  IFS=$as_save_IFS
18611  test -z "$as_dir" && as_dir=.
18612  for ac_exec_ext in '' $ac_executable_extensions; do
18613  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18614    ac_cv_prog_ac_ct_CC="gcc"
18615    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18616    break 2
18617  fi
18618done
18619done
18620
18621fi
18622fi
18623ac_ct_CC=$ac_cv_prog_ac_ct_CC
18624if test -n "$ac_ct_CC"; then
18625  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18626echo "${ECHO_T}$ac_ct_CC" >&6
18627else
18628  echo "$as_me:$LINENO: result: no" >&5
18629echo "${ECHO_T}no" >&6
18630fi
18631
18632  CC=$ac_ct_CC
18633else
18634  CC="$ac_cv_prog_CC"
18635fi
18636
18637if test -z "$CC"; then
18638  if test -n "$ac_tool_prefix"; then
18639  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18640set dummy ${ac_tool_prefix}cc; ac_word=$2
18641echo "$as_me:$LINENO: checking for $ac_word" >&5
18642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18643if test "${ac_cv_prog_CC+set}" = set; then
18644  echo $ECHO_N "(cached) $ECHO_C" >&6
18645else
18646  if test -n "$CC"; then
18647  ac_cv_prog_CC="$CC" # Let the user override the test.
18648else
18649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650for as_dir in $PATH
18651do
18652  IFS=$as_save_IFS
18653  test -z "$as_dir" && as_dir=.
18654  for ac_exec_ext in '' $ac_executable_extensions; do
18655  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18656    ac_cv_prog_CC="${ac_tool_prefix}cc"
18657    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18658    break 2
18659  fi
18660done
18661done
18662
18663fi
18664fi
18665CC=$ac_cv_prog_CC
18666if test -n "$CC"; then
18667  echo "$as_me:$LINENO: result: $CC" >&5
18668echo "${ECHO_T}$CC" >&6
18669else
18670  echo "$as_me:$LINENO: result: no" >&5
18671echo "${ECHO_T}no" >&6
18672fi
18673
18674fi
18675if test -z "$ac_cv_prog_CC"; then
18676  ac_ct_CC=$CC
18677  # Extract the first word of "cc", so it can be a program name with args.
18678set dummy cc; ac_word=$2
18679echo "$as_me:$LINENO: checking for $ac_word" >&5
18680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18681if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18682  echo $ECHO_N "(cached) $ECHO_C" >&6
18683else
18684  if test -n "$ac_ct_CC"; then
18685  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18686else
18687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18688for as_dir in $PATH
18689do
18690  IFS=$as_save_IFS
18691  test -z "$as_dir" && as_dir=.
18692  for ac_exec_ext in '' $ac_executable_extensions; do
18693  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18694    ac_cv_prog_ac_ct_CC="cc"
18695    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18696    break 2
18697  fi
18698done
18699done
18700
18701fi
18702fi
18703ac_ct_CC=$ac_cv_prog_ac_ct_CC
18704if test -n "$ac_ct_CC"; then
18705  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18706echo "${ECHO_T}$ac_ct_CC" >&6
18707else
18708  echo "$as_me:$LINENO: result: no" >&5
18709echo "${ECHO_T}no" >&6
18710fi
18711
18712  CC=$ac_ct_CC
18713else
18714  CC="$ac_cv_prog_CC"
18715fi
18716
18717fi
18718if test -z "$CC"; then
18719  # Extract the first word of "cc", so it can be a program name with args.
18720set dummy cc; ac_word=$2
18721echo "$as_me:$LINENO: checking for $ac_word" >&5
18722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18723if test "${ac_cv_prog_CC+set}" = set; then
18724  echo $ECHO_N "(cached) $ECHO_C" >&6
18725else
18726  if test -n "$CC"; then
18727  ac_cv_prog_CC="$CC" # Let the user override the test.
18728else
18729  ac_prog_rejected=no
18730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18731for as_dir in $PATH
18732do
18733  IFS=$as_save_IFS
18734  test -z "$as_dir" && as_dir=.
18735  for ac_exec_ext in '' $ac_executable_extensions; do
18736  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18737    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18738       ac_prog_rejected=yes
18739       continue
18740     fi
18741    ac_cv_prog_CC="cc"
18742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18743    break 2
18744  fi
18745done
18746done
18747
18748if test $ac_prog_rejected = yes; then
18749  # We found a bogon in the path, so make sure we never use it.
18750  set dummy $ac_cv_prog_CC
18751  shift
18752  if test $# != 0; then
18753    # We chose a different compiler from the bogus one.
18754    # However, it has the same basename, so the bogon will be chosen
18755    # first if we set CC to just the basename; use the full file name.
18756    shift
18757    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18758  fi
18759fi
18760fi
18761fi
18762CC=$ac_cv_prog_CC
18763if test -n "$CC"; then
18764  echo "$as_me:$LINENO: result: $CC" >&5
18765echo "${ECHO_T}$CC" >&6
18766else
18767  echo "$as_me:$LINENO: result: no" >&5
18768echo "${ECHO_T}no" >&6
18769fi
18770
18771fi
18772if test -z "$CC"; then
18773  if test -n "$ac_tool_prefix"; then
18774  for ac_prog in cl
18775  do
18776    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18777set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18778echo "$as_me:$LINENO: checking for $ac_word" >&5
18779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18780if test "${ac_cv_prog_CC+set}" = set; then
18781  echo $ECHO_N "(cached) $ECHO_C" >&6
18782else
18783  if test -n "$CC"; then
18784  ac_cv_prog_CC="$CC" # Let the user override the test.
18785else
18786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18787for as_dir in $PATH
18788do
18789  IFS=$as_save_IFS
18790  test -z "$as_dir" && as_dir=.
18791  for ac_exec_ext in '' $ac_executable_extensions; do
18792  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18793    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18795    break 2
18796  fi
18797done
18798done
18799
18800fi
18801fi
18802CC=$ac_cv_prog_CC
18803if test -n "$CC"; then
18804  echo "$as_me:$LINENO: result: $CC" >&5
18805echo "${ECHO_T}$CC" >&6
18806else
18807  echo "$as_me:$LINENO: result: no" >&5
18808echo "${ECHO_T}no" >&6
18809fi
18810
18811    test -n "$CC" && break
18812  done
18813fi
18814if test -z "$CC"; then
18815  ac_ct_CC=$CC
18816  for ac_prog in cl
18817do
18818  # Extract the first word of "$ac_prog", so it can be a program name with args.
18819set dummy $ac_prog; ac_word=$2
18820echo "$as_me:$LINENO: checking for $ac_word" >&5
18821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18823  echo $ECHO_N "(cached) $ECHO_C" >&6
18824else
18825  if test -n "$ac_ct_CC"; then
18826  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18827else
18828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18829for as_dir in $PATH
18830do
18831  IFS=$as_save_IFS
18832  test -z "$as_dir" && as_dir=.
18833  for ac_exec_ext in '' $ac_executable_extensions; do
18834  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18835    ac_cv_prog_ac_ct_CC="$ac_prog"
18836    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18837    break 2
18838  fi
18839done
18840done
18841
18842fi
18843fi
18844ac_ct_CC=$ac_cv_prog_ac_ct_CC
18845if test -n "$ac_ct_CC"; then
18846  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18847echo "${ECHO_T}$ac_ct_CC" >&6
18848else
18849  echo "$as_me:$LINENO: result: no" >&5
18850echo "${ECHO_T}no" >&6
18851fi
18852
18853  test -n "$ac_ct_CC" && break
18854done
18855
18856  CC=$ac_ct_CC
18857fi
18858
18859fi
18860
18861
18862test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18863See \`config.log' for more details." >&5
18864echo "$as_me: error: no acceptable C compiler found in \$PATH
18865See \`config.log' for more details." >&2;}
18866   { (exit 1); exit 1; }; }
18867
18868# Provide some information about the compiler.
18869echo "$as_me:$LINENO:" \
18870     "checking for C compiler version" >&5
18871ac_compiler=`set X $ac_compile; echo $2`
18872{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18873  (eval $ac_compiler --version </dev/null >&5) 2>&5
18874  ac_status=$?
18875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876  (exit $ac_status); }
18877{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18878  (eval $ac_compiler -v </dev/null >&5) 2>&5
18879  ac_status=$?
18880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881  (exit $ac_status); }
18882{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18883  (eval $ac_compiler -V </dev/null >&5) 2>&5
18884  ac_status=$?
18885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886  (exit $ac_status); }
18887
18888echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
18889echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18890if test "${ac_cv_c_compiler_gnu+set}" = set; then
18891  echo $ECHO_N "(cached) $ECHO_C" >&6
18892else
18893  cat >conftest.$ac_ext <<_ACEOF
18894/* confdefs.h.  */
18895_ACEOF
18896cat confdefs.h >>conftest.$ac_ext
18897cat >>conftest.$ac_ext <<_ACEOF
18898/* end confdefs.h.  */
18899
18900int
18901main ()
18902{
18903#ifndef __GNUC__
18904       choke me
18905#endif
18906
18907  ;
18908  return 0;
18909}
18910_ACEOF
18911rm -f conftest.$ac_objext
18912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18913  (eval $ac_compile) 2>conftest.er1
18914  ac_status=$?
18915  grep -v '^ *+' conftest.er1 >conftest.err
18916  rm -f conftest.er1
18917  cat conftest.err >&5
18918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919  (exit $ac_status); } &&
18920	 { ac_try='test -z "$ac_c_werror_flag"
18921			 || test ! -s conftest.err'
18922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923  (eval $ac_try) 2>&5
18924  ac_status=$?
18925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926  (exit $ac_status); }; } &&
18927	 { ac_try='test -s conftest.$ac_objext'
18928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929  (eval $ac_try) 2>&5
18930  ac_status=$?
18931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932  (exit $ac_status); }; }; then
18933  ac_compiler_gnu=yes
18934else
18935  echo "$as_me: failed program was:" >&5
18936sed 's/^/| /' conftest.$ac_ext >&5
18937
18938ac_compiler_gnu=no
18939fi
18940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18941ac_cv_c_compiler_gnu=$ac_compiler_gnu
18942
18943fi
18944echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
18945echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
18946GCC=`test $ac_compiler_gnu = yes && echo yes`
18947ac_test_CFLAGS=${CFLAGS+set}
18948ac_save_CFLAGS=$CFLAGS
18949CFLAGS="-g"
18950echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18951echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
18952if test "${ac_cv_prog_cc_g+set}" = set; then
18953  echo $ECHO_N "(cached) $ECHO_C" >&6
18954else
18955  cat >conftest.$ac_ext <<_ACEOF
18956/* confdefs.h.  */
18957_ACEOF
18958cat confdefs.h >>conftest.$ac_ext
18959cat >>conftest.$ac_ext <<_ACEOF
18960/* end confdefs.h.  */
18961
18962int
18963main ()
18964{
18965
18966  ;
18967  return 0;
18968}
18969_ACEOF
18970rm -f conftest.$ac_objext
18971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18972  (eval $ac_compile) 2>conftest.er1
18973  ac_status=$?
18974  grep -v '^ *+' conftest.er1 >conftest.err
18975  rm -f conftest.er1
18976  cat conftest.err >&5
18977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978  (exit $ac_status); } &&
18979	 { ac_try='test -z "$ac_c_werror_flag"
18980			 || test ! -s conftest.err'
18981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982  (eval $ac_try) 2>&5
18983  ac_status=$?
18984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985  (exit $ac_status); }; } &&
18986	 { ac_try='test -s conftest.$ac_objext'
18987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988  (eval $ac_try) 2>&5
18989  ac_status=$?
18990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991  (exit $ac_status); }; }; then
18992  ac_cv_prog_cc_g=yes
18993else
18994  echo "$as_me: failed program was:" >&5
18995sed 's/^/| /' conftest.$ac_ext >&5
18996
18997ac_cv_prog_cc_g=no
18998fi
18999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19000fi
19001echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19002echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19003if test "$ac_test_CFLAGS" = set; then
19004  CFLAGS=$ac_save_CFLAGS
19005elif test $ac_cv_prog_cc_g = yes; then
19006  if test "$GCC" = yes; then
19007    CFLAGS="-g -O2"
19008  else
19009    CFLAGS="-g"
19010  fi
19011else
19012  if test "$GCC" = yes; then
19013    CFLAGS="-O2"
19014  else
19015    CFLAGS=
19016  fi
19017fi
19018echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19019echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19020if test "${ac_cv_prog_cc_stdc+set}" = set; then
19021  echo $ECHO_N "(cached) $ECHO_C" >&6
19022else
19023  ac_cv_prog_cc_stdc=no
19024ac_save_CC=$CC
19025cat >conftest.$ac_ext <<_ACEOF
19026/* confdefs.h.  */
19027_ACEOF
19028cat confdefs.h >>conftest.$ac_ext
19029cat >>conftest.$ac_ext <<_ACEOF
19030/* end confdefs.h.  */
19031#include <stdarg.h>
19032#include <stdio.h>
19033#include <sys/types.h>
19034#include <sys/stat.h>
19035/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19036struct buf { int x; };
19037FILE * (*rcsopen) (struct buf *, struct stat *, int);
19038static char *e (p, i)
19039     char **p;
19040     int i;
19041{
19042  return p[i];
19043}
19044static char *f (char * (*g) (char **, int), char **p, ...)
19045{
19046  char *s;
19047  va_list v;
19048  va_start (v,p);
19049  s = g (p, va_arg (v,int));
19050  va_end (v);
19051  return s;
19052}
19053
19054/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19055   function prototypes and stuff, but not '\xHH' hex character constants.
19056   These don't provoke an error unfortunately, instead are silently treated
19057   as 'x'.  The following induces an error, until -std1 is added to get
19058   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19059   array size at least.  It's necessary to write '\x00'==0 to get something
19060   that's true only with -std1.  */
19061int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19062
19063int test (int i, double x);
19064struct s1 {int (*f) (int a);};
19065struct s2 {int (*f) (double a);};
19066int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19067int argc;
19068char **argv;
19069int
19070main ()
19071{
19072return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19073  ;
19074  return 0;
19075}
19076_ACEOF
19077# Don't try gcc -ansi; that turns off useful extensions and
19078# breaks some systems' header files.
19079# AIX			-qlanglvl=ansi
19080# Ultrix and OSF/1	-std1
19081# HP-UX 10.20 and later	-Ae
19082# HP-UX older versions	-Aa -D_HPUX_SOURCE
19083# SVR4			-Xc -D__EXTENSIONS__
19084for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19085do
19086  CC="$ac_save_CC $ac_arg"
19087  rm -f conftest.$ac_objext
19088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19089  (eval $ac_compile) 2>conftest.er1
19090  ac_status=$?
19091  grep -v '^ *+' conftest.er1 >conftest.err
19092  rm -f conftest.er1
19093  cat conftest.err >&5
19094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095  (exit $ac_status); } &&
19096	 { ac_try='test -z "$ac_c_werror_flag"
19097			 || test ! -s conftest.err'
19098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099  (eval $ac_try) 2>&5
19100  ac_status=$?
19101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102  (exit $ac_status); }; } &&
19103	 { ac_try='test -s conftest.$ac_objext'
19104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105  (eval $ac_try) 2>&5
19106  ac_status=$?
19107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108  (exit $ac_status); }; }; then
19109  ac_cv_prog_cc_stdc=$ac_arg
19110break
19111else
19112  echo "$as_me: failed program was:" >&5
19113sed 's/^/| /' conftest.$ac_ext >&5
19114
19115fi
19116rm -f conftest.err conftest.$ac_objext
19117done
19118rm -f conftest.$ac_ext conftest.$ac_objext
19119CC=$ac_save_CC
19120
19121fi
19122
19123case "x$ac_cv_prog_cc_stdc" in
19124  x|xno)
19125    echo "$as_me:$LINENO: result: none needed" >&5
19126echo "${ECHO_T}none needed" >&6 ;;
19127  *)
19128    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19129echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19130    CC="$CC $ac_cv_prog_cc_stdc" ;;
19131esac
19132
19133# Some people use a C++ compiler to compile C.  Since we use `exit',
19134# in C++ we need to declare it.  In case someone uses the same compiler
19135# for both compiling C and C++ we need to have the C++ compiler decide
19136# the declaration of exit, since it's the most demanding environment.
19137cat >conftest.$ac_ext <<_ACEOF
19138#ifndef __cplusplus
19139  choke me
19140#endif
19141_ACEOF
19142rm -f conftest.$ac_objext
19143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19144  (eval $ac_compile) 2>conftest.er1
19145  ac_status=$?
19146  grep -v '^ *+' conftest.er1 >conftest.err
19147  rm -f conftest.er1
19148  cat conftest.err >&5
19149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150  (exit $ac_status); } &&
19151	 { ac_try='test -z "$ac_c_werror_flag"
19152			 || test ! -s conftest.err'
19153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154  (eval $ac_try) 2>&5
19155  ac_status=$?
19156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157  (exit $ac_status); }; } &&
19158	 { ac_try='test -s conftest.$ac_objext'
19159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160  (eval $ac_try) 2>&5
19161  ac_status=$?
19162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163  (exit $ac_status); }; }; then
19164  for ac_declaration in \
19165   '' \
19166   'extern "C" void std::exit (int) throw (); using std::exit;' \
19167   'extern "C" void std::exit (int); using std::exit;' \
19168   'extern "C" void exit (int) throw ();' \
19169   'extern "C" void exit (int);' \
19170   'void exit (int);'
19171do
19172  cat >conftest.$ac_ext <<_ACEOF
19173/* confdefs.h.  */
19174_ACEOF
19175cat confdefs.h >>conftest.$ac_ext
19176cat >>conftest.$ac_ext <<_ACEOF
19177/* end confdefs.h.  */
19178$ac_declaration
19179#include <stdlib.h>
19180int
19181main ()
19182{
19183exit (42);
19184  ;
19185  return 0;
19186}
19187_ACEOF
19188rm -f conftest.$ac_objext
19189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19190  (eval $ac_compile) 2>conftest.er1
19191  ac_status=$?
19192  grep -v '^ *+' conftest.er1 >conftest.err
19193  rm -f conftest.er1
19194  cat conftest.err >&5
19195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196  (exit $ac_status); } &&
19197	 { ac_try='test -z "$ac_c_werror_flag"
19198			 || test ! -s conftest.err'
19199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200  (eval $ac_try) 2>&5
19201  ac_status=$?
19202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203  (exit $ac_status); }; } &&
19204	 { ac_try='test -s conftest.$ac_objext'
19205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206  (eval $ac_try) 2>&5
19207  ac_status=$?
19208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209  (exit $ac_status); }; }; then
19210  :
19211else
19212  echo "$as_me: failed program was:" >&5
19213sed 's/^/| /' conftest.$ac_ext >&5
19214
19215continue
19216fi
19217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19218  cat >conftest.$ac_ext <<_ACEOF
19219/* confdefs.h.  */
19220_ACEOF
19221cat confdefs.h >>conftest.$ac_ext
19222cat >>conftest.$ac_ext <<_ACEOF
19223/* end confdefs.h.  */
19224$ac_declaration
19225int
19226main ()
19227{
19228exit (42);
19229  ;
19230  return 0;
19231}
19232_ACEOF
19233rm -f conftest.$ac_objext
19234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19235  (eval $ac_compile) 2>conftest.er1
19236  ac_status=$?
19237  grep -v '^ *+' conftest.er1 >conftest.err
19238  rm -f conftest.er1
19239  cat conftest.err >&5
19240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241  (exit $ac_status); } &&
19242	 { ac_try='test -z "$ac_c_werror_flag"
19243			 || test ! -s conftest.err'
19244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245  (eval $ac_try) 2>&5
19246  ac_status=$?
19247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248  (exit $ac_status); }; } &&
19249	 { ac_try='test -s conftest.$ac_objext'
19250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251  (eval $ac_try) 2>&5
19252  ac_status=$?
19253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254  (exit $ac_status); }; }; then
19255  break
19256else
19257  echo "$as_me: failed program was:" >&5
19258sed 's/^/| /' conftest.$ac_ext >&5
19259
19260fi
19261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19262done
19263rm -f conftest*
19264if test -n "$ac_declaration"; then
19265  echo '#ifdef __cplusplus' >>confdefs.h
19266  echo $ac_declaration      >>confdefs.h
19267  echo '#endif'             >>confdefs.h
19268fi
19269
19270else
19271  echo "$as_me: failed program was:" >&5
19272sed 's/^/| /' conftest.$ac_ext >&5
19273
19274fi
19275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19276ac_ext=c
19277ac_cpp='$CPP $CPPFLAGS'
19278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19280ac_compiler_gnu=$ac_cv_c_compiler_gnu
19281
19282# Find a good install program.  We prefer a C program (faster),
19283# so one script is as good as another.  But avoid the broken or
19284# incompatible versions:
19285# SysV /etc/install, /usr/sbin/install
19286# SunOS /usr/etc/install
19287# IRIX /sbin/install
19288# AIX /bin/install
19289# AmigaOS /C/install, which installs bootblocks on floppy discs
19290# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19291# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19292# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19293# OS/2's system install, which has a completely different semantic
19294# ./install, which can be erroneously created by make from ./install.sh.
19295echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19296echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19297if test -z "$INSTALL"; then
19298if test "${ac_cv_path_install+set}" = set; then
19299  echo $ECHO_N "(cached) $ECHO_C" >&6
19300else
19301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19302for as_dir in $PATH
19303do
19304  IFS=$as_save_IFS
19305  test -z "$as_dir" && as_dir=.
19306  # Account for people who put trailing slashes in PATH elements.
19307case $as_dir/ in
19308  ./ | .// | /cC/* | \
19309  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19310  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19311  /usr/ucb/* ) ;;
19312  *)
19313    # OSF1 and SCO ODT 3.0 have their own names for install.
19314    # Don't use installbsd from OSF since it installs stuff as root
19315    # by default.
19316    for ac_prog in ginstall scoinst install; do
19317      for ac_exec_ext in '' $ac_executable_extensions; do
19318	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19319	  if test $ac_prog = install &&
19320	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19321	    # AIX install.  It has an incompatible calling convention.
19322	    :
19323	  elif test $ac_prog = install &&
19324	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19325	    # program-specific install script used by HP pwplus--don't use.
19326	    :
19327	  else
19328	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19329	    break 3
19330	  fi
19331	fi
19332      done
19333    done
19334    ;;
19335esac
19336done
19337
19338
19339fi
19340  if test "${ac_cv_path_install+set}" = set; then
19341    INSTALL=$ac_cv_path_install
19342  else
19343    # As a last resort, use the slow shell script.  We don't cache a
19344    # path for INSTALL within a source directory, because that will
19345    # break other packages using the cache if that directory is
19346    # removed, or if the path is relative.
19347    INSTALL=$ac_install_sh
19348  fi
19349fi
19350echo "$as_me:$LINENO: result: $INSTALL" >&5
19351echo "${ECHO_T}$INSTALL" >&6
19352
19353# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19354# It thinks the first close brace ends the variable substitution.
19355test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19356
19357test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19358
19359test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19360
19361
19362if test "$GCC" = yes ; then
19363                        OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
19364    CFLAGS="$OLDCFLAGS -fexceptions"
19365    echo "$as_me:$LINENO: checking whether $CC accepts -fexceptions" >&5
19366echo $ECHO_N "checking whether $CC accepts -fexceptions... $ECHO_C" >&6
19367    cat >conftest.$ac_ext <<_ACEOF
19368/* confdefs.h.  */
19369_ACEOF
19370cat confdefs.h >>conftest.$ac_ext
19371cat >>conftest.$ac_ext <<_ACEOF
19372/* end confdefs.h.  */
19373
19374int
19375main ()
19376{
19377
19378  ;
19379  return 0;
19380}
19381_ACEOF
19382rm -f conftest.$ac_objext conftest$ac_exeext
19383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19384  (eval $ac_link) 2>conftest.er1
19385  ac_status=$?
19386  grep -v '^ *+' conftest.er1 >conftest.err
19387  rm -f conftest.er1
19388  cat conftest.err >&5
19389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390  (exit $ac_status); } &&
19391	 { ac_try='test -z "$ac_c_werror_flag"
19392			 || test ! -s conftest.err'
19393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394  (eval $ac_try) 2>&5
19395  ac_status=$?
19396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397  (exit $ac_status); }; } &&
19398	 { ac_try='test -s conftest$ac_exeext'
19399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400  (eval $ac_try) 2>&5
19401  ac_status=$?
19402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403  (exit $ac_status); }; }; then
19404  echo "$as_me:$LINENO: result: yes" >&5
19405echo "${ECHO_T}yes" >&6
19406else
19407  echo "$as_me: failed program was:" >&5
19408sed 's/^/| /' conftest.$ac_ext >&5
19409
19410echo "$as_me:$LINENO: result: no" >&5
19411echo "${ECHO_T}no" >&6; CFLAGS="$OLDCFLAGS"
19412fi
19413rm -f conftest.err conftest.$ac_objext \
19414      conftest$ac_exeext conftest.$ac_ext
19415    CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
19416fi
19417
19418echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19419echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19420if test "${ac_cv_header_stdc+set}" = set; then
19421  echo $ECHO_N "(cached) $ECHO_C" >&6
19422else
19423  cat >conftest.$ac_ext <<_ACEOF
19424/* confdefs.h.  */
19425_ACEOF
19426cat confdefs.h >>conftest.$ac_ext
19427cat >>conftest.$ac_ext <<_ACEOF
19428/* end confdefs.h.  */
19429#include <stdlib.h>
19430#include <stdarg.h>
19431#include <string.h>
19432#include <float.h>
19433
19434int
19435main ()
19436{
19437
19438  ;
19439  return 0;
19440}
19441_ACEOF
19442rm -f conftest.$ac_objext
19443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444  (eval $ac_compile) 2>conftest.er1
19445  ac_status=$?
19446  grep -v '^ *+' conftest.er1 >conftest.err
19447  rm -f conftest.er1
19448  cat conftest.err >&5
19449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450  (exit $ac_status); } &&
19451	 { ac_try='test -z "$ac_c_werror_flag"
19452			 || test ! -s conftest.err'
19453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454  (eval $ac_try) 2>&5
19455  ac_status=$?
19456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457  (exit $ac_status); }; } &&
19458	 { ac_try='test -s conftest.$ac_objext'
19459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460  (eval $ac_try) 2>&5
19461  ac_status=$?
19462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463  (exit $ac_status); }; }; then
19464  ac_cv_header_stdc=yes
19465else
19466  echo "$as_me: failed program was:" >&5
19467sed 's/^/| /' conftest.$ac_ext >&5
19468
19469ac_cv_header_stdc=no
19470fi
19471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19472
19473if test $ac_cv_header_stdc = yes; then
19474  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19475  cat >conftest.$ac_ext <<_ACEOF
19476/* confdefs.h.  */
19477_ACEOF
19478cat confdefs.h >>conftest.$ac_ext
19479cat >>conftest.$ac_ext <<_ACEOF
19480/* end confdefs.h.  */
19481#include <string.h>
19482
19483_ACEOF
19484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19485  $EGREP "memchr" >/dev/null 2>&1; then
19486  :
19487else
19488  ac_cv_header_stdc=no
19489fi
19490rm -f conftest*
19491
19492fi
19493
19494if test $ac_cv_header_stdc = yes; then
19495  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19496  cat >conftest.$ac_ext <<_ACEOF
19497/* confdefs.h.  */
19498_ACEOF
19499cat confdefs.h >>conftest.$ac_ext
19500cat >>conftest.$ac_ext <<_ACEOF
19501/* end confdefs.h.  */
19502#include <stdlib.h>
19503
19504_ACEOF
19505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19506  $EGREP "free" >/dev/null 2>&1; then
19507  :
19508else
19509  ac_cv_header_stdc=no
19510fi
19511rm -f conftest*
19512
19513fi
19514
19515if test $ac_cv_header_stdc = yes; then
19516  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19517  if test "$cross_compiling" = yes; then
19518  :
19519else
19520  cat >conftest.$ac_ext <<_ACEOF
19521/* confdefs.h.  */
19522_ACEOF
19523cat confdefs.h >>conftest.$ac_ext
19524cat >>conftest.$ac_ext <<_ACEOF
19525/* end confdefs.h.  */
19526#include <ctype.h>
19527#if ((' ' & 0x0FF) == 0x020)
19528# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19529# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19530#else
19531# define ISLOWER(c) \
19532		   (('a' <= (c) && (c) <= 'i') \
19533		     || ('j' <= (c) && (c) <= 'r') \
19534		     || ('s' <= (c) && (c) <= 'z'))
19535# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19536#endif
19537
19538#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19539int
19540main ()
19541{
19542  int i;
19543  for (i = 0; i < 256; i++)
19544    if (XOR (islower (i), ISLOWER (i))
19545	|| toupper (i) != TOUPPER (i))
19546      exit(2);
19547  exit (0);
19548}
19549_ACEOF
19550rm -f conftest$ac_exeext
19551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19552  (eval $ac_link) 2>&5
19553  ac_status=$?
19554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557  (eval $ac_try) 2>&5
19558  ac_status=$?
19559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560  (exit $ac_status); }; }; then
19561  :
19562else
19563  echo "$as_me: program exited with status $ac_status" >&5
19564echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567( exit $ac_status )
19568ac_cv_header_stdc=no
19569fi
19570rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19571fi
19572fi
19573fi
19574echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19575echo "${ECHO_T}$ac_cv_header_stdc" >&6
19576if test $ac_cv_header_stdc = yes; then
19577
19578cat >>confdefs.h <<\_ACEOF
19579#define STDC_HEADERS 1
19580_ACEOF
19581
19582fi
19583
19584
19585
19586echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19587echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19588if test "${ac_cv_c_bigendian+set}" = set; then
19589  echo $ECHO_N "(cached) $ECHO_C" >&6
19590else
19591  ac_cv_c_bigendian=unknown
19592# See if sys/param.h defines the BYTE_ORDER macro.
19593cat >conftest.$ac_ext <<_ACEOF
19594/* confdefs.h.  */
19595_ACEOF
19596cat confdefs.h >>conftest.$ac_ext
19597cat >>conftest.$ac_ext <<_ACEOF
19598/* end confdefs.h.  */
19599#include <sys/types.h>
19600#include <sys/param.h>
19601int
19602main ()
19603{
19604
19605#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19606 bogus endian macros
19607#endif
19608  ;
19609  return 0;
19610}
19611_ACEOF
19612rm -f conftest.$ac_objext
19613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19614  (eval $ac_compile) 2>conftest.er1
19615  ac_status=$?
19616  grep -v '^ *+' conftest.er1 >conftest.err
19617  rm -f conftest.er1
19618  cat conftest.err >&5
19619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620  (exit $ac_status); } &&
19621	 { ac_try='test -z "$ac_c_werror_flag"
19622			 || test ! -s conftest.err'
19623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624  (eval $ac_try) 2>&5
19625  ac_status=$?
19626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627  (exit $ac_status); }; } &&
19628	 { ac_try='test -s conftest.$ac_objext'
19629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630  (eval $ac_try) 2>&5
19631  ac_status=$?
19632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633  (exit $ac_status); }; }; then
19634  # It does; now see whether it defined to BIG_ENDIAN or not.
19635cat >conftest.$ac_ext <<_ACEOF
19636/* confdefs.h.  */
19637_ACEOF
19638cat confdefs.h >>conftest.$ac_ext
19639cat >>conftest.$ac_ext <<_ACEOF
19640/* end confdefs.h.  */
19641#include <sys/types.h>
19642#include <sys/param.h>
19643int
19644main ()
19645{
19646
19647#if BYTE_ORDER != BIG_ENDIAN
19648 not big endian
19649#endif
19650  ;
19651  return 0;
19652}
19653_ACEOF
19654rm -f conftest.$ac_objext
19655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19656  (eval $ac_compile) 2>conftest.er1
19657  ac_status=$?
19658  grep -v '^ *+' conftest.er1 >conftest.err
19659  rm -f conftest.er1
19660  cat conftest.err >&5
19661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662  (exit $ac_status); } &&
19663	 { ac_try='test -z "$ac_c_werror_flag"
19664			 || test ! -s conftest.err'
19665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19666  (eval $ac_try) 2>&5
19667  ac_status=$?
19668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669  (exit $ac_status); }; } &&
19670	 { ac_try='test -s conftest.$ac_objext'
19671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672  (eval $ac_try) 2>&5
19673  ac_status=$?
19674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675  (exit $ac_status); }; }; then
19676  ac_cv_c_bigendian=yes
19677else
19678  echo "$as_me: failed program was:" >&5
19679sed 's/^/| /' conftest.$ac_ext >&5
19680
19681ac_cv_c_bigendian=no
19682fi
19683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19684else
19685  echo "$as_me: failed program was:" >&5
19686sed 's/^/| /' conftest.$ac_ext >&5
19687
19688fi
19689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19690if test $ac_cv_c_bigendian = unknown; then
19691if test "$cross_compiling" = yes; then
19692   echo $ac_n "cross-compiling... " 2>&6
19693else
19694  cat >conftest.$ac_ext <<_ACEOF
19695/* confdefs.h.  */
19696_ACEOF
19697cat confdefs.h >>conftest.$ac_ext
19698cat >>conftest.$ac_ext <<_ACEOF
19699/* end confdefs.h.  */
19700main () {
19701  /* Are we little or big endian?  From Harbison&Steele.  */
19702  union
19703  {
19704    long l;
19705    char c[sizeof (long)];
19706  } u;
19707  u.l = 1;
19708  exit (u.c[sizeof (long) - 1] == 1);
19709}
19710_ACEOF
19711rm -f conftest$ac_exeext
19712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19713  (eval $ac_link) 2>&5
19714  ac_status=$?
19715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718  (eval $ac_try) 2>&5
19719  ac_status=$?
19720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721  (exit $ac_status); }; }; then
19722  ac_cv_c_bigendian=no
19723else
19724  echo "$as_me: program exited with status $ac_status" >&5
19725echo "$as_me: failed program was:" >&5
19726sed 's/^/| /' conftest.$ac_ext >&5
19727
19728( exit $ac_status )
19729ac_cv_c_bigendian=yes
19730fi
19731rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19732fi
19733fi
19734fi
19735echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19736echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19737if test $ac_cv_c_bigendian = unknown; then
19738echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
19739echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
19740
19741cat >conftest.c <<EOF
19742short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19743short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19744void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
19745short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19746short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19747void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
19748int main() { _ascii (); _ebcdic (); return 0; }
19749EOF
19750 if test -f conftest.c ; then
19751     if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
19752        if test `grep -l BIGenDianSyS conftest.o` ; then
19753           echo $ac_n ' big endian probe OK, ' 1>&6
19754           ac_cv_c_bigendian=yes
19755        fi
19756        if test `grep -l LiTTleEnDian conftest.o` ; then
19757           echo $ac_n ' little endian probe OK, ' 1>&6
19758           if test $ac_cv_c_bigendian = yes ; then
19759            ac_cv_c_bigendian=unknown;
19760           else
19761            ac_cv_c_bigendian=no
19762           fi
19763        fi
19764        echo $ac_n 'guessing bigendian ...  ' >&6
19765     fi
19766  fi
19767echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19768echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19769fi
19770if test $ac_cv_c_bigendian = yes; then
19771
19772cat >>confdefs.h <<\_ACEOF
19773#define WORDS_BIGENDIAN 1
19774_ACEOF
19775
19776  BYTEORDER=4321
19777else
19778  BYTEORDER=1234
19779fi
19780
19781cat >>confdefs.h <<_ACEOF
19782#define BYTEORDER $BYTEORDER
19783_ACEOF
19784
19785if test $ac_cv_c_bigendian = unknown; then
19786  { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
19787echo "$as_me: error: unknown endianess - sorry" >&2;}
19788   { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
19789fi
19790
19791
19792echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19793echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19794if test "${ac_cv_c_const+set}" = set; then
19795  echo $ECHO_N "(cached) $ECHO_C" >&6
19796else
19797  cat >conftest.$ac_ext <<_ACEOF
19798/* confdefs.h.  */
19799_ACEOF
19800cat confdefs.h >>conftest.$ac_ext
19801cat >>conftest.$ac_ext <<_ACEOF
19802/* end confdefs.h.  */
19803
19804int
19805main ()
19806{
19807/* FIXME: Include the comments suggested by Paul. */
19808#ifndef __cplusplus
19809  /* Ultrix mips cc rejects this.  */
19810  typedef int charset[2];
19811  const charset x;
19812  /* SunOS 4.1.1 cc rejects this.  */
19813  char const *const *ccp;
19814  char **p;
19815  /* NEC SVR4.0.2 mips cc rejects this.  */
19816  struct point {int x, y;};
19817  static struct point const zero = {0,0};
19818  /* AIX XL C 1.02.0.0 rejects this.
19819     It does not let you subtract one const X* pointer from another in
19820     an arm of an if-expression whose if-part is not a constant
19821     expression */
19822  const char *g = "string";
19823  ccp = &g + (g ? g-g : 0);
19824  /* HPUX 7.0 cc rejects these. */
19825  ++ccp;
19826  p = (char**) ccp;
19827  ccp = (char const *const *) p;
19828  { /* SCO 3.2v4 cc rejects this.  */
19829    char *t;
19830    char const *s = 0 ? (char *) 0 : (char const *) 0;
19831
19832    *t++ = 0;
19833  }
19834  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19835    int x[] = {25, 17};
19836    const int *foo = &x[0];
19837    ++foo;
19838  }
19839  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19840    typedef const int *iptr;
19841    iptr p = 0;
19842    ++p;
19843  }
19844  { /* AIX XL C 1.02.0.0 rejects this saying
19845       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19846    struct s { int j; const int *ap[3]; };
19847    struct s *b; b->j = 5;
19848  }
19849  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19850    const int foo = 10;
19851  }
19852#endif
19853
19854  ;
19855  return 0;
19856}
19857_ACEOF
19858rm -f conftest.$ac_objext
19859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19860  (eval $ac_compile) 2>conftest.er1
19861  ac_status=$?
19862  grep -v '^ *+' conftest.er1 >conftest.err
19863  rm -f conftest.er1
19864  cat conftest.err >&5
19865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866  (exit $ac_status); } &&
19867	 { ac_try='test -z "$ac_c_werror_flag"
19868			 || test ! -s conftest.err'
19869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870  (eval $ac_try) 2>&5
19871  ac_status=$?
19872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873  (exit $ac_status); }; } &&
19874	 { ac_try='test -s conftest.$ac_objext'
19875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876  (eval $ac_try) 2>&5
19877  ac_status=$?
19878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879  (exit $ac_status); }; }; then
19880  ac_cv_c_const=yes
19881else
19882  echo "$as_me: failed program was:" >&5
19883sed 's/^/| /' conftest.$ac_ext >&5
19884
19885ac_cv_c_const=no
19886fi
19887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19888fi
19889echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19890echo "${ECHO_T}$ac_cv_c_const" >&6
19891if test $ac_cv_c_const = no; then
19892
19893cat >>confdefs.h <<\_ACEOF
19894#define const
19895_ACEOF
19896
19897fi
19898
19899echo "$as_me:$LINENO: checking for size_t" >&5
19900echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19901if test "${ac_cv_type_size_t+set}" = set; then
19902  echo $ECHO_N "(cached) $ECHO_C" >&6
19903else
19904  cat >conftest.$ac_ext <<_ACEOF
19905/* confdefs.h.  */
19906_ACEOF
19907cat confdefs.h >>conftest.$ac_ext
19908cat >>conftest.$ac_ext <<_ACEOF
19909/* end confdefs.h.  */
19910$ac_includes_default
19911int
19912main ()
19913{
19914if ((size_t *) 0)
19915  return 0;
19916if (sizeof (size_t))
19917  return 0;
19918  ;
19919  return 0;
19920}
19921_ACEOF
19922rm -f conftest.$ac_objext
19923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19924  (eval $ac_compile) 2>conftest.er1
19925  ac_status=$?
19926  grep -v '^ *+' conftest.er1 >conftest.err
19927  rm -f conftest.er1
19928  cat conftest.err >&5
19929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930  (exit $ac_status); } &&
19931	 { ac_try='test -z "$ac_c_werror_flag"
19932			 || test ! -s conftest.err'
19933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934  (eval $ac_try) 2>&5
19935  ac_status=$?
19936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937  (exit $ac_status); }; } &&
19938	 { ac_try='test -s conftest.$ac_objext'
19939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940  (eval $ac_try) 2>&5
19941  ac_status=$?
19942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943  (exit $ac_status); }; }; then
19944  ac_cv_type_size_t=yes
19945else
19946  echo "$as_me: failed program was:" >&5
19947sed 's/^/| /' conftest.$ac_ext >&5
19948
19949ac_cv_type_size_t=no
19950fi
19951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19952fi
19953echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19954echo "${ECHO_T}$ac_cv_type_size_t" >&6
19955if test $ac_cv_type_size_t = yes; then
19956  :
19957else
19958
19959cat >>confdefs.h <<_ACEOF
19960#define size_t unsigned
19961_ACEOF
19962
19963fi
19964
19965
19966
19967for ac_func in memmove bcopy
19968do
19969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19970echo "$as_me:$LINENO: checking for $ac_func" >&5
19971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19972if eval "test \"\${$as_ac_var+set}\" = set"; then
19973  echo $ECHO_N "(cached) $ECHO_C" >&6
19974else
19975  cat >conftest.$ac_ext <<_ACEOF
19976/* confdefs.h.  */
19977_ACEOF
19978cat confdefs.h >>conftest.$ac_ext
19979cat >>conftest.$ac_ext <<_ACEOF
19980/* end confdefs.h.  */
19981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19982   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19983#define $ac_func innocuous_$ac_func
19984
19985/* System header to define __stub macros and hopefully few prototypes,
19986    which can conflict with char $ac_func (); below.
19987    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19988    <limits.h> exists even on freestanding compilers.  */
19989
19990#ifdef __STDC__
19991# include <limits.h>
19992#else
19993# include <assert.h>
19994#endif
19995
19996#undef $ac_func
19997
19998/* Override any gcc2 internal prototype to avoid an error.  */
19999#ifdef __cplusplus
20000extern "C"
20001{
20002#endif
20003/* We use char because int might match the return type of a gcc2
20004   builtin and then its argument prototype would still apply.  */
20005char $ac_func ();
20006/* The GNU C library defines this for functions which it implements
20007    to always fail with ENOSYS.  Some functions are actually named
20008    something starting with __ and the normal name is an alias.  */
20009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20010choke me
20011#else
20012char (*f) () = $ac_func;
20013#endif
20014#ifdef __cplusplus
20015}
20016#endif
20017
20018int
20019main ()
20020{
20021return f != $ac_func;
20022  ;
20023  return 0;
20024}
20025_ACEOF
20026rm -f conftest.$ac_objext conftest$ac_exeext
20027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20028  (eval $ac_link) 2>conftest.er1
20029  ac_status=$?
20030  grep -v '^ *+' conftest.er1 >conftest.err
20031  rm -f conftest.er1
20032  cat conftest.err >&5
20033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034  (exit $ac_status); } &&
20035	 { ac_try='test -z "$ac_c_werror_flag"
20036			 || test ! -s conftest.err'
20037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038  (eval $ac_try) 2>&5
20039  ac_status=$?
20040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041  (exit $ac_status); }; } &&
20042	 { ac_try='test -s conftest$ac_exeext'
20043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044  (eval $ac_try) 2>&5
20045  ac_status=$?
20046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047  (exit $ac_status); }; }; then
20048  eval "$as_ac_var=yes"
20049else
20050  echo "$as_me: failed program was:" >&5
20051sed 's/^/| /' conftest.$ac_ext >&5
20052
20053eval "$as_ac_var=no"
20054fi
20055rm -f conftest.err conftest.$ac_objext \
20056      conftest$ac_exeext conftest.$ac_ext
20057fi
20058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20059echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20060if test `eval echo '${'$as_ac_var'}'` = yes; then
20061  cat >>confdefs.h <<_ACEOF
20062#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20063_ACEOF
20064
20065fi
20066done
20067
20068
20069
20070
20071for ac_header in fcntl.h unistd.h
20072do
20073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20074if eval "test \"\${$as_ac_Header+set}\" = set"; then
20075  echo "$as_me:$LINENO: checking for $ac_header" >&5
20076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20077if eval "test \"\${$as_ac_Header+set}\" = set"; then
20078  echo $ECHO_N "(cached) $ECHO_C" >&6
20079fi
20080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20081echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20082else
20083  # Is the header compilable?
20084echo "$as_me:$LINENO: checking $ac_header usability" >&5
20085echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20086cat >conftest.$ac_ext <<_ACEOF
20087/* confdefs.h.  */
20088_ACEOF
20089cat confdefs.h >>conftest.$ac_ext
20090cat >>conftest.$ac_ext <<_ACEOF
20091/* end confdefs.h.  */
20092$ac_includes_default
20093#include <$ac_header>
20094_ACEOF
20095rm -f conftest.$ac_objext
20096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20097  (eval $ac_compile) 2>conftest.er1
20098  ac_status=$?
20099  grep -v '^ *+' conftest.er1 >conftest.err
20100  rm -f conftest.er1
20101  cat conftest.err >&5
20102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103  (exit $ac_status); } &&
20104	 { ac_try='test -z "$ac_c_werror_flag"
20105			 || test ! -s conftest.err'
20106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107  (eval $ac_try) 2>&5
20108  ac_status=$?
20109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110  (exit $ac_status); }; } &&
20111	 { ac_try='test -s conftest.$ac_objext'
20112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113  (eval $ac_try) 2>&5
20114  ac_status=$?
20115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116  (exit $ac_status); }; }; then
20117  ac_header_compiler=yes
20118else
20119  echo "$as_me: failed program was:" >&5
20120sed 's/^/| /' conftest.$ac_ext >&5
20121
20122ac_header_compiler=no
20123fi
20124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20125echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20126echo "${ECHO_T}$ac_header_compiler" >&6
20127
20128# Is the header present?
20129echo "$as_me:$LINENO: checking $ac_header presence" >&5
20130echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20131cat >conftest.$ac_ext <<_ACEOF
20132/* confdefs.h.  */
20133_ACEOF
20134cat confdefs.h >>conftest.$ac_ext
20135cat >>conftest.$ac_ext <<_ACEOF
20136/* end confdefs.h.  */
20137#include <$ac_header>
20138_ACEOF
20139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20140  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20141  ac_status=$?
20142  grep -v '^ *+' conftest.er1 >conftest.err
20143  rm -f conftest.er1
20144  cat conftest.err >&5
20145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146  (exit $ac_status); } >/dev/null; then
20147  if test -s conftest.err; then
20148    ac_cpp_err=$ac_c_preproc_warn_flag
20149    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20150  else
20151    ac_cpp_err=
20152  fi
20153else
20154  ac_cpp_err=yes
20155fi
20156if test -z "$ac_cpp_err"; then
20157  ac_header_preproc=yes
20158else
20159  echo "$as_me: failed program was:" >&5
20160sed 's/^/| /' conftest.$ac_ext >&5
20161
20162  ac_header_preproc=no
20163fi
20164rm -f conftest.err conftest.$ac_ext
20165echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20166echo "${ECHO_T}$ac_header_preproc" >&6
20167
20168# So?  What about this header?
20169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20170  yes:no: )
20171    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20173    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20175    ac_header_preproc=yes
20176    ;;
20177  no:yes:* )
20178    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20180    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20181echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20182    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20184    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20185echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20186    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20188    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20190    (
20191      cat <<\_ASBOX
20192## -------------------------------------- ##
20193## Report this to expat-bugs@libexpat.org ##
20194## -------------------------------------- ##
20195_ASBOX
20196    ) |
20197      sed "s/^/$as_me: WARNING:     /" >&2
20198    ;;
20199esac
20200echo "$as_me:$LINENO: checking for $ac_header" >&5
20201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20202if eval "test \"\${$as_ac_Header+set}\" = set"; then
20203  echo $ECHO_N "(cached) $ECHO_C" >&6
20204else
20205  eval "$as_ac_Header=\$ac_header_preproc"
20206fi
20207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20209
20210fi
20211if test `eval echo '${'$as_ac_Header'}'` = yes; then
20212  cat >>confdefs.h <<_ACEOF
20213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20214_ACEOF
20215
20216fi
20217
20218done
20219
20220echo "$as_me:$LINENO: checking for off_t" >&5
20221echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20222if test "${ac_cv_type_off_t+set}" = set; then
20223  echo $ECHO_N "(cached) $ECHO_C" >&6
20224else
20225  cat >conftest.$ac_ext <<_ACEOF
20226/* confdefs.h.  */
20227_ACEOF
20228cat confdefs.h >>conftest.$ac_ext
20229cat >>conftest.$ac_ext <<_ACEOF
20230/* end confdefs.h.  */
20231$ac_includes_default
20232int
20233main ()
20234{
20235if ((off_t *) 0)
20236  return 0;
20237if (sizeof (off_t))
20238  return 0;
20239  ;
20240  return 0;
20241}
20242_ACEOF
20243rm -f conftest.$ac_objext
20244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20245  (eval $ac_compile) 2>conftest.er1
20246  ac_status=$?
20247  grep -v '^ *+' conftest.er1 >conftest.err
20248  rm -f conftest.er1
20249  cat conftest.err >&5
20250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251  (exit $ac_status); } &&
20252	 { ac_try='test -z "$ac_c_werror_flag"
20253			 || test ! -s conftest.err'
20254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255  (eval $ac_try) 2>&5
20256  ac_status=$?
20257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258  (exit $ac_status); }; } &&
20259	 { ac_try='test -s conftest.$ac_objext'
20260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261  (eval $ac_try) 2>&5
20262  ac_status=$?
20263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264  (exit $ac_status); }; }; then
20265  ac_cv_type_off_t=yes
20266else
20267  echo "$as_me: failed program was:" >&5
20268sed 's/^/| /' conftest.$ac_ext >&5
20269
20270ac_cv_type_off_t=no
20271fi
20272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20273fi
20274echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20275echo "${ECHO_T}$ac_cv_type_off_t" >&6
20276if test $ac_cv_type_off_t = yes; then
20277  :
20278else
20279
20280cat >>confdefs.h <<_ACEOF
20281#define off_t long
20282_ACEOF
20283
20284fi
20285
20286
20287
20288for ac_header in stdlib.h unistd.h
20289do
20290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20291if eval "test \"\${$as_ac_Header+set}\" = set"; then
20292  echo "$as_me:$LINENO: checking for $ac_header" >&5
20293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20294if eval "test \"\${$as_ac_Header+set}\" = set"; then
20295  echo $ECHO_N "(cached) $ECHO_C" >&6
20296fi
20297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20299else
20300  # Is the header compilable?
20301echo "$as_me:$LINENO: checking $ac_header usability" >&5
20302echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20303cat >conftest.$ac_ext <<_ACEOF
20304/* confdefs.h.  */
20305_ACEOF
20306cat confdefs.h >>conftest.$ac_ext
20307cat >>conftest.$ac_ext <<_ACEOF
20308/* end confdefs.h.  */
20309$ac_includes_default
20310#include <$ac_header>
20311_ACEOF
20312rm -f conftest.$ac_objext
20313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20314  (eval $ac_compile) 2>conftest.er1
20315  ac_status=$?
20316  grep -v '^ *+' conftest.er1 >conftest.err
20317  rm -f conftest.er1
20318  cat conftest.err >&5
20319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320  (exit $ac_status); } &&
20321	 { ac_try='test -z "$ac_c_werror_flag"
20322			 || test ! -s conftest.err'
20323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324  (eval $ac_try) 2>&5
20325  ac_status=$?
20326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327  (exit $ac_status); }; } &&
20328	 { ac_try='test -s conftest.$ac_objext'
20329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330  (eval $ac_try) 2>&5
20331  ac_status=$?
20332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333  (exit $ac_status); }; }; then
20334  ac_header_compiler=yes
20335else
20336  echo "$as_me: failed program was:" >&5
20337sed 's/^/| /' conftest.$ac_ext >&5
20338
20339ac_header_compiler=no
20340fi
20341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20343echo "${ECHO_T}$ac_header_compiler" >&6
20344
20345# Is the header present?
20346echo "$as_me:$LINENO: checking $ac_header presence" >&5
20347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20348cat >conftest.$ac_ext <<_ACEOF
20349/* confdefs.h.  */
20350_ACEOF
20351cat confdefs.h >>conftest.$ac_ext
20352cat >>conftest.$ac_ext <<_ACEOF
20353/* end confdefs.h.  */
20354#include <$ac_header>
20355_ACEOF
20356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20358  ac_status=$?
20359  grep -v '^ *+' conftest.er1 >conftest.err
20360  rm -f conftest.er1
20361  cat conftest.err >&5
20362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363  (exit $ac_status); } >/dev/null; then
20364  if test -s conftest.err; then
20365    ac_cpp_err=$ac_c_preproc_warn_flag
20366    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20367  else
20368    ac_cpp_err=
20369  fi
20370else
20371  ac_cpp_err=yes
20372fi
20373if test -z "$ac_cpp_err"; then
20374  ac_header_preproc=yes
20375else
20376  echo "$as_me: failed program was:" >&5
20377sed 's/^/| /' conftest.$ac_ext >&5
20378
20379  ac_header_preproc=no
20380fi
20381rm -f conftest.err conftest.$ac_ext
20382echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20383echo "${ECHO_T}$ac_header_preproc" >&6
20384
20385# So?  What about this header?
20386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20387  yes:no: )
20388    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20389echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20390    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20391echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20392    ac_header_preproc=yes
20393    ;;
20394  no:yes:* )
20395    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20396echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20397    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20398echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20399    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20400echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20401    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20402echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20403    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20404echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20405    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20406echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20407    (
20408      cat <<\_ASBOX
20409## -------------------------------------- ##
20410## Report this to expat-bugs@libexpat.org ##
20411## -------------------------------------- ##
20412_ASBOX
20413    ) |
20414      sed "s/^/$as_me: WARNING:     /" >&2
20415    ;;
20416esac
20417echo "$as_me:$LINENO: checking for $ac_header" >&5
20418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20419if eval "test \"\${$as_ac_Header+set}\" = set"; then
20420  echo $ECHO_N "(cached) $ECHO_C" >&6
20421else
20422  eval "$as_ac_Header=\$ac_header_preproc"
20423fi
20424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20426
20427fi
20428if test `eval echo '${'$as_ac_Header'}'` = yes; then
20429  cat >>confdefs.h <<_ACEOF
20430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20431_ACEOF
20432
20433fi
20434
20435done
20436
20437
20438for ac_func in getpagesize
20439do
20440as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20441echo "$as_me:$LINENO: checking for $ac_func" >&5
20442echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20443if eval "test \"\${$as_ac_var+set}\" = set"; then
20444  echo $ECHO_N "(cached) $ECHO_C" >&6
20445else
20446  cat >conftest.$ac_ext <<_ACEOF
20447/* confdefs.h.  */
20448_ACEOF
20449cat confdefs.h >>conftest.$ac_ext
20450cat >>conftest.$ac_ext <<_ACEOF
20451/* end confdefs.h.  */
20452/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20453   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20454#define $ac_func innocuous_$ac_func
20455
20456/* System header to define __stub macros and hopefully few prototypes,
20457    which can conflict with char $ac_func (); below.
20458    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20459    <limits.h> exists even on freestanding compilers.  */
20460
20461#ifdef __STDC__
20462# include <limits.h>
20463#else
20464# include <assert.h>
20465#endif
20466
20467#undef $ac_func
20468
20469/* Override any gcc2 internal prototype to avoid an error.  */
20470#ifdef __cplusplus
20471extern "C"
20472{
20473#endif
20474/* We use char because int might match the return type of a gcc2
20475   builtin and then its argument prototype would still apply.  */
20476char $ac_func ();
20477/* The GNU C library defines this for functions which it implements
20478    to always fail with ENOSYS.  Some functions are actually named
20479    something starting with __ and the normal name is an alias.  */
20480#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20481choke me
20482#else
20483char (*f) () = $ac_func;
20484#endif
20485#ifdef __cplusplus
20486}
20487#endif
20488
20489int
20490main ()
20491{
20492return f != $ac_func;
20493  ;
20494  return 0;
20495}
20496_ACEOF
20497rm -f conftest.$ac_objext conftest$ac_exeext
20498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20499  (eval $ac_link) 2>conftest.er1
20500  ac_status=$?
20501  grep -v '^ *+' conftest.er1 >conftest.err
20502  rm -f conftest.er1
20503  cat conftest.err >&5
20504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505  (exit $ac_status); } &&
20506	 { ac_try='test -z "$ac_c_werror_flag"
20507			 || test ! -s conftest.err'
20508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509  (eval $ac_try) 2>&5
20510  ac_status=$?
20511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512  (exit $ac_status); }; } &&
20513	 { ac_try='test -s conftest$ac_exeext'
20514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515  (eval $ac_try) 2>&5
20516  ac_status=$?
20517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518  (exit $ac_status); }; }; then
20519  eval "$as_ac_var=yes"
20520else
20521  echo "$as_me: failed program was:" >&5
20522sed 's/^/| /' conftest.$ac_ext >&5
20523
20524eval "$as_ac_var=no"
20525fi
20526rm -f conftest.err conftest.$ac_objext \
20527      conftest$ac_exeext conftest.$ac_ext
20528fi
20529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20530echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20531if test `eval echo '${'$as_ac_var'}'` = yes; then
20532  cat >>confdefs.h <<_ACEOF
20533#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20534_ACEOF
20535
20536fi
20537done
20538
20539echo "$as_me:$LINENO: checking for working mmap" >&5
20540echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20541if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20542  echo $ECHO_N "(cached) $ECHO_C" >&6
20543else
20544  if test "$cross_compiling" = yes; then
20545  ac_cv_func_mmap_fixed_mapped=no
20546else
20547  cat >conftest.$ac_ext <<_ACEOF
20548/* confdefs.h.  */
20549_ACEOF
20550cat confdefs.h >>conftest.$ac_ext
20551cat >>conftest.$ac_ext <<_ACEOF
20552/* end confdefs.h.  */
20553$ac_includes_default
20554/* malloc might have been renamed as rpl_malloc. */
20555#undef malloc
20556
20557/* Thanks to Mike Haertel and Jim Avera for this test.
20558   Here is a matrix of mmap possibilities:
20559	mmap private not fixed
20560	mmap private fixed at somewhere currently unmapped
20561	mmap private fixed at somewhere already mapped
20562	mmap shared not fixed
20563	mmap shared fixed at somewhere currently unmapped
20564	mmap shared fixed at somewhere already mapped
20565   For private mappings, we should verify that changes cannot be read()
20566   back from the file, nor mmap's back from the file at a different
20567   address.  (There have been systems where private was not correctly
20568   implemented like the infamous i386 svr4.0, and systems where the
20569   VM page cache was not coherent with the file system buffer cache
20570   like early versions of FreeBSD and possibly contemporary NetBSD.)
20571   For shared mappings, we should conversely verify that changes get
20572   propagated back to all the places they're supposed to be.
20573
20574   Grep wants private fixed already mapped.
20575   The main things grep needs to know about mmap are:
20576   * does it exist and is it safe to write into the mmap'd area
20577   * how to use it (BSD variants)  */
20578
20579#include <fcntl.h>
20580#include <sys/mman.h>
20581
20582#if !STDC_HEADERS && !HAVE_STDLIB_H
20583char *malloc ();
20584#endif
20585
20586/* This mess was copied from the GNU getpagesize.h.  */
20587#if !HAVE_GETPAGESIZE
20588/* Assume that all systems that can run configure have sys/param.h.  */
20589# if !HAVE_SYS_PARAM_H
20590#  define HAVE_SYS_PARAM_H 1
20591# endif
20592
20593# ifdef _SC_PAGESIZE
20594#  define getpagesize() sysconf(_SC_PAGESIZE)
20595# else /* no _SC_PAGESIZE */
20596#  if HAVE_SYS_PARAM_H
20597#   include <sys/param.h>
20598#   ifdef EXEC_PAGESIZE
20599#    define getpagesize() EXEC_PAGESIZE
20600#   else /* no EXEC_PAGESIZE */
20601#    ifdef NBPG
20602#     define getpagesize() NBPG * CLSIZE
20603#     ifndef CLSIZE
20604#      define CLSIZE 1
20605#     endif /* no CLSIZE */
20606#    else /* no NBPG */
20607#     ifdef NBPC
20608#      define getpagesize() NBPC
20609#     else /* no NBPC */
20610#      ifdef PAGESIZE
20611#       define getpagesize() PAGESIZE
20612#      endif /* PAGESIZE */
20613#     endif /* no NBPC */
20614#    endif /* no NBPG */
20615#   endif /* no EXEC_PAGESIZE */
20616#  else /* no HAVE_SYS_PARAM_H */
20617#   define getpagesize() 8192	/* punt totally */
20618#  endif /* no HAVE_SYS_PARAM_H */
20619# endif /* no _SC_PAGESIZE */
20620
20621#endif /* no HAVE_GETPAGESIZE */
20622
20623int
20624main ()
20625{
20626  char *data, *data2, *data3;
20627  int i, pagesize;
20628  int fd;
20629
20630  pagesize = getpagesize ();
20631
20632  /* First, make a file with some known garbage in it. */
20633  data = (char *) malloc (pagesize);
20634  if (!data)
20635    exit (1);
20636  for (i = 0; i < pagesize; ++i)
20637    *(data + i) = rand ();
20638  umask (0);
20639  fd = creat ("conftest.mmap", 0600);
20640  if (fd < 0)
20641    exit (1);
20642  if (write (fd, data, pagesize) != pagesize)
20643    exit (1);
20644  close (fd);
20645
20646  /* Next, try to mmap the file at a fixed address which already has
20647     something else allocated at it.  If we can, also make sure that
20648     we see the same garbage.  */
20649  fd = open ("conftest.mmap", O_RDWR);
20650  if (fd < 0)
20651    exit (1);
20652  data2 = (char *) malloc (2 * pagesize);
20653  if (!data2)
20654    exit (1);
20655  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20656  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20657		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20658    exit (1);
20659  for (i = 0; i < pagesize; ++i)
20660    if (*(data + i) != *(data2 + i))
20661      exit (1);
20662
20663  /* Finally, make sure that changes to the mapped area do not
20664     percolate back to the file as seen by read().  (This is a bug on
20665     some variants of i386 svr4.0.)  */
20666  for (i = 0; i < pagesize; ++i)
20667    *(data2 + i) = *(data2 + i) + 1;
20668  data3 = (char *) malloc (pagesize);
20669  if (!data3)
20670    exit (1);
20671  if (read (fd, data3, pagesize) != pagesize)
20672    exit (1);
20673  for (i = 0; i < pagesize; ++i)
20674    if (*(data + i) != *(data3 + i))
20675      exit (1);
20676  close (fd);
20677  exit (0);
20678}
20679_ACEOF
20680rm -f conftest$ac_exeext
20681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20682  (eval $ac_link) 2>&5
20683  ac_status=$?
20684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687  (eval $ac_try) 2>&5
20688  ac_status=$?
20689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690  (exit $ac_status); }; }; then
20691  ac_cv_func_mmap_fixed_mapped=yes
20692else
20693  echo "$as_me: program exited with status $ac_status" >&5
20694echo "$as_me: failed program was:" >&5
20695sed 's/^/| /' conftest.$ac_ext >&5
20696
20697( exit $ac_status )
20698ac_cv_func_mmap_fixed_mapped=no
20699fi
20700rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20701fi
20702fi
20703echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20704echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20705if test $ac_cv_func_mmap_fixed_mapped = yes; then
20706
20707cat >>confdefs.h <<\_ACEOF
20708#define HAVE_MMAP 1
20709_ACEOF
20710
20711fi
20712rm -f conftest.mmap
20713
20714
20715if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
20716    FILEMAP=unixfilemap
20717else
20718    FILEMAP=readfilemap
20719fi
20720
20721
20722
20723# AC_CPP_FUNC
20724# ------------------ #
20725# Checks to see if ANSI C99 CPP variable __func__ works.
20726# If not, perhaps __FUNCTION__ works instead.
20727# If not, we'll just define __func__ to "".
20728# AC_CPP_FUNC
20729
20730
20731echo "$as_me:$LINENO: checking for an ANSI C99-conforming __func__" >&5
20732echo $ECHO_N "checking for an ANSI C99-conforming __func__... $ECHO_C" >&6
20733if test "${ac_cv_cpp_func+set}" = set; then
20734  echo $ECHO_N "(cached) $ECHO_C" >&6
20735else
20736  cat >conftest.$ac_ext <<_ACEOF
20737/* confdefs.h.  */
20738_ACEOF
20739cat confdefs.h >>conftest.$ac_ext
20740cat >>conftest.$ac_ext <<_ACEOF
20741/* end confdefs.h.  */
20742
20743int
20744main ()
20745{
20746char *foo = __func__;
20747  ;
20748  return 0;
20749}
20750_ACEOF
20751rm -f conftest.$ac_objext
20752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20753  (eval $ac_compile) 2>conftest.er1
20754  ac_status=$?
20755  grep -v '^ *+' conftest.er1 >conftest.err
20756  rm -f conftest.er1
20757  cat conftest.err >&5
20758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759  (exit $ac_status); } &&
20760	 { ac_try='test -z "$ac_c_werror_flag"
20761			 || test ! -s conftest.err'
20762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763  (eval $ac_try) 2>&5
20764  ac_status=$?
20765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766  (exit $ac_status); }; } &&
20767	 { ac_try='test -s conftest.$ac_objext'
20768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769  (eval $ac_try) 2>&5
20770  ac_status=$?
20771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772  (exit $ac_status); }; }; then
20773  ac_cv_cpp_func=yes
20774else
20775  echo "$as_me: failed program was:" >&5
20776sed 's/^/| /' conftest.$ac_ext >&5
20777
20778cat >conftest.$ac_ext <<_ACEOF
20779/* confdefs.h.  */
20780_ACEOF
20781cat confdefs.h >>conftest.$ac_ext
20782cat >>conftest.$ac_ext <<_ACEOF
20783/* end confdefs.h.  */
20784
20785int
20786main ()
20787{
20788char *foo = __FUNCTION__;
20789  ;
20790  return 0;
20791}
20792_ACEOF
20793rm -f conftest.$ac_objext
20794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20795  (eval $ac_compile) 2>conftest.er1
20796  ac_status=$?
20797  grep -v '^ *+' conftest.er1 >conftest.err
20798  rm -f conftest.er1
20799  cat conftest.err >&5
20800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801  (exit $ac_status); } &&
20802	 { ac_try='test -z "$ac_c_werror_flag"
20803			 || test ! -s conftest.err'
20804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805  (eval $ac_try) 2>&5
20806  ac_status=$?
20807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808  (exit $ac_status); }; } &&
20809	 { ac_try='test -s conftest.$ac_objext'
20810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811  (eval $ac_try) 2>&5
20812  ac_status=$?
20813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814  (exit $ac_status); }; }; then
20815  ac_cv_cpp_func=__FUNCTION__
20816else
20817  echo "$as_me: failed program was:" >&5
20818sed 's/^/| /' conftest.$ac_ext >&5
20819
20820ac_cv_cpp_func=no
20821fi
20822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20823fi
20824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20825fi
20826echo "$as_me:$LINENO: result: $ac_cv_cpp_func" >&5
20827echo "${ECHO_T}$ac_cv_cpp_func" >&6
20828if test $ac_cv_cpp_func = __FUNCTION__; then
20829
20830cat >>confdefs.h <<\_ACEOF
20831#define __func__ __FUNCTION__
20832_ACEOF
20833
20834elif test $ac_cv_cpp_func = no; then
20835
20836cat >>confdefs.h <<\_ACEOF
20837#define __func__ ""
20838_ACEOF
20839
20840fi
20841
20842
20843
20844
20845cat >>confdefs.h <<\_ACEOF
20846#define XML_NS 1
20847_ACEOF
20848
20849
20850cat >>confdefs.h <<\_ACEOF
20851#define XML_DTD 1
20852_ACEOF
20853
20854
20855cat >>confdefs.h <<\_ACEOF
20856#define XML_CONTEXT_BYTES 1024
20857_ACEOF
20858
20859
20860          ac_config_files="$ac_config_files Makefile"
20861
20862cat >confcache <<\_ACEOF
20863# This file is a shell script that caches the results of configure
20864# tests run on this system so they can be shared between configure
20865# scripts and configure runs, see configure's option --config-cache.
20866# It is not useful on other systems.  If it contains results you don't
20867# want to keep, you may remove or edit it.
20868#
20869# config.status only pays attention to the cache file if you give it
20870# the --recheck option to rerun configure.
20871#
20872# `ac_cv_env_foo' variables (set or unset) will be overridden when
20873# loading this file, other *unset* `ac_cv_foo' will be assigned the
20874# following values.
20875
20876_ACEOF
20877
20878# The following way of writing the cache mishandles newlines in values,
20879# but we know of no workaround that is simple, portable, and efficient.
20880# So, don't put newlines in cache variables' values.
20881# Ultrix sh set writes to stderr and can't be redirected directly,
20882# and sets the high bit in the cache file unless we assign to the vars.
20883{
20884  (set) 2>&1 |
20885    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20886    *ac_space=\ *)
20887      # `set' does not quote correctly, so add quotes (double-quote
20888      # substitution turns \\\\ into \\, and sed turns \\ into \).
20889      sed -n \
20890	"s/'/'\\\\''/g;
20891	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20892      ;;
20893    *)
20894      # `set' quotes correctly as required by POSIX, so do not add quotes.
20895      sed -n \
20896	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20897      ;;
20898    esac;
20899} |
20900  sed '
20901     t clear
20902     : clear
20903     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20904     t end
20905     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20906     : end' >>confcache
20907if diff $cache_file confcache >/dev/null 2>&1; then :; else
20908  if test -w $cache_file; then
20909    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20910    cat confcache >$cache_file
20911  else
20912    echo "not updating unwritable cache $cache_file"
20913  fi
20914fi
20915rm -f confcache
20916
20917test "x$prefix" = xNONE && prefix=$ac_default_prefix
20918# Let make expand exec_prefix.
20919test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20920
20921# VPATH may cause trouble with some makes, so we remove $(srcdir),
20922# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20923# trailing colons and then remove the whole line if VPATH becomes empty
20924# (actually we leave an empty line to preserve line numbers).
20925if test "x$srcdir" = x.; then
20926  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20927s/:*\$(srcdir):*/:/;
20928s/:*\${srcdir}:*/:/;
20929s/:*@srcdir@:*/:/;
20930s/^\([^=]*=[	 ]*\):*/\1/;
20931s/:*$//;
20932s/^[^=]*=[	 ]*$//;
20933}'
20934fi
20935
20936DEFS=-DHAVE_CONFIG_H
20937
20938ac_libobjs=
20939ac_ltlibobjs=
20940for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20941  # 1. Remove the extension, and $U if already installed.
20942  ac_i=`echo "$ac_i" |
20943	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20944  # 2. Add them.
20945  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20946  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20947done
20948LIBOBJS=$ac_libobjs
20949
20950LTLIBOBJS=$ac_ltlibobjs
20951
20952
20953
20954: ${CONFIG_STATUS=./config.status}
20955ac_clean_files_save=$ac_clean_files
20956ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20957{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20958echo "$as_me: creating $CONFIG_STATUS" >&6;}
20959cat >$CONFIG_STATUS <<_ACEOF
20960#! $SHELL
20961# Generated by $as_me.
20962# Run this file to recreate the current configuration.
20963# Compiler output produced by configure, useful for debugging
20964# configure, is in config.log if it exists.
20965
20966debug=false
20967ac_cs_recheck=false
20968ac_cs_silent=false
20969SHELL=\${CONFIG_SHELL-$SHELL}
20970_ACEOF
20971
20972cat >>$CONFIG_STATUS <<\_ACEOF
20973## --------------------- ##
20974## M4sh Initialization.  ##
20975## --------------------- ##
20976
20977# Be Bourne compatible
20978if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20979  emulate sh
20980  NULLCMD=:
20981  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20982  # is contrary to our usage.  Disable this feature.
20983  alias -g '${1+"$@"}'='"$@"'
20984elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20985  set -o posix
20986fi
20987DUALCASE=1; export DUALCASE # for MKS sh
20988
20989# Support unset when possible.
20990if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20991  as_unset=unset
20992else
20993  as_unset=false
20994fi
20995
20996
20997# Work around bugs in pre-3.0 UWIN ksh.
20998$as_unset ENV MAIL MAILPATH
20999PS1='$ '
21000PS2='> '
21001PS4='+ '
21002
21003# NLS nuisances.
21004for as_var in \
21005  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21006  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21007  LC_TELEPHONE LC_TIME
21008do
21009  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21010    eval $as_var=C; export $as_var
21011  else
21012    $as_unset $as_var
21013  fi
21014done
21015
21016# Required to use basename.
21017if expr a : '\(a\)' >/dev/null 2>&1; then
21018  as_expr=expr
21019else
21020  as_expr=false
21021fi
21022
21023if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21024  as_basename=basename
21025else
21026  as_basename=false
21027fi
21028
21029
21030# Name of the executable.
21031as_me=`$as_basename "$0" ||
21032$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21033	 X"$0" : 'X\(//\)$' \| \
21034	 X"$0" : 'X\(/\)$' \| \
21035	 .     : '\(.\)' 2>/dev/null ||
21036echo X/"$0" |
21037    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21038  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
21039  	  /^X\/\(\/\).*/{ s//\1/; q; }
21040  	  s/.*/./; q'`
21041
21042
21043# PATH needs CR, and LINENO needs CR and PATH.
21044# Avoid depending upon Character Ranges.
21045as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21046as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21047as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21048as_cr_digits='0123456789'
21049as_cr_alnum=$as_cr_Letters$as_cr_digits
21050
21051# The user is always right.
21052if test "${PATH_SEPARATOR+set}" != set; then
21053  echo "#! /bin/sh" >conf$$.sh
21054  echo  "exit 0"   >>conf$$.sh
21055  chmod +x conf$$.sh
21056  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21057    PATH_SEPARATOR=';'
21058  else
21059    PATH_SEPARATOR=:
21060  fi
21061  rm -f conf$$.sh
21062fi
21063
21064
21065  as_lineno_1=$LINENO
21066  as_lineno_2=$LINENO
21067  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21068  test "x$as_lineno_1" != "x$as_lineno_2" &&
21069  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21070  # Find who we are.  Look in the path if we contain no path at all
21071  # relative or not.
21072  case $0 in
21073    *[\\/]* ) as_myself=$0 ;;
21074    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21075for as_dir in $PATH
21076do
21077  IFS=$as_save_IFS
21078  test -z "$as_dir" && as_dir=.
21079  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21080done
21081
21082       ;;
21083  esac
21084  # We did not find ourselves, most probably we were run as `sh COMMAND'
21085  # in which case we are not to be found in the path.
21086  if test "x$as_myself" = x; then
21087    as_myself=$0
21088  fi
21089  if test ! -f "$as_myself"; then
21090    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21091echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21092   { (exit 1); exit 1; }; }
21093  fi
21094  case $CONFIG_SHELL in
21095  '')
21096    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21097for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21098do
21099  IFS=$as_save_IFS
21100  test -z "$as_dir" && as_dir=.
21101  for as_base in sh bash ksh sh5; do
21102	 case $as_dir in
21103	 /*)
21104	   if ("$as_dir/$as_base" -c '
21105  as_lineno_1=$LINENO
21106  as_lineno_2=$LINENO
21107  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21108  test "x$as_lineno_1" != "x$as_lineno_2" &&
21109  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21110	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21111	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21112	     CONFIG_SHELL=$as_dir/$as_base
21113	     export CONFIG_SHELL
21114	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21115	   fi;;
21116	 esac
21117       done
21118done
21119;;
21120  esac
21121
21122  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21123  # uniformly replaced by the line number.  The first 'sed' inserts a
21124  # line-number line before each line; the second 'sed' does the real
21125  # work.  The second script uses 'N' to pair each line-number line
21126  # with the numbered line, and appends trailing '-' during
21127  # substitution so that $LINENO is not a special case at line end.
21128  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21129  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21130  sed '=' <$as_myself |
21131    sed '
21132      N
21133      s,$,-,
21134      : loop
21135      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21136      t loop
21137      s,-$,,
21138      s,^['$as_cr_digits']*\n,,
21139    ' >$as_me.lineno &&
21140  chmod +x $as_me.lineno ||
21141    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21142echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21143   { (exit 1); exit 1; }; }
21144
21145  # Don't try to exec as it changes $[0], causing all sort of problems
21146  # (the dirname of $[0] is not the place where we might find the
21147  # original and so on.  Autoconf is especially sensible to this).
21148  . ./$as_me.lineno
21149  # Exit status is that of the last command.
21150  exit
21151}
21152
21153
21154case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21155  *c*,-n*) ECHO_N= ECHO_C='
21156' ECHO_T='	' ;;
21157  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21158  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21159esac
21160
21161if expr a : '\(a\)' >/dev/null 2>&1; then
21162  as_expr=expr
21163else
21164  as_expr=false
21165fi
21166
21167rm -f conf$$ conf$$.exe conf$$.file
21168echo >conf$$.file
21169if ln -s conf$$.file conf$$ 2>/dev/null; then
21170  # We could just check for DJGPP; but this test a) works b) is more generic
21171  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21172  if test -f conf$$.exe; then
21173    # Don't use ln at all; we don't have any links
21174    as_ln_s='cp -p'
21175  else
21176    as_ln_s='ln -s'
21177  fi
21178elif ln conf$$.file conf$$ 2>/dev/null; then
21179  as_ln_s=ln
21180else
21181  as_ln_s='cp -p'
21182fi
21183rm -f conf$$ conf$$.exe conf$$.file
21184
21185if mkdir -p . 2>/dev/null; then
21186  as_mkdir_p=:
21187else
21188  test -d ./-p && rmdir ./-p
21189  as_mkdir_p=false
21190fi
21191
21192as_executable_p="test -f"
21193
21194# Sed expression to map a string onto a valid CPP name.
21195as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21196
21197# Sed expression to map a string onto a valid variable name.
21198as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21199
21200
21201# IFS
21202# We need space, tab and new line, in precisely that order.
21203as_nl='
21204'
21205IFS=" 	$as_nl"
21206
21207# CDPATH.
21208$as_unset CDPATH
21209
21210exec 6>&1
21211
21212# Open the log real soon, to keep \$[0] and so on meaningful, and to
21213# report actual input values of CONFIG_FILES etc. instead of their
21214# values after options handling.  Logging --version etc. is OK.
21215exec 5>>config.log
21216{
21217  echo
21218  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21219## Running $as_me. ##
21220_ASBOX
21221} >&5
21222cat >&5 <<_CSEOF
21223
21224This file was extended by expat $as_me 2.0.1, which was
21225generated by GNU Autoconf 2.59.  Invocation command line was
21226
21227  CONFIG_FILES    = $CONFIG_FILES
21228  CONFIG_HEADERS  = $CONFIG_HEADERS
21229  CONFIG_LINKS    = $CONFIG_LINKS
21230  CONFIG_COMMANDS = $CONFIG_COMMANDS
21231  $ $0 $@
21232
21233_CSEOF
21234echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21235echo >&5
21236_ACEOF
21237
21238# Files that config.status was made for.
21239if test -n "$ac_config_files"; then
21240  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21241fi
21242
21243if test -n "$ac_config_headers"; then
21244  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21245fi
21246
21247if test -n "$ac_config_links"; then
21248  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21249fi
21250
21251if test -n "$ac_config_commands"; then
21252  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21253fi
21254
21255cat >>$CONFIG_STATUS <<\_ACEOF
21256
21257ac_cs_usage="\
21258\`$as_me' instantiates files from templates according to the
21259current configuration.
21260
21261Usage: $0 [OPTIONS] [FILE]...
21262
21263  -h, --help       print this help, then exit
21264  -V, --version    print version number, then exit
21265  -q, --quiet      do not print progress messages
21266  -d, --debug      don't remove temporary files
21267      --recheck    update $as_me by reconfiguring in the same conditions
21268  --file=FILE[:TEMPLATE]
21269		   instantiate the configuration file FILE
21270  --header=FILE[:TEMPLATE]
21271		   instantiate the configuration header FILE
21272
21273Configuration files:
21274$config_files
21275
21276Configuration headers:
21277$config_headers
21278
21279Report bugs to <bug-autoconf@gnu.org>."
21280_ACEOF
21281
21282cat >>$CONFIG_STATUS <<_ACEOF
21283ac_cs_version="\\
21284expat config.status 2.0.1
21285configured by $0, generated by GNU Autoconf 2.59,
21286  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21287
21288Copyright (C) 2003 Free Software Foundation, Inc.
21289This config.status script is free software; the Free Software Foundation
21290gives unlimited permission to copy, distribute and modify it."
21291srcdir=$srcdir
21292INSTALL="$INSTALL"
21293_ACEOF
21294
21295cat >>$CONFIG_STATUS <<\_ACEOF
21296# If no file are specified by the user, then we need to provide default
21297# value.  By we need to know if files were specified by the user.
21298ac_need_defaults=:
21299while test $# != 0
21300do
21301  case $1 in
21302  --*=*)
21303    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21304    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21305    ac_shift=:
21306    ;;
21307  -*)
21308    ac_option=$1
21309    ac_optarg=$2
21310    ac_shift=shift
21311    ;;
21312  *) # This is not an option, so the user has probably given explicit
21313     # arguments.
21314     ac_option=$1
21315     ac_need_defaults=false;;
21316  esac
21317
21318  case $ac_option in
21319  # Handling of the options.
21320_ACEOF
21321cat >>$CONFIG_STATUS <<\_ACEOF
21322  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21323    ac_cs_recheck=: ;;
21324  --version | --vers* | -V )
21325    echo "$ac_cs_version"; exit 0 ;;
21326  --he | --h)
21327    # Conflict between --help and --header
21328    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21329Try \`$0 --help' for more information." >&5
21330echo "$as_me: error: ambiguous option: $1
21331Try \`$0 --help' for more information." >&2;}
21332   { (exit 1); exit 1; }; };;
21333  --help | --hel | -h )
21334    echo "$ac_cs_usage"; exit 0 ;;
21335  --debug | --d* | -d )
21336    debug=: ;;
21337  --file | --fil | --fi | --f )
21338    $ac_shift
21339    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21340    ac_need_defaults=false;;
21341  --header | --heade | --head | --hea )
21342    $ac_shift
21343    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21344    ac_need_defaults=false;;
21345  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21346  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21347    ac_cs_silent=: ;;
21348
21349  # This is an error.
21350  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21351Try \`$0 --help' for more information." >&5
21352echo "$as_me: error: unrecognized option: $1
21353Try \`$0 --help' for more information." >&2;}
21354   { (exit 1); exit 1; }; } ;;
21355
21356  *) ac_config_targets="$ac_config_targets $1" ;;
21357
21358  esac
21359  shift
21360done
21361
21362ac_configure_extra_args=
21363
21364if $ac_cs_silent; then
21365  exec 6>/dev/null
21366  ac_configure_extra_args="$ac_configure_extra_args --silent"
21367fi
21368
21369_ACEOF
21370cat >>$CONFIG_STATUS <<_ACEOF
21371if \$ac_cs_recheck; then
21372  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21373  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21374fi
21375
21376_ACEOF
21377
21378
21379
21380
21381
21382cat >>$CONFIG_STATUS <<\_ACEOF
21383for ac_config_target in $ac_config_targets
21384do
21385  case "$ac_config_target" in
21386  # Handling of arguments.
21387  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21388  "expat_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
21389  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21390echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21391   { (exit 1); exit 1; }; };;
21392  esac
21393done
21394
21395# If the user did not use the arguments to specify the items to instantiate,
21396# then the envvar interface is used.  Set only those that are not.
21397# We use the long form for the default assignment because of an extremely
21398# bizarre bug on SunOS 4.1.3.
21399if $ac_need_defaults; then
21400  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21401  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21402fi
21403
21404# Have a temporary directory for convenience.  Make it in the build tree
21405# simply because there is no reason to put it here, and in addition,
21406# creating and moving files from /tmp can sometimes cause problems.
21407# Create a temporary directory, and hook for its removal unless debugging.
21408$debug ||
21409{
21410  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21411  trap '{ (exit 1); exit 1; }' 1 2 13 15
21412}
21413
21414# Create a (secure) tmp directory for tmp files.
21415
21416{
21417  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21418  test -n "$tmp" && test -d "$tmp"
21419}  ||
21420{
21421  tmp=./confstat$$-$RANDOM
21422  (umask 077 && mkdir $tmp)
21423} ||
21424{
21425   echo "$me: cannot create a temporary directory in ." >&2
21426   { (exit 1); exit 1; }
21427}
21428
21429_ACEOF
21430
21431cat >>$CONFIG_STATUS <<_ACEOF
21432
21433#
21434# CONFIG_FILES section.
21435#
21436
21437# No need to generate the scripts if there are no CONFIG_FILES.
21438# This happens for instance when ./config.status config.h
21439if test -n "\$CONFIG_FILES"; then
21440  # Protect against being on the right side of a sed subst in config.status.
21441  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21442   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21443s,@SHELL@,$SHELL,;t t
21444s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21445s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21446s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21447s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21448s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21449s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21450s,@exec_prefix@,$exec_prefix,;t t
21451s,@prefix@,$prefix,;t t
21452s,@program_transform_name@,$program_transform_name,;t t
21453s,@bindir@,$bindir,;t t
21454s,@sbindir@,$sbindir,;t t
21455s,@libexecdir@,$libexecdir,;t t
21456s,@datadir@,$datadir,;t t
21457s,@sysconfdir@,$sysconfdir,;t t
21458s,@sharedstatedir@,$sharedstatedir,;t t
21459s,@localstatedir@,$localstatedir,;t t
21460s,@libdir@,$libdir,;t t
21461s,@includedir@,$includedir,;t t
21462s,@oldincludedir@,$oldincludedir,;t t
21463s,@infodir@,$infodir,;t t
21464s,@mandir@,$mandir,;t t
21465s,@build_alias@,$build_alias,;t t
21466s,@host_alias@,$host_alias,;t t
21467s,@target_alias@,$target_alias,;t t
21468s,@DEFS@,$DEFS,;t t
21469s,@ECHO_C@,$ECHO_C,;t t
21470s,@ECHO_N@,$ECHO_N,;t t
21471s,@ECHO_T@,$ECHO_T,;t t
21472s,@LIBS@,$LIBS,;t t
21473s,@build@,$build,;t t
21474s,@build_cpu@,$build_cpu,;t t
21475s,@build_vendor@,$build_vendor,;t t
21476s,@build_os@,$build_os,;t t
21477s,@host@,$host,;t t
21478s,@host_cpu@,$host_cpu,;t t
21479s,@host_vendor@,$host_vendor,;t t
21480s,@host_os@,$host_os,;t t
21481s,@CC@,$CC,;t t
21482s,@CFLAGS@,$CFLAGS,;t t
21483s,@LDFLAGS@,$LDFLAGS,;t t
21484s,@CPPFLAGS@,$CPPFLAGS,;t t
21485s,@ac_ct_CC@,$ac_ct_CC,;t t
21486s,@EXEEXT@,$EXEEXT,;t t
21487s,@OBJEXT@,$OBJEXT,;t t
21488s,@EGREP@,$EGREP,;t t
21489s,@LN_S@,$LN_S,;t t
21490s,@ECHO@,$ECHO,;t t
21491s,@AR@,$AR,;t t
21492s,@ac_ct_AR@,$ac_ct_AR,;t t
21493s,@RANLIB@,$RANLIB,;t t
21494s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21495s,@STRIP@,$STRIP,;t t
21496s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21497s,@DLLTOOL@,$DLLTOOL,;t t
21498s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21499s,@AS@,$AS,;t t
21500s,@ac_ct_AS@,$ac_ct_AS,;t t
21501s,@OBJDUMP@,$OBJDUMP,;t t
21502s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21503s,@CPP@,$CPP,;t t
21504s,@CXX@,$CXX,;t t
21505s,@CXXFLAGS@,$CXXFLAGS,;t t
21506s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21507s,@CXXCPP@,$CXXCPP,;t t
21508s,@F77@,$F77,;t t
21509s,@FFLAGS@,$FFLAGS,;t t
21510s,@ac_ct_F77@,$ac_ct_F77,;t t
21511s,@LIBTOOL@,$LIBTOOL,;t t
21512s,@LIBCURRENT@,$LIBCURRENT,;t t
21513s,@LIBREVISION@,$LIBREVISION,;t t
21514s,@LIBAGE@,$LIBAGE,;t t
21515s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21516s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21517s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21518s,@FILEMAP@,$FILEMAP,;t t
21519s,@LIBOBJS@,$LIBOBJS,;t t
21520s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21521CEOF
21522
21523_ACEOF
21524
21525  cat >>$CONFIG_STATUS <<\_ACEOF
21526  # Split the substitutions into bite-sized pieces for seds with
21527  # small command number limits, like on Digital OSF/1 and HP-UX.
21528  ac_max_sed_lines=48
21529  ac_sed_frag=1 # Number of current file.
21530  ac_beg=1 # First line for current file.
21531  ac_end=$ac_max_sed_lines # Line after last line for current file.
21532  ac_more_lines=:
21533  ac_sed_cmds=
21534  while $ac_more_lines; do
21535    if test $ac_beg -gt 1; then
21536      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21537    else
21538      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21539    fi
21540    if test ! -s $tmp/subs.frag; then
21541      ac_more_lines=false
21542    else
21543      # The purpose of the label and of the branching condition is to
21544      # speed up the sed processing (if there are no `@' at all, there
21545      # is no need to browse any of the substitutions).
21546      # These are the two extra sed commands mentioned above.
21547      (echo ':t
21548  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21549      if test -z "$ac_sed_cmds"; then
21550	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21551      else
21552	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21553      fi
21554      ac_sed_frag=`expr $ac_sed_frag + 1`
21555      ac_beg=$ac_end
21556      ac_end=`expr $ac_end + $ac_max_sed_lines`
21557    fi
21558  done
21559  if test -z "$ac_sed_cmds"; then
21560    ac_sed_cmds=cat
21561  fi
21562fi # test -n "$CONFIG_FILES"
21563
21564_ACEOF
21565cat >>$CONFIG_STATUS <<\_ACEOF
21566for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21567  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21568  case $ac_file in
21569  - | *:- | *:-:* ) # input from stdin
21570	cat >$tmp/stdin
21571	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21572	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21573  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21574	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21575  * )   ac_file_in=$ac_file.in ;;
21576  esac
21577
21578  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21579  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21580$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21581	 X"$ac_file" : 'X\(//\)[^/]' \| \
21582	 X"$ac_file" : 'X\(//\)$' \| \
21583	 X"$ac_file" : 'X\(/\)' \| \
21584	 .     : '\(.\)' 2>/dev/null ||
21585echo X"$ac_file" |
21586    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21587  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21588  	  /^X\(\/\/\)$/{ s//\1/; q; }
21589  	  /^X\(\/\).*/{ s//\1/; q; }
21590  	  s/.*/./; q'`
21591  { if $as_mkdir_p; then
21592    mkdir -p "$ac_dir"
21593  else
21594    as_dir="$ac_dir"
21595    as_dirs=
21596    while test ! -d "$as_dir"; do
21597      as_dirs="$as_dir $as_dirs"
21598      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21599$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21600	 X"$as_dir" : 'X\(//\)[^/]' \| \
21601	 X"$as_dir" : 'X\(//\)$' \| \
21602	 X"$as_dir" : 'X\(/\)' \| \
21603	 .     : '\(.\)' 2>/dev/null ||
21604echo X"$as_dir" |
21605    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21606  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21607  	  /^X\(\/\/\)$/{ s//\1/; q; }
21608  	  /^X\(\/\).*/{ s//\1/; q; }
21609  	  s/.*/./; q'`
21610    done
21611    test ! -n "$as_dirs" || mkdir $as_dirs
21612  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21613echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21614   { (exit 1); exit 1; }; }; }
21615
21616  ac_builddir=.
21617
21618if test "$ac_dir" != .; then
21619  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21620  # A "../" for each directory in $ac_dir_suffix.
21621  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21622else
21623  ac_dir_suffix= ac_top_builddir=
21624fi
21625
21626case $srcdir in
21627  .)  # No --srcdir option.  We are building in place.
21628    ac_srcdir=.
21629    if test -z "$ac_top_builddir"; then
21630       ac_top_srcdir=.
21631    else
21632       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21633    fi ;;
21634  [\\/]* | ?:[\\/]* )  # Absolute path.
21635    ac_srcdir=$srcdir$ac_dir_suffix;
21636    ac_top_srcdir=$srcdir ;;
21637  *) # Relative path.
21638    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21639    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21640esac
21641
21642# Do not use `cd foo && pwd` to compute absolute paths, because
21643# the directories may not exist.
21644case `pwd` in
21645.) ac_abs_builddir="$ac_dir";;
21646*)
21647  case "$ac_dir" in
21648  .) ac_abs_builddir=`pwd`;;
21649  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21650  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21651  esac;;
21652esac
21653case $ac_abs_builddir in
21654.) ac_abs_top_builddir=${ac_top_builddir}.;;
21655*)
21656  case ${ac_top_builddir}. in
21657  .) ac_abs_top_builddir=$ac_abs_builddir;;
21658  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21659  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21660  esac;;
21661esac
21662case $ac_abs_builddir in
21663.) ac_abs_srcdir=$ac_srcdir;;
21664*)
21665  case $ac_srcdir in
21666  .) ac_abs_srcdir=$ac_abs_builddir;;
21667  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21668  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21669  esac;;
21670esac
21671case $ac_abs_builddir in
21672.) ac_abs_top_srcdir=$ac_top_srcdir;;
21673*)
21674  case $ac_top_srcdir in
21675  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21676  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21677  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21678  esac;;
21679esac
21680
21681
21682  case $INSTALL in
21683  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21684  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21685  esac
21686
21687  if test x"$ac_file" != x-; then
21688    { echo "$as_me:$LINENO: creating $ac_file" >&5
21689echo "$as_me: creating $ac_file" >&6;}
21690    rm -f "$ac_file"
21691  fi
21692  # Let's still pretend it is `configure' which instantiates (i.e., don't
21693  # use $as_me), people would be surprised to read:
21694  #    /* config.h.  Generated by config.status.  */
21695  if test x"$ac_file" = x-; then
21696    configure_input=
21697  else
21698    configure_input="$ac_file.  "
21699  fi
21700  configure_input=$configure_input"Generated from `echo $ac_file_in |
21701				     sed 's,.*/,,'` by configure."
21702
21703  # First look for the input files in the build tree, otherwise in the
21704  # src tree.
21705  ac_file_inputs=`IFS=:
21706    for f in $ac_file_in; do
21707      case $f in
21708      -) echo $tmp/stdin ;;
21709      [\\/$]*)
21710	 # Absolute (can't be DOS-style, as IFS=:)
21711	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21712echo "$as_me: error: cannot find input file: $f" >&2;}
21713   { (exit 1); exit 1; }; }
21714	 echo "$f";;
21715      *) # Relative
21716	 if test -f "$f"; then
21717	   # Build tree
21718	   echo "$f"
21719	 elif test -f "$srcdir/$f"; then
21720	   # Source tree
21721	   echo "$srcdir/$f"
21722	 else
21723	   # /dev/null tree
21724	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21725echo "$as_me: error: cannot find input file: $f" >&2;}
21726   { (exit 1); exit 1; }; }
21727	 fi;;
21728      esac
21729    done` || { (exit 1); exit 1; }
21730_ACEOF
21731cat >>$CONFIG_STATUS <<_ACEOF
21732  sed "$ac_vpsub
21733$extrasub
21734_ACEOF
21735cat >>$CONFIG_STATUS <<\_ACEOF
21736:t
21737/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21738s,@configure_input@,$configure_input,;t t
21739s,@srcdir@,$ac_srcdir,;t t
21740s,@abs_srcdir@,$ac_abs_srcdir,;t t
21741s,@top_srcdir@,$ac_top_srcdir,;t t
21742s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21743s,@builddir@,$ac_builddir,;t t
21744s,@abs_builddir@,$ac_abs_builddir,;t t
21745s,@top_builddir@,$ac_top_builddir,;t t
21746s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21747s,@INSTALL@,$ac_INSTALL,;t t
21748" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21749  rm -f $tmp/stdin
21750  if test x"$ac_file" != x-; then
21751    mv $tmp/out $ac_file
21752  else
21753    cat $tmp/out
21754    rm -f $tmp/out
21755  fi
21756
21757done
21758_ACEOF
21759cat >>$CONFIG_STATUS <<\_ACEOF
21760
21761#
21762# CONFIG_HEADER section.
21763#
21764
21765# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21766# NAME is the cpp macro being defined and VALUE is the value it is being given.
21767#
21768# ac_d sets the value in "#define NAME VALUE" lines.
21769ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
21770ac_dB='[	 ].*$,\1#\2'
21771ac_dC=' '
21772ac_dD=',;t'
21773# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21774ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
21775ac_uB='$,\1#\2define\3'
21776ac_uC=' '
21777ac_uD=',;t'
21778
21779for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21780  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21781  case $ac_file in
21782  - | *:- | *:-:* ) # input from stdin
21783	cat >$tmp/stdin
21784	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21785	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21786  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21787	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21788  * )   ac_file_in=$ac_file.in ;;
21789  esac
21790
21791  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21792echo "$as_me: creating $ac_file" >&6;}
21793
21794  # First look for the input files in the build tree, otherwise in the
21795  # src tree.
21796  ac_file_inputs=`IFS=:
21797    for f in $ac_file_in; do
21798      case $f in
21799      -) echo $tmp/stdin ;;
21800      [\\/$]*)
21801	 # Absolute (can't be DOS-style, as IFS=:)
21802	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21803echo "$as_me: error: cannot find input file: $f" >&2;}
21804   { (exit 1); exit 1; }; }
21805	 # Do quote $f, to prevent DOS paths from being IFS'd.
21806	 echo "$f";;
21807      *) # Relative
21808	 if test -f "$f"; then
21809	   # Build tree
21810	   echo "$f"
21811	 elif test -f "$srcdir/$f"; then
21812	   # Source tree
21813	   echo "$srcdir/$f"
21814	 else
21815	   # /dev/null tree
21816	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21817echo "$as_me: error: cannot find input file: $f" >&2;}
21818   { (exit 1); exit 1; }; }
21819	 fi;;
21820      esac
21821    done` || { (exit 1); exit 1; }
21822  # Remove the trailing spaces.
21823  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
21824
21825_ACEOF
21826
21827# Transform confdefs.h into two sed scripts, `conftest.defines' and
21828# `conftest.undefs', that substitutes the proper values into
21829# config.h.in to produce config.h.  The first handles `#define'
21830# templates, and the second `#undef' templates.
21831# And first: Protect against being on the right side of a sed subst in
21832# config.status.  Protect against being in an unquoted here document
21833# in config.status.
21834rm -f conftest.defines conftest.undefs
21835# Using a here document instead of a string reduces the quoting nightmare.
21836# Putting comments in sed scripts is not portable.
21837#
21838# `end' is used to avoid that the second main sed command (meant for
21839# 0-ary CPP macros) applies to n-ary macro definitions.
21840# See the Autoconf documentation for `clear'.
21841cat >confdef2sed.sed <<\_ACEOF
21842s/[\\&,]/\\&/g
21843s,[\\$`],\\&,g
21844t clear
21845: clear
21846s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21847t end
21848s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21849: end
21850_ACEOF
21851# If some macros were called several times there might be several times
21852# the same #defines, which is useless.  Nevertheless, we may not want to
21853# sort them, since we want the *last* AC-DEFINE to be honored.
21854uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21855sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21856rm -f confdef2sed.sed
21857
21858# This sed command replaces #undef with comments.  This is necessary, for
21859# example, in the case of _POSIX_SOURCE, which is predefined and required
21860# on some systems where configure will not decide to define it.
21861cat >>conftest.undefs <<\_ACEOF
21862s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21863_ACEOF
21864
21865# Break up conftest.defines because some shells have a limit on the size
21866# of here documents, and old seds have small limits too (100 cmds).
21867echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21868echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21869echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21870echo '  :' >>$CONFIG_STATUS
21871rm -f conftest.tail
21872while grep . conftest.defines >/dev/null
21873do
21874  # Write a limited-size here document to $tmp/defines.sed.
21875  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21876  # Speed up: don't consider the non `#define' lines.
21877  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
21878  # Work around the forget-to-reset-the-flag bug.
21879  echo 't clr' >>$CONFIG_STATUS
21880  echo ': clr' >>$CONFIG_STATUS
21881  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21882  echo 'CEOF
21883  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21884  rm -f $tmp/in
21885  mv $tmp/out $tmp/in
21886' >>$CONFIG_STATUS
21887  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21888  rm -f conftest.defines
21889  mv conftest.tail conftest.defines
21890done
21891rm -f conftest.defines
21892echo '  fi # grep' >>$CONFIG_STATUS
21893echo >>$CONFIG_STATUS
21894
21895# Break up conftest.undefs because some shells have a limit on the size
21896# of here documents, and old seds have small limits too (100 cmds).
21897echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21898rm -f conftest.tail
21899while grep . conftest.undefs >/dev/null
21900do
21901  # Write a limited-size here document to $tmp/undefs.sed.
21902  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21903  # Speed up: don't consider the non `#undef'
21904  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
21905  # Work around the forget-to-reset-the-flag bug.
21906  echo 't clr' >>$CONFIG_STATUS
21907  echo ': clr' >>$CONFIG_STATUS
21908  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21909  echo 'CEOF
21910  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21911  rm -f $tmp/in
21912  mv $tmp/out $tmp/in
21913' >>$CONFIG_STATUS
21914  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21915  rm -f conftest.undefs
21916  mv conftest.tail conftest.undefs
21917done
21918rm -f conftest.undefs
21919
21920cat >>$CONFIG_STATUS <<\_ACEOF
21921  # Let's still pretend it is `configure' which instantiates (i.e., don't
21922  # use $as_me), people would be surprised to read:
21923  #    /* config.h.  Generated by config.status.  */
21924  if test x"$ac_file" = x-; then
21925    echo "/* Generated by configure.  */" >$tmp/config.h
21926  else
21927    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21928  fi
21929  cat $tmp/in >>$tmp/config.h
21930  rm -f $tmp/in
21931  if test x"$ac_file" != x-; then
21932    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21933      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21934echo "$as_me: $ac_file is unchanged" >&6;}
21935    else
21936      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21937$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21938	 X"$ac_file" : 'X\(//\)[^/]' \| \
21939	 X"$ac_file" : 'X\(//\)$' \| \
21940	 X"$ac_file" : 'X\(/\)' \| \
21941	 .     : '\(.\)' 2>/dev/null ||
21942echo X"$ac_file" |
21943    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21944  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21945  	  /^X\(\/\/\)$/{ s//\1/; q; }
21946  	  /^X\(\/\).*/{ s//\1/; q; }
21947  	  s/.*/./; q'`
21948      { if $as_mkdir_p; then
21949    mkdir -p "$ac_dir"
21950  else
21951    as_dir="$ac_dir"
21952    as_dirs=
21953    while test ! -d "$as_dir"; do
21954      as_dirs="$as_dir $as_dirs"
21955      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21956$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21957	 X"$as_dir" : 'X\(//\)[^/]' \| \
21958	 X"$as_dir" : 'X\(//\)$' \| \
21959	 X"$as_dir" : 'X\(/\)' \| \
21960	 .     : '\(.\)' 2>/dev/null ||
21961echo X"$as_dir" |
21962    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21963  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21964  	  /^X\(\/\/\)$/{ s//\1/; q; }
21965  	  /^X\(\/\).*/{ s//\1/; q; }
21966  	  s/.*/./; q'`
21967    done
21968    test ! -n "$as_dirs" || mkdir $as_dirs
21969  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21970echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21971   { (exit 1); exit 1; }; }; }
21972
21973      rm -f $ac_file
21974      mv $tmp/config.h $ac_file
21975    fi
21976  else
21977    cat $tmp/config.h
21978    rm -f $tmp/config.h
21979  fi
21980done
21981_ACEOF
21982
21983cat >>$CONFIG_STATUS <<\_ACEOF
21984
21985{ (exit 0); exit 0; }
21986_ACEOF
21987chmod +x $CONFIG_STATUS
21988ac_clean_files=$ac_clean_files_save
21989
21990
21991# configure is writing to config.log, and then calls config.status.
21992# config.status does its own redirection, appending to config.log.
21993# Unfortunately, on DOS this fails, as config.log is still kept open
21994# by configure, so config.status won't be able to write to it; its
21995# output is simply discarded.  So we exec the FD to /dev/null,
21996# effectively closing config.log, so it can be properly (re)opened and
21997# appended to by config.status.  When coming back to configure, we
21998# need to make the FD available again.
21999if test "$no_create" != yes; then
22000  ac_cs_success=:
22001  ac_config_status_args=
22002  test "$silent" = yes &&
22003    ac_config_status_args="$ac_config_status_args --quiet"
22004  exec 5>/dev/null
22005  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22006  exec 5>>config.log
22007  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22008  # would make configure fail if this is the last instruction.
22009  $ac_cs_success || { (exit 1); exit 1; }
22010fi
22011
22012
22013abs_srcdir="`cd $srcdir && pwd`"
22014abs_builddir="`pwd`"
22015if test "$abs_srcdir" != "$abs_builddir"; then
22016  make mkdir-init
22017fi
22018