xref: /minix/external/mit/expat/dist/configure (revision 0a6a1f1d)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for expat 2.1.0.
4#
5# Report bugs to <expat-bugs@libexpat.org>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: expat-bugs@libexpat.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='expat'
572PACKAGE_TARNAME='expat'
573PACKAGE_VERSION='2.1.0'
574PACKAGE_STRING='expat 2.1.0'
575PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
576PACKAGE_URL=''
577
578ac_unique_file="Makefile.in"
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593#  include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598#  include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_header_list=
616ac_subst_vars='LTLIBOBJS
617LIBOBJS
618FILEMAP
619INSTALL_DATA
620INSTALL_SCRIPT
621INSTALL_PROGRAM
622CXXCPP
623ac_ct_CXX
624CXXFLAGS
625CXX
626LIBAGE
627LIBREVISION
628LIBCURRENT
629CPP
630OTOOL64
631OTOOL
632LIPO
633NMEDIT
634DSYMUTIL
635MANIFEST_TOOL
636AWK
637RANLIB
638STRIP
639ac_ct_AR
640AR
641LN_S
642NM
643ac_ct_DUMPBIN
644DUMPBIN
645LD
646FGREP
647EGREP
648GREP
649SED
650OBJEXT
651EXEEXT
652ac_ct_CC
653CPPFLAGS
654LDFLAGS
655CFLAGS
656CC
657LIBTOOL
658OBJDUMP
659DLLTOOL
660AS
661host_os
662host_vendor
663host_cpu
664host
665build_os
666build_vendor
667build_cpu
668build
669target_alias
670host_alias
671build_alias
672LIBS
673ECHO_T
674ECHO_N
675ECHO_C
676DEFS
677mandir
678localedir
679libdir
680psdir
681pdfdir
682dvidir
683htmldir
684infodir
685docdir
686oldincludedir
687includedir
688localstatedir
689sharedstatedir
690sysconfdir
691datadir
692datarootdir
693libexecdir
694sbindir
695bindir
696program_transform_name
697prefix
698exec_prefix
699PACKAGE_URL
700PACKAGE_BUGREPORT
701PACKAGE_STRING
702PACKAGE_VERSION
703PACKAGE_TARNAME
704PACKAGE_NAME
705PATH_SEPARATOR
706SHELL'
707ac_subst_files=''
708ac_user_opts='
709enable_option_checking
710enable_shared
711enable_static
712with_pic
713enable_fast_install
714with_gnu_ld
715with_sysroot
716enable_libtool_lock
717'
718      ac_precious_vars='build_alias
719host_alias
720target_alias
721CC
722CFLAGS
723LDFLAGS
724LIBS
725CPPFLAGS
726CPP
727CXX
728CXXFLAGS
729CCC
730CXXCPP'
731
732
733# Initialize some variables set by options.
734ac_init_help=
735ac_init_version=false
736ac_unrecognized_opts=
737ac_unrecognized_sep=
738# The variables have the same names as the options, with
739# dashes changed to underlines.
740cache_file=/dev/null
741exec_prefix=NONE
742no_create=
743no_recursion=
744prefix=NONE
745program_prefix=NONE
746program_suffix=NONE
747program_transform_name=s,x,x,
748silent=
749site=
750srcdir=
751verbose=
752x_includes=NONE
753x_libraries=NONE
754
755# Installation directory options.
756# These are left unexpanded so users can "make install exec_prefix=/foo"
757# and all the variables that are supposed to be based on exec_prefix
758# by default will actually change.
759# Use braces instead of parens because sh, perl, etc. also accept them.
760# (The list follows the same order as the GNU Coding Standards.)
761bindir='${exec_prefix}/bin'
762sbindir='${exec_prefix}/sbin'
763libexecdir='${exec_prefix}/libexec'
764datarootdir='${prefix}/share'
765datadir='${datarootdir}'
766sysconfdir='${prefix}/etc'
767sharedstatedir='${prefix}/com'
768localstatedir='${prefix}/var'
769includedir='${prefix}/include'
770oldincludedir='/usr/include'
771docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772infodir='${datarootdir}/info'
773htmldir='${docdir}'
774dvidir='${docdir}'
775pdfdir='${docdir}'
776psdir='${docdir}'
777libdir='${exec_prefix}/lib'
778localedir='${datarootdir}/locale'
779mandir='${datarootdir}/man'
780
781ac_prev=
782ac_dashdash=
783for ac_option
784do
785  # If the previous option needs an argument, assign it.
786  if test -n "$ac_prev"; then
787    eval $ac_prev=\$ac_option
788    ac_prev=
789    continue
790  fi
791
792  case $ac_option in
793  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794  *=)   ac_optarg= ;;
795  *)    ac_optarg=yes ;;
796  esac
797
798  # Accept the important Cygnus configure options, so we can diagnose typos.
799
800  case $ac_dashdash$ac_option in
801  --)
802    ac_dashdash=yes ;;
803
804  -bindir | --bindir | --bindi | --bind | --bin | --bi)
805    ac_prev=bindir ;;
806  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807    bindir=$ac_optarg ;;
808
809  -build | --build | --buil | --bui | --bu)
810    ac_prev=build_alias ;;
811  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812    build_alias=$ac_optarg ;;
813
814  -cache-file | --cache-file | --cache-fil | --cache-fi \
815  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816    ac_prev=cache_file ;;
817  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
819    cache_file=$ac_optarg ;;
820
821  --config-cache | -C)
822    cache_file=config.cache ;;
823
824  -datadir | --datadir | --datadi | --datad)
825    ac_prev=datadir ;;
826  -datadir=* | --datadir=* | --datadi=* | --datad=*)
827    datadir=$ac_optarg ;;
828
829  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830  | --dataroo | --dataro | --datar)
831    ac_prev=datarootdir ;;
832  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834    datarootdir=$ac_optarg ;;
835
836  -disable-* | --disable-*)
837    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838    # Reject names that are not valid shell variable names.
839    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840      as_fn_error $? "invalid feature name: $ac_useropt"
841    ac_useropt_orig=$ac_useropt
842    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843    case $ac_user_opts in
844      *"
845"enable_$ac_useropt"
846"*) ;;
847      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
848	 ac_unrecognized_sep=', ';;
849    esac
850    eval enable_$ac_useropt=no ;;
851
852  -docdir | --docdir | --docdi | --doc | --do)
853    ac_prev=docdir ;;
854  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855    docdir=$ac_optarg ;;
856
857  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858    ac_prev=dvidir ;;
859  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860    dvidir=$ac_optarg ;;
861
862  -enable-* | --enable-*)
863    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864    # Reject names that are not valid shell variable names.
865    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866      as_fn_error $? "invalid feature name: $ac_useropt"
867    ac_useropt_orig=$ac_useropt
868    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869    case $ac_user_opts in
870      *"
871"enable_$ac_useropt"
872"*) ;;
873      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
874	 ac_unrecognized_sep=', ';;
875    esac
876    eval enable_$ac_useropt=\$ac_optarg ;;
877
878  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880  | --exec | --exe | --ex)
881    ac_prev=exec_prefix ;;
882  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884  | --exec=* | --exe=* | --ex=*)
885    exec_prefix=$ac_optarg ;;
886
887  -gas | --gas | --ga | --g)
888    # Obsolete; use --with-gas.
889    with_gas=yes ;;
890
891  -help | --help | --hel | --he | -h)
892    ac_init_help=long ;;
893  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894    ac_init_help=recursive ;;
895  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896    ac_init_help=short ;;
897
898  -host | --host | --hos | --ho)
899    ac_prev=host_alias ;;
900  -host=* | --host=* | --hos=* | --ho=*)
901    host_alias=$ac_optarg ;;
902
903  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904    ac_prev=htmldir ;;
905  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906  | --ht=*)
907    htmldir=$ac_optarg ;;
908
909  -includedir | --includedir | --includedi | --included | --include \
910  | --includ | --inclu | --incl | --inc)
911    ac_prev=includedir ;;
912  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913  | --includ=* | --inclu=* | --incl=* | --inc=*)
914    includedir=$ac_optarg ;;
915
916  -infodir | --infodir | --infodi | --infod | --info | --inf)
917    ac_prev=infodir ;;
918  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919    infodir=$ac_optarg ;;
920
921  -libdir | --libdir | --libdi | --libd)
922    ac_prev=libdir ;;
923  -libdir=* | --libdir=* | --libdi=* | --libd=*)
924    libdir=$ac_optarg ;;
925
926  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927  | --libexe | --libex | --libe)
928    ac_prev=libexecdir ;;
929  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930  | --libexe=* | --libex=* | --libe=*)
931    libexecdir=$ac_optarg ;;
932
933  -localedir | --localedir | --localedi | --localed | --locale)
934    ac_prev=localedir ;;
935  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936    localedir=$ac_optarg ;;
937
938  -localstatedir | --localstatedir | --localstatedi | --localstated \
939  | --localstate | --localstat | --localsta | --localst | --locals)
940    ac_prev=localstatedir ;;
941  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943    localstatedir=$ac_optarg ;;
944
945  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946    ac_prev=mandir ;;
947  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948    mandir=$ac_optarg ;;
949
950  -nfp | --nfp | --nf)
951    # Obsolete; use --without-fp.
952    with_fp=no ;;
953
954  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955  | --no-cr | --no-c | -n)
956    no_create=yes ;;
957
958  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960    no_recursion=yes ;;
961
962  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964  | --oldin | --oldi | --old | --ol | --o)
965    ac_prev=oldincludedir ;;
966  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969    oldincludedir=$ac_optarg ;;
970
971  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972    ac_prev=prefix ;;
973  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974    prefix=$ac_optarg ;;
975
976  -program-prefix | --program-prefix | --program-prefi | --program-pref \
977  | --program-pre | --program-pr | --program-p)
978    ac_prev=program_prefix ;;
979  -program-prefix=* | --program-prefix=* | --program-prefi=* \
980  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981    program_prefix=$ac_optarg ;;
982
983  -program-suffix | --program-suffix | --program-suffi | --program-suff \
984  | --program-suf | --program-su | --program-s)
985    ac_prev=program_suffix ;;
986  -program-suffix=* | --program-suffix=* | --program-suffi=* \
987  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988    program_suffix=$ac_optarg ;;
989
990  -program-transform-name | --program-transform-name \
991  | --program-transform-nam | --program-transform-na \
992  | --program-transform-n | --program-transform- \
993  | --program-transform | --program-transfor \
994  | --program-transfo | --program-transf \
995  | --program-trans | --program-tran \
996  | --progr-tra | --program-tr | --program-t)
997    ac_prev=program_transform_name ;;
998  -program-transform-name=* | --program-transform-name=* \
999  | --program-transform-nam=* | --program-transform-na=* \
1000  | --program-transform-n=* | --program-transform-=* \
1001  | --program-transform=* | --program-transfor=* \
1002  | --program-transfo=* | --program-transf=* \
1003  | --program-trans=* | --program-tran=* \
1004  | --progr-tra=* | --program-tr=* | --program-t=*)
1005    program_transform_name=$ac_optarg ;;
1006
1007  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008    ac_prev=pdfdir ;;
1009  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010    pdfdir=$ac_optarg ;;
1011
1012  -psdir | --psdir | --psdi | --psd | --ps)
1013    ac_prev=psdir ;;
1014  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015    psdir=$ac_optarg ;;
1016
1017  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018  | -silent | --silent | --silen | --sile | --sil)
1019    silent=yes ;;
1020
1021  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022    ac_prev=sbindir ;;
1023  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024  | --sbi=* | --sb=*)
1025    sbindir=$ac_optarg ;;
1026
1027  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029  | --sharedst | --shareds | --shared | --share | --shar \
1030  | --sha | --sh)
1031    ac_prev=sharedstatedir ;;
1032  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035  | --sha=* | --sh=*)
1036    sharedstatedir=$ac_optarg ;;
1037
1038  -site | --site | --sit)
1039    ac_prev=site ;;
1040  -site=* | --site=* | --sit=*)
1041    site=$ac_optarg ;;
1042
1043  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044    ac_prev=srcdir ;;
1045  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046    srcdir=$ac_optarg ;;
1047
1048  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049  | --syscon | --sysco | --sysc | --sys | --sy)
1050    ac_prev=sysconfdir ;;
1051  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053    sysconfdir=$ac_optarg ;;
1054
1055  -target | --target | --targe | --targ | --tar | --ta | --t)
1056    ac_prev=target_alias ;;
1057  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058    target_alias=$ac_optarg ;;
1059
1060  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061    verbose=yes ;;
1062
1063  -version | --version | --versio | --versi | --vers | -V)
1064    ac_init_version=: ;;
1065
1066  -with-* | --with-*)
1067    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068    # Reject names that are not valid shell variable names.
1069    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070      as_fn_error $? "invalid package name: $ac_useropt"
1071    ac_useropt_orig=$ac_useropt
1072    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073    case $ac_user_opts in
1074      *"
1075"with_$ac_useropt"
1076"*) ;;
1077      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1078	 ac_unrecognized_sep=', ';;
1079    esac
1080    eval with_$ac_useropt=\$ac_optarg ;;
1081
1082  -without-* | --without-*)
1083    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1084    # Reject names that are not valid shell variable names.
1085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086      as_fn_error $? "invalid package name: $ac_useropt"
1087    ac_useropt_orig=$ac_useropt
1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089    case $ac_user_opts in
1090      *"
1091"with_$ac_useropt"
1092"*) ;;
1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1094	 ac_unrecognized_sep=', ';;
1095    esac
1096    eval with_$ac_useropt=no ;;
1097
1098  --x)
1099    # Obsolete; use --with-x.
1100    with_x=yes ;;
1101
1102  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103  | --x-incl | --x-inc | --x-in | --x-i)
1104    ac_prev=x_includes ;;
1105  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1107    x_includes=$ac_optarg ;;
1108
1109  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111    ac_prev=x_libraries ;;
1112  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1114    x_libraries=$ac_optarg ;;
1115
1116  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1117Try \`$0 --help' for more information"
1118    ;;
1119
1120  *=*)
1121    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1122    # Reject names that are not valid shell variable names.
1123    case $ac_envvar in #(
1124      '' | [0-9]* | *[!_$as_cr_alnum]* )
1125      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1126    esac
1127    eval $ac_envvar=\$ac_optarg
1128    export $ac_envvar ;;
1129
1130  *)
1131    # FIXME: should be removed in autoconf 3.0.
1132    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1133    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1134      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1135    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1136    ;;
1137
1138  esac
1139done
1140
1141if test -n "$ac_prev"; then
1142  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1143  as_fn_error $? "missing argument to $ac_option"
1144fi
1145
1146if test -n "$ac_unrecognized_opts"; then
1147  case $enable_option_checking in
1148    no) ;;
1149    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1150    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1151  esac
1152fi
1153
1154# Check all directory arguments for consistency.
1155for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1156		datadir sysconfdir sharedstatedir localstatedir includedir \
1157		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1158		libdir localedir mandir
1159do
1160  eval ac_val=\$$ac_var
1161  # Remove trailing slashes.
1162  case $ac_val in
1163    */ )
1164      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1165      eval $ac_var=\$ac_val;;
1166  esac
1167  # Be sure to have absolute directory names.
1168  case $ac_val in
1169    [\\/$]* | ?:[\\/]* )  continue;;
1170    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1171  esac
1172  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1173done
1174
1175# There might be people who depend on the old broken behavior: `$host'
1176# used to hold the argument of --host etc.
1177# FIXME: To remove some day.
1178build=$build_alias
1179host=$host_alias
1180target=$target_alias
1181
1182# FIXME: To remove some day.
1183if test "x$host_alias" != x; then
1184  if test "x$build_alias" = x; then
1185    cross_compiling=maybe
1186    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1187    If a cross compiler is detected then cross compile mode will be used" >&2
1188  elif test "x$build_alias" != "x$host_alias"; then
1189    cross_compiling=yes
1190  fi
1191fi
1192
1193ac_tool_prefix=
1194test -n "$host_alias" && ac_tool_prefix=$host_alias-
1195
1196test "$silent" = yes && exec 6>/dev/null
1197
1198
1199ac_pwd=`pwd` && test -n "$ac_pwd" &&
1200ac_ls_di=`ls -di .` &&
1201ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1202  as_fn_error $? "working directory cannot be determined"
1203test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204  as_fn_error $? "pwd does not report name of working directory"
1205
1206
1207# Find the source files, if location was not specified.
1208if test -z "$srcdir"; then
1209  ac_srcdir_defaulted=yes
1210  # Try the directory containing this script, then the parent directory.
1211  ac_confdir=`$as_dirname -- "$as_myself" ||
1212$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213	 X"$as_myself" : 'X\(//\)[^/]' \| \
1214	 X"$as_myself" : 'X\(//\)$' \| \
1215	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1216$as_echo X"$as_myself" |
1217    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1218	    s//\1/
1219	    q
1220	  }
1221	  /^X\(\/\/\)[^/].*/{
1222	    s//\1/
1223	    q
1224	  }
1225	  /^X\(\/\/\)$/{
1226	    s//\1/
1227	    q
1228	  }
1229	  /^X\(\/\).*/{
1230	    s//\1/
1231	    q
1232	  }
1233	  s/.*/./; q'`
1234  srcdir=$ac_confdir
1235  if test ! -r "$srcdir/$ac_unique_file"; then
1236    srcdir=..
1237  fi
1238else
1239  ac_srcdir_defaulted=no
1240fi
1241if test ! -r "$srcdir/$ac_unique_file"; then
1242  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1243  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1244fi
1245ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1246ac_abs_confdir=`(
1247	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1248	pwd)`
1249# When building in place, set srcdir=.
1250if test "$ac_abs_confdir" = "$ac_pwd"; then
1251  srcdir=.
1252fi
1253# Remove unnecessary trailing slashes from srcdir.
1254# Double slashes in file names in object file debugging info
1255# mess up M-x gdb in Emacs.
1256case $srcdir in
1257*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1258esac
1259for ac_var in $ac_precious_vars; do
1260  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1261  eval ac_env_${ac_var}_value=\$${ac_var}
1262  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1263  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1264done
1265
1266#
1267# Report the --help message.
1268#
1269if test "$ac_init_help" = "long"; then
1270  # Omit some internal or obsolete options to make the list less imposing.
1271  # This message is too long to be a string in the A/UX 3.1 sh.
1272  cat <<_ACEOF
1273\`configure' configures expat 2.1.0 to adapt to many kinds of systems.
1274
1275Usage: $0 [OPTION]... [VAR=VALUE]...
1276
1277To assign environment variables (e.g., CC, CFLAGS...), specify them as
1278VAR=VALUE.  See below for descriptions of some of the useful variables.
1279
1280Defaults for the options are specified in brackets.
1281
1282Configuration:
1283  -h, --help              display this help and exit
1284      --help=short        display options specific to this package
1285      --help=recursive    display the short help of all the included packages
1286  -V, --version           display version information and exit
1287  -q, --quiet, --silent   do not print \`checking ...' messages
1288      --cache-file=FILE   cache test results in FILE [disabled]
1289  -C, --config-cache      alias for \`--cache-file=config.cache'
1290  -n, --no-create         do not create output files
1291      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1292
1293Installation directories:
1294  --prefix=PREFIX         install architecture-independent files in PREFIX
1295                          [$ac_default_prefix]
1296  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1297                          [PREFIX]
1298
1299By default, \`make install' will install all the files in
1300\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1301an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1302for instance \`--prefix=\$HOME'.
1303
1304For better control, use the options below.
1305
1306Fine tuning of the installation directories:
1307  --bindir=DIR            user executables [EPREFIX/bin]
1308  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1309  --libexecdir=DIR        program executables [EPREFIX/libexec]
1310  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1311  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1312  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1313  --libdir=DIR            object code libraries [EPREFIX/lib]
1314  --includedir=DIR        C header files [PREFIX/include]
1315  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1316  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1317  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1318  --infodir=DIR           info documentation [DATAROOTDIR/info]
1319  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1320  --mandir=DIR            man documentation [DATAROOTDIR/man]
1321  --docdir=DIR            documentation root [DATAROOTDIR/doc/expat]
1322  --htmldir=DIR           html documentation [DOCDIR]
1323  --dvidir=DIR            dvi documentation [DOCDIR]
1324  --pdfdir=DIR            pdf documentation [DOCDIR]
1325  --psdir=DIR             ps documentation [DOCDIR]
1326_ACEOF
1327
1328  cat <<\_ACEOF
1329
1330System types:
1331  --build=BUILD     configure for building on BUILD [guessed]
1332  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1333_ACEOF
1334fi
1335
1336if test -n "$ac_init_help"; then
1337  case $ac_init_help in
1338     short | recursive ) echo "Configuration of expat 2.1.0:";;
1339   esac
1340  cat <<\_ACEOF
1341
1342Optional Features:
1343  --disable-option-checking  ignore unrecognized --enable/--with options
1344  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1345  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1346  --enable-shared[=PKGS]  build shared libraries [default=yes]
1347  --enable-static[=PKGS]  build static libraries [default=yes]
1348  --enable-fast-install[=PKGS]
1349                          optimize for fast installation [default=yes]
1350  --disable-libtool-lock  avoid locking (might break parallel builds)
1351
1352Optional Packages:
1353  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1354  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1355  --with-pic              try to use only PIC/non-PIC objects [default=use
1356                          both]
1357  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1358  --with-sysroot=DIR Search for dependent libraries within DIR
1359                        (or the compiler's sysroot if not specified).
1360
1361Some influential environment variables:
1362  CC          C compiler command
1363  CFLAGS      C compiler flags
1364  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1365              nonstandard directory <lib dir>
1366  LIBS        libraries to pass to the linker, e.g. -l<library>
1367  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1368              you have headers in a nonstandard directory <include dir>
1369  CPP         C preprocessor
1370  CXX         C++ compiler command
1371  CXXFLAGS    C++ compiler flags
1372  CXXCPP      C++ preprocessor
1373
1374Use these variables to override the choices made by `configure' or to help
1375it to find libraries and programs with nonstandard names/locations.
1376
1377Report bugs to <expat-bugs@libexpat.org>.
1378_ACEOF
1379ac_status=$?
1380fi
1381
1382if test "$ac_init_help" = "recursive"; then
1383  # If there are subdirs, report their specific --help.
1384  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385    test -d "$ac_dir" ||
1386      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1387      continue
1388    ac_builddir=.
1389
1390case "$ac_dir" in
1391.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392*)
1393  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1394  # A ".." for each directory in $ac_dir_suffix.
1395  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1396  case $ac_top_builddir_sub in
1397  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399  esac ;;
1400esac
1401ac_abs_top_builddir=$ac_pwd
1402ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403# for backward compatibility:
1404ac_top_builddir=$ac_top_build_prefix
1405
1406case $srcdir in
1407  .)  # We are building in place.
1408    ac_srcdir=.
1409    ac_top_srcdir=$ac_top_builddir_sub
1410    ac_abs_top_srcdir=$ac_pwd ;;
1411  [\\/]* | ?:[\\/]* )  # Absolute name.
1412    ac_srcdir=$srcdir$ac_dir_suffix;
1413    ac_top_srcdir=$srcdir
1414    ac_abs_top_srcdir=$srcdir ;;
1415  *) # Relative name.
1416    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417    ac_top_srcdir=$ac_top_build_prefix$srcdir
1418    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419esac
1420ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422    cd "$ac_dir" || { ac_status=$?; continue; }
1423    # Check for guested configure.
1424    if test -f "$ac_srcdir/configure.gnu"; then
1425      echo &&
1426      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427    elif test -f "$ac_srcdir/configure"; then
1428      echo &&
1429      $SHELL "$ac_srcdir/configure" --help=recursive
1430    else
1431      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432    fi || ac_status=$?
1433    cd "$ac_pwd" || { ac_status=$?; break; }
1434  done
1435fi
1436
1437test -n "$ac_init_help" && exit $ac_status
1438if $ac_init_version; then
1439  cat <<\_ACEOF
1440expat configure 2.1.0
1441generated by GNU Autoconf 2.68
1442
1443Copyright (C) 2010 Free Software Foundation, Inc.
1444This configure script is free software; the Free Software Foundation
1445gives unlimited permission to copy, distribute and modify it.
1446_ACEOF
1447  exit
1448fi
1449
1450## ------------------------ ##
1451## Autoconf initialization. ##
1452## ------------------------ ##
1453
1454# ac_fn_c_try_compile LINENO
1455# --------------------------
1456# Try to compile conftest.$ac_ext, and return whether this succeeded.
1457ac_fn_c_try_compile ()
1458{
1459  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1460  rm -f conftest.$ac_objext
1461  if { { ac_try="$ac_compile"
1462case "(($ac_try" in
1463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1464  *) ac_try_echo=$ac_try;;
1465esac
1466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1467$as_echo "$ac_try_echo"; } >&5
1468  (eval "$ac_compile") 2>conftest.err
1469  ac_status=$?
1470  if test -s conftest.err; then
1471    grep -v '^ *+' conftest.err >conftest.er1
1472    cat conftest.er1 >&5
1473    mv -f conftest.er1 conftest.err
1474  fi
1475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1476  test $ac_status = 0; } && {
1477	 test -z "$ac_c_werror_flag" ||
1478	 test ! -s conftest.err
1479       } && test -s conftest.$ac_objext; then :
1480  ac_retval=0
1481else
1482  $as_echo "$as_me: failed program was:" >&5
1483sed 's/^/| /' conftest.$ac_ext >&5
1484
1485	ac_retval=1
1486fi
1487  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1488  as_fn_set_status $ac_retval
1489
1490} # ac_fn_c_try_compile
1491
1492# ac_fn_c_try_link LINENO
1493# -----------------------
1494# Try to link conftest.$ac_ext, and return whether this succeeded.
1495ac_fn_c_try_link ()
1496{
1497  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498  rm -f conftest.$ac_objext conftest$ac_exeext
1499  if { { ac_try="$ac_link"
1500case "(($ac_try" in
1501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502  *) ac_try_echo=$ac_try;;
1503esac
1504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505$as_echo "$ac_try_echo"; } >&5
1506  (eval "$ac_link") 2>conftest.err
1507  ac_status=$?
1508  if test -s conftest.err; then
1509    grep -v '^ *+' conftest.err >conftest.er1
1510    cat conftest.er1 >&5
1511    mv -f conftest.er1 conftest.err
1512  fi
1513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514  test $ac_status = 0; } && {
1515	 test -z "$ac_c_werror_flag" ||
1516	 test ! -s conftest.err
1517       } && test -s conftest$ac_exeext && {
1518	 test "$cross_compiling" = yes ||
1519	 $as_test_x conftest$ac_exeext
1520       }; then :
1521  ac_retval=0
1522else
1523  $as_echo "$as_me: failed program was:" >&5
1524sed 's/^/| /' conftest.$ac_ext >&5
1525
1526	ac_retval=1
1527fi
1528  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1529  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1530  # interfere with the next link command; also delete a directory that is
1531  # left behind by Apple's compiler.  We do this before executing the actions.
1532  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1533  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534  as_fn_set_status $ac_retval
1535
1536} # ac_fn_c_try_link
1537
1538# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1539# -------------------------------------------------------
1540# Tests whether HEADER exists and can be compiled using the include files in
1541# INCLUDES, setting the cache variable VAR accordingly.
1542ac_fn_c_check_header_compile ()
1543{
1544  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1546$as_echo_n "checking for $2... " >&6; }
1547if eval \${$3+:} false; then :
1548  $as_echo_n "(cached) " >&6
1549else
1550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1551/* end confdefs.h.  */
1552$4
1553#include <$2>
1554_ACEOF
1555if ac_fn_c_try_compile "$LINENO"; then :
1556  eval "$3=yes"
1557else
1558  eval "$3=no"
1559fi
1560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1561fi
1562eval ac_res=\$$3
1563	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564$as_echo "$ac_res" >&6; }
1565  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566
1567} # ac_fn_c_check_header_compile
1568
1569# ac_fn_c_try_cpp LINENO
1570# ----------------------
1571# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_c_try_cpp ()
1573{
1574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575  if { { ac_try="$ac_cpp conftest.$ac_ext"
1576case "(($ac_try" in
1577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578  *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1583  ac_status=$?
1584  if test -s conftest.err; then
1585    grep -v '^ *+' conftest.err >conftest.er1
1586    cat conftest.er1 >&5
1587    mv -f conftest.er1 conftest.err
1588  fi
1589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590  test $ac_status = 0; } > conftest.i && {
1591	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1592	 test ! -s conftest.err
1593       }; then :
1594  ac_retval=0
1595else
1596  $as_echo "$as_me: failed program was:" >&5
1597sed 's/^/| /' conftest.$ac_ext >&5
1598
1599    ac_retval=1
1600fi
1601  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602  as_fn_set_status $ac_retval
1603
1604} # ac_fn_c_try_cpp
1605
1606# ac_fn_c_try_run LINENO
1607# ----------------------
1608# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1609# that executables *can* be run.
1610ac_fn_c_try_run ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  if { { ac_try="$ac_link"
1614case "(($ac_try" in
1615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616  *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620  (eval "$ac_link") 2>&5
1621  ac_status=$?
1622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1624  { { case "(($ac_try" in
1625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626  *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630  (eval "$ac_try") 2>&5
1631  ac_status=$?
1632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633  test $ac_status = 0; }; }; then :
1634  ac_retval=0
1635else
1636  $as_echo "$as_me: program exited with status $ac_status" >&5
1637       $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640       ac_retval=$ac_status
1641fi
1642  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644  as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_run
1647
1648# ac_fn_c_check_func LINENO FUNC VAR
1649# ----------------------------------
1650# Tests whether FUNC exists, setting the cache variable VAR accordingly
1651ac_fn_c_check_func ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655$as_echo_n "checking for $2... " >&6; }
1656if eval \${$3+:} false; then :
1657  $as_echo_n "(cached) " >&6
1658else
1659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h.  */
1661/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1662   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1663#define $2 innocuous_$2
1664
1665/* System header to define __stub macros and hopefully few prototypes,
1666    which can conflict with char $2 (); below.
1667    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1668    <limits.h> exists even on freestanding compilers.  */
1669
1670#ifdef __STDC__
1671# include <limits.h>
1672#else
1673# include <assert.h>
1674#endif
1675
1676#undef $2
1677
1678/* Override any GCC internal prototype to avoid an error.
1679   Use char because int might match the return type of a GCC
1680   builtin and then its argument prototype would still apply.  */
1681#ifdef __cplusplus
1682extern "C"
1683#endif
1684char $2 ();
1685/* The GNU C library defines this for functions which it implements
1686    to always fail with ENOSYS.  Some functions are actually named
1687    something starting with __ and the normal name is an alias.  */
1688#if defined __stub_$2 || defined __stub___$2
1689choke me
1690#endif
1691
1692int
1693main ()
1694{
1695return $2 ();
1696  ;
1697  return 0;
1698}
1699_ACEOF
1700if ac_fn_c_try_link "$LINENO"; then :
1701  eval "$3=yes"
1702else
1703  eval "$3=no"
1704fi
1705rm -f core conftest.err conftest.$ac_objext \
1706    conftest$ac_exeext conftest.$ac_ext
1707fi
1708eval ac_res=\$$3
1709	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710$as_echo "$ac_res" >&6; }
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713} # ac_fn_c_check_func
1714
1715# ac_fn_cxx_try_compile LINENO
1716# ----------------------------
1717# Try to compile conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_cxx_try_compile ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  rm -f conftest.$ac_objext
1722  if { { ac_try="$ac_compile"
1723case "(($ac_try" in
1724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725  *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729  (eval "$ac_compile") 2>conftest.err
1730  ac_status=$?
1731  if test -s conftest.err; then
1732    grep -v '^ *+' conftest.err >conftest.er1
1733    cat conftest.er1 >&5
1734    mv -f conftest.er1 conftest.err
1735  fi
1736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737  test $ac_status = 0; } && {
1738	 test -z "$ac_cxx_werror_flag" ||
1739	 test ! -s conftest.err
1740       } && test -s conftest.$ac_objext; then :
1741  ac_retval=0
1742else
1743  $as_echo "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746	ac_retval=1
1747fi
1748  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749  as_fn_set_status $ac_retval
1750
1751} # ac_fn_cxx_try_compile
1752
1753# ac_fn_cxx_try_cpp LINENO
1754# ------------------------
1755# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756ac_fn_cxx_try_cpp ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  if { { ac_try="$ac_cpp conftest.$ac_ext"
1760case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767  ac_status=$?
1768  if test -s conftest.err; then
1769    grep -v '^ *+' conftest.err >conftest.er1
1770    cat conftest.er1 >&5
1771    mv -f conftest.er1 conftest.err
1772  fi
1773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774  test $ac_status = 0; } > conftest.i && {
1775	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1776	 test ! -s conftest.err
1777       }; then :
1778  ac_retval=0
1779else
1780  $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783    ac_retval=1
1784fi
1785  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786  as_fn_set_status $ac_retval
1787
1788} # ac_fn_cxx_try_cpp
1789
1790# ac_fn_cxx_try_link LINENO
1791# -------------------------
1792# Try to link conftest.$ac_ext, and return whether this succeeded.
1793ac_fn_cxx_try_link ()
1794{
1795  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796  rm -f conftest.$ac_objext conftest$ac_exeext
1797  if { { ac_try="$ac_link"
1798case "(($ac_try" in
1799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800  *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803$as_echo "$ac_try_echo"; } >&5
1804  (eval "$ac_link") 2>conftest.err
1805  ac_status=$?
1806  if test -s conftest.err; then
1807    grep -v '^ *+' conftest.err >conftest.er1
1808    cat conftest.er1 >&5
1809    mv -f conftest.er1 conftest.err
1810  fi
1811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812  test $ac_status = 0; } && {
1813	 test -z "$ac_cxx_werror_flag" ||
1814	 test ! -s conftest.err
1815       } && test -s conftest$ac_exeext && {
1816	 test "$cross_compiling" = yes ||
1817	 $as_test_x conftest$ac_exeext
1818       }; then :
1819  ac_retval=0
1820else
1821  $as_echo "$as_me: failed program was:" >&5
1822sed 's/^/| /' conftest.$ac_ext >&5
1823
1824	ac_retval=1
1825fi
1826  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828  # interfere with the next link command; also delete a directory that is
1829  # left behind by Apple's compiler.  We do this before executing the actions.
1830  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832  as_fn_set_status $ac_retval
1833
1834} # ac_fn_cxx_try_link
1835
1836# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1837# -------------------------------------------
1838# Tests whether TYPE exists after having included INCLUDES, setting cache
1839# variable VAR accordingly.
1840ac_fn_c_check_type ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844$as_echo_n "checking for $2... " >&6; }
1845if eval \${$3+:} false; then :
1846  $as_echo_n "(cached) " >&6
1847else
1848  eval "$3=no"
1849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851$4
1852int
1853main ()
1854{
1855if (sizeof ($2))
1856	 return 0;
1857  ;
1858  return 0;
1859}
1860_ACEOF
1861if ac_fn_c_try_compile "$LINENO"; then :
1862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863/* end confdefs.h.  */
1864$4
1865int
1866main ()
1867{
1868if (sizeof (($2)))
1869	    return 0;
1870  ;
1871  return 0;
1872}
1873_ACEOF
1874if ac_fn_c_try_compile "$LINENO"; then :
1875
1876else
1877  eval "$3=yes"
1878fi
1879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880fi
1881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882fi
1883eval ac_res=\$$3
1884	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885$as_echo "$ac_res" >&6; }
1886  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887
1888} # ac_fn_c_check_type
1889
1890# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1891# -------------------------------------------------------
1892# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1893# the include files in INCLUDES and setting the cache variable VAR
1894# accordingly.
1895ac_fn_c_check_header_mongrel ()
1896{
1897  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898  if eval \${$3+:} false; then :
1899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900$as_echo_n "checking for $2... " >&6; }
1901if eval \${$3+:} false; then :
1902  $as_echo_n "(cached) " >&6
1903fi
1904eval ac_res=\$$3
1905	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906$as_echo "$ac_res" >&6; }
1907else
1908  # Is the header compilable?
1909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1910$as_echo_n "checking $2 usability... " >&6; }
1911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912/* end confdefs.h.  */
1913$4
1914#include <$2>
1915_ACEOF
1916if ac_fn_c_try_compile "$LINENO"; then :
1917  ac_header_compiler=yes
1918else
1919  ac_header_compiler=no
1920fi
1921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1923$as_echo "$ac_header_compiler" >&6; }
1924
1925# Is the header present?
1926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1927$as_echo_n "checking $2 presence... " >&6; }
1928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929/* end confdefs.h.  */
1930#include <$2>
1931_ACEOF
1932if ac_fn_c_try_cpp "$LINENO"; then :
1933  ac_header_preproc=yes
1934else
1935  ac_header_preproc=no
1936fi
1937rm -f conftest.err conftest.i conftest.$ac_ext
1938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1939$as_echo "$ac_header_preproc" >&6; }
1940
1941# So?  What about this header?
1942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1943  yes:no: )
1944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1945$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1946    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1947$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1948    ;;
1949  no:yes:* )
1950    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1951$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1952    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1953$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1954    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1955$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1956    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1957$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1958    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960( $as_echo "## -------------------------------------- ##
1961## Report this to expat-bugs@libexpat.org ##
1962## -------------------------------------- ##"
1963     ) | sed "s/^/$as_me: WARNING:     /" >&2
1964    ;;
1965esac
1966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval \${$3+:} false; then :
1969  $as_echo_n "(cached) " >&6
1970else
1971  eval "$3=\$ac_header_compiler"
1972fi
1973eval ac_res=\$$3
1974	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975$as_echo "$ac_res" >&6; }
1976fi
1977  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978
1979} # ac_fn_c_check_header_mongrel
1980cat >config.log <<_ACEOF
1981This file contains any messages produced by compilers while
1982running configure, to aid debugging if configure makes a mistake.
1983
1984It was created by expat $as_me 2.1.0, which was
1985generated by GNU Autoconf 2.68.  Invocation command line was
1986
1987  $ $0 $@
1988
1989_ACEOF
1990exec 5>>config.log
1991{
1992cat <<_ASUNAME
1993## --------- ##
1994## Platform. ##
1995## --------- ##
1996
1997hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1998uname -m = `(uname -m) 2>/dev/null || echo unknown`
1999uname -r = `(uname -r) 2>/dev/null || echo unknown`
2000uname -s = `(uname -s) 2>/dev/null || echo unknown`
2001uname -v = `(uname -v) 2>/dev/null || echo unknown`
2002
2003/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2004/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2005
2006/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2007/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2008/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2009/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2010/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2011/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2012/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2013
2014_ASUNAME
2015
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019  IFS=$as_save_IFS
2020  test -z "$as_dir" && as_dir=.
2021    $as_echo "PATH: $as_dir"
2022  done
2023IFS=$as_save_IFS
2024
2025} >&5
2026
2027cat >&5 <<_ACEOF
2028
2029
2030## ----------- ##
2031## Core tests. ##
2032## ----------- ##
2033
2034_ACEOF
2035
2036
2037# Keep a trace of the command line.
2038# Strip out --no-create and --no-recursion so they do not pile up.
2039# Strip out --silent because we don't want to record it for future runs.
2040# Also quote any args containing shell meta-characters.
2041# Make two passes to allow for proper duplicate-argument suppression.
2042ac_configure_args=
2043ac_configure_args0=
2044ac_configure_args1=
2045ac_must_keep_next=false
2046for ac_pass in 1 2
2047do
2048  for ac_arg
2049  do
2050    case $ac_arg in
2051    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053    | -silent | --silent | --silen | --sile | --sil)
2054      continue ;;
2055    *\'*)
2056      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2057    esac
2058    case $ac_pass in
2059    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2060    2)
2061      as_fn_append ac_configure_args1 " '$ac_arg'"
2062      if test $ac_must_keep_next = true; then
2063	ac_must_keep_next=false # Got value, back to normal.
2064      else
2065	case $ac_arg in
2066	  *=* | --config-cache | -C | -disable-* | --disable-* \
2067	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069	  | -with-* | --with-* | -without-* | --without-* | --x)
2070	    case "$ac_configure_args0 " in
2071	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072	    esac
2073	    ;;
2074	  -* ) ac_must_keep_next=true ;;
2075	esac
2076      fi
2077      as_fn_append ac_configure_args " '$ac_arg'"
2078      ;;
2079    esac
2080  done
2081done
2082{ ac_configure_args0=; unset ac_configure_args0;}
2083{ ac_configure_args1=; unset ac_configure_args1;}
2084
2085# When interrupted or exit'd, cleanup temporary files, and complete
2086# config.log.  We remove comments because anyway the quotes in there
2087# would cause problems or look ugly.
2088# WARNING: Use '\'' to represent an apostrophe within the trap.
2089# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2090trap 'exit_status=$?
2091  # Save into config.log some information that might help in debugging.
2092  {
2093    echo
2094
2095    $as_echo "## ---------------- ##
2096## Cache variables. ##
2097## ---------------- ##"
2098    echo
2099    # The following way of writing the cache mishandles newlines in values,
2100(
2101  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102    eval ac_val=\$$ac_var
2103    case $ac_val in #(
2104    *${as_nl}*)
2105      case $ac_var in #(
2106      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108      esac
2109      case $ac_var in #(
2110      _ | IFS | as_nl) ;; #(
2111      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112      *) { eval $ac_var=; unset $ac_var;} ;;
2113      esac ;;
2114    esac
2115  done
2116  (set) 2>&1 |
2117    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118    *${as_nl}ac_space=\ *)
2119      sed -n \
2120	"s/'\''/'\''\\\\'\'''\''/g;
2121	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122      ;; #(
2123    *)
2124      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2125      ;;
2126    esac |
2127    sort
2128)
2129    echo
2130
2131    $as_echo "## ----------------- ##
2132## Output variables. ##
2133## ----------------- ##"
2134    echo
2135    for ac_var in $ac_subst_vars
2136    do
2137      eval ac_val=\$$ac_var
2138      case $ac_val in
2139      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140      esac
2141      $as_echo "$ac_var='\''$ac_val'\''"
2142    done | sort
2143    echo
2144
2145    if test -n "$ac_subst_files"; then
2146      $as_echo "## ------------------- ##
2147## File substitutions. ##
2148## ------------------- ##"
2149      echo
2150      for ac_var in $ac_subst_files
2151      do
2152	eval ac_val=\$$ac_var
2153	case $ac_val in
2154	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155	esac
2156	$as_echo "$ac_var='\''$ac_val'\''"
2157      done | sort
2158      echo
2159    fi
2160
2161    if test -s confdefs.h; then
2162      $as_echo "## ----------- ##
2163## confdefs.h. ##
2164## ----------- ##"
2165      echo
2166      cat confdefs.h
2167      echo
2168    fi
2169    test "$ac_signal" != 0 &&
2170      $as_echo "$as_me: caught signal $ac_signal"
2171    $as_echo "$as_me: exit $exit_status"
2172  } >&5
2173  rm -f core *.core core.conftest.* &&
2174    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2175    exit $exit_status
2176' 0
2177for ac_signal in 1 2 13 15; do
2178  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179done
2180ac_signal=0
2181
2182# confdefs.h avoids OS command line length limits that DEFS can exceed.
2183rm -f -r conftest* confdefs.h
2184
2185$as_echo "/* confdefs.h */" > confdefs.h
2186
2187# Predefined preprocessor variables.
2188
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_NAME "$PACKAGE_NAME"
2191_ACEOF
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195_ACEOF
2196
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_VERSION "$PACKAGE_VERSION"
2199_ACEOF
2200
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_STRING "$PACKAGE_STRING"
2203_ACEOF
2204
2205cat >>confdefs.h <<_ACEOF
2206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207_ACEOF
2208
2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE_URL "$PACKAGE_URL"
2211_ACEOF
2212
2213
2214# Let the site file select an alternate cache file if it wants to.
2215# Prefer an explicitly selected file to automatically selected ones.
2216ac_site_file1=NONE
2217ac_site_file2=NONE
2218if test -n "$CONFIG_SITE"; then
2219  # We do not want a PATH search for config.site.
2220  case $CONFIG_SITE in #((
2221    -*)  ac_site_file1=./$CONFIG_SITE;;
2222    */*) ac_site_file1=$CONFIG_SITE;;
2223    *)   ac_site_file1=./$CONFIG_SITE;;
2224  esac
2225elif test "x$prefix" != xNONE; then
2226  ac_site_file1=$prefix/share/config.site
2227  ac_site_file2=$prefix/etc/config.site
2228else
2229  ac_site_file1=$ac_default_prefix/share/config.site
2230  ac_site_file2=$ac_default_prefix/etc/config.site
2231fi
2232for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2233do
2234  test "x$ac_site_file" = xNONE && continue
2235  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2236    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2238    sed 's/^/| /' "$ac_site_file" >&5
2239    . "$ac_site_file" \
2240      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242as_fn_error $? "failed to load site script $ac_site_file
2243See \`config.log' for more details" "$LINENO" 5; }
2244  fi
2245done
2246
2247if test -r "$cache_file"; then
2248  # Some versions of bash will fail to source /dev/null (special files
2249  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2250  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2251    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2252$as_echo "$as_me: loading cache $cache_file" >&6;}
2253    case $cache_file in
2254      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2255      *)                      . "./$cache_file";;
2256    esac
2257  fi
2258else
2259  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2260$as_echo "$as_me: creating cache $cache_file" >&6;}
2261  >$cache_file
2262fi
2263
2264as_fn_append ac_header_list " stdlib.h"
2265as_fn_append ac_header_list " unistd.h"
2266as_fn_append ac_header_list " sys/param.h"
2267# Check that the precious variables saved in the cache have kept the same
2268# value.
2269ac_cache_corrupted=false
2270for ac_var in $ac_precious_vars; do
2271  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2272  eval ac_new_set=\$ac_env_${ac_var}_set
2273  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2274  eval ac_new_val=\$ac_env_${ac_var}_value
2275  case $ac_old_set,$ac_new_set in
2276    set,)
2277      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2278$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2279      ac_cache_corrupted=: ;;
2280    ,set)
2281      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2282$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2283      ac_cache_corrupted=: ;;
2284    ,);;
2285    *)
2286      if test "x$ac_old_val" != "x$ac_new_val"; then
2287	# differences in whitespace do not lead to failure.
2288	ac_old_val_w=`echo x $ac_old_val`
2289	ac_new_val_w=`echo x $ac_new_val`
2290	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2291	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2292$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2293	  ac_cache_corrupted=:
2294	else
2295	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2296$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2297	  eval $ac_var=\$ac_old_val
2298	fi
2299	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2300$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2301	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2302$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2303      fi;;
2304  esac
2305  # Pass precious variables to config.status.
2306  if test "$ac_new_set" = set; then
2307    case $ac_new_val in
2308    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2309    *) ac_arg=$ac_var=$ac_new_val ;;
2310    esac
2311    case " $ac_configure_args " in
2312      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2313      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2314    esac
2315  fi
2316done
2317if $ac_cache_corrupted; then
2318  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2321$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2322  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2323fi
2324## -------------------- ##
2325## Main body of script. ##
2326## -------------------- ##
2327
2328ac_ext=c
2329ac_cpp='$CPP $CPPFLAGS'
2330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
2334
2335
2336
2337
2338ac_aux_dir=
2339for ac_dir in conftools "$srcdir"/conftools; do
2340  if test -f "$ac_dir/install-sh"; then
2341    ac_aux_dir=$ac_dir
2342    ac_install_sh="$ac_aux_dir/install-sh -c"
2343    break
2344  elif test -f "$ac_dir/install.sh"; then
2345    ac_aux_dir=$ac_dir
2346    ac_install_sh="$ac_aux_dir/install.sh -c"
2347    break
2348  elif test -f "$ac_dir/shtool"; then
2349    ac_aux_dir=$ac_dir
2350    ac_install_sh="$ac_aux_dir/shtool install -c"
2351    break
2352  fi
2353done
2354if test -z "$ac_aux_dir"; then
2355  as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2356fi
2357
2358# These three variables are undocumented and unsupported,
2359# and are intended to be withdrawn in a future Autoconf release.
2360# They can cause serious problems if a builder's source tree is in a directory
2361# whose full name contains unusual characters.
2362ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2363ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2364ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2365
2366
2367
2368
2369
2370
2371LIBCURRENT=7
2372LIBREVISION=0
2373LIBAGE=6
2374
2375ac_config_headers="$ac_config_headers expat_config.h"
2376
2377
2378
2379
2380
2381# Make sure we can run config.sub.
2382$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2383  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2384
2385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2386$as_echo_n "checking build system type... " >&6; }
2387if ${ac_cv_build+:} false; then :
2388  $as_echo_n "(cached) " >&6
2389else
2390  ac_build_alias=$build_alias
2391test "x$ac_build_alias" = x &&
2392  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2393test "x$ac_build_alias" = x &&
2394  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2395ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2396  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2397
2398fi
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2400$as_echo "$ac_cv_build" >&6; }
2401case $ac_cv_build in
2402*-*-*) ;;
2403*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2404esac
2405build=$ac_cv_build
2406ac_save_IFS=$IFS; IFS='-'
2407set x $ac_cv_build
2408shift
2409build_cpu=$1
2410build_vendor=$2
2411shift; shift
2412# Remember, the first character of IFS is used to create $*,
2413# except with old shells:
2414build_os=$*
2415IFS=$ac_save_IFS
2416case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2417
2418
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2420$as_echo_n "checking host system type... " >&6; }
2421if ${ac_cv_host+:} false; then :
2422  $as_echo_n "(cached) " >&6
2423else
2424  if test "x$host_alias" = x; then
2425  ac_cv_host=$ac_cv_build
2426else
2427  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2428    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2429fi
2430
2431fi
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2433$as_echo "$ac_cv_host" >&6; }
2434case $ac_cv_host in
2435*-*-*) ;;
2436*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2437esac
2438host=$ac_cv_host
2439ac_save_IFS=$IFS; IFS='-'
2440set x $ac_cv_host
2441shift
2442host_cpu=$1
2443host_vendor=$2
2444shift; shift
2445# Remember, the first character of IFS is used to create $*,
2446# except with old shells:
2447host_os=$*
2448IFS=$ac_save_IFS
2449case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2450
2451
2452enable_win32_dll=yes
2453
2454case $host in
2455*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
2456  if test -n "$ac_tool_prefix"; then
2457  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2458set dummy ${ac_tool_prefix}as; ac_word=$2
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2460$as_echo_n "checking for $ac_word... " >&6; }
2461if ${ac_cv_prog_AS+:} false; then :
2462  $as_echo_n "(cached) " >&6
2463else
2464  if test -n "$AS"; then
2465  ac_cv_prog_AS="$AS" # Let the user override the test.
2466else
2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468for as_dir in $PATH
2469do
2470  IFS=$as_save_IFS
2471  test -z "$as_dir" && as_dir=.
2472    for ac_exec_ext in '' $ac_executable_extensions; do
2473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474    ac_cv_prog_AS="${ac_tool_prefix}as"
2475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2476    break 2
2477  fi
2478done
2479  done
2480IFS=$as_save_IFS
2481
2482fi
2483fi
2484AS=$ac_cv_prog_AS
2485if test -n "$AS"; then
2486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
2487$as_echo "$AS" >&6; }
2488else
2489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2490$as_echo "no" >&6; }
2491fi
2492
2493
2494fi
2495if test -z "$ac_cv_prog_AS"; then
2496  ac_ct_AS=$AS
2497  # Extract the first word of "as", so it can be a program name with args.
2498set dummy as; ac_word=$2
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500$as_echo_n "checking for $ac_word... " >&6; }
2501if ${ac_cv_prog_ac_ct_AS+:} false; then :
2502  $as_echo_n "(cached) " >&6
2503else
2504  if test -n "$ac_ct_AS"; then
2505  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2506else
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510  IFS=$as_save_IFS
2511  test -z "$as_dir" && as_dir=.
2512    for ac_exec_ext in '' $ac_executable_extensions; do
2513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514    ac_cv_prog_ac_ct_AS="as"
2515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516    break 2
2517  fi
2518done
2519  done
2520IFS=$as_save_IFS
2521
2522fi
2523fi
2524ac_ct_AS=$ac_cv_prog_ac_ct_AS
2525if test -n "$ac_ct_AS"; then
2526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
2527$as_echo "$ac_ct_AS" >&6; }
2528else
2529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530$as_echo "no" >&6; }
2531fi
2532
2533  if test "x$ac_ct_AS" = x; then
2534    AS="false"
2535  else
2536    case $cross_compiling:$ac_tool_warned in
2537yes:)
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2540ac_tool_warned=yes ;;
2541esac
2542    AS=$ac_ct_AS
2543  fi
2544else
2545  AS="$ac_cv_prog_AS"
2546fi
2547
2548  if test -n "$ac_tool_prefix"; then
2549  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2550set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552$as_echo_n "checking for $ac_word... " >&6; }
2553if ${ac_cv_prog_DLLTOOL+:} false; then :
2554  $as_echo_n "(cached) " >&6
2555else
2556  if test -n "$DLLTOOL"; then
2557  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2558else
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562  IFS=$as_save_IFS
2563  test -z "$as_dir" && as_dir=.
2564    for ac_exec_ext in '' $ac_executable_extensions; do
2565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568    break 2
2569  fi
2570done
2571  done
2572IFS=$as_save_IFS
2573
2574fi
2575fi
2576DLLTOOL=$ac_cv_prog_DLLTOOL
2577if test -n "$DLLTOOL"; then
2578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
2579$as_echo "$DLLTOOL" >&6; }
2580else
2581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582$as_echo "no" >&6; }
2583fi
2584
2585
2586fi
2587if test -z "$ac_cv_prog_DLLTOOL"; then
2588  ac_ct_DLLTOOL=$DLLTOOL
2589  # Extract the first word of "dlltool", so it can be a program name with args.
2590set dummy dlltool; ac_word=$2
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592$as_echo_n "checking for $ac_word... " >&6; }
2593if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
2594  $as_echo_n "(cached) " >&6
2595else
2596  if test -n "$ac_ct_DLLTOOL"; then
2597  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
2598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602  IFS=$as_save_IFS
2603  test -z "$as_dir" && as_dir=.
2604    for ac_exec_ext in '' $ac_executable_extensions; do
2605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2606    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
2607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608    break 2
2609  fi
2610done
2611  done
2612IFS=$as_save_IFS
2613
2614fi
2615fi
2616ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
2617if test -n "$ac_ct_DLLTOOL"; then
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
2619$as_echo "$ac_ct_DLLTOOL" >&6; }
2620else
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622$as_echo "no" >&6; }
2623fi
2624
2625  if test "x$ac_ct_DLLTOOL" = x; then
2626    DLLTOOL="false"
2627  else
2628    case $cross_compiling:$ac_tool_warned in
2629yes:)
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2632ac_tool_warned=yes ;;
2633esac
2634    DLLTOOL=$ac_ct_DLLTOOL
2635  fi
2636else
2637  DLLTOOL="$ac_cv_prog_DLLTOOL"
2638fi
2639
2640  if test -n "$ac_tool_prefix"; then
2641  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2642set dummy ${ac_tool_prefix}objdump; ac_word=$2
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644$as_echo_n "checking for $ac_word... " >&6; }
2645if ${ac_cv_prog_OBJDUMP+:} false; then :
2646  $as_echo_n "(cached) " >&6
2647else
2648  if test -n "$OBJDUMP"; then
2649  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2650else
2651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652for as_dir in $PATH
2653do
2654  IFS=$as_save_IFS
2655  test -z "$as_dir" && as_dir=.
2656    for ac_exec_ext in '' $ac_executable_extensions; do
2657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660    break 2
2661  fi
2662done
2663  done
2664IFS=$as_save_IFS
2665
2666fi
2667fi
2668OBJDUMP=$ac_cv_prog_OBJDUMP
2669if test -n "$OBJDUMP"; then
2670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
2671$as_echo "$OBJDUMP" >&6; }
2672else
2673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674$as_echo "no" >&6; }
2675fi
2676
2677
2678fi
2679if test -z "$ac_cv_prog_OBJDUMP"; then
2680  ac_ct_OBJDUMP=$OBJDUMP
2681  # Extract the first word of "objdump", so it can be a program name with args.
2682set dummy objdump; ac_word=$2
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684$as_echo_n "checking for $ac_word... " >&6; }
2685if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
2686  $as_echo_n "(cached) " >&6
2687else
2688  if test -n "$ac_ct_OBJDUMP"; then
2689  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
2690else
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694  IFS=$as_save_IFS
2695  test -z "$as_dir" && as_dir=.
2696    for ac_exec_ext in '' $ac_executable_extensions; do
2697  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698    ac_cv_prog_ac_ct_OBJDUMP="objdump"
2699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700    break 2
2701  fi
2702done
2703  done
2704IFS=$as_save_IFS
2705
2706fi
2707fi
2708ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
2709if test -n "$ac_ct_OBJDUMP"; then
2710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
2711$as_echo "$ac_ct_OBJDUMP" >&6; }
2712else
2713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714$as_echo "no" >&6; }
2715fi
2716
2717  if test "x$ac_ct_OBJDUMP" = x; then
2718    OBJDUMP="false"
2719  else
2720    case $cross_compiling:$ac_tool_warned in
2721yes:)
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2724ac_tool_warned=yes ;;
2725esac
2726    OBJDUMP=$ac_ct_OBJDUMP
2727  fi
2728else
2729  OBJDUMP="$ac_cv_prog_OBJDUMP"
2730fi
2731
2732  ;;
2733esac
2734
2735test -z "$AS" && AS=as
2736
2737
2738
2739
2740
2741test -z "$DLLTOOL" && DLLTOOL=dlltool
2742
2743
2744
2745
2746
2747test -z "$OBJDUMP" && OBJDUMP=objdump
2748
2749
2750
2751
2752
2753
2754
2755case `pwd` in
2756  *\ * | *\	*)
2757    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2758$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2759esac
2760
2761
2762
2763macro_version='2.4'
2764macro_revision='1.3293'
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778ltmain="$ac_aux_dir/ltmain.sh"
2779
2780# Backslashify metacharacters that are still active within
2781# double-quoted strings.
2782sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2783
2784# Same as above, but do not quote variable references.
2785double_quote_subst='s/\(["`\\]\)/\\\1/g'
2786
2787# Sed substitution to delay expansion of an escaped shell variable in a
2788# double_quote_subst'ed string.
2789delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2790
2791# Sed substitution to delay expansion of an escaped single quote.
2792delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2793
2794# Sed substitution to avoid accidental globbing in evaled expressions
2795no_glob_subst='s/\*/\\\*/g'
2796
2797ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2798ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2799ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2800
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2802$as_echo_n "checking how to print strings... " >&6; }
2803# Test print first, because it will be a builtin if present.
2804if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2805   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2806  ECHO='print -r --'
2807elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2808  ECHO='printf %s\n'
2809else
2810  # Use this function as a fallback that always works.
2811  func_fallback_echo ()
2812  {
2813    eval 'cat <<_LTECHO_EOF
2814$1
2815_LTECHO_EOF'
2816  }
2817  ECHO='func_fallback_echo'
2818fi
2819
2820# func_echo_all arg...
2821# Invoke $ECHO with all args, space-separated.
2822func_echo_all ()
2823{
2824    $ECHO ""
2825}
2826
2827case "$ECHO" in
2828  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2829$as_echo "printf" >&6; } ;;
2830  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2831$as_echo "print -r" >&6; } ;;
2832  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2833$as_echo "cat" >&6; } ;;
2834esac
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849ac_ext=c
2850ac_cpp='$CPP $CPPFLAGS'
2851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854if test -n "$ac_tool_prefix"; then
2855  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856set dummy ${ac_tool_prefix}gcc; ac_word=$2
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858$as_echo_n "checking for $ac_word... " >&6; }
2859if ${ac_cv_prog_CC+:} false; then :
2860  $as_echo_n "(cached) " >&6
2861else
2862  if test -n "$CC"; then
2863  ac_cv_prog_CC="$CC" # Let the user override the test.
2864else
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868  IFS=$as_save_IFS
2869  test -z "$as_dir" && as_dir=.
2870    for ac_exec_ext in '' $ac_executable_extensions; do
2871  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874    break 2
2875  fi
2876done
2877  done
2878IFS=$as_save_IFS
2879
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885$as_echo "$CC" >&6; }
2886else
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888$as_echo "no" >&6; }
2889fi
2890
2891
2892fi
2893if test -z "$ac_cv_prog_CC"; then
2894  ac_ct_CC=$CC
2895  # Extract the first word of "gcc", so it can be a program name with args.
2896set dummy gcc; ac_word=$2
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898$as_echo_n "checking for $ac_word... " >&6; }
2899if ${ac_cv_prog_ac_ct_CC+:} false; then :
2900  $as_echo_n "(cached) " >&6
2901else
2902  if test -n "$ac_ct_CC"; then
2903  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908  IFS=$as_save_IFS
2909  test -z "$as_dir" && as_dir=.
2910    for ac_exec_ext in '' $ac_executable_extensions; do
2911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912    ac_cv_prog_ac_ct_CC="gcc"
2913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914    break 2
2915  fi
2916done
2917  done
2918IFS=$as_save_IFS
2919
2920fi
2921fi
2922ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923if test -n "$ac_ct_CC"; then
2924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925$as_echo "$ac_ct_CC" >&6; }
2926else
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928$as_echo "no" >&6; }
2929fi
2930
2931  if test "x$ac_ct_CC" = x; then
2932    CC=""
2933  else
2934    case $cross_compiling:$ac_tool_warned in
2935yes:)
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938ac_tool_warned=yes ;;
2939esac
2940    CC=$ac_ct_CC
2941  fi
2942else
2943  CC="$ac_cv_prog_CC"
2944fi
2945
2946if test -z "$CC"; then
2947          if test -n "$ac_tool_prefix"; then
2948    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2949set dummy ${ac_tool_prefix}cc; ac_word=$2
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951$as_echo_n "checking for $ac_word... " >&6; }
2952if ${ac_cv_prog_CC+:} false; then :
2953  $as_echo_n "(cached) " >&6
2954else
2955  if test -n "$CC"; then
2956  ac_cv_prog_CC="$CC" # Let the user override the test.
2957else
2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961  IFS=$as_save_IFS
2962  test -z "$as_dir" && as_dir=.
2963    for ac_exec_ext in '' $ac_executable_extensions; do
2964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965    ac_cv_prog_CC="${ac_tool_prefix}cc"
2966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967    break 2
2968  fi
2969done
2970  done
2971IFS=$as_save_IFS
2972
2973fi
2974fi
2975CC=$ac_cv_prog_CC
2976if test -n "$CC"; then
2977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978$as_echo "$CC" >&6; }
2979else
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981$as_echo "no" >&6; }
2982fi
2983
2984
2985  fi
2986fi
2987if test -z "$CC"; then
2988  # Extract the first word of "cc", so it can be a program name with args.
2989set dummy cc; ac_word=$2
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991$as_echo_n "checking for $ac_word... " >&6; }
2992if ${ac_cv_prog_CC+:} false; then :
2993  $as_echo_n "(cached) " >&6
2994else
2995  if test -n "$CC"; then
2996  ac_cv_prog_CC="$CC" # Let the user override the test.
2997else
2998  ac_prog_rejected=no
2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002  IFS=$as_save_IFS
3003  test -z "$as_dir" && as_dir=.
3004    for ac_exec_ext in '' $ac_executable_extensions; do
3005  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3007       ac_prog_rejected=yes
3008       continue
3009     fi
3010    ac_cv_prog_CC="cc"
3011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012    break 2
3013  fi
3014done
3015  done
3016IFS=$as_save_IFS
3017
3018if test $ac_prog_rejected = yes; then
3019  # We found a bogon in the path, so make sure we never use it.
3020  set dummy $ac_cv_prog_CC
3021  shift
3022  if test $# != 0; then
3023    # We chose a different compiler from the bogus one.
3024    # However, it has the same basename, so the bogon will be chosen
3025    # first if we set CC to just the basename; use the full file name.
3026    shift
3027    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3028  fi
3029fi
3030fi
3031fi
3032CC=$ac_cv_prog_CC
3033if test -n "$CC"; then
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035$as_echo "$CC" >&6; }
3036else
3037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
3039fi
3040
3041
3042fi
3043if test -z "$CC"; then
3044  if test -n "$ac_tool_prefix"; then
3045  for ac_prog in cl.exe
3046  do
3047    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050$as_echo_n "checking for $ac_word... " >&6; }
3051if ${ac_cv_prog_CC+:} false; then :
3052  $as_echo_n "(cached) " >&6
3053else
3054  if test -n "$CC"; then
3055  ac_cv_prog_CC="$CC" # Let the user override the test.
3056else
3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
3060  IFS=$as_save_IFS
3061  test -z "$as_dir" && as_dir=.
3062    for ac_exec_ext in '' $ac_executable_extensions; do
3063  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066    break 2
3067  fi
3068done
3069  done
3070IFS=$as_save_IFS
3071
3072fi
3073fi
3074CC=$ac_cv_prog_CC
3075if test -n "$CC"; then
3076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077$as_echo "$CC" >&6; }
3078else
3079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080$as_echo "no" >&6; }
3081fi
3082
3083
3084    test -n "$CC" && break
3085  done
3086fi
3087if test -z "$CC"; then
3088  ac_ct_CC=$CC
3089  for ac_prog in cl.exe
3090do
3091  # Extract the first word of "$ac_prog", so it can be a program name with args.
3092set dummy $ac_prog; ac_word=$2
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094$as_echo_n "checking for $ac_word... " >&6; }
3095if ${ac_cv_prog_ac_ct_CC+:} false; then :
3096  $as_echo_n "(cached) " >&6
3097else
3098  if test -n "$ac_ct_CC"; then
3099  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100else
3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH
3103do
3104  IFS=$as_save_IFS
3105  test -z "$as_dir" && as_dir=.
3106    for ac_exec_ext in '' $ac_executable_extensions; do
3107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108    ac_cv_prog_ac_ct_CC="$ac_prog"
3109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110    break 2
3111  fi
3112done
3113  done
3114IFS=$as_save_IFS
3115
3116fi
3117fi
3118ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119if test -n "$ac_ct_CC"; then
3120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3121$as_echo "$ac_ct_CC" >&6; }
3122else
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124$as_echo "no" >&6; }
3125fi
3126
3127
3128  test -n "$ac_ct_CC" && break
3129done
3130
3131  if test "x$ac_ct_CC" = x; then
3132    CC=""
3133  else
3134    case $cross_compiling:$ac_tool_warned in
3135yes:)
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138ac_tool_warned=yes ;;
3139esac
3140    CC=$ac_ct_CC
3141  fi
3142fi
3143
3144fi
3145
3146
3147test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149as_fn_error $? "no acceptable C compiler found in \$PATH
3150See \`config.log' for more details" "$LINENO" 5; }
3151
3152# Provide some information about the compiler.
3153$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3154set X $ac_compile
3155ac_compiler=$2
3156for ac_option in --version -v -V -qversion; do
3157  { { ac_try="$ac_compiler $ac_option >&5"
3158case "(($ac_try" in
3159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160  *) ac_try_echo=$ac_try;;
3161esac
3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163$as_echo "$ac_try_echo"; } >&5
3164  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3165  ac_status=$?
3166  if test -s conftest.err; then
3167    sed '10a\
3168... rest of stderr output deleted ...
3169         10q' conftest.err >conftest.er1
3170    cat conftest.er1 >&5
3171  fi
3172  rm -f conftest.er1 conftest.err
3173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174  test $ac_status = 0; }
3175done
3176
3177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178/* end confdefs.h.  */
3179
3180int
3181main ()
3182{
3183
3184  ;
3185  return 0;
3186}
3187_ACEOF
3188ac_clean_files_save=$ac_clean_files
3189ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3190# Try to create an executable without -o first, disregard a.out.
3191# It will help us diagnose broken compilers, and finding out an intuition
3192# of exeext.
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3194$as_echo_n "checking whether the C compiler works... " >&6; }
3195ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3196
3197# The possible output files:
3198ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3199
3200ac_rmfiles=
3201for ac_file in $ac_files
3202do
3203  case $ac_file in
3204    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3206  esac
3207done
3208rm -f $ac_rmfiles
3209
3210if { { ac_try="$ac_link_default"
3211case "(($ac_try" in
3212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213  *) ac_try_echo=$ac_try;;
3214esac
3215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216$as_echo "$ac_try_echo"; } >&5
3217  (eval "$ac_link_default") 2>&5
3218  ac_status=$?
3219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220  test $ac_status = 0; }; then :
3221  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3224# so that the user can short-circuit this test for compilers unknown to
3225# Autoconf.
3226for ac_file in $ac_files ''
3227do
3228  test -f "$ac_file" || continue
3229  case $ac_file in
3230    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3231	;;
3232    [ab].out )
3233	# We found the default executable, but exeext='' is most
3234	# certainly right.
3235	break;;
3236    *.* )
3237	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3238	then :; else
3239	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240	fi
3241	# We set ac_cv_exeext here because the later test for it is not
3242	# safe: cross compilers may not add the suffix if given an `-o'
3243	# argument, so we may need to know it at that point already.
3244	# Even if this section looks crufty: it has the advantage of
3245	# actually working.
3246	break;;
3247    * )
3248	break;;
3249  esac
3250done
3251test "$ac_cv_exeext" = no && ac_cv_exeext=
3252
3253else
3254  ac_file=''
3255fi
3256if test -z "$ac_file"; then :
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258$as_echo "no" >&6; }
3259$as_echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
3262{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264as_fn_error 77 "C compiler cannot create executables
3265See \`config.log' for more details" "$LINENO" 5; }
3266else
3267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268$as_echo "yes" >&6; }
3269fi
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3271$as_echo_n "checking for C compiler default output file name... " >&6; }
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3273$as_echo "$ac_file" >&6; }
3274ac_exeext=$ac_cv_exeext
3275
3276rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3277ac_clean_files=$ac_clean_files_save
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3279$as_echo_n "checking for suffix of executables... " >&6; }
3280if { { ac_try="$ac_link"
3281case "(($ac_try" in
3282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283  *) ac_try_echo=$ac_try;;
3284esac
3285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286$as_echo "$ac_try_echo"; } >&5
3287  (eval "$ac_link") 2>&5
3288  ac_status=$?
3289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290  test $ac_status = 0; }; then :
3291  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3292# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3293# work properly (i.e., refer to `conftest.exe'), while it won't with
3294# `rm'.
3295for ac_file in conftest.exe conftest conftest.*; do
3296  test -f "$ac_file" || continue
3297  case $ac_file in
3298    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300	  break;;
3301    * ) break;;
3302  esac
3303done
3304else
3305  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3308See \`config.log' for more details" "$LINENO" 5; }
3309fi
3310rm -f conftest conftest$ac_cv_exeext
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3312$as_echo "$ac_cv_exeext" >&6; }
3313
3314rm -f conftest.$ac_ext
3315EXEEXT=$ac_cv_exeext
3316ac_exeext=$EXEEXT
3317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318/* end confdefs.h.  */
3319#include <stdio.h>
3320int
3321main ()
3322{
3323FILE *f = fopen ("conftest.out", "w");
3324 return ferror (f) || fclose (f) != 0;
3325
3326  ;
3327  return 0;
3328}
3329_ACEOF
3330ac_clean_files="$ac_clean_files conftest.out"
3331# Check that the compiler produces executables we can run.  If not, either
3332# the compiler is broken, or we cross compile.
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3334$as_echo_n "checking whether we are cross compiling... " >&6; }
3335if test "$cross_compiling" != yes; then
3336  { { ac_try="$ac_link"
3337case "(($ac_try" in
3338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339  *) ac_try_echo=$ac_try;;
3340esac
3341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342$as_echo "$ac_try_echo"; } >&5
3343  (eval "$ac_link") 2>&5
3344  ac_status=$?
3345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346  test $ac_status = 0; }
3347  if { ac_try='./conftest$ac_cv_exeext'
3348  { { case "(($ac_try" in
3349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350  *) ac_try_echo=$ac_try;;
3351esac
3352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353$as_echo "$ac_try_echo"; } >&5
3354  (eval "$ac_try") 2>&5
3355  ac_status=$?
3356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357  test $ac_status = 0; }; }; then
3358    cross_compiling=no
3359  else
3360    if test "$cross_compiling" = maybe; then
3361	cross_compiling=yes
3362    else
3363	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365as_fn_error $? "cannot run C compiled programs.
3366If you meant to cross compile, use \`--host'.
3367See \`config.log' for more details" "$LINENO" 5; }
3368    fi
3369  fi
3370fi
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3372$as_echo "$cross_compiling" >&6; }
3373
3374rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3375ac_clean_files=$ac_clean_files_save
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3377$as_echo_n "checking for suffix of object files... " >&6; }
3378if ${ac_cv_objext+:} false; then :
3379  $as_echo_n "(cached) " >&6
3380else
3381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382/* end confdefs.h.  */
3383
3384int
3385main ()
3386{
3387
3388  ;
3389  return 0;
3390}
3391_ACEOF
3392rm -f conftest.o conftest.obj
3393if { { ac_try="$ac_compile"
3394case "(($ac_try" in
3395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396  *) ac_try_echo=$ac_try;;
3397esac
3398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399$as_echo "$ac_try_echo"; } >&5
3400  (eval "$ac_compile") 2>&5
3401  ac_status=$?
3402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403  test $ac_status = 0; }; then :
3404  for ac_file in conftest.o conftest.obj conftest.*; do
3405  test -f "$ac_file" || continue;
3406  case $ac_file in
3407    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3408    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3409       break;;
3410  esac
3411done
3412else
3413  $as_echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
3416{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418as_fn_error $? "cannot compute suffix of object files: cannot compile
3419See \`config.log' for more details" "$LINENO" 5; }
3420fi
3421rm -f conftest.$ac_cv_objext conftest.$ac_ext
3422fi
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3424$as_echo "$ac_cv_objext" >&6; }
3425OBJEXT=$ac_cv_objext
3426ac_objext=$OBJEXT
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3428$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3429if ${ac_cv_c_compiler_gnu+:} false; then :
3430  $as_echo_n "(cached) " >&6
3431else
3432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h.  */
3434
3435int
3436main ()
3437{
3438#ifndef __GNUC__
3439       choke me
3440#endif
3441
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446if ac_fn_c_try_compile "$LINENO"; then :
3447  ac_compiler_gnu=yes
3448else
3449  ac_compiler_gnu=no
3450fi
3451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452ac_cv_c_compiler_gnu=$ac_compiler_gnu
3453
3454fi
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3456$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3457if test $ac_compiler_gnu = yes; then
3458  GCC=yes
3459else
3460  GCC=
3461fi
3462ac_test_CFLAGS=${CFLAGS+set}
3463ac_save_CFLAGS=$CFLAGS
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3465$as_echo_n "checking whether $CC accepts -g... " >&6; }
3466if ${ac_cv_prog_cc_g+:} false; then :
3467  $as_echo_n "(cached) " >&6
3468else
3469  ac_save_c_werror_flag=$ac_c_werror_flag
3470   ac_c_werror_flag=yes
3471   ac_cv_prog_cc_g=no
3472   CFLAGS="-g"
3473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474/* end confdefs.h.  */
3475
3476int
3477main ()
3478{
3479
3480  ;
3481  return 0;
3482}
3483_ACEOF
3484if ac_fn_c_try_compile "$LINENO"; then :
3485  ac_cv_prog_cc_g=yes
3486else
3487  CFLAGS=""
3488      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489/* end confdefs.h.  */
3490
3491int
3492main ()
3493{
3494
3495  ;
3496  return 0;
3497}
3498_ACEOF
3499if ac_fn_c_try_compile "$LINENO"; then :
3500
3501else
3502  ac_c_werror_flag=$ac_save_c_werror_flag
3503	 CFLAGS="-g"
3504	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h.  */
3506
3507int
3508main ()
3509{
3510
3511  ;
3512  return 0;
3513}
3514_ACEOF
3515if ac_fn_c_try_compile "$LINENO"; then :
3516  ac_cv_prog_cc_g=yes
3517fi
3518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519fi
3520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521fi
3522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523   ac_c_werror_flag=$ac_save_c_werror_flag
3524fi
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3526$as_echo "$ac_cv_prog_cc_g" >&6; }
3527if test "$ac_test_CFLAGS" = set; then
3528  CFLAGS=$ac_save_CFLAGS
3529elif test $ac_cv_prog_cc_g = yes; then
3530  if test "$GCC" = yes; then
3531    CFLAGS="-g -O2"
3532  else
3533    CFLAGS="-g"
3534  fi
3535else
3536  if test "$GCC" = yes; then
3537    CFLAGS="-O2"
3538  else
3539    CFLAGS=
3540  fi
3541fi
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3543$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3544if ${ac_cv_prog_cc_c89+:} false; then :
3545  $as_echo_n "(cached) " >&6
3546else
3547  ac_cv_prog_cc_c89=no
3548ac_save_CC=$CC
3549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h.  */
3551#include <stdarg.h>
3552#include <stdio.h>
3553#include <sys/types.h>
3554#include <sys/stat.h>
3555/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3556struct buf { int x; };
3557FILE * (*rcsopen) (struct buf *, struct stat *, int);
3558static char *e (p, i)
3559     char **p;
3560     int i;
3561{
3562  return p[i];
3563}
3564static char *f (char * (*g) (char **, int), char **p, ...)
3565{
3566  char *s;
3567  va_list v;
3568  va_start (v,p);
3569  s = g (p, va_arg (v,int));
3570  va_end (v);
3571  return s;
3572}
3573
3574/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3575   function prototypes and stuff, but not '\xHH' hex character constants.
3576   These don't provoke an error unfortunately, instead are silently treated
3577   as 'x'.  The following induces an error, until -std is added to get
3578   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3579   array size at least.  It's necessary to write '\x00'==0 to get something
3580   that's true only with -std.  */
3581int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3582
3583/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3584   inside strings and character constants.  */
3585#define FOO(x) 'x'
3586int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3587
3588int test (int i, double x);
3589struct s1 {int (*f) (int a);};
3590struct s2 {int (*f) (double a);};
3591int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3592int argc;
3593char **argv;
3594int
3595main ()
3596{
3597return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3598  ;
3599  return 0;
3600}
3601_ACEOF
3602for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3603	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3604do
3605  CC="$ac_save_CC $ac_arg"
3606  if ac_fn_c_try_compile "$LINENO"; then :
3607  ac_cv_prog_cc_c89=$ac_arg
3608fi
3609rm -f core conftest.err conftest.$ac_objext
3610  test "x$ac_cv_prog_cc_c89" != "xno" && break
3611done
3612rm -f conftest.$ac_ext
3613CC=$ac_save_CC
3614
3615fi
3616# AC_CACHE_VAL
3617case "x$ac_cv_prog_cc_c89" in
3618  x)
3619    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3620$as_echo "none needed" >&6; } ;;
3621  xno)
3622    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3623$as_echo "unsupported" >&6; } ;;
3624  *)
3625    CC="$CC $ac_cv_prog_cc_c89"
3626    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3627$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3628esac
3629if test "x$ac_cv_prog_cc_c89" != xno; then :
3630
3631fi
3632
3633ac_ext=c
3634ac_cpp='$CPP $CPPFLAGS'
3635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3640$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3641if ${ac_cv_path_SED+:} false; then :
3642  $as_echo_n "(cached) " >&6
3643else
3644            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3645     for ac_i in 1 2 3 4 5 6 7; do
3646       ac_script="$ac_script$as_nl$ac_script"
3647     done
3648     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3649     { ac_script=; unset ac_script;}
3650     if test -z "$SED"; then
3651  ac_path_SED_found=false
3652  # Loop through the user's path and test for each of PROGNAME-LIST
3653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654for as_dir in $PATH
3655do
3656  IFS=$as_save_IFS
3657  test -z "$as_dir" && as_dir=.
3658    for ac_prog in sed gsed; do
3659    for ac_exec_ext in '' $ac_executable_extensions; do
3660      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3661      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3662# Check for GNU ac_path_SED and select it if it is found.
3663  # Check for GNU $ac_path_SED
3664case `"$ac_path_SED" --version 2>&1` in
3665*GNU*)
3666  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3667*)
3668  ac_count=0
3669  $as_echo_n 0123456789 >"conftest.in"
3670  while :
3671  do
3672    cat "conftest.in" "conftest.in" >"conftest.tmp"
3673    mv "conftest.tmp" "conftest.in"
3674    cp "conftest.in" "conftest.nl"
3675    $as_echo '' >> "conftest.nl"
3676    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3677    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3678    as_fn_arith $ac_count + 1 && ac_count=$as_val
3679    if test $ac_count -gt ${ac_path_SED_max-0}; then
3680      # Best one so far, save it but keep looking for a better one
3681      ac_cv_path_SED="$ac_path_SED"
3682      ac_path_SED_max=$ac_count
3683    fi
3684    # 10*(2^10) chars as input seems more than enough
3685    test $ac_count -gt 10 && break
3686  done
3687  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3688esac
3689
3690      $ac_path_SED_found && break 3
3691    done
3692  done
3693  done
3694IFS=$as_save_IFS
3695  if test -z "$ac_cv_path_SED"; then
3696    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3697  fi
3698else
3699  ac_cv_path_SED=$SED
3700fi
3701
3702fi
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3704$as_echo "$ac_cv_path_SED" >&6; }
3705 SED="$ac_cv_path_SED"
3706  rm -f conftest.sed
3707
3708test -z "$SED" && SED=sed
3709Xsed="$SED -e 1s/^X//"
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3722$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3723if ${ac_cv_path_GREP+:} false; then :
3724  $as_echo_n "(cached) " >&6
3725else
3726  if test -z "$GREP"; then
3727  ac_path_GREP_found=false
3728  # Loop through the user's path and test for each of PROGNAME-LIST
3729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3731do
3732  IFS=$as_save_IFS
3733  test -z "$as_dir" && as_dir=.
3734    for ac_prog in grep ggrep; do
3735    for ac_exec_ext in '' $ac_executable_extensions; do
3736      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3737      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3738# Check for GNU ac_path_GREP and select it if it is found.
3739  # Check for GNU $ac_path_GREP
3740case `"$ac_path_GREP" --version 2>&1` in
3741*GNU*)
3742  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3743*)
3744  ac_count=0
3745  $as_echo_n 0123456789 >"conftest.in"
3746  while :
3747  do
3748    cat "conftest.in" "conftest.in" >"conftest.tmp"
3749    mv "conftest.tmp" "conftest.in"
3750    cp "conftest.in" "conftest.nl"
3751    $as_echo 'GREP' >> "conftest.nl"
3752    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3753    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3754    as_fn_arith $ac_count + 1 && ac_count=$as_val
3755    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3756      # Best one so far, save it but keep looking for a better one
3757      ac_cv_path_GREP="$ac_path_GREP"
3758      ac_path_GREP_max=$ac_count
3759    fi
3760    # 10*(2^10) chars as input seems more than enough
3761    test $ac_count -gt 10 && break
3762  done
3763  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3764esac
3765
3766      $ac_path_GREP_found && break 3
3767    done
3768  done
3769  done
3770IFS=$as_save_IFS
3771  if test -z "$ac_cv_path_GREP"; then
3772    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3773  fi
3774else
3775  ac_cv_path_GREP=$GREP
3776fi
3777
3778fi
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3780$as_echo "$ac_cv_path_GREP" >&6; }
3781 GREP="$ac_cv_path_GREP"
3782
3783
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3785$as_echo_n "checking for egrep... " >&6; }
3786if ${ac_cv_path_EGREP+:} false; then :
3787  $as_echo_n "(cached) " >&6
3788else
3789  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3790   then ac_cv_path_EGREP="$GREP -E"
3791   else
3792     if test -z "$EGREP"; then
3793  ac_path_EGREP_found=false
3794  # Loop through the user's path and test for each of PROGNAME-LIST
3795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3797do
3798  IFS=$as_save_IFS
3799  test -z "$as_dir" && as_dir=.
3800    for ac_prog in egrep; do
3801    for ac_exec_ext in '' $ac_executable_extensions; do
3802      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3803      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3804# Check for GNU ac_path_EGREP and select it if it is found.
3805  # Check for GNU $ac_path_EGREP
3806case `"$ac_path_EGREP" --version 2>&1` in
3807*GNU*)
3808  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3809*)
3810  ac_count=0
3811  $as_echo_n 0123456789 >"conftest.in"
3812  while :
3813  do
3814    cat "conftest.in" "conftest.in" >"conftest.tmp"
3815    mv "conftest.tmp" "conftest.in"
3816    cp "conftest.in" "conftest.nl"
3817    $as_echo 'EGREP' >> "conftest.nl"
3818    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3819    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3820    as_fn_arith $ac_count + 1 && ac_count=$as_val
3821    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3822      # Best one so far, save it but keep looking for a better one
3823      ac_cv_path_EGREP="$ac_path_EGREP"
3824      ac_path_EGREP_max=$ac_count
3825    fi
3826    # 10*(2^10) chars as input seems more than enough
3827    test $ac_count -gt 10 && break
3828  done
3829  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3830esac
3831
3832      $ac_path_EGREP_found && break 3
3833    done
3834  done
3835  done
3836IFS=$as_save_IFS
3837  if test -z "$ac_cv_path_EGREP"; then
3838    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3839  fi
3840else
3841  ac_cv_path_EGREP=$EGREP
3842fi
3843
3844   fi
3845fi
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3847$as_echo "$ac_cv_path_EGREP" >&6; }
3848 EGREP="$ac_cv_path_EGREP"
3849
3850
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3852$as_echo_n "checking for fgrep... " >&6; }
3853if ${ac_cv_path_FGREP+:} false; then :
3854  $as_echo_n "(cached) " >&6
3855else
3856  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3857   then ac_cv_path_FGREP="$GREP -F"
3858   else
3859     if test -z "$FGREP"; then
3860  ac_path_FGREP_found=false
3861  # Loop through the user's path and test for each of PROGNAME-LIST
3862  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3864do
3865  IFS=$as_save_IFS
3866  test -z "$as_dir" && as_dir=.
3867    for ac_prog in fgrep; do
3868    for ac_exec_ext in '' $ac_executable_extensions; do
3869      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3870      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3871# Check for GNU ac_path_FGREP and select it if it is found.
3872  # Check for GNU $ac_path_FGREP
3873case `"$ac_path_FGREP" --version 2>&1` in
3874*GNU*)
3875  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3876*)
3877  ac_count=0
3878  $as_echo_n 0123456789 >"conftest.in"
3879  while :
3880  do
3881    cat "conftest.in" "conftest.in" >"conftest.tmp"
3882    mv "conftest.tmp" "conftest.in"
3883    cp "conftest.in" "conftest.nl"
3884    $as_echo 'FGREP' >> "conftest.nl"
3885    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3886    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3887    as_fn_arith $ac_count + 1 && ac_count=$as_val
3888    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3889      # Best one so far, save it but keep looking for a better one
3890      ac_cv_path_FGREP="$ac_path_FGREP"
3891      ac_path_FGREP_max=$ac_count
3892    fi
3893    # 10*(2^10) chars as input seems more than enough
3894    test $ac_count -gt 10 && break
3895  done
3896  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3897esac
3898
3899      $ac_path_FGREP_found && break 3
3900    done
3901  done
3902  done
3903IFS=$as_save_IFS
3904  if test -z "$ac_cv_path_FGREP"; then
3905    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3906  fi
3907else
3908  ac_cv_path_FGREP=$FGREP
3909fi
3910
3911   fi
3912fi
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3914$as_echo "$ac_cv_path_FGREP" >&6; }
3915 FGREP="$ac_cv_path_FGREP"
3916
3917
3918test -z "$GREP" && GREP=grep
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938# Check whether --with-gnu-ld was given.
3939if test "${with_gnu_ld+set}" = set; then :
3940  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3941else
3942  with_gnu_ld=no
3943fi
3944
3945ac_prog=ld
3946if test "$GCC" = yes; then
3947  # Check if gcc -print-prog-name=ld gives a path.
3948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3949$as_echo_n "checking for ld used by $CC... " >&6; }
3950  case $host in
3951  *-*-mingw*)
3952    # gcc leaves a trailing carriage return which upsets mingw
3953    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3954  *)
3955    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3956  esac
3957  case $ac_prog in
3958    # Accept absolute paths.
3959    [\\/]* | ?:[\\/]*)
3960      re_direlt='/[^/][^/]*/\.\./'
3961      # Canonicalize the pathname of ld
3962      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3963      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3964	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3965      done
3966      test -z "$LD" && LD="$ac_prog"
3967      ;;
3968  "")
3969    # If it fails, then pretend we aren't using GCC.
3970    ac_prog=ld
3971    ;;
3972  *)
3973    # If it is relative, then search for the first ld in PATH.
3974    with_gnu_ld=unknown
3975    ;;
3976  esac
3977elif test "$with_gnu_ld" = yes; then
3978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3979$as_echo_n "checking for GNU ld... " >&6; }
3980else
3981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3982$as_echo_n "checking for non-GNU ld... " >&6; }
3983fi
3984if ${lt_cv_path_LD+:} false; then :
3985  $as_echo_n "(cached) " >&6
3986else
3987  if test -z "$LD"; then
3988  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3989  for ac_dir in $PATH; do
3990    IFS="$lt_save_ifs"
3991    test -z "$ac_dir" && ac_dir=.
3992    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3993      lt_cv_path_LD="$ac_dir/$ac_prog"
3994      # Check to see if the program is GNU ld.  I'd rather use --version,
3995      # but apparently some variants of GNU ld only accept -v.
3996      # Break only if it was the GNU/non-GNU ld that we prefer.
3997      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3998      *GNU* | *'with BFD'*)
3999	test "$with_gnu_ld" != no && break
4000	;;
4001      *)
4002	test "$with_gnu_ld" != yes && break
4003	;;
4004      esac
4005    fi
4006  done
4007  IFS="$lt_save_ifs"
4008else
4009  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4010fi
4011fi
4012
4013LD="$lt_cv_path_LD"
4014if test -n "$LD"; then
4015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4016$as_echo "$LD" >&6; }
4017else
4018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019$as_echo "no" >&6; }
4020fi
4021test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4023$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4024if ${lt_cv_prog_gnu_ld+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4028case `$LD -v 2>&1 </dev/null` in
4029*GNU* | *'with BFD'*)
4030  lt_cv_prog_gnu_ld=yes
4031  ;;
4032*)
4033  lt_cv_prog_gnu_ld=no
4034  ;;
4035esac
4036fi
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4038$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4039with_gnu_ld=$lt_cv_prog_gnu_ld
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4050$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4051if ${lt_cv_path_NM+:} false; then :
4052  $as_echo_n "(cached) " >&6
4053else
4054  if test -n "$NM"; then
4055  # Let the user override the test.
4056  lt_cv_path_NM="$NM"
4057else
4058  lt_nm_to_check="${ac_tool_prefix}nm"
4059  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4060    lt_nm_to_check="$lt_nm_to_check nm"
4061  fi
4062  for lt_tmp_nm in $lt_nm_to_check; do
4063    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4064    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4065      IFS="$lt_save_ifs"
4066      test -z "$ac_dir" && ac_dir=.
4067      tmp_nm="$ac_dir/$lt_tmp_nm"
4068      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4069	# Check to see if the nm accepts a BSD-compat flag.
4070	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4071	#   nm: unknown option "B" ignored
4072	# Tru64's nm complains that /dev/null is an invalid object file
4073	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4074	*/dev/null* | *'Invalid file or object type'*)
4075	  lt_cv_path_NM="$tmp_nm -B"
4076	  break
4077	  ;;
4078	*)
4079	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4080	  */dev/null*)
4081	    lt_cv_path_NM="$tmp_nm -p"
4082	    break
4083	    ;;
4084	  *)
4085	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4086	    continue # so that we can try to find one that supports BSD flags
4087	    ;;
4088	  esac
4089	  ;;
4090	esac
4091      fi
4092    done
4093    IFS="$lt_save_ifs"
4094  done
4095  : ${lt_cv_path_NM=no}
4096fi
4097fi
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4099$as_echo "$lt_cv_path_NM" >&6; }
4100if test "$lt_cv_path_NM" != "no"; then
4101  NM="$lt_cv_path_NM"
4102else
4103  # Didn't find any BSD compatible name lister, look for dumpbin.
4104  if test -n "$DUMPBIN"; then :
4105    # Let the user override the test.
4106  else
4107    if test -n "$ac_tool_prefix"; then
4108  for ac_prog in dumpbin "link -dump"
4109  do
4110    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4111set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113$as_echo_n "checking for $ac_word... " >&6; }
4114if ${ac_cv_prog_DUMPBIN+:} false; then :
4115  $as_echo_n "(cached) " >&6
4116else
4117  if test -n "$DUMPBIN"; then
4118  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4119else
4120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121for as_dir in $PATH
4122do
4123  IFS=$as_save_IFS
4124  test -z "$as_dir" && as_dir=.
4125    for ac_exec_ext in '' $ac_executable_extensions; do
4126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4127    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129    break 2
4130  fi
4131done
4132  done
4133IFS=$as_save_IFS
4134
4135fi
4136fi
4137DUMPBIN=$ac_cv_prog_DUMPBIN
4138if test -n "$DUMPBIN"; then
4139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4140$as_echo "$DUMPBIN" >&6; }
4141else
4142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143$as_echo "no" >&6; }
4144fi
4145
4146
4147    test -n "$DUMPBIN" && break
4148  done
4149fi
4150if test -z "$DUMPBIN"; then
4151  ac_ct_DUMPBIN=$DUMPBIN
4152  for ac_prog in dumpbin "link -dump"
4153do
4154  # Extract the first word of "$ac_prog", so it can be a program name with args.
4155set dummy $ac_prog; ac_word=$2
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4157$as_echo_n "checking for $ac_word... " >&6; }
4158if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4159  $as_echo_n "(cached) " >&6
4160else
4161  if test -n "$ac_ct_DUMPBIN"; then
4162  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4163else
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH
4166do
4167  IFS=$as_save_IFS
4168  test -z "$as_dir" && as_dir=.
4169    for ac_exec_ext in '' $ac_executable_extensions; do
4170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4173    break 2
4174  fi
4175done
4176  done
4177IFS=$as_save_IFS
4178
4179fi
4180fi
4181ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4182if test -n "$ac_ct_DUMPBIN"; then
4183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4184$as_echo "$ac_ct_DUMPBIN" >&6; }
4185else
4186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187$as_echo "no" >&6; }
4188fi
4189
4190
4191  test -n "$ac_ct_DUMPBIN" && break
4192done
4193
4194  if test "x$ac_ct_DUMPBIN" = x; then
4195    DUMPBIN=":"
4196  else
4197    case $cross_compiling:$ac_tool_warned in
4198yes:)
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4201ac_tool_warned=yes ;;
4202esac
4203    DUMPBIN=$ac_ct_DUMPBIN
4204  fi
4205fi
4206
4207    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4208    *COFF*)
4209      DUMPBIN="$DUMPBIN -symbols"
4210      ;;
4211    *)
4212      DUMPBIN=:
4213      ;;
4214    esac
4215  fi
4216
4217  if test "$DUMPBIN" != ":"; then
4218    NM="$DUMPBIN"
4219  fi
4220fi
4221test -z "$NM" && NM=nm
4222
4223
4224
4225
4226
4227
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4229$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4230if ${lt_cv_nm_interface+:} false; then :
4231  $as_echo_n "(cached) " >&6
4232else
4233  lt_cv_nm_interface="BSD nm"
4234  echo "int some_variable = 0;" > conftest.$ac_ext
4235  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4236  (eval "$ac_compile" 2>conftest.err)
4237  cat conftest.err >&5
4238  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4239  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4240  cat conftest.err >&5
4241  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4242  cat conftest.out >&5
4243  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4244    lt_cv_nm_interface="MS dumpbin"
4245  fi
4246  rm -f conftest*
4247fi
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4249$as_echo "$lt_cv_nm_interface" >&6; }
4250
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4252$as_echo_n "checking whether ln -s works... " >&6; }
4253LN_S=$as_ln_s
4254if test "$LN_S" = "ln -s"; then
4255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4256$as_echo "yes" >&6; }
4257else
4258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4259$as_echo "no, using $LN_S" >&6; }
4260fi
4261
4262# find the maximum length of command line arguments
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4264$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4265if ${lt_cv_sys_max_cmd_len+:} false; then :
4266  $as_echo_n "(cached) " >&6
4267else
4268    i=0
4269  teststring="ABCD"
4270
4271  case $build_os in
4272  msdosdjgpp*)
4273    # On DJGPP, this test can blow up pretty badly due to problems in libc
4274    # (any single argument exceeding 2000 bytes causes a buffer overrun
4275    # during glob expansion).  Even if it were fixed, the result of this
4276    # check would be larger than it should be.
4277    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4278    ;;
4279
4280  gnu*)
4281    # Under GNU Hurd, this test is not required because there is
4282    # no limit to the length of command line arguments.
4283    # Libtool will interpret -1 as no limit whatsoever
4284    lt_cv_sys_max_cmd_len=-1;
4285    ;;
4286
4287  cygwin* | mingw* | cegcc*)
4288    # On Win9x/ME, this test blows up -- it succeeds, but takes
4289    # about 5 minutes as the teststring grows exponentially.
4290    # Worse, since 9x/ME are not pre-emptively multitasking,
4291    # you end up with a "frozen" computer, even though with patience
4292    # the test eventually succeeds (with a max line length of 256k).
4293    # Instead, let's just punt: use the minimum linelength reported by
4294    # all of the supported platforms: 8192 (on NT/2K/XP).
4295    lt_cv_sys_max_cmd_len=8192;
4296    ;;
4297
4298  mint*)
4299    # On MiNT this can take a long time and run out of memory.
4300    lt_cv_sys_max_cmd_len=8192;
4301    ;;
4302
4303  amigaos*)
4304    # On AmigaOS with pdksh, this test takes hours, literally.
4305    # So we just punt and use a minimum line length of 8192.
4306    lt_cv_sys_max_cmd_len=8192;
4307    ;;
4308
4309  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4310    # This has been around since 386BSD, at least.  Likely further.
4311    if test -x /sbin/sysctl; then
4312      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4313    elif test -x /usr/sbin/sysctl; then
4314      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4315    else
4316      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4317    fi
4318    # And add a safety zone
4319    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4320    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4321    ;;
4322
4323  interix*)
4324    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4325    lt_cv_sys_max_cmd_len=196608
4326    ;;
4327
4328  osf*)
4329    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4330    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4331    # nice to cause kernel panics so lets avoid the loop below.
4332    # First set a reasonable default.
4333    lt_cv_sys_max_cmd_len=16384
4334    #
4335    if test -x /sbin/sysconfig; then
4336      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4337        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4338      esac
4339    fi
4340    ;;
4341  sco3.2v5*)
4342    lt_cv_sys_max_cmd_len=102400
4343    ;;
4344  sysv5* | sco5v6* | sysv4.2uw2*)
4345    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4346    if test -n "$kargmax"; then
4347      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4348    else
4349      lt_cv_sys_max_cmd_len=32768
4350    fi
4351    ;;
4352  *)
4353    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4354    if test -n "$lt_cv_sys_max_cmd_len"; then
4355      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4356      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4357    else
4358      # Make teststring a little bigger before we do anything with it.
4359      # a 1K string should be a reasonable start.
4360      for i in 1 2 3 4 5 6 7 8 ; do
4361        teststring=$teststring$teststring
4362      done
4363      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4364      # If test is not a shell built-in, we'll probably end up computing a
4365      # maximum length that is only half of the actual maximum length, but
4366      # we can't tell.
4367      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4368	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4369	      test $i != 17 # 1/2 MB should be enough
4370      do
4371        i=`expr $i + 1`
4372        teststring=$teststring$teststring
4373      done
4374      # Only check the string length outside the loop.
4375      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4376      teststring=
4377      # Add a significant safety factor because C++ compilers can tack on
4378      # massive amounts of additional arguments before passing them to the
4379      # linker.  It appears as though 1/2 is a usable value.
4380      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4381    fi
4382    ;;
4383  esac
4384
4385fi
4386
4387if test -n $lt_cv_sys_max_cmd_len ; then
4388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4389$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4390else
4391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4392$as_echo "none" >&6; }
4393fi
4394max_cmd_len=$lt_cv_sys_max_cmd_len
4395
4396
4397
4398
4399
4400
4401: ${CP="cp -f"}
4402: ${MV="mv -f"}
4403: ${RM="rm -f"}
4404
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4406$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4407# Try some XSI features
4408xsi_shell=no
4409( _lt_dummy="a/b/c"
4410  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4411      = c,a/b,b/c, \
4412    && eval 'test $(( 1 + 1 )) -eq 2 \
4413    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4414  && xsi_shell=yes
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4416$as_echo "$xsi_shell" >&6; }
4417
4418
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4420$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4421lt_shell_append=no
4422( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4423    >/dev/null 2>&1 \
4424  && lt_shell_append=yes
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4426$as_echo "$lt_shell_append" >&6; }
4427
4428
4429if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4430  lt_unset=unset
4431else
4432  lt_unset=false
4433fi
4434
4435
4436
4437
4438
4439# test EBCDIC or ASCII
4440case `echo X|tr X '\101'` in
4441 A) # ASCII based system
4442    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4443  lt_SP2NL='tr \040 \012'
4444  lt_NL2SP='tr \015\012 \040\040'
4445  ;;
4446 *) # EBCDIC based system
4447  lt_SP2NL='tr \100 \n'
4448  lt_NL2SP='tr \r\n \100\100'
4449  ;;
4450esac
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4461$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4462if ${lt_cv_to_host_file_cmd+:} false; then :
4463  $as_echo_n "(cached) " >&6
4464else
4465  case $host in
4466  *-*-mingw* )
4467    case $build in
4468      *-*-mingw* ) # actually msys
4469        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4470        ;;
4471      *-*-cygwin* )
4472        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4473        ;;
4474      * ) # otherwise, assume *nix
4475        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4476        ;;
4477    esac
4478    ;;
4479  *-*-cygwin* )
4480    case $build in
4481      *-*-mingw* ) # actually msys
4482        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4483        ;;
4484      *-*-cygwin* )
4485        lt_cv_to_host_file_cmd=func_convert_file_noop
4486        ;;
4487      * ) # otherwise, assume *nix
4488        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4489        ;;
4490    esac
4491    ;;
4492  * ) # unhandled hosts (and "normal" native builds)
4493    lt_cv_to_host_file_cmd=func_convert_file_noop
4494    ;;
4495esac
4496
4497fi
4498
4499to_host_file_cmd=$lt_cv_to_host_file_cmd
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4501$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4502
4503
4504
4505
4506
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4508$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4509if ${lt_cv_to_tool_file_cmd+:} false; then :
4510  $as_echo_n "(cached) " >&6
4511else
4512  #assume ordinary cross tools, or native build.
4513lt_cv_to_tool_file_cmd=func_convert_file_noop
4514case $host in
4515  *-*-mingw* )
4516    case $build in
4517      *-*-mingw* ) # actually msys
4518        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4519        ;;
4520    esac
4521    ;;
4522esac
4523
4524fi
4525
4526to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4528$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4529
4530
4531
4532
4533
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4535$as_echo_n "checking for $LD option to reload object files... " >&6; }
4536if ${lt_cv_ld_reload_flag+:} false; then :
4537  $as_echo_n "(cached) " >&6
4538else
4539  lt_cv_ld_reload_flag='-r'
4540fi
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4542$as_echo "$lt_cv_ld_reload_flag" >&6; }
4543reload_flag=$lt_cv_ld_reload_flag
4544case $reload_flag in
4545"" | " "*) ;;
4546*) reload_flag=" $reload_flag" ;;
4547esac
4548reload_cmds='$LD$reload_flag -o $output$reload_objs'
4549case $host_os in
4550  cygwin* | mingw* | pw32* | cegcc*)
4551    if test "$GCC" != yes; then
4552      reload_cmds=false
4553    fi
4554    ;;
4555  darwin*)
4556    if test "$GCC" = yes; then
4557      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4558    else
4559      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4560    fi
4561    ;;
4562esac
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572if test -n "$ac_tool_prefix"; then
4573  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4574set dummy ${ac_tool_prefix}objdump; ac_word=$2
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576$as_echo_n "checking for $ac_word... " >&6; }
4577if ${ac_cv_prog_OBJDUMP+:} false; then :
4578  $as_echo_n "(cached) " >&6
4579else
4580  if test -n "$OBJDUMP"; then
4581  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4582else
4583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584for as_dir in $PATH
4585do
4586  IFS=$as_save_IFS
4587  test -z "$as_dir" && as_dir=.
4588    for ac_exec_ext in '' $ac_executable_extensions; do
4589  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592    break 2
4593  fi
4594done
4595  done
4596IFS=$as_save_IFS
4597
4598fi
4599fi
4600OBJDUMP=$ac_cv_prog_OBJDUMP
4601if test -n "$OBJDUMP"; then
4602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4603$as_echo "$OBJDUMP" >&6; }
4604else
4605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606$as_echo "no" >&6; }
4607fi
4608
4609
4610fi
4611if test -z "$ac_cv_prog_OBJDUMP"; then
4612  ac_ct_OBJDUMP=$OBJDUMP
4613  # Extract the first word of "objdump", so it can be a program name with args.
4614set dummy objdump; ac_word=$2
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616$as_echo_n "checking for $ac_word... " >&6; }
4617if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4618  $as_echo_n "(cached) " >&6
4619else
4620  if test -n "$ac_ct_OBJDUMP"; then
4621  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4622else
4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626  IFS=$as_save_IFS
4627  test -z "$as_dir" && as_dir=.
4628    for ac_exec_ext in '' $ac_executable_extensions; do
4629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632    break 2
4633  fi
4634done
4635  done
4636IFS=$as_save_IFS
4637
4638fi
4639fi
4640ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4641if test -n "$ac_ct_OBJDUMP"; then
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4643$as_echo "$ac_ct_OBJDUMP" >&6; }
4644else
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646$as_echo "no" >&6; }
4647fi
4648
4649  if test "x$ac_ct_OBJDUMP" = x; then
4650    OBJDUMP="false"
4651  else
4652    case $cross_compiling:$ac_tool_warned in
4653yes:)
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4656ac_tool_warned=yes ;;
4657esac
4658    OBJDUMP=$ac_ct_OBJDUMP
4659  fi
4660else
4661  OBJDUMP="$ac_cv_prog_OBJDUMP"
4662fi
4663
4664test -z "$OBJDUMP" && OBJDUMP=objdump
4665
4666
4667
4668
4669
4670
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4672$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4673if ${lt_cv_deplibs_check_method+:} false; then :
4674  $as_echo_n "(cached) " >&6
4675else
4676  lt_cv_file_magic_cmd='$MAGIC_CMD'
4677lt_cv_file_magic_test_file=
4678lt_cv_deplibs_check_method='unknown'
4679# Need to set the preceding variable on all platforms that support
4680# interlibrary dependencies.
4681# 'none' -- dependencies not supported.
4682# `unknown' -- same as none, but documents that we really don't know.
4683# 'pass_all' -- all dependencies passed with no checks.
4684# 'test_compile' -- check by making test program.
4685# 'file_magic [[regex]]' -- check by looking for files in library path
4686# which responds to the $file_magic_cmd with a given extended regex.
4687# If you have `file' or equivalent on your system and you're not sure
4688# whether `pass_all' will *always* work, you probably want this one.
4689
4690case $host_os in
4691aix[4-9]*)
4692  lt_cv_deplibs_check_method=pass_all
4693  ;;
4694
4695beos*)
4696  lt_cv_deplibs_check_method=pass_all
4697  ;;
4698
4699bsdi[45]*)
4700  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4701  lt_cv_file_magic_cmd='/usr/bin/file -L'
4702  lt_cv_file_magic_test_file=/shlib/libc.so
4703  ;;
4704
4705cygwin*)
4706  # func_win32_libid is a shell function defined in ltmain.sh
4707  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4708  lt_cv_file_magic_cmd='func_win32_libid'
4709  ;;
4710
4711mingw* | pw32*)
4712  # Base MSYS/MinGW do not provide the 'file' command needed by
4713  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4714  # unless we find 'file', for example because we are cross-compiling.
4715  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4716  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4717    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4718    lt_cv_file_magic_cmd='func_win32_libid'
4719  else
4720    # Keep this pattern in sync with the one in func_win32_libid.
4721    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4722    lt_cv_file_magic_cmd='$OBJDUMP -f'
4723  fi
4724  ;;
4725
4726cegcc*)
4727  # use the weaker test based on 'objdump'. See mingw*.
4728  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4729  lt_cv_file_magic_cmd='$OBJDUMP -f'
4730  ;;
4731
4732darwin* | rhapsody*)
4733  lt_cv_deplibs_check_method=pass_all
4734  ;;
4735
4736freebsd* | dragonfly*)
4737  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4738    case $host_cpu in
4739    i*86 )
4740      # Not sure whether the presence of OpenBSD here was a mistake.
4741      # Let's accept both of them until this is cleared up.
4742      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4743      lt_cv_file_magic_cmd=/usr/bin/file
4744      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4745      ;;
4746    esac
4747  else
4748    lt_cv_deplibs_check_method=pass_all
4749  fi
4750  ;;
4751
4752gnu*)
4753  lt_cv_deplibs_check_method=pass_all
4754  ;;
4755
4756haiku*)
4757  lt_cv_deplibs_check_method=pass_all
4758  ;;
4759
4760hpux10.20* | hpux11*)
4761  lt_cv_file_magic_cmd=/usr/bin/file
4762  case $host_cpu in
4763  ia64*)
4764    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4765    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4766    ;;
4767  hppa*64*)
4768    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4769    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4770    ;;
4771  *)
4772    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4773    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4774    ;;
4775  esac
4776  ;;
4777
4778interix[3-9]*)
4779  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4780  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4781  ;;
4782
4783irix5* | irix6* | nonstopux*)
4784  case $LD in
4785  *-32|*"-32 ") libmagic=32-bit;;
4786  *-n32|*"-n32 ") libmagic=N32;;
4787  *-64|*"-64 ") libmagic=64-bit;;
4788  *) libmagic=never-match;;
4789  esac
4790  lt_cv_deplibs_check_method=pass_all
4791  ;;
4792
4793# This must be Linux ELF.
4794linux* | k*bsd*-gnu | kopensolaris*-gnu)
4795  lt_cv_deplibs_check_method=pass_all
4796  ;;
4797
4798netbsd* | netbsdelf*-gnu)
4799  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4800    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4801  else
4802    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4803  fi
4804  ;;
4805
4806newos6*)
4807  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4808  lt_cv_file_magic_cmd=/usr/bin/file
4809  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4810  ;;
4811
4812*nto* | *qnx*)
4813  lt_cv_deplibs_check_method=pass_all
4814  ;;
4815
4816openbsd*)
4817  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4818    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4819  else
4820    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4821  fi
4822  ;;
4823
4824osf3* | osf4* | osf5*)
4825  lt_cv_deplibs_check_method=pass_all
4826  ;;
4827
4828rdos*)
4829  lt_cv_deplibs_check_method=pass_all
4830  ;;
4831
4832solaris*)
4833  lt_cv_deplibs_check_method=pass_all
4834  ;;
4835
4836sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4837  lt_cv_deplibs_check_method=pass_all
4838  ;;
4839
4840sysv4 | sysv4.3*)
4841  case $host_vendor in
4842  motorola)
4843    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]'
4844    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4845    ;;
4846  ncr)
4847    lt_cv_deplibs_check_method=pass_all
4848    ;;
4849  sequent)
4850    lt_cv_file_magic_cmd='/bin/file'
4851    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4852    ;;
4853  sni)
4854    lt_cv_file_magic_cmd='/bin/file'
4855    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4856    lt_cv_file_magic_test_file=/lib/libc.so
4857    ;;
4858  siemens)
4859    lt_cv_deplibs_check_method=pass_all
4860    ;;
4861  pc)
4862    lt_cv_deplibs_check_method=pass_all
4863    ;;
4864  esac
4865  ;;
4866
4867tpf*)
4868  lt_cv_deplibs_check_method=pass_all
4869  ;;
4870esac
4871
4872fi
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4874$as_echo "$lt_cv_deplibs_check_method" >&6; }
4875
4876file_magic_glob=
4877want_nocaseglob=no
4878if test "$build" = "$host"; then
4879  case $host_os in
4880  mingw* | pw32*)
4881    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4882      want_nocaseglob=yes
4883    else
4884      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4885    fi
4886    ;;
4887  esac
4888fi
4889
4890file_magic_cmd=$lt_cv_file_magic_cmd
4891deplibs_check_method=$lt_cv_deplibs_check_method
4892test -z "$deplibs_check_method" && deplibs_check_method=unknown
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915if test -n "$ac_tool_prefix"; then
4916  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4917set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919$as_echo_n "checking for $ac_word... " >&6; }
4920if ${ac_cv_prog_DLLTOOL+:} false; then :
4921  $as_echo_n "(cached) " >&6
4922else
4923  if test -n "$DLLTOOL"; then
4924  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4925else
4926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927for as_dir in $PATH
4928do
4929  IFS=$as_save_IFS
4930  test -z "$as_dir" && as_dir=.
4931    for ac_exec_ext in '' $ac_executable_extensions; do
4932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935    break 2
4936  fi
4937done
4938  done
4939IFS=$as_save_IFS
4940
4941fi
4942fi
4943DLLTOOL=$ac_cv_prog_DLLTOOL
4944if test -n "$DLLTOOL"; then
4945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4946$as_echo "$DLLTOOL" >&6; }
4947else
4948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949$as_echo "no" >&6; }
4950fi
4951
4952
4953fi
4954if test -z "$ac_cv_prog_DLLTOOL"; then
4955  ac_ct_DLLTOOL=$DLLTOOL
4956  # Extract the first word of "dlltool", so it can be a program name with args.
4957set dummy dlltool; ac_word=$2
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959$as_echo_n "checking for $ac_word... " >&6; }
4960if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4961  $as_echo_n "(cached) " >&6
4962else
4963  if test -n "$ac_ct_DLLTOOL"; then
4964  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4965else
4966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967for as_dir in $PATH
4968do
4969  IFS=$as_save_IFS
4970  test -z "$as_dir" && as_dir=.
4971    for ac_exec_ext in '' $ac_executable_extensions; do
4972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975    break 2
4976  fi
4977done
4978  done
4979IFS=$as_save_IFS
4980
4981fi
4982fi
4983ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4984if test -n "$ac_ct_DLLTOOL"; then
4985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4986$as_echo "$ac_ct_DLLTOOL" >&6; }
4987else
4988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989$as_echo "no" >&6; }
4990fi
4991
4992  if test "x$ac_ct_DLLTOOL" = x; then
4993    DLLTOOL="false"
4994  else
4995    case $cross_compiling:$ac_tool_warned in
4996yes:)
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4999ac_tool_warned=yes ;;
5000esac
5001    DLLTOOL=$ac_ct_DLLTOOL
5002  fi
5003else
5004  DLLTOOL="$ac_cv_prog_DLLTOOL"
5005fi
5006
5007test -z "$DLLTOOL" && DLLTOOL=dlltool
5008
5009
5010
5011
5012
5013
5014
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5016$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5017if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  lt_cv_sharedlib_from_linklib_cmd='unknown'
5021
5022case $host_os in
5023cygwin* | mingw* | pw32* | cegcc*)
5024  # two different shell functions defined in ltmain.sh
5025  # decide which to use based on capabilities of $DLLTOOL
5026  case `$DLLTOOL --help 2>&1` in
5027  *--identify-strict*)
5028    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5029    ;;
5030  *)
5031    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5032    ;;
5033  esac
5034  ;;
5035*)
5036  # fallback: assume linklib IS sharedlib
5037  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5038  ;;
5039esac
5040
5041fi
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5043$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5044sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5045test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5046
5047
5048
5049
5050
5051
5052
5053
5054if test -n "$ac_tool_prefix"; then
5055  for ac_prog in ar
5056  do
5057    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5058set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060$as_echo_n "checking for $ac_word... " >&6; }
5061if ${ac_cv_prog_AR+:} false; then :
5062  $as_echo_n "(cached) " >&6
5063else
5064  if test -n "$AR"; then
5065  ac_cv_prog_AR="$AR" # Let the user override the test.
5066else
5067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068for as_dir in $PATH
5069do
5070  IFS=$as_save_IFS
5071  test -z "$as_dir" && as_dir=.
5072    for ac_exec_ext in '' $ac_executable_extensions; do
5073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076    break 2
5077  fi
5078done
5079  done
5080IFS=$as_save_IFS
5081
5082fi
5083fi
5084AR=$ac_cv_prog_AR
5085if test -n "$AR"; then
5086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5087$as_echo "$AR" >&6; }
5088else
5089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090$as_echo "no" >&6; }
5091fi
5092
5093
5094    test -n "$AR" && break
5095  done
5096fi
5097if test -z "$AR"; then
5098  ac_ct_AR=$AR
5099  for ac_prog in ar
5100do
5101  # Extract the first word of "$ac_prog", so it can be a program name with args.
5102set dummy $ac_prog; ac_word=$2
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104$as_echo_n "checking for $ac_word... " >&6; }
5105if ${ac_cv_prog_ac_ct_AR+:} false; then :
5106  $as_echo_n "(cached) " >&6
5107else
5108  if test -n "$ac_ct_AR"; then
5109  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5110else
5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114  IFS=$as_save_IFS
5115  test -z "$as_dir" && as_dir=.
5116    for ac_exec_ext in '' $ac_executable_extensions; do
5117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118    ac_cv_prog_ac_ct_AR="$ac_prog"
5119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120    break 2
5121  fi
5122done
5123  done
5124IFS=$as_save_IFS
5125
5126fi
5127fi
5128ac_ct_AR=$ac_cv_prog_ac_ct_AR
5129if test -n "$ac_ct_AR"; then
5130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5131$as_echo "$ac_ct_AR" >&6; }
5132else
5133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134$as_echo "no" >&6; }
5135fi
5136
5137
5138  test -n "$ac_ct_AR" && break
5139done
5140
5141  if test "x$ac_ct_AR" = x; then
5142    AR="false"
5143  else
5144    case $cross_compiling:$ac_tool_warned in
5145yes:)
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148ac_tool_warned=yes ;;
5149esac
5150    AR=$ac_ct_AR
5151  fi
5152fi
5153
5154: ${AR=ar}
5155: ${AR_FLAGS=cru}
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5168$as_echo_n "checking for archiver @FILE support... " >&6; }
5169if ${lt_cv_ar_at_file+:} false; then :
5170  $as_echo_n "(cached) " >&6
5171else
5172  lt_cv_ar_at_file=no
5173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174/* end confdefs.h.  */
5175
5176int
5177main ()
5178{
5179
5180  ;
5181  return 0;
5182}
5183_ACEOF
5184if ac_fn_c_try_compile "$LINENO"; then :
5185  echo conftest.$ac_objext > conftest.lst
5186      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5187      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5188  (eval $lt_ar_try) 2>&5
5189  ac_status=$?
5190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5191  test $ac_status = 0; }
5192      if test "$ac_status" -eq 0; then
5193	# Ensure the archiver fails upon bogus file names.
5194	rm -f conftest.$ac_objext libconftest.a
5195	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5196  (eval $lt_ar_try) 2>&5
5197  ac_status=$?
5198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5199  test $ac_status = 0; }
5200	if test "$ac_status" -ne 0; then
5201          lt_cv_ar_at_file=@
5202        fi
5203      fi
5204      rm -f conftest.* libconftest.a
5205
5206fi
5207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208
5209fi
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5211$as_echo "$lt_cv_ar_at_file" >&6; }
5212
5213if test "x$lt_cv_ar_at_file" = xno; then
5214  archiver_list_spec=
5215else
5216  archiver_list_spec=$lt_cv_ar_at_file
5217fi
5218
5219
5220
5221
5222
5223
5224
5225if test -n "$ac_tool_prefix"; then
5226  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5227set dummy ${ac_tool_prefix}strip; ac_word=$2
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229$as_echo_n "checking for $ac_word... " >&6; }
5230if ${ac_cv_prog_STRIP+:} false; then :
5231  $as_echo_n "(cached) " >&6
5232else
5233  if test -n "$STRIP"; then
5234  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5235else
5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239  IFS=$as_save_IFS
5240  test -z "$as_dir" && as_dir=.
5241    for ac_exec_ext in '' $ac_executable_extensions; do
5242  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245    break 2
5246  fi
5247done
5248  done
5249IFS=$as_save_IFS
5250
5251fi
5252fi
5253STRIP=$ac_cv_prog_STRIP
5254if test -n "$STRIP"; then
5255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5256$as_echo "$STRIP" >&6; }
5257else
5258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259$as_echo "no" >&6; }
5260fi
5261
5262
5263fi
5264if test -z "$ac_cv_prog_STRIP"; then
5265  ac_ct_STRIP=$STRIP
5266  # Extract the first word of "strip", so it can be a program name with args.
5267set dummy strip; ac_word=$2
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269$as_echo_n "checking for $ac_word... " >&6; }
5270if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5271  $as_echo_n "(cached) " >&6
5272else
5273  if test -n "$ac_ct_STRIP"; then
5274  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5275else
5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279  IFS=$as_save_IFS
5280  test -z "$as_dir" && as_dir=.
5281    for ac_exec_ext in '' $ac_executable_extensions; do
5282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283    ac_cv_prog_ac_ct_STRIP="strip"
5284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285    break 2
5286  fi
5287done
5288  done
5289IFS=$as_save_IFS
5290
5291fi
5292fi
5293ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5294if test -n "$ac_ct_STRIP"; then
5295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5296$as_echo "$ac_ct_STRIP" >&6; }
5297else
5298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299$as_echo "no" >&6; }
5300fi
5301
5302  if test "x$ac_ct_STRIP" = x; then
5303    STRIP=":"
5304  else
5305    case $cross_compiling:$ac_tool_warned in
5306yes:)
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5309ac_tool_warned=yes ;;
5310esac
5311    STRIP=$ac_ct_STRIP
5312  fi
5313else
5314  STRIP="$ac_cv_prog_STRIP"
5315fi
5316
5317test -z "$STRIP" && STRIP=:
5318
5319
5320
5321
5322
5323
5324if test -n "$ac_tool_prefix"; then
5325  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5326set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328$as_echo_n "checking for $ac_word... " >&6; }
5329if ${ac_cv_prog_RANLIB+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  if test -n "$RANLIB"; then
5333  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5334else
5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338  IFS=$as_save_IFS
5339  test -z "$as_dir" && as_dir=.
5340    for ac_exec_ext in '' $ac_executable_extensions; do
5341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344    break 2
5345  fi
5346done
5347  done
5348IFS=$as_save_IFS
5349
5350fi
5351fi
5352RANLIB=$ac_cv_prog_RANLIB
5353if test -n "$RANLIB"; then
5354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5355$as_echo "$RANLIB" >&6; }
5356else
5357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358$as_echo "no" >&6; }
5359fi
5360
5361
5362fi
5363if test -z "$ac_cv_prog_RANLIB"; then
5364  ac_ct_RANLIB=$RANLIB
5365  # Extract the first word of "ranlib", so it can be a program name with args.
5366set dummy ranlib; ac_word=$2
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368$as_echo_n "checking for $ac_word... " >&6; }
5369if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5370  $as_echo_n "(cached) " >&6
5371else
5372  if test -n "$ac_ct_RANLIB"; then
5373  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5374else
5375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376for as_dir in $PATH
5377do
5378  IFS=$as_save_IFS
5379  test -z "$as_dir" && as_dir=.
5380    for ac_exec_ext in '' $ac_executable_extensions; do
5381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382    ac_cv_prog_ac_ct_RANLIB="ranlib"
5383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384    break 2
5385  fi
5386done
5387  done
5388IFS=$as_save_IFS
5389
5390fi
5391fi
5392ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5393if test -n "$ac_ct_RANLIB"; then
5394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5395$as_echo "$ac_ct_RANLIB" >&6; }
5396else
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398$as_echo "no" >&6; }
5399fi
5400
5401  if test "x$ac_ct_RANLIB" = x; then
5402    RANLIB=":"
5403  else
5404    case $cross_compiling:$ac_tool_warned in
5405yes:)
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5408ac_tool_warned=yes ;;
5409esac
5410    RANLIB=$ac_ct_RANLIB
5411  fi
5412else
5413  RANLIB="$ac_cv_prog_RANLIB"
5414fi
5415
5416test -z "$RANLIB" && RANLIB=:
5417
5418
5419
5420
5421
5422
5423# Determine commands to create old-style static archives.
5424old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5425old_postinstall_cmds='chmod 644 $oldlib'
5426old_postuninstall_cmds=
5427
5428if test -n "$RANLIB"; then
5429  case $host_os in
5430  openbsd*)
5431    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5432    ;;
5433  *)
5434    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5435    ;;
5436  esac
5437  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5438fi
5439
5440case $host_os in
5441  darwin*)
5442    lock_old_archive_extraction=yes ;;
5443  *)
5444    lock_old_archive_extraction=no ;;
5445esac
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467for ac_prog in gawk mawk nawk awk
5468do
5469  # Extract the first word of "$ac_prog", so it can be a program name with args.
5470set dummy $ac_prog; ac_word=$2
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472$as_echo_n "checking for $ac_word... " >&6; }
5473if ${ac_cv_prog_AWK+:} false; then :
5474  $as_echo_n "(cached) " >&6
5475else
5476  if test -n "$AWK"; then
5477  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5478else
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482  IFS=$as_save_IFS
5483  test -z "$as_dir" && as_dir=.
5484    for ac_exec_ext in '' $ac_executable_extensions; do
5485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486    ac_cv_prog_AWK="$ac_prog"
5487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488    break 2
5489  fi
5490done
5491  done
5492IFS=$as_save_IFS
5493
5494fi
5495fi
5496AWK=$ac_cv_prog_AWK
5497if test -n "$AWK"; then
5498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5499$as_echo "$AWK" >&6; }
5500else
5501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502$as_echo "no" >&6; }
5503fi
5504
5505
5506  test -n "$AWK" && break
5507done
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527# If no C compiler was specified, use CC.
5528LTCC=${LTCC-"$CC"}
5529
5530# If no C compiler flags were specified, use CFLAGS.
5531LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5532
5533# Allow CC to be a program name with arguments.
5534compiler=$CC
5535
5536
5537# Check for command to grab the raw symbol name followed by C symbol from nm.
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5539$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5540if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5541  $as_echo_n "(cached) " >&6
5542else
5543
5544# These are sane defaults that work on at least a few old systems.
5545# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5546
5547# Character class describing NM global symbol codes.
5548symcode='[BCDEGRST]'
5549
5550# Regexp to match symbols that can be accessed directly from C.
5551sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5552
5553# Define system-specific variables.
5554case $host_os in
5555aix*)
5556  symcode='[BCDT]'
5557  ;;
5558cygwin* | mingw* | pw32* | cegcc*)
5559  symcode='[ABCDGISTW]'
5560  ;;
5561hpux*)
5562  if test "$host_cpu" = ia64; then
5563    symcode='[ABCDEGRST]'
5564  fi
5565  ;;
5566irix* | nonstopux*)
5567  symcode='[BCDEGRST]'
5568  ;;
5569osf*)
5570  symcode='[BCDEGQRST]'
5571  ;;
5572solaris*)
5573  symcode='[BDRT]'
5574  ;;
5575sco3.2v5*)
5576  symcode='[DT]'
5577  ;;
5578sysv4.2uw2*)
5579  symcode='[DT]'
5580  ;;
5581sysv5* | sco5v6* | unixware* | OpenUNIX*)
5582  symcode='[ABDT]'
5583  ;;
5584sysv4)
5585  symcode='[DFNSTU]'
5586  ;;
5587esac
5588
5589# If we're using GNU nm, then use its standard symbol codes.
5590case `$NM -V 2>&1` in
5591*GNU* | *'with BFD'*)
5592  symcode='[ABCDGIRSTW]' ;;
5593esac
5594
5595# Transform an extracted symbol line into a proper C declaration.
5596# Some systems (esp. on ia64) link data and code symbols differently,
5597# so use this general approach.
5598lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5599
5600# Transform an extracted symbol line into symbol name and symbol address
5601lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5602lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5603
5604# Handle CRLF in mingw tool chain
5605opt_cr=
5606case $build_os in
5607mingw*)
5608  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5609  ;;
5610esac
5611
5612# Try without a prefix underscore, then with it.
5613for ac_symprfx in "" "_"; do
5614
5615  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5616  symxfrm="\\1 $ac_symprfx\\2 \\2"
5617
5618  # Write the raw and C identifiers.
5619  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5620    # Fake it for dumpbin and say T for any non-static function
5621    # and D for any global variable.
5622    # Also find C++ and __fastcall symbols from MSVC++,
5623    # which start with @ or ?.
5624    lt_cv_sys_global_symbol_pipe="$AWK '"\
5625"     {last_section=section; section=\$ 3};"\
5626"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5627"     \$ 0!~/External *\|/{next};"\
5628"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5629"     {if(hide[section]) next};"\
5630"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5631"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5632"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5633"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5634"     ' prfx=^$ac_symprfx"
5635  else
5636    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5637  fi
5638  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5639
5640  # Check to see that the pipe works correctly.
5641  pipe_works=no
5642
5643  rm -f conftest*
5644  cat > conftest.$ac_ext <<_LT_EOF
5645#ifdef __cplusplus
5646extern "C" {
5647#endif
5648char nm_test_var;
5649void nm_test_func(void);
5650void nm_test_func(void){}
5651#ifdef __cplusplus
5652}
5653#endif
5654int main(){nm_test_var='a';nm_test_func();return(0);}
5655_LT_EOF
5656
5657  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5658  (eval $ac_compile) 2>&5
5659  ac_status=$?
5660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661  test $ac_status = 0; }; then
5662    # Now try to grab the symbols.
5663    nlist=conftest.nm
5664    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5665  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5666  ac_status=$?
5667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668  test $ac_status = 0; } && test -s "$nlist"; then
5669      # Try sorting and uniquifying the output.
5670      if sort "$nlist" | uniq > "$nlist"T; then
5671	mv -f "$nlist"T "$nlist"
5672      else
5673	rm -f "$nlist"T
5674      fi
5675
5676      # Make sure that we snagged all the symbols we need.
5677      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5678	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5679	  cat <<_LT_EOF > conftest.$ac_ext
5680/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5681#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5682/* DATA imports from DLLs on WIN32 con't be const, because runtime
5683   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5684# define LT_DLSYM_CONST
5685#elif defined(__osf__)
5686/* This system does not cope well with relocations in const data.  */
5687# define LT_DLSYM_CONST
5688#else
5689# define LT_DLSYM_CONST const
5690#endif
5691
5692#ifdef __cplusplus
5693extern "C" {
5694#endif
5695
5696_LT_EOF
5697	  # Now generate the symbol file.
5698	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5699
5700	  cat <<_LT_EOF >> conftest.$ac_ext
5701
5702/* The mapping between symbol names and symbols.  */
5703LT_DLSYM_CONST struct {
5704  const char *name;
5705  void       *address;
5706}
5707lt__PROGRAM__LTX_preloaded_symbols[] =
5708{
5709  { "@PROGRAM@", (void *) 0 },
5710_LT_EOF
5711	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5712	  cat <<\_LT_EOF >> conftest.$ac_ext
5713  {0, (void *) 0}
5714};
5715
5716/* This works around a problem in FreeBSD linker */
5717#ifdef FREEBSD_WORKAROUND
5718static const void *lt_preloaded_setup() {
5719  return lt__PROGRAM__LTX_preloaded_symbols;
5720}
5721#endif
5722
5723#ifdef __cplusplus
5724}
5725#endif
5726_LT_EOF
5727	  # Now try linking the two files.
5728	  mv conftest.$ac_objext conftstm.$ac_objext
5729	  lt_globsym_save_LIBS=$LIBS
5730	  lt_globsym_save_CFLAGS=$CFLAGS
5731	  LIBS="conftstm.$ac_objext"
5732	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5733	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5734  (eval $ac_link) 2>&5
5735  ac_status=$?
5736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5737  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5738	    pipe_works=yes
5739	  fi
5740	  LIBS=$lt_globsym_save_LIBS
5741	  CFLAGS=$lt_globsym_save_CFLAGS
5742	else
5743	  echo "cannot find nm_test_func in $nlist" >&5
5744	fi
5745      else
5746	echo "cannot find nm_test_var in $nlist" >&5
5747      fi
5748    else
5749      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5750    fi
5751  else
5752    echo "$progname: failed program was:" >&5
5753    cat conftest.$ac_ext >&5
5754  fi
5755  rm -rf conftest* conftst*
5756
5757  # Do not use the global_symbol_pipe unless it works.
5758  if test "$pipe_works" = yes; then
5759    break
5760  else
5761    lt_cv_sys_global_symbol_pipe=
5762  fi
5763done
5764
5765fi
5766
5767if test -z "$lt_cv_sys_global_symbol_pipe"; then
5768  lt_cv_sys_global_symbol_to_cdecl=
5769fi
5770if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5772$as_echo "failed" >&6; }
5773else
5774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5775$as_echo "ok" >&6; }
5776fi
5777
5778# Response file support.
5779if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5780  nm_file_list_spec='@'
5781elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5782  nm_file_list_spec='@'
5783fi
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5812$as_echo_n "checking for sysroot... " >&6; }
5813
5814# Check whether --with-sysroot was given.
5815if test "${with_sysroot+set}" = set; then :
5816  withval=$with_sysroot;
5817else
5818  with_sysroot=no
5819fi
5820
5821
5822lt_sysroot=
5823case ${with_sysroot} in #(
5824 yes)
5825   if test "$GCC" = yes; then
5826     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5827   fi
5828   ;; #(
5829 /*)
5830   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5831   ;; #(
5832 no|'')
5833   ;; #(
5834 *)
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5836$as_echo "${with_sysroot}" >&6; }
5837   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5838   ;;
5839esac
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5842$as_echo "${lt_sysroot:-no}" >&6; }
5843
5844
5845
5846
5847
5848# Check whether --enable-libtool-lock was given.
5849if test "${enable_libtool_lock+set}" = set; then :
5850  enableval=$enable_libtool_lock;
5851fi
5852
5853test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5854
5855# Some flags need to be propagated to the compiler or linker for good
5856# libtool support.
5857case $host in
5858ia64-*-hpux*)
5859  # Find out which ABI we are using.
5860  echo 'int i;' > conftest.$ac_ext
5861  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5862  (eval $ac_compile) 2>&5
5863  ac_status=$?
5864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865  test $ac_status = 0; }; then
5866    case `/usr/bin/file conftest.$ac_objext` in
5867      *ELF-32*)
5868	HPUX_IA64_MODE="32"
5869	;;
5870      *ELF-64*)
5871	HPUX_IA64_MODE="64"
5872	;;
5873    esac
5874  fi
5875  rm -rf conftest*
5876  ;;
5877*-*-irix6*)
5878  # Find out which ABI we are using.
5879  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5880  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5881  (eval $ac_compile) 2>&5
5882  ac_status=$?
5883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5884  test $ac_status = 0; }; then
5885    if test "$lt_cv_prog_gnu_ld" = yes; then
5886      case `/usr/bin/file conftest.$ac_objext` in
5887	*32-bit*)
5888	  LD="${LD-ld} -melf32bsmip"
5889	  ;;
5890	*N32*)
5891	  LD="${LD-ld} -melf32bmipn32"
5892	  ;;
5893	*64-bit*)
5894	  LD="${LD-ld} -melf64bmip"
5895	;;
5896      esac
5897    else
5898      case `/usr/bin/file conftest.$ac_objext` in
5899	*32-bit*)
5900	  LD="${LD-ld} -32"
5901	  ;;
5902	*N32*)
5903	  LD="${LD-ld} -n32"
5904	  ;;
5905	*64-bit*)
5906	  LD="${LD-ld} -64"
5907	  ;;
5908      esac
5909    fi
5910  fi
5911  rm -rf conftest*
5912  ;;
5913
5914x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5915s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5916  # Find out which ABI we are using.
5917  echo 'int i;' > conftest.$ac_ext
5918  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5919  (eval $ac_compile) 2>&5
5920  ac_status=$?
5921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5922  test $ac_status = 0; }; then
5923    case `/usr/bin/file conftest.o` in
5924      *32-bit*)
5925	case $host in
5926	  x86_64-*kfreebsd*-gnu)
5927	    LD="${LD-ld} -m elf_i386_fbsd"
5928	    ;;
5929	  x86_64-*linux*)
5930	    LD="${LD-ld} -m elf_i386"
5931	    ;;
5932	  ppc64-*linux*|powerpc64-*linux*)
5933	    LD="${LD-ld} -m elf32ppclinux"
5934	    ;;
5935	  s390x-*linux*)
5936	    LD="${LD-ld} -m elf_s390"
5937	    ;;
5938	  sparc64-*linux*)
5939	    LD="${LD-ld} -m elf32_sparc"
5940	    ;;
5941	esac
5942	;;
5943      *64-bit*)
5944	case $host in
5945	  x86_64-*kfreebsd*-gnu)
5946	    LD="${LD-ld} -m elf_x86_64_fbsd"
5947	    ;;
5948	  x86_64-*linux*)
5949	    LD="${LD-ld} -m elf_x86_64"
5950	    ;;
5951	  ppc*-*linux*|powerpc*-*linux*)
5952	    LD="${LD-ld} -m elf64ppc"
5953	    ;;
5954	  s390*-*linux*|s390*-*tpf*)
5955	    LD="${LD-ld} -m elf64_s390"
5956	    ;;
5957	  sparc*-*linux*)
5958	    LD="${LD-ld} -m elf64_sparc"
5959	    ;;
5960	esac
5961	;;
5962    esac
5963  fi
5964  rm -rf conftest*
5965  ;;
5966
5967*-*-sco3.2v5*)
5968  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5969  SAVE_CFLAGS="$CFLAGS"
5970  CFLAGS="$CFLAGS -belf"
5971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5972$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5973if ${lt_cv_cc_needs_belf+:} false; then :
5974  $as_echo_n "(cached) " >&6
5975else
5976  ac_ext=c
5977ac_cpp='$CPP $CPPFLAGS'
5978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5980ac_compiler_gnu=$ac_cv_c_compiler_gnu
5981
5982     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983/* end confdefs.h.  */
5984
5985int
5986main ()
5987{
5988
5989  ;
5990  return 0;
5991}
5992_ACEOF
5993if ac_fn_c_try_link "$LINENO"; then :
5994  lt_cv_cc_needs_belf=yes
5995else
5996  lt_cv_cc_needs_belf=no
5997fi
5998rm -f core conftest.err conftest.$ac_objext \
5999    conftest$ac_exeext conftest.$ac_ext
6000     ac_ext=c
6001ac_cpp='$CPP $CPPFLAGS'
6002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005
6006fi
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6008$as_echo "$lt_cv_cc_needs_belf" >&6; }
6009  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6010    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6011    CFLAGS="$SAVE_CFLAGS"
6012  fi
6013  ;;
6014sparc*-*solaris*)
6015  # Find out which ABI we are using.
6016  echo 'int i;' > conftest.$ac_ext
6017  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6018  (eval $ac_compile) 2>&5
6019  ac_status=$?
6020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6021  test $ac_status = 0; }; then
6022    case `/usr/bin/file conftest.o` in
6023    *64-bit*)
6024      case $lt_cv_prog_gnu_ld in
6025      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6026      *)
6027	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6028	  LD="${LD-ld} -64"
6029	fi
6030	;;
6031      esac
6032      ;;
6033    esac
6034  fi
6035  rm -rf conftest*
6036  ;;
6037esac
6038
6039need_locks="$enable_libtool_lock"
6040
6041if test -n "$ac_tool_prefix"; then
6042  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6043set dummy ${ac_tool_prefix}mt; ac_word=$2
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045$as_echo_n "checking for $ac_word... " >&6; }
6046if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6047  $as_echo_n "(cached) " >&6
6048else
6049  if test -n "$MANIFEST_TOOL"; then
6050  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6051else
6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH
6054do
6055  IFS=$as_save_IFS
6056  test -z "$as_dir" && as_dir=.
6057    for ac_exec_ext in '' $ac_executable_extensions; do
6058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061    break 2
6062  fi
6063done
6064  done
6065IFS=$as_save_IFS
6066
6067fi
6068fi
6069MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6070if test -n "$MANIFEST_TOOL"; then
6071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6072$as_echo "$MANIFEST_TOOL" >&6; }
6073else
6074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075$as_echo "no" >&6; }
6076fi
6077
6078
6079fi
6080if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6081  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6082  # Extract the first word of "mt", so it can be a program name with args.
6083set dummy mt; ac_word=$2
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085$as_echo_n "checking for $ac_word... " >&6; }
6086if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6087  $as_echo_n "(cached) " >&6
6088else
6089  if test -n "$ac_ct_MANIFEST_TOOL"; then
6090  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6091else
6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095  IFS=$as_save_IFS
6096  test -z "$as_dir" && as_dir=.
6097    for ac_exec_ext in '' $ac_executable_extensions; do
6098  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6099    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101    break 2
6102  fi
6103done
6104  done
6105IFS=$as_save_IFS
6106
6107fi
6108fi
6109ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6110if test -n "$ac_ct_MANIFEST_TOOL"; then
6111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6112$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6113else
6114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115$as_echo "no" >&6; }
6116fi
6117
6118  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6119    MANIFEST_TOOL=":"
6120  else
6121    case $cross_compiling:$ac_tool_warned in
6122yes:)
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6125ac_tool_warned=yes ;;
6126esac
6127    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6128  fi
6129else
6130  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6131fi
6132
6133test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6135$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6136if ${lt_cv_path_mainfest_tool+:} false; then :
6137  $as_echo_n "(cached) " >&6
6138else
6139  lt_cv_path_mainfest_tool=no
6140  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6141  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6142  cat conftest.err >&5
6143  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6144    lt_cv_path_mainfest_tool=yes
6145  fi
6146  rm -f conftest*
6147fi
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6149$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6150if test "x$lt_cv_path_mainfest_tool" != xyes; then
6151  MANIFEST_TOOL=:
6152fi
6153
6154
6155
6156
6157
6158
6159  case $host_os in
6160    rhapsody* | darwin*)
6161    if test -n "$ac_tool_prefix"; then
6162  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6163set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165$as_echo_n "checking for $ac_word... " >&6; }
6166if ${ac_cv_prog_DSYMUTIL+:} false; then :
6167  $as_echo_n "(cached) " >&6
6168else
6169  if test -n "$DSYMUTIL"; then
6170  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6171else
6172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173for as_dir in $PATH
6174do
6175  IFS=$as_save_IFS
6176  test -z "$as_dir" && as_dir=.
6177    for ac_exec_ext in '' $ac_executable_extensions; do
6178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181    break 2
6182  fi
6183done
6184  done
6185IFS=$as_save_IFS
6186
6187fi
6188fi
6189DSYMUTIL=$ac_cv_prog_DSYMUTIL
6190if test -n "$DSYMUTIL"; then
6191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6192$as_echo "$DSYMUTIL" >&6; }
6193else
6194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195$as_echo "no" >&6; }
6196fi
6197
6198
6199fi
6200if test -z "$ac_cv_prog_DSYMUTIL"; then
6201  ac_ct_DSYMUTIL=$DSYMUTIL
6202  # Extract the first word of "dsymutil", so it can be a program name with args.
6203set dummy dsymutil; ac_word=$2
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205$as_echo_n "checking for $ac_word... " >&6; }
6206if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6207  $as_echo_n "(cached) " >&6
6208else
6209  if test -n "$ac_ct_DSYMUTIL"; then
6210  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6211else
6212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213for as_dir in $PATH
6214do
6215  IFS=$as_save_IFS
6216  test -z "$as_dir" && as_dir=.
6217    for ac_exec_ext in '' $ac_executable_extensions; do
6218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221    break 2
6222  fi
6223done
6224  done
6225IFS=$as_save_IFS
6226
6227fi
6228fi
6229ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6230if test -n "$ac_ct_DSYMUTIL"; then
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6232$as_echo "$ac_ct_DSYMUTIL" >&6; }
6233else
6234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235$as_echo "no" >&6; }
6236fi
6237
6238  if test "x$ac_ct_DSYMUTIL" = x; then
6239    DSYMUTIL=":"
6240  else
6241    case $cross_compiling:$ac_tool_warned in
6242yes:)
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245ac_tool_warned=yes ;;
6246esac
6247    DSYMUTIL=$ac_ct_DSYMUTIL
6248  fi
6249else
6250  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6251fi
6252
6253    if test -n "$ac_tool_prefix"; then
6254  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6255set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257$as_echo_n "checking for $ac_word... " >&6; }
6258if ${ac_cv_prog_NMEDIT+:} false; then :
6259  $as_echo_n "(cached) " >&6
6260else
6261  if test -n "$NMEDIT"; then
6262  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267  IFS=$as_save_IFS
6268  test -z "$as_dir" && as_dir=.
6269    for ac_exec_ext in '' $ac_executable_extensions; do
6270  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273    break 2
6274  fi
6275done
6276  done
6277IFS=$as_save_IFS
6278
6279fi
6280fi
6281NMEDIT=$ac_cv_prog_NMEDIT
6282if test -n "$NMEDIT"; then
6283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6284$as_echo "$NMEDIT" >&6; }
6285else
6286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287$as_echo "no" >&6; }
6288fi
6289
6290
6291fi
6292if test -z "$ac_cv_prog_NMEDIT"; then
6293  ac_ct_NMEDIT=$NMEDIT
6294  # Extract the first word of "nmedit", so it can be a program name with args.
6295set dummy nmedit; ac_word=$2
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297$as_echo_n "checking for $ac_word... " >&6; }
6298if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6299  $as_echo_n "(cached) " >&6
6300else
6301  if test -n "$ac_ct_NMEDIT"; then
6302  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6303else
6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH
6306do
6307  IFS=$as_save_IFS
6308  test -z "$as_dir" && as_dir=.
6309    for ac_exec_ext in '' $ac_executable_extensions; do
6310  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313    break 2
6314  fi
6315done
6316  done
6317IFS=$as_save_IFS
6318
6319fi
6320fi
6321ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6322if test -n "$ac_ct_NMEDIT"; then
6323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6324$as_echo "$ac_ct_NMEDIT" >&6; }
6325else
6326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327$as_echo "no" >&6; }
6328fi
6329
6330  if test "x$ac_ct_NMEDIT" = x; then
6331    NMEDIT=":"
6332  else
6333    case $cross_compiling:$ac_tool_warned in
6334yes:)
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337ac_tool_warned=yes ;;
6338esac
6339    NMEDIT=$ac_ct_NMEDIT
6340  fi
6341else
6342  NMEDIT="$ac_cv_prog_NMEDIT"
6343fi
6344
6345    if test -n "$ac_tool_prefix"; then
6346  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6347set dummy ${ac_tool_prefix}lipo; ac_word=$2
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349$as_echo_n "checking for $ac_word... " >&6; }
6350if ${ac_cv_prog_LIPO+:} false; then :
6351  $as_echo_n "(cached) " >&6
6352else
6353  if test -n "$LIPO"; then
6354  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6355else
6356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357for as_dir in $PATH
6358do
6359  IFS=$as_save_IFS
6360  test -z "$as_dir" && as_dir=.
6361    for ac_exec_ext in '' $ac_executable_extensions; do
6362  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365    break 2
6366  fi
6367done
6368  done
6369IFS=$as_save_IFS
6370
6371fi
6372fi
6373LIPO=$ac_cv_prog_LIPO
6374if test -n "$LIPO"; then
6375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6376$as_echo "$LIPO" >&6; }
6377else
6378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379$as_echo "no" >&6; }
6380fi
6381
6382
6383fi
6384if test -z "$ac_cv_prog_LIPO"; then
6385  ac_ct_LIPO=$LIPO
6386  # Extract the first word of "lipo", so it can be a program name with args.
6387set dummy lipo; ac_word=$2
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389$as_echo_n "checking for $ac_word... " >&6; }
6390if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6391  $as_echo_n "(cached) " >&6
6392else
6393  if test -n "$ac_ct_LIPO"; then
6394  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6395else
6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399  IFS=$as_save_IFS
6400  test -z "$as_dir" && as_dir=.
6401    for ac_exec_ext in '' $ac_executable_extensions; do
6402  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403    ac_cv_prog_ac_ct_LIPO="lipo"
6404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405    break 2
6406  fi
6407done
6408  done
6409IFS=$as_save_IFS
6410
6411fi
6412fi
6413ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6414if test -n "$ac_ct_LIPO"; then
6415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6416$as_echo "$ac_ct_LIPO" >&6; }
6417else
6418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419$as_echo "no" >&6; }
6420fi
6421
6422  if test "x$ac_ct_LIPO" = x; then
6423    LIPO=":"
6424  else
6425    case $cross_compiling:$ac_tool_warned in
6426yes:)
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429ac_tool_warned=yes ;;
6430esac
6431    LIPO=$ac_ct_LIPO
6432  fi
6433else
6434  LIPO="$ac_cv_prog_LIPO"
6435fi
6436
6437    if test -n "$ac_tool_prefix"; then
6438  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6439set dummy ${ac_tool_prefix}otool; ac_word=$2
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441$as_echo_n "checking for $ac_word... " >&6; }
6442if ${ac_cv_prog_OTOOL+:} false; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  if test -n "$OTOOL"; then
6446  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6447else
6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
6451  IFS=$as_save_IFS
6452  test -z "$as_dir" && as_dir=.
6453    for ac_exec_ext in '' $ac_executable_extensions; do
6454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457    break 2
6458  fi
6459done
6460  done
6461IFS=$as_save_IFS
6462
6463fi
6464fi
6465OTOOL=$ac_cv_prog_OTOOL
6466if test -n "$OTOOL"; then
6467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6468$as_echo "$OTOOL" >&6; }
6469else
6470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471$as_echo "no" >&6; }
6472fi
6473
6474
6475fi
6476if test -z "$ac_cv_prog_OTOOL"; then
6477  ac_ct_OTOOL=$OTOOL
6478  # Extract the first word of "otool", so it can be a program name with args.
6479set dummy otool; ac_word=$2
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481$as_echo_n "checking for $ac_word... " >&6; }
6482if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6483  $as_echo_n "(cached) " >&6
6484else
6485  if test -n "$ac_ct_OTOOL"; then
6486  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6487else
6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489for as_dir in $PATH
6490do
6491  IFS=$as_save_IFS
6492  test -z "$as_dir" && as_dir=.
6493    for ac_exec_ext in '' $ac_executable_extensions; do
6494  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495    ac_cv_prog_ac_ct_OTOOL="otool"
6496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497    break 2
6498  fi
6499done
6500  done
6501IFS=$as_save_IFS
6502
6503fi
6504fi
6505ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6506if test -n "$ac_ct_OTOOL"; then
6507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6508$as_echo "$ac_ct_OTOOL" >&6; }
6509else
6510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511$as_echo "no" >&6; }
6512fi
6513
6514  if test "x$ac_ct_OTOOL" = x; then
6515    OTOOL=":"
6516  else
6517    case $cross_compiling:$ac_tool_warned in
6518yes:)
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521ac_tool_warned=yes ;;
6522esac
6523    OTOOL=$ac_ct_OTOOL
6524  fi
6525else
6526  OTOOL="$ac_cv_prog_OTOOL"
6527fi
6528
6529    if test -n "$ac_tool_prefix"; then
6530  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6531set dummy ${ac_tool_prefix}otool64; ac_word=$2
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533$as_echo_n "checking for $ac_word... " >&6; }
6534if ${ac_cv_prog_OTOOL64+:} false; then :
6535  $as_echo_n "(cached) " >&6
6536else
6537  if test -n "$OTOOL64"; then
6538  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6539else
6540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541for as_dir in $PATH
6542do
6543  IFS=$as_save_IFS
6544  test -z "$as_dir" && as_dir=.
6545    for ac_exec_ext in '' $ac_executable_extensions; do
6546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549    break 2
6550  fi
6551done
6552  done
6553IFS=$as_save_IFS
6554
6555fi
6556fi
6557OTOOL64=$ac_cv_prog_OTOOL64
6558if test -n "$OTOOL64"; then
6559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6560$as_echo "$OTOOL64" >&6; }
6561else
6562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563$as_echo "no" >&6; }
6564fi
6565
6566
6567fi
6568if test -z "$ac_cv_prog_OTOOL64"; then
6569  ac_ct_OTOOL64=$OTOOL64
6570  # Extract the first word of "otool64", so it can be a program name with args.
6571set dummy otool64; ac_word=$2
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573$as_echo_n "checking for $ac_word... " >&6; }
6574if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6575  $as_echo_n "(cached) " >&6
6576else
6577  if test -n "$ac_ct_OTOOL64"; then
6578  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6579else
6580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581for as_dir in $PATH
6582do
6583  IFS=$as_save_IFS
6584  test -z "$as_dir" && as_dir=.
6585    for ac_exec_ext in '' $ac_executable_extensions; do
6586  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587    ac_cv_prog_ac_ct_OTOOL64="otool64"
6588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589    break 2
6590  fi
6591done
6592  done
6593IFS=$as_save_IFS
6594
6595fi
6596fi
6597ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6598if test -n "$ac_ct_OTOOL64"; then
6599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6600$as_echo "$ac_ct_OTOOL64" >&6; }
6601else
6602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603$as_echo "no" >&6; }
6604fi
6605
6606  if test "x$ac_ct_OTOOL64" = x; then
6607    OTOOL64=":"
6608  else
6609    case $cross_compiling:$ac_tool_warned in
6610yes:)
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613ac_tool_warned=yes ;;
6614esac
6615    OTOOL64=$ac_ct_OTOOL64
6616  fi
6617else
6618  OTOOL64="$ac_cv_prog_OTOOL64"
6619fi
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6648$as_echo_n "checking for -single_module linker flag... " >&6; }
6649if ${lt_cv_apple_cc_single_mod+:} false; then :
6650  $as_echo_n "(cached) " >&6
6651else
6652  lt_cv_apple_cc_single_mod=no
6653      if test -z "${LT_MULTI_MODULE}"; then
6654	# By default we will add the -single_module flag. You can override
6655	# by either setting the environment variable LT_MULTI_MODULE
6656	# non-empty at configure time, or by adding -multi_module to the
6657	# link flags.
6658	rm -rf libconftest.dylib*
6659	echo "int foo(void){return 1;}" > conftest.c
6660	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6661-dynamiclib -Wl,-single_module conftest.c" >&5
6662	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6663	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6664        _lt_result=$?
6665	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6666	  lt_cv_apple_cc_single_mod=yes
6667	else
6668	  cat conftest.err >&5
6669	fi
6670	rm -rf libconftest.dylib*
6671	rm -f conftest.*
6672      fi
6673fi
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6675$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6676    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6677$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6678if ${lt_cv_ld_exported_symbols_list+:} false; then :
6679  $as_echo_n "(cached) " >&6
6680else
6681  lt_cv_ld_exported_symbols_list=no
6682      save_LDFLAGS=$LDFLAGS
6683      echo "_main" > conftest.sym
6684      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6685      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686/* end confdefs.h.  */
6687
6688int
6689main ()
6690{
6691
6692  ;
6693  return 0;
6694}
6695_ACEOF
6696if ac_fn_c_try_link "$LINENO"; then :
6697  lt_cv_ld_exported_symbols_list=yes
6698else
6699  lt_cv_ld_exported_symbols_list=no
6700fi
6701rm -f core conftest.err conftest.$ac_objext \
6702    conftest$ac_exeext conftest.$ac_ext
6703	LDFLAGS="$save_LDFLAGS"
6704
6705fi
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6707$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6708    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6709$as_echo_n "checking for -force_load linker flag... " >&6; }
6710if ${lt_cv_ld_force_load+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713  lt_cv_ld_force_load=no
6714      cat > conftest.c << _LT_EOF
6715int forced_loaded() { return 2;}
6716_LT_EOF
6717      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6718      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6719      echo "$AR cru libconftest.a conftest.o" >&5
6720      $AR cru libconftest.a conftest.o 2>&5
6721      echo "$RANLIB libconftest.a" >&5
6722      $RANLIB libconftest.a 2>&5
6723      cat > conftest.c << _LT_EOF
6724int main() { return 0;}
6725_LT_EOF
6726      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6727      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6728      _lt_result=$?
6729      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6730	lt_cv_ld_force_load=yes
6731      else
6732	cat conftest.err >&5
6733      fi
6734        rm -f conftest.err libconftest.a conftest conftest.c
6735        rm -rf conftest.dSYM
6736
6737fi
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6739$as_echo "$lt_cv_ld_force_load" >&6; }
6740    case $host_os in
6741    rhapsody* | darwin1.[012])
6742      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6743    darwin1.*)
6744      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6745    darwin*) # darwin 5.x on
6746      # if running on 10.5 or later, the deployment target defaults
6747      # to the OS version, if on x86, and 10.4, the deployment
6748      # target defaults to 10.4. Don't you love it?
6749      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6750	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6751	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6752	10.[012]*)
6753	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6754	10.*)
6755	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6756      esac
6757    ;;
6758  esac
6759    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6760      _lt_dar_single_mod='$single_module'
6761    fi
6762    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6763      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6764    else
6765      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6766    fi
6767    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6768      _lt_dsymutil='~$DSYMUTIL $lib || :'
6769    else
6770      _lt_dsymutil=
6771    fi
6772    ;;
6773  esac
6774
6775ac_ext=c
6776ac_cpp='$CPP $CPPFLAGS'
6777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779ac_compiler_gnu=$ac_cv_c_compiler_gnu
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6781$as_echo_n "checking how to run the C preprocessor... " >&6; }
6782# On Suns, sometimes $CPP names a directory.
6783if test -n "$CPP" && test -d "$CPP"; then
6784  CPP=
6785fi
6786if test -z "$CPP"; then
6787  if ${ac_cv_prog_CPP+:} false; then :
6788  $as_echo_n "(cached) " >&6
6789else
6790      # Double quotes because CPP needs to be expanded
6791    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6792    do
6793      ac_preproc_ok=false
6794for ac_c_preproc_warn_flag in '' yes
6795do
6796  # Use a header file that comes with gcc, so configuring glibc
6797  # with a fresh cross-compiler works.
6798  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6799  # <limits.h> exists even on freestanding compilers.
6800  # On the NeXT, cc -E runs the code through the compiler's parser,
6801  # not just through cpp. "Syntax error" is here to catch this case.
6802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803/* end confdefs.h.  */
6804#ifdef __STDC__
6805# include <limits.h>
6806#else
6807# include <assert.h>
6808#endif
6809		     Syntax error
6810_ACEOF
6811if ac_fn_c_try_cpp "$LINENO"; then :
6812
6813else
6814  # Broken: fails on valid input.
6815continue
6816fi
6817rm -f conftest.err conftest.i conftest.$ac_ext
6818
6819  # OK, works on sane cases.  Now check whether nonexistent headers
6820  # can be detected and how.
6821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822/* end confdefs.h.  */
6823#include <ac_nonexistent.h>
6824_ACEOF
6825if ac_fn_c_try_cpp "$LINENO"; then :
6826  # Broken: success on invalid input.
6827continue
6828else
6829  # Passes both tests.
6830ac_preproc_ok=:
6831break
6832fi
6833rm -f conftest.err conftest.i conftest.$ac_ext
6834
6835done
6836# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6837rm -f conftest.i conftest.err conftest.$ac_ext
6838if $ac_preproc_ok; then :
6839  break
6840fi
6841
6842    done
6843    ac_cv_prog_CPP=$CPP
6844
6845fi
6846  CPP=$ac_cv_prog_CPP
6847else
6848  ac_cv_prog_CPP=$CPP
6849fi
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6851$as_echo "$CPP" >&6; }
6852ac_preproc_ok=false
6853for ac_c_preproc_warn_flag in '' yes
6854do
6855  # Use a header file that comes with gcc, so configuring glibc
6856  # with a fresh cross-compiler works.
6857  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6858  # <limits.h> exists even on freestanding compilers.
6859  # On the NeXT, cc -E runs the code through the compiler's parser,
6860  # not just through cpp. "Syntax error" is here to catch this case.
6861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862/* end confdefs.h.  */
6863#ifdef __STDC__
6864# include <limits.h>
6865#else
6866# include <assert.h>
6867#endif
6868		     Syntax error
6869_ACEOF
6870if ac_fn_c_try_cpp "$LINENO"; then :
6871
6872else
6873  # Broken: fails on valid input.
6874continue
6875fi
6876rm -f conftest.err conftest.i conftest.$ac_ext
6877
6878  # OK, works on sane cases.  Now check whether nonexistent headers
6879  # can be detected and how.
6880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h.  */
6882#include <ac_nonexistent.h>
6883_ACEOF
6884if ac_fn_c_try_cpp "$LINENO"; then :
6885  # Broken: success on invalid input.
6886continue
6887else
6888  # Passes both tests.
6889ac_preproc_ok=:
6890break
6891fi
6892rm -f conftest.err conftest.i conftest.$ac_ext
6893
6894done
6895# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6896rm -f conftest.i conftest.err conftest.$ac_ext
6897if $ac_preproc_ok; then :
6898
6899else
6900  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6902as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6903See \`config.log' for more details" "$LINENO" 5; }
6904fi
6905
6906ac_ext=c
6907ac_cpp='$CPP $CPPFLAGS'
6908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911
6912
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6914$as_echo_n "checking for ANSI C header files... " >&6; }
6915if ${ac_cv_header_stdc+:} false; then :
6916  $as_echo_n "(cached) " >&6
6917else
6918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h.  */
6920#include <stdlib.h>
6921#include <stdarg.h>
6922#include <string.h>
6923#include <float.h>
6924
6925int
6926main ()
6927{
6928
6929  ;
6930  return 0;
6931}
6932_ACEOF
6933if ac_fn_c_try_compile "$LINENO"; then :
6934  ac_cv_header_stdc=yes
6935else
6936  ac_cv_header_stdc=no
6937fi
6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939
6940if test $ac_cv_header_stdc = yes; then
6941  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943/* end confdefs.h.  */
6944#include <string.h>
6945
6946_ACEOF
6947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6948  $EGREP "memchr" >/dev/null 2>&1; then :
6949
6950else
6951  ac_cv_header_stdc=no
6952fi
6953rm -f conftest*
6954
6955fi
6956
6957if test $ac_cv_header_stdc = yes; then
6958  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960/* end confdefs.h.  */
6961#include <stdlib.h>
6962
6963_ACEOF
6964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6965  $EGREP "free" >/dev/null 2>&1; then :
6966
6967else
6968  ac_cv_header_stdc=no
6969fi
6970rm -f conftest*
6971
6972fi
6973
6974if test $ac_cv_header_stdc = yes; then
6975  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6976  if test "$cross_compiling" = yes; then :
6977  :
6978else
6979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980/* end confdefs.h.  */
6981#include <ctype.h>
6982#include <stdlib.h>
6983#if ((' ' & 0x0FF) == 0x020)
6984# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6985# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6986#else
6987# define ISLOWER(c) \
6988		   (('a' <= (c) && (c) <= 'i') \
6989		     || ('j' <= (c) && (c) <= 'r') \
6990		     || ('s' <= (c) && (c) <= 'z'))
6991# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6992#endif
6993
6994#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6995int
6996main ()
6997{
6998  int i;
6999  for (i = 0; i < 256; i++)
7000    if (XOR (islower (i), ISLOWER (i))
7001	|| toupper (i) != TOUPPER (i))
7002      return 2;
7003  return 0;
7004}
7005_ACEOF
7006if ac_fn_c_try_run "$LINENO"; then :
7007
7008else
7009  ac_cv_header_stdc=no
7010fi
7011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7012  conftest.$ac_objext conftest.beam conftest.$ac_ext
7013fi
7014
7015fi
7016fi
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7018$as_echo "$ac_cv_header_stdc" >&6; }
7019if test $ac_cv_header_stdc = yes; then
7020
7021$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7022
7023fi
7024
7025# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7026for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7027		  inttypes.h stdint.h unistd.h
7028do :
7029  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7030ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7031"
7032if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7033  cat >>confdefs.h <<_ACEOF
7034#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7035_ACEOF
7036
7037fi
7038
7039done
7040
7041
7042for ac_header in dlfcn.h
7043do :
7044  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7045"
7046if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7047  cat >>confdefs.h <<_ACEOF
7048#define HAVE_DLFCN_H 1
7049_ACEOF
7050
7051fi
7052
7053done
7054
7055
7056
7057
7058
7059# Set options
7060
7061
7062
7063        enable_dlopen=no
7064
7065
7066
7067            # Check whether --enable-shared was given.
7068if test "${enable_shared+set}" = set; then :
7069  enableval=$enable_shared; p=${PACKAGE-default}
7070    case $enableval in
7071    yes) enable_shared=yes ;;
7072    no) enable_shared=no ;;
7073    *)
7074      enable_shared=no
7075      # Look at the argument we got.  We use all the common list separators.
7076      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7077      for pkg in $enableval; do
7078	IFS="$lt_save_ifs"
7079	if test "X$pkg" = "X$p"; then
7080	  enable_shared=yes
7081	fi
7082      done
7083      IFS="$lt_save_ifs"
7084      ;;
7085    esac
7086else
7087  enable_shared=yes
7088fi
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098  # Check whether --enable-static was given.
7099if test "${enable_static+set}" = set; then :
7100  enableval=$enable_static; p=${PACKAGE-default}
7101    case $enableval in
7102    yes) enable_static=yes ;;
7103    no) enable_static=no ;;
7104    *)
7105     enable_static=no
7106      # Look at the argument we got.  We use all the common list separators.
7107      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7108      for pkg in $enableval; do
7109	IFS="$lt_save_ifs"
7110	if test "X$pkg" = "X$p"; then
7111	  enable_static=yes
7112	fi
7113      done
7114      IFS="$lt_save_ifs"
7115      ;;
7116    esac
7117else
7118  enable_static=yes
7119fi
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130# Check whether --with-pic was given.
7131if test "${with_pic+set}" = set; then :
7132  withval=$with_pic; pic_mode="$withval"
7133else
7134  pic_mode=default
7135fi
7136
7137
7138test -z "$pic_mode" && pic_mode=default
7139
7140
7141
7142
7143
7144
7145
7146  # Check whether --enable-fast-install was given.
7147if test "${enable_fast_install+set}" = set; then :
7148  enableval=$enable_fast_install; p=${PACKAGE-default}
7149    case $enableval in
7150    yes) enable_fast_install=yes ;;
7151    no) enable_fast_install=no ;;
7152    *)
7153      enable_fast_install=no
7154      # Look at the argument we got.  We use all the common list separators.
7155      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7156      for pkg in $enableval; do
7157	IFS="$lt_save_ifs"
7158	if test "X$pkg" = "X$p"; then
7159	  enable_fast_install=yes
7160	fi
7161      done
7162      IFS="$lt_save_ifs"
7163      ;;
7164    esac
7165else
7166  enable_fast_install=yes
7167fi
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179# This can be used to rebuild libtool when needed
7180LIBTOOL_DEPS="$ltmain"
7181
7182# Always use our own libtool.
7183LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210test -z "$LN_S" && LN_S="ln -s"
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225if test -n "${ZSH_VERSION+set}" ; then
7226   setopt NO_GLOB_SUBST
7227fi
7228
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7230$as_echo_n "checking for objdir... " >&6; }
7231if ${lt_cv_objdir+:} false; then :
7232  $as_echo_n "(cached) " >&6
7233else
7234  rm -f .libs 2>/dev/null
7235mkdir .libs 2>/dev/null
7236if test -d .libs; then
7237  lt_cv_objdir=.libs
7238else
7239  # MS-DOS does not allow filenames that begin with a dot.
7240  lt_cv_objdir=_libs
7241fi
7242rmdir .libs 2>/dev/null
7243fi
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7245$as_echo "$lt_cv_objdir" >&6; }
7246objdir=$lt_cv_objdir
7247
7248
7249
7250
7251
7252cat >>confdefs.h <<_ACEOF
7253#define LT_OBJDIR "$lt_cv_objdir/"
7254_ACEOF
7255
7256
7257
7258
7259case $host_os in
7260aix3*)
7261  # AIX sometimes has problems with the GCC collect2 program.  For some
7262  # reason, if we set the COLLECT_NAMES environment variable, the problems
7263  # vanish in a puff of smoke.
7264  if test "X${COLLECT_NAMES+set}" != Xset; then
7265    COLLECT_NAMES=
7266    export COLLECT_NAMES
7267  fi
7268  ;;
7269esac
7270
7271# Global variables:
7272ofile=libtool
7273can_build_shared=yes
7274
7275# All known linkers require a `.a' archive for static linking (except MSVC,
7276# which needs '.lib').
7277libext=a
7278
7279with_gnu_ld="$lt_cv_prog_gnu_ld"
7280
7281old_CC="$CC"
7282old_CFLAGS="$CFLAGS"
7283
7284# Set sane defaults for various variables
7285test -z "$CC" && CC=cc
7286test -z "$LTCC" && LTCC=$CC
7287test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7288test -z "$LD" && LD=ld
7289test -z "$ac_objext" && ac_objext=o
7290
7291for cc_temp in $compiler""; do
7292  case $cc_temp in
7293    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7294    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7295    \-*) ;;
7296    *) break;;
7297  esac
7298done
7299cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7300
7301
7302# Only perform the check for file, if the check method requires it
7303test -z "$MAGIC_CMD" && MAGIC_CMD=file
7304case $deplibs_check_method in
7305file_magic*)
7306  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7308$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7309if ${lt_cv_path_MAGIC_CMD+:} false; then :
7310  $as_echo_n "(cached) " >&6
7311else
7312  case $MAGIC_CMD in
7313[\\/*] |  ?:[\\/]*)
7314  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7315  ;;
7316*)
7317  lt_save_MAGIC_CMD="$MAGIC_CMD"
7318  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7319  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7320  for ac_dir in $ac_dummy; do
7321    IFS="$lt_save_ifs"
7322    test -z "$ac_dir" && ac_dir=.
7323    if test -f $ac_dir/${ac_tool_prefix}file; then
7324      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7325      if test -n "$file_magic_test_file"; then
7326	case $deplibs_check_method in
7327	"file_magic "*)
7328	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7329	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7330	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7331	    $EGREP "$file_magic_regex" > /dev/null; then
7332	    :
7333	  else
7334	    cat <<_LT_EOF 1>&2
7335
7336*** Warning: the command libtool uses to detect shared libraries,
7337*** $file_magic_cmd, produces output that libtool cannot recognize.
7338*** The result is that libtool may fail to recognize shared libraries
7339*** as such.  This will affect the creation of libtool libraries that
7340*** depend on shared libraries, but programs linked with such libtool
7341*** libraries will work regardless of this problem.  Nevertheless, you
7342*** may want to report the problem to your system manager and/or to
7343*** bug-libtool@gnu.org
7344
7345_LT_EOF
7346	  fi ;;
7347	esac
7348      fi
7349      break
7350    fi
7351  done
7352  IFS="$lt_save_ifs"
7353  MAGIC_CMD="$lt_save_MAGIC_CMD"
7354  ;;
7355esac
7356fi
7357
7358MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7359if test -n "$MAGIC_CMD"; then
7360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7361$as_echo "$MAGIC_CMD" >&6; }
7362else
7363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364$as_echo "no" >&6; }
7365fi
7366
7367
7368
7369
7370
7371if test -z "$lt_cv_path_MAGIC_CMD"; then
7372  if test -n "$ac_tool_prefix"; then
7373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7374$as_echo_n "checking for file... " >&6; }
7375if ${lt_cv_path_MAGIC_CMD+:} false; then :
7376  $as_echo_n "(cached) " >&6
7377else
7378  case $MAGIC_CMD in
7379[\\/*] |  ?:[\\/]*)
7380  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7381  ;;
7382*)
7383  lt_save_MAGIC_CMD="$MAGIC_CMD"
7384  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7385  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7386  for ac_dir in $ac_dummy; do
7387    IFS="$lt_save_ifs"
7388    test -z "$ac_dir" && ac_dir=.
7389    if test -f $ac_dir/file; then
7390      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7391      if test -n "$file_magic_test_file"; then
7392	case $deplibs_check_method in
7393	"file_magic "*)
7394	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7395	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7396	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7397	    $EGREP "$file_magic_regex" > /dev/null; then
7398	    :
7399	  else
7400	    cat <<_LT_EOF 1>&2
7401
7402*** Warning: the command libtool uses to detect shared libraries,
7403*** $file_magic_cmd, produces output that libtool cannot recognize.
7404*** The result is that libtool may fail to recognize shared libraries
7405*** as such.  This will affect the creation of libtool libraries that
7406*** depend on shared libraries, but programs linked with such libtool
7407*** libraries will work regardless of this problem.  Nevertheless, you
7408*** may want to report the problem to your system manager and/or to
7409*** bug-libtool@gnu.org
7410
7411_LT_EOF
7412	  fi ;;
7413	esac
7414      fi
7415      break
7416    fi
7417  done
7418  IFS="$lt_save_ifs"
7419  MAGIC_CMD="$lt_save_MAGIC_CMD"
7420  ;;
7421esac
7422fi
7423
7424MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7425if test -n "$MAGIC_CMD"; then
7426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7427$as_echo "$MAGIC_CMD" >&6; }
7428else
7429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430$as_echo "no" >&6; }
7431fi
7432
7433
7434  else
7435    MAGIC_CMD=:
7436  fi
7437fi
7438
7439  fi
7440  ;;
7441esac
7442
7443# Use C for the default configuration in the libtool script
7444
7445lt_save_CC="$CC"
7446ac_ext=c
7447ac_cpp='$CPP $CPPFLAGS'
7448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7450ac_compiler_gnu=$ac_cv_c_compiler_gnu
7451
7452
7453# Source file extension for C test sources.
7454ac_ext=c
7455
7456# Object file extension for compiled C test sources.
7457objext=o
7458objext=$objext
7459
7460# Code to be used in simple compile tests
7461lt_simple_compile_test_code="int some_variable = 0;"
7462
7463# Code to be used in simple link tests
7464lt_simple_link_test_code='int main(){return(0);}'
7465
7466
7467
7468
7469
7470
7471
7472# If no C compiler was specified, use CC.
7473LTCC=${LTCC-"$CC"}
7474
7475# If no C compiler flags were specified, use CFLAGS.
7476LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7477
7478# Allow CC to be a program name with arguments.
7479compiler=$CC
7480
7481# Save the default compiler, since it gets overwritten when the other
7482# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7483compiler_DEFAULT=$CC
7484
7485# save warnings/boilerplate of simple test code
7486ac_outfile=conftest.$ac_objext
7487echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7488eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7489_lt_compiler_boilerplate=`cat conftest.err`
7490$RM conftest*
7491
7492ac_outfile=conftest.$ac_objext
7493echo "$lt_simple_link_test_code" >conftest.$ac_ext
7494eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7495_lt_linker_boilerplate=`cat conftest.err`
7496$RM -r conftest*
7497
7498
7499if test -n "$compiler"; then
7500
7501lt_prog_compiler_no_builtin_flag=
7502
7503if test "$GCC" = yes; then
7504  case $cc_basename in
7505  nvcc*)
7506    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7507  *)
7508    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7509  esac
7510
7511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7512$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7513if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  lt_cv_prog_compiler_rtti_exceptions=no
7517   ac_outfile=conftest.$ac_objext
7518   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7519   lt_compiler_flag="-fno-rtti -fno-exceptions"
7520   # Insert the option either (1) after the last *FLAGS variable, or
7521   # (2) before a word containing "conftest.", or (3) at the end.
7522   # Note that $ac_compile itself does not contain backslashes and begins
7523   # with a dollar sign (not a hyphen), so the echo should work correctly.
7524   # The option is referenced via a variable to avoid confusing sed.
7525   lt_compile=`echo "$ac_compile" | $SED \
7526   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7527   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7528   -e 's:$: $lt_compiler_flag:'`
7529   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7530   (eval "$lt_compile" 2>conftest.err)
7531   ac_status=$?
7532   cat conftest.err >&5
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   if (exit $ac_status) && test -s "$ac_outfile"; then
7535     # The compiler can only warn and ignore the option if not recognized
7536     # So say no if there are warnings other than the usual output.
7537     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7538     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7539     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7540       lt_cv_prog_compiler_rtti_exceptions=yes
7541     fi
7542   fi
7543   $RM conftest*
7544
7545fi
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7547$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7548
7549if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7550    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7551else
7552    :
7553fi
7554
7555fi
7556
7557
7558
7559
7560
7561
7562  lt_prog_compiler_wl=
7563lt_prog_compiler_pic=
7564lt_prog_compiler_static=
7565
7566
7567  if test "$GCC" = yes; then
7568    lt_prog_compiler_wl='-Wl,'
7569    lt_prog_compiler_static='-static'
7570
7571    case $host_os in
7572      aix*)
7573      # All AIX code is PIC.
7574      if test "$host_cpu" = ia64; then
7575	# AIX 5 now supports IA64 processor
7576	lt_prog_compiler_static='-Bstatic'
7577      fi
7578      ;;
7579
7580    amigaos*)
7581      case $host_cpu in
7582      powerpc)
7583            # see comment about AmigaOS4 .so support
7584            lt_prog_compiler_pic='-fPIC'
7585        ;;
7586      m68k)
7587            # FIXME: we need at least 68020 code to build shared libraries, but
7588            # adding the `-m68020' flag to GCC prevents building anything better,
7589            # like `-m68040'.
7590            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7591        ;;
7592      esac
7593      ;;
7594
7595    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7596      # PIC is the default for these OSes.
7597      ;;
7598
7599    mingw* | cygwin* | pw32* | os2* | cegcc*)
7600      # This hack is so that the source file can tell whether it is being
7601      # built for inclusion in a dll (and should export symbols for example).
7602      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7603      # (--disable-auto-import) libraries
7604      lt_prog_compiler_pic='-DDLL_EXPORT'
7605      ;;
7606
7607    darwin* | rhapsody*)
7608      # PIC is the default on this platform
7609      # Common symbols not allowed in MH_DYLIB files
7610      lt_prog_compiler_pic='-fno-common'
7611      ;;
7612
7613    haiku*)
7614      # PIC is the default for Haiku.
7615      # The "-static" flag exists, but is broken.
7616      lt_prog_compiler_static=
7617      ;;
7618
7619    hpux*)
7620      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7621      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7622      # sets the default TLS model and affects inlining.
7623      case $host_cpu in
7624      hppa*64*)
7625	# +Z the default
7626	;;
7627      *)
7628	lt_prog_compiler_pic='-fPIC'
7629	;;
7630      esac
7631      ;;
7632
7633    interix[3-9]*)
7634      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7635      # Instead, we relocate shared libraries at runtime.
7636      ;;
7637
7638    msdosdjgpp*)
7639      # Just because we use GCC doesn't mean we suddenly get shared libraries
7640      # on systems that don't support them.
7641      lt_prog_compiler_can_build_shared=no
7642      enable_shared=no
7643      ;;
7644
7645    *nto* | *qnx*)
7646      # QNX uses GNU C++, but need to define -shared option too, otherwise
7647      # it will coredump.
7648      lt_prog_compiler_pic='-fPIC -shared'
7649      ;;
7650
7651    sysv4*MP*)
7652      if test -d /usr/nec; then
7653	lt_prog_compiler_pic=-Kconform_pic
7654      fi
7655      ;;
7656
7657    *)
7658      lt_prog_compiler_pic='-fPIC'
7659      ;;
7660    esac
7661
7662    case $cc_basename in
7663    nvcc*) # Cuda Compiler Driver 2.2
7664      lt_prog_compiler_wl='-Xlinker '
7665      lt_prog_compiler_pic='-Xcompiler -fPIC'
7666      ;;
7667    esac
7668  else
7669    # PORTME Check for flag to pass linker flags through the system compiler.
7670    case $host_os in
7671    aix*)
7672      lt_prog_compiler_wl='-Wl,'
7673      if test "$host_cpu" = ia64; then
7674	# AIX 5 now supports IA64 processor
7675	lt_prog_compiler_static='-Bstatic'
7676      else
7677	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7678      fi
7679      ;;
7680
7681    mingw* | cygwin* | pw32* | os2* | cegcc*)
7682      # This hack is so that the source file can tell whether it is being
7683      # built for inclusion in a dll (and should export symbols for example).
7684      lt_prog_compiler_pic='-DDLL_EXPORT'
7685      ;;
7686
7687    hpux9* | hpux10* | hpux11*)
7688      lt_prog_compiler_wl='-Wl,'
7689      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7690      # not for PA HP-UX.
7691      case $host_cpu in
7692      hppa*64*|ia64*)
7693	# +Z the default
7694	;;
7695      *)
7696	lt_prog_compiler_pic='+Z'
7697	;;
7698      esac
7699      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7700      lt_prog_compiler_static='${wl}-a ${wl}archive'
7701      ;;
7702
7703    irix5* | irix6* | nonstopux*)
7704      lt_prog_compiler_wl='-Wl,'
7705      # PIC (with -KPIC) is the default.
7706      lt_prog_compiler_static='-non_shared'
7707      ;;
7708
7709    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7710      case $cc_basename in
7711      # old Intel for x86_64 which still supported -KPIC.
7712      ecc*)
7713	lt_prog_compiler_wl='-Wl,'
7714	lt_prog_compiler_pic='-KPIC'
7715	lt_prog_compiler_static='-static'
7716        ;;
7717      # icc used to be incompatible with GCC.
7718      # ICC 10 doesn't accept -KPIC any more.
7719      icc* | ifort*)
7720	lt_prog_compiler_wl='-Wl,'
7721	lt_prog_compiler_pic='-fPIC'
7722	lt_prog_compiler_static='-static'
7723        ;;
7724      # Lahey Fortran 8.1.
7725      lf95*)
7726	lt_prog_compiler_wl='-Wl,'
7727	lt_prog_compiler_pic='--shared'
7728	lt_prog_compiler_static='--static'
7729	;;
7730      nagfor*)
7731	# NAG Fortran compiler
7732	lt_prog_compiler_wl='-Wl,-Wl,,'
7733	lt_prog_compiler_pic='-PIC'
7734	lt_prog_compiler_static='-Bstatic'
7735	;;
7736      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7737        # Portland Group compilers (*not* the Pentium gcc compiler,
7738	# which looks to be a dead project)
7739	lt_prog_compiler_wl='-Wl,'
7740	lt_prog_compiler_pic='-fpic'
7741	lt_prog_compiler_static='-Bstatic'
7742        ;;
7743      ccc*)
7744        lt_prog_compiler_wl='-Wl,'
7745        # All Alpha code is PIC.
7746        lt_prog_compiler_static='-non_shared'
7747        ;;
7748      xl* | bgxl* | bgf* | mpixl*)
7749	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7750	lt_prog_compiler_wl='-Wl,'
7751	lt_prog_compiler_pic='-qpic'
7752	lt_prog_compiler_static='-qstaticlink'
7753	;;
7754      *)
7755	case `$CC -V 2>&1 | sed 5q` in
7756	*Sun\ F* | *Sun*Fortran*)
7757	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7758	  lt_prog_compiler_pic='-KPIC'
7759	  lt_prog_compiler_static='-Bstatic'
7760	  lt_prog_compiler_wl=''
7761	  ;;
7762	*Sun\ C*)
7763	  # Sun C 5.9
7764	  lt_prog_compiler_pic='-KPIC'
7765	  lt_prog_compiler_static='-Bstatic'
7766	  lt_prog_compiler_wl='-Wl,'
7767	  ;;
7768	esac
7769	;;
7770      esac
7771      ;;
7772
7773    newsos6)
7774      lt_prog_compiler_pic='-KPIC'
7775      lt_prog_compiler_static='-Bstatic'
7776      ;;
7777
7778    *nto* | *qnx*)
7779      # QNX uses GNU C++, but need to define -shared option too, otherwise
7780      # it will coredump.
7781      lt_prog_compiler_pic='-fPIC -shared'
7782      ;;
7783
7784    osf3* | osf4* | osf5*)
7785      lt_prog_compiler_wl='-Wl,'
7786      # All OSF/1 code is PIC.
7787      lt_prog_compiler_static='-non_shared'
7788      ;;
7789
7790    rdos*)
7791      lt_prog_compiler_static='-non_shared'
7792      ;;
7793
7794    solaris*)
7795      lt_prog_compiler_pic='-KPIC'
7796      lt_prog_compiler_static='-Bstatic'
7797      case $cc_basename in
7798      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7799	lt_prog_compiler_wl='-Qoption ld ';;
7800      *)
7801	lt_prog_compiler_wl='-Wl,';;
7802      esac
7803      ;;
7804
7805    sunos4*)
7806      lt_prog_compiler_wl='-Qoption ld '
7807      lt_prog_compiler_pic='-PIC'
7808      lt_prog_compiler_static='-Bstatic'
7809      ;;
7810
7811    sysv4 | sysv4.2uw2* | sysv4.3*)
7812      lt_prog_compiler_wl='-Wl,'
7813      lt_prog_compiler_pic='-KPIC'
7814      lt_prog_compiler_static='-Bstatic'
7815      ;;
7816
7817    sysv4*MP*)
7818      if test -d /usr/nec ;then
7819	lt_prog_compiler_pic='-Kconform_pic'
7820	lt_prog_compiler_static='-Bstatic'
7821      fi
7822      ;;
7823
7824    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7825      lt_prog_compiler_wl='-Wl,'
7826      lt_prog_compiler_pic='-KPIC'
7827      lt_prog_compiler_static='-Bstatic'
7828      ;;
7829
7830    unicos*)
7831      lt_prog_compiler_wl='-Wl,'
7832      lt_prog_compiler_can_build_shared=no
7833      ;;
7834
7835    uts4*)
7836      lt_prog_compiler_pic='-pic'
7837      lt_prog_compiler_static='-Bstatic'
7838      ;;
7839
7840    *)
7841      lt_prog_compiler_can_build_shared=no
7842      ;;
7843    esac
7844  fi
7845
7846case $host_os in
7847  # For platforms which do not support PIC, -DPIC is meaningless:
7848  *djgpp*)
7849    lt_prog_compiler_pic=
7850    ;;
7851  *)
7852    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7853    ;;
7854esac
7855
7856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7857$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7858if ${lt_cv_prog_compiler_pic+:} false; then :
7859  $as_echo_n "(cached) " >&6
7860else
7861  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7862fi
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7864$as_echo "$lt_cv_prog_compiler_pic" >&6; }
7865lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7866
7867#
7868# Check to make sure the PIC flag actually works.
7869#
7870if test -n "$lt_prog_compiler_pic"; then
7871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7872$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7873if ${lt_cv_prog_compiler_pic_works+:} false; then :
7874  $as_echo_n "(cached) " >&6
7875else
7876  lt_cv_prog_compiler_pic_works=no
7877   ac_outfile=conftest.$ac_objext
7878   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7879   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7880   # Insert the option either (1) after the last *FLAGS variable, or
7881   # (2) before a word containing "conftest.", or (3) at the end.
7882   # Note that $ac_compile itself does not contain backslashes and begins
7883   # with a dollar sign (not a hyphen), so the echo should work correctly.
7884   # The option is referenced via a variable to avoid confusing sed.
7885   lt_compile=`echo "$ac_compile" | $SED \
7886   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7887   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7888   -e 's:$: $lt_compiler_flag:'`
7889   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7890   (eval "$lt_compile" 2>conftest.err)
7891   ac_status=$?
7892   cat conftest.err >&5
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   if (exit $ac_status) && test -s "$ac_outfile"; then
7895     # The compiler can only warn and ignore the option if not recognized
7896     # So say no if there are warnings other than the usual output.
7897     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7898     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7899     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7900       lt_cv_prog_compiler_pic_works=yes
7901     fi
7902   fi
7903   $RM conftest*
7904
7905fi
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7907$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7908
7909if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7910    case $lt_prog_compiler_pic in
7911     "" | " "*) ;;
7912     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7913     esac
7914else
7915    lt_prog_compiler_pic=
7916     lt_prog_compiler_can_build_shared=no
7917fi
7918
7919fi
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931#
7932# Check to make sure the static flag actually works.
7933#
7934wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7936$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7937if ${lt_cv_prog_compiler_static_works+:} false; then :
7938  $as_echo_n "(cached) " >&6
7939else
7940  lt_cv_prog_compiler_static_works=no
7941   save_LDFLAGS="$LDFLAGS"
7942   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7943   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7944   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7945     # The linker can only warn and ignore the option if not recognized
7946     # So say no if there are warnings
7947     if test -s conftest.err; then
7948       # Append any errors to the config.log.
7949       cat conftest.err 1>&5
7950       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7951       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7952       if diff conftest.exp conftest.er2 >/dev/null; then
7953         lt_cv_prog_compiler_static_works=yes
7954       fi
7955     else
7956       lt_cv_prog_compiler_static_works=yes
7957     fi
7958   fi
7959   $RM -r conftest*
7960   LDFLAGS="$save_LDFLAGS"
7961
7962fi
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7964$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7965
7966if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7967    :
7968else
7969    lt_prog_compiler_static=
7970fi
7971
7972
7973
7974
7975
7976
7977
7978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7979$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7980if ${lt_cv_prog_compiler_c_o+:} false; then :
7981  $as_echo_n "(cached) " >&6
7982else
7983  lt_cv_prog_compiler_c_o=no
7984   $RM -r conftest 2>/dev/null
7985   mkdir conftest
7986   cd conftest
7987   mkdir out
7988   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7989
7990   lt_compiler_flag="-o out/conftest2.$ac_objext"
7991   # Insert the option either (1) after the last *FLAGS variable, or
7992   # (2) before a word containing "conftest.", or (3) at the end.
7993   # Note that $ac_compile itself does not contain backslashes and begins
7994   # with a dollar sign (not a hyphen), so the echo should work correctly.
7995   lt_compile=`echo "$ac_compile" | $SED \
7996   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7997   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7998   -e 's:$: $lt_compiler_flag:'`
7999   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8000   (eval "$lt_compile" 2>out/conftest.err)
8001   ac_status=$?
8002   cat out/conftest.err >&5
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8005   then
8006     # The compiler can only warn and ignore the option if not recognized
8007     # So say no if there are warnings
8008     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8009     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8010     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8011       lt_cv_prog_compiler_c_o=yes
8012     fi
8013   fi
8014   chmod u+w . 2>&5
8015   $RM conftest*
8016   # SGI C++ compiler will create directory out/ii_files/ for
8017   # template instantiation
8018   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8019   $RM out/* && rmdir out
8020   cd ..
8021   $RM -r conftest
8022   $RM conftest*
8023
8024fi
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8026$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8027
8028
8029
8030
8031
8032
8033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8034$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8035if ${lt_cv_prog_compiler_c_o+:} false; then :
8036  $as_echo_n "(cached) " >&6
8037else
8038  lt_cv_prog_compiler_c_o=no
8039   $RM -r conftest 2>/dev/null
8040   mkdir conftest
8041   cd conftest
8042   mkdir out
8043   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8044
8045   lt_compiler_flag="-o out/conftest2.$ac_objext"
8046   # Insert the option either (1) after the last *FLAGS variable, or
8047   # (2) before a word containing "conftest.", or (3) at the end.
8048   # Note that $ac_compile itself does not contain backslashes and begins
8049   # with a dollar sign (not a hyphen), so the echo should work correctly.
8050   lt_compile=`echo "$ac_compile" | $SED \
8051   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053   -e 's:$: $lt_compiler_flag:'`
8054   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8055   (eval "$lt_compile" 2>out/conftest.err)
8056   ac_status=$?
8057   cat out/conftest.err >&5
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8060   then
8061     # The compiler can only warn and ignore the option if not recognized
8062     # So say no if there are warnings
8063     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8064     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8065     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8066       lt_cv_prog_compiler_c_o=yes
8067     fi
8068   fi
8069   chmod u+w . 2>&5
8070   $RM conftest*
8071   # SGI C++ compiler will create directory out/ii_files/ for
8072   # template instantiation
8073   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8074   $RM out/* && rmdir out
8075   cd ..
8076   $RM -r conftest
8077   $RM conftest*
8078
8079fi
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8081$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8082
8083
8084
8085
8086hard_links="nottested"
8087if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8088  # do not overwrite the value of need_locks provided by the user
8089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8090$as_echo_n "checking if we can lock with hard links... " >&6; }
8091  hard_links=yes
8092  $RM conftest*
8093  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8094  touch conftest.a
8095  ln conftest.a conftest.b 2>&5 || hard_links=no
8096  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8098$as_echo "$hard_links" >&6; }
8099  if test "$hard_links" = no; then
8100    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8101$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8102    need_locks=warn
8103  fi
8104else
8105  need_locks=no
8106fi
8107
8108
8109
8110
8111
8112
8113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8114$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8115
8116  runpath_var=
8117  allow_undefined_flag=
8118  always_export_symbols=no
8119  archive_cmds=
8120  archive_expsym_cmds=
8121  compiler_needs_object=no
8122  enable_shared_with_static_runtimes=no
8123  export_dynamic_flag_spec=
8124  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8125  hardcode_automatic=no
8126  hardcode_direct=no
8127  hardcode_direct_absolute=no
8128  hardcode_libdir_flag_spec=
8129  hardcode_libdir_flag_spec_ld=
8130  hardcode_libdir_separator=
8131  hardcode_minus_L=no
8132  hardcode_shlibpath_var=unsupported
8133  inherit_rpath=no
8134  link_all_deplibs=unknown
8135  module_cmds=
8136  module_expsym_cmds=
8137  old_archive_from_new_cmds=
8138  old_archive_from_expsyms_cmds=
8139  thread_safe_flag_spec=
8140  whole_archive_flag_spec=
8141  # include_expsyms should be a list of space-separated symbols to be *always*
8142  # included in the symbol list
8143  include_expsyms=
8144  # exclude_expsyms can be an extended regexp of symbols to exclude
8145  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8146  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8147  # as well as any symbol that contains `d'.
8148  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8149  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8150  # platforms (ab)use it in PIC code, but their linkers get confused if
8151  # the symbol is explicitly referenced.  Since portable code cannot
8152  # rely on this symbol name, it's probably fine to never include it in
8153  # preloaded symbol tables.
8154  # Exclude shared library initialization/finalization symbols.
8155  extract_expsyms_cmds=
8156
8157  case $host_os in
8158  cygwin* | mingw* | pw32* | cegcc*)
8159    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8160    # When not using gcc, we currently assume that we are using
8161    # Microsoft Visual C++.
8162    if test "$GCC" != yes; then
8163      with_gnu_ld=no
8164    fi
8165    ;;
8166  interix*)
8167    # we just hope/assume this is gcc and not c89 (= MSVC++)
8168    with_gnu_ld=yes
8169    ;;
8170  openbsd*)
8171    with_gnu_ld=no
8172    ;;
8173  linux* | k*bsd*-gnu | gnu*)
8174    link_all_deplibs=no
8175    ;;
8176  esac
8177
8178  ld_shlibs=yes
8179
8180  # On some targets, GNU ld is compatible enough with the native linker
8181  # that we're better off using the native interface for both.
8182  lt_use_gnu_ld_interface=no
8183  if test "$with_gnu_ld" = yes; then
8184    case $host_os in
8185      aix*)
8186	# The AIX port of GNU ld has always aspired to compatibility
8187	# with the native linker.  However, as the warning in the GNU ld
8188	# block says, versions before 2.19.5* couldn't really create working
8189	# shared libraries, regardless of the interface used.
8190	case `$LD -v 2>&1` in
8191	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8192	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8193	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8194	  *)
8195	    lt_use_gnu_ld_interface=yes
8196	    ;;
8197	esac
8198	;;
8199      *)
8200	lt_use_gnu_ld_interface=yes
8201	;;
8202    esac
8203  fi
8204
8205  if test "$lt_use_gnu_ld_interface" = yes; then
8206    # If archive_cmds runs LD, not CC, wlarc should be empty
8207    wlarc='${wl}'
8208
8209    # Set some defaults for GNU ld with shared library support. These
8210    # are reset later if shared libraries are not supported. Putting them
8211    # here allows them to be overridden if necessary.
8212    runpath_var=LD_RUN_PATH
8213    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8214    export_dynamic_flag_spec='${wl}--export-dynamic'
8215    # ancient GNU ld didn't support --whole-archive et. al.
8216    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8217      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8218    else
8219      whole_archive_flag_spec=
8220    fi
8221    supports_anon_versioning=no
8222    case `$LD -v 2>&1` in
8223      *GNU\ gold*) supports_anon_versioning=yes ;;
8224      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8225      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8226      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8227      *\ 2.11.*) ;; # other 2.11 versions
8228      *) supports_anon_versioning=yes ;;
8229    esac
8230
8231    # See if GNU ld supports shared libraries.
8232    case $host_os in
8233    aix[3-9]*)
8234      # On AIX/PPC, the GNU linker is very broken
8235      if test "$host_cpu" != ia64; then
8236	ld_shlibs=no
8237	cat <<_LT_EOF 1>&2
8238
8239*** Warning: the GNU linker, at least up to release 2.19, is reported
8240*** to be unable to reliably create shared libraries on AIX.
8241*** Therefore, libtool is disabling shared libraries support.  If you
8242*** really care for shared libraries, you may want to install binutils
8243*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8244*** You will then need to restart the configuration process.
8245
8246_LT_EOF
8247      fi
8248      ;;
8249
8250    amigaos*)
8251      case $host_cpu in
8252      powerpc)
8253            # see comment about AmigaOS4 .so support
8254            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255            archive_expsym_cmds=''
8256        ;;
8257      m68k)
8258            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)'
8259            hardcode_libdir_flag_spec='-L$libdir'
8260            hardcode_minus_L=yes
8261        ;;
8262      esac
8263      ;;
8264
8265    beos*)
8266      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8267	allow_undefined_flag=unsupported
8268	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8269	# support --undefined.  This deserves some investigation.  FIXME
8270	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8271      else
8272	ld_shlibs=no
8273      fi
8274      ;;
8275
8276    cygwin* | mingw* | pw32* | cegcc*)
8277      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8278      # as there is no search path for DLLs.
8279      hardcode_libdir_flag_spec='-L$libdir'
8280      export_dynamic_flag_spec='${wl}--export-all-symbols'
8281      allow_undefined_flag=unsupported
8282      always_export_symbols=no
8283      enable_shared_with_static_runtimes=yes
8284      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8285      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8286
8287      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8288        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8289	# If the export-symbols file already is a .def file (1st line
8290	# is EXPORTS), use it as is; otherwise, prepend...
8291	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8292	  cp $export_symbols $output_objdir/$soname.def;
8293	else
8294	  echo EXPORTS > $output_objdir/$soname.def;
8295	  cat $export_symbols >> $output_objdir/$soname.def;
8296	fi~
8297	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8298      else
8299	ld_shlibs=no
8300      fi
8301      ;;
8302
8303    haiku*)
8304      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8305      link_all_deplibs=yes
8306      ;;
8307
8308    interix[3-9]*)
8309      hardcode_direct=no
8310      hardcode_shlibpath_var=no
8311      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8312      export_dynamic_flag_spec='${wl}-E'
8313      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8314      # Instead, shared libraries are loaded at an image base (0x10000000 by
8315      # default) and relocated if they conflict, which is a slow very memory
8316      # consuming and fragmenting process.  To avoid this, we pick a random,
8317      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8318      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8319      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8320      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'
8321      ;;
8322
8323    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8324      tmp_diet=no
8325      if test "$host_os" = linux-dietlibc; then
8326	case $cc_basename in
8327	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8328	esac
8329      fi
8330      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8331	 && test "$tmp_diet" = no
8332      then
8333	tmp_addflag=' $pic_flag'
8334	tmp_sharedflag='-shared'
8335	case $cc_basename,$host_cpu in
8336        pgcc*)				# Portland Group C compiler
8337	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8338	  tmp_addflag=' $pic_flag'
8339	  ;;
8340	pgf77* | pgf90* | pgf95* | pgfortran*)
8341					# Portland Group f77 and f90 compilers
8342	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8343	  tmp_addflag=' $pic_flag -Mnomain' ;;
8344	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8345	  tmp_addflag=' -i_dynamic' ;;
8346	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8347	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8348	ifc* | ifort*)			# Intel Fortran compiler
8349	  tmp_addflag=' -nofor_main' ;;
8350	lf95*)				# Lahey Fortran 8.1
8351	  whole_archive_flag_spec=
8352	  tmp_sharedflag='--shared' ;;
8353	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8354	  tmp_sharedflag='-qmkshrobj'
8355	  tmp_addflag= ;;
8356	nvcc*)	# Cuda Compiler Driver 2.2
8357	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8358	  compiler_needs_object=yes
8359	  ;;
8360	esac
8361	case `$CC -V 2>&1 | sed 5q` in
8362	*Sun\ C*)			# Sun C 5.9
8363	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8364	  compiler_needs_object=yes
8365	  tmp_sharedflag='-G' ;;
8366	*Sun\ F*)			# Sun Fortran 8.3
8367	  tmp_sharedflag='-G' ;;
8368	esac
8369	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8370
8371        if test "x$supports_anon_versioning" = xyes; then
8372          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8373	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8374	    echo "local: *; };" >> $output_objdir/$libname.ver~
8375	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8376        fi
8377
8378	case $cc_basename in
8379	xlf* | bgf* | bgxlf* | mpixlf*)
8380	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8381	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8382	  hardcode_libdir_flag_spec=
8383	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8384	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8385	  if test "x$supports_anon_versioning" = xyes; then
8386	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8387	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8388	      echo "local: *; };" >> $output_objdir/$libname.ver~
8389	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8390	  fi
8391	  ;;
8392	esac
8393      else
8394        ld_shlibs=no
8395      fi
8396      ;;
8397
8398    netbsd* | netbsdelf*-gnu)
8399      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8400	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8401	wlarc=
8402      else
8403	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8404	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8405      fi
8406      ;;
8407
8408    solaris*)
8409      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8410	ld_shlibs=no
8411	cat <<_LT_EOF 1>&2
8412
8413*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8414*** create shared libraries on Solaris systems.  Therefore, libtool
8415*** is disabling shared libraries support.  We urge you to upgrade GNU
8416*** binutils to release 2.9.1 or newer.  Another option is to modify
8417*** your PATH or compiler configuration so that the native linker is
8418*** used, and then restart.
8419
8420_LT_EOF
8421      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8422	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8423	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8424      else
8425	ld_shlibs=no
8426      fi
8427      ;;
8428
8429    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8430      case `$LD -v 2>&1` in
8431        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8432	ld_shlibs=no
8433	cat <<_LT_EOF 1>&2
8434
8435*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8436*** reliably create shared libraries on SCO systems.  Therefore, libtool
8437*** is disabling shared libraries support.  We urge you to upgrade GNU
8438*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8439*** your PATH or compiler configuration so that the native linker is
8440*** used, and then restart.
8441
8442_LT_EOF
8443	;;
8444	*)
8445	  # For security reasons, it is highly recommended that you always
8446	  # use absolute paths for naming shared libraries, and exclude the
8447	  # DT_RUNPATH tag from executables and libraries.  But doing so
8448	  # requires that you compile everything twice, which is a pain.
8449	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8450	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8451	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8452	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8453	  else
8454	    ld_shlibs=no
8455	  fi
8456	;;
8457      esac
8458      ;;
8459
8460    sunos4*)
8461      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8462      wlarc=
8463      hardcode_direct=yes
8464      hardcode_shlibpath_var=no
8465      ;;
8466
8467    *)
8468      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8469	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8470	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8471      else
8472	ld_shlibs=no
8473      fi
8474      ;;
8475    esac
8476
8477    if test "$ld_shlibs" = no; then
8478      runpath_var=
8479      hardcode_libdir_flag_spec=
8480      export_dynamic_flag_spec=
8481      whole_archive_flag_spec=
8482    fi
8483  else
8484    # PORTME fill in a description of your system's linker (not GNU ld)
8485    case $host_os in
8486    aix3*)
8487      allow_undefined_flag=unsupported
8488      always_export_symbols=yes
8489      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'
8490      # Note: this linker hardcodes the directories in LIBPATH if there
8491      # are no directories specified by -L.
8492      hardcode_minus_L=yes
8493      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8494	# Neither direct hardcoding nor static linking is supported with a
8495	# broken collect2.
8496	hardcode_direct=unsupported
8497      fi
8498      ;;
8499
8500    aix[4-9]*)
8501      if test "$host_cpu" = ia64; then
8502	# On IA64, the linker does run time linking by default, so we don't
8503	# have to do anything special.
8504	aix_use_runtimelinking=no
8505	exp_sym_flag='-Bexport'
8506	no_entry_flag=""
8507      else
8508	# If we're using GNU nm, then we don't want the "-C" option.
8509	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8510	# Also, AIX nm treats weak defined symbols like other global
8511	# defined symbols, whereas GNU nm marks them as "W".
8512	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8513	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8514	else
8515	  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'
8516	fi
8517	aix_use_runtimelinking=no
8518
8519	# Test if we are trying to use run time linking or normal
8520	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8521	# need to do runtime linking.
8522	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8523	  for ld_flag in $LDFLAGS; do
8524	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8525	    aix_use_runtimelinking=yes
8526	    break
8527	  fi
8528	  done
8529	  ;;
8530	esac
8531
8532	exp_sym_flag='-bexport'
8533	no_entry_flag='-bnoentry'
8534      fi
8535
8536      # When large executables or shared objects are built, AIX ld can
8537      # have problems creating the table of contents.  If linking a library
8538      # or program results in "error TOC overflow" add -mminimal-toc to
8539      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8540      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8541
8542      archive_cmds=''
8543      hardcode_direct=yes
8544      hardcode_direct_absolute=yes
8545      hardcode_libdir_separator=':'
8546      link_all_deplibs=yes
8547      file_list_spec='${wl}-f,'
8548
8549      if test "$GCC" = yes; then
8550	case $host_os in aix4.[012]|aix4.[012].*)
8551	# We only want to do this on AIX 4.2 and lower, the check
8552	# below for broken collect2 doesn't work under 4.3+
8553	  collect2name=`${CC} -print-prog-name=collect2`
8554	  if test -f "$collect2name" &&
8555	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8556	  then
8557	  # We have reworked collect2
8558	  :
8559	  else
8560	  # We have old collect2
8561	  hardcode_direct=unsupported
8562	  # It fails to find uninstalled libraries when the uninstalled
8563	  # path is not listed in the libpath.  Setting hardcode_minus_L
8564	  # to unsupported forces relinking
8565	  hardcode_minus_L=yes
8566	  hardcode_libdir_flag_spec='-L$libdir'
8567	  hardcode_libdir_separator=
8568	  fi
8569	  ;;
8570	esac
8571	shared_flag='-shared'
8572	if test "$aix_use_runtimelinking" = yes; then
8573	  shared_flag="$shared_flag "'${wl}-G'
8574	fi
8575	link_all_deplibs=no
8576      else
8577	# not using gcc
8578	if test "$host_cpu" = ia64; then
8579	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8580	# chokes on -Wl,-G. The following line is correct:
8581	  shared_flag='-G'
8582	else
8583	  if test "$aix_use_runtimelinking" = yes; then
8584	    shared_flag='${wl}-G'
8585	  else
8586	    shared_flag='${wl}-bM:SRE'
8587	  fi
8588	fi
8589      fi
8590
8591      export_dynamic_flag_spec='${wl}-bexpall'
8592      # It seems that -bexpall does not export symbols beginning with
8593      # underscore (_), so it is better to generate a list of symbols to export.
8594      always_export_symbols=yes
8595      if test "$aix_use_runtimelinking" = yes; then
8596	# Warning - without using the other runtime loading flags (-brtl),
8597	# -berok will link without error, but may produce a broken library.
8598	allow_undefined_flag='-berok'
8599        # Determine the default libpath from the value encoded in an
8600        # empty executable.
8601        if test "${lt_cv_aix_libpath+set}" = set; then
8602  aix_libpath=$lt_cv_aix_libpath
8603else
8604  if ${lt_cv_aix_libpath_+:} false; then :
8605  $as_echo_n "(cached) " >&6
8606else
8607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608/* end confdefs.h.  */
8609
8610int
8611main ()
8612{
8613
8614  ;
8615  return 0;
8616}
8617_ACEOF
8618if ac_fn_c_try_link "$LINENO"; then :
8619
8620  lt_aix_libpath_sed='
8621      /Import File Strings/,/^$/ {
8622	  /^0/ {
8623	      s/^0  *\([^ ]*\) *$/\1/
8624	      p
8625	  }
8626      }'
8627  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8628  # Check for a 64-bit object if we didn't find anything.
8629  if test -z "$lt_cv_aix_libpath_"; then
8630    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8631  fi
8632fi
8633rm -f core conftest.err conftest.$ac_objext \
8634    conftest$ac_exeext conftest.$ac_ext
8635  if test -z "$lt_cv_aix_libpath_"; then
8636    lt_cv_aix_libpath_="/usr/lib:/lib"
8637  fi
8638
8639fi
8640
8641  aix_libpath=$lt_cv_aix_libpath_
8642fi
8643
8644        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8645        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8646      else
8647	if test "$host_cpu" = ia64; then
8648	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8649	  allow_undefined_flag="-z nodefs"
8650	  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"
8651	else
8652	 # Determine the default libpath from the value encoded in an
8653	 # empty executable.
8654	 if test "${lt_cv_aix_libpath+set}" = set; then
8655  aix_libpath=$lt_cv_aix_libpath
8656else
8657  if ${lt_cv_aix_libpath_+:} false; then :
8658  $as_echo_n "(cached) " >&6
8659else
8660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661/* end confdefs.h.  */
8662
8663int
8664main ()
8665{
8666
8667  ;
8668  return 0;
8669}
8670_ACEOF
8671if ac_fn_c_try_link "$LINENO"; then :
8672
8673  lt_aix_libpath_sed='
8674      /Import File Strings/,/^$/ {
8675	  /^0/ {
8676	      s/^0  *\([^ ]*\) *$/\1/
8677	      p
8678	  }
8679      }'
8680  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8681  # Check for a 64-bit object if we didn't find anything.
8682  if test -z "$lt_cv_aix_libpath_"; then
8683    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8684  fi
8685fi
8686rm -f core conftest.err conftest.$ac_objext \
8687    conftest$ac_exeext conftest.$ac_ext
8688  if test -z "$lt_cv_aix_libpath_"; then
8689    lt_cv_aix_libpath_="/usr/lib:/lib"
8690  fi
8691
8692fi
8693
8694  aix_libpath=$lt_cv_aix_libpath_
8695fi
8696
8697	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8698	  # Warning - without using the other run time loading flags,
8699	  # -berok will link without error, but may produce a broken library.
8700	  no_undefined_flag=' ${wl}-bernotok'
8701	  allow_undefined_flag=' ${wl}-berok'
8702	  if test "$with_gnu_ld" = yes; then
8703	    # We only use this code for GNU lds that support --whole-archive.
8704	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8705	  else
8706	    # Exported symbols can be pulled into shared objects from archives
8707	    whole_archive_flag_spec='$convenience'
8708	  fi
8709	  archive_cmds_need_lc=yes
8710	  # This is similar to how AIX traditionally builds its shared libraries.
8711	  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'
8712	fi
8713      fi
8714      ;;
8715
8716    amigaos*)
8717      case $host_cpu in
8718      powerpc)
8719            # see comment about AmigaOS4 .so support
8720            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8721            archive_expsym_cmds=''
8722        ;;
8723      m68k)
8724            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)'
8725            hardcode_libdir_flag_spec='-L$libdir'
8726            hardcode_minus_L=yes
8727        ;;
8728      esac
8729      ;;
8730
8731    bsdi[45]*)
8732      export_dynamic_flag_spec=-rdynamic
8733      ;;
8734
8735    cygwin* | mingw* | pw32* | cegcc*)
8736      # When not using gcc, we currently assume that we are using
8737      # Microsoft Visual C++.
8738      # hardcode_libdir_flag_spec is actually meaningless, as there is
8739      # no search path for DLLs.
8740      case $cc_basename in
8741      cl*)
8742	# Native MSVC
8743	hardcode_libdir_flag_spec=' '
8744	allow_undefined_flag=unsupported
8745	always_export_symbols=yes
8746	file_list_spec='@'
8747	# Tell ltmain to make .lib files, not .a files.
8748	libext=lib
8749	# Tell ltmain to make .dll files, not .so files.
8750	shrext_cmds=".dll"
8751	# FIXME: Setting linknames here is a bad hack.
8752	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8753	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8754	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8755	  else
8756	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8757	  fi~
8758	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8759	  linknames='
8760	# The linker will not automatically build a static lib if we build a DLL.
8761	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8762	enable_shared_with_static_runtimes=yes
8763	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8764	# Don't use ranlib
8765	old_postinstall_cmds='chmod 644 $oldlib'
8766	postlink_cmds='lt_outputfile="@OUTPUT@"~
8767	  lt_tool_outputfile="@TOOL_OUTPUT@"~
8768	  case $lt_outputfile in
8769	    *.exe|*.EXE) ;;
8770	    *)
8771	      lt_outputfile="$lt_outputfile.exe"
8772	      lt_tool_outputfile="$lt_tool_outputfile.exe"
8773	      ;;
8774	  esac~
8775	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8776	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8777	    $RM "$lt_outputfile.manifest";
8778	  fi'
8779	;;
8780      *)
8781	# Assume MSVC wrapper
8782	hardcode_libdir_flag_spec=' '
8783	allow_undefined_flag=unsupported
8784	# Tell ltmain to make .lib files, not .a files.
8785	libext=lib
8786	# Tell ltmain to make .dll files, not .so files.
8787	shrext_cmds=".dll"
8788	# FIXME: Setting linknames here is a bad hack.
8789	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8790	# The linker will automatically build a .lib file if we build a DLL.
8791	old_archive_from_new_cmds='true'
8792	# FIXME: Should let the user specify the lib program.
8793	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8794	enable_shared_with_static_runtimes=yes
8795	;;
8796      esac
8797      ;;
8798
8799    darwin* | rhapsody*)
8800
8801
8802  archive_cmds_need_lc=no
8803  hardcode_direct=no
8804  hardcode_automatic=yes
8805  hardcode_shlibpath_var=unsupported
8806  if test "$lt_cv_ld_force_load" = "yes"; then
8807    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8808  else
8809    whole_archive_flag_spec=''
8810  fi
8811  link_all_deplibs=yes
8812  allow_undefined_flag="$_lt_dar_allow_undefined"
8813  case $cc_basename in
8814     ifort*) _lt_dar_can_shared=yes ;;
8815     *) _lt_dar_can_shared=$GCC ;;
8816  esac
8817  if test "$_lt_dar_can_shared" = "yes"; then
8818    output_verbose_link_cmd=func_echo_all
8819    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8820    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8821    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8822    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8823
8824  else
8825  ld_shlibs=no
8826  fi
8827
8828      ;;
8829
8830    dgux*)
8831      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832      hardcode_libdir_flag_spec='-L$libdir'
8833      hardcode_shlibpath_var=no
8834      ;;
8835
8836    freebsd1*)
8837      ld_shlibs=no
8838      ;;
8839
8840    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8841    # support.  Future versions do this automatically, but an explicit c++rt0.o
8842    # does not break anything, and helps significantly (at the cost of a little
8843    # extra space).
8844    freebsd2.2*)
8845      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8846      hardcode_libdir_flag_spec='-R$libdir'
8847      hardcode_direct=yes
8848      hardcode_shlibpath_var=no
8849      ;;
8850
8851    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8852    freebsd2*)
8853      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8854      hardcode_direct=yes
8855      hardcode_minus_L=yes
8856      hardcode_shlibpath_var=no
8857      ;;
8858
8859    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8860    freebsd* | dragonfly*)
8861      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8862      hardcode_libdir_flag_spec='-R$libdir'
8863      hardcode_direct=yes
8864      hardcode_shlibpath_var=no
8865      ;;
8866
8867    hpux9*)
8868      if test "$GCC" = yes; then
8869	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8870      else
8871	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'
8872      fi
8873      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8874      hardcode_libdir_separator=:
8875      hardcode_direct=yes
8876
8877      # hardcode_minus_L: Not really in the search PATH,
8878      # but as the default location of the library.
8879      hardcode_minus_L=yes
8880      export_dynamic_flag_spec='${wl}-E'
8881      ;;
8882
8883    hpux10*)
8884      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8885	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8886      else
8887	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8888      fi
8889      if test "$with_gnu_ld" = no; then
8890	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8891	hardcode_libdir_flag_spec_ld='+b $libdir'
8892	hardcode_libdir_separator=:
8893	hardcode_direct=yes
8894	hardcode_direct_absolute=yes
8895	export_dynamic_flag_spec='${wl}-E'
8896	# hardcode_minus_L: Not really in the search PATH,
8897	# but as the default location of the library.
8898	hardcode_minus_L=yes
8899      fi
8900      ;;
8901
8902    hpux11*)
8903      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8904	case $host_cpu in
8905	hppa*64*)
8906	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8907	  ;;
8908	ia64*)
8909	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8910	  ;;
8911	*)
8912	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8913	  ;;
8914	esac
8915      else
8916	case $host_cpu in
8917	hppa*64*)
8918	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8919	  ;;
8920	ia64*)
8921	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8922	  ;;
8923	*)
8924
8925	  # Older versions of the 11.00 compiler do not understand -b yet
8926	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8927	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8928$as_echo_n "checking if $CC understands -b... " >&6; }
8929if ${lt_cv_prog_compiler__b+:} false; then :
8930  $as_echo_n "(cached) " >&6
8931else
8932  lt_cv_prog_compiler__b=no
8933   save_LDFLAGS="$LDFLAGS"
8934   LDFLAGS="$LDFLAGS -b"
8935   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8936   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8937     # The linker can only warn and ignore the option if not recognized
8938     # So say no if there are warnings
8939     if test -s conftest.err; then
8940       # Append any errors to the config.log.
8941       cat conftest.err 1>&5
8942       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8943       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8944       if diff conftest.exp conftest.er2 >/dev/null; then
8945         lt_cv_prog_compiler__b=yes
8946       fi
8947     else
8948       lt_cv_prog_compiler__b=yes
8949     fi
8950   fi
8951   $RM -r conftest*
8952   LDFLAGS="$save_LDFLAGS"
8953
8954fi
8955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8956$as_echo "$lt_cv_prog_compiler__b" >&6; }
8957
8958if test x"$lt_cv_prog_compiler__b" = xyes; then
8959    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8960else
8961    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8962fi
8963
8964	  ;;
8965	esac
8966      fi
8967      if test "$with_gnu_ld" = no; then
8968	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8969	hardcode_libdir_separator=:
8970
8971	case $host_cpu in
8972	hppa*64*|ia64*)
8973	  hardcode_direct=no
8974	  hardcode_shlibpath_var=no
8975	  ;;
8976	*)
8977	  hardcode_direct=yes
8978	  hardcode_direct_absolute=yes
8979	  export_dynamic_flag_spec='${wl}-E'
8980
8981	  # hardcode_minus_L: Not really in the search PATH,
8982	  # but as the default location of the library.
8983	  hardcode_minus_L=yes
8984	  ;;
8985	esac
8986      fi
8987      ;;
8988
8989    irix5* | irix6* | nonstopux*)
8990      if test "$GCC" = yes; then
8991	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8992	# Try to use the -exported_symbol ld option, if it does not
8993	# work, assume that -exports_file does not work either and
8994	# implicitly export all symbols.
8995	# This should be the same for all languages, so no per-tag cache variable.
8996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8997$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8998if ${lt_cv_irix_exported_symbol+:} false; then :
8999  $as_echo_n "(cached) " >&6
9000else
9001  save_LDFLAGS="$LDFLAGS"
9002	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9003	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h.  */
9005int foo (void) { return 0; }
9006_ACEOF
9007if ac_fn_c_try_link "$LINENO"; then :
9008  lt_cv_irix_exported_symbol=yes
9009else
9010  lt_cv_irix_exported_symbol=no
9011fi
9012rm -f core conftest.err conftest.$ac_objext \
9013    conftest$ac_exeext conftest.$ac_ext
9014           LDFLAGS="$save_LDFLAGS"
9015fi
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9017$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9018	if test "$lt_cv_irix_exported_symbol" = yes; then
9019          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9020	fi
9021      else
9022	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9023	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9024      fi
9025      archive_cmds_need_lc='no'
9026      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9027      hardcode_libdir_separator=:
9028      inherit_rpath=yes
9029      link_all_deplibs=yes
9030      ;;
9031
9032    netbsd* | netbsdelf*-gnu)
9033      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9034	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9035      else
9036	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9037      fi
9038      hardcode_libdir_flag_spec='-R$libdir'
9039      hardcode_direct=yes
9040      hardcode_shlibpath_var=no
9041      ;;
9042
9043    newsos6)
9044      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9045      hardcode_direct=yes
9046      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9047      hardcode_libdir_separator=:
9048      hardcode_shlibpath_var=no
9049      ;;
9050
9051    *nto* | *qnx*)
9052      ;;
9053
9054    openbsd*)
9055      if test -f /usr/libexec/ld.so; then
9056	hardcode_direct=yes
9057	hardcode_shlibpath_var=no
9058	hardcode_direct_absolute=yes
9059	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9060	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9061	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9062	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9063	  export_dynamic_flag_spec='${wl}-E'
9064	else
9065	  case $host_os in
9066	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9067	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9068	     hardcode_libdir_flag_spec='-R$libdir'
9069	     ;;
9070	   *)
9071	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9072	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9073	     ;;
9074	  esac
9075	fi
9076      else
9077	ld_shlibs=no
9078      fi
9079      ;;
9080
9081    os2*)
9082      hardcode_libdir_flag_spec='-L$libdir'
9083      hardcode_minus_L=yes
9084      allow_undefined_flag=unsupported
9085      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'
9086      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9087      ;;
9088
9089    osf3*)
9090      if test "$GCC" = yes; then
9091	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9092	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9093      else
9094	allow_undefined_flag=' -expect_unresolved \*'
9095	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9096      fi
9097      archive_cmds_need_lc='no'
9098      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9099      hardcode_libdir_separator=:
9100      ;;
9101
9102    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9103      if test "$GCC" = yes; then
9104	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9105	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9106	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9107      else
9108	allow_undefined_flag=' -expect_unresolved \*'
9109	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9110	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9111	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9112
9113	# Both c and cxx compiler support -rpath directly
9114	hardcode_libdir_flag_spec='-rpath $libdir'
9115      fi
9116      archive_cmds_need_lc='no'
9117      hardcode_libdir_separator=:
9118      ;;
9119
9120    solaris*)
9121      no_undefined_flag=' -z defs'
9122      if test "$GCC" = yes; then
9123	wlarc='${wl}'
9124	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9125	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9126	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9127      else
9128	case `$CC -V 2>&1` in
9129	*"Compilers 5.0"*)
9130	  wlarc=''
9131	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9132	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9133	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9134	  ;;
9135	*)
9136	  wlarc='${wl}'
9137	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9138	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9139	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9140	  ;;
9141	esac
9142      fi
9143      hardcode_libdir_flag_spec='-R$libdir'
9144      hardcode_shlibpath_var=no
9145      case $host_os in
9146      solaris2.[0-5] | solaris2.[0-5].*) ;;
9147      *)
9148	# The compiler driver will combine and reorder linker options,
9149	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9150	# but is careful enough not to reorder.
9151	# Supported since Solaris 2.6 (maybe 2.5.1?)
9152	if test "$GCC" = yes; then
9153	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9154	else
9155	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9156	fi
9157	;;
9158      esac
9159      link_all_deplibs=yes
9160      ;;
9161
9162    sunos4*)
9163      if test "x$host_vendor" = xsequent; then
9164	# Use $CC to link under sequent, because it throws in some extra .o
9165	# files that make .init and .fini sections work.
9166	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9167      else
9168	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9169      fi
9170      hardcode_libdir_flag_spec='-L$libdir'
9171      hardcode_direct=yes
9172      hardcode_minus_L=yes
9173      hardcode_shlibpath_var=no
9174      ;;
9175
9176    sysv4)
9177      case $host_vendor in
9178	sni)
9179	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9180	  hardcode_direct=yes # is this really true???
9181	;;
9182	siemens)
9183	  ## LD is ld it makes a PLAMLIB
9184	  ## CC just makes a GrossModule.
9185	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9186	  reload_cmds='$CC -r -o $output$reload_objs'
9187	  hardcode_direct=no
9188        ;;
9189	motorola)
9190	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9191	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9192	;;
9193      esac
9194      runpath_var='LD_RUN_PATH'
9195      hardcode_shlibpath_var=no
9196      ;;
9197
9198    sysv4.3*)
9199      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9200      hardcode_shlibpath_var=no
9201      export_dynamic_flag_spec='-Bexport'
9202      ;;
9203
9204    sysv4*MP*)
9205      if test -d /usr/nec; then
9206	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9207	hardcode_shlibpath_var=no
9208	runpath_var=LD_RUN_PATH
9209	hardcode_runpath_var=yes
9210	ld_shlibs=yes
9211      fi
9212      ;;
9213
9214    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9215      no_undefined_flag='${wl}-z,text'
9216      archive_cmds_need_lc=no
9217      hardcode_shlibpath_var=no
9218      runpath_var='LD_RUN_PATH'
9219
9220      if test "$GCC" = yes; then
9221	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9222	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9223      else
9224	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9225	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9226      fi
9227      ;;
9228
9229    sysv5* | sco3.2v5* | sco5v6*)
9230      # Note: We can NOT use -z defs as we might desire, because we do not
9231      # link with -lc, and that would cause any symbols used from libc to
9232      # always be unresolved, which means just about no library would
9233      # ever link correctly.  If we're not using GNU ld we use -z text
9234      # though, which does catch some bad symbols but isn't as heavy-handed
9235      # as -z defs.
9236      no_undefined_flag='${wl}-z,text'
9237      allow_undefined_flag='${wl}-z,nodefs'
9238      archive_cmds_need_lc=no
9239      hardcode_shlibpath_var=no
9240      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9241      hardcode_libdir_separator=':'
9242      link_all_deplibs=yes
9243      export_dynamic_flag_spec='${wl}-Bexport'
9244      runpath_var='LD_RUN_PATH'
9245
9246      if test "$GCC" = yes; then
9247	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9248	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9249      else
9250	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9251	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9252      fi
9253      ;;
9254
9255    uts4*)
9256      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9257      hardcode_libdir_flag_spec='-L$libdir'
9258      hardcode_shlibpath_var=no
9259      ;;
9260
9261    *)
9262      ld_shlibs=no
9263      ;;
9264    esac
9265
9266    if test x$host_vendor = xsni; then
9267      case $host in
9268      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9269	export_dynamic_flag_spec='${wl}-Blargedynsym'
9270	;;
9271      esac
9272    fi
9273  fi
9274
9275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9276$as_echo "$ld_shlibs" >&6; }
9277test "$ld_shlibs" = no && can_build_shared=no
9278
9279with_gnu_ld=$with_gnu_ld
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295#
9296# Do we need to explicitly link libc?
9297#
9298case "x$archive_cmds_need_lc" in
9299x|xyes)
9300  # Assume -lc should be added
9301  archive_cmds_need_lc=yes
9302
9303  if test "$enable_shared" = yes && test "$GCC" = yes; then
9304    case $archive_cmds in
9305    *'~'*)
9306      # FIXME: we may have to deal with multi-command sequences.
9307      ;;
9308    '$CC '*)
9309      # Test whether the compiler implicitly links with -lc since on some
9310      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9311      # to ld, don't add -lc before -lgcc.
9312      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9313$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9314if ${lt_cv_archive_cmds_need_lc+:} false; then :
9315  $as_echo_n "(cached) " >&6
9316else
9317  $RM conftest*
9318	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9319
9320	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9321  (eval $ac_compile) 2>&5
9322  ac_status=$?
9323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9324  test $ac_status = 0; } 2>conftest.err; then
9325	  soname=conftest
9326	  lib=conftest
9327	  libobjs=conftest.$ac_objext
9328	  deplibs=
9329	  wl=$lt_prog_compiler_wl
9330	  pic_flag=$lt_prog_compiler_pic
9331	  compiler_flags=-v
9332	  linker_flags=-v
9333	  verstring=
9334	  output_objdir=.
9335	  libname=conftest
9336	  lt_save_allow_undefined_flag=$allow_undefined_flag
9337	  allow_undefined_flag=
9338	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9339  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9340  ac_status=$?
9341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9342  test $ac_status = 0; }
9343	  then
9344	    lt_cv_archive_cmds_need_lc=no
9345	  else
9346	    lt_cv_archive_cmds_need_lc=yes
9347	  fi
9348	  allow_undefined_flag=$lt_save_allow_undefined_flag
9349	else
9350	  cat conftest.err 1>&5
9351	fi
9352	$RM conftest*
9353
9354fi
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9356$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9357      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9358      ;;
9359    esac
9360  fi
9361  ;;
9362esac
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9521$as_echo_n "checking dynamic linker characteristics... " >&6; }
9522
9523if test "$GCC" = yes; then
9524  case $host_os in
9525    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9526    *) lt_awk_arg="/^libraries:/" ;;
9527  esac
9528  case $host_os in
9529    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9530    *) lt_sed_strip_eq="s,=/,/,g" ;;
9531  esac
9532  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9533  case $lt_search_path_spec in
9534  *\;*)
9535    # if the path contains ";" then we assume it to be the separator
9536    # otherwise default to the standard path separator (i.e. ":") - it is
9537    # assumed that no part of a normal pathname contains ";" but that should
9538    # okay in the real world where ";" in dirpaths is itself problematic.
9539    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9540    ;;
9541  *)
9542    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9543    ;;
9544  esac
9545  # Ok, now we have the path, separated by spaces, we can step through it
9546  # and add multilib dir if necessary.
9547  lt_tmp_lt_search_path_spec=
9548  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9549  for lt_sys_path in $lt_search_path_spec; do
9550    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9551      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9552    else
9553      test -d "$lt_sys_path" && \
9554	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9555    fi
9556  done
9557  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9558BEGIN {RS=" "; FS="/|\n";} {
9559  lt_foo="";
9560  lt_count=0;
9561  for (lt_i = NF; lt_i > 0; lt_i--) {
9562    if ($lt_i != "" && $lt_i != ".") {
9563      if ($lt_i == "..") {
9564        lt_count++;
9565      } else {
9566        if (lt_count == 0) {
9567          lt_foo="/" $lt_i lt_foo;
9568        } else {
9569          lt_count--;
9570        }
9571      }
9572    }
9573  }
9574  if (lt_foo != "") { lt_freq[lt_foo]++; }
9575  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9576}'`
9577  # AWK program above erroneously prepends '/' to C:/dos/paths
9578  # for these hosts.
9579  case $host_os in
9580    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9581      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9582  esac
9583  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9584else
9585  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9586fi
9587library_names_spec=
9588libname_spec='lib$name'
9589soname_spec=
9590shrext_cmds=".so"
9591postinstall_cmds=
9592postuninstall_cmds=
9593finish_cmds=
9594finish_eval=
9595shlibpath_var=
9596shlibpath_overrides_runpath=unknown
9597version_type=none
9598dynamic_linker="$host_os ld.so"
9599sys_lib_dlsearch_path_spec="/lib /usr/lib"
9600need_lib_prefix=unknown
9601hardcode_into_libs=no
9602
9603# when you set need_version to no, make sure it does not cause -set_version
9604# flags to be left without arguments
9605need_version=unknown
9606
9607case $host_os in
9608aix3*)
9609  version_type=linux
9610  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9611  shlibpath_var=LIBPATH
9612
9613  # AIX 3 has no versioning support, so we append a major version to the name.
9614  soname_spec='${libname}${release}${shared_ext}$major'
9615  ;;
9616
9617aix[4-9]*)
9618  version_type=linux
9619  need_lib_prefix=no
9620  need_version=no
9621  hardcode_into_libs=yes
9622  if test "$host_cpu" = ia64; then
9623    # AIX 5 supports IA64
9624    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9625    shlibpath_var=LD_LIBRARY_PATH
9626  else
9627    # With GCC up to 2.95.x, collect2 would create an import file
9628    # for dependence libraries.  The import file would start with
9629    # the line `#! .'.  This would cause the generated library to
9630    # depend on `.', always an invalid library.  This was fixed in
9631    # development snapshots of GCC prior to 3.0.
9632    case $host_os in
9633      aix4 | aix4.[01] | aix4.[01].*)
9634      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9635	   echo ' yes '
9636	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9637	:
9638      else
9639	can_build_shared=no
9640      fi
9641      ;;
9642    esac
9643    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9644    # soname into executable. Probably we can add versioning support to
9645    # collect2, so additional links can be useful in future.
9646    if test "$aix_use_runtimelinking" = yes; then
9647      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9648      # instead of lib<name>.a to let people know that these are not
9649      # typical AIX shared libraries.
9650      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9651    else
9652      # We preserve .a as extension for shared libraries through AIX4.2
9653      # and later when we are not doing run time linking.
9654      library_names_spec='${libname}${release}.a $libname.a'
9655      soname_spec='${libname}${release}${shared_ext}$major'
9656    fi
9657    shlibpath_var=LIBPATH
9658  fi
9659  ;;
9660
9661amigaos*)
9662  case $host_cpu in
9663  powerpc)
9664    # Since July 2007 AmigaOS4 officially supports .so libraries.
9665    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9666    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667    ;;
9668  m68k)
9669    library_names_spec='$libname.ixlibrary $libname.a'
9670    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9671    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
9672    ;;
9673  esac
9674  ;;
9675
9676beos*)
9677  library_names_spec='${libname}${shared_ext}'
9678  dynamic_linker="$host_os ld.so"
9679  shlibpath_var=LIBRARY_PATH
9680  ;;
9681
9682bsdi[45]*)
9683  version_type=linux
9684  need_version=no
9685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686  soname_spec='${libname}${release}${shared_ext}$major'
9687  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9688  shlibpath_var=LD_LIBRARY_PATH
9689  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9690  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9691  # the default ld.so.conf also contains /usr/contrib/lib and
9692  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9693  # libtool to hard-code these into programs
9694  ;;
9695
9696cygwin* | mingw* | pw32* | cegcc*)
9697  version_type=windows
9698  shrext_cmds=".dll"
9699  need_version=no
9700  need_lib_prefix=no
9701
9702  case $GCC,$cc_basename in
9703  yes,*)
9704    # gcc
9705    library_names_spec='$libname.dll.a'
9706    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9707    postinstall_cmds='base_file=`basename \${file}`~
9708      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9709      dldir=$destdir/`dirname \$dlpath`~
9710      test -d \$dldir || mkdir -p \$dldir~
9711      $install_prog $dir/$dlname \$dldir/$dlname~
9712      chmod a+x \$dldir/$dlname~
9713      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9714        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9715      fi'
9716    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9717      dlpath=$dir/\$dldll~
9718       $RM \$dlpath'
9719    shlibpath_overrides_runpath=yes
9720
9721    case $host_os in
9722    cygwin*)
9723      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9724      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9725
9726      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9727      ;;
9728    mingw* | cegcc*)
9729      # MinGW DLLs use traditional 'lib' prefix
9730      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9731      ;;
9732    pw32*)
9733      # pw32 DLLs use 'pw' prefix rather than 'lib'
9734      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9735      ;;
9736    esac
9737    dynamic_linker='Win32 ld.exe'
9738    ;;
9739
9740  *,cl*)
9741    # Native MSVC
9742    libname_spec='$name'
9743    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9744    library_names_spec='${libname}.dll.lib'
9745
9746    case $build_os in
9747    mingw*)
9748      sys_lib_search_path_spec=
9749      lt_save_ifs=$IFS
9750      IFS=';'
9751      for lt_path in $LIB
9752      do
9753        IFS=$lt_save_ifs
9754        # Let DOS variable expansion print the short 8.3 style file name.
9755        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9756        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9757      done
9758      IFS=$lt_save_ifs
9759      # Convert to MSYS style.
9760      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9761      ;;
9762    cygwin*)
9763      # Convert to unix form, then to dos form, then back to unix form
9764      # but this time dos style (no spaces!) so that the unix form looks
9765      # like /cygdrive/c/PROGRA~1:/cygdr...
9766      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9767      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9768      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9769      ;;
9770    *)
9771      sys_lib_search_path_spec="$LIB"
9772      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9773        # It is most probably a Windows format PATH.
9774        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9775      else
9776        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9777      fi
9778      # FIXME: find the short name or the path components, as spaces are
9779      # common. (e.g. "Program Files" -> "PROGRA~1")
9780      ;;
9781    esac
9782
9783    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9784    postinstall_cmds='base_file=`basename \${file}`~
9785      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9786      dldir=$destdir/`dirname \$dlpath`~
9787      test -d \$dldir || mkdir -p \$dldir~
9788      $install_prog $dir/$dlname \$dldir/$dlname'
9789    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9790      dlpath=$dir/\$dldll~
9791       $RM \$dlpath'
9792    shlibpath_overrides_runpath=yes
9793    dynamic_linker='Win32 link.exe'
9794    ;;
9795
9796  *)
9797    # Assume MSVC wrapper
9798    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9799    dynamic_linker='Win32 ld.exe'
9800    ;;
9801  esac
9802  # FIXME: first we should search . and the directory the executable is in
9803  shlibpath_var=PATH
9804  ;;
9805
9806darwin* | rhapsody*)
9807  dynamic_linker="$host_os dyld"
9808  version_type=darwin
9809  need_lib_prefix=no
9810  need_version=no
9811  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9812  soname_spec='${libname}${release}${major}$shared_ext'
9813  shlibpath_overrides_runpath=yes
9814  shlibpath_var=DYLD_LIBRARY_PATH
9815  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9816
9817  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9818  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9819  ;;
9820
9821dgux*)
9822  version_type=linux
9823  need_lib_prefix=no
9824  need_version=no
9825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9826  soname_spec='${libname}${release}${shared_ext}$major'
9827  shlibpath_var=LD_LIBRARY_PATH
9828  ;;
9829
9830freebsd1*)
9831  dynamic_linker=no
9832  ;;
9833
9834freebsd* | dragonfly*)
9835  # DragonFly does not have aout.  When/if they implement a new
9836  # versioning mechanism, adjust this.
9837  if test -x /usr/bin/objformat; then
9838    objformat=`/usr/bin/objformat`
9839  else
9840    case $host_os in
9841    freebsd[123]*) objformat=aout ;;
9842    *) objformat=elf ;;
9843    esac
9844  fi
9845  version_type=freebsd-$objformat
9846  case $version_type in
9847    freebsd-elf*)
9848      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9849      need_version=no
9850      need_lib_prefix=no
9851      ;;
9852    freebsd-*)
9853      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9854      need_version=yes
9855      ;;
9856  esac
9857  shlibpath_var=LD_LIBRARY_PATH
9858  case $host_os in
9859  freebsd2*)
9860    shlibpath_overrides_runpath=yes
9861    ;;
9862  freebsd3.[01]* | freebsdelf3.[01]*)
9863    shlibpath_overrides_runpath=yes
9864    hardcode_into_libs=yes
9865    ;;
9866  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9867  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9868    shlibpath_overrides_runpath=no
9869    hardcode_into_libs=yes
9870    ;;
9871  *) # from 4.6 on, and DragonFly
9872    shlibpath_overrides_runpath=yes
9873    hardcode_into_libs=yes
9874    ;;
9875  esac
9876  ;;
9877
9878gnu*)
9879  version_type=linux
9880  need_lib_prefix=no
9881  need_version=no
9882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9883  soname_spec='${libname}${release}${shared_ext}$major'
9884  shlibpath_var=LD_LIBRARY_PATH
9885  shlibpath_overrides_runpath=no
9886  hardcode_into_libs=yes
9887  ;;
9888
9889haiku*)
9890  version_type=linux
9891  need_lib_prefix=no
9892  need_version=no
9893  dynamic_linker="$host_os runtime_loader"
9894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9895  soname_spec='${libname}${release}${shared_ext}$major'
9896  shlibpath_var=LIBRARY_PATH
9897  shlibpath_overrides_runpath=yes
9898  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9899  hardcode_into_libs=yes
9900  ;;
9901
9902hpux9* | hpux10* | hpux11*)
9903  # Give a soname corresponding to the major version so that dld.sl refuses to
9904  # link against other versions.
9905  version_type=sunos
9906  need_lib_prefix=no
9907  need_version=no
9908  case $host_cpu in
9909  ia64*)
9910    shrext_cmds='.so'
9911    hardcode_into_libs=yes
9912    dynamic_linker="$host_os dld.so"
9913    shlibpath_var=LD_LIBRARY_PATH
9914    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9915    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9916    soname_spec='${libname}${release}${shared_ext}$major'
9917    if test "X$HPUX_IA64_MODE" = X32; then
9918      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9919    else
9920      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9921    fi
9922    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9923    ;;
9924  hppa*64*)
9925    shrext_cmds='.sl'
9926    hardcode_into_libs=yes
9927    dynamic_linker="$host_os dld.sl"
9928    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9929    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9930    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931    soname_spec='${libname}${release}${shared_ext}$major'
9932    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9933    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9934    ;;
9935  *)
9936    shrext_cmds='.sl'
9937    dynamic_linker="$host_os dld.sl"
9938    shlibpath_var=SHLIB_PATH
9939    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9940    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941    soname_spec='${libname}${release}${shared_ext}$major'
9942    ;;
9943  esac
9944  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9945  postinstall_cmds='chmod 555 $lib'
9946  # or fails outright, so override atomically:
9947  install_override_mode=555
9948  ;;
9949
9950interix[3-9]*)
9951  version_type=linux
9952  need_lib_prefix=no
9953  need_version=no
9954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9955  soname_spec='${libname}${release}${shared_ext}$major'
9956  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9957  shlibpath_var=LD_LIBRARY_PATH
9958  shlibpath_overrides_runpath=no
9959  hardcode_into_libs=yes
9960  ;;
9961
9962irix5* | irix6* | nonstopux*)
9963  case $host_os in
9964    nonstopux*) version_type=nonstopux ;;
9965    *)
9966	if test "$lt_cv_prog_gnu_ld" = yes; then
9967		version_type=linux
9968	else
9969		version_type=irix
9970	fi ;;
9971  esac
9972  need_lib_prefix=no
9973  need_version=no
9974  soname_spec='${libname}${release}${shared_ext}$major'
9975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9976  case $host_os in
9977  irix5* | nonstopux*)
9978    libsuff= shlibsuff=
9979    ;;
9980  *)
9981    case $LD in # libtool.m4 will add one of these switches to LD
9982    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9983      libsuff= shlibsuff= libmagic=32-bit;;
9984    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9985      libsuff=32 shlibsuff=N32 libmagic=N32;;
9986    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9987      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9988    *) libsuff= shlibsuff= libmagic=never-match;;
9989    esac
9990    ;;
9991  esac
9992  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9993  shlibpath_overrides_runpath=no
9994  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9995  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9996  hardcode_into_libs=yes
9997  ;;
9998
9999# No shared lib support for Linux oldld, aout, or coff.
10000linux*oldld* | linux*aout* | linux*coff*)
10001  dynamic_linker=no
10002  ;;
10003
10004# This must be Linux ELF.
10005linux* | k*bsd*-gnu | kopensolaris*-gnu)
10006  version_type=linux
10007  need_lib_prefix=no
10008  need_version=no
10009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010  soname_spec='${libname}${release}${shared_ext}$major'
10011  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10012  shlibpath_var=LD_LIBRARY_PATH
10013  shlibpath_overrides_runpath=no
10014
10015  # Some binutils ld are patched to set DT_RUNPATH
10016  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10017  $as_echo_n "(cached) " >&6
10018else
10019  lt_cv_shlibpath_overrides_runpath=no
10020    save_LDFLAGS=$LDFLAGS
10021    save_libdir=$libdir
10022    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10023	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10024    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025/* end confdefs.h.  */
10026
10027int
10028main ()
10029{
10030
10031  ;
10032  return 0;
10033}
10034_ACEOF
10035if ac_fn_c_try_link "$LINENO"; then :
10036  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10037  lt_cv_shlibpath_overrides_runpath=yes
10038fi
10039fi
10040rm -f core conftest.err conftest.$ac_objext \
10041    conftest$ac_exeext conftest.$ac_ext
10042    LDFLAGS=$save_LDFLAGS
10043    libdir=$save_libdir
10044
10045fi
10046
10047  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10048
10049  # This implies no fast_install, which is unacceptable.
10050  # Some rework will be needed to allow for fast_install
10051  # before this can be enabled.
10052  hardcode_into_libs=yes
10053
10054  # Append ld.so.conf contents to the search path
10055  if test -f /etc/ld.so.conf; then
10056    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10057    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10058  fi
10059
10060  # We used to test for /lib/ld.so.1 and disable shared libraries on
10061  # powerpc, because MkLinux only supported shared libraries with the
10062  # GNU dynamic linker.  Since this was broken with cross compilers,
10063  # most powerpc-linux boxes support dynamic linking these days and
10064  # people can always --disable-shared, the test was removed, and we
10065  # assume the GNU/Linux dynamic linker is in use.
10066  dynamic_linker='GNU/Linux ld.so'
10067  ;;
10068
10069netbsdelf*-gnu)
10070  version_type=linux
10071  need_lib_prefix=no
10072  need_version=no
10073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10074  soname_spec='${libname}${release}${shared_ext}$major'
10075  shlibpath_var=LD_LIBRARY_PATH
10076  shlibpath_overrides_runpath=no
10077  hardcode_into_libs=yes
10078  dynamic_linker='NetBSD ld.elf_so'
10079  ;;
10080
10081netbsd*)
10082  version_type=sunos
10083  need_lib_prefix=no
10084  need_version=no
10085  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10086    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10087    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10088    dynamic_linker='NetBSD (a.out) ld.so'
10089  else
10090    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10091    soname_spec='${libname}${release}${shared_ext}$major'
10092    dynamic_linker='NetBSD ld.elf_so'
10093  fi
10094  shlibpath_var=LD_LIBRARY_PATH
10095  shlibpath_overrides_runpath=yes
10096  hardcode_into_libs=yes
10097  ;;
10098
10099newsos6)
10100  version_type=linux
10101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102  shlibpath_var=LD_LIBRARY_PATH
10103  shlibpath_overrides_runpath=yes
10104  ;;
10105
10106*nto* | *qnx*)
10107  version_type=qnx
10108  need_lib_prefix=no
10109  need_version=no
10110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111  soname_spec='${libname}${release}${shared_ext}$major'
10112  shlibpath_var=LD_LIBRARY_PATH
10113  shlibpath_overrides_runpath=no
10114  hardcode_into_libs=yes
10115  dynamic_linker='ldqnx.so'
10116  ;;
10117
10118openbsd*)
10119  version_type=sunos
10120  sys_lib_dlsearch_path_spec="/usr/lib"
10121  need_lib_prefix=no
10122  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10123  case $host_os in
10124    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10125    *)				need_version=no  ;;
10126  esac
10127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10128  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10129  shlibpath_var=LD_LIBRARY_PATH
10130  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10131    case $host_os in
10132      openbsd2.[89] | openbsd2.[89].*)
10133	shlibpath_overrides_runpath=no
10134	;;
10135      *)
10136	shlibpath_overrides_runpath=yes
10137	;;
10138      esac
10139  else
10140    shlibpath_overrides_runpath=yes
10141  fi
10142  ;;
10143
10144os2*)
10145  libname_spec='$name'
10146  shrext_cmds=".dll"
10147  need_lib_prefix=no
10148  library_names_spec='$libname${shared_ext} $libname.a'
10149  dynamic_linker='OS/2 ld.exe'
10150  shlibpath_var=LIBPATH
10151  ;;
10152
10153osf3* | osf4* | osf5*)
10154  version_type=osf
10155  need_lib_prefix=no
10156  need_version=no
10157  soname_spec='${libname}${release}${shared_ext}$major'
10158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159  shlibpath_var=LD_LIBRARY_PATH
10160  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10161  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10162  ;;
10163
10164rdos*)
10165  dynamic_linker=no
10166  ;;
10167
10168solaris*)
10169  version_type=linux
10170  need_lib_prefix=no
10171  need_version=no
10172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173  soname_spec='${libname}${release}${shared_ext}$major'
10174  shlibpath_var=LD_LIBRARY_PATH
10175  shlibpath_overrides_runpath=yes
10176  hardcode_into_libs=yes
10177  # ldd complains unless libraries are executable
10178  postinstall_cmds='chmod +x $lib'
10179  ;;
10180
10181sunos4*)
10182  version_type=sunos
10183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10184  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10185  shlibpath_var=LD_LIBRARY_PATH
10186  shlibpath_overrides_runpath=yes
10187  if test "$with_gnu_ld" = yes; then
10188    need_lib_prefix=no
10189  fi
10190  need_version=yes
10191  ;;
10192
10193sysv4 | sysv4.3*)
10194  version_type=linux
10195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196  soname_spec='${libname}${release}${shared_ext}$major'
10197  shlibpath_var=LD_LIBRARY_PATH
10198  case $host_vendor in
10199    sni)
10200      shlibpath_overrides_runpath=no
10201      need_lib_prefix=no
10202      runpath_var=LD_RUN_PATH
10203      ;;
10204    siemens)
10205      need_lib_prefix=no
10206      ;;
10207    motorola)
10208      need_lib_prefix=no
10209      need_version=no
10210      shlibpath_overrides_runpath=no
10211      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10212      ;;
10213  esac
10214  ;;
10215
10216sysv4*MP*)
10217  if test -d /usr/nec ;then
10218    version_type=linux
10219    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10220    soname_spec='$libname${shared_ext}.$major'
10221    shlibpath_var=LD_LIBRARY_PATH
10222  fi
10223  ;;
10224
10225sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10226  version_type=freebsd-elf
10227  need_lib_prefix=no
10228  need_version=no
10229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10230  soname_spec='${libname}${release}${shared_ext}$major'
10231  shlibpath_var=LD_LIBRARY_PATH
10232  shlibpath_overrides_runpath=yes
10233  hardcode_into_libs=yes
10234  if test "$with_gnu_ld" = yes; then
10235    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10236  else
10237    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10238    case $host_os in
10239      sco3.2v5*)
10240        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10241	;;
10242    esac
10243  fi
10244  sys_lib_dlsearch_path_spec='/usr/lib'
10245  ;;
10246
10247tpf*)
10248  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10249  version_type=linux
10250  need_lib_prefix=no
10251  need_version=no
10252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253  shlibpath_var=LD_LIBRARY_PATH
10254  shlibpath_overrides_runpath=no
10255  hardcode_into_libs=yes
10256  ;;
10257
10258uts4*)
10259  version_type=linux
10260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261  soname_spec='${libname}${release}${shared_ext}$major'
10262  shlibpath_var=LD_LIBRARY_PATH
10263  ;;
10264
10265*)
10266  dynamic_linker=no
10267  ;;
10268esac
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10270$as_echo "$dynamic_linker" >&6; }
10271test "$dynamic_linker" = no && can_build_shared=no
10272
10273variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10274if test "$GCC" = yes; then
10275  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10276fi
10277
10278if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10279  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10280fi
10281if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10282  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10283fi
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10377$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10378hardcode_action=
10379if test -n "$hardcode_libdir_flag_spec" ||
10380   test -n "$runpath_var" ||
10381   test "X$hardcode_automatic" = "Xyes" ; then
10382
10383  # We can hardcode non-existent directories.
10384  if test "$hardcode_direct" != no &&
10385     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10386     # have to relink, otherwise we might link with an installed library
10387     # when we should be linking with a yet-to-be-installed one
10388     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10389     test "$hardcode_minus_L" != no; then
10390    # Linking always hardcodes the temporary library directory.
10391    hardcode_action=relink
10392  else
10393    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10394    hardcode_action=immediate
10395  fi
10396else
10397  # We cannot hardcode anything, or else we can only hardcode existing
10398  # directories.
10399  hardcode_action=unsupported
10400fi
10401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10402$as_echo "$hardcode_action" >&6; }
10403
10404if test "$hardcode_action" = relink ||
10405   test "$inherit_rpath" = yes; then
10406  # Fast installation is not supported
10407  enable_fast_install=no
10408elif test "$shlibpath_overrides_runpath" = yes ||
10409     test "$enable_shared" = no; then
10410  # Fast installation is not necessary
10411  enable_fast_install=needless
10412fi
10413
10414
10415
10416
10417
10418
10419  if test "x$enable_dlopen" != xyes; then
10420  enable_dlopen=unknown
10421  enable_dlopen_self=unknown
10422  enable_dlopen_self_static=unknown
10423else
10424  lt_cv_dlopen=no
10425  lt_cv_dlopen_libs=
10426
10427  case $host_os in
10428  beos*)
10429    lt_cv_dlopen="load_add_on"
10430    lt_cv_dlopen_libs=
10431    lt_cv_dlopen_self=yes
10432    ;;
10433
10434  mingw* | pw32* | cegcc*)
10435    lt_cv_dlopen="LoadLibrary"
10436    lt_cv_dlopen_libs=
10437    ;;
10438
10439  cygwin*)
10440    lt_cv_dlopen="dlopen"
10441    lt_cv_dlopen_libs=
10442    ;;
10443
10444  darwin*)
10445  # if libdl is installed we need to link against it
10446    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10447$as_echo_n "checking for dlopen in -ldl... " >&6; }
10448if ${ac_cv_lib_dl_dlopen+:} false; then :
10449  $as_echo_n "(cached) " >&6
10450else
10451  ac_check_lib_save_LIBS=$LIBS
10452LIBS="-ldl  $LIBS"
10453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454/* end confdefs.h.  */
10455
10456/* Override any GCC internal prototype to avoid an error.
10457   Use char because int might match the return type of a GCC
10458   builtin and then its argument prototype would still apply.  */
10459#ifdef __cplusplus
10460extern "C"
10461#endif
10462char dlopen ();
10463int
10464main ()
10465{
10466return dlopen ();
10467  ;
10468  return 0;
10469}
10470_ACEOF
10471if ac_fn_c_try_link "$LINENO"; then :
10472  ac_cv_lib_dl_dlopen=yes
10473else
10474  ac_cv_lib_dl_dlopen=no
10475fi
10476rm -f core conftest.err conftest.$ac_objext \
10477    conftest$ac_exeext conftest.$ac_ext
10478LIBS=$ac_check_lib_save_LIBS
10479fi
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10481$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10482if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10483  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10484else
10485
10486    lt_cv_dlopen="dyld"
10487    lt_cv_dlopen_libs=
10488    lt_cv_dlopen_self=yes
10489
10490fi
10491
10492    ;;
10493
10494  *)
10495    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10496if test "x$ac_cv_func_shl_load" = xyes; then :
10497  lt_cv_dlopen="shl_load"
10498else
10499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10500$as_echo_n "checking for shl_load in -ldld... " >&6; }
10501if ${ac_cv_lib_dld_shl_load+:} false; then :
10502  $as_echo_n "(cached) " >&6
10503else
10504  ac_check_lib_save_LIBS=$LIBS
10505LIBS="-ldld  $LIBS"
10506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507/* end confdefs.h.  */
10508
10509/* Override any GCC internal prototype to avoid an error.
10510   Use char because int might match the return type of a GCC
10511   builtin and then its argument prototype would still apply.  */
10512#ifdef __cplusplus
10513extern "C"
10514#endif
10515char shl_load ();
10516int
10517main ()
10518{
10519return shl_load ();
10520  ;
10521  return 0;
10522}
10523_ACEOF
10524if ac_fn_c_try_link "$LINENO"; then :
10525  ac_cv_lib_dld_shl_load=yes
10526else
10527  ac_cv_lib_dld_shl_load=no
10528fi
10529rm -f core conftest.err conftest.$ac_objext \
10530    conftest$ac_exeext conftest.$ac_ext
10531LIBS=$ac_check_lib_save_LIBS
10532fi
10533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10534$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10535if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10536  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10537else
10538  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10539if test "x$ac_cv_func_dlopen" = xyes; then :
10540  lt_cv_dlopen="dlopen"
10541else
10542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10543$as_echo_n "checking for dlopen in -ldl... " >&6; }
10544if ${ac_cv_lib_dl_dlopen+:} false; then :
10545  $as_echo_n "(cached) " >&6
10546else
10547  ac_check_lib_save_LIBS=$LIBS
10548LIBS="-ldl  $LIBS"
10549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550/* end confdefs.h.  */
10551
10552/* Override any GCC internal prototype to avoid an error.
10553   Use char because int might match the return type of a GCC
10554   builtin and then its argument prototype would still apply.  */
10555#ifdef __cplusplus
10556extern "C"
10557#endif
10558char dlopen ();
10559int
10560main ()
10561{
10562return dlopen ();
10563  ;
10564  return 0;
10565}
10566_ACEOF
10567if ac_fn_c_try_link "$LINENO"; then :
10568  ac_cv_lib_dl_dlopen=yes
10569else
10570  ac_cv_lib_dl_dlopen=no
10571fi
10572rm -f core conftest.err conftest.$ac_objext \
10573    conftest$ac_exeext conftest.$ac_ext
10574LIBS=$ac_check_lib_save_LIBS
10575fi
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10577$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10578if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10579  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10580else
10581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10582$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10583if ${ac_cv_lib_svld_dlopen+:} false; then :
10584  $as_echo_n "(cached) " >&6
10585else
10586  ac_check_lib_save_LIBS=$LIBS
10587LIBS="-lsvld  $LIBS"
10588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589/* end confdefs.h.  */
10590
10591/* Override any GCC internal prototype to avoid an error.
10592   Use char because int might match the return type of a GCC
10593   builtin and then its argument prototype would still apply.  */
10594#ifdef __cplusplus
10595extern "C"
10596#endif
10597char dlopen ();
10598int
10599main ()
10600{
10601return dlopen ();
10602  ;
10603  return 0;
10604}
10605_ACEOF
10606if ac_fn_c_try_link "$LINENO"; then :
10607  ac_cv_lib_svld_dlopen=yes
10608else
10609  ac_cv_lib_svld_dlopen=no
10610fi
10611rm -f core conftest.err conftest.$ac_objext \
10612    conftest$ac_exeext conftest.$ac_ext
10613LIBS=$ac_check_lib_save_LIBS
10614fi
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10616$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10617if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10618  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10619else
10620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10621$as_echo_n "checking for dld_link in -ldld... " >&6; }
10622if ${ac_cv_lib_dld_dld_link+:} false; then :
10623  $as_echo_n "(cached) " >&6
10624else
10625  ac_check_lib_save_LIBS=$LIBS
10626LIBS="-ldld  $LIBS"
10627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628/* end confdefs.h.  */
10629
10630/* Override any GCC internal prototype to avoid an error.
10631   Use char because int might match the return type of a GCC
10632   builtin and then its argument prototype would still apply.  */
10633#ifdef __cplusplus
10634extern "C"
10635#endif
10636char dld_link ();
10637int
10638main ()
10639{
10640return dld_link ();
10641  ;
10642  return 0;
10643}
10644_ACEOF
10645if ac_fn_c_try_link "$LINENO"; then :
10646  ac_cv_lib_dld_dld_link=yes
10647else
10648  ac_cv_lib_dld_dld_link=no
10649fi
10650rm -f core conftest.err conftest.$ac_objext \
10651    conftest$ac_exeext conftest.$ac_ext
10652LIBS=$ac_check_lib_save_LIBS
10653fi
10654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10655$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10656if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10657  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10658fi
10659
10660
10661fi
10662
10663
10664fi
10665
10666
10667fi
10668
10669
10670fi
10671
10672
10673fi
10674
10675    ;;
10676  esac
10677
10678  if test "x$lt_cv_dlopen" != xno; then
10679    enable_dlopen=yes
10680  else
10681    enable_dlopen=no
10682  fi
10683
10684  case $lt_cv_dlopen in
10685  dlopen)
10686    save_CPPFLAGS="$CPPFLAGS"
10687    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10688
10689    save_LDFLAGS="$LDFLAGS"
10690    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10691
10692    save_LIBS="$LIBS"
10693    LIBS="$lt_cv_dlopen_libs $LIBS"
10694
10695    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10696$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10697if ${lt_cv_dlopen_self+:} false; then :
10698  $as_echo_n "(cached) " >&6
10699else
10700  	  if test "$cross_compiling" = yes; then :
10701  lt_cv_dlopen_self=cross
10702else
10703  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10704  lt_status=$lt_dlunknown
10705  cat > conftest.$ac_ext <<_LT_EOF
10706#line $LINENO "configure"
10707#include "confdefs.h"
10708
10709#if HAVE_DLFCN_H
10710#include <dlfcn.h>
10711#endif
10712
10713#include <stdio.h>
10714
10715#ifdef RTLD_GLOBAL
10716#  define LT_DLGLOBAL		RTLD_GLOBAL
10717#else
10718#  ifdef DL_GLOBAL
10719#    define LT_DLGLOBAL		DL_GLOBAL
10720#  else
10721#    define LT_DLGLOBAL		0
10722#  endif
10723#endif
10724
10725/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10726   find out it does not work in some platform. */
10727#ifndef LT_DLLAZY_OR_NOW
10728#  ifdef RTLD_LAZY
10729#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10730#  else
10731#    ifdef DL_LAZY
10732#      define LT_DLLAZY_OR_NOW		DL_LAZY
10733#    else
10734#      ifdef RTLD_NOW
10735#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10736#      else
10737#        ifdef DL_NOW
10738#          define LT_DLLAZY_OR_NOW	DL_NOW
10739#        else
10740#          define LT_DLLAZY_OR_NOW	0
10741#        endif
10742#      endif
10743#    endif
10744#  endif
10745#endif
10746
10747/* When -fvisbility=hidden is used, assume the code has been annotated
10748   correspondingly for the symbols needed.  */
10749#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10750int fnord () __attribute__((visibility("default")));
10751#endif
10752
10753int fnord () { return 42; }
10754int main ()
10755{
10756  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10757  int status = $lt_dlunknown;
10758
10759  if (self)
10760    {
10761      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10762      else
10763        {
10764	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10765          else puts (dlerror ());
10766	}
10767      /* dlclose (self); */
10768    }
10769  else
10770    puts (dlerror ());
10771
10772  return status;
10773}
10774_LT_EOF
10775  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10776  (eval $ac_link) 2>&5
10777  ac_status=$?
10778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10779  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10780    (./conftest; exit; ) >&5 2>/dev/null
10781    lt_status=$?
10782    case x$lt_status in
10783      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10784      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10785      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10786    esac
10787  else :
10788    # compilation failed
10789    lt_cv_dlopen_self=no
10790  fi
10791fi
10792rm -fr conftest*
10793
10794
10795fi
10796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10797$as_echo "$lt_cv_dlopen_self" >&6; }
10798
10799    if test "x$lt_cv_dlopen_self" = xyes; then
10800      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10801      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10802$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10803if ${lt_cv_dlopen_self_static+:} false; then :
10804  $as_echo_n "(cached) " >&6
10805else
10806  	  if test "$cross_compiling" = yes; then :
10807  lt_cv_dlopen_self_static=cross
10808else
10809  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10810  lt_status=$lt_dlunknown
10811  cat > conftest.$ac_ext <<_LT_EOF
10812#line $LINENO "configure"
10813#include "confdefs.h"
10814
10815#if HAVE_DLFCN_H
10816#include <dlfcn.h>
10817#endif
10818
10819#include <stdio.h>
10820
10821#ifdef RTLD_GLOBAL
10822#  define LT_DLGLOBAL		RTLD_GLOBAL
10823#else
10824#  ifdef DL_GLOBAL
10825#    define LT_DLGLOBAL		DL_GLOBAL
10826#  else
10827#    define LT_DLGLOBAL		0
10828#  endif
10829#endif
10830
10831/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10832   find out it does not work in some platform. */
10833#ifndef LT_DLLAZY_OR_NOW
10834#  ifdef RTLD_LAZY
10835#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10836#  else
10837#    ifdef DL_LAZY
10838#      define LT_DLLAZY_OR_NOW		DL_LAZY
10839#    else
10840#      ifdef RTLD_NOW
10841#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10842#      else
10843#        ifdef DL_NOW
10844#          define LT_DLLAZY_OR_NOW	DL_NOW
10845#        else
10846#          define LT_DLLAZY_OR_NOW	0
10847#        endif
10848#      endif
10849#    endif
10850#  endif
10851#endif
10852
10853/* When -fvisbility=hidden is used, assume the code has been annotated
10854   correspondingly for the symbols needed.  */
10855#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10856int fnord () __attribute__((visibility("default")));
10857#endif
10858
10859int fnord () { return 42; }
10860int main ()
10861{
10862  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10863  int status = $lt_dlunknown;
10864
10865  if (self)
10866    {
10867      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10868      else
10869        {
10870	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10871          else puts (dlerror ());
10872	}
10873      /* dlclose (self); */
10874    }
10875  else
10876    puts (dlerror ());
10877
10878  return status;
10879}
10880_LT_EOF
10881  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10882  (eval $ac_link) 2>&5
10883  ac_status=$?
10884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10885  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10886    (./conftest; exit; ) >&5 2>/dev/null
10887    lt_status=$?
10888    case x$lt_status in
10889      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10890      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10891      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10892    esac
10893  else :
10894    # compilation failed
10895    lt_cv_dlopen_self_static=no
10896  fi
10897fi
10898rm -fr conftest*
10899
10900
10901fi
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10903$as_echo "$lt_cv_dlopen_self_static" >&6; }
10904    fi
10905
10906    CPPFLAGS="$save_CPPFLAGS"
10907    LDFLAGS="$save_LDFLAGS"
10908    LIBS="$save_LIBS"
10909    ;;
10910  esac
10911
10912  case $lt_cv_dlopen_self in
10913  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10914  *) enable_dlopen_self=unknown ;;
10915  esac
10916
10917  case $lt_cv_dlopen_self_static in
10918  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10919  *) enable_dlopen_self_static=unknown ;;
10920  esac
10921fi
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939striplib=
10940old_striplib=
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10942$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10943if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10944  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10945  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10947$as_echo "yes" >&6; }
10948else
10949# FIXME - insert some real tests, host_os isn't really good enough
10950  case $host_os in
10951  darwin*)
10952    if test -n "$STRIP" ; then
10953      striplib="$STRIP -x"
10954      old_striplib="$STRIP -S"
10955      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10956$as_echo "yes" >&6; }
10957    else
10958      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959$as_echo "no" >&6; }
10960    fi
10961    ;;
10962  *)
10963    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964$as_echo "no" >&6; }
10965    ;;
10966  esac
10967fi
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980  # Report which library types will actually be built
10981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10982$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10984$as_echo "$can_build_shared" >&6; }
10985
10986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10987$as_echo_n "checking whether to build shared libraries... " >&6; }
10988  test "$can_build_shared" = "no" && enable_shared=no
10989
10990  # On AIX, shared libraries and static libraries use the same namespace, and
10991  # are all built from PIC.
10992  case $host_os in
10993  aix3*)
10994    test "$enable_shared" = yes && enable_static=no
10995    if test -n "$RANLIB"; then
10996      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10997      postinstall_cmds='$RANLIB $lib'
10998    fi
10999    ;;
11000
11001  aix[4-9]*)
11002    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11003      test "$enable_shared" = yes && enable_static=no
11004    fi
11005    ;;
11006  esac
11007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11008$as_echo "$enable_shared" >&6; }
11009
11010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11011$as_echo_n "checking whether to build static libraries... " >&6; }
11012  # Make sure either enable_shared or enable_static is yes.
11013  test "$enable_shared" = yes || enable_static=yes
11014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11015$as_echo "$enable_static" >&6; }
11016
11017
11018
11019
11020fi
11021ac_ext=c
11022ac_cpp='$CPP $CPPFLAGS'
11023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11025ac_compiler_gnu=$ac_cv_c_compiler_gnu
11026
11027CC="$lt_save_CC"
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041        ac_config_commands="$ac_config_commands libtool"
11042
11043
11044
11045
11046# Only expand once:
11047
11048
11049
11050
11051
11052
11053
11054ac_ext=c
11055ac_cpp='$CPP $CPPFLAGS'
11056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11058ac_compiler_gnu=$ac_cv_c_compiler_gnu
11059if test -n "$ac_tool_prefix"; then
11060  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11061set dummy ${ac_tool_prefix}gcc; ac_word=$2
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063$as_echo_n "checking for $ac_word... " >&6; }
11064if ${ac_cv_prog_CC+:} false; then :
11065  $as_echo_n "(cached) " >&6
11066else
11067  if test -n "$CC"; then
11068  ac_cv_prog_CC="$CC" # Let the user override the test.
11069else
11070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071for as_dir in $PATH
11072do
11073  IFS=$as_save_IFS
11074  test -z "$as_dir" && as_dir=.
11075    for ac_exec_ext in '' $ac_executable_extensions; do
11076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11077    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079    break 2
11080  fi
11081done
11082  done
11083IFS=$as_save_IFS
11084
11085fi
11086fi
11087CC=$ac_cv_prog_CC
11088if test -n "$CC"; then
11089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11090$as_echo "$CC" >&6; }
11091else
11092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093$as_echo "no" >&6; }
11094fi
11095
11096
11097fi
11098if test -z "$ac_cv_prog_CC"; then
11099  ac_ct_CC=$CC
11100  # Extract the first word of "gcc", so it can be a program name with args.
11101set dummy gcc; ac_word=$2
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103$as_echo_n "checking for $ac_word... " >&6; }
11104if ${ac_cv_prog_ac_ct_CC+:} false; then :
11105  $as_echo_n "(cached) " >&6
11106else
11107  if test -n "$ac_ct_CC"; then
11108  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11109else
11110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111for as_dir in $PATH
11112do
11113  IFS=$as_save_IFS
11114  test -z "$as_dir" && as_dir=.
11115    for ac_exec_ext in '' $ac_executable_extensions; do
11116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11117    ac_cv_prog_ac_ct_CC="gcc"
11118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119    break 2
11120  fi
11121done
11122  done
11123IFS=$as_save_IFS
11124
11125fi
11126fi
11127ac_ct_CC=$ac_cv_prog_ac_ct_CC
11128if test -n "$ac_ct_CC"; then
11129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11130$as_echo "$ac_ct_CC" >&6; }
11131else
11132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133$as_echo "no" >&6; }
11134fi
11135
11136  if test "x$ac_ct_CC" = x; then
11137    CC=""
11138  else
11139    case $cross_compiling:$ac_tool_warned in
11140yes:)
11141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11143ac_tool_warned=yes ;;
11144esac
11145    CC=$ac_ct_CC
11146  fi
11147else
11148  CC="$ac_cv_prog_CC"
11149fi
11150
11151if test -z "$CC"; then
11152          if test -n "$ac_tool_prefix"; then
11153    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11154set dummy ${ac_tool_prefix}cc; ac_word=$2
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156$as_echo_n "checking for $ac_word... " >&6; }
11157if ${ac_cv_prog_CC+:} false; then :
11158  $as_echo_n "(cached) " >&6
11159else
11160  if test -n "$CC"; then
11161  ac_cv_prog_CC="$CC" # Let the user override the test.
11162else
11163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $PATH
11165do
11166  IFS=$as_save_IFS
11167  test -z "$as_dir" && as_dir=.
11168    for ac_exec_ext in '' $ac_executable_extensions; do
11169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170    ac_cv_prog_CC="${ac_tool_prefix}cc"
11171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172    break 2
11173  fi
11174done
11175  done
11176IFS=$as_save_IFS
11177
11178fi
11179fi
11180CC=$ac_cv_prog_CC
11181if test -n "$CC"; then
11182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11183$as_echo "$CC" >&6; }
11184else
11185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186$as_echo "no" >&6; }
11187fi
11188
11189
11190  fi
11191fi
11192if test -z "$CC"; then
11193  # Extract the first word of "cc", so it can be a program name with args.
11194set dummy cc; ac_word=$2
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196$as_echo_n "checking for $ac_word... " >&6; }
11197if ${ac_cv_prog_CC+:} false; then :
11198  $as_echo_n "(cached) " >&6
11199else
11200  if test -n "$CC"; then
11201  ac_cv_prog_CC="$CC" # Let the user override the test.
11202else
11203  ac_prog_rejected=no
11204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205for as_dir in $PATH
11206do
11207  IFS=$as_save_IFS
11208  test -z "$as_dir" && as_dir=.
11209    for ac_exec_ext in '' $ac_executable_extensions; do
11210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11212       ac_prog_rejected=yes
11213       continue
11214     fi
11215    ac_cv_prog_CC="cc"
11216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217    break 2
11218  fi
11219done
11220  done
11221IFS=$as_save_IFS
11222
11223if test $ac_prog_rejected = yes; then
11224  # We found a bogon in the path, so make sure we never use it.
11225  set dummy $ac_cv_prog_CC
11226  shift
11227  if test $# != 0; then
11228    # We chose a different compiler from the bogus one.
11229    # However, it has the same basename, so the bogon will be chosen
11230    # first if we set CC to just the basename; use the full file name.
11231    shift
11232    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11233  fi
11234fi
11235fi
11236fi
11237CC=$ac_cv_prog_CC
11238if test -n "$CC"; then
11239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11240$as_echo "$CC" >&6; }
11241else
11242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
11244fi
11245
11246
11247fi
11248if test -z "$CC"; then
11249  if test -n "$ac_tool_prefix"; then
11250  for ac_prog in cl.exe
11251  do
11252    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11253set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255$as_echo_n "checking for $ac_word... " >&6; }
11256if ${ac_cv_prog_CC+:} false; then :
11257  $as_echo_n "(cached) " >&6
11258else
11259  if test -n "$CC"; then
11260  ac_cv_prog_CC="$CC" # Let the user override the test.
11261else
11262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263for as_dir in $PATH
11264do
11265  IFS=$as_save_IFS
11266  test -z "$as_dir" && as_dir=.
11267    for ac_exec_ext in '' $ac_executable_extensions; do
11268  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11269    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11271    break 2
11272  fi
11273done
11274  done
11275IFS=$as_save_IFS
11276
11277fi
11278fi
11279CC=$ac_cv_prog_CC
11280if test -n "$CC"; then
11281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11282$as_echo "$CC" >&6; }
11283else
11284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285$as_echo "no" >&6; }
11286fi
11287
11288
11289    test -n "$CC" && break
11290  done
11291fi
11292if test -z "$CC"; then
11293  ac_ct_CC=$CC
11294  for ac_prog in cl.exe
11295do
11296  # Extract the first word of "$ac_prog", so it can be a program name with args.
11297set dummy $ac_prog; ac_word=$2
11298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11299$as_echo_n "checking for $ac_word... " >&6; }
11300if ${ac_cv_prog_ac_ct_CC+:} false; then :
11301  $as_echo_n "(cached) " >&6
11302else
11303  if test -n "$ac_ct_CC"; then
11304  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11305else
11306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307for as_dir in $PATH
11308do
11309  IFS=$as_save_IFS
11310  test -z "$as_dir" && as_dir=.
11311    for ac_exec_ext in '' $ac_executable_extensions; do
11312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11313    ac_cv_prog_ac_ct_CC="$ac_prog"
11314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11315    break 2
11316  fi
11317done
11318  done
11319IFS=$as_save_IFS
11320
11321fi
11322fi
11323ac_ct_CC=$ac_cv_prog_ac_ct_CC
11324if test -n "$ac_ct_CC"; then
11325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11326$as_echo "$ac_ct_CC" >&6; }
11327else
11328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11329$as_echo "no" >&6; }
11330fi
11331
11332
11333  test -n "$ac_ct_CC" && break
11334done
11335
11336  if test "x$ac_ct_CC" = x; then
11337    CC=""
11338  else
11339    case $cross_compiling:$ac_tool_warned in
11340yes:)
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11343ac_tool_warned=yes ;;
11344esac
11345    CC=$ac_ct_CC
11346  fi
11347fi
11348
11349fi
11350
11351
11352test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11354as_fn_error $? "no acceptable C compiler found in \$PATH
11355See \`config.log' for more details" "$LINENO" 5; }
11356
11357# Provide some information about the compiler.
11358$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11359set X $ac_compile
11360ac_compiler=$2
11361for ac_option in --version -v -V -qversion; do
11362  { { ac_try="$ac_compiler $ac_option >&5"
11363case "(($ac_try" in
11364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365  *) ac_try_echo=$ac_try;;
11366esac
11367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11368$as_echo "$ac_try_echo"; } >&5
11369  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11370  ac_status=$?
11371  if test -s conftest.err; then
11372    sed '10a\
11373... rest of stderr output deleted ...
11374         10q' conftest.err >conftest.er1
11375    cat conftest.er1 >&5
11376  fi
11377  rm -f conftest.er1 conftest.err
11378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379  test $ac_status = 0; }
11380done
11381
11382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11383$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11384if ${ac_cv_c_compiler_gnu+:} false; then :
11385  $as_echo_n "(cached) " >&6
11386else
11387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388/* end confdefs.h.  */
11389
11390int
11391main ()
11392{
11393#ifndef __GNUC__
11394       choke me
11395#endif
11396
11397  ;
11398  return 0;
11399}
11400_ACEOF
11401if ac_fn_c_try_compile "$LINENO"; then :
11402  ac_compiler_gnu=yes
11403else
11404  ac_compiler_gnu=no
11405fi
11406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407ac_cv_c_compiler_gnu=$ac_compiler_gnu
11408
11409fi
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11411$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11412if test $ac_compiler_gnu = yes; then
11413  GCC=yes
11414else
11415  GCC=
11416fi
11417ac_test_CFLAGS=${CFLAGS+set}
11418ac_save_CFLAGS=$CFLAGS
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11420$as_echo_n "checking whether $CC accepts -g... " >&6; }
11421if ${ac_cv_prog_cc_g+:} false; then :
11422  $as_echo_n "(cached) " >&6
11423else
11424  ac_save_c_werror_flag=$ac_c_werror_flag
11425   ac_c_werror_flag=yes
11426   ac_cv_prog_cc_g=no
11427   CFLAGS="-g"
11428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429/* end confdefs.h.  */
11430
11431int
11432main ()
11433{
11434
11435  ;
11436  return 0;
11437}
11438_ACEOF
11439if ac_fn_c_try_compile "$LINENO"; then :
11440  ac_cv_prog_cc_g=yes
11441else
11442  CFLAGS=""
11443      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444/* end confdefs.h.  */
11445
11446int
11447main ()
11448{
11449
11450  ;
11451  return 0;
11452}
11453_ACEOF
11454if ac_fn_c_try_compile "$LINENO"; then :
11455
11456else
11457  ac_c_werror_flag=$ac_save_c_werror_flag
11458	 CFLAGS="-g"
11459	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460/* end confdefs.h.  */
11461
11462int
11463main ()
11464{
11465
11466  ;
11467  return 0;
11468}
11469_ACEOF
11470if ac_fn_c_try_compile "$LINENO"; then :
11471  ac_cv_prog_cc_g=yes
11472fi
11473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11474fi
11475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11476fi
11477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478   ac_c_werror_flag=$ac_save_c_werror_flag
11479fi
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11481$as_echo "$ac_cv_prog_cc_g" >&6; }
11482if test "$ac_test_CFLAGS" = set; then
11483  CFLAGS=$ac_save_CFLAGS
11484elif test $ac_cv_prog_cc_g = yes; then
11485  if test "$GCC" = yes; then
11486    CFLAGS="-g -O2"
11487  else
11488    CFLAGS="-g"
11489  fi
11490else
11491  if test "$GCC" = yes; then
11492    CFLAGS="-O2"
11493  else
11494    CFLAGS=
11495  fi
11496fi
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11498$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11499if ${ac_cv_prog_cc_c89+:} false; then :
11500  $as_echo_n "(cached) " >&6
11501else
11502  ac_cv_prog_cc_c89=no
11503ac_save_CC=$CC
11504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505/* end confdefs.h.  */
11506#include <stdarg.h>
11507#include <stdio.h>
11508#include <sys/types.h>
11509#include <sys/stat.h>
11510/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11511struct buf { int x; };
11512FILE * (*rcsopen) (struct buf *, struct stat *, int);
11513static char *e (p, i)
11514     char **p;
11515     int i;
11516{
11517  return p[i];
11518}
11519static char *f (char * (*g) (char **, int), char **p, ...)
11520{
11521  char *s;
11522  va_list v;
11523  va_start (v,p);
11524  s = g (p, va_arg (v,int));
11525  va_end (v);
11526  return s;
11527}
11528
11529/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11530   function prototypes and stuff, but not '\xHH' hex character constants.
11531   These don't provoke an error unfortunately, instead are silently treated
11532   as 'x'.  The following induces an error, until -std is added to get
11533   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11534   array size at least.  It's necessary to write '\x00'==0 to get something
11535   that's true only with -std.  */
11536int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11537
11538/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11539   inside strings and character constants.  */
11540#define FOO(x) 'x'
11541int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11542
11543int test (int i, double x);
11544struct s1 {int (*f) (int a);};
11545struct s2 {int (*f) (double a);};
11546int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11547int argc;
11548char **argv;
11549int
11550main ()
11551{
11552return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11553  ;
11554  return 0;
11555}
11556_ACEOF
11557for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11558	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11559do
11560  CC="$ac_save_CC $ac_arg"
11561  if ac_fn_c_try_compile "$LINENO"; then :
11562  ac_cv_prog_cc_c89=$ac_arg
11563fi
11564rm -f core conftest.err conftest.$ac_objext
11565  test "x$ac_cv_prog_cc_c89" != "xno" && break
11566done
11567rm -f conftest.$ac_ext
11568CC=$ac_save_CC
11569
11570fi
11571# AC_CACHE_VAL
11572case "x$ac_cv_prog_cc_c89" in
11573  x)
11574    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11575$as_echo "none needed" >&6; } ;;
11576  xno)
11577    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11578$as_echo "unsupported" >&6; } ;;
11579  *)
11580    CC="$CC $ac_cv_prog_cc_c89"
11581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11582$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11583esac
11584if test "x$ac_cv_prog_cc_c89" != xno; then :
11585
11586fi
11587
11588ac_ext=c
11589ac_cpp='$CPP $CPPFLAGS'
11590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11592ac_compiler_gnu=$ac_cv_c_compiler_gnu
11593
11594ac_ext=cpp
11595ac_cpp='$CXXCPP $CPPFLAGS'
11596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11599if test -z "$CXX"; then
11600  if test -n "$CCC"; then
11601    CXX=$CCC
11602  else
11603    if test -n "$ac_tool_prefix"; then
11604  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11605  do
11606    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609$as_echo_n "checking for $ac_word... " >&6; }
11610if ${ac_cv_prog_CXX+:} false; then :
11611  $as_echo_n "(cached) " >&6
11612else
11613  if test -n "$CXX"; then
11614  ac_cv_prog_CXX="$CXX" # Let the user override the test.
11615else
11616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617for as_dir in $PATH
11618do
11619  IFS=$as_save_IFS
11620  test -z "$as_dir" && as_dir=.
11621    for ac_exec_ext in '' $ac_executable_extensions; do
11622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11623    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11625    break 2
11626  fi
11627done
11628  done
11629IFS=$as_save_IFS
11630
11631fi
11632fi
11633CXX=$ac_cv_prog_CXX
11634if test -n "$CXX"; then
11635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11636$as_echo "$CXX" >&6; }
11637else
11638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639$as_echo "no" >&6; }
11640fi
11641
11642
11643    test -n "$CXX" && break
11644  done
11645fi
11646if test -z "$CXX"; then
11647  ac_ct_CXX=$CXX
11648  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11649do
11650  # Extract the first word of "$ac_prog", so it can be a program name with args.
11651set dummy $ac_prog; ac_word=$2
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11653$as_echo_n "checking for $ac_word... " >&6; }
11654if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11655  $as_echo_n "(cached) " >&6
11656else
11657  if test -n "$ac_ct_CXX"; then
11658  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11659else
11660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661for as_dir in $PATH
11662do
11663  IFS=$as_save_IFS
11664  test -z "$as_dir" && as_dir=.
11665    for ac_exec_ext in '' $ac_executable_extensions; do
11666  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11667    ac_cv_prog_ac_ct_CXX="$ac_prog"
11668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11669    break 2
11670  fi
11671done
11672  done
11673IFS=$as_save_IFS
11674
11675fi
11676fi
11677ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11678if test -n "$ac_ct_CXX"; then
11679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11680$as_echo "$ac_ct_CXX" >&6; }
11681else
11682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683$as_echo "no" >&6; }
11684fi
11685
11686
11687  test -n "$ac_ct_CXX" && break
11688done
11689
11690  if test "x$ac_ct_CXX" = x; then
11691    CXX="g++"
11692  else
11693    case $cross_compiling:$ac_tool_warned in
11694yes:)
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11697ac_tool_warned=yes ;;
11698esac
11699    CXX=$ac_ct_CXX
11700  fi
11701fi
11702
11703  fi
11704fi
11705# Provide some information about the compiler.
11706$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11707set X $ac_compile
11708ac_compiler=$2
11709for ac_option in --version -v -V -qversion; do
11710  { { ac_try="$ac_compiler $ac_option >&5"
11711case "(($ac_try" in
11712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713  *) ac_try_echo=$ac_try;;
11714esac
11715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11716$as_echo "$ac_try_echo"; } >&5
11717  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11718  ac_status=$?
11719  if test -s conftest.err; then
11720    sed '10a\
11721... rest of stderr output deleted ...
11722         10q' conftest.err >conftest.er1
11723    cat conftest.er1 >&5
11724  fi
11725  rm -f conftest.er1 conftest.err
11726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11727  test $ac_status = 0; }
11728done
11729
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11731$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11732if ${ac_cv_cxx_compiler_gnu+:} false; then :
11733  $as_echo_n "(cached) " >&6
11734else
11735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736/* end confdefs.h.  */
11737
11738int
11739main ()
11740{
11741#ifndef __GNUC__
11742       choke me
11743#endif
11744
11745  ;
11746  return 0;
11747}
11748_ACEOF
11749if ac_fn_cxx_try_compile "$LINENO"; then :
11750  ac_compiler_gnu=yes
11751else
11752  ac_compiler_gnu=no
11753fi
11754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11755ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11756
11757fi
11758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11759$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11760if test $ac_compiler_gnu = yes; then
11761  GXX=yes
11762else
11763  GXX=
11764fi
11765ac_test_CXXFLAGS=${CXXFLAGS+set}
11766ac_save_CXXFLAGS=$CXXFLAGS
11767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11768$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11769if ${ac_cv_prog_cxx_g+:} false; then :
11770  $as_echo_n "(cached) " >&6
11771else
11772  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11773   ac_cxx_werror_flag=yes
11774   ac_cv_prog_cxx_g=no
11775   CXXFLAGS="-g"
11776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777/* end confdefs.h.  */
11778
11779int
11780main ()
11781{
11782
11783  ;
11784  return 0;
11785}
11786_ACEOF
11787if ac_fn_cxx_try_compile "$LINENO"; then :
11788  ac_cv_prog_cxx_g=yes
11789else
11790  CXXFLAGS=""
11791      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792/* end confdefs.h.  */
11793
11794int
11795main ()
11796{
11797
11798  ;
11799  return 0;
11800}
11801_ACEOF
11802if ac_fn_cxx_try_compile "$LINENO"; then :
11803
11804else
11805  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11806	 CXXFLAGS="-g"
11807	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808/* end confdefs.h.  */
11809
11810int
11811main ()
11812{
11813
11814  ;
11815  return 0;
11816}
11817_ACEOF
11818if ac_fn_cxx_try_compile "$LINENO"; then :
11819  ac_cv_prog_cxx_g=yes
11820fi
11821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822fi
11823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11824fi
11825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11826   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11827fi
11828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11829$as_echo "$ac_cv_prog_cxx_g" >&6; }
11830if test "$ac_test_CXXFLAGS" = set; then
11831  CXXFLAGS=$ac_save_CXXFLAGS
11832elif test $ac_cv_prog_cxx_g = yes; then
11833  if test "$GXX" = yes; then
11834    CXXFLAGS="-g -O2"
11835  else
11836    CXXFLAGS="-g"
11837  fi
11838else
11839  if test "$GXX" = yes; then
11840    CXXFLAGS="-O2"
11841  else
11842    CXXFLAGS=
11843  fi
11844fi
11845ac_ext=c
11846ac_cpp='$CPP $CPPFLAGS'
11847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11849ac_compiler_gnu=$ac_cv_c_compiler_gnu
11850
11851
11852
11853func_stripname_cnf ()
11854{
11855  case ${2} in
11856  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11857  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11858  esac
11859} # func_stripname_cnf
11860
11861      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11862    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11863    (test "X$CXX" != "Xg++"))) ; then
11864  ac_ext=cpp
11865ac_cpp='$CXXCPP $CPPFLAGS'
11866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11870$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11871if test -z "$CXXCPP"; then
11872  if ${ac_cv_prog_CXXCPP+:} false; then :
11873  $as_echo_n "(cached) " >&6
11874else
11875      # Double quotes because CXXCPP needs to be expanded
11876    for CXXCPP in "$CXX -E" "/lib/cpp"
11877    do
11878      ac_preproc_ok=false
11879for ac_cxx_preproc_warn_flag in '' yes
11880do
11881  # Use a header file that comes with gcc, so configuring glibc
11882  # with a fresh cross-compiler works.
11883  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11884  # <limits.h> exists even on freestanding compilers.
11885  # On the NeXT, cc -E runs the code through the compiler's parser,
11886  # not just through cpp. "Syntax error" is here to catch this case.
11887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888/* end confdefs.h.  */
11889#ifdef __STDC__
11890# include <limits.h>
11891#else
11892# include <assert.h>
11893#endif
11894		     Syntax error
11895_ACEOF
11896if ac_fn_cxx_try_cpp "$LINENO"; then :
11897
11898else
11899  # Broken: fails on valid input.
11900continue
11901fi
11902rm -f conftest.err conftest.i conftest.$ac_ext
11903
11904  # OK, works on sane cases.  Now check whether nonexistent headers
11905  # can be detected and how.
11906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907/* end confdefs.h.  */
11908#include <ac_nonexistent.h>
11909_ACEOF
11910if ac_fn_cxx_try_cpp "$LINENO"; then :
11911  # Broken: success on invalid input.
11912continue
11913else
11914  # Passes both tests.
11915ac_preproc_ok=:
11916break
11917fi
11918rm -f conftest.err conftest.i conftest.$ac_ext
11919
11920done
11921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11922rm -f conftest.i conftest.err conftest.$ac_ext
11923if $ac_preproc_ok; then :
11924  break
11925fi
11926
11927    done
11928    ac_cv_prog_CXXCPP=$CXXCPP
11929
11930fi
11931  CXXCPP=$ac_cv_prog_CXXCPP
11932else
11933  ac_cv_prog_CXXCPP=$CXXCPP
11934fi
11935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11936$as_echo "$CXXCPP" >&6; }
11937ac_preproc_ok=false
11938for ac_cxx_preproc_warn_flag in '' yes
11939do
11940  # Use a header file that comes with gcc, so configuring glibc
11941  # with a fresh cross-compiler works.
11942  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11943  # <limits.h> exists even on freestanding compilers.
11944  # On the NeXT, cc -E runs the code through the compiler's parser,
11945  # not just through cpp. "Syntax error" is here to catch this case.
11946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947/* end confdefs.h.  */
11948#ifdef __STDC__
11949# include <limits.h>
11950#else
11951# include <assert.h>
11952#endif
11953		     Syntax error
11954_ACEOF
11955if ac_fn_cxx_try_cpp "$LINENO"; then :
11956
11957else
11958  # Broken: fails on valid input.
11959continue
11960fi
11961rm -f conftest.err conftest.i conftest.$ac_ext
11962
11963  # OK, works on sane cases.  Now check whether nonexistent headers
11964  # can be detected and how.
11965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966/* end confdefs.h.  */
11967#include <ac_nonexistent.h>
11968_ACEOF
11969if ac_fn_cxx_try_cpp "$LINENO"; then :
11970  # Broken: success on invalid input.
11971continue
11972else
11973  # Passes both tests.
11974ac_preproc_ok=:
11975break
11976fi
11977rm -f conftest.err conftest.i conftest.$ac_ext
11978
11979done
11980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11981rm -f conftest.i conftest.err conftest.$ac_ext
11982if $ac_preproc_ok; then :
11983
11984else
11985  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11987as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11988See \`config.log' for more details" "$LINENO" 5; }
11989fi
11990
11991ac_ext=c
11992ac_cpp='$CPP $CPPFLAGS'
11993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11995ac_compiler_gnu=$ac_cv_c_compiler_gnu
11996
11997else
11998  _lt_caught_CXX_error=yes
11999fi
12000
12001ac_ext=cpp
12002ac_cpp='$CXXCPP $CPPFLAGS'
12003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12006
12007archive_cmds_need_lc_CXX=no
12008allow_undefined_flag_CXX=
12009always_export_symbols_CXX=no
12010archive_expsym_cmds_CXX=
12011compiler_needs_object_CXX=no
12012export_dynamic_flag_spec_CXX=
12013hardcode_direct_CXX=no
12014hardcode_direct_absolute_CXX=no
12015hardcode_libdir_flag_spec_CXX=
12016hardcode_libdir_flag_spec_ld_CXX=
12017hardcode_libdir_separator_CXX=
12018hardcode_minus_L_CXX=no
12019hardcode_shlibpath_var_CXX=unsupported
12020hardcode_automatic_CXX=no
12021inherit_rpath_CXX=no
12022module_cmds_CXX=
12023module_expsym_cmds_CXX=
12024link_all_deplibs_CXX=unknown
12025old_archive_cmds_CXX=$old_archive_cmds
12026reload_flag_CXX=$reload_flag
12027reload_cmds_CXX=$reload_cmds
12028no_undefined_flag_CXX=
12029whole_archive_flag_spec_CXX=
12030enable_shared_with_static_runtimes_CXX=no
12031
12032# Source file extension for C++ test sources.
12033ac_ext=cpp
12034
12035# Object file extension for compiled C++ test sources.
12036objext=o
12037objext_CXX=$objext
12038
12039# No sense in running all these tests if we already determined that
12040# the CXX compiler isn't working.  Some variables (like enable_shared)
12041# are currently assumed to apply to all compilers on this platform,
12042# and will be corrupted by setting them based on a non-working compiler.
12043if test "$_lt_caught_CXX_error" != yes; then
12044  # Code to be used in simple compile tests
12045  lt_simple_compile_test_code="int some_variable = 0;"
12046
12047  # Code to be used in simple link tests
12048  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12049
12050  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12051
12052
12053
12054
12055
12056
12057# If no C compiler was specified, use CC.
12058LTCC=${LTCC-"$CC"}
12059
12060# If no C compiler flags were specified, use CFLAGS.
12061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12062
12063# Allow CC to be a program name with arguments.
12064compiler=$CC
12065
12066
12067  # save warnings/boilerplate of simple test code
12068  ac_outfile=conftest.$ac_objext
12069echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12070eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12071_lt_compiler_boilerplate=`cat conftest.err`
12072$RM conftest*
12073
12074  ac_outfile=conftest.$ac_objext
12075echo "$lt_simple_link_test_code" >conftest.$ac_ext
12076eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12077_lt_linker_boilerplate=`cat conftest.err`
12078$RM -r conftest*
12079
12080
12081  # Allow CC to be a program name with arguments.
12082  lt_save_CC=$CC
12083  lt_save_CFLAGS=$CFLAGS
12084  lt_save_LD=$LD
12085  lt_save_GCC=$GCC
12086  GCC=$GXX
12087  lt_save_with_gnu_ld=$with_gnu_ld
12088  lt_save_path_LD=$lt_cv_path_LD
12089  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12090    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12091  else
12092    $as_unset lt_cv_prog_gnu_ld
12093  fi
12094  if test -n "${lt_cv_path_LDCXX+set}"; then
12095    lt_cv_path_LD=$lt_cv_path_LDCXX
12096  else
12097    $as_unset lt_cv_path_LD
12098  fi
12099  test -z "${LDCXX+set}" || LD=$LDCXX
12100  CC=${CXX-"c++"}
12101  CFLAGS=$CXXFLAGS
12102  compiler=$CC
12103  compiler_CXX=$CC
12104  for cc_temp in $compiler""; do
12105  case $cc_temp in
12106    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12107    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12108    \-*) ;;
12109    *) break;;
12110  esac
12111done
12112cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12113
12114
12115  if test -n "$compiler"; then
12116    # We don't want -fno-exception when compiling C++ code, so set the
12117    # no_builtin_flag separately
12118    if test "$GXX" = yes; then
12119      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12120    else
12121      lt_prog_compiler_no_builtin_flag_CXX=
12122    fi
12123
12124    if test "$GXX" = yes; then
12125      # Set up default GNU C++ configuration
12126
12127
12128
12129# Check whether --with-gnu-ld was given.
12130if test "${with_gnu_ld+set}" = set; then :
12131  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12132else
12133  with_gnu_ld=no
12134fi
12135
12136ac_prog=ld
12137if test "$GCC" = yes; then
12138  # Check if gcc -print-prog-name=ld gives a path.
12139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12140$as_echo_n "checking for ld used by $CC... " >&6; }
12141  case $host in
12142  *-*-mingw*)
12143    # gcc leaves a trailing carriage return which upsets mingw
12144    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12145  *)
12146    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12147  esac
12148  case $ac_prog in
12149    # Accept absolute paths.
12150    [\\/]* | ?:[\\/]*)
12151      re_direlt='/[^/][^/]*/\.\./'
12152      # Canonicalize the pathname of ld
12153      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12154      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12155	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12156      done
12157      test -z "$LD" && LD="$ac_prog"
12158      ;;
12159  "")
12160    # If it fails, then pretend we aren't using GCC.
12161    ac_prog=ld
12162    ;;
12163  *)
12164    # If it is relative, then search for the first ld in PATH.
12165    with_gnu_ld=unknown
12166    ;;
12167  esac
12168elif test "$with_gnu_ld" = yes; then
12169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12170$as_echo_n "checking for GNU ld... " >&6; }
12171else
12172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12173$as_echo_n "checking for non-GNU ld... " >&6; }
12174fi
12175if ${lt_cv_path_LD+:} false; then :
12176  $as_echo_n "(cached) " >&6
12177else
12178  if test -z "$LD"; then
12179  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12180  for ac_dir in $PATH; do
12181    IFS="$lt_save_ifs"
12182    test -z "$ac_dir" && ac_dir=.
12183    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12184      lt_cv_path_LD="$ac_dir/$ac_prog"
12185      # Check to see if the program is GNU ld.  I'd rather use --version,
12186      # but apparently some variants of GNU ld only accept -v.
12187      # Break only if it was the GNU/non-GNU ld that we prefer.
12188      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12189      *GNU* | *'with BFD'*)
12190	test "$with_gnu_ld" != no && break
12191	;;
12192      *)
12193	test "$with_gnu_ld" != yes && break
12194	;;
12195      esac
12196    fi
12197  done
12198  IFS="$lt_save_ifs"
12199else
12200  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12201fi
12202fi
12203
12204LD="$lt_cv_path_LD"
12205if test -n "$LD"; then
12206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12207$as_echo "$LD" >&6; }
12208else
12209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210$as_echo "no" >&6; }
12211fi
12212test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12214$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12215if ${lt_cv_prog_gnu_ld+:} false; then :
12216  $as_echo_n "(cached) " >&6
12217else
12218  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12219case `$LD -v 2>&1 </dev/null` in
12220*GNU* | *'with BFD'*)
12221  lt_cv_prog_gnu_ld=yes
12222  ;;
12223*)
12224  lt_cv_prog_gnu_ld=no
12225  ;;
12226esac
12227fi
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12229$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12230with_gnu_ld=$lt_cv_prog_gnu_ld
12231
12232
12233
12234
12235
12236
12237
12238      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12239      # archiving commands below assume that GNU ld is being used.
12240      if test "$with_gnu_ld" = yes; then
12241        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12242        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12243
12244        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12245        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12246
12247        # If archive_cmds runs LD, not CC, wlarc should be empty
12248        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12249        #     investigate it a little bit more. (MM)
12250        wlarc='${wl}'
12251
12252        # ancient GNU ld didn't support --whole-archive et. al.
12253        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12254	  $GREP 'no-whole-archive' > /dev/null; then
12255          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12256        else
12257          whole_archive_flag_spec_CXX=
12258        fi
12259      else
12260        with_gnu_ld=no
12261        wlarc=
12262
12263        # A generic and very simple default shared library creation
12264        # command for GNU C++ for the case where it uses the native
12265        # linker, instead of GNU ld.  If possible, this setting should
12266        # overridden to take advantage of the native linker features on
12267        # the platform it is being used on.
12268        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12269      fi
12270
12271      # Commands to make compiler produce verbose output that lists
12272      # what "hidden" libraries, object files and flags are used when
12273      # linking a shared library.
12274      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12275
12276    else
12277      GXX=no
12278      with_gnu_ld=no
12279      wlarc=
12280    fi
12281
12282    # PORTME: fill in a description of your system's C++ link characteristics
12283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12284$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12285    ld_shlibs_CXX=yes
12286    case $host_os in
12287      aix3*)
12288        # FIXME: insert proper C++ library support
12289        ld_shlibs_CXX=no
12290        ;;
12291      aix[4-9]*)
12292        if test "$host_cpu" = ia64; then
12293          # On IA64, the linker does run time linking by default, so we don't
12294          # have to do anything special.
12295          aix_use_runtimelinking=no
12296          exp_sym_flag='-Bexport'
12297          no_entry_flag=""
12298        else
12299          aix_use_runtimelinking=no
12300
12301          # Test if we are trying to use run time linking or normal
12302          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12303          # need to do runtime linking.
12304          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12305	    for ld_flag in $LDFLAGS; do
12306	      case $ld_flag in
12307	      *-brtl*)
12308	        aix_use_runtimelinking=yes
12309	        break
12310	        ;;
12311	      esac
12312	    done
12313	    ;;
12314          esac
12315
12316          exp_sym_flag='-bexport'
12317          no_entry_flag='-bnoentry'
12318        fi
12319
12320        # When large executables or shared objects are built, AIX ld can
12321        # have problems creating the table of contents.  If linking a library
12322        # or program results in "error TOC overflow" add -mminimal-toc to
12323        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12324        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12325
12326        archive_cmds_CXX=''
12327        hardcode_direct_CXX=yes
12328        hardcode_direct_absolute_CXX=yes
12329        hardcode_libdir_separator_CXX=':'
12330        link_all_deplibs_CXX=yes
12331        file_list_spec_CXX='${wl}-f,'
12332
12333        if test "$GXX" = yes; then
12334          case $host_os in aix4.[012]|aix4.[012].*)
12335          # We only want to do this on AIX 4.2 and lower, the check
12336          # below for broken collect2 doesn't work under 4.3+
12337	  collect2name=`${CC} -print-prog-name=collect2`
12338	  if test -f "$collect2name" &&
12339	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12340	  then
12341	    # We have reworked collect2
12342	    :
12343	  else
12344	    # We have old collect2
12345	    hardcode_direct_CXX=unsupported
12346	    # It fails to find uninstalled libraries when the uninstalled
12347	    # path is not listed in the libpath.  Setting hardcode_minus_L
12348	    # to unsupported forces relinking
12349	    hardcode_minus_L_CXX=yes
12350	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12351	    hardcode_libdir_separator_CXX=
12352	  fi
12353          esac
12354          shared_flag='-shared'
12355	  if test "$aix_use_runtimelinking" = yes; then
12356	    shared_flag="$shared_flag "'${wl}-G'
12357	  fi
12358        else
12359          # not using gcc
12360          if test "$host_cpu" = ia64; then
12361	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12362	  # chokes on -Wl,-G. The following line is correct:
12363	  shared_flag='-G'
12364          else
12365	    if test "$aix_use_runtimelinking" = yes; then
12366	      shared_flag='${wl}-G'
12367	    else
12368	      shared_flag='${wl}-bM:SRE'
12369	    fi
12370          fi
12371        fi
12372
12373        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12374        # It seems that -bexpall does not export symbols beginning with
12375        # underscore (_), so it is better to generate a list of symbols to
12376	# export.
12377        always_export_symbols_CXX=yes
12378        if test "$aix_use_runtimelinking" = yes; then
12379          # Warning - without using the other runtime loading flags (-brtl),
12380          # -berok will link without error, but may produce a broken library.
12381          allow_undefined_flag_CXX='-berok'
12382          # Determine the default libpath from the value encoded in an empty
12383          # executable.
12384          if test "${lt_cv_aix_libpath+set}" = set; then
12385  aix_libpath=$lt_cv_aix_libpath
12386else
12387  if ${lt_cv_aix_libpath__CXX+:} false; then :
12388  $as_echo_n "(cached) " >&6
12389else
12390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391/* end confdefs.h.  */
12392
12393int
12394main ()
12395{
12396
12397  ;
12398  return 0;
12399}
12400_ACEOF
12401if ac_fn_cxx_try_link "$LINENO"; then :
12402
12403  lt_aix_libpath_sed='
12404      /Import File Strings/,/^$/ {
12405	  /^0/ {
12406	      s/^0  *\([^ ]*\) *$/\1/
12407	      p
12408	  }
12409      }'
12410  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12411  # Check for a 64-bit object if we didn't find anything.
12412  if test -z "$lt_cv_aix_libpath__CXX"; then
12413    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12414  fi
12415fi
12416rm -f core conftest.err conftest.$ac_objext \
12417    conftest$ac_exeext conftest.$ac_ext
12418  if test -z "$lt_cv_aix_libpath__CXX"; then
12419    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12420  fi
12421
12422fi
12423
12424  aix_libpath=$lt_cv_aix_libpath__CXX
12425fi
12426
12427          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12428
12429          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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12430        else
12431          if test "$host_cpu" = ia64; then
12432	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12433	    allow_undefined_flag_CXX="-z nodefs"
12434	    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"
12435          else
12436	    # Determine the default libpath from the value encoded in an
12437	    # empty executable.
12438	    if test "${lt_cv_aix_libpath+set}" = set; then
12439  aix_libpath=$lt_cv_aix_libpath
12440else
12441  if ${lt_cv_aix_libpath__CXX+:} false; then :
12442  $as_echo_n "(cached) " >&6
12443else
12444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445/* end confdefs.h.  */
12446
12447int
12448main ()
12449{
12450
12451  ;
12452  return 0;
12453}
12454_ACEOF
12455if ac_fn_cxx_try_link "$LINENO"; then :
12456
12457  lt_aix_libpath_sed='
12458      /Import File Strings/,/^$/ {
12459	  /^0/ {
12460	      s/^0  *\([^ ]*\) *$/\1/
12461	      p
12462	  }
12463      }'
12464  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12465  # Check for a 64-bit object if we didn't find anything.
12466  if test -z "$lt_cv_aix_libpath__CXX"; then
12467    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12468  fi
12469fi
12470rm -f core conftest.err conftest.$ac_objext \
12471    conftest$ac_exeext conftest.$ac_ext
12472  if test -z "$lt_cv_aix_libpath__CXX"; then
12473    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12474  fi
12475
12476fi
12477
12478  aix_libpath=$lt_cv_aix_libpath__CXX
12479fi
12480
12481	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12482	    # Warning - without using the other run time loading flags,
12483	    # -berok will link without error, but may produce a broken library.
12484	    no_undefined_flag_CXX=' ${wl}-bernotok'
12485	    allow_undefined_flag_CXX=' ${wl}-berok'
12486	    if test "$with_gnu_ld" = yes; then
12487	      # We only use this code for GNU lds that support --whole-archive.
12488	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12489	    else
12490	      # Exported symbols can be pulled into shared objects from archives
12491	      whole_archive_flag_spec_CXX='$convenience'
12492	    fi
12493	    archive_cmds_need_lc_CXX=yes
12494	    # This is similar to how AIX traditionally builds its shared
12495	    # libraries.
12496	    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'
12497          fi
12498        fi
12499        ;;
12500
12501      beos*)
12502	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12503	  allow_undefined_flag_CXX=unsupported
12504	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12505	  # support --undefined.  This deserves some investigation.  FIXME
12506	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12507	else
12508	  ld_shlibs_CXX=no
12509	fi
12510	;;
12511
12512      chorus*)
12513        case $cc_basename in
12514          *)
12515	  # FIXME: insert proper C++ library support
12516	  ld_shlibs_CXX=no
12517	  ;;
12518        esac
12519        ;;
12520
12521      cygwin* | mingw* | pw32* | cegcc*)
12522	case $GXX,$cc_basename in
12523	,cl* | no,cl*)
12524	  # Native MSVC
12525	  # hardcode_libdir_flag_spec is actually meaningless, as there is
12526	  # no search path for DLLs.
12527	  hardcode_libdir_flag_spec_CXX=' '
12528	  allow_undefined_flag_CXX=unsupported
12529	  always_export_symbols_CXX=yes
12530	  file_list_spec_CXX='@'
12531	  # Tell ltmain to make .lib files, not .a files.
12532	  libext=lib
12533	  # Tell ltmain to make .dll files, not .so files.
12534	  shrext_cmds=".dll"
12535	  # FIXME: Setting linknames here is a bad hack.
12536	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12537	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12538	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12539	    else
12540	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12541	    fi~
12542	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12543	    linknames='
12544	  # The linker will not automatically build a static lib if we build a DLL.
12545	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12546	  enable_shared_with_static_runtimes_CXX=yes
12547	  # Don't use ranlib
12548	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
12549	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12550	    lt_tool_outputfile="@TOOL_OUTPUT@"~
12551	    case $lt_outputfile in
12552	      *.exe|*.EXE) ;;
12553	      *)
12554		lt_outputfile="$lt_outputfile.exe"
12555		lt_tool_outputfile="$lt_tool_outputfile.exe"
12556		;;
12557	    esac~
12558	    func_to_tool_file "$lt_outputfile"~
12559	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12560	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12561	      $RM "$lt_outputfile.manifest";
12562	    fi'
12563	  ;;
12564	*)
12565	  # g++
12566	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12567	  # as there is no search path for DLLs.
12568	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12569	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12570	  allow_undefined_flag_CXX=unsupported
12571	  always_export_symbols_CXX=no
12572	  enable_shared_with_static_runtimes_CXX=yes
12573
12574	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12575	    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'
12576	    # If the export-symbols file already is a .def file (1st line
12577	    # is EXPORTS), use it as is; otherwise, prepend...
12578	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12579	      cp $export_symbols $output_objdir/$soname.def;
12580	    else
12581	      echo EXPORTS > $output_objdir/$soname.def;
12582	      cat $export_symbols >> $output_objdir/$soname.def;
12583	    fi~
12584	    $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'
12585	  else
12586	    ld_shlibs_CXX=no
12587	  fi
12588	  ;;
12589	esac
12590	;;
12591      darwin* | rhapsody*)
12592
12593
12594  archive_cmds_need_lc_CXX=no
12595  hardcode_direct_CXX=no
12596  hardcode_automatic_CXX=yes
12597  hardcode_shlibpath_var_CXX=unsupported
12598  if test "$lt_cv_ld_force_load" = "yes"; then
12599    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12600  else
12601    whole_archive_flag_spec_CXX=''
12602  fi
12603  link_all_deplibs_CXX=yes
12604  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12605  case $cc_basename in
12606     ifort*) _lt_dar_can_shared=yes ;;
12607     *) _lt_dar_can_shared=$GCC ;;
12608  esac
12609  if test "$_lt_dar_can_shared" = "yes"; then
12610    output_verbose_link_cmd=func_echo_all
12611    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12612    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12613    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12614    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12615       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12616      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${_lt_dsymutil}"
12617      archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
12618    fi
12619
12620  else
12621  ld_shlibs_CXX=no
12622  fi
12623
12624	;;
12625
12626      dgux*)
12627        case $cc_basename in
12628          ec++*)
12629	    # FIXME: insert proper C++ library support
12630	    ld_shlibs_CXX=no
12631	    ;;
12632          ghcx*)
12633	    # Green Hills C++ Compiler
12634	    # FIXME: insert proper C++ library support
12635	    ld_shlibs_CXX=no
12636	    ;;
12637          *)
12638	    # FIXME: insert proper C++ library support
12639	    ld_shlibs_CXX=no
12640	    ;;
12641        esac
12642        ;;
12643
12644      freebsd[12]*)
12645        # C++ shared libraries reported to be fairly broken before
12646	# switch to ELF
12647        ld_shlibs_CXX=no
12648        ;;
12649
12650      freebsd-elf*)
12651        archive_cmds_need_lc_CXX=no
12652        ;;
12653
12654      freebsd* | dragonfly*)
12655        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12656        # conventions
12657        ld_shlibs_CXX=yes
12658        ;;
12659
12660      gnu*)
12661        ;;
12662
12663      haiku*)
12664        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12665        link_all_deplibs_CXX=yes
12666        ;;
12667
12668      hpux9*)
12669        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12670        hardcode_libdir_separator_CXX=:
12671        export_dynamic_flag_spec_CXX='${wl}-E'
12672        hardcode_direct_CXX=yes
12673        hardcode_minus_L_CXX=yes # Not in the search PATH,
12674				             # but as the default
12675				             # location of the library.
12676
12677        case $cc_basename in
12678          CC*)
12679            # FIXME: insert proper C++ library support
12680            ld_shlibs_CXX=no
12681            ;;
12682          aCC*)
12683            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'
12684            # Commands to make compiler produce verbose output that lists
12685            # what "hidden" libraries, object files and flags are used when
12686            # linking a shared library.
12687            #
12688            # There doesn't appear to be a way to prevent this compiler from
12689            # explicitly linking system object files so we need to strip them
12690            # from the output so that they don't get included in the library
12691            # dependencies.
12692            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12693            ;;
12694          *)
12695            if test "$GXX" = yes; then
12696              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
12697            else
12698              # FIXME: insert proper C++ library support
12699              ld_shlibs_CXX=no
12700            fi
12701            ;;
12702        esac
12703        ;;
12704
12705      hpux10*|hpux11*)
12706        if test $with_gnu_ld = no; then
12707	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12708	  hardcode_libdir_separator_CXX=:
12709
12710          case $host_cpu in
12711            hppa*64*|ia64*)
12712              ;;
12713            *)
12714	      export_dynamic_flag_spec_CXX='${wl}-E'
12715              ;;
12716          esac
12717        fi
12718        case $host_cpu in
12719          hppa*64*|ia64*)
12720            hardcode_direct_CXX=no
12721            hardcode_shlibpath_var_CXX=no
12722            ;;
12723          *)
12724            hardcode_direct_CXX=yes
12725            hardcode_direct_absolute_CXX=yes
12726            hardcode_minus_L_CXX=yes # Not in the search PATH,
12727					         # but as the default
12728					         # location of the library.
12729            ;;
12730        esac
12731
12732        case $cc_basename in
12733          CC*)
12734	    # FIXME: insert proper C++ library support
12735	    ld_shlibs_CXX=no
12736	    ;;
12737          aCC*)
12738	    case $host_cpu in
12739	      hppa*64*)
12740	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12741	        ;;
12742	      ia64*)
12743	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12744	        ;;
12745	      *)
12746	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12747	        ;;
12748	    esac
12749	    # Commands to make compiler produce verbose output that lists
12750	    # what "hidden" libraries, object files and flags are used when
12751	    # linking a shared library.
12752	    #
12753	    # There doesn't appear to be a way to prevent this compiler from
12754	    # explicitly linking system object files so we need to strip them
12755	    # from the output so that they don't get included in the library
12756	    # dependencies.
12757	    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; func_echo_all "$list"'
12758	    ;;
12759          *)
12760	    if test "$GXX" = yes; then
12761	      if test $with_gnu_ld = no; then
12762	        case $host_cpu in
12763	          hppa*64*)
12764	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12765	            ;;
12766	          ia64*)
12767	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12768	            ;;
12769	          *)
12770	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12771	            ;;
12772	        esac
12773	      fi
12774	    else
12775	      # FIXME: insert proper C++ library support
12776	      ld_shlibs_CXX=no
12777	    fi
12778	    ;;
12779        esac
12780        ;;
12781
12782      interix[3-9]*)
12783	hardcode_direct_CXX=no
12784	hardcode_shlibpath_var_CXX=no
12785	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12786	export_dynamic_flag_spec_CXX='${wl}-E'
12787	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12788	# Instead, shared libraries are loaded at an image base (0x10000000 by
12789	# default) and relocated if they conflict, which is a slow very memory
12790	# consuming and fragmenting process.  To avoid this, we pick a random,
12791	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12792	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12793	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'
12794	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'
12795	;;
12796      irix5* | irix6*)
12797        case $cc_basename in
12798          CC*)
12799	    # SGI C++
12800	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12801
12802	    # Archives containing C++ object files must be created using
12803	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12804	    # necessary to make sure instantiated templates are included
12805	    # in the archive.
12806	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12807	    ;;
12808          *)
12809	    if test "$GXX" = yes; then
12810	      if test "$with_gnu_ld" = no; then
12811	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12812	      else
12813	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12814	      fi
12815	    fi
12816	    link_all_deplibs_CXX=yes
12817	    ;;
12818        esac
12819        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12820        hardcode_libdir_separator_CXX=:
12821        inherit_rpath_CXX=yes
12822        ;;
12823
12824      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12825        case $cc_basename in
12826          KCC*)
12827	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12828
12829	    # KCC will only create a shared library if the output file
12830	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12831	    # to its proper name (with version) after linking.
12832	    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'
12833	    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'
12834	    # Commands to make compiler produce verbose output that lists
12835	    # what "hidden" libraries, object files and flags are used when
12836	    # linking a shared library.
12837	    #
12838	    # There doesn't appear to be a way to prevent this compiler from
12839	    # explicitly linking system object files so we need to strip them
12840	    # from the output so that they don't get included in the library
12841	    # dependencies.
12842	    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; func_echo_all "$list"'
12843
12844	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12845	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12846
12847	    # Archives containing C++ object files must be created using
12848	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12849	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12850	    ;;
12851	  icpc* | ecpc* )
12852	    # Intel C++
12853	    with_gnu_ld=yes
12854	    # version 8.0 and above of icpc choke on multiply defined symbols
12855	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12856	    # earlier do not add the objects themselves.
12857	    case `$CC -V 2>&1` in
12858	      *"Version 7."*)
12859	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12860		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'
12861		;;
12862	      *)  # Version 8.0 or newer
12863	        tmp_idyn=
12864	        case $host_cpu in
12865		  ia64*) tmp_idyn=' -i_dynamic';;
12866		esac
12867	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12868		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'
12869		;;
12870	    esac
12871	    archive_cmds_need_lc_CXX=no
12872	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12873	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12874	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12875	    ;;
12876          pgCC* | pgcpp*)
12877            # Portland Group C++ compiler
12878	    case `$CC -V` in
12879	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12880	      prelink_cmds_CXX='tpldir=Template.dir~
12881		rm -rf $tpldir~
12882		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12883		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12884	      old_archive_cmds_CXX='tpldir=Template.dir~
12885		rm -rf $tpldir~
12886		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12887		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12888		$RANLIB $oldlib'
12889	      archive_cmds_CXX='tpldir=Template.dir~
12890		rm -rf $tpldir~
12891		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12892		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12893	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12894		rm -rf $tpldir~
12895		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12896		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12897	      ;;
12898	    *) # Version 6 and above use weak symbols
12899	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12900	      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'
12901	      ;;
12902	    esac
12903
12904	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12905	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12906	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12907            ;;
12908	  cxx*)
12909	    # Compaq C++
12910	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12911	    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'
12912
12913	    runpath_var=LD_RUN_PATH
12914	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12915	    hardcode_libdir_separator_CXX=:
12916
12917	    # Commands to make compiler produce verbose output that lists
12918	    # what "hidden" libraries, object files and flags are used when
12919	    # linking a shared library.
12920	    #
12921	    # There doesn't appear to be a way to prevent this compiler from
12922	    # explicitly linking system object files so we need to strip them
12923	    # from the output so that they don't get included in the library
12924	    # dependencies.
12925	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
12926	    ;;
12927	  xl* | mpixl* | bgxl*)
12928	    # IBM XL 8.0 on PPC, with GNU ld
12929	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12930	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12931	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12932	    if test "x$supports_anon_versioning" = xyes; then
12933	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12934		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12935		echo "local: *; };" >> $output_objdir/$libname.ver~
12936		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12937	    fi
12938	    ;;
12939	  *)
12940	    case `$CC -V 2>&1 | sed 5q` in
12941	    *Sun\ C*)
12942	      # Sun C++ 5.9
12943	      no_undefined_flag_CXX=' -zdefs'
12944	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12945	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12946	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12947	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12948	      compiler_needs_object_CXX=yes
12949
12950	      # Not sure whether something based on
12951	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12952	      # would be better.
12953	      output_verbose_link_cmd='func_echo_all'
12954
12955	      # Archives containing C++ object files must be created using
12956	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12957	      # necessary to make sure instantiated templates are included
12958	      # in the archive.
12959	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12960	      ;;
12961	    esac
12962	    ;;
12963	esac
12964	;;
12965
12966      lynxos*)
12967        # FIXME: insert proper C++ library support
12968	ld_shlibs_CXX=no
12969	;;
12970
12971      m88k*)
12972        # FIXME: insert proper C++ library support
12973        ld_shlibs_CXX=no
12974	;;
12975
12976      mvs*)
12977        case $cc_basename in
12978          cxx*)
12979	    # FIXME: insert proper C++ library support
12980	    ld_shlibs_CXX=no
12981	    ;;
12982	  *)
12983	    # FIXME: insert proper C++ library support
12984	    ld_shlibs_CXX=no
12985	    ;;
12986	esac
12987	;;
12988
12989      netbsd*)
12990        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12991	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12992	  wlarc=
12993	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12994	  hardcode_direct_CXX=yes
12995	  hardcode_shlibpath_var_CXX=no
12996	fi
12997	# Workaround some broken pre-1.5 toolchains
12998	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12999	;;
13000
13001      *nto* | *qnx*)
13002        ld_shlibs_CXX=yes
13003	;;
13004
13005      openbsd2*)
13006        # C++ shared libraries are fairly broken
13007	ld_shlibs_CXX=no
13008	;;
13009
13010      openbsd*)
13011	if test -f /usr/libexec/ld.so; then
13012	  hardcode_direct_CXX=yes
13013	  hardcode_shlibpath_var_CXX=no
13014	  hardcode_direct_absolute_CXX=yes
13015	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13016	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13017	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13018	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13019	    export_dynamic_flag_spec_CXX='${wl}-E'
13020	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13021	  fi
13022	  output_verbose_link_cmd=func_echo_all
13023	else
13024	  ld_shlibs_CXX=no
13025	fi
13026	;;
13027
13028      osf3* | osf4* | osf5*)
13029        case $cc_basename in
13030          KCC*)
13031	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13032
13033	    # KCC will only create a shared library if the output file
13034	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13035	    # to its proper name (with version) after linking.
13036	    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'
13037
13038	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13039	    hardcode_libdir_separator_CXX=:
13040
13041	    # Archives containing C++ object files must be created using
13042	    # the KAI C++ compiler.
13043	    case $host in
13044	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13045	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13046	    esac
13047	    ;;
13048          RCC*)
13049	    # Rational C++ 2.4.1
13050	    # FIXME: insert proper C++ library support
13051	    ld_shlibs_CXX=no
13052	    ;;
13053          cxx*)
13054	    case $host in
13055	      osf3*)
13056	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13057	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13058	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13059		;;
13060	      *)
13061	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13062	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13063	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13064	          echo "-hidden">> $lib.exp~
13065	          $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~
13066	          $RM $lib.exp'
13067	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13068		;;
13069	    esac
13070
13071	    hardcode_libdir_separator_CXX=:
13072
13073	    # Commands to make compiler produce verbose output that lists
13074	    # what "hidden" libraries, object files and flags are used when
13075	    # linking a shared library.
13076	    #
13077	    # There doesn't appear to be a way to prevent this compiler from
13078	    # explicitly linking system object files so we need to strip them
13079	    # from the output so that they don't get included in the library
13080	    # dependencies.
13081	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
13082	    ;;
13083	  *)
13084	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13085	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13086	      case $host in
13087	        osf3*)
13088	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13089		  ;;
13090	        *)
13091	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13092		  ;;
13093	      esac
13094
13095	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13096	      hardcode_libdir_separator_CXX=:
13097
13098	      # Commands to make compiler produce verbose output that lists
13099	      # what "hidden" libraries, object files and flags are used when
13100	      # linking a shared library.
13101	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13102
13103	    else
13104	      # FIXME: insert proper C++ library support
13105	      ld_shlibs_CXX=no
13106	    fi
13107	    ;;
13108        esac
13109        ;;
13110
13111      psos*)
13112        # FIXME: insert proper C++ library support
13113        ld_shlibs_CXX=no
13114        ;;
13115
13116      sunos4*)
13117        case $cc_basename in
13118          CC*)
13119	    # Sun C++ 4.x
13120	    # FIXME: insert proper C++ library support
13121	    ld_shlibs_CXX=no
13122	    ;;
13123          lcc*)
13124	    # Lucid
13125	    # FIXME: insert proper C++ library support
13126	    ld_shlibs_CXX=no
13127	    ;;
13128          *)
13129	    # FIXME: insert proper C++ library support
13130	    ld_shlibs_CXX=no
13131	    ;;
13132        esac
13133        ;;
13134
13135      solaris*)
13136        case $cc_basename in
13137          CC* | sunCC*)
13138	    # Sun C++ 4.2, 5.x and Centerline C++
13139            archive_cmds_need_lc_CXX=yes
13140	    no_undefined_flag_CXX=' -zdefs'
13141	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13142	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13143	      $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'
13144
13145	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13146	    hardcode_shlibpath_var_CXX=no
13147	    case $host_os in
13148	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13149	      *)
13150		# The compiler driver will combine and reorder linker options,
13151		# but understands `-z linker_flag'.
13152	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13153		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13154	        ;;
13155	    esac
13156	    link_all_deplibs_CXX=yes
13157
13158	    output_verbose_link_cmd='func_echo_all'
13159
13160	    # Archives containing C++ object files must be created using
13161	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13162	    # necessary to make sure instantiated templates are included
13163	    # in the archive.
13164	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13165	    ;;
13166          gcx*)
13167	    # Green Hills C++ Compiler
13168	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13169
13170	    # The C++ compiler must be used to create the archive.
13171	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13172	    ;;
13173          *)
13174	    # GNU C++ compiler with Solaris linker
13175	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13176	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13177	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13178	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13179	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13180		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13181
13182	        # Commands to make compiler produce verbose output that lists
13183	        # what "hidden" libraries, object files and flags are used when
13184	        # linking a shared library.
13185	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13186	      else
13187	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13188	        # platform.
13189	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13190	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13191		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13192
13193	        # Commands to make compiler produce verbose output that lists
13194	        # what "hidden" libraries, object files and flags are used when
13195	        # linking a shared library.
13196	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13197	      fi
13198
13199	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13200	      case $host_os in
13201		solaris2.[0-5] | solaris2.[0-5].*) ;;
13202		*)
13203		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13204		  ;;
13205	      esac
13206	    fi
13207	    ;;
13208        esac
13209        ;;
13210
13211    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13212      no_undefined_flag_CXX='${wl}-z,text'
13213      archive_cmds_need_lc_CXX=no
13214      hardcode_shlibpath_var_CXX=no
13215      runpath_var='LD_RUN_PATH'
13216
13217      case $cc_basename in
13218        CC*)
13219	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13220	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13221	  ;;
13222	*)
13223	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13224	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13225	  ;;
13226      esac
13227      ;;
13228
13229      sysv5* | sco3.2v5* | sco5v6*)
13230	# Note: We can NOT use -z defs as we might desire, because we do not
13231	# link with -lc, and that would cause any symbols used from libc to
13232	# always be unresolved, which means just about no library would
13233	# ever link correctly.  If we're not using GNU ld we use -z text
13234	# though, which does catch some bad symbols but isn't as heavy-handed
13235	# as -z defs.
13236	no_undefined_flag_CXX='${wl}-z,text'
13237	allow_undefined_flag_CXX='${wl}-z,nodefs'
13238	archive_cmds_need_lc_CXX=no
13239	hardcode_shlibpath_var_CXX=no
13240	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13241	hardcode_libdir_separator_CXX=':'
13242	link_all_deplibs_CXX=yes
13243	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13244	runpath_var='LD_RUN_PATH'
13245
13246	case $cc_basename in
13247          CC*)
13248	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13249	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13250	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13251	      '"$old_archive_cmds_CXX"
13252	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13253	      '"$reload_cmds_CXX"
13254	    ;;
13255	  *)
13256	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13257	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13258	    ;;
13259	esac
13260      ;;
13261
13262      tandem*)
13263        case $cc_basename in
13264          NCC*)
13265	    # NonStop-UX NCC 3.20
13266	    # FIXME: insert proper C++ library support
13267	    ld_shlibs_CXX=no
13268	    ;;
13269          *)
13270	    # FIXME: insert proper C++ library support
13271	    ld_shlibs_CXX=no
13272	    ;;
13273        esac
13274        ;;
13275
13276      vxworks*)
13277        # FIXME: insert proper C++ library support
13278        ld_shlibs_CXX=no
13279        ;;
13280
13281      *)
13282        # FIXME: insert proper C++ library support
13283        ld_shlibs_CXX=no
13284        ;;
13285    esac
13286
13287    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13288$as_echo "$ld_shlibs_CXX" >&6; }
13289    test "$ld_shlibs_CXX" = no && can_build_shared=no
13290
13291    GCC_CXX="$GXX"
13292    LD_CXX="$LD"
13293
13294    ## CAVEAT EMPTOR:
13295    ## There is no encapsulation within the following macros, do not change
13296    ## the running order or otherwise move them around unless you know exactly
13297    ## what you are doing...
13298    # Dependencies to place before and after the object being linked:
13299predep_objects_CXX=
13300postdep_objects_CXX=
13301predeps_CXX=
13302postdeps_CXX=
13303compiler_lib_search_path_CXX=
13304
13305cat > conftest.$ac_ext <<_LT_EOF
13306class Foo
13307{
13308public:
13309  Foo (void) { a = 0; }
13310private:
13311  int a;
13312};
13313_LT_EOF
13314
13315
13316_lt_libdeps_save_CFLAGS=$CFLAGS
13317case "$CC $CFLAGS " in #(
13318*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13319*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13320esac
13321
13322if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13323  (eval $ac_compile) 2>&5
13324  ac_status=$?
13325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13326  test $ac_status = 0; }; then
13327  # Parse the compiler output and extract the necessary
13328  # objects, libraries and library flags.
13329
13330  # Sentinel used to keep track of whether or not we are before
13331  # the conftest object file.
13332  pre_test_object_deps_done=no
13333
13334  for p in `eval "$output_verbose_link_cmd"`; do
13335    case ${prev}${p} in
13336
13337    -L* | -R* | -l*)
13338       # Some compilers place space between "-{L,R}" and the path.
13339       # Remove the space.
13340       if test $p = "-L" ||
13341          test $p = "-R"; then
13342	 prev=$p
13343	 continue
13344       fi
13345
13346       # Expand the sysroot to ease extracting the directories later.
13347       if test -z "$prev"; then
13348         case $p in
13349         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13350         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13351         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13352         esac
13353       fi
13354       case $p in
13355       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13356       esac
13357       if test "$pre_test_object_deps_done" = no; then
13358	 case ${prev} in
13359	 -L | -R)
13360	   # Internal compiler library paths should come after those
13361	   # provided the user.  The postdeps already come after the
13362	   # user supplied libs so there is no need to process them.
13363	   if test -z "$compiler_lib_search_path_CXX"; then
13364	     compiler_lib_search_path_CXX="${prev}${p}"
13365	   else
13366	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13367	   fi
13368	   ;;
13369	 # The "-l" case would never come before the object being
13370	 # linked, so don't bother handling this case.
13371	 esac
13372       else
13373	 if test -z "$postdeps_CXX"; then
13374	   postdeps_CXX="${prev}${p}"
13375	 else
13376	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13377	 fi
13378       fi
13379       prev=
13380       ;;
13381
13382    *.lto.$objext) ;; # Ignore GCC LTO objects
13383    *.$objext)
13384       # This assumes that the test object file only shows up
13385       # once in the compiler output.
13386       if test "$p" = "conftest.$objext"; then
13387	 pre_test_object_deps_done=yes
13388	 continue
13389       fi
13390
13391       if test "$pre_test_object_deps_done" = no; then
13392	 if test -z "$predep_objects_CXX"; then
13393	   predep_objects_CXX="$p"
13394	 else
13395	   predep_objects_CXX="$predep_objects_CXX $p"
13396	 fi
13397       else
13398	 if test -z "$postdep_objects_CXX"; then
13399	   postdep_objects_CXX="$p"
13400	 else
13401	   postdep_objects_CXX="$postdep_objects_CXX $p"
13402	 fi
13403       fi
13404       ;;
13405
13406    *) ;; # Ignore the rest.
13407
13408    esac
13409  done
13410
13411  # Clean up.
13412  rm -f a.out a.exe
13413else
13414  echo "libtool.m4: error: problem compiling CXX test program"
13415fi
13416
13417$RM -f confest.$objext
13418CFLAGS=$_lt_libdeps_save_CFLAGS
13419
13420# PORTME: override above test on systems where it is broken
13421case $host_os in
13422interix[3-9]*)
13423  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13424  # hack all around it, let's just trust "g++" to DTRT.
13425  predep_objects_CXX=
13426  postdep_objects_CXX=
13427  postdeps_CXX=
13428  ;;
13429
13430linux*)
13431  case `$CC -V 2>&1 | sed 5q` in
13432  *Sun\ C*)
13433    # Sun C++ 5.9
13434
13435    # The more standards-conforming stlport4 library is
13436    # incompatible with the Cstd library. Avoid specifying
13437    # it if it's in CXXFLAGS. Ignore libCrun as
13438    # -library=stlport4 depends on it.
13439    case " $CXX $CXXFLAGS " in
13440    *" -library=stlport4 "*)
13441      solaris_use_stlport4=yes
13442      ;;
13443    esac
13444
13445    if test "$solaris_use_stlport4" != yes; then
13446      postdeps_CXX='-library=Cstd -library=Crun'
13447    fi
13448    ;;
13449  esac
13450  ;;
13451
13452solaris*)
13453  case $cc_basename in
13454  CC* | sunCC*)
13455    # The more standards-conforming stlport4 library is
13456    # incompatible with the Cstd library. Avoid specifying
13457    # it if it's in CXXFLAGS. Ignore libCrun as
13458    # -library=stlport4 depends on it.
13459    case " $CXX $CXXFLAGS " in
13460    *" -library=stlport4 "*)
13461      solaris_use_stlport4=yes
13462      ;;
13463    esac
13464
13465    # Adding this requires a known-good setup of shared libraries for
13466    # Sun compiler versions before 5.6, else PIC objects from an old
13467    # archive will be linked into the output, leading to subtle bugs.
13468    if test "$solaris_use_stlport4" != yes; then
13469      postdeps_CXX='-library=Cstd -library=Crun'
13470    fi
13471    ;;
13472  esac
13473  ;;
13474esac
13475
13476
13477case " $postdeps_CXX " in
13478*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13479esac
13480 compiler_lib_search_dirs_CXX=
13481if test -n "${compiler_lib_search_path_CXX}"; then
13482 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13483fi
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515    lt_prog_compiler_wl_CXX=
13516lt_prog_compiler_pic_CXX=
13517lt_prog_compiler_static_CXX=
13518
13519
13520  # C++ specific cases for pic, static, wl, etc.
13521  if test "$GXX" = yes; then
13522    lt_prog_compiler_wl_CXX='-Wl,'
13523    lt_prog_compiler_static_CXX='-static'
13524
13525    case $host_os in
13526    aix*)
13527      # All AIX code is PIC.
13528      if test "$host_cpu" = ia64; then
13529	# AIX 5 now supports IA64 processor
13530	lt_prog_compiler_static_CXX='-Bstatic'
13531      fi
13532      ;;
13533
13534    amigaos*)
13535      case $host_cpu in
13536      powerpc)
13537            # see comment about AmigaOS4 .so support
13538            lt_prog_compiler_pic_CXX='-fPIC'
13539        ;;
13540      m68k)
13541            # FIXME: we need at least 68020 code to build shared libraries, but
13542            # adding the `-m68020' flag to GCC prevents building anything better,
13543            # like `-m68040'.
13544            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13545        ;;
13546      esac
13547      ;;
13548
13549    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13550      # PIC is the default for these OSes.
13551      ;;
13552    mingw* | cygwin* | os2* | pw32* | cegcc*)
13553      # This hack is so that the source file can tell whether it is being
13554      # built for inclusion in a dll (and should export symbols for example).
13555      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13556      # (--disable-auto-import) libraries
13557      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13558      ;;
13559    darwin* | rhapsody*)
13560      # PIC is the default on this platform
13561      # Common symbols not allowed in MH_DYLIB files
13562      lt_prog_compiler_pic_CXX='-fno-common'
13563      ;;
13564    *djgpp*)
13565      # DJGPP does not support shared libraries at all
13566      lt_prog_compiler_pic_CXX=
13567      ;;
13568    haiku*)
13569      # PIC is the default for Haiku.
13570      # The "-static" flag exists, but is broken.
13571      lt_prog_compiler_static_CXX=
13572      ;;
13573    interix[3-9]*)
13574      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13575      # Instead, we relocate shared libraries at runtime.
13576      ;;
13577    sysv4*MP*)
13578      if test -d /usr/nec; then
13579	lt_prog_compiler_pic_CXX=-Kconform_pic
13580      fi
13581      ;;
13582    hpux*)
13583      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13584      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13585      # sets the default TLS model and affects inlining.
13586      case $host_cpu in
13587      hppa*64*)
13588	;;
13589      *)
13590	lt_prog_compiler_pic_CXX='-fPIC'
13591	;;
13592      esac
13593      ;;
13594    *qnx* | *nto*)
13595      # QNX uses GNU C++, but need to define -shared option too, otherwise
13596      # it will coredump.
13597      lt_prog_compiler_pic_CXX='-fPIC -shared'
13598      ;;
13599    *)
13600      lt_prog_compiler_pic_CXX='-fPIC'
13601      ;;
13602    esac
13603  else
13604    case $host_os in
13605      aix[4-9]*)
13606	# All AIX code is PIC.
13607	if test "$host_cpu" = ia64; then
13608	  # AIX 5 now supports IA64 processor
13609	  lt_prog_compiler_static_CXX='-Bstatic'
13610	else
13611	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13612	fi
13613	;;
13614      chorus*)
13615	case $cc_basename in
13616	cxch68*)
13617	  # Green Hills C++ Compiler
13618	  # _LT_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"
13619	  ;;
13620	esac
13621	;;
13622      mingw* | cygwin* | os2* | pw32* | cegcc*)
13623	# This hack is so that the source file can tell whether it is being
13624	# built for inclusion in a dll (and should export symbols for example).
13625	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13626	;;
13627      dgux*)
13628	case $cc_basename in
13629	  ec++*)
13630	    lt_prog_compiler_pic_CXX='-KPIC'
13631	    ;;
13632	  ghcx*)
13633	    # Green Hills C++ Compiler
13634	    lt_prog_compiler_pic_CXX='-pic'
13635	    ;;
13636	  *)
13637	    ;;
13638	esac
13639	;;
13640      freebsd* | dragonfly*)
13641	# FreeBSD uses GNU C++
13642	;;
13643      hpux9* | hpux10* | hpux11*)
13644	case $cc_basename in
13645	  CC*)
13646	    lt_prog_compiler_wl_CXX='-Wl,'
13647	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13648	    if test "$host_cpu" != ia64; then
13649	      lt_prog_compiler_pic_CXX='+Z'
13650	    fi
13651	    ;;
13652	  aCC*)
13653	    lt_prog_compiler_wl_CXX='-Wl,'
13654	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13655	    case $host_cpu in
13656	    hppa*64*|ia64*)
13657	      # +Z the default
13658	      ;;
13659	    *)
13660	      lt_prog_compiler_pic_CXX='+Z'
13661	      ;;
13662	    esac
13663	    ;;
13664	  *)
13665	    ;;
13666	esac
13667	;;
13668      interix*)
13669	# This is c89, which is MS Visual C++ (no shared libs)
13670	# Anyone wants to do a port?
13671	;;
13672      irix5* | irix6* | nonstopux*)
13673	case $cc_basename in
13674	  CC*)
13675	    lt_prog_compiler_wl_CXX='-Wl,'
13676	    lt_prog_compiler_static_CXX='-non_shared'
13677	    # CC pic flag -KPIC is the default.
13678	    ;;
13679	  *)
13680	    ;;
13681	esac
13682	;;
13683      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13684	case $cc_basename in
13685	  KCC*)
13686	    # KAI C++ Compiler
13687	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13688	    lt_prog_compiler_pic_CXX='-fPIC'
13689	    ;;
13690	  ecpc* )
13691	    # old Intel C++ for x86_64 which still supported -KPIC.
13692	    lt_prog_compiler_wl_CXX='-Wl,'
13693	    lt_prog_compiler_pic_CXX='-KPIC'
13694	    lt_prog_compiler_static_CXX='-static'
13695	    ;;
13696	  icpc* )
13697	    # Intel C++, used to be incompatible with GCC.
13698	    # ICC 10 doesn't accept -KPIC any more.
13699	    lt_prog_compiler_wl_CXX='-Wl,'
13700	    lt_prog_compiler_pic_CXX='-fPIC'
13701	    lt_prog_compiler_static_CXX='-static'
13702	    ;;
13703	  pgCC* | pgcpp*)
13704	    # Portland Group C++ compiler
13705	    lt_prog_compiler_wl_CXX='-Wl,'
13706	    lt_prog_compiler_pic_CXX='-fpic'
13707	    lt_prog_compiler_static_CXX='-Bstatic'
13708	    ;;
13709	  cxx*)
13710	    # Compaq C++
13711	    # Make sure the PIC flag is empty.  It appears that all Alpha
13712	    # Linux and Compaq Tru64 Unix objects are PIC.
13713	    lt_prog_compiler_pic_CXX=
13714	    lt_prog_compiler_static_CXX='-non_shared'
13715	    ;;
13716	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13717	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13718	    lt_prog_compiler_wl_CXX='-Wl,'
13719	    lt_prog_compiler_pic_CXX='-qpic'
13720	    lt_prog_compiler_static_CXX='-qstaticlink'
13721	    ;;
13722	  *)
13723	    case `$CC -V 2>&1 | sed 5q` in
13724	    *Sun\ C*)
13725	      # Sun C++ 5.9
13726	      lt_prog_compiler_pic_CXX='-KPIC'
13727	      lt_prog_compiler_static_CXX='-Bstatic'
13728	      lt_prog_compiler_wl_CXX='-Qoption ld '
13729	      ;;
13730	    esac
13731	    ;;
13732	esac
13733	;;
13734      lynxos*)
13735	;;
13736      m88k*)
13737	;;
13738      mvs*)
13739	case $cc_basename in
13740	  cxx*)
13741	    lt_prog_compiler_pic_CXX='-W c,exportall'
13742	    ;;
13743	  *)
13744	    ;;
13745	esac
13746	;;
13747      netbsd* | netbsdelf*-gnu)
13748	;;
13749      *qnx* | *nto*)
13750        # QNX uses GNU C++, but need to define -shared option too, otherwise
13751        # it will coredump.
13752        lt_prog_compiler_pic_CXX='-fPIC -shared'
13753        ;;
13754      osf3* | osf4* | osf5*)
13755	case $cc_basename in
13756	  KCC*)
13757	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13758	    ;;
13759	  RCC*)
13760	    # Rational C++ 2.4.1
13761	    lt_prog_compiler_pic_CXX='-pic'
13762	    ;;
13763	  cxx*)
13764	    # Digital/Compaq C++
13765	    lt_prog_compiler_wl_CXX='-Wl,'
13766	    # Make sure the PIC flag is empty.  It appears that all Alpha
13767	    # Linux and Compaq Tru64 Unix objects are PIC.
13768	    lt_prog_compiler_pic_CXX=
13769	    lt_prog_compiler_static_CXX='-non_shared'
13770	    ;;
13771	  *)
13772	    ;;
13773	esac
13774	;;
13775      psos*)
13776	;;
13777      solaris*)
13778	case $cc_basename in
13779	  CC* | sunCC*)
13780	    # Sun C++ 4.2, 5.x and Centerline C++
13781	    lt_prog_compiler_pic_CXX='-KPIC'
13782	    lt_prog_compiler_static_CXX='-Bstatic'
13783	    lt_prog_compiler_wl_CXX='-Qoption ld '
13784	    ;;
13785	  gcx*)
13786	    # Green Hills C++ Compiler
13787	    lt_prog_compiler_pic_CXX='-PIC'
13788	    ;;
13789	  *)
13790	    ;;
13791	esac
13792	;;
13793      sunos4*)
13794	case $cc_basename in
13795	  CC*)
13796	    # Sun C++ 4.x
13797	    lt_prog_compiler_pic_CXX='-pic'
13798	    lt_prog_compiler_static_CXX='-Bstatic'
13799	    ;;
13800	  lcc*)
13801	    # Lucid
13802	    lt_prog_compiler_pic_CXX='-pic'
13803	    ;;
13804	  *)
13805	    ;;
13806	esac
13807	;;
13808      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13809	case $cc_basename in
13810	  CC*)
13811	    lt_prog_compiler_wl_CXX='-Wl,'
13812	    lt_prog_compiler_pic_CXX='-KPIC'
13813	    lt_prog_compiler_static_CXX='-Bstatic'
13814	    ;;
13815	esac
13816	;;
13817      tandem*)
13818	case $cc_basename in
13819	  NCC*)
13820	    # NonStop-UX NCC 3.20
13821	    lt_prog_compiler_pic_CXX='-KPIC'
13822	    ;;
13823	  *)
13824	    ;;
13825	esac
13826	;;
13827      vxworks*)
13828	;;
13829      *)
13830	lt_prog_compiler_can_build_shared_CXX=no
13831	;;
13832    esac
13833  fi
13834
13835case $host_os in
13836  # For platforms which do not support PIC, -DPIC is meaningless:
13837  *djgpp*)
13838    lt_prog_compiler_pic_CXX=
13839    ;;
13840  *)
13841    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13842    ;;
13843esac
13844
13845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13846$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13847if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13848  $as_echo_n "(cached) " >&6
13849else
13850  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13851fi
13852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13853$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13854lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13855
13856#
13857# Check to make sure the PIC flag actually works.
13858#
13859if test -n "$lt_prog_compiler_pic_CXX"; then
13860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13861$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13862if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13863  $as_echo_n "(cached) " >&6
13864else
13865  lt_cv_prog_compiler_pic_works_CXX=no
13866   ac_outfile=conftest.$ac_objext
13867   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13868   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13869   # Insert the option either (1) after the last *FLAGS variable, or
13870   # (2) before a word containing "conftest.", or (3) at the end.
13871   # Note that $ac_compile itself does not contain backslashes and begins
13872   # with a dollar sign (not a hyphen), so the echo should work correctly.
13873   # The option is referenced via a variable to avoid confusing sed.
13874   lt_compile=`echo "$ac_compile" | $SED \
13875   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13876   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13877   -e 's:$: $lt_compiler_flag:'`
13878   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13879   (eval "$lt_compile" 2>conftest.err)
13880   ac_status=$?
13881   cat conftest.err >&5
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   if (exit $ac_status) && test -s "$ac_outfile"; then
13884     # The compiler can only warn and ignore the option if not recognized
13885     # So say no if there are warnings other than the usual output.
13886     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13887     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13888     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13889       lt_cv_prog_compiler_pic_works_CXX=yes
13890     fi
13891   fi
13892   $RM conftest*
13893
13894fi
13895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13896$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13897
13898if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13899    case $lt_prog_compiler_pic_CXX in
13900     "" | " "*) ;;
13901     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13902     esac
13903else
13904    lt_prog_compiler_pic_CXX=
13905     lt_prog_compiler_can_build_shared_CXX=no
13906fi
13907
13908fi
13909
13910
13911
13912
13913
13914#
13915# Check to make sure the static flag actually works.
13916#
13917wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13919$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13920if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13921  $as_echo_n "(cached) " >&6
13922else
13923  lt_cv_prog_compiler_static_works_CXX=no
13924   save_LDFLAGS="$LDFLAGS"
13925   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13926   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13927   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13928     # The linker can only warn and ignore the option if not recognized
13929     # So say no if there are warnings
13930     if test -s conftest.err; then
13931       # Append any errors to the config.log.
13932       cat conftest.err 1>&5
13933       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13934       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13935       if diff conftest.exp conftest.er2 >/dev/null; then
13936         lt_cv_prog_compiler_static_works_CXX=yes
13937       fi
13938     else
13939       lt_cv_prog_compiler_static_works_CXX=yes
13940     fi
13941   fi
13942   $RM -r conftest*
13943   LDFLAGS="$save_LDFLAGS"
13944
13945fi
13946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13947$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13948
13949if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13950    :
13951else
13952    lt_prog_compiler_static_CXX=
13953fi
13954
13955
13956
13957
13958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13959$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13960if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13961  $as_echo_n "(cached) " >&6
13962else
13963  lt_cv_prog_compiler_c_o_CXX=no
13964   $RM -r conftest 2>/dev/null
13965   mkdir conftest
13966   cd conftest
13967   mkdir out
13968   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13969
13970   lt_compiler_flag="-o out/conftest2.$ac_objext"
13971   # Insert the option either (1) after the last *FLAGS variable, or
13972   # (2) before a word containing "conftest.", or (3) at the end.
13973   # Note that $ac_compile itself does not contain backslashes and begins
13974   # with a dollar sign (not a hyphen), so the echo should work correctly.
13975   lt_compile=`echo "$ac_compile" | $SED \
13976   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13977   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13978   -e 's:$: $lt_compiler_flag:'`
13979   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13980   (eval "$lt_compile" 2>out/conftest.err)
13981   ac_status=$?
13982   cat out/conftest.err >&5
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13985   then
13986     # The compiler can only warn and ignore the option if not recognized
13987     # So say no if there are warnings
13988     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13989     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13990     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13991       lt_cv_prog_compiler_c_o_CXX=yes
13992     fi
13993   fi
13994   chmod u+w . 2>&5
13995   $RM conftest*
13996   # SGI C++ compiler will create directory out/ii_files/ for
13997   # template instantiation
13998   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13999   $RM out/* && rmdir out
14000   cd ..
14001   $RM -r conftest
14002   $RM conftest*
14003
14004fi
14005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14006$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14007
14008
14009
14010    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14011$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14012if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14013  $as_echo_n "(cached) " >&6
14014else
14015  lt_cv_prog_compiler_c_o_CXX=no
14016   $RM -r conftest 2>/dev/null
14017   mkdir conftest
14018   cd conftest
14019   mkdir out
14020   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14021
14022   lt_compiler_flag="-o out/conftest2.$ac_objext"
14023   # Insert the option either (1) after the last *FLAGS variable, or
14024   # (2) before a word containing "conftest.", or (3) at the end.
14025   # Note that $ac_compile itself does not contain backslashes and begins
14026   # with a dollar sign (not a hyphen), so the echo should work correctly.
14027   lt_compile=`echo "$ac_compile" | $SED \
14028   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14029   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14030   -e 's:$: $lt_compiler_flag:'`
14031   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14032   (eval "$lt_compile" 2>out/conftest.err)
14033   ac_status=$?
14034   cat out/conftest.err >&5
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14037   then
14038     # The compiler can only warn and ignore the option if not recognized
14039     # So say no if there are warnings
14040     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14041     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14042     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14043       lt_cv_prog_compiler_c_o_CXX=yes
14044     fi
14045   fi
14046   chmod u+w . 2>&5
14047   $RM conftest*
14048   # SGI C++ compiler will create directory out/ii_files/ for
14049   # template instantiation
14050   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14051   $RM out/* && rmdir out
14052   cd ..
14053   $RM -r conftest
14054   $RM conftest*
14055
14056fi
14057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14058$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14059
14060
14061
14062
14063hard_links="nottested"
14064if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14065  # do not overwrite the value of need_locks provided by the user
14066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14067$as_echo_n "checking if we can lock with hard links... " >&6; }
14068  hard_links=yes
14069  $RM conftest*
14070  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14071  touch conftest.a
14072  ln conftest.a conftest.b 2>&5 || hard_links=no
14073  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14075$as_echo "$hard_links" >&6; }
14076  if test "$hard_links" = no; then
14077    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14078$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14079    need_locks=warn
14080  fi
14081else
14082  need_locks=no
14083fi
14084
14085
14086
14087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14088$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14089
14090  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14091  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14092  case $host_os in
14093  aix[4-9]*)
14094    # If we're using GNU nm, then we don't want the "-C" option.
14095    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14096    # Also, AIX nm treats weak defined symbols like other global defined
14097    # symbols, whereas GNU nm marks them as "W".
14098    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14099      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14100    else
14101      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'
14102    fi
14103    ;;
14104  pw32*)
14105    export_symbols_cmds_CXX="$ltdll_cmds"
14106    ;;
14107  cygwin* | mingw* | cegcc*)
14108    case $cc_basename in
14109    cl*) ;;
14110    *)
14111      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14112      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14113      ;;
14114    esac
14115    ;;
14116  linux* | k*bsd*-gnu | gnu*)
14117    link_all_deplibs_CXX=no
14118    ;;
14119  *)
14120    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14121    ;;
14122  esac
14123
14124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14125$as_echo "$ld_shlibs_CXX" >&6; }
14126test "$ld_shlibs_CXX" = no && can_build_shared=no
14127
14128with_gnu_ld_CXX=$with_gnu_ld
14129
14130
14131
14132
14133
14134
14135#
14136# Do we need to explicitly link libc?
14137#
14138case "x$archive_cmds_need_lc_CXX" in
14139x|xyes)
14140  # Assume -lc should be added
14141  archive_cmds_need_lc_CXX=yes
14142
14143  if test "$enable_shared" = yes && test "$GCC" = yes; then
14144    case $archive_cmds_CXX in
14145    *'~'*)
14146      # FIXME: we may have to deal with multi-command sequences.
14147      ;;
14148    '$CC '*)
14149      # Test whether the compiler implicitly links with -lc since on some
14150      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14151      # to ld, don't add -lc before -lgcc.
14152      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14153$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14154if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14155  $as_echo_n "(cached) " >&6
14156else
14157  $RM conftest*
14158	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14159
14160	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14161  (eval $ac_compile) 2>&5
14162  ac_status=$?
14163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14164  test $ac_status = 0; } 2>conftest.err; then
14165	  soname=conftest
14166	  lib=conftest
14167	  libobjs=conftest.$ac_objext
14168	  deplibs=
14169	  wl=$lt_prog_compiler_wl_CXX
14170	  pic_flag=$lt_prog_compiler_pic_CXX
14171	  compiler_flags=-v
14172	  linker_flags=-v
14173	  verstring=
14174	  output_objdir=.
14175	  libname=conftest
14176	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14177	  allow_undefined_flag_CXX=
14178	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14179  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14180  ac_status=$?
14181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14182  test $ac_status = 0; }
14183	  then
14184	    lt_cv_archive_cmds_need_lc_CXX=no
14185	  else
14186	    lt_cv_archive_cmds_need_lc_CXX=yes
14187	  fi
14188	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14189	else
14190	  cat conftest.err 1>&5
14191	fi
14192	$RM conftest*
14193
14194fi
14195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14196$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14197      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14198      ;;
14199    esac
14200  fi
14201  ;;
14202esac
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14268$as_echo_n "checking dynamic linker characteristics... " >&6; }
14269
14270library_names_spec=
14271libname_spec='lib$name'
14272soname_spec=
14273shrext_cmds=".so"
14274postinstall_cmds=
14275postuninstall_cmds=
14276finish_cmds=
14277finish_eval=
14278shlibpath_var=
14279shlibpath_overrides_runpath=unknown
14280version_type=none
14281dynamic_linker="$host_os ld.so"
14282sys_lib_dlsearch_path_spec="/lib /usr/lib"
14283need_lib_prefix=unknown
14284hardcode_into_libs=no
14285
14286# when you set need_version to no, make sure it does not cause -set_version
14287# flags to be left without arguments
14288need_version=unknown
14289
14290case $host_os in
14291aix3*)
14292  version_type=linux
14293  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14294  shlibpath_var=LIBPATH
14295
14296  # AIX 3 has no versioning support, so we append a major version to the name.
14297  soname_spec='${libname}${release}${shared_ext}$major'
14298  ;;
14299
14300aix[4-9]*)
14301  version_type=linux
14302  need_lib_prefix=no
14303  need_version=no
14304  hardcode_into_libs=yes
14305  if test "$host_cpu" = ia64; then
14306    # AIX 5 supports IA64
14307    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14308    shlibpath_var=LD_LIBRARY_PATH
14309  else
14310    # With GCC up to 2.95.x, collect2 would create an import file
14311    # for dependence libraries.  The import file would start with
14312    # the line `#! .'.  This would cause the generated library to
14313    # depend on `.', always an invalid library.  This was fixed in
14314    # development snapshots of GCC prior to 3.0.
14315    case $host_os in
14316      aix4 | aix4.[01] | aix4.[01].*)
14317      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14318	   echo ' yes '
14319	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14320	:
14321      else
14322	can_build_shared=no
14323      fi
14324      ;;
14325    esac
14326    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14327    # soname into executable. Probably we can add versioning support to
14328    # collect2, so additional links can be useful in future.
14329    if test "$aix_use_runtimelinking" = yes; then
14330      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14331      # instead of lib<name>.a to let people know that these are not
14332      # typical AIX shared libraries.
14333      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14334    else
14335      # We preserve .a as extension for shared libraries through AIX4.2
14336      # and later when we are not doing run time linking.
14337      library_names_spec='${libname}${release}.a $libname.a'
14338      soname_spec='${libname}${release}${shared_ext}$major'
14339    fi
14340    shlibpath_var=LIBPATH
14341  fi
14342  ;;
14343
14344amigaos*)
14345  case $host_cpu in
14346  powerpc)
14347    # Since July 2007 AmigaOS4 officially supports .so libraries.
14348    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14349    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14350    ;;
14351  m68k)
14352    library_names_spec='$libname.ixlibrary $libname.a'
14353    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14354    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14355    ;;
14356  esac
14357  ;;
14358
14359beos*)
14360  library_names_spec='${libname}${shared_ext}'
14361  dynamic_linker="$host_os ld.so"
14362  shlibpath_var=LIBRARY_PATH
14363  ;;
14364
14365bsdi[45]*)
14366  version_type=linux
14367  need_version=no
14368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369  soname_spec='${libname}${release}${shared_ext}$major'
14370  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14371  shlibpath_var=LD_LIBRARY_PATH
14372  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14373  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14374  # the default ld.so.conf also contains /usr/contrib/lib and
14375  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14376  # libtool to hard-code these into programs
14377  ;;
14378
14379cygwin* | mingw* | pw32* | cegcc*)
14380  version_type=windows
14381  shrext_cmds=".dll"
14382  need_version=no
14383  need_lib_prefix=no
14384
14385  case $GCC,$cc_basename in
14386  yes,*)
14387    # gcc
14388    library_names_spec='$libname.dll.a'
14389    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14390    postinstall_cmds='base_file=`basename \${file}`~
14391      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14392      dldir=$destdir/`dirname \$dlpath`~
14393      test -d \$dldir || mkdir -p \$dldir~
14394      $install_prog $dir/$dlname \$dldir/$dlname~
14395      chmod a+x \$dldir/$dlname~
14396      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14397        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14398      fi'
14399    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14400      dlpath=$dir/\$dldll~
14401       $RM \$dlpath'
14402    shlibpath_overrides_runpath=yes
14403
14404    case $host_os in
14405    cygwin*)
14406      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14407      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14408
14409      ;;
14410    mingw* | cegcc*)
14411      # MinGW DLLs use traditional 'lib' prefix
14412      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14413      ;;
14414    pw32*)
14415      # pw32 DLLs use 'pw' prefix rather than 'lib'
14416      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14417      ;;
14418    esac
14419    dynamic_linker='Win32 ld.exe'
14420    ;;
14421
14422  *,cl*)
14423    # Native MSVC
14424    libname_spec='$name'
14425    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14426    library_names_spec='${libname}.dll.lib'
14427
14428    case $build_os in
14429    mingw*)
14430      sys_lib_search_path_spec=
14431      lt_save_ifs=$IFS
14432      IFS=';'
14433      for lt_path in $LIB
14434      do
14435        IFS=$lt_save_ifs
14436        # Let DOS variable expansion print the short 8.3 style file name.
14437        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14438        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14439      done
14440      IFS=$lt_save_ifs
14441      # Convert to MSYS style.
14442      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14443      ;;
14444    cygwin*)
14445      # Convert to unix form, then to dos form, then back to unix form
14446      # but this time dos style (no spaces!) so that the unix form looks
14447      # like /cygdrive/c/PROGRA~1:/cygdr...
14448      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14449      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14450      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14451      ;;
14452    *)
14453      sys_lib_search_path_spec="$LIB"
14454      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14455        # It is most probably a Windows format PATH.
14456        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14457      else
14458        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14459      fi
14460      # FIXME: find the short name or the path components, as spaces are
14461      # common. (e.g. "Program Files" -> "PROGRA~1")
14462      ;;
14463    esac
14464
14465    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14466    postinstall_cmds='base_file=`basename \${file}`~
14467      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14468      dldir=$destdir/`dirname \$dlpath`~
14469      test -d \$dldir || mkdir -p \$dldir~
14470      $install_prog $dir/$dlname \$dldir/$dlname'
14471    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14472      dlpath=$dir/\$dldll~
14473       $RM \$dlpath'
14474    shlibpath_overrides_runpath=yes
14475    dynamic_linker='Win32 link.exe'
14476    ;;
14477
14478  *)
14479    # Assume MSVC wrapper
14480    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14481    dynamic_linker='Win32 ld.exe'
14482    ;;
14483  esac
14484  # FIXME: first we should search . and the directory the executable is in
14485  shlibpath_var=PATH
14486  ;;
14487
14488darwin* | rhapsody*)
14489  dynamic_linker="$host_os dyld"
14490  version_type=darwin
14491  need_lib_prefix=no
14492  need_version=no
14493  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14494  soname_spec='${libname}${release}${major}$shared_ext'
14495  shlibpath_overrides_runpath=yes
14496  shlibpath_var=DYLD_LIBRARY_PATH
14497  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14498
14499  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14500  ;;
14501
14502dgux*)
14503  version_type=linux
14504  need_lib_prefix=no
14505  need_version=no
14506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14507  soname_spec='${libname}${release}${shared_ext}$major'
14508  shlibpath_var=LD_LIBRARY_PATH
14509  ;;
14510
14511freebsd1*)
14512  dynamic_linker=no
14513  ;;
14514
14515freebsd* | dragonfly*)
14516  # DragonFly does not have aout.  When/if they implement a new
14517  # versioning mechanism, adjust this.
14518  if test -x /usr/bin/objformat; then
14519    objformat=`/usr/bin/objformat`
14520  else
14521    case $host_os in
14522    freebsd[123]*) objformat=aout ;;
14523    *) objformat=elf ;;
14524    esac
14525  fi
14526  version_type=freebsd-$objformat
14527  case $version_type in
14528    freebsd-elf*)
14529      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14530      need_version=no
14531      need_lib_prefix=no
14532      ;;
14533    freebsd-*)
14534      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14535      need_version=yes
14536      ;;
14537  esac
14538  shlibpath_var=LD_LIBRARY_PATH
14539  case $host_os in
14540  freebsd2*)
14541    shlibpath_overrides_runpath=yes
14542    ;;
14543  freebsd3.[01]* | freebsdelf3.[01]*)
14544    shlibpath_overrides_runpath=yes
14545    hardcode_into_libs=yes
14546    ;;
14547  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14548  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14549    shlibpath_overrides_runpath=no
14550    hardcode_into_libs=yes
14551    ;;
14552  *) # from 4.6 on, and DragonFly
14553    shlibpath_overrides_runpath=yes
14554    hardcode_into_libs=yes
14555    ;;
14556  esac
14557  ;;
14558
14559gnu*)
14560  version_type=linux
14561  need_lib_prefix=no
14562  need_version=no
14563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14564  soname_spec='${libname}${release}${shared_ext}$major'
14565  shlibpath_var=LD_LIBRARY_PATH
14566  shlibpath_overrides_runpath=no
14567  hardcode_into_libs=yes
14568  ;;
14569
14570haiku*)
14571  version_type=linux
14572  need_lib_prefix=no
14573  need_version=no
14574  dynamic_linker="$host_os runtime_loader"
14575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14576  soname_spec='${libname}${release}${shared_ext}$major'
14577  shlibpath_var=LIBRARY_PATH
14578  shlibpath_overrides_runpath=yes
14579  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14580  hardcode_into_libs=yes
14581  ;;
14582
14583hpux9* | hpux10* | hpux11*)
14584  # Give a soname corresponding to the major version so that dld.sl refuses to
14585  # link against other versions.
14586  version_type=sunos
14587  need_lib_prefix=no
14588  need_version=no
14589  case $host_cpu in
14590  ia64*)
14591    shrext_cmds='.so'
14592    hardcode_into_libs=yes
14593    dynamic_linker="$host_os dld.so"
14594    shlibpath_var=LD_LIBRARY_PATH
14595    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14596    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597    soname_spec='${libname}${release}${shared_ext}$major'
14598    if test "X$HPUX_IA64_MODE" = X32; then
14599      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14600    else
14601      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14602    fi
14603    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14604    ;;
14605  hppa*64*)
14606    shrext_cmds='.sl'
14607    hardcode_into_libs=yes
14608    dynamic_linker="$host_os dld.sl"
14609    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14610    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14611    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612    soname_spec='${libname}${release}${shared_ext}$major'
14613    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14614    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14615    ;;
14616  *)
14617    shrext_cmds='.sl'
14618    dynamic_linker="$host_os dld.sl"
14619    shlibpath_var=SHLIB_PATH
14620    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14621    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14622    soname_spec='${libname}${release}${shared_ext}$major'
14623    ;;
14624  esac
14625  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14626  postinstall_cmds='chmod 555 $lib'
14627  # or fails outright, so override atomically:
14628  install_override_mode=555
14629  ;;
14630
14631interix[3-9]*)
14632  version_type=linux
14633  need_lib_prefix=no
14634  need_version=no
14635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14636  soname_spec='${libname}${release}${shared_ext}$major'
14637  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14638  shlibpath_var=LD_LIBRARY_PATH
14639  shlibpath_overrides_runpath=no
14640  hardcode_into_libs=yes
14641  ;;
14642
14643irix5* | irix6* | nonstopux*)
14644  case $host_os in
14645    nonstopux*) version_type=nonstopux ;;
14646    *)
14647	if test "$lt_cv_prog_gnu_ld" = yes; then
14648		version_type=linux
14649	else
14650		version_type=irix
14651	fi ;;
14652  esac
14653  need_lib_prefix=no
14654  need_version=no
14655  soname_spec='${libname}${release}${shared_ext}$major'
14656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14657  case $host_os in
14658  irix5* | nonstopux*)
14659    libsuff= shlibsuff=
14660    ;;
14661  *)
14662    case $LD in # libtool.m4 will add one of these switches to LD
14663    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14664      libsuff= shlibsuff= libmagic=32-bit;;
14665    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14666      libsuff=32 shlibsuff=N32 libmagic=N32;;
14667    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14668      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14669    *) libsuff= shlibsuff= libmagic=never-match;;
14670    esac
14671    ;;
14672  esac
14673  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14674  shlibpath_overrides_runpath=no
14675  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14676  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14677  hardcode_into_libs=yes
14678  ;;
14679
14680# No shared lib support for Linux oldld, aout, or coff.
14681linux*oldld* | linux*aout* | linux*coff*)
14682  dynamic_linker=no
14683  ;;
14684
14685# This must be Linux ELF.
14686linux* | k*bsd*-gnu | kopensolaris*-gnu)
14687  version_type=linux
14688  need_lib_prefix=no
14689  need_version=no
14690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691  soname_spec='${libname}${release}${shared_ext}$major'
14692  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14693  shlibpath_var=LD_LIBRARY_PATH
14694  shlibpath_overrides_runpath=no
14695
14696  # Some binutils ld are patched to set DT_RUNPATH
14697  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14698  $as_echo_n "(cached) " >&6
14699else
14700  lt_cv_shlibpath_overrides_runpath=no
14701    save_LDFLAGS=$LDFLAGS
14702    save_libdir=$libdir
14703    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14704	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14705    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706/* end confdefs.h.  */
14707
14708int
14709main ()
14710{
14711
14712  ;
14713  return 0;
14714}
14715_ACEOF
14716if ac_fn_cxx_try_link "$LINENO"; then :
14717  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14718  lt_cv_shlibpath_overrides_runpath=yes
14719fi
14720fi
14721rm -f core conftest.err conftest.$ac_objext \
14722    conftest$ac_exeext conftest.$ac_ext
14723    LDFLAGS=$save_LDFLAGS
14724    libdir=$save_libdir
14725
14726fi
14727
14728  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14729
14730  # This implies no fast_install, which is unacceptable.
14731  # Some rework will be needed to allow for fast_install
14732  # before this can be enabled.
14733  hardcode_into_libs=yes
14734
14735  # Append ld.so.conf contents to the search path
14736  if test -f /etc/ld.so.conf; then
14737    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14738    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14739  fi
14740
14741  # We used to test for /lib/ld.so.1 and disable shared libraries on
14742  # powerpc, because MkLinux only supported shared libraries with the
14743  # GNU dynamic linker.  Since this was broken with cross compilers,
14744  # most powerpc-linux boxes support dynamic linking these days and
14745  # people can always --disable-shared, the test was removed, and we
14746  # assume the GNU/Linux dynamic linker is in use.
14747  dynamic_linker='GNU/Linux ld.so'
14748  ;;
14749
14750netbsdelf*-gnu)
14751  version_type=linux
14752  need_lib_prefix=no
14753  need_version=no
14754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14755  soname_spec='${libname}${release}${shared_ext}$major'
14756  shlibpath_var=LD_LIBRARY_PATH
14757  shlibpath_overrides_runpath=no
14758  hardcode_into_libs=yes
14759  dynamic_linker='NetBSD ld.elf_so'
14760  ;;
14761
14762netbsd*)
14763  version_type=sunos
14764  need_lib_prefix=no
14765  need_version=no
14766  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14767    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14768    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14769    dynamic_linker='NetBSD (a.out) ld.so'
14770  else
14771    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14772    soname_spec='${libname}${release}${shared_ext}$major'
14773    dynamic_linker='NetBSD ld.elf_so'
14774  fi
14775  shlibpath_var=LD_LIBRARY_PATH
14776  shlibpath_overrides_runpath=yes
14777  hardcode_into_libs=yes
14778  ;;
14779
14780newsos6)
14781  version_type=linux
14782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783  shlibpath_var=LD_LIBRARY_PATH
14784  shlibpath_overrides_runpath=yes
14785  ;;
14786
14787*nto* | *qnx*)
14788  version_type=qnx
14789  need_lib_prefix=no
14790  need_version=no
14791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792  soname_spec='${libname}${release}${shared_ext}$major'
14793  shlibpath_var=LD_LIBRARY_PATH
14794  shlibpath_overrides_runpath=no
14795  hardcode_into_libs=yes
14796  dynamic_linker='ldqnx.so'
14797  ;;
14798
14799openbsd*)
14800  version_type=sunos
14801  sys_lib_dlsearch_path_spec="/usr/lib"
14802  need_lib_prefix=no
14803  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14804  case $host_os in
14805    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14806    *)				need_version=no  ;;
14807  esac
14808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14809  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14810  shlibpath_var=LD_LIBRARY_PATH
14811  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14812    case $host_os in
14813      openbsd2.[89] | openbsd2.[89].*)
14814	shlibpath_overrides_runpath=no
14815	;;
14816      *)
14817	shlibpath_overrides_runpath=yes
14818	;;
14819      esac
14820  else
14821    shlibpath_overrides_runpath=yes
14822  fi
14823  ;;
14824
14825os2*)
14826  libname_spec='$name'
14827  shrext_cmds=".dll"
14828  need_lib_prefix=no
14829  library_names_spec='$libname${shared_ext} $libname.a'
14830  dynamic_linker='OS/2 ld.exe'
14831  shlibpath_var=LIBPATH
14832  ;;
14833
14834osf3* | osf4* | osf5*)
14835  version_type=osf
14836  need_lib_prefix=no
14837  need_version=no
14838  soname_spec='${libname}${release}${shared_ext}$major'
14839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840  shlibpath_var=LD_LIBRARY_PATH
14841  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14842  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14843  ;;
14844
14845rdos*)
14846  dynamic_linker=no
14847  ;;
14848
14849solaris*)
14850  version_type=linux
14851  need_lib_prefix=no
14852  need_version=no
14853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14854  soname_spec='${libname}${release}${shared_ext}$major'
14855  shlibpath_var=LD_LIBRARY_PATH
14856  shlibpath_overrides_runpath=yes
14857  hardcode_into_libs=yes
14858  # ldd complains unless libraries are executable
14859  postinstall_cmds='chmod +x $lib'
14860  ;;
14861
14862sunos4*)
14863  version_type=sunos
14864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14865  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14866  shlibpath_var=LD_LIBRARY_PATH
14867  shlibpath_overrides_runpath=yes
14868  if test "$with_gnu_ld" = yes; then
14869    need_lib_prefix=no
14870  fi
14871  need_version=yes
14872  ;;
14873
14874sysv4 | sysv4.3*)
14875  version_type=linux
14876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877  soname_spec='${libname}${release}${shared_ext}$major'
14878  shlibpath_var=LD_LIBRARY_PATH
14879  case $host_vendor in
14880    sni)
14881      shlibpath_overrides_runpath=no
14882      need_lib_prefix=no
14883      runpath_var=LD_RUN_PATH
14884      ;;
14885    siemens)
14886      need_lib_prefix=no
14887      ;;
14888    motorola)
14889      need_lib_prefix=no
14890      need_version=no
14891      shlibpath_overrides_runpath=no
14892      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14893      ;;
14894  esac
14895  ;;
14896
14897sysv4*MP*)
14898  if test -d /usr/nec ;then
14899    version_type=linux
14900    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14901    soname_spec='$libname${shared_ext}.$major'
14902    shlibpath_var=LD_LIBRARY_PATH
14903  fi
14904  ;;
14905
14906sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14907  version_type=freebsd-elf
14908  need_lib_prefix=no
14909  need_version=no
14910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14911  soname_spec='${libname}${release}${shared_ext}$major'
14912  shlibpath_var=LD_LIBRARY_PATH
14913  shlibpath_overrides_runpath=yes
14914  hardcode_into_libs=yes
14915  if test "$with_gnu_ld" = yes; then
14916    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14917  else
14918    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14919    case $host_os in
14920      sco3.2v5*)
14921        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14922	;;
14923    esac
14924  fi
14925  sys_lib_dlsearch_path_spec='/usr/lib'
14926  ;;
14927
14928tpf*)
14929  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14930  version_type=linux
14931  need_lib_prefix=no
14932  need_version=no
14933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934  shlibpath_var=LD_LIBRARY_PATH
14935  shlibpath_overrides_runpath=no
14936  hardcode_into_libs=yes
14937  ;;
14938
14939uts4*)
14940  version_type=linux
14941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14942  soname_spec='${libname}${release}${shared_ext}$major'
14943  shlibpath_var=LD_LIBRARY_PATH
14944  ;;
14945
14946*)
14947  dynamic_linker=no
14948  ;;
14949esac
14950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14951$as_echo "$dynamic_linker" >&6; }
14952test "$dynamic_linker" = no && can_build_shared=no
14953
14954variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14955if test "$GCC" = yes; then
14956  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14957fi
14958
14959if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14960  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14961fi
14962if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14963  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14964fi
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15004$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15005hardcode_action_CXX=
15006if test -n "$hardcode_libdir_flag_spec_CXX" ||
15007   test -n "$runpath_var_CXX" ||
15008   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15009
15010  # We can hardcode non-existent directories.
15011  if test "$hardcode_direct_CXX" != no &&
15012     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15013     # have to relink, otherwise we might link with an installed library
15014     # when we should be linking with a yet-to-be-installed one
15015     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15016     test "$hardcode_minus_L_CXX" != no; then
15017    # Linking always hardcodes the temporary library directory.
15018    hardcode_action_CXX=relink
15019  else
15020    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15021    hardcode_action_CXX=immediate
15022  fi
15023else
15024  # We cannot hardcode anything, or else we can only hardcode existing
15025  # directories.
15026  hardcode_action_CXX=unsupported
15027fi
15028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15029$as_echo "$hardcode_action_CXX" >&6; }
15030
15031if test "$hardcode_action_CXX" = relink ||
15032   test "$inherit_rpath_CXX" = yes; then
15033  # Fast installation is not supported
15034  enable_fast_install=no
15035elif test "$shlibpath_overrides_runpath" = yes ||
15036     test "$enable_shared" = no; then
15037  # Fast installation is not necessary
15038  enable_fast_install=needless
15039fi
15040
15041
15042
15043
15044
15045
15046
15047  fi # test -n "$compiler"
15048
15049  CC=$lt_save_CC
15050  CFLAGS=$lt_save_CFLAGS
15051  LDCXX=$LD
15052  LD=$lt_save_LD
15053  GCC=$lt_save_GCC
15054  with_gnu_ld=$lt_save_with_gnu_ld
15055  lt_cv_path_LDCXX=$lt_cv_path_LD
15056  lt_cv_path_LD=$lt_save_path_LD
15057  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15058  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15059fi # test "$_lt_caught_CXX_error" != yes
15060
15061ac_ext=c
15062ac_cpp='$CPP $CPPFLAGS'
15063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15065ac_compiler_gnu=$ac_cv_c_compiler_gnu
15066
15067
15068# Find a good install program.  We prefer a C program (faster),
15069# so one script is as good as another.  But avoid the broken or
15070# incompatible versions:
15071# SysV /etc/install, /usr/sbin/install
15072# SunOS /usr/etc/install
15073# IRIX /sbin/install
15074# AIX /bin/install
15075# AmigaOS /C/install, which installs bootblocks on floppy discs
15076# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15077# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15078# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15079# OS/2's system install, which has a completely different semantic
15080# ./install, which can be erroneously created by make from ./install.sh.
15081# Reject install programs that cannot install multiple files.
15082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15083$as_echo_n "checking for a BSD-compatible install... " >&6; }
15084if test -z "$INSTALL"; then
15085if ${ac_cv_path_install+:} false; then :
15086  $as_echo_n "(cached) " >&6
15087else
15088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15089for as_dir in $PATH
15090do
15091  IFS=$as_save_IFS
15092  test -z "$as_dir" && as_dir=.
15093    # Account for people who put trailing slashes in PATH elements.
15094case $as_dir/ in #((
15095  ./ | .// | /[cC]/* | \
15096  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15097  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15098  /usr/ucb/* ) ;;
15099  *)
15100    # OSF1 and SCO ODT 3.0 have their own names for install.
15101    # Don't use installbsd from OSF since it installs stuff as root
15102    # by default.
15103    for ac_prog in ginstall scoinst install; do
15104      for ac_exec_ext in '' $ac_executable_extensions; do
15105	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15106	  if test $ac_prog = install &&
15107	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15108	    # AIX install.  It has an incompatible calling convention.
15109	    :
15110	  elif test $ac_prog = install &&
15111	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15112	    # program-specific install script used by HP pwplus--don't use.
15113	    :
15114	  else
15115	    rm -rf conftest.one conftest.two conftest.dir
15116	    echo one > conftest.one
15117	    echo two > conftest.two
15118	    mkdir conftest.dir
15119	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15120	      test -s conftest.one && test -s conftest.two &&
15121	      test -s conftest.dir/conftest.one &&
15122	      test -s conftest.dir/conftest.two
15123	    then
15124	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15125	      break 3
15126	    fi
15127	  fi
15128	fi
15129      done
15130    done
15131    ;;
15132esac
15133
15134  done
15135IFS=$as_save_IFS
15136
15137rm -rf conftest.one conftest.two conftest.dir
15138
15139fi
15140  if test "${ac_cv_path_install+set}" = set; then
15141    INSTALL=$ac_cv_path_install
15142  else
15143    # As a last resort, use the slow shell script.  Don't cache a
15144    # value for INSTALL within a source directory, because that will
15145    # break other packages using the cache if that directory is
15146    # removed, or if the value is a relative name.
15147    INSTALL=$ac_install_sh
15148  fi
15149fi
15150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15151$as_echo "$INSTALL" >&6; }
15152
15153# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15154# It thinks the first close brace ends the variable substitution.
15155test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15156
15157test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15158
15159test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15160
15161
15162if test "$GCC" = yes ; then
15163                        OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
15164    CFLAGS="$OLDCFLAGS -fexceptions"
15165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
15166$as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
15167    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168/* end confdefs.h.  */
15169
15170int
15171main ()
15172{
15173
15174  ;
15175  return 0;
15176}
15177_ACEOF
15178if ac_fn_c_try_link "$LINENO"; then :
15179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15180$as_echo "yes" >&6; }
15181else
15182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15183$as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
15184fi
15185rm -f core conftest.err conftest.$ac_objext \
15186    conftest$ac_exeext conftest.$ac_ext
15187    CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
15188fi
15189
15190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15191$as_echo_n "checking for ANSI C header files... " >&6; }
15192if ${ac_cv_header_stdc+:} false; then :
15193  $as_echo_n "(cached) " >&6
15194else
15195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196/* end confdefs.h.  */
15197#include <stdlib.h>
15198#include <stdarg.h>
15199#include <string.h>
15200#include <float.h>
15201
15202int
15203main ()
15204{
15205
15206  ;
15207  return 0;
15208}
15209_ACEOF
15210if ac_fn_c_try_compile "$LINENO"; then :
15211  ac_cv_header_stdc=yes
15212else
15213  ac_cv_header_stdc=no
15214fi
15215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15216
15217if test $ac_cv_header_stdc = yes; then
15218  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220/* end confdefs.h.  */
15221#include <string.h>
15222
15223_ACEOF
15224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15225  $EGREP "memchr" >/dev/null 2>&1; then :
15226
15227else
15228  ac_cv_header_stdc=no
15229fi
15230rm -f conftest*
15231
15232fi
15233
15234if test $ac_cv_header_stdc = yes; then
15235  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237/* end confdefs.h.  */
15238#include <stdlib.h>
15239
15240_ACEOF
15241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15242  $EGREP "free" >/dev/null 2>&1; then :
15243
15244else
15245  ac_cv_header_stdc=no
15246fi
15247rm -f conftest*
15248
15249fi
15250
15251if test $ac_cv_header_stdc = yes; then
15252  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15253  if test "$cross_compiling" = yes; then :
15254  :
15255else
15256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257/* end confdefs.h.  */
15258#include <ctype.h>
15259#include <stdlib.h>
15260#if ((' ' & 0x0FF) == 0x020)
15261# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15262# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15263#else
15264# define ISLOWER(c) \
15265		   (('a' <= (c) && (c) <= 'i') \
15266		     || ('j' <= (c) && (c) <= 'r') \
15267		     || ('s' <= (c) && (c) <= 'z'))
15268# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15269#endif
15270
15271#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15272int
15273main ()
15274{
15275  int i;
15276  for (i = 0; i < 256; i++)
15277    if (XOR (islower (i), ISLOWER (i))
15278	|| toupper (i) != TOUPPER (i))
15279      return 2;
15280  return 0;
15281}
15282_ACEOF
15283if ac_fn_c_try_run "$LINENO"; then :
15284
15285else
15286  ac_cv_header_stdc=no
15287fi
15288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15289  conftest.$ac_objext conftest.beam conftest.$ac_ext
15290fi
15291
15292fi
15293fi
15294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15295$as_echo "$ac_cv_header_stdc" >&6; }
15296if test $ac_cv_header_stdc = yes; then
15297
15298$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15299
15300fi
15301
15302
15303
15304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15305$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15306if ${ac_cv_c_bigendian+:} false; then :
15307  $as_echo_n "(cached) " >&6
15308else
15309  ac_cv_c_bigendian=unknown
15310# See if sys/param.h defines the BYTE_ORDER macro.
15311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312/* end confdefs.h.  */
15313#include <sys/types.h>
15314#include <sys/param.h>
15315int
15316main ()
15317{
15318
15319#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15320 bogus endian macros
15321#endif
15322  ;
15323  return 0;
15324}
15325_ACEOF
15326if ac_fn_c_try_compile "$LINENO"; then :
15327  # It does; now see whether it defined to BIG_ENDIAN or not.
15328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329/* end confdefs.h.  */
15330#include <sys/types.h>
15331#include <sys/param.h>
15332int
15333main ()
15334{
15335
15336#if BYTE_ORDER != BIG_ENDIAN
15337 not big endian
15338#endif
15339  ;
15340  return 0;
15341}
15342_ACEOF
15343if ac_fn_c_try_compile "$LINENO"; then :
15344  ac_cv_c_bigendian=yes
15345else
15346  ac_cv_c_bigendian=no
15347fi
15348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349fi
15350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15351if test $ac_cv_c_bigendian = unknown; then
15352if test "$cross_compiling" = yes; then :
15353   echo $ac_n "cross-compiling... " 2>&6
15354else
15355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356/* end confdefs.h.  */
15357main () {
15358  /* Are we little or big endian?  From Harbison&Steele.  */
15359  union
15360  {
15361    long l;
15362    char c[sizeof (long)];
15363  } u;
15364  u.l = 1;
15365  exit (u.c[sizeof (long) - 1] == 1);
15366}
15367_ACEOF
15368if ac_fn_c_try_run "$LINENO"; then :
15369  ac_cv_c_bigendian=no
15370else
15371  ac_cv_c_bigendian=yes
15372fi
15373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15374  conftest.$ac_objext conftest.beam conftest.$ac_ext
15375fi
15376
15377fi
15378fi
15379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15380$as_echo "$ac_cv_c_bigendian" >&6; }
15381if test $ac_cv_c_bigendian = unknown; then
15382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
15383$as_echo_n "checking to probe for byte ordering... " >&6; }
15384
15385cat >conftest.c <<EOF
15386short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15387short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15388void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
15389short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15390short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15391void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
15392int main() { _ascii (); _ebcdic (); return 0; }
15393EOF
15394 if test -f conftest.c ; then
15395     if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
15396        if test `grep -l BIGenDianSyS conftest.o` ; then
15397           echo $ac_n ' big endian probe OK, ' 1>&6
15398           ac_cv_c_bigendian=yes
15399        fi
15400        if test `grep -l LiTTleEnDian conftest.o` ; then
15401           echo $ac_n ' little endian probe OK, ' 1>&6
15402           if test $ac_cv_c_bigendian = yes ; then
15403            ac_cv_c_bigendian=unknown;
15404           else
15405            ac_cv_c_bigendian=no
15406           fi
15407        fi
15408        echo $ac_n 'guessing bigendian ...  ' >&6
15409     fi
15410  fi
15411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15412$as_echo "$ac_cv_c_bigendian" >&6; }
15413fi
15414if test $ac_cv_c_bigendian = yes; then
15415
15416$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15417
15418  BYTEORDER=4321
15419else
15420  BYTEORDER=1234
15421fi
15422
15423cat >>confdefs.h <<_ACEOF
15424#define BYTEORDER $BYTEORDER
15425_ACEOF
15426
15427if test $ac_cv_c_bigendian = unknown; then
15428  as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
15429fi
15430
15431
15432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15433$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15434if ${ac_cv_c_const+:} false; then :
15435  $as_echo_n "(cached) " >&6
15436else
15437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438/* end confdefs.h.  */
15439
15440int
15441main ()
15442{
15443/* FIXME: Include the comments suggested by Paul. */
15444#ifndef __cplusplus
15445  /* Ultrix mips cc rejects this.  */
15446  typedef int charset[2];
15447  const charset cs;
15448  /* SunOS 4.1.1 cc rejects this.  */
15449  char const *const *pcpcc;
15450  char **ppc;
15451  /* NEC SVR4.0.2 mips cc rejects this.  */
15452  struct point {int x, y;};
15453  static struct point const zero = {0,0};
15454  /* AIX XL C 1.02.0.0 rejects this.
15455     It does not let you subtract one const X* pointer from another in
15456     an arm of an if-expression whose if-part is not a constant
15457     expression */
15458  const char *g = "string";
15459  pcpcc = &g + (g ? g-g : 0);
15460  /* HPUX 7.0 cc rejects these. */
15461  ++pcpcc;
15462  ppc = (char**) pcpcc;
15463  pcpcc = (char const *const *) ppc;
15464  { /* SCO 3.2v4 cc rejects this.  */
15465    char *t;
15466    char const *s = 0 ? (char *) 0 : (char const *) 0;
15467
15468    *t++ = 0;
15469    if (s) return 0;
15470  }
15471  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15472    int x[] = {25, 17};
15473    const int *foo = &x[0];
15474    ++foo;
15475  }
15476  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15477    typedef const int *iptr;
15478    iptr p = 0;
15479    ++p;
15480  }
15481  { /* AIX XL C 1.02.0.0 rejects this saying
15482       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15483    struct s { int j; const int *ap[3]; };
15484    struct s *b; b->j = 5;
15485  }
15486  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15487    const int foo = 10;
15488    if (!foo) return 0;
15489  }
15490  return !cs[0] && !zero.x;
15491#endif
15492
15493  ;
15494  return 0;
15495}
15496_ACEOF
15497if ac_fn_c_try_compile "$LINENO"; then :
15498  ac_cv_c_const=yes
15499else
15500  ac_cv_c_const=no
15501fi
15502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503fi
15504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15505$as_echo "$ac_cv_c_const" >&6; }
15506if test $ac_cv_c_const = no; then
15507
15508$as_echo "#define const /**/" >>confdefs.h
15509
15510fi
15511
15512ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15513if test "x$ac_cv_type_size_t" = xyes; then :
15514
15515else
15516
15517cat >>confdefs.h <<_ACEOF
15518#define size_t unsigned int
15519_ACEOF
15520
15521fi
15522
15523for ac_func in memmove bcopy
15524do :
15525  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15526ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15527if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15528  cat >>confdefs.h <<_ACEOF
15529#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15530_ACEOF
15531
15532fi
15533done
15534
15535
15536for ac_header in fcntl.h unistd.h
15537do :
15538  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15539ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15540if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15541  cat >>confdefs.h <<_ACEOF
15542#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15543_ACEOF
15544
15545fi
15546
15547done
15548
15549ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15550if test "x$ac_cv_type_off_t" = xyes; then :
15551
15552else
15553
15554cat >>confdefs.h <<_ACEOF
15555#define off_t long int
15556_ACEOF
15557
15558fi
15559
15560
15561
15562
15563  for ac_header in $ac_header_list
15564do :
15565  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15566ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15567"
15568if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15569  cat >>confdefs.h <<_ACEOF
15570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15571_ACEOF
15572
15573fi
15574
15575done
15576
15577
15578
15579
15580
15581
15582
15583
15584for ac_func in getpagesize
15585do :
15586  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15587if test "x$ac_cv_func_getpagesize" = xyes; then :
15588  cat >>confdefs.h <<_ACEOF
15589#define HAVE_GETPAGESIZE 1
15590_ACEOF
15591
15592fi
15593done
15594
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15596$as_echo_n "checking for working mmap... " >&6; }
15597if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15598  $as_echo_n "(cached) " >&6
15599else
15600  if test "$cross_compiling" = yes; then :
15601  ac_cv_func_mmap_fixed_mapped=no
15602else
15603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604/* end confdefs.h.  */
15605$ac_includes_default
15606/* malloc might have been renamed as rpl_malloc. */
15607#undef malloc
15608
15609/* Thanks to Mike Haertel and Jim Avera for this test.
15610   Here is a matrix of mmap possibilities:
15611	mmap private not fixed
15612	mmap private fixed at somewhere currently unmapped
15613	mmap private fixed at somewhere already mapped
15614	mmap shared not fixed
15615	mmap shared fixed at somewhere currently unmapped
15616	mmap shared fixed at somewhere already mapped
15617   For private mappings, we should verify that changes cannot be read()
15618   back from the file, nor mmap's back from the file at a different
15619   address.  (There have been systems where private was not correctly
15620   implemented like the infamous i386 svr4.0, and systems where the
15621   VM page cache was not coherent with the file system buffer cache
15622   like early versions of FreeBSD and possibly contemporary NetBSD.)
15623   For shared mappings, we should conversely verify that changes get
15624   propagated back to all the places they're supposed to be.
15625
15626   Grep wants private fixed already mapped.
15627   The main things grep needs to know about mmap are:
15628   * does it exist and is it safe to write into the mmap'd area
15629   * how to use it (BSD variants)  */
15630
15631#include <fcntl.h>
15632#include <sys/mman.h>
15633
15634#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15635char *malloc ();
15636#endif
15637
15638/* This mess was copied from the GNU getpagesize.h.  */
15639#ifndef HAVE_GETPAGESIZE
15640# ifdef _SC_PAGESIZE
15641#  define getpagesize() sysconf(_SC_PAGESIZE)
15642# else /* no _SC_PAGESIZE */
15643#  ifdef HAVE_SYS_PARAM_H
15644#   include <sys/param.h>
15645#   ifdef EXEC_PAGESIZE
15646#    define getpagesize() EXEC_PAGESIZE
15647#   else /* no EXEC_PAGESIZE */
15648#    ifdef NBPG
15649#     define getpagesize() NBPG * CLSIZE
15650#     ifndef CLSIZE
15651#      define CLSIZE 1
15652#     endif /* no CLSIZE */
15653#    else /* no NBPG */
15654#     ifdef NBPC
15655#      define getpagesize() NBPC
15656#     else /* no NBPC */
15657#      ifdef PAGESIZE
15658#       define getpagesize() PAGESIZE
15659#      endif /* PAGESIZE */
15660#     endif /* no NBPC */
15661#    endif /* no NBPG */
15662#   endif /* no EXEC_PAGESIZE */
15663#  else /* no HAVE_SYS_PARAM_H */
15664#   define getpagesize() 8192	/* punt totally */
15665#  endif /* no HAVE_SYS_PARAM_H */
15666# endif /* no _SC_PAGESIZE */
15667
15668#endif /* no HAVE_GETPAGESIZE */
15669
15670int
15671main ()
15672{
15673  char *data, *data2, *data3;
15674  const char *cdata2;
15675  int i, pagesize;
15676  int fd, fd2;
15677
15678  pagesize = getpagesize ();
15679
15680  /* First, make a file with some known garbage in it. */
15681  data = (char *) malloc (pagesize);
15682  if (!data)
15683    return 1;
15684  for (i = 0; i < pagesize; ++i)
15685    *(data + i) = rand ();
15686  umask (0);
15687  fd = creat ("conftest.mmap", 0600);
15688  if (fd < 0)
15689    return 2;
15690  if (write (fd, data, pagesize) != pagesize)
15691    return 3;
15692  close (fd);
15693
15694  /* Next, check that the tail of a page is zero-filled.  File must have
15695     non-zero length, otherwise we risk SIGBUS for entire page.  */
15696  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15697  if (fd2 < 0)
15698    return 4;
15699  cdata2 = "";
15700  if (write (fd2, cdata2, 1) != 1)
15701    return 5;
15702  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15703  if (data2 == MAP_FAILED)
15704    return 6;
15705  for (i = 0; i < pagesize; ++i)
15706    if (*(data2 + i))
15707      return 7;
15708  close (fd2);
15709  if (munmap (data2, pagesize))
15710    return 8;
15711
15712  /* Next, try to mmap the file at a fixed address which already has
15713     something else allocated at it.  If we can, also make sure that
15714     we see the same garbage.  */
15715  fd = open ("conftest.mmap", O_RDWR);
15716  if (fd < 0)
15717    return 9;
15718  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15719		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
15720    return 10;
15721  for (i = 0; i < pagesize; ++i)
15722    if (*(data + i) != *(data2 + i))
15723      return 11;
15724
15725  /* Finally, make sure that changes to the mapped area do not
15726     percolate back to the file as seen by read().  (This is a bug on
15727     some variants of i386 svr4.0.)  */
15728  for (i = 0; i < pagesize; ++i)
15729    *(data2 + i) = *(data2 + i) + 1;
15730  data3 = (char *) malloc (pagesize);
15731  if (!data3)
15732    return 12;
15733  if (read (fd, data3, pagesize) != pagesize)
15734    return 13;
15735  for (i = 0; i < pagesize; ++i)
15736    if (*(data + i) != *(data3 + i))
15737      return 14;
15738  close (fd);
15739  return 0;
15740}
15741_ACEOF
15742if ac_fn_c_try_run "$LINENO"; then :
15743  ac_cv_func_mmap_fixed_mapped=yes
15744else
15745  ac_cv_func_mmap_fixed_mapped=no
15746fi
15747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15748  conftest.$ac_objext conftest.beam conftest.$ac_ext
15749fi
15750
15751fi
15752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15753$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15754if test $ac_cv_func_mmap_fixed_mapped = yes; then
15755
15756$as_echo "#define HAVE_MMAP 1" >>confdefs.h
15757
15758fi
15759rm -f conftest.mmap conftest.txt
15760
15761
15762if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
15763    FILEMAP=unixfilemap
15764else
15765    FILEMAP=readfilemap
15766fi
15767
15768
15769
15770# AC_CPP_FUNC
15771# ------------------ #
15772# Checks to see if ANSI C99 CPP variable __func__ works.
15773# If not, perhaps __FUNCTION__ works instead.
15774# If not, we'll just define __func__ to "".
15775# AC_CPP_FUNC
15776
15777   case $ac_cv_prog_cc_stdc in #(
15778  no) :
15779    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
15780  *) :
15781    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
15782$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
15783if ${ac_cv_prog_cc_c99+:} false; then :
15784  $as_echo_n "(cached) " >&6
15785else
15786  ac_cv_prog_cc_c99=no
15787ac_save_CC=$CC
15788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789/* end confdefs.h.  */
15790#include <stdarg.h>
15791#include <stdbool.h>
15792#include <stdlib.h>
15793#include <wchar.h>
15794#include <stdio.h>
15795
15796// Check varargs macros.  These examples are taken from C99 6.10.3.5.
15797#define debug(...) fprintf (stderr, __VA_ARGS__)
15798#define showlist(...) puts (#__VA_ARGS__)
15799#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
15800static void
15801test_varargs_macros (void)
15802{
15803  int x = 1234;
15804  int y = 5678;
15805  debug ("Flag");
15806  debug ("X = %d\n", x);
15807  showlist (The first, second, and third items.);
15808  report (x>y, "x is %d but y is %d", x, y);
15809}
15810
15811// Check long long types.
15812#define BIG64 18446744073709551615ull
15813#define BIG32 4294967295ul
15814#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
15815#if !BIG_OK
15816  your preprocessor is broken;
15817#endif
15818#if BIG_OK
15819#else
15820  your preprocessor is broken;
15821#endif
15822static long long int bignum = -9223372036854775807LL;
15823static unsigned long long int ubignum = BIG64;
15824
15825struct incomplete_array
15826{
15827  int datasize;
15828  double data[];
15829};
15830
15831struct named_init {
15832  int number;
15833  const wchar_t *name;
15834  double average;
15835};
15836
15837typedef const char *ccp;
15838
15839static inline int
15840test_restrict (ccp restrict text)
15841{
15842  // See if C++-style comments work.
15843  // Iterate through items via the restricted pointer.
15844  // Also check for declarations in for loops.
15845  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
15846    continue;
15847  return 0;
15848}
15849
15850// Check varargs and va_copy.
15851static void
15852test_varargs (const char *format, ...)
15853{
15854  va_list args;
15855  va_start (args, format);
15856  va_list args_copy;
15857  va_copy (args_copy, args);
15858
15859  const char *str;
15860  int number;
15861  float fnumber;
15862
15863  while (*format)
15864    {
15865      switch (*format++)
15866	{
15867	case 's': // string
15868	  str = va_arg (args_copy, const char *);
15869	  break;
15870	case 'd': // int
15871	  number = va_arg (args_copy, int);
15872	  break;
15873	case 'f': // float
15874	  fnumber = va_arg (args_copy, double);
15875	  break;
15876	default:
15877	  break;
15878	}
15879    }
15880  va_end (args_copy);
15881  va_end (args);
15882}
15883
15884int
15885main ()
15886{
15887
15888  // Check bool.
15889  _Bool success = false;
15890
15891  // Check restrict.
15892  if (test_restrict ("String literal") == 0)
15893    success = true;
15894  char *restrict newvar = "Another string";
15895
15896  // Check varargs.
15897  test_varargs ("s, d' f .", "string", 65, 34.234);
15898  test_varargs_macros ();
15899
15900  // Check flexible array members.
15901  struct incomplete_array *ia =
15902    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
15903  ia->datasize = 10;
15904  for (int i = 0; i < ia->datasize; ++i)
15905    ia->data[i] = i * 1.234;
15906
15907  // Check named initializers.
15908  struct named_init ni = {
15909    .number = 34,
15910    .name = L"Test wide string",
15911    .average = 543.34343,
15912  };
15913
15914  ni.number = 58;
15915
15916  int dynamic_array[ni.number];
15917  dynamic_array[ni.number - 1] = 543;
15918
15919  // work around unused variable warnings
15920  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
15921	  || dynamic_array[ni.number - 1] != 543);
15922
15923  ;
15924  return 0;
15925}
15926_ACEOF
15927for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
15928do
15929  CC="$ac_save_CC $ac_arg"
15930  if ac_fn_c_try_compile "$LINENO"; then :
15931  ac_cv_prog_cc_c99=$ac_arg
15932fi
15933rm -f core conftest.err conftest.$ac_objext
15934  test "x$ac_cv_prog_cc_c99" != "xno" && break
15935done
15936rm -f conftest.$ac_ext
15937CC=$ac_save_CC
15938
15939fi
15940# AC_CACHE_VAL
15941case "x$ac_cv_prog_cc_c99" in
15942  x)
15943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15944$as_echo "none needed" >&6; } ;;
15945  xno)
15946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15947$as_echo "unsupported" >&6; } ;;
15948  *)
15949    CC="$CC $ac_cv_prog_cc_c99"
15950    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
15951$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
15952esac
15953if test "x$ac_cv_prog_cc_c99" != xno; then :
15954  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15955else
15956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
15957$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
15958if ${ac_cv_prog_cc_c89+:} false; then :
15959  $as_echo_n "(cached) " >&6
15960else
15961  ac_cv_prog_cc_c89=no
15962ac_save_CC=$CC
15963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964/* end confdefs.h.  */
15965#include <stdarg.h>
15966#include <stdio.h>
15967#include <sys/types.h>
15968#include <sys/stat.h>
15969/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15970struct buf { int x; };
15971FILE * (*rcsopen) (struct buf *, struct stat *, int);
15972static char *e (p, i)
15973     char **p;
15974     int i;
15975{
15976  return p[i];
15977}
15978static char *f (char * (*g) (char **, int), char **p, ...)
15979{
15980  char *s;
15981  va_list v;
15982  va_start (v,p);
15983  s = g (p, va_arg (v,int));
15984  va_end (v);
15985  return s;
15986}
15987
15988/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15989   function prototypes and stuff, but not '\xHH' hex character constants.
15990   These don't provoke an error unfortunately, instead are silently treated
15991   as 'x'.  The following induces an error, until -std is added to get
15992   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15993   array size at least.  It's necessary to write '\x00'==0 to get something
15994   that's true only with -std.  */
15995int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15996
15997/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15998   inside strings and character constants.  */
15999#define FOO(x) 'x'
16000int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16001
16002int test (int i, double x);
16003struct s1 {int (*f) (int a);};
16004struct s2 {int (*f) (double a);};
16005int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16006int argc;
16007char **argv;
16008int
16009main ()
16010{
16011return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16012  ;
16013  return 0;
16014}
16015_ACEOF
16016for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16017	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16018do
16019  CC="$ac_save_CC $ac_arg"
16020  if ac_fn_c_try_compile "$LINENO"; then :
16021  ac_cv_prog_cc_c89=$ac_arg
16022fi
16023rm -f core conftest.err conftest.$ac_objext
16024  test "x$ac_cv_prog_cc_c89" != "xno" && break
16025done
16026rm -f conftest.$ac_ext
16027CC=$ac_save_CC
16028
16029fi
16030# AC_CACHE_VAL
16031case "x$ac_cv_prog_cc_c89" in
16032  x)
16033    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16034$as_echo "none needed" >&6; } ;;
16035  xno)
16036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16037$as_echo "unsupported" >&6; } ;;
16038  *)
16039    CC="$CC $ac_cv_prog_cc_c89"
16040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16041$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16042esac
16043if test "x$ac_cv_prog_cc_c89" != xno; then :
16044  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
16045else
16046  ac_cv_prog_cc_stdc=no
16047fi
16048
16049fi
16050 ;;
16051esac
16052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
16053$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
16054  if ${ac_cv_prog_cc_stdc+:} false; then :
16055  $as_echo_n "(cached) " >&6
16056fi
16057
16058  case $ac_cv_prog_cc_stdc in #(
16059  no) :
16060    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16061$as_echo "unsupported" >&6; } ;; #(
16062  '') :
16063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16064$as_echo "none needed" >&6; } ;; #(
16065  *) :
16066    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
16067$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
16068esac
16069
16070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5
16071$as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; }
16072if ${ac_cv_cpp_func+:} false; then :
16073  $as_echo_n "(cached) " >&6
16074else
16075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076/* end confdefs.h.  */
16077
16078int
16079main ()
16080{
16081char *foo = __func__;
16082  ;
16083  return 0;
16084}
16085_ACEOF
16086if ac_fn_c_try_compile "$LINENO"; then :
16087  ac_cv_cpp_func=yes
16088else
16089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090/* end confdefs.h.  */
16091
16092int
16093main ()
16094{
16095char *foo = __FUNCTION__;
16096  ;
16097  return 0;
16098}
16099_ACEOF
16100if ac_fn_c_try_compile "$LINENO"; then :
16101  ac_cv_cpp_func=__FUNCTION__
16102else
16103  ac_cv_cpp_func=no
16104fi
16105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16106fi
16107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16108fi
16109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5
16110$as_echo "$ac_cv_cpp_func" >&6; }
16111if test $ac_cv_cpp_func = __FUNCTION__; then
16112
16113$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
16114
16115elif test $ac_cv_cpp_func = no; then
16116
16117$as_echo "#define __func__ \"\"" >>confdefs.h
16118
16119fi
16120
16121
16122
16123
16124$as_echo "#define XML_NS 1" >>confdefs.h
16125
16126
16127$as_echo "#define XML_DTD 1" >>confdefs.h
16128
16129
16130$as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h
16131
16132
16133ac_config_files="$ac_config_files Makefile expat.pc"
16134
16135cat >confcache <<\_ACEOF
16136# This file is a shell script that caches the results of configure
16137# tests run on this system so they can be shared between configure
16138# scripts and configure runs, see configure's option --config-cache.
16139# It is not useful on other systems.  If it contains results you don't
16140# want to keep, you may remove or edit it.
16141#
16142# config.status only pays attention to the cache file if you give it
16143# the --recheck option to rerun configure.
16144#
16145# `ac_cv_env_foo' variables (set or unset) will be overridden when
16146# loading this file, other *unset* `ac_cv_foo' will be assigned the
16147# following values.
16148
16149_ACEOF
16150
16151# The following way of writing the cache mishandles newlines in values,
16152# but we know of no workaround that is simple, portable, and efficient.
16153# So, we kill variables containing newlines.
16154# Ultrix sh set writes to stderr and can't be redirected directly,
16155# and sets the high bit in the cache file unless we assign to the vars.
16156(
16157  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16158    eval ac_val=\$$ac_var
16159    case $ac_val in #(
16160    *${as_nl}*)
16161      case $ac_var in #(
16162      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16163$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16164      esac
16165      case $ac_var in #(
16166      _ | IFS | as_nl) ;; #(
16167      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16168      *) { eval $ac_var=; unset $ac_var;} ;;
16169      esac ;;
16170    esac
16171  done
16172
16173  (set) 2>&1 |
16174    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16175    *${as_nl}ac_space=\ *)
16176      # `set' does not quote correctly, so add quotes: double-quote
16177      # substitution turns \\\\ into \\, and sed turns \\ into \.
16178      sed -n \
16179	"s/'/'\\\\''/g;
16180	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16181      ;; #(
16182    *)
16183      # `set' quotes correctly as required by POSIX, so do not add quotes.
16184      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16185      ;;
16186    esac |
16187    sort
16188) |
16189  sed '
16190     /^ac_cv_env_/b end
16191     t clear
16192     :clear
16193     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16194     t end
16195     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16196     :end' >>confcache
16197if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16198  if test -w "$cache_file"; then
16199    if test "x$cache_file" != "x/dev/null"; then
16200      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16201$as_echo "$as_me: updating cache $cache_file" >&6;}
16202      if test ! -f "$cache_file" || test -h "$cache_file"; then
16203	cat confcache >"$cache_file"
16204      else
16205        case $cache_file in #(
16206        */* | ?:*)
16207	  mv -f confcache "$cache_file"$$ &&
16208	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16209        *)
16210	  mv -f confcache "$cache_file" ;;
16211	esac
16212      fi
16213    fi
16214  else
16215    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16216$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16217  fi
16218fi
16219rm -f confcache
16220
16221test "x$prefix" = xNONE && prefix=$ac_default_prefix
16222# Let make expand exec_prefix.
16223test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16224
16225DEFS=-DHAVE_CONFIG_H
16226
16227ac_libobjs=
16228ac_ltlibobjs=
16229U=
16230for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16231  # 1. Remove the extension, and $U if already installed.
16232  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16233  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16234  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16235  #    will be set to the directory where LIBOBJS objects are built.
16236  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16237  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16238done
16239LIBOBJS=$ac_libobjs
16240
16241LTLIBOBJS=$ac_ltlibobjs
16242
16243
16244
16245: "${CONFIG_STATUS=./config.status}"
16246ac_write_fail=0
16247ac_clean_files_save=$ac_clean_files
16248ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16249{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16250$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16251as_write_fail=0
16252cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16253#! $SHELL
16254# Generated by $as_me.
16255# Run this file to recreate the current configuration.
16256# Compiler output produced by configure, useful for debugging
16257# configure, is in config.log if it exists.
16258
16259debug=false
16260ac_cs_recheck=false
16261ac_cs_silent=false
16262
16263SHELL=\${CONFIG_SHELL-$SHELL}
16264export SHELL
16265_ASEOF
16266cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16267## -------------------- ##
16268## M4sh Initialization. ##
16269## -------------------- ##
16270
16271# Be more Bourne compatible
16272DUALCASE=1; export DUALCASE # for MKS sh
16273if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16274  emulate sh
16275  NULLCMD=:
16276  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16277  # is contrary to our usage.  Disable this feature.
16278  alias -g '${1+"$@"}'='"$@"'
16279  setopt NO_GLOB_SUBST
16280else
16281  case `(set -o) 2>/dev/null` in #(
16282  *posix*) :
16283    set -o posix ;; #(
16284  *) :
16285     ;;
16286esac
16287fi
16288
16289
16290as_nl='
16291'
16292export as_nl
16293# Printing a long string crashes Solaris 7 /usr/bin/printf.
16294as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16295as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16296as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16297# Prefer a ksh shell builtin over an external printf program on Solaris,
16298# but without wasting forks for bash or zsh.
16299if test -z "$BASH_VERSION$ZSH_VERSION" \
16300    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16301  as_echo='print -r --'
16302  as_echo_n='print -rn --'
16303elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16304  as_echo='printf %s\n'
16305  as_echo_n='printf %s'
16306else
16307  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16308    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16309    as_echo_n='/usr/ucb/echo -n'
16310  else
16311    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16312    as_echo_n_body='eval
16313      arg=$1;
16314      case $arg in #(
16315      *"$as_nl"*)
16316	expr "X$arg" : "X\\(.*\\)$as_nl";
16317	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16318      esac;
16319      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16320    '
16321    export as_echo_n_body
16322    as_echo_n='sh -c $as_echo_n_body as_echo'
16323  fi
16324  export as_echo_body
16325  as_echo='sh -c $as_echo_body as_echo'
16326fi
16327
16328# The user is always right.
16329if test "${PATH_SEPARATOR+set}" != set; then
16330  PATH_SEPARATOR=:
16331  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16332    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16333      PATH_SEPARATOR=';'
16334  }
16335fi
16336
16337
16338# IFS
16339# We need space, tab and new line, in precisely that order.  Quoting is
16340# there to prevent editors from complaining about space-tab.
16341# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16342# splitting by setting IFS to empty value.)
16343IFS=" ""	$as_nl"
16344
16345# Find who we are.  Look in the path if we contain no directory separator.
16346as_myself=
16347case $0 in #((
16348  *[\\/]* ) as_myself=$0 ;;
16349  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16350for as_dir in $PATH
16351do
16352  IFS=$as_save_IFS
16353  test -z "$as_dir" && as_dir=.
16354    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16355  done
16356IFS=$as_save_IFS
16357
16358     ;;
16359esac
16360# We did not find ourselves, most probably we were run as `sh COMMAND'
16361# in which case we are not to be found in the path.
16362if test "x$as_myself" = x; then
16363  as_myself=$0
16364fi
16365if test ! -f "$as_myself"; then
16366  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16367  exit 1
16368fi
16369
16370# Unset variables that we do not need and which cause bugs (e.g. in
16371# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16372# suppresses any "Segmentation fault" message there.  '((' could
16373# trigger a bug in pdksh 5.2.14.
16374for as_var in BASH_ENV ENV MAIL MAILPATH
16375do eval test x\${$as_var+set} = xset \
16376  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16377done
16378PS1='$ '
16379PS2='> '
16380PS4='+ '
16381
16382# NLS nuisances.
16383LC_ALL=C
16384export LC_ALL
16385LANGUAGE=C
16386export LANGUAGE
16387
16388# CDPATH.
16389(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16390
16391
16392# as_fn_error STATUS ERROR [LINENO LOG_FD]
16393# ----------------------------------------
16394# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16395# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16396# script with STATUS, using 1 if that was 0.
16397as_fn_error ()
16398{
16399  as_status=$1; test $as_status -eq 0 && as_status=1
16400  if test "$4"; then
16401    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16402    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16403  fi
16404  $as_echo "$as_me: error: $2" >&2
16405  as_fn_exit $as_status
16406} # as_fn_error
16407
16408
16409# as_fn_set_status STATUS
16410# -----------------------
16411# Set $? to STATUS, without forking.
16412as_fn_set_status ()
16413{
16414  return $1
16415} # as_fn_set_status
16416
16417# as_fn_exit STATUS
16418# -----------------
16419# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16420as_fn_exit ()
16421{
16422  set +e
16423  as_fn_set_status $1
16424  exit $1
16425} # as_fn_exit
16426
16427# as_fn_unset VAR
16428# ---------------
16429# Portably unset VAR.
16430as_fn_unset ()
16431{
16432  { eval $1=; unset $1;}
16433}
16434as_unset=as_fn_unset
16435# as_fn_append VAR VALUE
16436# ----------------------
16437# Append the text in VALUE to the end of the definition contained in VAR. Take
16438# advantage of any shell optimizations that allow amortized linear growth over
16439# repeated appends, instead of the typical quadratic growth present in naive
16440# implementations.
16441if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16442  eval 'as_fn_append ()
16443  {
16444    eval $1+=\$2
16445  }'
16446else
16447  as_fn_append ()
16448  {
16449    eval $1=\$$1\$2
16450  }
16451fi # as_fn_append
16452
16453# as_fn_arith ARG...
16454# ------------------
16455# Perform arithmetic evaluation on the ARGs, and store the result in the
16456# global $as_val. Take advantage of shells that can avoid forks. The arguments
16457# must be portable across $(()) and expr.
16458if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16459  eval 'as_fn_arith ()
16460  {
16461    as_val=$(( $* ))
16462  }'
16463else
16464  as_fn_arith ()
16465  {
16466    as_val=`expr "$@" || test $? -eq 1`
16467  }
16468fi # as_fn_arith
16469
16470
16471if expr a : '\(a\)' >/dev/null 2>&1 &&
16472   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16473  as_expr=expr
16474else
16475  as_expr=false
16476fi
16477
16478if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16479  as_basename=basename
16480else
16481  as_basename=false
16482fi
16483
16484if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16485  as_dirname=dirname
16486else
16487  as_dirname=false
16488fi
16489
16490as_me=`$as_basename -- "$0" ||
16491$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16492	 X"$0" : 'X\(//\)$' \| \
16493	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16494$as_echo X/"$0" |
16495    sed '/^.*\/\([^/][^/]*\)\/*$/{
16496	    s//\1/
16497	    q
16498	  }
16499	  /^X\/\(\/\/\)$/{
16500	    s//\1/
16501	    q
16502	  }
16503	  /^X\/\(\/\).*/{
16504	    s//\1/
16505	    q
16506	  }
16507	  s/.*/./; q'`
16508
16509# Avoid depending upon Character Ranges.
16510as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16511as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16512as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16513as_cr_digits='0123456789'
16514as_cr_alnum=$as_cr_Letters$as_cr_digits
16515
16516ECHO_C= ECHO_N= ECHO_T=
16517case `echo -n x` in #(((((
16518-n*)
16519  case `echo 'xy\c'` in
16520  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16521  xy)  ECHO_C='\c';;
16522  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16523       ECHO_T='	';;
16524  esac;;
16525*)
16526  ECHO_N='-n';;
16527esac
16528
16529rm -f conf$$ conf$$.exe conf$$.file
16530if test -d conf$$.dir; then
16531  rm -f conf$$.dir/conf$$.file
16532else
16533  rm -f conf$$.dir
16534  mkdir conf$$.dir 2>/dev/null
16535fi
16536if (echo >conf$$.file) 2>/dev/null; then
16537  if ln -s conf$$.file conf$$ 2>/dev/null; then
16538    as_ln_s='ln -s'
16539    # ... but there are two gotchas:
16540    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16541    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16542    # In both cases, we have to default to `cp -p'.
16543    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16544      as_ln_s='cp -p'
16545  elif ln conf$$.file conf$$ 2>/dev/null; then
16546    as_ln_s=ln
16547  else
16548    as_ln_s='cp -p'
16549  fi
16550else
16551  as_ln_s='cp -p'
16552fi
16553rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16554rmdir conf$$.dir 2>/dev/null
16555
16556
16557# as_fn_mkdir_p
16558# -------------
16559# Create "$as_dir" as a directory, including parents if necessary.
16560as_fn_mkdir_p ()
16561{
16562
16563  case $as_dir in #(
16564  -*) as_dir=./$as_dir;;
16565  esac
16566  test -d "$as_dir" || eval $as_mkdir_p || {
16567    as_dirs=
16568    while :; do
16569      case $as_dir in #(
16570      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16571      *) as_qdir=$as_dir;;
16572      esac
16573      as_dirs="'$as_qdir' $as_dirs"
16574      as_dir=`$as_dirname -- "$as_dir" ||
16575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16576	 X"$as_dir" : 'X\(//\)[^/]' \| \
16577	 X"$as_dir" : 'X\(//\)$' \| \
16578	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16579$as_echo X"$as_dir" |
16580    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16581	    s//\1/
16582	    q
16583	  }
16584	  /^X\(\/\/\)[^/].*/{
16585	    s//\1/
16586	    q
16587	  }
16588	  /^X\(\/\/\)$/{
16589	    s//\1/
16590	    q
16591	  }
16592	  /^X\(\/\).*/{
16593	    s//\1/
16594	    q
16595	  }
16596	  s/.*/./; q'`
16597      test -d "$as_dir" && break
16598    done
16599    test -z "$as_dirs" || eval "mkdir $as_dirs"
16600  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16601
16602
16603} # as_fn_mkdir_p
16604if mkdir -p . 2>/dev/null; then
16605  as_mkdir_p='mkdir -p "$as_dir"'
16606else
16607  test -d ./-p && rmdir ./-p
16608  as_mkdir_p=false
16609fi
16610
16611if test -x / >/dev/null 2>&1; then
16612  as_test_x='test -x'
16613else
16614  if ls -dL / >/dev/null 2>&1; then
16615    as_ls_L_option=L
16616  else
16617    as_ls_L_option=
16618  fi
16619  as_test_x='
16620    eval sh -c '\''
16621      if test -d "$1"; then
16622	test -d "$1/.";
16623      else
16624	case $1 in #(
16625	-*)set "./$1";;
16626	esac;
16627	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16628	???[sx]*):;;*)false;;esac;fi
16629    '\'' sh
16630  '
16631fi
16632as_executable_p=$as_test_x
16633
16634# Sed expression to map a string onto a valid CPP name.
16635as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16636
16637# Sed expression to map a string onto a valid variable name.
16638as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16639
16640
16641exec 6>&1
16642## ----------------------------------- ##
16643## Main body of $CONFIG_STATUS script. ##
16644## ----------------------------------- ##
16645_ASEOF
16646test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16647
16648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16649# Save the log message, to keep $0 and so on meaningful, and to
16650# report actual input values of CONFIG_FILES etc. instead of their
16651# values after options handling.
16652ac_log="
16653This file was extended by expat $as_me 2.1.0, which was
16654generated by GNU Autoconf 2.68.  Invocation command line was
16655
16656  CONFIG_FILES    = $CONFIG_FILES
16657  CONFIG_HEADERS  = $CONFIG_HEADERS
16658  CONFIG_LINKS    = $CONFIG_LINKS
16659  CONFIG_COMMANDS = $CONFIG_COMMANDS
16660  $ $0 $@
16661
16662on `(hostname || uname -n) 2>/dev/null | sed 1q`
16663"
16664
16665_ACEOF
16666
16667case $ac_config_files in *"
16668"*) set x $ac_config_files; shift; ac_config_files=$*;;
16669esac
16670
16671case $ac_config_headers in *"
16672"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16673esac
16674
16675
16676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16677# Files that config.status was made for.
16678config_files="$ac_config_files"
16679config_headers="$ac_config_headers"
16680config_commands="$ac_config_commands"
16681
16682_ACEOF
16683
16684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16685ac_cs_usage="\
16686\`$as_me' instantiates files and other configuration actions
16687from templates according to the current configuration.  Unless the files
16688and actions are specified as TAGs, all are instantiated by default.
16689
16690Usage: $0 [OPTION]... [TAG]...
16691
16692  -h, --help       print this help, then exit
16693  -V, --version    print version number and configuration settings, then exit
16694      --config     print configuration, then exit
16695  -q, --quiet, --silent
16696                   do not print progress messages
16697  -d, --debug      don't remove temporary files
16698      --recheck    update $as_me by reconfiguring in the same conditions
16699      --file=FILE[:TEMPLATE]
16700                   instantiate the configuration file FILE
16701      --header=FILE[:TEMPLATE]
16702                   instantiate the configuration header FILE
16703
16704Configuration files:
16705$config_files
16706
16707Configuration headers:
16708$config_headers
16709
16710Configuration commands:
16711$config_commands
16712
16713Report bugs to <expat-bugs@libexpat.org>."
16714
16715_ACEOF
16716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16717ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16718ac_cs_version="\\
16719expat config.status 2.1.0
16720configured by $0, generated by GNU Autoconf 2.68,
16721  with options \\"\$ac_cs_config\\"
16722
16723Copyright (C) 2010 Free Software Foundation, Inc.
16724This config.status script is free software; the Free Software Foundation
16725gives unlimited permission to copy, distribute and modify it."
16726
16727ac_pwd='$ac_pwd'
16728srcdir='$srcdir'
16729INSTALL='$INSTALL'
16730AWK='$AWK'
16731test -n "\$AWK" || AWK=awk
16732_ACEOF
16733
16734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16735# The default lists apply if the user does not specify any file.
16736ac_need_defaults=:
16737while test $# != 0
16738do
16739  case $1 in
16740  --*=?*)
16741    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16742    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16743    ac_shift=:
16744    ;;
16745  --*=)
16746    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16747    ac_optarg=
16748    ac_shift=:
16749    ;;
16750  *)
16751    ac_option=$1
16752    ac_optarg=$2
16753    ac_shift=shift
16754    ;;
16755  esac
16756
16757  case $ac_option in
16758  # Handling of the options.
16759  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16760    ac_cs_recheck=: ;;
16761  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16762    $as_echo "$ac_cs_version"; exit ;;
16763  --config | --confi | --conf | --con | --co | --c )
16764    $as_echo "$ac_cs_config"; exit ;;
16765  --debug | --debu | --deb | --de | --d | -d )
16766    debug=: ;;
16767  --file | --fil | --fi | --f )
16768    $ac_shift
16769    case $ac_optarg in
16770    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16771    '') as_fn_error $? "missing file argument" ;;
16772    esac
16773    as_fn_append CONFIG_FILES " '$ac_optarg'"
16774    ac_need_defaults=false;;
16775  --header | --heade | --head | --hea )
16776    $ac_shift
16777    case $ac_optarg in
16778    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16779    esac
16780    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16781    ac_need_defaults=false;;
16782  --he | --h)
16783    # Conflict between --help and --header
16784    as_fn_error $? "ambiguous option: \`$1'
16785Try \`$0 --help' for more information.";;
16786  --help | --hel | -h )
16787    $as_echo "$ac_cs_usage"; exit ;;
16788  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16789  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16790    ac_cs_silent=: ;;
16791
16792  # This is an error.
16793  -*) as_fn_error $? "unrecognized option: \`$1'
16794Try \`$0 --help' for more information." ;;
16795
16796  *) as_fn_append ac_config_targets " $1"
16797     ac_need_defaults=false ;;
16798
16799  esac
16800  shift
16801done
16802
16803ac_configure_extra_args=
16804
16805if $ac_cs_silent; then
16806  exec 6>/dev/null
16807  ac_configure_extra_args="$ac_configure_extra_args --silent"
16808fi
16809
16810_ACEOF
16811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16812if \$ac_cs_recheck; then
16813  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16814  shift
16815  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16816  CONFIG_SHELL='$SHELL'
16817  export CONFIG_SHELL
16818  exec "\$@"
16819fi
16820
16821_ACEOF
16822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16823exec 5>>config.log
16824{
16825  echo
16826  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16827## Running $as_me. ##
16828_ASBOX
16829  $as_echo "$ac_log"
16830} >&5
16831
16832_ACEOF
16833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16834#
16835# INIT-COMMANDS
16836#
16837
16838
16839# The HP-UX ksh and POSIX shell print the target directory to stdout
16840# if CDPATH is set.
16841(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16842
16843sed_quote_subst='$sed_quote_subst'
16844double_quote_subst='$double_quote_subst'
16845delay_variable_subst='$delay_variable_subst'
16846AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16847DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16848OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16849macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16850macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16851enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16852enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16853pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16854enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16855SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16856ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16857host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16858host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16859host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16860build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16861build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16862build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16863SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16864Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16865GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16866EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16867FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16868LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16869NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16870LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16871max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16872ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16873exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16874lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16875lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16876lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16877lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16878lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16879reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16880reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16881deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16882file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16883file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16884want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16885sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16886AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16887AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16888archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16889STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16890RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16891old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16892old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16893old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16894lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16895CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16896CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16897compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16898GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16899lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16900lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16901lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16902lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16903nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16904lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16905objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16906MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16907lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16908lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16909lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16910lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16911lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16912need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16913MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16914DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16915NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16916LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16917OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16918OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16919libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16920shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16921extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16922archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16923enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16924export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16925whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16926compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16927old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16928old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16929archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16930archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16931module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16932module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16933with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16934allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16935no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16936hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16937hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16938hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16939hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16940hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16941hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16942hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16943hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16944inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16945link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16946always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16947export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16948exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16949include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16950prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16951postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16952file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16953variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16954need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16955need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16956version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16957runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16958shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16959shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16960libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16961library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16962soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16963install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16964postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16965postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16966finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16967finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16968hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16969sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16970sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16971hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16972enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16973enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16974enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16975old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16976striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16977compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16978predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16979postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16980predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16981postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16982compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16983LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16984reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16985reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16986old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16987compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16988GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16989lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16990lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16991lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16992lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16993lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16994archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16995enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16996export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16997whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16998compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16999old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17000old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17001archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17002archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17003module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17004module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17005with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17006allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17007no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17008hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17009hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17010hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17011hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17012hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17013hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17014hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17015hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17016inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17017link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17018always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17019export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17020exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17021include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17022prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17023postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17024file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17025hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17026compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17027predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17028postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17029predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17030postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17031compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17032
17033LTCC='$LTCC'
17034LTCFLAGS='$LTCFLAGS'
17035compiler='$compiler_DEFAULT'
17036
17037# A function that is used when there is no print builtin or printf.
17038func_fallback_echo ()
17039{
17040  eval 'cat <<_LTECHO_EOF
17041\$1
17042_LTECHO_EOF'
17043}
17044
17045# Quote evaled strings.
17046for var in AS \
17047DLLTOOL \
17048OBJDUMP \
17049SHELL \
17050ECHO \
17051SED \
17052GREP \
17053EGREP \
17054FGREP \
17055LD \
17056NM \
17057LN_S \
17058lt_SP2NL \
17059lt_NL2SP \
17060reload_flag \
17061deplibs_check_method \
17062file_magic_cmd \
17063file_magic_glob \
17064want_nocaseglob \
17065sharedlib_from_linklib_cmd \
17066AR \
17067AR_FLAGS \
17068archiver_list_spec \
17069STRIP \
17070RANLIB \
17071CC \
17072CFLAGS \
17073compiler \
17074lt_cv_sys_global_symbol_pipe \
17075lt_cv_sys_global_symbol_to_cdecl \
17076lt_cv_sys_global_symbol_to_c_name_address \
17077lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17078nm_file_list_spec \
17079lt_prog_compiler_no_builtin_flag \
17080lt_prog_compiler_pic \
17081lt_prog_compiler_wl \
17082lt_prog_compiler_static \
17083lt_cv_prog_compiler_c_o \
17084need_locks \
17085MANIFEST_TOOL \
17086DSYMUTIL \
17087NMEDIT \
17088LIPO \
17089OTOOL \
17090OTOOL64 \
17091shrext_cmds \
17092export_dynamic_flag_spec \
17093whole_archive_flag_spec \
17094compiler_needs_object \
17095with_gnu_ld \
17096allow_undefined_flag \
17097no_undefined_flag \
17098hardcode_libdir_flag_spec \
17099hardcode_libdir_flag_spec_ld \
17100hardcode_libdir_separator \
17101exclude_expsyms \
17102include_expsyms \
17103file_list_spec \
17104variables_saved_for_relink \
17105libname_spec \
17106library_names_spec \
17107soname_spec \
17108install_override_mode \
17109finish_eval \
17110old_striplib \
17111striplib \
17112compiler_lib_search_dirs \
17113predep_objects \
17114postdep_objects \
17115predeps \
17116postdeps \
17117compiler_lib_search_path \
17118LD_CXX \
17119reload_flag_CXX \
17120compiler_CXX \
17121lt_prog_compiler_no_builtin_flag_CXX \
17122lt_prog_compiler_pic_CXX \
17123lt_prog_compiler_wl_CXX \
17124lt_prog_compiler_static_CXX \
17125lt_cv_prog_compiler_c_o_CXX \
17126export_dynamic_flag_spec_CXX \
17127whole_archive_flag_spec_CXX \
17128compiler_needs_object_CXX \
17129with_gnu_ld_CXX \
17130allow_undefined_flag_CXX \
17131no_undefined_flag_CXX \
17132hardcode_libdir_flag_spec_CXX \
17133hardcode_libdir_flag_spec_ld_CXX \
17134hardcode_libdir_separator_CXX \
17135exclude_expsyms_CXX \
17136include_expsyms_CXX \
17137file_list_spec_CXX \
17138compiler_lib_search_dirs_CXX \
17139predep_objects_CXX \
17140postdep_objects_CXX \
17141predeps_CXX \
17142postdeps_CXX \
17143compiler_lib_search_path_CXX; do
17144    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17145    *[\\\\\\\`\\"\\\$]*)
17146      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17147      ;;
17148    *)
17149      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17150      ;;
17151    esac
17152done
17153
17154# Double-quote double-evaled strings.
17155for var in reload_cmds \
17156old_postinstall_cmds \
17157old_postuninstall_cmds \
17158old_archive_cmds \
17159extract_expsyms_cmds \
17160old_archive_from_new_cmds \
17161old_archive_from_expsyms_cmds \
17162archive_cmds \
17163archive_expsym_cmds \
17164module_cmds \
17165module_expsym_cmds \
17166export_symbols_cmds \
17167prelink_cmds \
17168postlink_cmds \
17169postinstall_cmds \
17170postuninstall_cmds \
17171finish_cmds \
17172sys_lib_search_path_spec \
17173sys_lib_dlsearch_path_spec \
17174reload_cmds_CXX \
17175old_archive_cmds_CXX \
17176old_archive_from_new_cmds_CXX \
17177old_archive_from_expsyms_cmds_CXX \
17178archive_cmds_CXX \
17179archive_expsym_cmds_CXX \
17180module_cmds_CXX \
17181module_expsym_cmds_CXX \
17182export_symbols_cmds_CXX \
17183prelink_cmds_CXX \
17184postlink_cmds_CXX; do
17185    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17186    *[\\\\\\\`\\"\\\$]*)
17187      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17188      ;;
17189    *)
17190      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17191      ;;
17192    esac
17193done
17194
17195ac_aux_dir='$ac_aux_dir'
17196xsi_shell='$xsi_shell'
17197lt_shell_append='$lt_shell_append'
17198
17199# See if we are running on zsh, and set the options which allow our
17200# commands through without removal of \ escapes INIT.
17201if test -n "\${ZSH_VERSION+set}" ; then
17202   setopt NO_GLOB_SUBST
17203fi
17204
17205
17206    PACKAGE='$PACKAGE'
17207    VERSION='$VERSION'
17208    TIMESTAMP='$TIMESTAMP'
17209    RM='$RM'
17210    ofile='$ofile'
17211
17212
17213
17214
17215
17216
17217_ACEOF
17218
17219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17220
17221# Handling of arguments.
17222for ac_config_target in $ac_config_targets
17223do
17224  case $ac_config_target in
17225    "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
17226    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17227    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17228    "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
17229
17230  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17231  esac
17232done
17233
17234
17235# If the user did not use the arguments to specify the items to instantiate,
17236# then the envvar interface is used.  Set only those that are not.
17237# We use the long form for the default assignment because of an extremely
17238# bizarre bug on SunOS 4.1.3.
17239if $ac_need_defaults; then
17240  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17241  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17242  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17243fi
17244
17245# Have a temporary directory for convenience.  Make it in the build tree
17246# simply because there is no reason against having it here, and in addition,
17247# creating and moving files from /tmp can sometimes cause problems.
17248# Hook for its removal unless debugging.
17249# Note that there is a small window in which the directory will not be cleaned:
17250# after its creation but before its name has been assigned to `$tmp'.
17251$debug ||
17252{
17253  tmp= ac_tmp=
17254  trap 'exit_status=$?
17255  : "${ac_tmp:=$tmp}"
17256  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17257' 0
17258  trap 'as_fn_exit 1' 1 2 13 15
17259}
17260# Create a (secure) tmp directory for tmp files.
17261
17262{
17263  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17264  test -d "$tmp"
17265}  ||
17266{
17267  tmp=./conf$$-$RANDOM
17268  (umask 077 && mkdir "$tmp")
17269} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17270ac_tmp=$tmp
17271
17272# Set up the scripts for CONFIG_FILES section.
17273# No need to generate them if there are no CONFIG_FILES.
17274# This happens for instance with `./config.status config.h'.
17275if test -n "$CONFIG_FILES"; then
17276
17277
17278ac_cr=`echo X | tr X '\015'`
17279# On cygwin, bash can eat \r inside `` if the user requested igncr.
17280# But we know of no other shell where ac_cr would be empty at this
17281# point, so we can use a bashism as a fallback.
17282if test "x$ac_cr" = x; then
17283  eval ac_cr=\$\'\\r\'
17284fi
17285ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17286if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17287  ac_cs_awk_cr='\\r'
17288else
17289  ac_cs_awk_cr=$ac_cr
17290fi
17291
17292echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17293_ACEOF
17294
17295
17296{
17297  echo "cat >conf$$subs.awk <<_ACEOF" &&
17298  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17299  echo "_ACEOF"
17300} >conf$$subs.sh ||
17301  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17302ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17303ac_delim='%!_!# '
17304for ac_last_try in false false false false false :; do
17305  . ./conf$$subs.sh ||
17306    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17307
17308  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17309  if test $ac_delim_n = $ac_delim_num; then
17310    break
17311  elif $ac_last_try; then
17312    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17313  else
17314    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17315  fi
17316done
17317rm -f conf$$subs.sh
17318
17319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17320cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17321_ACEOF
17322sed -n '
17323h
17324s/^/S["/; s/!.*/"]=/
17325p
17326g
17327s/^[^!]*!//
17328:repl
17329t repl
17330s/'"$ac_delim"'$//
17331t delim
17332:nl
17333h
17334s/\(.\{148\}\)..*/\1/
17335t more1
17336s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17337p
17338n
17339b repl
17340:more1
17341s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17342p
17343g
17344s/.\{148\}//
17345t nl
17346:delim
17347h
17348s/\(.\{148\}\)..*/\1/
17349t more2
17350s/["\\]/\\&/g; s/^/"/; s/$/"/
17351p
17352b
17353:more2
17354s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17355p
17356g
17357s/.\{148\}//
17358t delim
17359' <conf$$subs.awk | sed '
17360/^[^""]/{
17361  N
17362  s/\n//
17363}
17364' >>$CONFIG_STATUS || ac_write_fail=1
17365rm -f conf$$subs.awk
17366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17367_ACAWK
17368cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17369  for (key in S) S_is_set[key] = 1
17370  FS = ""
17371
17372}
17373{
17374  line = $ 0
17375  nfields = split(line, field, "@")
17376  substed = 0
17377  len = length(field[1])
17378  for (i = 2; i < nfields; i++) {
17379    key = field[i]
17380    keylen = length(key)
17381    if (S_is_set[key]) {
17382      value = S[key]
17383      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17384      len += length(value) + length(field[++i])
17385      substed = 1
17386    } else
17387      len += 1 + keylen
17388  }
17389
17390  print line
17391}
17392
17393_ACAWK
17394_ACEOF
17395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17396if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17397  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17398else
17399  cat
17400fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17401  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17402_ACEOF
17403
17404# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17405# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17406# trailing colons and then remove the whole line if VPATH becomes empty
17407# (actually we leave an empty line to preserve line numbers).
17408if test "x$srcdir" = x.; then
17409  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17410h
17411s///
17412s/^/:/
17413s/[	 ]*$/:/
17414s/:\$(srcdir):/:/g
17415s/:\${srcdir}:/:/g
17416s/:@srcdir@:/:/g
17417s/^:*//
17418s/:*$//
17419x
17420s/\(=[	 ]*\).*/\1/
17421G
17422s/\n//
17423s/^[^=]*=[	 ]*$//
17424}'
17425fi
17426
17427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17428fi # test -n "$CONFIG_FILES"
17429
17430# Set up the scripts for CONFIG_HEADERS section.
17431# No need to generate them if there are no CONFIG_HEADERS.
17432# This happens for instance with `./config.status Makefile'.
17433if test -n "$CONFIG_HEADERS"; then
17434cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17435BEGIN {
17436_ACEOF
17437
17438# Transform confdefs.h into an awk script `defines.awk', embedded as
17439# here-document in config.status, that substitutes the proper values into
17440# config.h.in to produce config.h.
17441
17442# Create a delimiter string that does not exist in confdefs.h, to ease
17443# handling of long lines.
17444ac_delim='%!_!# '
17445for ac_last_try in false false :; do
17446  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17447  if test -z "$ac_tt"; then
17448    break
17449  elif $ac_last_try; then
17450    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17451  else
17452    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17453  fi
17454done
17455
17456# For the awk script, D is an array of macro values keyed by name,
17457# likewise P contains macro parameters if any.  Preserve backslash
17458# newline sequences.
17459
17460ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17461sed -n '
17462s/.\{148\}/&'"$ac_delim"'/g
17463t rset
17464:rset
17465s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17466t def
17467d
17468:def
17469s/\\$//
17470t bsnl
17471s/["\\]/\\&/g
17472s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17473D["\1"]=" \3"/p
17474s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17475d
17476:bsnl
17477s/["\\]/\\&/g
17478s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17479D["\1"]=" \3\\\\\\n"\\/p
17480t cont
17481s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17482t cont
17483d
17484:cont
17485n
17486s/.\{148\}/&'"$ac_delim"'/g
17487t clear
17488:clear
17489s/\\$//
17490t bsnlc
17491s/["\\]/\\&/g; s/^/"/; s/$/"/p
17492d
17493:bsnlc
17494s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17495b cont
17496' <confdefs.h | sed '
17497s/'"$ac_delim"'/"\\\
17498"/g' >>$CONFIG_STATUS || ac_write_fail=1
17499
17500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17501  for (key in D) D_is_set[key] = 1
17502  FS = ""
17503}
17504/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17505  line = \$ 0
17506  split(line, arg, " ")
17507  if (arg[1] == "#") {
17508    defundef = arg[2]
17509    mac1 = arg[3]
17510  } else {
17511    defundef = substr(arg[1], 2)
17512    mac1 = arg[2]
17513  }
17514  split(mac1, mac2, "(") #)
17515  macro = mac2[1]
17516  prefix = substr(line, 1, index(line, defundef) - 1)
17517  if (D_is_set[macro]) {
17518    # Preserve the white space surrounding the "#".
17519    print prefix "define", macro P[macro] D[macro]
17520    next
17521  } else {
17522    # Replace #undef with comments.  This is necessary, for example,
17523    # in the case of _POSIX_SOURCE, which is predefined and required
17524    # on some systems where configure will not decide to define it.
17525    if (defundef == "undef") {
17526      print "/*", prefix defundef, macro, "*/"
17527      next
17528    }
17529  }
17530}
17531{ print }
17532_ACAWK
17533_ACEOF
17534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17535  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17536fi # test -n "$CONFIG_HEADERS"
17537
17538
17539eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17540shift
17541for ac_tag
17542do
17543  case $ac_tag in
17544  :[FHLC]) ac_mode=$ac_tag; continue;;
17545  esac
17546  case $ac_mode$ac_tag in
17547  :[FHL]*:*);;
17548  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17549  :[FH]-) ac_tag=-:-;;
17550  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17551  esac
17552  ac_save_IFS=$IFS
17553  IFS=:
17554  set x $ac_tag
17555  IFS=$ac_save_IFS
17556  shift
17557  ac_file=$1
17558  shift
17559
17560  case $ac_mode in
17561  :L) ac_source=$1;;
17562  :[FH])
17563    ac_file_inputs=
17564    for ac_f
17565    do
17566      case $ac_f in
17567      -) ac_f="$ac_tmp/stdin";;
17568      *) # Look for the file first in the build tree, then in the source tree
17569	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17570	 # because $ac_f cannot contain `:'.
17571	 test -f "$ac_f" ||
17572	   case $ac_f in
17573	   [\\/$]*) false;;
17574	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17575	   esac ||
17576	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17577      esac
17578      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17579      as_fn_append ac_file_inputs " '$ac_f'"
17580    done
17581
17582    # Let's still pretend it is `configure' which instantiates (i.e., don't
17583    # use $as_me), people would be surprised to read:
17584    #    /* config.h.  Generated by config.status.  */
17585    configure_input='Generated from '`
17586	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17587	`' by configure.'
17588    if test x"$ac_file" != x-; then
17589      configure_input="$ac_file.  $configure_input"
17590      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17591$as_echo "$as_me: creating $ac_file" >&6;}
17592    fi
17593    # Neutralize special characters interpreted by sed in replacement strings.
17594    case $configure_input in #(
17595    *\&* | *\|* | *\\* )
17596       ac_sed_conf_input=`$as_echo "$configure_input" |
17597       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17598    *) ac_sed_conf_input=$configure_input;;
17599    esac
17600
17601    case $ac_tag in
17602    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17603      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17604    esac
17605    ;;
17606  esac
17607
17608  ac_dir=`$as_dirname -- "$ac_file" ||
17609$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17610	 X"$ac_file" : 'X\(//\)[^/]' \| \
17611	 X"$ac_file" : 'X\(//\)$' \| \
17612	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17613$as_echo X"$ac_file" |
17614    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17615	    s//\1/
17616	    q
17617	  }
17618	  /^X\(\/\/\)[^/].*/{
17619	    s//\1/
17620	    q
17621	  }
17622	  /^X\(\/\/\)$/{
17623	    s//\1/
17624	    q
17625	  }
17626	  /^X\(\/\).*/{
17627	    s//\1/
17628	    q
17629	  }
17630	  s/.*/./; q'`
17631  as_dir="$ac_dir"; as_fn_mkdir_p
17632  ac_builddir=.
17633
17634case "$ac_dir" in
17635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17636*)
17637  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17638  # A ".." for each directory in $ac_dir_suffix.
17639  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17640  case $ac_top_builddir_sub in
17641  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17642  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17643  esac ;;
17644esac
17645ac_abs_top_builddir=$ac_pwd
17646ac_abs_builddir=$ac_pwd$ac_dir_suffix
17647# for backward compatibility:
17648ac_top_builddir=$ac_top_build_prefix
17649
17650case $srcdir in
17651  .)  # We are building in place.
17652    ac_srcdir=.
17653    ac_top_srcdir=$ac_top_builddir_sub
17654    ac_abs_top_srcdir=$ac_pwd ;;
17655  [\\/]* | ?:[\\/]* )  # Absolute name.
17656    ac_srcdir=$srcdir$ac_dir_suffix;
17657    ac_top_srcdir=$srcdir
17658    ac_abs_top_srcdir=$srcdir ;;
17659  *) # Relative name.
17660    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17661    ac_top_srcdir=$ac_top_build_prefix$srcdir
17662    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17663esac
17664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17665
17666
17667  case $ac_mode in
17668  :F)
17669  #
17670  # CONFIG_FILE
17671  #
17672
17673  case $INSTALL in
17674  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17675  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17676  esac
17677_ACEOF
17678
17679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17680# If the template does not know about datarootdir, expand it.
17681# FIXME: This hack should be removed a few years after 2.60.
17682ac_datarootdir_hack=; ac_datarootdir_seen=
17683ac_sed_dataroot='
17684/datarootdir/ {
17685  p
17686  q
17687}
17688/@datadir@/p
17689/@docdir@/p
17690/@infodir@/p
17691/@localedir@/p
17692/@mandir@/p'
17693case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17694*datarootdir*) ac_datarootdir_seen=yes;;
17695*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17696  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17697$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17698_ACEOF
17699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17700  ac_datarootdir_hack='
17701  s&@datadir@&$datadir&g
17702  s&@docdir@&$docdir&g
17703  s&@infodir@&$infodir&g
17704  s&@localedir@&$localedir&g
17705  s&@mandir@&$mandir&g
17706  s&\\\${datarootdir}&$datarootdir&g' ;;
17707esac
17708_ACEOF
17709
17710# Neutralize VPATH when `$srcdir' = `.'.
17711# Shell code in configure.ac might set extrasub.
17712# FIXME: do we really want to maintain this feature?
17713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17714ac_sed_extra="$ac_vpsub
17715$extrasub
17716_ACEOF
17717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17718:t
17719/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17720s|@configure_input@|$ac_sed_conf_input|;t t
17721s&@top_builddir@&$ac_top_builddir_sub&;t t
17722s&@top_build_prefix@&$ac_top_build_prefix&;t t
17723s&@srcdir@&$ac_srcdir&;t t
17724s&@abs_srcdir@&$ac_abs_srcdir&;t t
17725s&@top_srcdir@&$ac_top_srcdir&;t t
17726s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17727s&@builddir@&$ac_builddir&;t t
17728s&@abs_builddir@&$ac_abs_builddir&;t t
17729s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17730s&@INSTALL@&$ac_INSTALL&;t t
17731$ac_datarootdir_hack
17732"
17733eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17734  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17735
17736test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17737  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17738  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17739      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17740  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17741which seems to be undefined.  Please make sure it is defined" >&5
17742$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17743which seems to be undefined.  Please make sure it is defined" >&2;}
17744
17745  rm -f "$ac_tmp/stdin"
17746  case $ac_file in
17747  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17748  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17749  esac \
17750  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17751 ;;
17752  :H)
17753  #
17754  # CONFIG_HEADER
17755  #
17756  if test x"$ac_file" != x-; then
17757    {
17758      $as_echo "/* $configure_input  */" \
17759      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17760    } >"$ac_tmp/config.h" \
17761      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17762    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17763      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17764$as_echo "$as_me: $ac_file is unchanged" >&6;}
17765    else
17766      rm -f "$ac_file"
17767      mv "$ac_tmp/config.h" "$ac_file" \
17768	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17769    fi
17770  else
17771    $as_echo "/* $configure_input  */" \
17772      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17773      || as_fn_error $? "could not create -" "$LINENO" 5
17774  fi
17775 ;;
17776
17777  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17778$as_echo "$as_me: executing $ac_file commands" >&6;}
17779 ;;
17780  esac
17781
17782
17783  case $ac_file$ac_mode in
17784    "libtool":C)
17785
17786    # See if we are running on zsh, and set the options which allow our
17787    # commands through without removal of \ escapes.
17788    if test -n "${ZSH_VERSION+set}" ; then
17789      setopt NO_GLOB_SUBST
17790    fi
17791
17792    cfgfile="${ofile}T"
17793    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17794    $RM "$cfgfile"
17795
17796    cat <<_LT_EOF >> "$cfgfile"
17797#! $SHELL
17798
17799# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17800# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17801# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17802# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17803#
17804#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17805#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17806#                 Inc.
17807#   Written by Gordon Matzigkeit, 1996
17808#
17809#   This file is part of GNU Libtool.
17810#
17811# GNU Libtool is free software; you can redistribute it and/or
17812# modify it under the terms of the GNU General Public License as
17813# published by the Free Software Foundation; either version 2 of
17814# the License, or (at your option) any later version.
17815#
17816# As a special exception to the GNU General Public License,
17817# if you distribute this file as part of a program or library that
17818# is built using GNU Libtool, you may include this file under the
17819# same distribution terms that you use for the rest of that program.
17820#
17821# GNU Libtool is distributed in the hope that it will be useful,
17822# but WITHOUT ANY WARRANTY; without even the implied warranty of
17823# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17824# GNU General Public License for more details.
17825#
17826# You should have received a copy of the GNU General Public License
17827# along with GNU Libtool; see the file COPYING.  If not, a copy
17828# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17829# obtained by writing to the Free Software Foundation, Inc.,
17830# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17831
17832
17833# The names of the tagged configurations supported by this script.
17834available_tags="CXX "
17835
17836# ### BEGIN LIBTOOL CONFIG
17837
17838# Assembler program.
17839AS=$lt_AS
17840
17841# DLL creation program.
17842DLLTOOL=$lt_DLLTOOL
17843
17844# Object dumper program.
17845OBJDUMP=$lt_OBJDUMP
17846
17847# Which release of libtool.m4 was used?
17848macro_version=$macro_version
17849macro_revision=$macro_revision
17850
17851# Whether or not to build shared libraries.
17852build_libtool_libs=$enable_shared
17853
17854# Whether or not to build static libraries.
17855build_old_libs=$enable_static
17856
17857# What type of objects to build.
17858pic_mode=$pic_mode
17859
17860# Whether or not to optimize for fast installation.
17861fast_install=$enable_fast_install
17862
17863# Shell to use when invoking shell scripts.
17864SHELL=$lt_SHELL
17865
17866# An echo program that protects backslashes.
17867ECHO=$lt_ECHO
17868
17869# The host system.
17870host_alias=$host_alias
17871host=$host
17872host_os=$host_os
17873
17874# The build system.
17875build_alias=$build_alias
17876build=$build
17877build_os=$build_os
17878
17879# A sed program that does not truncate output.
17880SED=$lt_SED
17881
17882# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17883Xsed="\$SED -e 1s/^X//"
17884
17885# A grep program that handles long lines.
17886GREP=$lt_GREP
17887
17888# An ERE matcher.
17889EGREP=$lt_EGREP
17890
17891# A literal string matcher.
17892FGREP=$lt_FGREP
17893
17894# A BSD- or MS-compatible name lister.
17895NM=$lt_NM
17896
17897# Whether we need soft or hard links.
17898LN_S=$lt_LN_S
17899
17900# What is the maximum length of a command?
17901max_cmd_len=$max_cmd_len
17902
17903# Object file suffix (normally "o").
17904objext=$ac_objext
17905
17906# Executable file suffix (normally "").
17907exeext=$exeext
17908
17909# whether the shell understands "unset".
17910lt_unset=$lt_unset
17911
17912# turn spaces into newlines.
17913SP2NL=$lt_lt_SP2NL
17914
17915# turn newlines into spaces.
17916NL2SP=$lt_lt_NL2SP
17917
17918# convert \$build file names to \$host format.
17919to_host_file_cmd=$lt_cv_to_host_file_cmd
17920
17921# convert \$build files to toolchain format.
17922to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17923
17924# Method to check whether dependent libraries are shared objects.
17925deplibs_check_method=$lt_deplibs_check_method
17926
17927# Command to use when deplibs_check_method = "file_magic".
17928file_magic_cmd=$lt_file_magic_cmd
17929
17930# How to find potential files when deplibs_check_method = "file_magic".
17931file_magic_glob=$lt_file_magic_glob
17932
17933# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17934want_nocaseglob=$lt_want_nocaseglob
17935
17936# Command to associate shared and link libraries.
17937sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17938
17939# The archiver.
17940AR=$lt_AR
17941
17942# Flags to create an archive.
17943AR_FLAGS=$lt_AR_FLAGS
17944
17945# How to feed a file listing to the archiver.
17946archiver_list_spec=$lt_archiver_list_spec
17947
17948# A symbol stripping program.
17949STRIP=$lt_STRIP
17950
17951# Commands used to install an old-style archive.
17952RANLIB=$lt_RANLIB
17953old_postinstall_cmds=$lt_old_postinstall_cmds
17954old_postuninstall_cmds=$lt_old_postuninstall_cmds
17955
17956# Whether to use a lock for old archive extraction.
17957lock_old_archive_extraction=$lock_old_archive_extraction
17958
17959# A C compiler.
17960LTCC=$lt_CC
17961
17962# LTCC compiler flags.
17963LTCFLAGS=$lt_CFLAGS
17964
17965# Take the output of nm and produce a listing of raw symbols and C names.
17966global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17967
17968# Transform the output of nm in a proper C declaration.
17969global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17970
17971# Transform the output of nm in a C name address pair.
17972global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17973
17974# Transform the output of nm in a C name address pair when lib prefix is needed.
17975global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17976
17977# Specify filename containing input files for \$NM.
17978nm_file_list_spec=$lt_nm_file_list_spec
17979
17980# The root where to search for dependent libraries,and in which our libraries should be installed.
17981lt_sysroot=$lt_sysroot
17982
17983# The name of the directory that contains temporary libtool files.
17984objdir=$objdir
17985
17986# Used to examine libraries when file_magic_cmd begins with "file".
17987MAGIC_CMD=$MAGIC_CMD
17988
17989# Must we lock files when doing compilation?
17990need_locks=$lt_need_locks
17991
17992# Manifest tool.
17993MANIFEST_TOOL=$lt_MANIFEST_TOOL
17994
17995# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17996DSYMUTIL=$lt_DSYMUTIL
17997
17998# Tool to change global to local symbols on Mac OS X.
17999NMEDIT=$lt_NMEDIT
18000
18001# Tool to manipulate fat objects and archives on Mac OS X.
18002LIPO=$lt_LIPO
18003
18004# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18005OTOOL=$lt_OTOOL
18006
18007# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18008OTOOL64=$lt_OTOOL64
18009
18010# Old archive suffix (normally "a").
18011libext=$libext
18012
18013# Shared library suffix (normally ".so").
18014shrext_cmds=$lt_shrext_cmds
18015
18016# The commands to extract the exported symbol list from a shared archive.
18017extract_expsyms_cmds=$lt_extract_expsyms_cmds
18018
18019# Variables whose values should be saved in libtool wrapper scripts and
18020# restored at link time.
18021variables_saved_for_relink=$lt_variables_saved_for_relink
18022
18023# Do we need the "lib" prefix for modules?
18024need_lib_prefix=$need_lib_prefix
18025
18026# Do we need a version for libraries?
18027need_version=$need_version
18028
18029# Library versioning type.
18030version_type=$version_type
18031
18032# Shared library runtime path variable.
18033runpath_var=$runpath_var
18034
18035# Shared library path variable.
18036shlibpath_var=$shlibpath_var
18037
18038# Is shlibpath searched before the hard-coded library search path?
18039shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18040
18041# Format of library name prefix.
18042libname_spec=$lt_libname_spec
18043
18044# List of archive names.  First name is the real one, the rest are links.
18045# The last name is the one that the linker finds with -lNAME
18046library_names_spec=$lt_library_names_spec
18047
18048# The coded name of the library, if different from the real name.
18049soname_spec=$lt_soname_spec
18050
18051# Permission mode override for installation of shared libraries.
18052install_override_mode=$lt_install_override_mode
18053
18054# Command to use after installation of a shared archive.
18055postinstall_cmds=$lt_postinstall_cmds
18056
18057# Command to use after uninstallation of a shared archive.
18058postuninstall_cmds=$lt_postuninstall_cmds
18059
18060# Commands used to finish a libtool library installation in a directory.
18061finish_cmds=$lt_finish_cmds
18062
18063# As "finish_cmds", except a single script fragment to be evaled but
18064# not shown.
18065finish_eval=$lt_finish_eval
18066
18067# Whether we should hardcode library paths into libraries.
18068hardcode_into_libs=$hardcode_into_libs
18069
18070# Compile-time system search path for libraries.
18071sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18072
18073# Run-time system search path for libraries.
18074sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18075
18076# Whether dlopen is supported.
18077dlopen_support=$enable_dlopen
18078
18079# Whether dlopen of programs is supported.
18080dlopen_self=$enable_dlopen_self
18081
18082# Whether dlopen of statically linked programs is supported.
18083dlopen_self_static=$enable_dlopen_self_static
18084
18085# Commands to strip libraries.
18086old_striplib=$lt_old_striplib
18087striplib=$lt_striplib
18088
18089
18090# The linker used to build libraries.
18091LD=$lt_LD
18092
18093# How to create reloadable object files.
18094reload_flag=$lt_reload_flag
18095reload_cmds=$lt_reload_cmds
18096
18097# Commands used to build an old-style archive.
18098old_archive_cmds=$lt_old_archive_cmds
18099
18100# A language specific compiler.
18101CC=$lt_compiler
18102
18103# Is the compiler the GNU compiler?
18104with_gcc=$GCC
18105
18106# Compiler flag to turn off builtin functions.
18107no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18108
18109# Additional compiler flags for building library objects.
18110pic_flag=$lt_lt_prog_compiler_pic
18111
18112# How to pass a linker flag through the compiler.
18113wl=$lt_lt_prog_compiler_wl
18114
18115# Compiler flag to prevent dynamic linking.
18116link_static_flag=$lt_lt_prog_compiler_static
18117
18118# Does compiler simultaneously support -c and -o options?
18119compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18120
18121# Whether or not to add -lc for building shared libraries.
18122build_libtool_need_lc=$archive_cmds_need_lc
18123
18124# Whether or not to disallow shared libs when runtime libs are static.
18125allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18126
18127# Compiler flag to allow reflexive dlopens.
18128export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18129
18130# Compiler flag to generate shared objects directly from archives.
18131whole_archive_flag_spec=$lt_whole_archive_flag_spec
18132
18133# Whether the compiler copes with passing no objects directly.
18134compiler_needs_object=$lt_compiler_needs_object
18135
18136# Create an old-style archive from a shared archive.
18137old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18138
18139# Create a temporary old-style archive to link instead of a shared archive.
18140old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18141
18142# Commands used to build a shared archive.
18143archive_cmds=$lt_archive_cmds
18144archive_expsym_cmds=$lt_archive_expsym_cmds
18145
18146# Commands used to build a loadable module if different from building
18147# a shared archive.
18148module_cmds=$lt_module_cmds
18149module_expsym_cmds=$lt_module_expsym_cmds
18150
18151# Whether we are building with GNU ld or not.
18152with_gnu_ld=$lt_with_gnu_ld
18153
18154# Flag that allows shared libraries with undefined symbols to be built.
18155allow_undefined_flag=$lt_allow_undefined_flag
18156
18157# Flag that enforces no undefined symbols.
18158no_undefined_flag=$lt_no_undefined_flag
18159
18160# Flag to hardcode \$libdir into a binary during linking.
18161# This must work even if \$libdir does not exist
18162hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18163
18164# If ld is used when linking, flag to hardcode \$libdir into a binary
18165# during linking.  This must work even if \$libdir does not exist.
18166hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18167
18168# Whether we need a single "-rpath" flag with a separated argument.
18169hardcode_libdir_separator=$lt_hardcode_libdir_separator
18170
18171# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18172# DIR into the resulting binary.
18173hardcode_direct=$hardcode_direct
18174
18175# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18176# DIR into the resulting binary and the resulting library dependency is
18177# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18178# library is relocated.
18179hardcode_direct_absolute=$hardcode_direct_absolute
18180
18181# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18182# into the resulting binary.
18183hardcode_minus_L=$hardcode_minus_L
18184
18185# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18186# into the resulting binary.
18187hardcode_shlibpath_var=$hardcode_shlibpath_var
18188
18189# Set to "yes" if building a shared library automatically hardcodes DIR
18190# into the library and all subsequent libraries and executables linked
18191# against it.
18192hardcode_automatic=$hardcode_automatic
18193
18194# Set to yes if linker adds runtime paths of dependent libraries
18195# to runtime path list.
18196inherit_rpath=$inherit_rpath
18197
18198# Whether libtool must link a program against all its dependency libraries.
18199link_all_deplibs=$link_all_deplibs
18200
18201# Set to "yes" if exported symbols are required.
18202always_export_symbols=$always_export_symbols
18203
18204# The commands to list exported symbols.
18205export_symbols_cmds=$lt_export_symbols_cmds
18206
18207# Symbols that should not be listed in the preloaded symbols.
18208exclude_expsyms=$lt_exclude_expsyms
18209
18210# Symbols that must always be exported.
18211include_expsyms=$lt_include_expsyms
18212
18213# Commands necessary for linking programs (against libraries) with templates.
18214prelink_cmds=$lt_prelink_cmds
18215
18216# Commands necessary for finishing linking programs.
18217postlink_cmds=$lt_postlink_cmds
18218
18219# Specify filename containing input files.
18220file_list_spec=$lt_file_list_spec
18221
18222# How to hardcode a shared library path into an executable.
18223hardcode_action=$hardcode_action
18224
18225# The directories searched by this compiler when creating a shared library.
18226compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18227
18228# Dependencies to place before and after the objects being linked to
18229# create a shared library.
18230predep_objects=$lt_predep_objects
18231postdep_objects=$lt_postdep_objects
18232predeps=$lt_predeps
18233postdeps=$lt_postdeps
18234
18235# The library search path used internally by the compiler when linking
18236# a shared library.
18237compiler_lib_search_path=$lt_compiler_lib_search_path
18238
18239# ### END LIBTOOL CONFIG
18240
18241_LT_EOF
18242
18243  case $host_os in
18244  aix3*)
18245    cat <<\_LT_EOF >> "$cfgfile"
18246# AIX sometimes has problems with the GCC collect2 program.  For some
18247# reason, if we set the COLLECT_NAMES environment variable, the problems
18248# vanish in a puff of smoke.
18249if test "X${COLLECT_NAMES+set}" != Xset; then
18250  COLLECT_NAMES=
18251  export COLLECT_NAMES
18252fi
18253_LT_EOF
18254    ;;
18255  esac
18256
18257
18258ltmain="$ac_aux_dir/ltmain.sh"
18259
18260
18261  # We use sed instead of cat because bash on DJGPP gets confused if
18262  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18263  # text mode, it properly converts lines to CR/LF.  This bash problem
18264  # is reportedly fixed, but why not run on old versions too?
18265  sed '$q' "$ltmain" >> "$cfgfile" \
18266     || (rm -f "$cfgfile"; exit 1)
18267
18268  if test x"$xsi_shell" = xyes; then
18269  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18270func_dirname ()\
18271{\
18272\    case ${1} in\
18273\      */*) func_dirname_result="${1%/*}${2}" ;;\
18274\      *  ) func_dirname_result="${3}" ;;\
18275\    esac\
18276} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18277  && mv -f "$cfgfile.tmp" "$cfgfile" \
18278    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18279test 0 -eq $? || _lt_function_replace_fail=:
18280
18281
18282  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18283func_basename ()\
18284{\
18285\    func_basename_result="${1##*/}"\
18286} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18287  && mv -f "$cfgfile.tmp" "$cfgfile" \
18288    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18289test 0 -eq $? || _lt_function_replace_fail=:
18290
18291
18292  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18293func_dirname_and_basename ()\
18294{\
18295\    case ${1} in\
18296\      */*) func_dirname_result="${1%/*}${2}" ;;\
18297\      *  ) func_dirname_result="${3}" ;;\
18298\    esac\
18299\    func_basename_result="${1##*/}"\
18300} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18301  && mv -f "$cfgfile.tmp" "$cfgfile" \
18302    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18303test 0 -eq $? || _lt_function_replace_fail=:
18304
18305
18306  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18307func_stripname ()\
18308{\
18309\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18310\    # positional parameters, so assign one to ordinary parameter first.\
18311\    func_stripname_result=${3}\
18312\    func_stripname_result=${func_stripname_result#"${1}"}\
18313\    func_stripname_result=${func_stripname_result%"${2}"}\
18314} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18315  && mv -f "$cfgfile.tmp" "$cfgfile" \
18316    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18317test 0 -eq $? || _lt_function_replace_fail=:
18318
18319
18320  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18321func_split_long_opt ()\
18322{\
18323\    func_split_long_opt_name=${1%%=*}\
18324\    func_split_long_opt_arg=${1#*=}\
18325} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18326  && mv -f "$cfgfile.tmp" "$cfgfile" \
18327    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18328test 0 -eq $? || _lt_function_replace_fail=:
18329
18330
18331  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18332func_split_short_opt ()\
18333{\
18334\    func_split_short_opt_arg=${1#??}\
18335\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18336} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18337  && mv -f "$cfgfile.tmp" "$cfgfile" \
18338    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18339test 0 -eq $? || _lt_function_replace_fail=:
18340
18341
18342  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18343func_lo2o ()\
18344{\
18345\    case ${1} in\
18346\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18347\      *)    func_lo2o_result=${1} ;;\
18348\    esac\
18349} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18350  && mv -f "$cfgfile.tmp" "$cfgfile" \
18351    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18352test 0 -eq $? || _lt_function_replace_fail=:
18353
18354
18355  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18356func_xform ()\
18357{\
18358    func_xform_result=${1%.*}.lo\
18359} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18360  && mv -f "$cfgfile.tmp" "$cfgfile" \
18361    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18362test 0 -eq $? || _lt_function_replace_fail=:
18363
18364
18365  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18366func_arith ()\
18367{\
18368    func_arith_result=$(( $* ))\
18369} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18370  && mv -f "$cfgfile.tmp" "$cfgfile" \
18371    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18372test 0 -eq $? || _lt_function_replace_fail=:
18373
18374
18375  sed -e '/^func_len ()$/,/^} # func_len /c\
18376func_len ()\
18377{\
18378    func_len_result=${#1}\
18379} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18380  && mv -f "$cfgfile.tmp" "$cfgfile" \
18381    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18382test 0 -eq $? || _lt_function_replace_fail=:
18383
18384fi
18385
18386if test x"$lt_shell_append" = xyes; then
18387  sed -e '/^func_append ()$/,/^} # func_append /c\
18388func_append ()\
18389{\
18390    eval "${1}+=\\${2}"\
18391} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18392  && mv -f "$cfgfile.tmp" "$cfgfile" \
18393    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18394test 0 -eq $? || _lt_function_replace_fail=:
18395
18396
18397  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18398func_append_quoted ()\
18399{\
18400\    func_quote_for_eval "${2}"\
18401\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18402} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18403  && mv -f "$cfgfile.tmp" "$cfgfile" \
18404    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18405test 0 -eq $? || _lt_function_replace_fail=:
18406
18407
18408  # Save a `func_append' function call where possible by direct use of '+='
18409  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18410    && mv -f "$cfgfile.tmp" "$cfgfile" \
18411      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18412  test 0 -eq $? || _lt_function_replace_fail=:
18413else
18414  # Save a `func_append' function call even when '+=' is not available
18415  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18416    && mv -f "$cfgfile.tmp" "$cfgfile" \
18417      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18418  test 0 -eq $? || _lt_function_replace_fail=:
18419fi
18420
18421if test x"$_lt_function_replace_fail" = x":"; then
18422  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18423$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18424fi
18425
18426
18427   mv -f "$cfgfile" "$ofile" ||
18428    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18429  chmod +x "$ofile"
18430
18431
18432    cat <<_LT_EOF >> "$ofile"
18433
18434# ### BEGIN LIBTOOL TAG CONFIG: CXX
18435
18436# The linker used to build libraries.
18437LD=$lt_LD_CXX
18438
18439# How to create reloadable object files.
18440reload_flag=$lt_reload_flag_CXX
18441reload_cmds=$lt_reload_cmds_CXX
18442
18443# Commands used to build an old-style archive.
18444old_archive_cmds=$lt_old_archive_cmds_CXX
18445
18446# A language specific compiler.
18447CC=$lt_compiler_CXX
18448
18449# Is the compiler the GNU compiler?
18450with_gcc=$GCC_CXX
18451
18452# Compiler flag to turn off builtin functions.
18453no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18454
18455# Additional compiler flags for building library objects.
18456pic_flag=$lt_lt_prog_compiler_pic_CXX
18457
18458# How to pass a linker flag through the compiler.
18459wl=$lt_lt_prog_compiler_wl_CXX
18460
18461# Compiler flag to prevent dynamic linking.
18462link_static_flag=$lt_lt_prog_compiler_static_CXX
18463
18464# Does compiler simultaneously support -c and -o options?
18465compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18466
18467# Whether or not to add -lc for building shared libraries.
18468build_libtool_need_lc=$archive_cmds_need_lc_CXX
18469
18470# Whether or not to disallow shared libs when runtime libs are static.
18471allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18472
18473# Compiler flag to allow reflexive dlopens.
18474export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18475
18476# Compiler flag to generate shared objects directly from archives.
18477whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18478
18479# Whether the compiler copes with passing no objects directly.
18480compiler_needs_object=$lt_compiler_needs_object_CXX
18481
18482# Create an old-style archive from a shared archive.
18483old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18484
18485# Create a temporary old-style archive to link instead of a shared archive.
18486old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18487
18488# Commands used to build a shared archive.
18489archive_cmds=$lt_archive_cmds_CXX
18490archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18491
18492# Commands used to build a loadable module if different from building
18493# a shared archive.
18494module_cmds=$lt_module_cmds_CXX
18495module_expsym_cmds=$lt_module_expsym_cmds_CXX
18496
18497# Whether we are building with GNU ld or not.
18498with_gnu_ld=$lt_with_gnu_ld_CXX
18499
18500# Flag that allows shared libraries with undefined symbols to be built.
18501allow_undefined_flag=$lt_allow_undefined_flag_CXX
18502
18503# Flag that enforces no undefined symbols.
18504no_undefined_flag=$lt_no_undefined_flag_CXX
18505
18506# Flag to hardcode \$libdir into a binary during linking.
18507# This must work even if \$libdir does not exist
18508hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18509
18510# If ld is used when linking, flag to hardcode \$libdir into a binary
18511# during linking.  This must work even if \$libdir does not exist.
18512hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18513
18514# Whether we need a single "-rpath" flag with a separated argument.
18515hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18516
18517# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18518# DIR into the resulting binary.
18519hardcode_direct=$hardcode_direct_CXX
18520
18521# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18522# DIR into the resulting binary and the resulting library dependency is
18523# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18524# library is relocated.
18525hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18526
18527# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18528# into the resulting binary.
18529hardcode_minus_L=$hardcode_minus_L_CXX
18530
18531# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18532# into the resulting binary.
18533hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18534
18535# Set to "yes" if building a shared library automatically hardcodes DIR
18536# into the library and all subsequent libraries and executables linked
18537# against it.
18538hardcode_automatic=$hardcode_automatic_CXX
18539
18540# Set to yes if linker adds runtime paths of dependent libraries
18541# to runtime path list.
18542inherit_rpath=$inherit_rpath_CXX
18543
18544# Whether libtool must link a program against all its dependency libraries.
18545link_all_deplibs=$link_all_deplibs_CXX
18546
18547# Set to "yes" if exported symbols are required.
18548always_export_symbols=$always_export_symbols_CXX
18549
18550# The commands to list exported symbols.
18551export_symbols_cmds=$lt_export_symbols_cmds_CXX
18552
18553# Symbols that should not be listed in the preloaded symbols.
18554exclude_expsyms=$lt_exclude_expsyms_CXX
18555
18556# Symbols that must always be exported.
18557include_expsyms=$lt_include_expsyms_CXX
18558
18559# Commands necessary for linking programs (against libraries) with templates.
18560prelink_cmds=$lt_prelink_cmds_CXX
18561
18562# Commands necessary for finishing linking programs.
18563postlink_cmds=$lt_postlink_cmds_CXX
18564
18565# Specify filename containing input files.
18566file_list_spec=$lt_file_list_spec_CXX
18567
18568# How to hardcode a shared library path into an executable.
18569hardcode_action=$hardcode_action_CXX
18570
18571# The directories searched by this compiler when creating a shared library.
18572compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18573
18574# Dependencies to place before and after the objects being linked to
18575# create a shared library.
18576predep_objects=$lt_predep_objects_CXX
18577postdep_objects=$lt_postdep_objects_CXX
18578predeps=$lt_predeps_CXX
18579postdeps=$lt_postdeps_CXX
18580
18581# The library search path used internally by the compiler when linking
18582# a shared library.
18583compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18584
18585# ### END LIBTOOL TAG CONFIG: CXX
18586_LT_EOF
18587
18588 ;;
18589
18590  esac
18591done # for ac_tag
18592
18593
18594as_fn_exit 0
18595_ACEOF
18596ac_clean_files=$ac_clean_files_save
18597
18598test $ac_write_fail = 0 ||
18599  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18600
18601
18602# configure is writing to config.log, and then calls config.status.
18603# config.status does its own redirection, appending to config.log.
18604# Unfortunately, on DOS this fails, as config.log is still kept open
18605# by configure, so config.status won't be able to write to it; its
18606# output is simply discarded.  So we exec the FD to /dev/null,
18607# effectively closing config.log, so it can be properly (re)opened and
18608# appended to by config.status.  When coming back to configure, we
18609# need to make the FD available again.
18610if test "$no_create" != yes; then
18611  ac_cs_success=:
18612  ac_config_status_args=
18613  test "$silent" = yes &&
18614    ac_config_status_args="$ac_config_status_args --quiet"
18615  exec 5>/dev/null
18616  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18617  exec 5>>config.log
18618  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18619  # would make configure fail if this is the last instruction.
18620  $ac_cs_success || as_fn_exit 1
18621fi
18622if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18623  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18624$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18625fi
18626
18627
18628abs_srcdir="`cd $srcdir && pwd`"
18629abs_builddir="`pwd`"
18630if test "$abs_srcdir" != "$abs_builddir"; then
18631  make mkdir-init
18632fi
18633