1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="README"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
634WINDRES
635SET_MAKE
636INSTALL_DATA
637INSTALL_SCRIPT
638INSTALL_PROGRAM
639CXXCPP
640ac_ct_CXX
641CXXFLAGS
642CXX
643CPP
644OTOOL64
645OTOOL
646LIPO
647NMEDIT
648DSYMUTIL
649MANIFEST_TOOL
650AWK
651RANLIB
652STRIP
653ac_ct_AR
654AR
655LN_S
656NM
657ac_ct_DUMPBIN
658DUMPBIN
659LD
660FGREP
661EGREP
662GREP
663SED
664OBJEXT
665EXEEXT
666ac_ct_CC
667CPPFLAGS
668LDFLAGS
669CFLAGS
670CC
671host_os
672host_vendor
673host_cpu
674host
675build_os
676build_vendor
677build_cpu
678build
679LIBTOOL
680OBJDUMP
681DLLTOOL
682AS
683target_alias
684host_alias
685build_alias
686LIBS
687ECHO_T
688ECHO_N
689ECHO_C
690DEFS
691mandir
692localedir
693libdir
694psdir
695pdfdir
696dvidir
697htmldir
698infodir
699docdir
700oldincludedir
701includedir
702localstatedir
703sharedstatedir
704sysconfdir
705datadir
706datarootdir
707libexecdir
708sbindir
709bindir
710program_transform_name
711prefix
712exec_prefix
713PACKAGE_URL
714PACKAGE_BUGREPORT
715PACKAGE_STRING
716PACKAGE_VERSION
717PACKAGE_TARNAME
718PACKAGE_NAME
719PATH_SEPARATOR
720SHELL'
721ac_subst_files=''
722ac_user_opts='
723enable_option_checking
724enable_shared
725enable_static
726with_pic
727enable_fast_install
728with_gnu_ld
729with_sysroot
730enable_libtool_lock
731'
732      ac_precious_vars='build_alias
733host_alias
734target_alias
735CC
736CFLAGS
737LDFLAGS
738LIBS
739CPPFLAGS
740CPP
741CXX
742CXXFLAGS
743CCC
744CXXCPP'
745
746
747# Initialize some variables set by options.
748ac_init_help=
749ac_init_version=false
750ac_unrecognized_opts=
751ac_unrecognized_sep=
752# The variables have the same names as the options, with
753# dashes changed to underlines.
754cache_file=/dev/null
755exec_prefix=NONE
756no_create=
757no_recursion=
758prefix=NONE
759program_prefix=NONE
760program_suffix=NONE
761program_transform_name=s,x,x,
762silent=
763site=
764srcdir=
765verbose=
766x_includes=NONE
767x_libraries=NONE
768
769# Installation directory options.
770# These are left unexpanded so users can "make install exec_prefix=/foo"
771# and all the variables that are supposed to be based on exec_prefix
772# by default will actually change.
773# Use braces instead of parens because sh, perl, etc. also accept them.
774# (The list follows the same order as the GNU Coding Standards.)
775bindir='${exec_prefix}/bin'
776sbindir='${exec_prefix}/sbin'
777libexecdir='${exec_prefix}/libexec'
778datarootdir='${prefix}/share'
779datadir='${datarootdir}'
780sysconfdir='${prefix}/etc'
781sharedstatedir='${prefix}/com'
782localstatedir='${prefix}/var'
783includedir='${prefix}/include'
784oldincludedir='/usr/include'
785docdir='${datarootdir}/doc/${PACKAGE}'
786infodir='${datarootdir}/info'
787htmldir='${docdir}'
788dvidir='${docdir}'
789pdfdir='${docdir}'
790psdir='${docdir}'
791libdir='${exec_prefix}/lib'
792localedir='${datarootdir}/locale'
793mandir='${datarootdir}/man'
794
795ac_prev=
796ac_dashdash=
797for ac_option
798do
799  # If the previous option needs an argument, assign it.
800  if test -n "$ac_prev"; then
801    eval $ac_prev=\$ac_option
802    ac_prev=
803    continue
804  fi
805
806  case $ac_option in
807  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
808  *=)   ac_optarg= ;;
809  *)    ac_optarg=yes ;;
810  esac
811
812  # Accept the important Cygnus configure options, so we can diagnose typos.
813
814  case $ac_dashdash$ac_option in
815  --)
816    ac_dashdash=yes ;;
817
818  -bindir | --bindir | --bindi | --bind | --bin | --bi)
819    ac_prev=bindir ;;
820  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821    bindir=$ac_optarg ;;
822
823  -build | --build | --buil | --bui | --bu)
824    ac_prev=build_alias ;;
825  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
826    build_alias=$ac_optarg ;;
827
828  -cache-file | --cache-file | --cache-fil | --cache-fi \
829  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
830    ac_prev=cache_file ;;
831  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
832  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
833    cache_file=$ac_optarg ;;
834
835  --config-cache | -C)
836    cache_file=config.cache ;;
837
838  -datadir | --datadir | --datadi | --datad)
839    ac_prev=datadir ;;
840  -datadir=* | --datadir=* | --datadi=* | --datad=*)
841    datadir=$ac_optarg ;;
842
843  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844  | --dataroo | --dataro | --datar)
845    ac_prev=datarootdir ;;
846  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848    datarootdir=$ac_optarg ;;
849
850  -disable-* | --disable-*)
851    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852    # Reject names that are not valid shell variable names.
853    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
854      as_fn_error $? "invalid feature name: $ac_useropt"
855    ac_useropt_orig=$ac_useropt
856    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857    case $ac_user_opts in
858      *"
859"enable_$ac_useropt"
860"*) ;;
861      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
862	 ac_unrecognized_sep=', ';;
863    esac
864    eval enable_$ac_useropt=no ;;
865
866  -docdir | --docdir | --docdi | --doc | --do)
867    ac_prev=docdir ;;
868  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
869    docdir=$ac_optarg ;;
870
871  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
872    ac_prev=dvidir ;;
873  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
874    dvidir=$ac_optarg ;;
875
876  -enable-* | --enable-*)
877    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
878    # Reject names that are not valid shell variable names.
879    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880      as_fn_error $? "invalid feature name: $ac_useropt"
881    ac_useropt_orig=$ac_useropt
882    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883    case $ac_user_opts in
884      *"
885"enable_$ac_useropt"
886"*) ;;
887      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
888	 ac_unrecognized_sep=', ';;
889    esac
890    eval enable_$ac_useropt=\$ac_optarg ;;
891
892  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
893  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
894  | --exec | --exe | --ex)
895    ac_prev=exec_prefix ;;
896  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
897  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
898  | --exec=* | --exe=* | --ex=*)
899    exec_prefix=$ac_optarg ;;
900
901  -gas | --gas | --ga | --g)
902    # Obsolete; use --with-gas.
903    with_gas=yes ;;
904
905  -help | --help | --hel | --he | -h)
906    ac_init_help=long ;;
907  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
908    ac_init_help=recursive ;;
909  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
910    ac_init_help=short ;;
911
912  -host | --host | --hos | --ho)
913    ac_prev=host_alias ;;
914  -host=* | --host=* | --hos=* | --ho=*)
915    host_alias=$ac_optarg ;;
916
917  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918    ac_prev=htmldir ;;
919  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920  | --ht=*)
921    htmldir=$ac_optarg ;;
922
923  -includedir | --includedir | --includedi | --included | --include \
924  | --includ | --inclu | --incl | --inc)
925    ac_prev=includedir ;;
926  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
927  | --includ=* | --inclu=* | --incl=* | --inc=*)
928    includedir=$ac_optarg ;;
929
930  -infodir | --infodir | --infodi | --infod | --info | --inf)
931    ac_prev=infodir ;;
932  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
933    infodir=$ac_optarg ;;
934
935  -libdir | --libdir | --libdi | --libd)
936    ac_prev=libdir ;;
937  -libdir=* | --libdir=* | --libdi=* | --libd=*)
938    libdir=$ac_optarg ;;
939
940  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
941  | --libexe | --libex | --libe)
942    ac_prev=libexecdir ;;
943  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
944  | --libexe=* | --libex=* | --libe=*)
945    libexecdir=$ac_optarg ;;
946
947  -localedir | --localedir | --localedi | --localed | --locale)
948    ac_prev=localedir ;;
949  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
950    localedir=$ac_optarg ;;
951
952  -localstatedir | --localstatedir | --localstatedi | --localstated \
953  | --localstate | --localstat | --localsta | --localst | --locals)
954    ac_prev=localstatedir ;;
955  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
956  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
957    localstatedir=$ac_optarg ;;
958
959  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960    ac_prev=mandir ;;
961  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
962    mandir=$ac_optarg ;;
963
964  -nfp | --nfp | --nf)
965    # Obsolete; use --without-fp.
966    with_fp=no ;;
967
968  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
969  | --no-cr | --no-c | -n)
970    no_create=yes ;;
971
972  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
973  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
974    no_recursion=yes ;;
975
976  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
977  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
978  | --oldin | --oldi | --old | --ol | --o)
979    ac_prev=oldincludedir ;;
980  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
981  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
982  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
983    oldincludedir=$ac_optarg ;;
984
985  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986    ac_prev=prefix ;;
987  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
988    prefix=$ac_optarg ;;
989
990  -program-prefix | --program-prefix | --program-prefi | --program-pref \
991  | --program-pre | --program-pr | --program-p)
992    ac_prev=program_prefix ;;
993  -program-prefix=* | --program-prefix=* | --program-prefi=* \
994  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
995    program_prefix=$ac_optarg ;;
996
997  -program-suffix | --program-suffix | --program-suffi | --program-suff \
998  | --program-suf | --program-su | --program-s)
999    ac_prev=program_suffix ;;
1000  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1001  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1002    program_suffix=$ac_optarg ;;
1003
1004  -program-transform-name | --program-transform-name \
1005  | --program-transform-nam | --program-transform-na \
1006  | --program-transform-n | --program-transform- \
1007  | --program-transform | --program-transfor \
1008  | --program-transfo | --program-transf \
1009  | --program-trans | --program-tran \
1010  | --progr-tra | --program-tr | --program-t)
1011    ac_prev=program_transform_name ;;
1012  -program-transform-name=* | --program-transform-name=* \
1013  | --program-transform-nam=* | --program-transform-na=* \
1014  | --program-transform-n=* | --program-transform-=* \
1015  | --program-transform=* | --program-transfor=* \
1016  | --program-transfo=* | --program-transf=* \
1017  | --program-trans=* | --program-tran=* \
1018  | --progr-tra=* | --program-tr=* | --program-t=*)
1019    program_transform_name=$ac_optarg ;;
1020
1021  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022    ac_prev=pdfdir ;;
1023  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1024    pdfdir=$ac_optarg ;;
1025
1026  -psdir | --psdir | --psdi | --psd | --ps)
1027    ac_prev=psdir ;;
1028  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1029    psdir=$ac_optarg ;;
1030
1031  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032  | -silent | --silent | --silen | --sile | --sil)
1033    silent=yes ;;
1034
1035  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036    ac_prev=sbindir ;;
1037  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038  | --sbi=* | --sb=*)
1039    sbindir=$ac_optarg ;;
1040
1041  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1042  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1043  | --sharedst | --shareds | --shared | --share | --shar \
1044  | --sha | --sh)
1045    ac_prev=sharedstatedir ;;
1046  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1047  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1048  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049  | --sha=* | --sh=*)
1050    sharedstatedir=$ac_optarg ;;
1051
1052  -site | --site | --sit)
1053    ac_prev=site ;;
1054  -site=* | --site=* | --sit=*)
1055    site=$ac_optarg ;;
1056
1057  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058    ac_prev=srcdir ;;
1059  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1060    srcdir=$ac_optarg ;;
1061
1062  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1063  | --syscon | --sysco | --sysc | --sys | --sy)
1064    ac_prev=sysconfdir ;;
1065  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1066  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1067    sysconfdir=$ac_optarg ;;
1068
1069  -target | --target | --targe | --targ | --tar | --ta | --t)
1070    ac_prev=target_alias ;;
1071  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1072    target_alias=$ac_optarg ;;
1073
1074  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1075    verbose=yes ;;
1076
1077  -version | --version | --versio | --versi | --vers | -V)
1078    ac_init_version=: ;;
1079
1080  -with-* | --with-*)
1081    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1082    # Reject names that are not valid shell variable names.
1083    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084      as_fn_error $? "invalid package name: $ac_useropt"
1085    ac_useropt_orig=$ac_useropt
1086    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087    case $ac_user_opts in
1088      *"
1089"with_$ac_useropt"
1090"*) ;;
1091      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1092	 ac_unrecognized_sep=', ';;
1093    esac
1094    eval with_$ac_useropt=\$ac_optarg ;;
1095
1096  -without-* | --without-*)
1097    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1098    # Reject names that are not valid shell variable names.
1099    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100      as_fn_error $? "invalid package name: $ac_useropt"
1101    ac_useropt_orig=$ac_useropt
1102    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103    case $ac_user_opts in
1104      *"
1105"with_$ac_useropt"
1106"*) ;;
1107      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1108	 ac_unrecognized_sep=', ';;
1109    esac
1110    eval with_$ac_useropt=no ;;
1111
1112  --x)
1113    # Obsolete; use --with-x.
1114    with_x=yes ;;
1115
1116  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1117  | --x-incl | --x-inc | --x-in | --x-i)
1118    ac_prev=x_includes ;;
1119  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1120  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1121    x_includes=$ac_optarg ;;
1122
1123  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1124  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1125    ac_prev=x_libraries ;;
1126  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1127  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1128    x_libraries=$ac_optarg ;;
1129
1130  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1131Try \`$0 --help' for more information"
1132    ;;
1133
1134  *=*)
1135    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1136    # Reject names that are not valid shell variable names.
1137    case $ac_envvar in #(
1138      '' | [0-9]* | *[!_$as_cr_alnum]* )
1139      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1140    esac
1141    eval $ac_envvar=\$ac_optarg
1142    export $ac_envvar ;;
1143
1144  *)
1145    # FIXME: should be removed in autoconf 3.0.
1146    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1147    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1148      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1149    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1150    ;;
1151
1152  esac
1153done
1154
1155if test -n "$ac_prev"; then
1156  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1157  as_fn_error $? "missing argument to $ac_option"
1158fi
1159
1160if test -n "$ac_unrecognized_opts"; then
1161  case $enable_option_checking in
1162    no) ;;
1163    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1164    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1165  esac
1166fi
1167
1168# Check all directory arguments for consistency.
1169for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170		datadir sysconfdir sharedstatedir localstatedir includedir \
1171		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172		libdir localedir mandir
1173do
1174  eval ac_val=\$$ac_var
1175  # Remove trailing slashes.
1176  case $ac_val in
1177    */ )
1178      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1179      eval $ac_var=\$ac_val;;
1180  esac
1181  # Be sure to have absolute directory names.
1182  case $ac_val in
1183    [\\/$]* | ?:[\\/]* )  continue;;
1184    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185  esac
1186  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1187done
1188
1189# There might be people who depend on the old broken behavior: `$host'
1190# used to hold the argument of --host etc.
1191# FIXME: To remove some day.
1192build=$build_alias
1193host=$host_alias
1194target=$target_alias
1195
1196# FIXME: To remove some day.
1197if test "x$host_alias" != x; then
1198  if test "x$build_alias" = x; then
1199    cross_compiling=maybe
1200  elif test "x$build_alias" != "x$host_alias"; then
1201    cross_compiling=yes
1202  fi
1203fi
1204
1205ac_tool_prefix=
1206test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207
1208test "$silent" = yes && exec 6>/dev/null
1209
1210
1211ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212ac_ls_di=`ls -di .` &&
1213ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214  as_fn_error $? "working directory cannot be determined"
1215test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216  as_fn_error $? "pwd does not report name of working directory"
1217
1218
1219# Find the source files, if location was not specified.
1220if test -z "$srcdir"; then
1221  ac_srcdir_defaulted=yes
1222  # Try the directory containing this script, then the parent directory.
1223  ac_confdir=`$as_dirname -- "$as_myself" ||
1224$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225	 X"$as_myself" : 'X\(//\)[^/]' \| \
1226	 X"$as_myself" : 'X\(//\)$' \| \
1227	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228$as_echo X"$as_myself" |
1229    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230	    s//\1/
1231	    q
1232	  }
1233	  /^X\(\/\/\)[^/].*/{
1234	    s//\1/
1235	    q
1236	  }
1237	  /^X\(\/\/\)$/{
1238	    s//\1/
1239	    q
1240	  }
1241	  /^X\(\/\).*/{
1242	    s//\1/
1243	    q
1244	  }
1245	  s/.*/./; q'`
1246  srcdir=$ac_confdir
1247  if test ! -r "$srcdir/$ac_unique_file"; then
1248    srcdir=..
1249  fi
1250else
1251  ac_srcdir_defaulted=no
1252fi
1253if test ! -r "$srcdir/$ac_unique_file"; then
1254  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1256fi
1257ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258ac_abs_confdir=`(
1259	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260	pwd)`
1261# When building in place, set srcdir=.
1262if test "$ac_abs_confdir" = "$ac_pwd"; then
1263  srcdir=.
1264fi
1265# Remove unnecessary trailing slashes from srcdir.
1266# Double slashes in file names in object file debugging info
1267# mess up M-x gdb in Emacs.
1268case $srcdir in
1269*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270esac
1271for ac_var in $ac_precious_vars; do
1272  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273  eval ac_env_${ac_var}_value=\$${ac_var}
1274  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276done
1277
1278#
1279# Report the --help message.
1280#
1281if test "$ac_init_help" = "long"; then
1282  # Omit some internal or obsolete options to make the list less imposing.
1283  # This message is too long to be a string in the A/UX 3.1 sh.
1284  cat <<_ACEOF
1285\`configure' configures this package to adapt to many kinds of systems.
1286
1287Usage: $0 [OPTION]... [VAR=VALUE]...
1288
1289To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290VAR=VALUE.  See below for descriptions of some of the useful variables.
1291
1292Defaults for the options are specified in brackets.
1293
1294Configuration:
1295  -h, --help              display this help and exit
1296      --help=short        display options specific to this package
1297      --help=recursive    display the short help of all the included packages
1298  -V, --version           display version information and exit
1299  -q, --quiet, --silent   do not print \`checking ...' messages
1300      --cache-file=FILE   cache test results in FILE [disabled]
1301  -C, --config-cache      alias for \`--cache-file=config.cache'
1302  -n, --no-create         do not create output files
1303      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1304
1305Installation directories:
1306  --prefix=PREFIX         install architecture-independent files in PREFIX
1307                          [$ac_default_prefix]
1308  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1309                          [PREFIX]
1310
1311By default, \`make install' will install all the files in
1312\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1313an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314for instance \`--prefix=\$HOME'.
1315
1316For better control, use the options below.
1317
1318Fine tuning of the installation directories:
1319  --bindir=DIR            user executables [EPREFIX/bin]
1320  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1321  --libexecdir=DIR        program executables [EPREFIX/libexec]
1322  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1323  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1324  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1325  --libdir=DIR            object code libraries [EPREFIX/lib]
1326  --includedir=DIR        C header files [PREFIX/include]
1327  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1328  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1329  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1330  --infodir=DIR           info documentation [DATAROOTDIR/info]
1331  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1332  --mandir=DIR            man documentation [DATAROOTDIR/man]
1333  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1334  --htmldir=DIR           html documentation [DOCDIR]
1335  --dvidir=DIR            dvi documentation [DOCDIR]
1336  --pdfdir=DIR            pdf documentation [DOCDIR]
1337  --psdir=DIR             ps documentation [DOCDIR]
1338_ACEOF
1339
1340  cat <<\_ACEOF
1341
1342System types:
1343  --build=BUILD     configure for building on BUILD [guessed]
1344  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1345_ACEOF
1346fi
1347
1348if test -n "$ac_init_help"; then
1349
1350  cat <<\_ACEOF
1351
1352Optional Features:
1353  --disable-option-checking  ignore unrecognized --enable/--with options
1354  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1355  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1356  --enable-shared[=PKGS]  build shared libraries [default=yes]
1357  --enable-static[=PKGS]  build static libraries [default=yes]
1358  --enable-fast-install[=PKGS]
1359                          optimize for fast installation [default=yes]
1360  --disable-libtool-lock  avoid locking (might break parallel builds)
1361
1362Optional Packages:
1363  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1364  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1365  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1366                          both]
1367  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1368  --with-sysroot=DIR Search for dependent libraries within DIR
1369                        (or the compiler's sysroot if not specified).
1370
1371Some influential environment variables:
1372  CC          C compiler command
1373  CFLAGS      C compiler flags
1374  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1375              nonstandard directory <lib dir>
1376  LIBS        libraries to pass to the linker, e.g. -l<library>
1377  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1378              you have headers in a nonstandard directory <include dir>
1379  CPP         C preprocessor
1380  CXX         C++ compiler command
1381  CXXFLAGS    C++ compiler flags
1382  CXXCPP      C++ preprocessor
1383
1384Use these variables to override the choices made by `configure' or to help
1385it to find libraries and programs with nonstandard names/locations.
1386
1387Report bugs to the package provider.
1388_ACEOF
1389ac_status=$?
1390fi
1391
1392if test "$ac_init_help" = "recursive"; then
1393  # If there are subdirs, report their specific --help.
1394  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1395    test -d "$ac_dir" ||
1396      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1397      continue
1398    ac_builddir=.
1399
1400case "$ac_dir" in
1401.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402*)
1403  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1404  # A ".." for each directory in $ac_dir_suffix.
1405  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1406  case $ac_top_builddir_sub in
1407  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1409  esac ;;
1410esac
1411ac_abs_top_builddir=$ac_pwd
1412ac_abs_builddir=$ac_pwd$ac_dir_suffix
1413# for backward compatibility:
1414ac_top_builddir=$ac_top_build_prefix
1415
1416case $srcdir in
1417  .)  # We are building in place.
1418    ac_srcdir=.
1419    ac_top_srcdir=$ac_top_builddir_sub
1420    ac_abs_top_srcdir=$ac_pwd ;;
1421  [\\/]* | ?:[\\/]* )  # Absolute name.
1422    ac_srcdir=$srcdir$ac_dir_suffix;
1423    ac_top_srcdir=$srcdir
1424    ac_abs_top_srcdir=$srcdir ;;
1425  *) # Relative name.
1426    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1427    ac_top_srcdir=$ac_top_build_prefix$srcdir
1428    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1429esac
1430ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1431
1432    cd "$ac_dir" || { ac_status=$?; continue; }
1433    # Check for guested configure.
1434    if test -f "$ac_srcdir/configure.gnu"; then
1435      echo &&
1436      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1437    elif test -f "$ac_srcdir/configure"; then
1438      echo &&
1439      $SHELL "$ac_srcdir/configure" --help=recursive
1440    else
1441      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1442    fi || ac_status=$?
1443    cd "$ac_pwd" || { ac_status=$?; break; }
1444  done
1445fi
1446
1447test -n "$ac_init_help" && exit $ac_status
1448if $ac_init_version; then
1449  cat <<\_ACEOF
1450configure
1451generated by GNU Autoconf 2.69
1452
1453Copyright (C) 2012 Free Software Foundation, Inc.
1454This configure script is free software; the Free Software Foundation
1455gives unlimited permission to copy, distribute and modify it.
1456_ACEOF
1457  exit
1458fi
1459
1460## ------------------------ ##
1461## Autoconf initialization. ##
1462## ------------------------ ##
1463
1464# ac_fn_c_try_compile LINENO
1465# --------------------------
1466# Try to compile conftest.$ac_ext, and return whether this succeeded.
1467ac_fn_c_try_compile ()
1468{
1469  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1470  rm -f conftest.$ac_objext
1471  if { { ac_try="$ac_compile"
1472case "(($ac_try" in
1473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1474  *) ac_try_echo=$ac_try;;
1475esac
1476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1477$as_echo "$ac_try_echo"; } >&5
1478  (eval "$ac_compile") 2>conftest.err
1479  ac_status=$?
1480  if test -s conftest.err; then
1481    grep -v '^ *+' conftest.err >conftest.er1
1482    cat conftest.er1 >&5
1483    mv -f conftest.er1 conftest.err
1484  fi
1485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1486  test $ac_status = 0; } && {
1487	 test -z "$ac_c_werror_flag" ||
1488	 test ! -s conftest.err
1489       } && test -s conftest.$ac_objext; then :
1490  ac_retval=0
1491else
1492  $as_echo "$as_me: failed program was:" >&5
1493sed 's/^/| /' conftest.$ac_ext >&5
1494
1495	ac_retval=1
1496fi
1497  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1498  as_fn_set_status $ac_retval
1499
1500} # ac_fn_c_try_compile
1501
1502# ac_fn_c_try_link LINENO
1503# -----------------------
1504# Try to link conftest.$ac_ext, and return whether this succeeded.
1505ac_fn_c_try_link ()
1506{
1507  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508  rm -f conftest.$ac_objext conftest$ac_exeext
1509  if { { ac_try="$ac_link"
1510case "(($ac_try" in
1511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512  *) ac_try_echo=$ac_try;;
1513esac
1514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515$as_echo "$ac_try_echo"; } >&5
1516  (eval "$ac_link") 2>conftest.err
1517  ac_status=$?
1518  if test -s conftest.err; then
1519    grep -v '^ *+' conftest.err >conftest.er1
1520    cat conftest.er1 >&5
1521    mv -f conftest.er1 conftest.err
1522  fi
1523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524  test $ac_status = 0; } && {
1525	 test -z "$ac_c_werror_flag" ||
1526	 test ! -s conftest.err
1527       } && test -s conftest$ac_exeext && {
1528	 test "$cross_compiling" = yes ||
1529	 test -x conftest$ac_exeext
1530       }; then :
1531  ac_retval=0
1532else
1533  $as_echo "$as_me: failed program was:" >&5
1534sed 's/^/| /' conftest.$ac_ext >&5
1535
1536	ac_retval=1
1537fi
1538  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1539  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1540  # interfere with the next link command; also delete a directory that is
1541  # left behind by Apple's compiler.  We do this before executing the actions.
1542  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1543  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544  as_fn_set_status $ac_retval
1545
1546} # ac_fn_c_try_link
1547
1548# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1549# -------------------------------------------------------
1550# Tests whether HEADER exists and can be compiled using the include files in
1551# INCLUDES, setting the cache variable VAR accordingly.
1552ac_fn_c_check_header_compile ()
1553{
1554  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1556$as_echo_n "checking for $2... " >&6; }
1557if eval \${$3+:} false; then :
1558  $as_echo_n "(cached) " >&6
1559else
1560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1561/* end confdefs.h.  */
1562$4
1563#include <$2>
1564_ACEOF
1565if ac_fn_c_try_compile "$LINENO"; then :
1566  eval "$3=yes"
1567else
1568  eval "$3=no"
1569fi
1570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1571fi
1572eval ac_res=\$$3
1573	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1574$as_echo "$ac_res" >&6; }
1575  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576
1577} # ac_fn_c_check_header_compile
1578
1579# ac_fn_c_try_cpp LINENO
1580# ----------------------
1581# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_cpp ()
1583{
1584  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585  if { { ac_try="$ac_cpp conftest.$ac_ext"
1586case "(($ac_try" in
1587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588  *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593  ac_status=$?
1594  if test -s conftest.err; then
1595    grep -v '^ *+' conftest.err >conftest.er1
1596    cat conftest.er1 >&5
1597    mv -f conftest.er1 conftest.err
1598  fi
1599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600  test $ac_status = 0; } > conftest.i && {
1601	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602	 test ! -s conftest.err
1603       }; then :
1604  ac_retval=0
1605else
1606  $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609    ac_retval=1
1610fi
1611  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612  as_fn_set_status $ac_retval
1613
1614} # ac_fn_c_try_cpp
1615
1616# ac_fn_c_try_run LINENO
1617# ----------------------
1618# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1619# that executables *can* be run.
1620ac_fn_c_try_run ()
1621{
1622  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623  if { { ac_try="$ac_link"
1624case "(($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_link") 2>&5
1631  ac_status=$?
1632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1634  { { case "(($ac_try" in
1635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636  *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640  (eval "$ac_try") 2>&5
1641  ac_status=$?
1642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643  test $ac_status = 0; }; }; then :
1644  ac_retval=0
1645else
1646  $as_echo "$as_me: program exited with status $ac_status" >&5
1647       $as_echo "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650       ac_retval=$ac_status
1651fi
1652  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654  as_fn_set_status $ac_retval
1655
1656} # ac_fn_c_try_run
1657
1658# ac_fn_c_check_func LINENO FUNC VAR
1659# ----------------------------------
1660# Tests whether FUNC exists, setting the cache variable VAR accordingly
1661ac_fn_c_check_func ()
1662{
1663  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665$as_echo_n "checking for $2... " >&6; }
1666if eval \${$3+:} false; then :
1667  $as_echo_n "(cached) " >&6
1668else
1669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h.  */
1671/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1672   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1673#define $2 innocuous_$2
1674
1675/* System header to define __stub macros and hopefully few prototypes,
1676    which can conflict with char $2 (); below.
1677    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1678    <limits.h> exists even on freestanding compilers.  */
1679
1680#ifdef __STDC__
1681# include <limits.h>
1682#else
1683# include <assert.h>
1684#endif
1685
1686#undef $2
1687
1688/* Override any GCC internal prototype to avoid an error.
1689   Use char because int might match the return type of a GCC
1690   builtin and then its argument prototype would still apply.  */
1691#ifdef __cplusplus
1692extern "C"
1693#endif
1694char $2 ();
1695/* The GNU C library defines this for functions which it implements
1696    to always fail with ENOSYS.  Some functions are actually named
1697    something starting with __ and the normal name is an alias.  */
1698#if defined __stub_$2 || defined __stub___$2
1699choke me
1700#endif
1701
1702int
1703main ()
1704{
1705return $2 ();
1706  ;
1707  return 0;
1708}
1709_ACEOF
1710if ac_fn_c_try_link "$LINENO"; then :
1711  eval "$3=yes"
1712else
1713  eval "$3=no"
1714fi
1715rm -f core conftest.err conftest.$ac_objext \
1716    conftest$ac_exeext conftest.$ac_ext
1717fi
1718eval ac_res=\$$3
1719	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723} # ac_fn_c_check_func
1724
1725# ac_fn_cxx_try_compile LINENO
1726# ----------------------------
1727# Try to compile conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_cxx_try_compile ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  rm -f conftest.$ac_objext
1732  if { { ac_try="$ac_compile"
1733case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739  (eval "$ac_compile") 2>conftest.err
1740  ac_status=$?
1741  if test -s conftest.err; then
1742    grep -v '^ *+' conftest.err >conftest.er1
1743    cat conftest.er1 >&5
1744    mv -f conftest.er1 conftest.err
1745  fi
1746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747  test $ac_status = 0; } && {
1748	 test -z "$ac_cxx_werror_flag" ||
1749	 test ! -s conftest.err
1750       } && test -s conftest.$ac_objext; then :
1751  ac_retval=0
1752else
1753  $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756	ac_retval=1
1757fi
1758  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759  as_fn_set_status $ac_retval
1760
1761} # ac_fn_cxx_try_compile
1762
1763# ac_fn_cxx_try_cpp LINENO
1764# ------------------------
1765# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_cxx_try_cpp ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  if { { ac_try="$ac_cpp conftest.$ac_ext"
1770case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777  ac_status=$?
1778  if test -s conftest.err; then
1779    grep -v '^ *+' conftest.err >conftest.er1
1780    cat conftest.er1 >&5
1781    mv -f conftest.er1 conftest.err
1782  fi
1783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784  test $ac_status = 0; } > conftest.i && {
1785	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1786	 test ! -s conftest.err
1787       }; then :
1788  ac_retval=0
1789else
1790  $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793    ac_retval=1
1794fi
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796  as_fn_set_status $ac_retval
1797
1798} # ac_fn_cxx_try_cpp
1799
1800# ac_fn_cxx_try_link LINENO
1801# -------------------------
1802# Try to link conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_cxx_try_link ()
1804{
1805  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806  rm -f conftest.$ac_objext conftest$ac_exeext
1807  if { { ac_try="$ac_link"
1808case "(($ac_try" in
1809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810  *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814  (eval "$ac_link") 2>conftest.err
1815  ac_status=$?
1816  if test -s conftest.err; then
1817    grep -v '^ *+' conftest.err >conftest.er1
1818    cat conftest.er1 >&5
1819    mv -f conftest.er1 conftest.err
1820  fi
1821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822  test $ac_status = 0; } && {
1823	 test -z "$ac_cxx_werror_flag" ||
1824	 test ! -s conftest.err
1825       } && test -s conftest$ac_exeext && {
1826	 test "$cross_compiling" = yes ||
1827	 test -x conftest$ac_exeext
1828       }; then :
1829  ac_retval=0
1830else
1831  $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834	ac_retval=1
1835fi
1836  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1837  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1838  # interfere with the next link command; also delete a directory that is
1839  # left behind by Apple's compiler.  We do this before executing the actions.
1840  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842  as_fn_set_status $ac_retval
1843
1844} # ac_fn_cxx_try_link
1845cat >config.log <<_ACEOF
1846This file contains any messages produced by compilers while
1847running configure, to aid debugging if configure makes a mistake.
1848
1849It was created by $as_me, which was
1850generated by GNU Autoconf 2.69.  Invocation command line was
1851
1852  $ $0 $@
1853
1854_ACEOF
1855exec 5>>config.log
1856{
1857cat <<_ASUNAME
1858## --------- ##
1859## Platform. ##
1860## --------- ##
1861
1862hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1863uname -m = `(uname -m) 2>/dev/null || echo unknown`
1864uname -r = `(uname -r) 2>/dev/null || echo unknown`
1865uname -s = `(uname -s) 2>/dev/null || echo unknown`
1866uname -v = `(uname -v) 2>/dev/null || echo unknown`
1867
1868/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1869/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1870
1871/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1872/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1873/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1874/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1875/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1876/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1877/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1878
1879_ASUNAME
1880
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884  IFS=$as_save_IFS
1885  test -z "$as_dir" && as_dir=.
1886    $as_echo "PATH: $as_dir"
1887  done
1888IFS=$as_save_IFS
1889
1890} >&5
1891
1892cat >&5 <<_ACEOF
1893
1894
1895## ----------- ##
1896## Core tests. ##
1897## ----------- ##
1898
1899_ACEOF
1900
1901
1902# Keep a trace of the command line.
1903# Strip out --no-create and --no-recursion so they do not pile up.
1904# Strip out --silent because we don't want to record it for future runs.
1905# Also quote any args containing shell meta-characters.
1906# Make two passes to allow for proper duplicate-argument suppression.
1907ac_configure_args=
1908ac_configure_args0=
1909ac_configure_args1=
1910ac_must_keep_next=false
1911for ac_pass in 1 2
1912do
1913  for ac_arg
1914  do
1915    case $ac_arg in
1916    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1917    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1918    | -silent | --silent | --silen | --sile | --sil)
1919      continue ;;
1920    *\'*)
1921      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1922    esac
1923    case $ac_pass in
1924    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1925    2)
1926      as_fn_append ac_configure_args1 " '$ac_arg'"
1927      if test $ac_must_keep_next = true; then
1928	ac_must_keep_next=false # Got value, back to normal.
1929      else
1930	case $ac_arg in
1931	  *=* | --config-cache | -C | -disable-* | --disable-* \
1932	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1933	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1934	  | -with-* | --with-* | -without-* | --without-* | --x)
1935	    case "$ac_configure_args0 " in
1936	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1937	    esac
1938	    ;;
1939	  -* ) ac_must_keep_next=true ;;
1940	esac
1941      fi
1942      as_fn_append ac_configure_args " '$ac_arg'"
1943      ;;
1944    esac
1945  done
1946done
1947{ ac_configure_args0=; unset ac_configure_args0;}
1948{ ac_configure_args1=; unset ac_configure_args1;}
1949
1950# When interrupted or exit'd, cleanup temporary files, and complete
1951# config.log.  We remove comments because anyway the quotes in there
1952# would cause problems or look ugly.
1953# WARNING: Use '\'' to represent an apostrophe within the trap.
1954# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1955trap 'exit_status=$?
1956  # Save into config.log some information that might help in debugging.
1957  {
1958    echo
1959
1960    $as_echo "## ---------------- ##
1961## Cache variables. ##
1962## ---------------- ##"
1963    echo
1964    # The following way of writing the cache mishandles newlines in values,
1965(
1966  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1967    eval ac_val=\$$ac_var
1968    case $ac_val in #(
1969    *${as_nl}*)
1970      case $ac_var in #(
1971      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1972$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1973      esac
1974      case $ac_var in #(
1975      _ | IFS | as_nl) ;; #(
1976      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1977      *) { eval $ac_var=; unset $ac_var;} ;;
1978      esac ;;
1979    esac
1980  done
1981  (set) 2>&1 |
1982    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1983    *${as_nl}ac_space=\ *)
1984      sed -n \
1985	"s/'\''/'\''\\\\'\'''\''/g;
1986	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1987      ;; #(
1988    *)
1989      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1990      ;;
1991    esac |
1992    sort
1993)
1994    echo
1995
1996    $as_echo "## ----------------- ##
1997## Output variables. ##
1998## ----------------- ##"
1999    echo
2000    for ac_var in $ac_subst_vars
2001    do
2002      eval ac_val=\$$ac_var
2003      case $ac_val in
2004      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005      esac
2006      $as_echo "$ac_var='\''$ac_val'\''"
2007    done | sort
2008    echo
2009
2010    if test -n "$ac_subst_files"; then
2011      $as_echo "## ------------------- ##
2012## File substitutions. ##
2013## ------------------- ##"
2014      echo
2015      for ac_var in $ac_subst_files
2016      do
2017	eval ac_val=\$$ac_var
2018	case $ac_val in
2019	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020	esac
2021	$as_echo "$ac_var='\''$ac_val'\''"
2022      done | sort
2023      echo
2024    fi
2025
2026    if test -s confdefs.h; then
2027      $as_echo "## ----------- ##
2028## confdefs.h. ##
2029## ----------- ##"
2030      echo
2031      cat confdefs.h
2032      echo
2033    fi
2034    test "$ac_signal" != 0 &&
2035      $as_echo "$as_me: caught signal $ac_signal"
2036    $as_echo "$as_me: exit $exit_status"
2037  } >&5
2038  rm -f core *.core core.conftest.* &&
2039    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2040    exit $exit_status
2041' 0
2042for ac_signal in 1 2 13 15; do
2043  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2044done
2045ac_signal=0
2046
2047# confdefs.h avoids OS command line length limits that DEFS can exceed.
2048rm -f -r conftest* confdefs.h
2049
2050$as_echo "/* confdefs.h */" > confdefs.h
2051
2052# Predefined preprocessor variables.
2053
2054cat >>confdefs.h <<_ACEOF
2055#define PACKAGE_NAME "$PACKAGE_NAME"
2056_ACEOF
2057
2058cat >>confdefs.h <<_ACEOF
2059#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2060_ACEOF
2061
2062cat >>confdefs.h <<_ACEOF
2063#define PACKAGE_VERSION "$PACKAGE_VERSION"
2064_ACEOF
2065
2066cat >>confdefs.h <<_ACEOF
2067#define PACKAGE_STRING "$PACKAGE_STRING"
2068_ACEOF
2069
2070cat >>confdefs.h <<_ACEOF
2071#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2072_ACEOF
2073
2074cat >>confdefs.h <<_ACEOF
2075#define PACKAGE_URL "$PACKAGE_URL"
2076_ACEOF
2077
2078
2079# Let the site file select an alternate cache file if it wants to.
2080# Prefer an explicitly selected file to automatically selected ones.
2081ac_site_file1=NONE
2082ac_site_file2=NONE
2083if test -n "$CONFIG_SITE"; then
2084  # We do not want a PATH search for config.site.
2085  case $CONFIG_SITE in #((
2086    -*)  ac_site_file1=./$CONFIG_SITE;;
2087    */*) ac_site_file1=$CONFIG_SITE;;
2088    *)   ac_site_file1=./$CONFIG_SITE;;
2089  esac
2090elif test "x$prefix" != xNONE; then
2091  ac_site_file1=$prefix/share/config.site
2092  ac_site_file2=$prefix/etc/config.site
2093else
2094  ac_site_file1=$ac_default_prefix/share/config.site
2095  ac_site_file2=$ac_default_prefix/etc/config.site
2096fi
2097for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2098do
2099  test "x$ac_site_file" = xNONE && continue
2100  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2101    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2102$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2103    sed 's/^/| /' "$ac_site_file" >&5
2104    . "$ac_site_file" \
2105      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2107as_fn_error $? "failed to load site script $ac_site_file
2108See \`config.log' for more details" "$LINENO" 5; }
2109  fi
2110done
2111
2112if test -r "$cache_file"; then
2113  # Some versions of bash will fail to source /dev/null (special files
2114  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2115  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2116    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2117$as_echo "$as_me: loading cache $cache_file" >&6;}
2118    case $cache_file in
2119      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2120      *)                      . "./$cache_file";;
2121    esac
2122  fi
2123else
2124  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2125$as_echo "$as_me: creating cache $cache_file" >&6;}
2126  >$cache_file
2127fi
2128
2129# Check that the precious variables saved in the cache have kept the same
2130# value.
2131ac_cache_corrupted=false
2132for ac_var in $ac_precious_vars; do
2133  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2134  eval ac_new_set=\$ac_env_${ac_var}_set
2135  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2136  eval ac_new_val=\$ac_env_${ac_var}_value
2137  case $ac_old_set,$ac_new_set in
2138    set,)
2139      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2140$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2141      ac_cache_corrupted=: ;;
2142    ,set)
2143      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2144$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2145      ac_cache_corrupted=: ;;
2146    ,);;
2147    *)
2148      if test "x$ac_old_val" != "x$ac_new_val"; then
2149	# differences in whitespace do not lead to failure.
2150	ac_old_val_w=`echo x $ac_old_val`
2151	ac_new_val_w=`echo x $ac_new_val`
2152	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2153	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2154$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2155	  ac_cache_corrupted=:
2156	else
2157	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2158$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2159	  eval $ac_var=\$ac_old_val
2160	fi
2161	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2162$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2163	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2164$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2165      fi;;
2166  esac
2167  # Pass precious variables to config.status.
2168  if test "$ac_new_set" = set; then
2169    case $ac_new_val in
2170    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2171    *) ac_arg=$ac_var=$ac_new_val ;;
2172    esac
2173    case " $ac_configure_args " in
2174      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2175      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2176    esac
2177  fi
2178done
2179if $ac_cache_corrupted; then
2180  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2183$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2184  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2185fi
2186## -------------------- ##
2187## Main body of script. ##
2188## -------------------- ##
2189
2190ac_ext=c
2191ac_cpp='$CPP $CPPFLAGS'
2192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2194ac_compiler_gnu=$ac_cv_c_compiler_gnu
2195
2196
2197
2198ac_config_headers="$ac_config_headers "
2199
2200ac_aux_dir=
2201for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2202  if test -f "$ac_dir/install-sh"; then
2203    ac_aux_dir=$ac_dir
2204    ac_install_sh="$ac_aux_dir/install-sh -c"
2205    break
2206  elif test -f "$ac_dir/install.sh"; then
2207    ac_aux_dir=$ac_dir
2208    ac_install_sh="$ac_aux_dir/install.sh -c"
2209    break
2210  elif test -f "$ac_dir/shtool"; then
2211    ac_aux_dir=$ac_dir
2212    ac_install_sh="$ac_aux_dir/shtool install -c"
2213    break
2214  fi
2215done
2216if test -z "$ac_aux_dir"; then
2217  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2218fi
2219
2220# These three variables are undocumented and unsupported,
2221# and are intended to be withdrawn in a future Autoconf release.
2222# They can cause serious problems if a builder's source tree is in a directory
2223# whose full name contains unusual characters.
2224ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2225ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2226ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2227
2228
2229case `pwd` in
2230  *\ * | *\	*)
2231    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2232$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2233esac
2234
2235
2236
2237macro_version='2.4.2'
2238macro_revision='1.3337'
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252ltmain="$ac_aux_dir/ltmain.sh"
2253
2254# Make sure we can run config.sub.
2255$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2256  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2257
2258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2259$as_echo_n "checking build system type... " >&6; }
2260if ${ac_cv_build+:} false; then :
2261  $as_echo_n "(cached) " >&6
2262else
2263  ac_build_alias=$build_alias
2264test "x$ac_build_alias" = x &&
2265  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2266test "x$ac_build_alias" = x &&
2267  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2268ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2269  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2270
2271fi
2272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2273$as_echo "$ac_cv_build" >&6; }
2274case $ac_cv_build in
2275*-*-*) ;;
2276*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2277esac
2278build=$ac_cv_build
2279ac_save_IFS=$IFS; IFS='-'
2280set x $ac_cv_build
2281shift
2282build_cpu=$1
2283build_vendor=$2
2284shift; shift
2285# Remember, the first character of IFS is used to create $*,
2286# except with old shells:
2287build_os=$*
2288IFS=$ac_save_IFS
2289case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2290
2291
2292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2293$as_echo_n "checking host system type... " >&6; }
2294if ${ac_cv_host+:} false; then :
2295  $as_echo_n "(cached) " >&6
2296else
2297  if test "x$host_alias" = x; then
2298  ac_cv_host=$ac_cv_build
2299else
2300  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2301    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2302fi
2303
2304fi
2305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2306$as_echo "$ac_cv_host" >&6; }
2307case $ac_cv_host in
2308*-*-*) ;;
2309*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2310esac
2311host=$ac_cv_host
2312ac_save_IFS=$IFS; IFS='-'
2313set x $ac_cv_host
2314shift
2315host_cpu=$1
2316host_vendor=$2
2317shift; shift
2318# Remember, the first character of IFS is used to create $*,
2319# except with old shells:
2320host_os=$*
2321IFS=$ac_save_IFS
2322case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2323
2324
2325# Backslashify metacharacters that are still active within
2326# double-quoted strings.
2327sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2328
2329# Same as above, but do not quote variable references.
2330double_quote_subst='s/\(["`\\]\)/\\\1/g'
2331
2332# Sed substitution to delay expansion of an escaped shell variable in a
2333# double_quote_subst'ed string.
2334delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2335
2336# Sed substitution to delay expansion of an escaped single quote.
2337delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2338
2339# Sed substitution to avoid accidental globbing in evaled expressions
2340no_glob_subst='s/\*/\\\*/g'
2341
2342ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2343ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2344ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2345
2346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2347$as_echo_n "checking how to print strings... " >&6; }
2348# Test print first, because it will be a builtin if present.
2349if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2350   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2351  ECHO='print -r --'
2352elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2353  ECHO='printf %s\n'
2354else
2355  # Use this function as a fallback that always works.
2356  func_fallback_echo ()
2357  {
2358    eval 'cat <<_LTECHO_EOF
2359$1
2360_LTECHO_EOF'
2361  }
2362  ECHO='func_fallback_echo'
2363fi
2364
2365# func_echo_all arg...
2366# Invoke $ECHO with all args, space-separated.
2367func_echo_all ()
2368{
2369    $ECHO ""
2370}
2371
2372case "$ECHO" in
2373  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2374$as_echo "printf" >&6; } ;;
2375  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2376$as_echo "print -r" >&6; } ;;
2377  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2378$as_echo "cat" >&6; } ;;
2379esac
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394ac_ext=c
2395ac_cpp='$CPP $CPPFLAGS'
2396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2398ac_compiler_gnu=$ac_cv_c_compiler_gnu
2399if test -n "$ac_tool_prefix"; then
2400  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2401set dummy ${ac_tool_prefix}gcc; ac_word=$2
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2403$as_echo_n "checking for $ac_word... " >&6; }
2404if ${ac_cv_prog_CC+:} false; then :
2405  $as_echo_n "(cached) " >&6
2406else
2407  if test -n "$CC"; then
2408  ac_cv_prog_CC="$CC" # Let the user override the test.
2409else
2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411for as_dir in $PATH
2412do
2413  IFS=$as_save_IFS
2414  test -z "$as_dir" && as_dir=.
2415    for ac_exec_ext in '' $ac_executable_extensions; do
2416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2419    break 2
2420  fi
2421done
2422  done
2423IFS=$as_save_IFS
2424
2425fi
2426fi
2427CC=$ac_cv_prog_CC
2428if test -n "$CC"; then
2429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2430$as_echo "$CC" >&6; }
2431else
2432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2433$as_echo "no" >&6; }
2434fi
2435
2436
2437fi
2438if test -z "$ac_cv_prog_CC"; then
2439  ac_ct_CC=$CC
2440  # Extract the first word of "gcc", so it can be a program name with args.
2441set dummy gcc; ac_word=$2
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2443$as_echo_n "checking for $ac_word... " >&6; }
2444if ${ac_cv_prog_ac_ct_CC+:} false; then :
2445  $as_echo_n "(cached) " >&6
2446else
2447  if test -n "$ac_ct_CC"; then
2448  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2449else
2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453  IFS=$as_save_IFS
2454  test -z "$as_dir" && as_dir=.
2455    for ac_exec_ext in '' $ac_executable_extensions; do
2456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457    ac_cv_prog_ac_ct_CC="gcc"
2458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2459    break 2
2460  fi
2461done
2462  done
2463IFS=$as_save_IFS
2464
2465fi
2466fi
2467ac_ct_CC=$ac_cv_prog_ac_ct_CC
2468if test -n "$ac_ct_CC"; then
2469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2470$as_echo "$ac_ct_CC" >&6; }
2471else
2472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2473$as_echo "no" >&6; }
2474fi
2475
2476  if test "x$ac_ct_CC" = x; then
2477    CC=""
2478  else
2479    case $cross_compiling:$ac_tool_warned in
2480yes:)
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2483ac_tool_warned=yes ;;
2484esac
2485    CC=$ac_ct_CC
2486  fi
2487else
2488  CC="$ac_cv_prog_CC"
2489fi
2490
2491if test -z "$CC"; then
2492          if test -n "$ac_tool_prefix"; then
2493    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2494set dummy ${ac_tool_prefix}cc; ac_word=$2
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2496$as_echo_n "checking for $ac_word... " >&6; }
2497if ${ac_cv_prog_CC+:} false; then :
2498  $as_echo_n "(cached) " >&6
2499else
2500  if test -n "$CC"; then
2501  ac_cv_prog_CC="$CC" # Let the user override the test.
2502else
2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506  IFS=$as_save_IFS
2507  test -z "$as_dir" && as_dir=.
2508    for ac_exec_ext in '' $ac_executable_extensions; do
2509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2510    ac_cv_prog_CC="${ac_tool_prefix}cc"
2511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2512    break 2
2513  fi
2514done
2515  done
2516IFS=$as_save_IFS
2517
2518fi
2519fi
2520CC=$ac_cv_prog_CC
2521if test -n "$CC"; then
2522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2523$as_echo "$CC" >&6; }
2524else
2525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526$as_echo "no" >&6; }
2527fi
2528
2529
2530  fi
2531fi
2532if test -z "$CC"; then
2533  # Extract the first word of "cc", so it can be a program name with args.
2534set dummy cc; ac_word=$2
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536$as_echo_n "checking for $ac_word... " >&6; }
2537if ${ac_cv_prog_CC+:} false; then :
2538  $as_echo_n "(cached) " >&6
2539else
2540  if test -n "$CC"; then
2541  ac_cv_prog_CC="$CC" # Let the user override the test.
2542else
2543  ac_prog_rejected=no
2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545for as_dir in $PATH
2546do
2547  IFS=$as_save_IFS
2548  test -z "$as_dir" && as_dir=.
2549    for ac_exec_ext in '' $ac_executable_extensions; do
2550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2552       ac_prog_rejected=yes
2553       continue
2554     fi
2555    ac_cv_prog_CC="cc"
2556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557    break 2
2558  fi
2559done
2560  done
2561IFS=$as_save_IFS
2562
2563if test $ac_prog_rejected = yes; then
2564  # We found a bogon in the path, so make sure we never use it.
2565  set dummy $ac_cv_prog_CC
2566  shift
2567  if test $# != 0; then
2568    # We chose a different compiler from the bogus one.
2569    # However, it has the same basename, so the bogon will be chosen
2570    # first if we set CC to just the basename; use the full file name.
2571    shift
2572    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2573  fi
2574fi
2575fi
2576fi
2577CC=$ac_cv_prog_CC
2578if test -n "$CC"; then
2579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2580$as_echo "$CC" >&6; }
2581else
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583$as_echo "no" >&6; }
2584fi
2585
2586
2587fi
2588if test -z "$CC"; then
2589  if test -n "$ac_tool_prefix"; then
2590  for ac_prog in cl.exe
2591  do
2592    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595$as_echo_n "checking for $ac_word... " >&6; }
2596if ${ac_cv_prog_CC+:} false; then :
2597  $as_echo_n "(cached) " >&6
2598else
2599  if test -n "$CC"; then
2600  ac_cv_prog_CC="$CC" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605  IFS=$as_save_IFS
2606  test -z "$as_dir" && as_dir=.
2607    for ac_exec_ext in '' $ac_executable_extensions; do
2608  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611    break 2
2612  fi
2613done
2614  done
2615IFS=$as_save_IFS
2616
2617fi
2618fi
2619CC=$ac_cv_prog_CC
2620if test -n "$CC"; then
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2622$as_echo "$CC" >&6; }
2623else
2624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625$as_echo "no" >&6; }
2626fi
2627
2628
2629    test -n "$CC" && break
2630  done
2631fi
2632if test -z "$CC"; then
2633  ac_ct_CC=$CC
2634  for ac_prog in cl.exe
2635do
2636  # Extract the first word of "$ac_prog", so it can be a program name with args.
2637set dummy $ac_prog; ac_word=$2
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639$as_echo_n "checking for $ac_word... " >&6; }
2640if ${ac_cv_prog_ac_ct_CC+:} false; then :
2641  $as_echo_n "(cached) " >&6
2642else
2643  if test -n "$ac_ct_CC"; then
2644  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649  IFS=$as_save_IFS
2650  test -z "$as_dir" && as_dir=.
2651    for ac_exec_ext in '' $ac_executable_extensions; do
2652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653    ac_cv_prog_ac_ct_CC="$ac_prog"
2654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655    break 2
2656  fi
2657done
2658  done
2659IFS=$as_save_IFS
2660
2661fi
2662fi
2663ac_ct_CC=$ac_cv_prog_ac_ct_CC
2664if test -n "$ac_ct_CC"; then
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2666$as_echo "$ac_ct_CC" >&6; }
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670fi
2671
2672
2673  test -n "$ac_ct_CC" && break
2674done
2675
2676  if test "x$ac_ct_CC" = x; then
2677    CC=""
2678  else
2679    case $cross_compiling:$ac_tool_warned in
2680yes:)
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2683ac_tool_warned=yes ;;
2684esac
2685    CC=$ac_ct_CC
2686  fi
2687fi
2688
2689fi
2690
2691
2692test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2694as_fn_error $? "no acceptable C compiler found in \$PATH
2695See \`config.log' for more details" "$LINENO" 5; }
2696
2697# Provide some information about the compiler.
2698$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2699set X $ac_compile
2700ac_compiler=$2
2701for ac_option in --version -v -V -qversion; do
2702  { { ac_try="$ac_compiler $ac_option >&5"
2703case "(($ac_try" in
2704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705  *) ac_try_echo=$ac_try;;
2706esac
2707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2708$as_echo "$ac_try_echo"; } >&5
2709  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2710  ac_status=$?
2711  if test -s conftest.err; then
2712    sed '10a\
2713... rest of stderr output deleted ...
2714         10q' conftest.err >conftest.er1
2715    cat conftest.er1 >&5
2716  fi
2717  rm -f conftest.er1 conftest.err
2718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2719  test $ac_status = 0; }
2720done
2721
2722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723/* end confdefs.h.  */
2724
2725int
2726main ()
2727{
2728
2729  ;
2730  return 0;
2731}
2732_ACEOF
2733ac_clean_files_save=$ac_clean_files
2734ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2735# Try to create an executable without -o first, disregard a.out.
2736# It will help us diagnose broken compilers, and finding out an intuition
2737# of exeext.
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2739$as_echo_n "checking whether the C compiler works... " >&6; }
2740ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2741
2742# The possible output files:
2743ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2744
2745ac_rmfiles=
2746for ac_file in $ac_files
2747do
2748  case $ac_file in
2749    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2750    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2751  esac
2752done
2753rm -f $ac_rmfiles
2754
2755if { { ac_try="$ac_link_default"
2756case "(($ac_try" in
2757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758  *) ac_try_echo=$ac_try;;
2759esac
2760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2761$as_echo "$ac_try_echo"; } >&5
2762  (eval "$ac_link_default") 2>&5
2763  ac_status=$?
2764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2765  test $ac_status = 0; }; then :
2766  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2767# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2768# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2769# so that the user can short-circuit this test for compilers unknown to
2770# Autoconf.
2771for ac_file in $ac_files ''
2772do
2773  test -f "$ac_file" || continue
2774  case $ac_file in
2775    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2776	;;
2777    [ab].out )
2778	# We found the default executable, but exeext='' is most
2779	# certainly right.
2780	break;;
2781    *.* )
2782	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2783	then :; else
2784	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2785	fi
2786	# We set ac_cv_exeext here because the later test for it is not
2787	# safe: cross compilers may not add the suffix if given an `-o'
2788	# argument, so we may need to know it at that point already.
2789	# Even if this section looks crufty: it has the advantage of
2790	# actually working.
2791	break;;
2792    * )
2793	break;;
2794  esac
2795done
2796test "$ac_cv_exeext" = no && ac_cv_exeext=
2797
2798else
2799  ac_file=''
2800fi
2801if test -z "$ac_file"; then :
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803$as_echo "no" >&6; }
2804$as_echo "$as_me: failed program was:" >&5
2805sed 's/^/| /' conftest.$ac_ext >&5
2806
2807{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2809as_fn_error 77 "C compiler cannot create executables
2810See \`config.log' for more details" "$LINENO" 5; }
2811else
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2813$as_echo "yes" >&6; }
2814fi
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2816$as_echo_n "checking for C compiler default output file name... " >&6; }
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2818$as_echo "$ac_file" >&6; }
2819ac_exeext=$ac_cv_exeext
2820
2821rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2822ac_clean_files=$ac_clean_files_save
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2824$as_echo_n "checking for suffix of executables... " >&6; }
2825if { { ac_try="$ac_link"
2826case "(($ac_try" in
2827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828  *) ac_try_echo=$ac_try;;
2829esac
2830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831$as_echo "$ac_try_echo"; } >&5
2832  (eval "$ac_link") 2>&5
2833  ac_status=$?
2834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835  test $ac_status = 0; }; then :
2836  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2837# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2838# work properly (i.e., refer to `conftest.exe'), while it won't with
2839# `rm'.
2840for ac_file in conftest.exe conftest conftest.*; do
2841  test -f "$ac_file" || continue
2842  case $ac_file in
2843    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2844    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2845	  break;;
2846    * ) break;;
2847  esac
2848done
2849else
2850  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2853See \`config.log' for more details" "$LINENO" 5; }
2854fi
2855rm -f conftest conftest$ac_cv_exeext
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2857$as_echo "$ac_cv_exeext" >&6; }
2858
2859rm -f conftest.$ac_ext
2860EXEEXT=$ac_cv_exeext
2861ac_exeext=$EXEEXT
2862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863/* end confdefs.h.  */
2864#include <stdio.h>
2865int
2866main ()
2867{
2868FILE *f = fopen ("conftest.out", "w");
2869 return ferror (f) || fclose (f) != 0;
2870
2871  ;
2872  return 0;
2873}
2874_ACEOF
2875ac_clean_files="$ac_clean_files conftest.out"
2876# Check that the compiler produces executables we can run.  If not, either
2877# the compiler is broken, or we cross compile.
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2879$as_echo_n "checking whether we are cross compiling... " >&6; }
2880if test "$cross_compiling" != yes; then
2881  { { ac_try="$ac_link"
2882case "(($ac_try" in
2883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884  *) ac_try_echo=$ac_try;;
2885esac
2886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2887$as_echo "$ac_try_echo"; } >&5
2888  (eval "$ac_link") 2>&5
2889  ac_status=$?
2890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2891  test $ac_status = 0; }
2892  if { ac_try='./conftest$ac_cv_exeext'
2893  { { case "(($ac_try" in
2894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895  *) ac_try_echo=$ac_try;;
2896esac
2897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2898$as_echo "$ac_try_echo"; } >&5
2899  (eval "$ac_try") 2>&5
2900  ac_status=$?
2901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2902  test $ac_status = 0; }; }; then
2903    cross_compiling=no
2904  else
2905    if test "$cross_compiling" = maybe; then
2906	cross_compiling=yes
2907    else
2908	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910as_fn_error $? "cannot run C compiled programs.
2911If you meant to cross compile, use \`--host'.
2912See \`config.log' for more details" "$LINENO" 5; }
2913    fi
2914  fi
2915fi
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2917$as_echo "$cross_compiling" >&6; }
2918
2919rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2920ac_clean_files=$ac_clean_files_save
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2922$as_echo_n "checking for suffix of object files... " >&6; }
2923if ${ac_cv_objext+:} false; then :
2924  $as_echo_n "(cached) " >&6
2925else
2926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927/* end confdefs.h.  */
2928
2929int
2930main ()
2931{
2932
2933  ;
2934  return 0;
2935}
2936_ACEOF
2937rm -f conftest.o conftest.obj
2938if { { ac_try="$ac_compile"
2939case "(($ac_try" in
2940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941  *) ac_try_echo=$ac_try;;
2942esac
2943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2944$as_echo "$ac_try_echo"; } >&5
2945  (eval "$ac_compile") 2>&5
2946  ac_status=$?
2947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2948  test $ac_status = 0; }; then :
2949  for ac_file in conftest.o conftest.obj conftest.*; do
2950  test -f "$ac_file" || continue;
2951  case $ac_file in
2952    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2953    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2954       break;;
2955  esac
2956done
2957else
2958  $as_echo "$as_me: failed program was:" >&5
2959sed 's/^/| /' conftest.$ac_ext >&5
2960
2961{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2963as_fn_error $? "cannot compute suffix of object files: cannot compile
2964See \`config.log' for more details" "$LINENO" 5; }
2965fi
2966rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967fi
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2969$as_echo "$ac_cv_objext" >&6; }
2970OBJEXT=$ac_cv_objext
2971ac_objext=$OBJEXT
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2973$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2974if ${ac_cv_c_compiler_gnu+:} false; then :
2975  $as_echo_n "(cached) " >&6
2976else
2977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978/* end confdefs.h.  */
2979
2980int
2981main ()
2982{
2983#ifndef __GNUC__
2984       choke me
2985#endif
2986
2987  ;
2988  return 0;
2989}
2990_ACEOF
2991if ac_fn_c_try_compile "$LINENO"; then :
2992  ac_compiler_gnu=yes
2993else
2994  ac_compiler_gnu=no
2995fi
2996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2997ac_cv_c_compiler_gnu=$ac_compiler_gnu
2998
2999fi
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3001$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3002if test $ac_compiler_gnu = yes; then
3003  GCC=yes
3004else
3005  GCC=
3006fi
3007ac_test_CFLAGS=${CFLAGS+set}
3008ac_save_CFLAGS=$CFLAGS
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3010$as_echo_n "checking whether $CC accepts -g... " >&6; }
3011if ${ac_cv_prog_cc_g+:} false; then :
3012  $as_echo_n "(cached) " >&6
3013else
3014  ac_save_c_werror_flag=$ac_c_werror_flag
3015   ac_c_werror_flag=yes
3016   ac_cv_prog_cc_g=no
3017   CFLAGS="-g"
3018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019/* end confdefs.h.  */
3020
3021int
3022main ()
3023{
3024
3025  ;
3026  return 0;
3027}
3028_ACEOF
3029if ac_fn_c_try_compile "$LINENO"; then :
3030  ac_cv_prog_cc_g=yes
3031else
3032  CFLAGS=""
3033      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034/* end confdefs.h.  */
3035
3036int
3037main ()
3038{
3039
3040  ;
3041  return 0;
3042}
3043_ACEOF
3044if ac_fn_c_try_compile "$LINENO"; then :
3045
3046else
3047  ac_c_werror_flag=$ac_save_c_werror_flag
3048	 CFLAGS="-g"
3049	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050/* end confdefs.h.  */
3051
3052int
3053main ()
3054{
3055
3056  ;
3057  return 0;
3058}
3059_ACEOF
3060if ac_fn_c_try_compile "$LINENO"; then :
3061  ac_cv_prog_cc_g=yes
3062fi
3063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064fi
3065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066fi
3067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3068   ac_c_werror_flag=$ac_save_c_werror_flag
3069fi
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3071$as_echo "$ac_cv_prog_cc_g" >&6; }
3072if test "$ac_test_CFLAGS" = set; then
3073  CFLAGS=$ac_save_CFLAGS
3074elif test $ac_cv_prog_cc_g = yes; then
3075  if test "$GCC" = yes; then
3076    CFLAGS="-g -O2"
3077  else
3078    CFLAGS="-g"
3079  fi
3080else
3081  if test "$GCC" = yes; then
3082    CFLAGS="-O2"
3083  else
3084    CFLAGS=
3085  fi
3086fi
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3088$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3089if ${ac_cv_prog_cc_c89+:} false; then :
3090  $as_echo_n "(cached) " >&6
3091else
3092  ac_cv_prog_cc_c89=no
3093ac_save_CC=$CC
3094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095/* end confdefs.h.  */
3096#include <stdarg.h>
3097#include <stdio.h>
3098struct stat;
3099/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3100struct buf { int x; };
3101FILE * (*rcsopen) (struct buf *, struct stat *, int);
3102static char *e (p, i)
3103     char **p;
3104     int i;
3105{
3106  return p[i];
3107}
3108static char *f (char * (*g) (char **, int), char **p, ...)
3109{
3110  char *s;
3111  va_list v;
3112  va_start (v,p);
3113  s = g (p, va_arg (v,int));
3114  va_end (v);
3115  return s;
3116}
3117
3118/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3119   function prototypes and stuff, but not '\xHH' hex character constants.
3120   These don't provoke an error unfortunately, instead are silently treated
3121   as 'x'.  The following induces an error, until -std is added to get
3122   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3123   array size at least.  It's necessary to write '\x00'==0 to get something
3124   that's true only with -std.  */
3125int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3126
3127/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3128   inside strings and character constants.  */
3129#define FOO(x) 'x'
3130int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3131
3132int test (int i, double x);
3133struct s1 {int (*f) (int a);};
3134struct s2 {int (*f) (double a);};
3135int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3136int argc;
3137char **argv;
3138int
3139main ()
3140{
3141return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3142  ;
3143  return 0;
3144}
3145_ACEOF
3146for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3147	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3148do
3149  CC="$ac_save_CC $ac_arg"
3150  if ac_fn_c_try_compile "$LINENO"; then :
3151  ac_cv_prog_cc_c89=$ac_arg
3152fi
3153rm -f core conftest.err conftest.$ac_objext
3154  test "x$ac_cv_prog_cc_c89" != "xno" && break
3155done
3156rm -f conftest.$ac_ext
3157CC=$ac_save_CC
3158
3159fi
3160# AC_CACHE_VAL
3161case "x$ac_cv_prog_cc_c89" in
3162  x)
3163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3164$as_echo "none needed" >&6; } ;;
3165  xno)
3166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3167$as_echo "unsupported" >&6; } ;;
3168  *)
3169    CC="$CC $ac_cv_prog_cc_c89"
3170    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3171$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3172esac
3173if test "x$ac_cv_prog_cc_c89" != xno; then :
3174
3175fi
3176
3177ac_ext=c
3178ac_cpp='$CPP $CPPFLAGS'
3179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3184$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3185if ${ac_cv_path_SED+:} false; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3189     for ac_i in 1 2 3 4 5 6 7; do
3190       ac_script="$ac_script$as_nl$ac_script"
3191     done
3192     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3193     { ac_script=; unset ac_script;}
3194     if test -z "$SED"; then
3195  ac_path_SED_found=false
3196  # Loop through the user's path and test for each of PROGNAME-LIST
3197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200  IFS=$as_save_IFS
3201  test -z "$as_dir" && as_dir=.
3202    for ac_prog in sed gsed; do
3203    for ac_exec_ext in '' $ac_executable_extensions; do
3204      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3205      as_fn_executable_p "$ac_path_SED" || continue
3206# Check for GNU ac_path_SED and select it if it is found.
3207  # Check for GNU $ac_path_SED
3208case `"$ac_path_SED" --version 2>&1` in
3209*GNU*)
3210  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3211*)
3212  ac_count=0
3213  $as_echo_n 0123456789 >"conftest.in"
3214  while :
3215  do
3216    cat "conftest.in" "conftest.in" >"conftest.tmp"
3217    mv "conftest.tmp" "conftest.in"
3218    cp "conftest.in" "conftest.nl"
3219    $as_echo '' >> "conftest.nl"
3220    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3221    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3222    as_fn_arith $ac_count + 1 && ac_count=$as_val
3223    if test $ac_count -gt ${ac_path_SED_max-0}; then
3224      # Best one so far, save it but keep looking for a better one
3225      ac_cv_path_SED="$ac_path_SED"
3226      ac_path_SED_max=$ac_count
3227    fi
3228    # 10*(2^10) chars as input seems more than enough
3229    test $ac_count -gt 10 && break
3230  done
3231  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3232esac
3233
3234      $ac_path_SED_found && break 3
3235    done
3236  done
3237  done
3238IFS=$as_save_IFS
3239  if test -z "$ac_cv_path_SED"; then
3240    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3241  fi
3242else
3243  ac_cv_path_SED=$SED
3244fi
3245
3246fi
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3248$as_echo "$ac_cv_path_SED" >&6; }
3249 SED="$ac_cv_path_SED"
3250  rm -f conftest.sed
3251
3252test -z "$SED" && SED=sed
3253Xsed="$SED -e 1s/^X//"
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3266$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3267if ${ac_cv_path_GREP+:} false; then :
3268  $as_echo_n "(cached) " >&6
3269else
3270  if test -z "$GREP"; then
3271  ac_path_GREP_found=false
3272  # Loop through the user's path and test for each of PROGNAME-LIST
3273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3275do
3276  IFS=$as_save_IFS
3277  test -z "$as_dir" && as_dir=.
3278    for ac_prog in grep ggrep; do
3279    for ac_exec_ext in '' $ac_executable_extensions; do
3280      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3281      as_fn_executable_p "$ac_path_GREP" || continue
3282# Check for GNU ac_path_GREP and select it if it is found.
3283  # Check for GNU $ac_path_GREP
3284case `"$ac_path_GREP" --version 2>&1` in
3285*GNU*)
3286  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3287*)
3288  ac_count=0
3289  $as_echo_n 0123456789 >"conftest.in"
3290  while :
3291  do
3292    cat "conftest.in" "conftest.in" >"conftest.tmp"
3293    mv "conftest.tmp" "conftest.in"
3294    cp "conftest.in" "conftest.nl"
3295    $as_echo 'GREP' >> "conftest.nl"
3296    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3297    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3298    as_fn_arith $ac_count + 1 && ac_count=$as_val
3299    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3300      # Best one so far, save it but keep looking for a better one
3301      ac_cv_path_GREP="$ac_path_GREP"
3302      ac_path_GREP_max=$ac_count
3303    fi
3304    # 10*(2^10) chars as input seems more than enough
3305    test $ac_count -gt 10 && break
3306  done
3307  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3308esac
3309
3310      $ac_path_GREP_found && break 3
3311    done
3312  done
3313  done
3314IFS=$as_save_IFS
3315  if test -z "$ac_cv_path_GREP"; then
3316    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3317  fi
3318else
3319  ac_cv_path_GREP=$GREP
3320fi
3321
3322fi
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3324$as_echo "$ac_cv_path_GREP" >&6; }
3325 GREP="$ac_cv_path_GREP"
3326
3327
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3329$as_echo_n "checking for egrep... " >&6; }
3330if ${ac_cv_path_EGREP+:} false; then :
3331  $as_echo_n "(cached) " >&6
3332else
3333  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3334   then ac_cv_path_EGREP="$GREP -E"
3335   else
3336     if test -z "$EGREP"; then
3337  ac_path_EGREP_found=false
3338  # Loop through the user's path and test for each of PROGNAME-LIST
3339  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3341do
3342  IFS=$as_save_IFS
3343  test -z "$as_dir" && as_dir=.
3344    for ac_prog in egrep; do
3345    for ac_exec_ext in '' $ac_executable_extensions; do
3346      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3347      as_fn_executable_p "$ac_path_EGREP" || continue
3348# Check for GNU ac_path_EGREP and select it if it is found.
3349  # Check for GNU $ac_path_EGREP
3350case `"$ac_path_EGREP" --version 2>&1` in
3351*GNU*)
3352  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3353*)
3354  ac_count=0
3355  $as_echo_n 0123456789 >"conftest.in"
3356  while :
3357  do
3358    cat "conftest.in" "conftest.in" >"conftest.tmp"
3359    mv "conftest.tmp" "conftest.in"
3360    cp "conftest.in" "conftest.nl"
3361    $as_echo 'EGREP' >> "conftest.nl"
3362    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3363    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3364    as_fn_arith $ac_count + 1 && ac_count=$as_val
3365    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3366      # Best one so far, save it but keep looking for a better one
3367      ac_cv_path_EGREP="$ac_path_EGREP"
3368      ac_path_EGREP_max=$ac_count
3369    fi
3370    # 10*(2^10) chars as input seems more than enough
3371    test $ac_count -gt 10 && break
3372  done
3373  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3374esac
3375
3376      $ac_path_EGREP_found && break 3
3377    done
3378  done
3379  done
3380IFS=$as_save_IFS
3381  if test -z "$ac_cv_path_EGREP"; then
3382    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3383  fi
3384else
3385  ac_cv_path_EGREP=$EGREP
3386fi
3387
3388   fi
3389fi
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3391$as_echo "$ac_cv_path_EGREP" >&6; }
3392 EGREP="$ac_cv_path_EGREP"
3393
3394
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3396$as_echo_n "checking for fgrep... " >&6; }
3397if ${ac_cv_path_FGREP+:} false; then :
3398  $as_echo_n "(cached) " >&6
3399else
3400  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3401   then ac_cv_path_FGREP="$GREP -F"
3402   else
3403     if test -z "$FGREP"; then
3404  ac_path_FGREP_found=false
3405  # Loop through the user's path and test for each of PROGNAME-LIST
3406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3408do
3409  IFS=$as_save_IFS
3410  test -z "$as_dir" && as_dir=.
3411    for ac_prog in fgrep; do
3412    for ac_exec_ext in '' $ac_executable_extensions; do
3413      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3414      as_fn_executable_p "$ac_path_FGREP" || continue
3415# Check for GNU ac_path_FGREP and select it if it is found.
3416  # Check for GNU $ac_path_FGREP
3417case `"$ac_path_FGREP" --version 2>&1` in
3418*GNU*)
3419  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3420*)
3421  ac_count=0
3422  $as_echo_n 0123456789 >"conftest.in"
3423  while :
3424  do
3425    cat "conftest.in" "conftest.in" >"conftest.tmp"
3426    mv "conftest.tmp" "conftest.in"
3427    cp "conftest.in" "conftest.nl"
3428    $as_echo 'FGREP' >> "conftest.nl"
3429    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3430    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3431    as_fn_arith $ac_count + 1 && ac_count=$as_val
3432    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3433      # Best one so far, save it but keep looking for a better one
3434      ac_cv_path_FGREP="$ac_path_FGREP"
3435      ac_path_FGREP_max=$ac_count
3436    fi
3437    # 10*(2^10) chars as input seems more than enough
3438    test $ac_count -gt 10 && break
3439  done
3440  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3441esac
3442
3443      $ac_path_FGREP_found && break 3
3444    done
3445  done
3446  done
3447IFS=$as_save_IFS
3448  if test -z "$ac_cv_path_FGREP"; then
3449    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3450  fi
3451else
3452  ac_cv_path_FGREP=$FGREP
3453fi
3454
3455   fi
3456fi
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3458$as_echo "$ac_cv_path_FGREP" >&6; }
3459 FGREP="$ac_cv_path_FGREP"
3460
3461
3462test -z "$GREP" && GREP=grep
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482# Check whether --with-gnu-ld was given.
3483if test "${with_gnu_ld+set}" = set; then :
3484  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3485else
3486  with_gnu_ld=no
3487fi
3488
3489ac_prog=ld
3490if test "$GCC" = yes; then
3491  # Check if gcc -print-prog-name=ld gives a path.
3492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3493$as_echo_n "checking for ld used by $CC... " >&6; }
3494  case $host in
3495  *-*-mingw*)
3496    # gcc leaves a trailing carriage return which upsets mingw
3497    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3498  *)
3499    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3500  esac
3501  case $ac_prog in
3502    # Accept absolute paths.
3503    [\\/]* | ?:[\\/]*)
3504      re_direlt='/[^/][^/]*/\.\./'
3505      # Canonicalize the pathname of ld
3506      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3507      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3508	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3509      done
3510      test -z "$LD" && LD="$ac_prog"
3511      ;;
3512  "")
3513    # If it fails, then pretend we aren't using GCC.
3514    ac_prog=ld
3515    ;;
3516  *)
3517    # If it is relative, then search for the first ld in PATH.
3518    with_gnu_ld=unknown
3519    ;;
3520  esac
3521elif test "$with_gnu_ld" = yes; then
3522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3523$as_echo_n "checking for GNU ld... " >&6; }
3524else
3525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3526$as_echo_n "checking for non-GNU ld... " >&6; }
3527fi
3528if ${lt_cv_path_LD+:} false; then :
3529  $as_echo_n "(cached) " >&6
3530else
3531  if test -z "$LD"; then
3532  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3533  for ac_dir in $PATH; do
3534    IFS="$lt_save_ifs"
3535    test -z "$ac_dir" && ac_dir=.
3536    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3537      lt_cv_path_LD="$ac_dir/$ac_prog"
3538      # Check to see if the program is GNU ld.  I'd rather use --version,
3539      # but apparently some variants of GNU ld only accept -v.
3540      # Break only if it was the GNU/non-GNU ld that we prefer.
3541      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3542      *GNU* | *'with BFD'*)
3543	test "$with_gnu_ld" != no && break
3544	;;
3545      *)
3546	test "$with_gnu_ld" != yes && break
3547	;;
3548      esac
3549    fi
3550  done
3551  IFS="$lt_save_ifs"
3552else
3553  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3554fi
3555fi
3556
3557LD="$lt_cv_path_LD"
3558if test -n "$LD"; then
3559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3560$as_echo "$LD" >&6; }
3561else
3562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563$as_echo "no" >&6; }
3564fi
3565test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3567$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3568if ${lt_cv_prog_gnu_ld+:} false; then :
3569  $as_echo_n "(cached) " >&6
3570else
3571  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3572case `$LD -v 2>&1 </dev/null` in
3573*GNU* | *'with BFD'*)
3574  lt_cv_prog_gnu_ld=yes
3575  ;;
3576*)
3577  lt_cv_prog_gnu_ld=no
3578  ;;
3579esac
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3582$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3583with_gnu_ld=$lt_cv_prog_gnu_ld
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3594$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3595if ${lt_cv_path_NM+:} false; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598  if test -n "$NM"; then
3599  # Let the user override the test.
3600  lt_cv_path_NM="$NM"
3601else
3602  lt_nm_to_check="${ac_tool_prefix}nm"
3603  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3604    lt_nm_to_check="$lt_nm_to_check nm"
3605  fi
3606  for lt_tmp_nm in $lt_nm_to_check; do
3607    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3608    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3609      IFS="$lt_save_ifs"
3610      test -z "$ac_dir" && ac_dir=.
3611      tmp_nm="$ac_dir/$lt_tmp_nm"
3612      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3613	# Check to see if the nm accepts a BSD-compat flag.
3614	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3615	#   nm: unknown option "B" ignored
3616	# Tru64's nm complains that /dev/null is an invalid object file
3617	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3618	*/dev/null* | *'Invalid file or object type'*)
3619	  lt_cv_path_NM="$tmp_nm -B"
3620	  break
3621	  ;;
3622	*)
3623	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3624	  */dev/null*)
3625	    lt_cv_path_NM="$tmp_nm -p"
3626	    break
3627	    ;;
3628	  *)
3629	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3630	    continue # so that we can try to find one that supports BSD flags
3631	    ;;
3632	  esac
3633	  ;;
3634	esac
3635      fi
3636    done
3637    IFS="$lt_save_ifs"
3638  done
3639  : ${lt_cv_path_NM=no}
3640fi
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3643$as_echo "$lt_cv_path_NM" >&6; }
3644if test "$lt_cv_path_NM" != "no"; then
3645  NM="$lt_cv_path_NM"
3646else
3647  # Didn't find any BSD compatible name lister, look for dumpbin.
3648  if test -n "$DUMPBIN"; then :
3649    # Let the user override the test.
3650  else
3651    if test -n "$ac_tool_prefix"; then
3652  for ac_prog in dumpbin "link -dump"
3653  do
3654    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3655set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657$as_echo_n "checking for $ac_word... " >&6; }
3658if ${ac_cv_prog_DUMPBIN+:} false; then :
3659  $as_echo_n "(cached) " >&6
3660else
3661  if test -n "$DUMPBIN"; then
3662  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3663else
3664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665for as_dir in $PATH
3666do
3667  IFS=$as_save_IFS
3668  test -z "$as_dir" && as_dir=.
3669    for ac_exec_ext in '' $ac_executable_extensions; do
3670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3671    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673    break 2
3674  fi
3675done
3676  done
3677IFS=$as_save_IFS
3678
3679fi
3680fi
3681DUMPBIN=$ac_cv_prog_DUMPBIN
3682if test -n "$DUMPBIN"; then
3683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3684$as_echo "$DUMPBIN" >&6; }
3685else
3686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687$as_echo "no" >&6; }
3688fi
3689
3690
3691    test -n "$DUMPBIN" && break
3692  done
3693fi
3694if test -z "$DUMPBIN"; then
3695  ac_ct_DUMPBIN=$DUMPBIN
3696  for ac_prog in dumpbin "link -dump"
3697do
3698  # Extract the first word of "$ac_prog", so it can be a program name with args.
3699set dummy $ac_prog; ac_word=$2
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701$as_echo_n "checking for $ac_word... " >&6; }
3702if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3703  $as_echo_n "(cached) " >&6
3704else
3705  if test -n "$ac_ct_DUMPBIN"; then
3706  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3707else
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH
3710do
3711  IFS=$as_save_IFS
3712  test -z "$as_dir" && as_dir=.
3713    for ac_exec_ext in '' $ac_executable_extensions; do
3714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717    break 2
3718  fi
3719done
3720  done
3721IFS=$as_save_IFS
3722
3723fi
3724fi
3725ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3726if test -n "$ac_ct_DUMPBIN"; then
3727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3728$as_echo "$ac_ct_DUMPBIN" >&6; }
3729else
3730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731$as_echo "no" >&6; }
3732fi
3733
3734
3735  test -n "$ac_ct_DUMPBIN" && break
3736done
3737
3738  if test "x$ac_ct_DUMPBIN" = x; then
3739    DUMPBIN=":"
3740  else
3741    case $cross_compiling:$ac_tool_warned in
3742yes:)
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3745ac_tool_warned=yes ;;
3746esac
3747    DUMPBIN=$ac_ct_DUMPBIN
3748  fi
3749fi
3750
3751    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3752    *COFF*)
3753      DUMPBIN="$DUMPBIN -symbols"
3754      ;;
3755    *)
3756      DUMPBIN=:
3757      ;;
3758    esac
3759  fi
3760
3761  if test "$DUMPBIN" != ":"; then
3762    NM="$DUMPBIN"
3763  fi
3764fi
3765test -z "$NM" && NM=nm
3766
3767
3768
3769
3770
3771
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3773$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3774if ${lt_cv_nm_interface+:} false; then :
3775  $as_echo_n "(cached) " >&6
3776else
3777  lt_cv_nm_interface="BSD nm"
3778  echo "int some_variable = 0;" > conftest.$ac_ext
3779  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3780  (eval "$ac_compile" 2>conftest.err)
3781  cat conftest.err >&5
3782  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3783  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3784  cat conftest.err >&5
3785  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3786  cat conftest.out >&5
3787  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3788    lt_cv_nm_interface="MS dumpbin"
3789  fi
3790  rm -f conftest*
3791fi
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3793$as_echo "$lt_cv_nm_interface" >&6; }
3794
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3796$as_echo_n "checking whether ln -s works... " >&6; }
3797LN_S=$as_ln_s
3798if test "$LN_S" = "ln -s"; then
3799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3800$as_echo "yes" >&6; }
3801else
3802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3803$as_echo "no, using $LN_S" >&6; }
3804fi
3805
3806# find the maximum length of command line arguments
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3808$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3809if ${lt_cv_sys_max_cmd_len+:} false; then :
3810  $as_echo_n "(cached) " >&6
3811else
3812    i=0
3813  teststring="ABCD"
3814
3815  case $build_os in
3816  msdosdjgpp*)
3817    # On DJGPP, this test can blow up pretty badly due to problems in libc
3818    # (any single argument exceeding 2000 bytes causes a buffer overrun
3819    # during glob expansion).  Even if it were fixed, the result of this
3820    # check would be larger than it should be.
3821    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3822    ;;
3823
3824  gnu*)
3825    # Under GNU Hurd, this test is not required because there is
3826    # no limit to the length of command line arguments.
3827    # Libtool will interpret -1 as no limit whatsoever
3828    lt_cv_sys_max_cmd_len=-1;
3829    ;;
3830
3831  cygwin* | mingw* | cegcc*)
3832    # On Win9x/ME, this test blows up -- it succeeds, but takes
3833    # about 5 minutes as the teststring grows exponentially.
3834    # Worse, since 9x/ME are not pre-emptively multitasking,
3835    # you end up with a "frozen" computer, even though with patience
3836    # the test eventually succeeds (with a max line length of 256k).
3837    # Instead, let's just punt: use the minimum linelength reported by
3838    # all of the supported platforms: 8192 (on NT/2K/XP).
3839    lt_cv_sys_max_cmd_len=8192;
3840    ;;
3841
3842  mint*)
3843    # On MiNT this can take a long time and run out of memory.
3844    lt_cv_sys_max_cmd_len=8192;
3845    ;;
3846
3847  amigaos*)
3848    # On AmigaOS with pdksh, this test takes hours, literally.
3849    # So we just punt and use a minimum line length of 8192.
3850    lt_cv_sys_max_cmd_len=8192;
3851    ;;
3852
3853  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3854    # This has been around since 386BSD, at least.  Likely further.
3855    if test -x /sbin/sysctl; then
3856      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3857    elif test -x /usr/sbin/sysctl; then
3858      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3859    else
3860      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
3861    fi
3862    # And add a safety zone
3863    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3864    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3865    ;;
3866
3867  interix*)
3868    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3869    lt_cv_sys_max_cmd_len=196608
3870    ;;
3871
3872  os2*)
3873    # The test takes a long time on OS/2.
3874    lt_cv_sys_max_cmd_len=8192
3875    ;;
3876
3877  osf*)
3878    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3879    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3880    # nice to cause kernel panics so lets avoid the loop below.
3881    # First set a reasonable default.
3882    lt_cv_sys_max_cmd_len=16384
3883    #
3884    if test -x /sbin/sysconfig; then
3885      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3886        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3887      esac
3888    fi
3889    ;;
3890  sco3.2v5*)
3891    lt_cv_sys_max_cmd_len=102400
3892    ;;
3893  sysv5* | sco5v6* | sysv4.2uw2*)
3894    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3895    if test -n "$kargmax"; then
3896      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
3897    else
3898      lt_cv_sys_max_cmd_len=32768
3899    fi
3900    ;;
3901  *)
3902    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3903    if test -n "$lt_cv_sys_max_cmd_len"; then
3904      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3905      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3906    else
3907      # Make teststring a little bigger before we do anything with it.
3908      # a 1K string should be a reasonable start.
3909      for i in 1 2 3 4 5 6 7 8 ; do
3910        teststring=$teststring$teststring
3911      done
3912      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3913      # If test is not a shell built-in, we'll probably end up computing a
3914      # maximum length that is only half of the actual maximum length, but
3915      # we can't tell.
3916      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
3917	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3918	      test $i != 17 # 1/2 MB should be enough
3919      do
3920        i=`expr $i + 1`
3921        teststring=$teststring$teststring
3922      done
3923      # Only check the string length outside the loop.
3924      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3925      teststring=
3926      # Add a significant safety factor because C++ compilers can tack on
3927      # massive amounts of additional arguments before passing them to the
3928      # linker.  It appears as though 1/2 is a usable value.
3929      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3930    fi
3931    ;;
3932  esac
3933
3934fi
3935
3936if test -n $lt_cv_sys_max_cmd_len ; then
3937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
3938$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3939else
3940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
3941$as_echo "none" >&6; }
3942fi
3943max_cmd_len=$lt_cv_sys_max_cmd_len
3944
3945
3946
3947
3948
3949
3950: ${CP="cp -f"}
3951: ${MV="mv -f"}
3952: ${RM="rm -f"}
3953
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
3955$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3956# Try some XSI features
3957xsi_shell=no
3958( _lt_dummy="a/b/c"
3959  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
3960      = c,a/b,b/c, \
3961    && eval 'test $(( 1 + 1 )) -eq 2 \
3962    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3963  && xsi_shell=yes
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
3965$as_echo "$xsi_shell" >&6; }
3966
3967
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
3969$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3970lt_shell_append=no
3971( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3972    >/dev/null 2>&1 \
3973  && lt_shell_append=yes
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
3975$as_echo "$lt_shell_append" >&6; }
3976
3977
3978if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3979  lt_unset=unset
3980else
3981  lt_unset=false
3982fi
3983
3984
3985
3986
3987
3988# test EBCDIC or ASCII
3989case `echo X|tr X '\101'` in
3990 A) # ASCII based system
3991    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3992  lt_SP2NL='tr \040 \012'
3993  lt_NL2SP='tr \015\012 \040\040'
3994  ;;
3995 *) # EBCDIC based system
3996  lt_SP2NL='tr \100 \n'
3997  lt_NL2SP='tr \r\n \100\100'
3998  ;;
3999esac
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4010$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4011if ${lt_cv_to_host_file_cmd+:} false; then :
4012  $as_echo_n "(cached) " >&6
4013else
4014  case $host in
4015  *-*-mingw* )
4016    case $build in
4017      *-*-mingw* ) # actually msys
4018        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4019        ;;
4020      *-*-cygwin* )
4021        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4022        ;;
4023      * ) # otherwise, assume *nix
4024        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4025        ;;
4026    esac
4027    ;;
4028  *-*-cygwin* )
4029    case $build in
4030      *-*-mingw* ) # actually msys
4031        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4032        ;;
4033      *-*-cygwin* )
4034        lt_cv_to_host_file_cmd=func_convert_file_noop
4035        ;;
4036      * ) # otherwise, assume *nix
4037        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4038        ;;
4039    esac
4040    ;;
4041  * ) # unhandled hosts (and "normal" native builds)
4042    lt_cv_to_host_file_cmd=func_convert_file_noop
4043    ;;
4044esac
4045
4046fi
4047
4048to_host_file_cmd=$lt_cv_to_host_file_cmd
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4050$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4051
4052
4053
4054
4055
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4057$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4058if ${lt_cv_to_tool_file_cmd+:} false; then :
4059  $as_echo_n "(cached) " >&6
4060else
4061  #assume ordinary cross tools, or native build.
4062lt_cv_to_tool_file_cmd=func_convert_file_noop
4063case $host in
4064  *-*-mingw* )
4065    case $build in
4066      *-*-mingw* ) # actually msys
4067        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4068        ;;
4069    esac
4070    ;;
4071esac
4072
4073fi
4074
4075to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4077$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4078
4079
4080
4081
4082
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4084$as_echo_n "checking for $LD option to reload object files... " >&6; }
4085if ${lt_cv_ld_reload_flag+:} false; then :
4086  $as_echo_n "(cached) " >&6
4087else
4088  lt_cv_ld_reload_flag='-r'
4089fi
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4091$as_echo "$lt_cv_ld_reload_flag" >&6; }
4092reload_flag=$lt_cv_ld_reload_flag
4093case $reload_flag in
4094"" | " "*) ;;
4095*) reload_flag=" $reload_flag" ;;
4096esac
4097reload_cmds='$LD$reload_flag -o $output$reload_objs'
4098case $host_os in
4099  cygwin* | mingw* | pw32* | cegcc*)
4100    if test "$GCC" != yes; then
4101      reload_cmds=false
4102    fi
4103    ;;
4104  darwin*)
4105    if test "$GCC" = yes; then
4106      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4107    else
4108      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4109    fi
4110    ;;
4111esac
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121if test -n "$ac_tool_prefix"; then
4122  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4123set dummy ${ac_tool_prefix}objdump; ac_word=$2
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125$as_echo_n "checking for $ac_word... " >&6; }
4126if ${ac_cv_prog_OBJDUMP+:} false; then :
4127  $as_echo_n "(cached) " >&6
4128else
4129  if test -n "$OBJDUMP"; then
4130  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4131else
4132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133for as_dir in $PATH
4134do
4135  IFS=$as_save_IFS
4136  test -z "$as_dir" && as_dir=.
4137    for ac_exec_ext in '' $ac_executable_extensions; do
4138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4141    break 2
4142  fi
4143done
4144  done
4145IFS=$as_save_IFS
4146
4147fi
4148fi
4149OBJDUMP=$ac_cv_prog_OBJDUMP
4150if test -n "$OBJDUMP"; then
4151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4152$as_echo "$OBJDUMP" >&6; }
4153else
4154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155$as_echo "no" >&6; }
4156fi
4157
4158
4159fi
4160if test -z "$ac_cv_prog_OBJDUMP"; then
4161  ac_ct_OBJDUMP=$OBJDUMP
4162  # Extract the first word of "objdump", so it can be a program name with args.
4163set dummy objdump; ac_word=$2
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165$as_echo_n "checking for $ac_word... " >&6; }
4166if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4167  $as_echo_n "(cached) " >&6
4168else
4169  if test -n "$ac_ct_OBJDUMP"; then
4170  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4171else
4172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173for as_dir in $PATH
4174do
4175  IFS=$as_save_IFS
4176  test -z "$as_dir" && as_dir=.
4177    for ac_exec_ext in '' $ac_executable_extensions; do
4178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181    break 2
4182  fi
4183done
4184  done
4185IFS=$as_save_IFS
4186
4187fi
4188fi
4189ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4190if test -n "$ac_ct_OBJDUMP"; then
4191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4192$as_echo "$ac_ct_OBJDUMP" >&6; }
4193else
4194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195$as_echo "no" >&6; }
4196fi
4197
4198  if test "x$ac_ct_OBJDUMP" = x; then
4199    OBJDUMP="false"
4200  else
4201    case $cross_compiling:$ac_tool_warned in
4202yes:)
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205ac_tool_warned=yes ;;
4206esac
4207    OBJDUMP=$ac_ct_OBJDUMP
4208  fi
4209else
4210  OBJDUMP="$ac_cv_prog_OBJDUMP"
4211fi
4212
4213test -z "$OBJDUMP" && OBJDUMP=objdump
4214
4215
4216
4217
4218
4219
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4221$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4222if ${lt_cv_deplibs_check_method+:} false; then :
4223  $as_echo_n "(cached) " >&6
4224else
4225  lt_cv_file_magic_cmd='$MAGIC_CMD'
4226lt_cv_file_magic_test_file=
4227lt_cv_deplibs_check_method='unknown'
4228# Need to set the preceding variable on all platforms that support
4229# interlibrary dependencies.
4230# 'none' -- dependencies not supported.
4231# `unknown' -- same as none, but documents that we really don't know.
4232# 'pass_all' -- all dependencies passed with no checks.
4233# 'test_compile' -- check by making test program.
4234# 'file_magic [[regex]]' -- check by looking for files in library path
4235# which responds to the $file_magic_cmd with a given extended regex.
4236# If you have `file' or equivalent on your system and you're not sure
4237# whether `pass_all' will *always* work, you probably want this one.
4238
4239case $host_os in
4240aix[4-9]*)
4241  lt_cv_deplibs_check_method=pass_all
4242  ;;
4243
4244beos*)
4245  lt_cv_deplibs_check_method=pass_all
4246  ;;
4247
4248bsdi[45]*)
4249  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4250  lt_cv_file_magic_cmd='/usr/bin/file -L'
4251  lt_cv_file_magic_test_file=/shlib/libc.so
4252  ;;
4253
4254cygwin*)
4255  # func_win32_libid is a shell function defined in ltmain.sh
4256  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4257  lt_cv_file_magic_cmd='func_win32_libid'
4258  ;;
4259
4260mingw* | pw32*)
4261  # Base MSYS/MinGW do not provide the 'file' command needed by
4262  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4263  # unless we find 'file', for example because we are cross-compiling.
4264  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4265  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4266    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4267    lt_cv_file_magic_cmd='func_win32_libid'
4268  else
4269    # Keep this pattern in sync with the one in func_win32_libid.
4270    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4271    lt_cv_file_magic_cmd='$OBJDUMP -f'
4272  fi
4273  ;;
4274
4275cegcc*)
4276  # use the weaker test based on 'objdump'. See mingw*.
4277  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4278  lt_cv_file_magic_cmd='$OBJDUMP -f'
4279  ;;
4280
4281darwin* | rhapsody*)
4282  lt_cv_deplibs_check_method=pass_all
4283  ;;
4284
4285freebsd* | dragonfly*)
4286  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4287    case $host_cpu in
4288    i*86 )
4289      # Not sure whether the presence of OpenBSD here was a mistake.
4290      # Let's accept both of them until this is cleared up.
4291      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4292      lt_cv_file_magic_cmd=/usr/bin/file
4293      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4294      ;;
4295    esac
4296  else
4297    lt_cv_deplibs_check_method=pass_all
4298  fi
4299  ;;
4300
4301gnu*)
4302  lt_cv_deplibs_check_method=pass_all
4303  ;;
4304
4305haiku*)
4306  lt_cv_deplibs_check_method=pass_all
4307  ;;
4308
4309hpux10.20* | hpux11*)
4310  lt_cv_file_magic_cmd=/usr/bin/file
4311  case $host_cpu in
4312  ia64*)
4313    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4314    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4315    ;;
4316  hppa*64*)
4317    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]'
4318    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4319    ;;
4320  *)
4321    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4322    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4323    ;;
4324  esac
4325  ;;
4326
4327interix[3-9]*)
4328  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4329  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4330  ;;
4331
4332irix5* | irix6* | nonstopux*)
4333  case $LD in
4334  *-32|*"-32 ") libmagic=32-bit;;
4335  *-n32|*"-n32 ") libmagic=N32;;
4336  *-64|*"-64 ") libmagic=64-bit;;
4337  *) libmagic=never-match;;
4338  esac
4339  lt_cv_deplibs_check_method=pass_all
4340  ;;
4341
4342# This must be glibc/ELF.
4343linux* | k*bsd*-gnu | kopensolaris*-gnu)
4344  lt_cv_deplibs_check_method=pass_all
4345  ;;
4346
4347netbsd*)
4348  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4349    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4350  else
4351    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4352  fi
4353  ;;
4354
4355newos6*)
4356  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4357  lt_cv_file_magic_cmd=/usr/bin/file
4358  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4359  ;;
4360
4361*nto* | *qnx*)
4362  lt_cv_deplibs_check_method=pass_all
4363  ;;
4364
4365openbsd*)
4366  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4367    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4368  else
4369    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4370  fi
4371  ;;
4372
4373osf3* | osf4* | osf5*)
4374  lt_cv_deplibs_check_method=pass_all
4375  ;;
4376
4377rdos*)
4378  lt_cv_deplibs_check_method=pass_all
4379  ;;
4380
4381solaris*)
4382  lt_cv_deplibs_check_method=pass_all
4383  ;;
4384
4385sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4386  lt_cv_deplibs_check_method=pass_all
4387  ;;
4388
4389sysv4 | sysv4.3*)
4390  case $host_vendor in
4391  motorola)
4392    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]'
4393    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4394    ;;
4395  ncr)
4396    lt_cv_deplibs_check_method=pass_all
4397    ;;
4398  sequent)
4399    lt_cv_file_magic_cmd='/bin/file'
4400    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4401    ;;
4402  sni)
4403    lt_cv_file_magic_cmd='/bin/file'
4404    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4405    lt_cv_file_magic_test_file=/lib/libc.so
4406    ;;
4407  siemens)
4408    lt_cv_deplibs_check_method=pass_all
4409    ;;
4410  pc)
4411    lt_cv_deplibs_check_method=pass_all
4412    ;;
4413  esac
4414  ;;
4415
4416tpf*)
4417  lt_cv_deplibs_check_method=pass_all
4418  ;;
4419esac
4420
4421fi
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4423$as_echo "$lt_cv_deplibs_check_method" >&6; }
4424
4425file_magic_glob=
4426want_nocaseglob=no
4427if test "$build" = "$host"; then
4428  case $host_os in
4429  mingw* | pw32*)
4430    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4431      want_nocaseglob=yes
4432    else
4433      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4434    fi
4435    ;;
4436  esac
4437fi
4438
4439file_magic_cmd=$lt_cv_file_magic_cmd
4440deplibs_check_method=$lt_cv_deplibs_check_method
4441test -z "$deplibs_check_method" && deplibs_check_method=unknown
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464if test -n "$ac_tool_prefix"; then
4465  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4466set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468$as_echo_n "checking for $ac_word... " >&6; }
4469if ${ac_cv_prog_DLLTOOL+:} false; then :
4470  $as_echo_n "(cached) " >&6
4471else
4472  if test -n "$DLLTOOL"; then
4473  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4474else
4475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH
4477do
4478  IFS=$as_save_IFS
4479  test -z "$as_dir" && as_dir=.
4480    for ac_exec_ext in '' $ac_executable_extensions; do
4481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484    break 2
4485  fi
4486done
4487  done
4488IFS=$as_save_IFS
4489
4490fi
4491fi
4492DLLTOOL=$ac_cv_prog_DLLTOOL
4493if test -n "$DLLTOOL"; then
4494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4495$as_echo "$DLLTOOL" >&6; }
4496else
4497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498$as_echo "no" >&6; }
4499fi
4500
4501
4502fi
4503if test -z "$ac_cv_prog_DLLTOOL"; then
4504  ac_ct_DLLTOOL=$DLLTOOL
4505  # Extract the first word of "dlltool", so it can be a program name with args.
4506set dummy dlltool; ac_word=$2
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508$as_echo_n "checking for $ac_word... " >&6; }
4509if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4510  $as_echo_n "(cached) " >&6
4511else
4512  if test -n "$ac_ct_DLLTOOL"; then
4513  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4514else
4515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518  IFS=$as_save_IFS
4519  test -z "$as_dir" && as_dir=.
4520    for ac_exec_ext in '' $ac_executable_extensions; do
4521  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524    break 2
4525  fi
4526done
4527  done
4528IFS=$as_save_IFS
4529
4530fi
4531fi
4532ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4533if test -n "$ac_ct_DLLTOOL"; then
4534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4535$as_echo "$ac_ct_DLLTOOL" >&6; }
4536else
4537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538$as_echo "no" >&6; }
4539fi
4540
4541  if test "x$ac_ct_DLLTOOL" = x; then
4542    DLLTOOL="false"
4543  else
4544    case $cross_compiling:$ac_tool_warned in
4545yes:)
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4548ac_tool_warned=yes ;;
4549esac
4550    DLLTOOL=$ac_ct_DLLTOOL
4551  fi
4552else
4553  DLLTOOL="$ac_cv_prog_DLLTOOL"
4554fi
4555
4556test -z "$DLLTOOL" && DLLTOOL=dlltool
4557
4558
4559
4560
4561
4562
4563
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4565$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4566if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4567  $as_echo_n "(cached) " >&6
4568else
4569  lt_cv_sharedlib_from_linklib_cmd='unknown'
4570
4571case $host_os in
4572cygwin* | mingw* | pw32* | cegcc*)
4573  # two different shell functions defined in ltmain.sh
4574  # decide which to use based on capabilities of $DLLTOOL
4575  case `$DLLTOOL --help 2>&1` in
4576  *--identify-strict*)
4577    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4578    ;;
4579  *)
4580    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4581    ;;
4582  esac
4583  ;;
4584*)
4585  # fallback: assume linklib IS sharedlib
4586  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4587  ;;
4588esac
4589
4590fi
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4592$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4593sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4594test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4595
4596
4597
4598
4599
4600
4601
4602
4603if test -n "$ac_tool_prefix"; then
4604  for ac_prog in ar
4605  do
4606    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609$as_echo_n "checking for $ac_word... " >&6; }
4610if ${ac_cv_prog_AR+:} false; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613  if test -n "$AR"; then
4614  ac_cv_prog_AR="$AR" # Let the user override the test.
4615else
4616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619  IFS=$as_save_IFS
4620  test -z "$as_dir" && as_dir=.
4621    for ac_exec_ext in '' $ac_executable_extensions; do
4622  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625    break 2
4626  fi
4627done
4628  done
4629IFS=$as_save_IFS
4630
4631fi
4632fi
4633AR=$ac_cv_prog_AR
4634if test -n "$AR"; then
4635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4636$as_echo "$AR" >&6; }
4637else
4638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639$as_echo "no" >&6; }
4640fi
4641
4642
4643    test -n "$AR" && break
4644  done
4645fi
4646if test -z "$AR"; then
4647  ac_ct_AR=$AR
4648  for ac_prog in ar
4649do
4650  # Extract the first word of "$ac_prog", so it can be a program name with args.
4651set dummy $ac_prog; ac_word=$2
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653$as_echo_n "checking for $ac_word... " >&6; }
4654if ${ac_cv_prog_ac_ct_AR+:} false; then :
4655  $as_echo_n "(cached) " >&6
4656else
4657  if test -n "$ac_ct_AR"; then
4658  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4659else
4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663  IFS=$as_save_IFS
4664  test -z "$as_dir" && as_dir=.
4665    for ac_exec_ext in '' $ac_executable_extensions; do
4666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667    ac_cv_prog_ac_ct_AR="$ac_prog"
4668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669    break 2
4670  fi
4671done
4672  done
4673IFS=$as_save_IFS
4674
4675fi
4676fi
4677ac_ct_AR=$ac_cv_prog_ac_ct_AR
4678if test -n "$ac_ct_AR"; then
4679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4680$as_echo "$ac_ct_AR" >&6; }
4681else
4682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683$as_echo "no" >&6; }
4684fi
4685
4686
4687  test -n "$ac_ct_AR" && break
4688done
4689
4690  if test "x$ac_ct_AR" = x; then
4691    AR="false"
4692  else
4693    case $cross_compiling:$ac_tool_warned in
4694yes:)
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4697ac_tool_warned=yes ;;
4698esac
4699    AR=$ac_ct_AR
4700  fi
4701fi
4702
4703: ${AR=ar}
4704: ${AR_FLAGS=cru}
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4717$as_echo_n "checking for archiver @FILE support... " >&6; }
4718if ${lt_cv_ar_at_file+:} false; then :
4719  $as_echo_n "(cached) " >&6
4720else
4721  lt_cv_ar_at_file=no
4722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h.  */
4724
4725int
4726main ()
4727{
4728
4729  ;
4730  return 0;
4731}
4732_ACEOF
4733if ac_fn_c_try_compile "$LINENO"; then :
4734  echo conftest.$ac_objext > conftest.lst
4735      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4736      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4737  (eval $lt_ar_try) 2>&5
4738  ac_status=$?
4739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4740  test $ac_status = 0; }
4741      if test "$ac_status" -eq 0; then
4742	# Ensure the archiver fails upon bogus file names.
4743	rm -f conftest.$ac_objext libconftest.a
4744	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4745  (eval $lt_ar_try) 2>&5
4746  ac_status=$?
4747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4748  test $ac_status = 0; }
4749	if test "$ac_status" -ne 0; then
4750          lt_cv_ar_at_file=@
4751        fi
4752      fi
4753      rm -f conftest.* libconftest.a
4754
4755fi
4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757
4758fi
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4760$as_echo "$lt_cv_ar_at_file" >&6; }
4761
4762if test "x$lt_cv_ar_at_file" = xno; then
4763  archiver_list_spec=
4764else
4765  archiver_list_spec=$lt_cv_ar_at_file
4766fi
4767
4768
4769
4770
4771
4772
4773
4774if test -n "$ac_tool_prefix"; then
4775  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4776set dummy ${ac_tool_prefix}strip; ac_word=$2
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778$as_echo_n "checking for $ac_word... " >&6; }
4779if ${ac_cv_prog_STRIP+:} false; then :
4780  $as_echo_n "(cached) " >&6
4781else
4782  if test -n "$STRIP"; then
4783  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4784else
4785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788  IFS=$as_save_IFS
4789  test -z "$as_dir" && as_dir=.
4790    for ac_exec_ext in '' $ac_executable_extensions; do
4791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794    break 2
4795  fi
4796done
4797  done
4798IFS=$as_save_IFS
4799
4800fi
4801fi
4802STRIP=$ac_cv_prog_STRIP
4803if test -n "$STRIP"; then
4804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4805$as_echo "$STRIP" >&6; }
4806else
4807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808$as_echo "no" >&6; }
4809fi
4810
4811
4812fi
4813if test -z "$ac_cv_prog_STRIP"; then
4814  ac_ct_STRIP=$STRIP
4815  # Extract the first word of "strip", so it can be a program name with args.
4816set dummy strip; ac_word=$2
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818$as_echo_n "checking for $ac_word... " >&6; }
4819if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4820  $as_echo_n "(cached) " >&6
4821else
4822  if test -n "$ac_ct_STRIP"; then
4823  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828  IFS=$as_save_IFS
4829  test -z "$as_dir" && as_dir=.
4830    for ac_exec_ext in '' $ac_executable_extensions; do
4831  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832    ac_cv_prog_ac_ct_STRIP="strip"
4833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834    break 2
4835  fi
4836done
4837  done
4838IFS=$as_save_IFS
4839
4840fi
4841fi
4842ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4843if test -n "$ac_ct_STRIP"; then
4844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4845$as_echo "$ac_ct_STRIP" >&6; }
4846else
4847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848$as_echo "no" >&6; }
4849fi
4850
4851  if test "x$ac_ct_STRIP" = x; then
4852    STRIP=":"
4853  else
4854    case $cross_compiling:$ac_tool_warned in
4855yes:)
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858ac_tool_warned=yes ;;
4859esac
4860    STRIP=$ac_ct_STRIP
4861  fi
4862else
4863  STRIP="$ac_cv_prog_STRIP"
4864fi
4865
4866test -z "$STRIP" && STRIP=:
4867
4868
4869
4870
4871
4872
4873if test -n "$ac_tool_prefix"; then
4874  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4875set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877$as_echo_n "checking for $ac_word... " >&6; }
4878if ${ac_cv_prog_RANLIB+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  if test -n "$RANLIB"; then
4882  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4883else
4884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887  IFS=$as_save_IFS
4888  test -z "$as_dir" && as_dir=.
4889    for ac_exec_ext in '' $ac_executable_extensions; do
4890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893    break 2
4894  fi
4895done
4896  done
4897IFS=$as_save_IFS
4898
4899fi
4900fi
4901RANLIB=$ac_cv_prog_RANLIB
4902if test -n "$RANLIB"; then
4903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4904$as_echo "$RANLIB" >&6; }
4905else
4906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907$as_echo "no" >&6; }
4908fi
4909
4910
4911fi
4912if test -z "$ac_cv_prog_RANLIB"; then
4913  ac_ct_RANLIB=$RANLIB
4914  # Extract the first word of "ranlib", so it can be a program name with args.
4915set dummy ranlib; ac_word=$2
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917$as_echo_n "checking for $ac_word... " >&6; }
4918if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4919  $as_echo_n "(cached) " >&6
4920else
4921  if test -n "$ac_ct_RANLIB"; then
4922  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4923else
4924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925for as_dir in $PATH
4926do
4927  IFS=$as_save_IFS
4928  test -z "$as_dir" && as_dir=.
4929    for ac_exec_ext in '' $ac_executable_extensions; do
4930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931    ac_cv_prog_ac_ct_RANLIB="ranlib"
4932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933    break 2
4934  fi
4935done
4936  done
4937IFS=$as_save_IFS
4938
4939fi
4940fi
4941ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4942if test -n "$ac_ct_RANLIB"; then
4943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4944$as_echo "$ac_ct_RANLIB" >&6; }
4945else
4946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947$as_echo "no" >&6; }
4948fi
4949
4950  if test "x$ac_ct_RANLIB" = x; then
4951    RANLIB=":"
4952  else
4953    case $cross_compiling:$ac_tool_warned in
4954yes:)
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957ac_tool_warned=yes ;;
4958esac
4959    RANLIB=$ac_ct_RANLIB
4960  fi
4961else
4962  RANLIB="$ac_cv_prog_RANLIB"
4963fi
4964
4965test -z "$RANLIB" && RANLIB=:
4966
4967
4968
4969
4970
4971
4972# Determine commands to create old-style static archives.
4973old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4974old_postinstall_cmds='chmod 644 $oldlib'
4975old_postuninstall_cmds=
4976
4977if test -n "$RANLIB"; then
4978  case $host_os in
4979  openbsd*)
4980    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
4981    ;;
4982  *)
4983    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
4984    ;;
4985  esac
4986  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
4987fi
4988
4989case $host_os in
4990  darwin*)
4991    lock_old_archive_extraction=yes ;;
4992  *)
4993    lock_old_archive_extraction=no ;;
4994esac
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016for ac_prog in gawk mawk nawk awk
5017do
5018  # Extract the first word of "$ac_prog", so it can be a program name with args.
5019set dummy $ac_prog; ac_word=$2
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021$as_echo_n "checking for $ac_word... " >&6; }
5022if ${ac_cv_prog_AWK+:} false; then :
5023  $as_echo_n "(cached) " >&6
5024else
5025  if test -n "$AWK"; then
5026  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5027else
5028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031  IFS=$as_save_IFS
5032  test -z "$as_dir" && as_dir=.
5033    for ac_exec_ext in '' $ac_executable_extensions; do
5034  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035    ac_cv_prog_AWK="$ac_prog"
5036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037    break 2
5038  fi
5039done
5040  done
5041IFS=$as_save_IFS
5042
5043fi
5044fi
5045AWK=$ac_cv_prog_AWK
5046if test -n "$AWK"; then
5047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5048$as_echo "$AWK" >&6; }
5049else
5050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051$as_echo "no" >&6; }
5052fi
5053
5054
5055  test -n "$AWK" && break
5056done
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076# If no C compiler was specified, use CC.
5077LTCC=${LTCC-"$CC"}
5078
5079# If no C compiler flags were specified, use CFLAGS.
5080LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5081
5082# Allow CC to be a program name with arguments.
5083compiler=$CC
5084
5085
5086# Check for command to grab the raw symbol name followed by C symbol from nm.
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5088$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5089if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5090  $as_echo_n "(cached) " >&6
5091else
5092
5093# These are sane defaults that work on at least a few old systems.
5094# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5095
5096# Character class describing NM global symbol codes.
5097symcode='[BCDEGRST]'
5098
5099# Regexp to match symbols that can be accessed directly from C.
5100sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5101
5102# Define system-specific variables.
5103case $host_os in
5104aix*)
5105  symcode='[BCDT]'
5106  ;;
5107cygwin* | mingw* | pw32* | cegcc*)
5108  symcode='[ABCDGISTW]'
5109  ;;
5110hpux*)
5111  if test "$host_cpu" = ia64; then
5112    symcode='[ABCDEGRST]'
5113  fi
5114  ;;
5115irix* | nonstopux*)
5116  symcode='[BCDEGRST]'
5117  ;;
5118osf*)
5119  symcode='[BCDEGQRST]'
5120  ;;
5121solaris*)
5122  symcode='[BDRT]'
5123  ;;
5124sco3.2v5*)
5125  symcode='[DT]'
5126  ;;
5127sysv4.2uw2*)
5128  symcode='[DT]'
5129  ;;
5130sysv5* | sco5v6* | unixware* | OpenUNIX*)
5131  symcode='[ABDT]'
5132  ;;
5133sysv4)
5134  symcode='[DFNSTU]'
5135  ;;
5136esac
5137
5138# If we're using GNU nm, then use its standard symbol codes.
5139case `$NM -V 2>&1` in
5140*GNU* | *'with BFD'*)
5141  symcode='[ABCDGIRSTW]' ;;
5142esac
5143
5144# Transform an extracted symbol line into a proper C declaration.
5145# Some systems (esp. on ia64) link data and code symbols differently,
5146# so use this general approach.
5147lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5148
5149# Transform an extracted symbol line into symbol name and symbol address
5150lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5151lt_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'"
5152
5153# Handle CRLF in mingw tool chain
5154opt_cr=
5155case $build_os in
5156mingw*)
5157  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5158  ;;
5159esac
5160
5161# Try without a prefix underscore, then with it.
5162for ac_symprfx in "" "_"; do
5163
5164  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5165  symxfrm="\\1 $ac_symprfx\\2 \\2"
5166
5167  # Write the raw and C identifiers.
5168  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5169    # Fake it for dumpbin and say T for any non-static function
5170    # and D for any global variable.
5171    # Also find C++ and __fastcall symbols from MSVC++,
5172    # which start with @ or ?.
5173    lt_cv_sys_global_symbol_pipe="$AWK '"\
5174"     {last_section=section; section=\$ 3};"\
5175"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5176"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5177"     \$ 0!~/External *\|/{next};"\
5178"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5179"     {if(hide[section]) next};"\
5180"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5181"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5182"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5183"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5184"     ' prfx=^$ac_symprfx"
5185  else
5186    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5187  fi
5188  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5189
5190  # Check to see that the pipe works correctly.
5191  pipe_works=no
5192
5193  rm -f conftest*
5194  cat > conftest.$ac_ext <<_LT_EOF
5195#ifdef __cplusplus
5196extern "C" {
5197#endif
5198char nm_test_var;
5199void nm_test_func(void);
5200void nm_test_func(void){}
5201#ifdef __cplusplus
5202}
5203#endif
5204int main(){nm_test_var='a';nm_test_func();return(0);}
5205_LT_EOF
5206
5207  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5208  (eval $ac_compile) 2>&5
5209  ac_status=$?
5210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5211  test $ac_status = 0; }; then
5212    # Now try to grab the symbols.
5213    nlist=conftest.nm
5214    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5215  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5216  ac_status=$?
5217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5218  test $ac_status = 0; } && test -s "$nlist"; then
5219      # Try sorting and uniquifying the output.
5220      if sort "$nlist" | uniq > "$nlist"T; then
5221	mv -f "$nlist"T "$nlist"
5222      else
5223	rm -f "$nlist"T
5224      fi
5225
5226      # Make sure that we snagged all the symbols we need.
5227      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5228	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5229	  cat <<_LT_EOF > conftest.$ac_ext
5230/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5231#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5232/* DATA imports from DLLs on WIN32 con't be const, because runtime
5233   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5234# define LT_DLSYM_CONST
5235#elif defined(__osf__)
5236/* This system does not cope well with relocations in const data.  */
5237# define LT_DLSYM_CONST
5238#else
5239# define LT_DLSYM_CONST const
5240#endif
5241
5242#ifdef __cplusplus
5243extern "C" {
5244#endif
5245
5246_LT_EOF
5247	  # Now generate the symbol file.
5248	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5249
5250	  cat <<_LT_EOF >> conftest.$ac_ext
5251
5252/* The mapping between symbol names and symbols.  */
5253LT_DLSYM_CONST struct {
5254  const char *name;
5255  void       *address;
5256}
5257lt__PROGRAM__LTX_preloaded_symbols[] =
5258{
5259  { "@PROGRAM@", (void *) 0 },
5260_LT_EOF
5261	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5262	  cat <<\_LT_EOF >> conftest.$ac_ext
5263  {0, (void *) 0}
5264};
5265
5266/* This works around a problem in FreeBSD linker */
5267#ifdef FREEBSD_WORKAROUND
5268static const void *lt_preloaded_setup() {
5269  return lt__PROGRAM__LTX_preloaded_symbols;
5270}
5271#endif
5272
5273#ifdef __cplusplus
5274}
5275#endif
5276_LT_EOF
5277	  # Now try linking the two files.
5278	  mv conftest.$ac_objext conftstm.$ac_objext
5279	  lt_globsym_save_LIBS=$LIBS
5280	  lt_globsym_save_CFLAGS=$CFLAGS
5281	  LIBS="conftstm.$ac_objext"
5282	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5283	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5284  (eval $ac_link) 2>&5
5285  ac_status=$?
5286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5287  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5288	    pipe_works=yes
5289	  fi
5290	  LIBS=$lt_globsym_save_LIBS
5291	  CFLAGS=$lt_globsym_save_CFLAGS
5292	else
5293	  echo "cannot find nm_test_func in $nlist" >&5
5294	fi
5295      else
5296	echo "cannot find nm_test_var in $nlist" >&5
5297      fi
5298    else
5299      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5300    fi
5301  else
5302    echo "$progname: failed program was:" >&5
5303    cat conftest.$ac_ext >&5
5304  fi
5305  rm -rf conftest* conftst*
5306
5307  # Do not use the global_symbol_pipe unless it works.
5308  if test "$pipe_works" = yes; then
5309    break
5310  else
5311    lt_cv_sys_global_symbol_pipe=
5312  fi
5313done
5314
5315fi
5316
5317if test -z "$lt_cv_sys_global_symbol_pipe"; then
5318  lt_cv_sys_global_symbol_to_cdecl=
5319fi
5320if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5322$as_echo "failed" >&6; }
5323else
5324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5325$as_echo "ok" >&6; }
5326fi
5327
5328# Response file support.
5329if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5330  nm_file_list_spec='@'
5331elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5332  nm_file_list_spec='@'
5333fi
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5362$as_echo_n "checking for sysroot... " >&6; }
5363
5364# Check whether --with-sysroot was given.
5365if test "${with_sysroot+set}" = set; then :
5366  withval=$with_sysroot;
5367else
5368  with_sysroot=no
5369fi
5370
5371
5372lt_sysroot=
5373case ${with_sysroot} in #(
5374 yes)
5375   if test "$GCC" = yes; then
5376     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5377   fi
5378   ;; #(
5379 /*)
5380   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5381   ;; #(
5382 no|'')
5383   ;; #(
5384 *)
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5386$as_echo "${with_sysroot}" >&6; }
5387   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5388   ;;
5389esac
5390
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5392$as_echo "${lt_sysroot:-no}" >&6; }
5393
5394
5395
5396
5397
5398# Check whether --enable-libtool-lock was given.
5399if test "${enable_libtool_lock+set}" = set; then :
5400  enableval=$enable_libtool_lock;
5401fi
5402
5403test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5404
5405# Some flags need to be propagated to the compiler or linker for good
5406# libtool support.
5407case $host in
5408ia64-*-hpux*)
5409  # Find out which ABI we are using.
5410  echo 'int i;' > conftest.$ac_ext
5411  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5412  (eval $ac_compile) 2>&5
5413  ac_status=$?
5414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5415  test $ac_status = 0; }; then
5416    case `/usr/bin/file conftest.$ac_objext` in
5417      *ELF-32*)
5418	HPUX_IA64_MODE="32"
5419	;;
5420      *ELF-64*)
5421	HPUX_IA64_MODE="64"
5422	;;
5423    esac
5424  fi
5425  rm -rf conftest*
5426  ;;
5427*-*-irix6*)
5428  # Find out which ABI we are using.
5429  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5430  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5431  (eval $ac_compile) 2>&5
5432  ac_status=$?
5433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5434  test $ac_status = 0; }; then
5435    if test "$lt_cv_prog_gnu_ld" = yes; then
5436      case `/usr/bin/file conftest.$ac_objext` in
5437	*32-bit*)
5438	  LD="${LD-ld} -melf32bsmip"
5439	  ;;
5440	*N32*)
5441	  LD="${LD-ld} -melf32bmipn32"
5442	  ;;
5443	*64-bit*)
5444	  LD="${LD-ld} -melf64bmip"
5445	;;
5446      esac
5447    else
5448      case `/usr/bin/file conftest.$ac_objext` in
5449	*32-bit*)
5450	  LD="${LD-ld} -32"
5451	  ;;
5452	*N32*)
5453	  LD="${LD-ld} -n32"
5454	  ;;
5455	*64-bit*)
5456	  LD="${LD-ld} -64"
5457	  ;;
5458      esac
5459    fi
5460  fi
5461  rm -rf conftest*
5462  ;;
5463
5464x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5465s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5466  # Find out which ABI we are using.
5467  echo 'int i;' > conftest.$ac_ext
5468  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5469  (eval $ac_compile) 2>&5
5470  ac_status=$?
5471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5472  test $ac_status = 0; }; then
5473    case `/usr/bin/file conftest.o` in
5474      *32-bit*)
5475	case $host in
5476	  x86_64-*kfreebsd*-gnu)
5477	    LD="${LD-ld} -m elf_i386_fbsd"
5478	    ;;
5479	  x86_64-*linux*)
5480	    LD="${LD-ld} -m elf_i386"
5481	    ;;
5482	  ppc64-*linux*|powerpc64-*linux*)
5483	    LD="${LD-ld} -m elf32ppclinux"
5484	    ;;
5485	  s390x-*linux*)
5486	    LD="${LD-ld} -m elf_s390"
5487	    ;;
5488	  sparc64-*linux*)
5489	    LD="${LD-ld} -m elf32_sparc"
5490	    ;;
5491	esac
5492	;;
5493      *64-bit*)
5494	case $host in
5495	  x86_64-*kfreebsd*-gnu)
5496	    LD="${LD-ld} -m elf_x86_64_fbsd"
5497	    ;;
5498	  x86_64-*linux*)
5499	    LD="${LD-ld} -m elf_x86_64"
5500	    ;;
5501	  ppc*-*linux*|powerpc*-*linux*)
5502	    LD="${LD-ld} -m elf64ppc"
5503	    ;;
5504	  s390*-*linux*|s390*-*tpf*)
5505	    LD="${LD-ld} -m elf64_s390"
5506	    ;;
5507	  sparc*-*linux*)
5508	    LD="${LD-ld} -m elf64_sparc"
5509	    ;;
5510	esac
5511	;;
5512    esac
5513  fi
5514  rm -rf conftest*
5515  ;;
5516
5517*-*-sco3.2v5*)
5518  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5519  SAVE_CFLAGS="$CFLAGS"
5520  CFLAGS="$CFLAGS -belf"
5521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5522$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5523if ${lt_cv_cc_needs_belf+:} false; then :
5524  $as_echo_n "(cached) " >&6
5525else
5526  ac_ext=c
5527ac_cpp='$CPP $CPPFLAGS'
5528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530ac_compiler_gnu=$ac_cv_c_compiler_gnu
5531
5532     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533/* end confdefs.h.  */
5534
5535int
5536main ()
5537{
5538
5539  ;
5540  return 0;
5541}
5542_ACEOF
5543if ac_fn_c_try_link "$LINENO"; then :
5544  lt_cv_cc_needs_belf=yes
5545else
5546  lt_cv_cc_needs_belf=no
5547fi
5548rm -f core conftest.err conftest.$ac_objext \
5549    conftest$ac_exeext conftest.$ac_ext
5550     ac_ext=c
5551ac_cpp='$CPP $CPPFLAGS'
5552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555
5556fi
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5558$as_echo "$lt_cv_cc_needs_belf" >&6; }
5559  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5560    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5561    CFLAGS="$SAVE_CFLAGS"
5562  fi
5563  ;;
5564*-*solaris*)
5565  # Find out which ABI we are using.
5566  echo 'int i;' > conftest.$ac_ext
5567  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5568  (eval $ac_compile) 2>&5
5569  ac_status=$?
5570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5571  test $ac_status = 0; }; then
5572    case `/usr/bin/file conftest.o` in
5573    *64-bit*)
5574      case $lt_cv_prog_gnu_ld in
5575      yes*)
5576        case $host in
5577        i?86-*-solaris*)
5578          LD="${LD-ld} -m elf_x86_64"
5579          ;;
5580        sparc*-*-solaris*)
5581          LD="${LD-ld} -m elf64_sparc"
5582          ;;
5583        esac
5584        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
5585        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5586          LD="${LD-ld}_sol2"
5587        fi
5588        ;;
5589      *)
5590	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5591	  LD="${LD-ld} -64"
5592	fi
5593	;;
5594      esac
5595      ;;
5596    esac
5597  fi
5598  rm -rf conftest*
5599  ;;
5600esac
5601
5602need_locks="$enable_libtool_lock"
5603
5604if test -n "$ac_tool_prefix"; then
5605  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5606set dummy ${ac_tool_prefix}mt; ac_word=$2
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608$as_echo_n "checking for $ac_word... " >&6; }
5609if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5610  $as_echo_n "(cached) " >&6
5611else
5612  if test -n "$MANIFEST_TOOL"; then
5613  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618  IFS=$as_save_IFS
5619  test -z "$as_dir" && as_dir=.
5620    for ac_exec_ext in '' $ac_executable_extensions; do
5621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624    break 2
5625  fi
5626done
5627  done
5628IFS=$as_save_IFS
5629
5630fi
5631fi
5632MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5633if test -n "$MANIFEST_TOOL"; then
5634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5635$as_echo "$MANIFEST_TOOL" >&6; }
5636else
5637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638$as_echo "no" >&6; }
5639fi
5640
5641
5642fi
5643if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5644  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5645  # Extract the first word of "mt", so it can be a program name with args.
5646set dummy mt; ac_word=$2
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648$as_echo_n "checking for $ac_word... " >&6; }
5649if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652  if test -n "$ac_ct_MANIFEST_TOOL"; then
5653  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658  IFS=$as_save_IFS
5659  test -z "$as_dir" && as_dir=.
5660    for ac_exec_ext in '' $ac_executable_extensions; do
5661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664    break 2
5665  fi
5666done
5667  done
5668IFS=$as_save_IFS
5669
5670fi
5671fi
5672ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5673if test -n "$ac_ct_MANIFEST_TOOL"; then
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5675$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5676else
5677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681  if test "x$ac_ct_MANIFEST_TOOL" = x; then
5682    MANIFEST_TOOL=":"
5683  else
5684    case $cross_compiling:$ac_tool_warned in
5685yes:)
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5688ac_tool_warned=yes ;;
5689esac
5690    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5691  fi
5692else
5693  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5694fi
5695
5696test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5698$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5699if ${lt_cv_path_mainfest_tool+:} false; then :
5700  $as_echo_n "(cached) " >&6
5701else
5702  lt_cv_path_mainfest_tool=no
5703  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5704  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5705  cat conftest.err >&5
5706  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5707    lt_cv_path_mainfest_tool=yes
5708  fi
5709  rm -f conftest*
5710fi
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5712$as_echo "$lt_cv_path_mainfest_tool" >&6; }
5713if test "x$lt_cv_path_mainfest_tool" != xyes; then
5714  MANIFEST_TOOL=:
5715fi
5716
5717
5718
5719
5720
5721
5722  case $host_os in
5723    rhapsody* | darwin*)
5724    if test -n "$ac_tool_prefix"; then
5725  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5726set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728$as_echo_n "checking for $ac_word... " >&6; }
5729if ${ac_cv_prog_DSYMUTIL+:} false; then :
5730  $as_echo_n "(cached) " >&6
5731else
5732  if test -n "$DSYMUTIL"; then
5733  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5734else
5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH
5737do
5738  IFS=$as_save_IFS
5739  test -z "$as_dir" && as_dir=.
5740    for ac_exec_ext in '' $ac_executable_extensions; do
5741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744    break 2
5745  fi
5746done
5747  done
5748IFS=$as_save_IFS
5749
5750fi
5751fi
5752DSYMUTIL=$ac_cv_prog_DSYMUTIL
5753if test -n "$DSYMUTIL"; then
5754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5755$as_echo "$DSYMUTIL" >&6; }
5756else
5757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758$as_echo "no" >&6; }
5759fi
5760
5761
5762fi
5763if test -z "$ac_cv_prog_DSYMUTIL"; then
5764  ac_ct_DSYMUTIL=$DSYMUTIL
5765  # Extract the first word of "dsymutil", so it can be a program name with args.
5766set dummy dsymutil; ac_word=$2
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768$as_echo_n "checking for $ac_word... " >&6; }
5769if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5770  $as_echo_n "(cached) " >&6
5771else
5772  if test -n "$ac_ct_DSYMUTIL"; then
5773  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778  IFS=$as_save_IFS
5779  test -z "$as_dir" && as_dir=.
5780    for ac_exec_ext in '' $ac_executable_extensions; do
5781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784    break 2
5785  fi
5786done
5787  done
5788IFS=$as_save_IFS
5789
5790fi
5791fi
5792ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5793if test -n "$ac_ct_DSYMUTIL"; then
5794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5795$as_echo "$ac_ct_DSYMUTIL" >&6; }
5796else
5797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798$as_echo "no" >&6; }
5799fi
5800
5801  if test "x$ac_ct_DSYMUTIL" = x; then
5802    DSYMUTIL=":"
5803  else
5804    case $cross_compiling:$ac_tool_warned in
5805yes:)
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5808ac_tool_warned=yes ;;
5809esac
5810    DSYMUTIL=$ac_ct_DSYMUTIL
5811  fi
5812else
5813  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5814fi
5815
5816    if test -n "$ac_tool_prefix"; then
5817  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5818set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820$as_echo_n "checking for $ac_word... " >&6; }
5821if ${ac_cv_prog_NMEDIT+:} false; then :
5822  $as_echo_n "(cached) " >&6
5823else
5824  if test -n "$NMEDIT"; then
5825  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830  IFS=$as_save_IFS
5831  test -z "$as_dir" && as_dir=.
5832    for ac_exec_ext in '' $ac_executable_extensions; do
5833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836    break 2
5837  fi
5838done
5839  done
5840IFS=$as_save_IFS
5841
5842fi
5843fi
5844NMEDIT=$ac_cv_prog_NMEDIT
5845if test -n "$NMEDIT"; then
5846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5847$as_echo "$NMEDIT" >&6; }
5848else
5849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850$as_echo "no" >&6; }
5851fi
5852
5853
5854fi
5855if test -z "$ac_cv_prog_NMEDIT"; then
5856  ac_ct_NMEDIT=$NMEDIT
5857  # Extract the first word of "nmedit", so it can be a program name with args.
5858set dummy nmedit; ac_word=$2
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5862  $as_echo_n "(cached) " >&6
5863else
5864  if test -n "$ac_ct_NMEDIT"; then
5865  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870  IFS=$as_save_IFS
5871  test -z "$as_dir" && as_dir=.
5872    for ac_exec_ext in '' $ac_executable_extensions; do
5873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876    break 2
5877  fi
5878done
5879  done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5885if test -n "$ac_ct_NMEDIT"; then
5886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5887$as_echo "$ac_ct_NMEDIT" >&6; }
5888else
5889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893  if test "x$ac_ct_NMEDIT" = x; then
5894    NMEDIT=":"
5895  else
5896    case $cross_compiling:$ac_tool_warned in
5897yes:)
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5900ac_tool_warned=yes ;;
5901esac
5902    NMEDIT=$ac_ct_NMEDIT
5903  fi
5904else
5905  NMEDIT="$ac_cv_prog_NMEDIT"
5906fi
5907
5908    if test -n "$ac_tool_prefix"; then
5909  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5910set dummy ${ac_tool_prefix}lipo; ac_word=$2
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912$as_echo_n "checking for $ac_word... " >&6; }
5913if ${ac_cv_prog_LIPO+:} false; then :
5914  $as_echo_n "(cached) " >&6
5915else
5916  if test -n "$LIPO"; then
5917  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5918else
5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922  IFS=$as_save_IFS
5923  test -z "$as_dir" && as_dir=.
5924    for ac_exec_ext in '' $ac_executable_extensions; do
5925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928    break 2
5929  fi
5930done
5931  done
5932IFS=$as_save_IFS
5933
5934fi
5935fi
5936LIPO=$ac_cv_prog_LIPO
5937if test -n "$LIPO"; then
5938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5939$as_echo "$LIPO" >&6; }
5940else
5941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942$as_echo "no" >&6; }
5943fi
5944
5945
5946fi
5947if test -z "$ac_cv_prog_LIPO"; then
5948  ac_ct_LIPO=$LIPO
5949  # Extract the first word of "lipo", so it can be a program name with args.
5950set dummy lipo; ac_word=$2
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952$as_echo_n "checking for $ac_word... " >&6; }
5953if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5954  $as_echo_n "(cached) " >&6
5955else
5956  if test -n "$ac_ct_LIPO"; then
5957  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962  IFS=$as_save_IFS
5963  test -z "$as_dir" && as_dir=.
5964    for ac_exec_ext in '' $ac_executable_extensions; do
5965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966    ac_cv_prog_ac_ct_LIPO="lipo"
5967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968    break 2
5969  fi
5970done
5971  done
5972IFS=$as_save_IFS
5973
5974fi
5975fi
5976ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5977if test -n "$ac_ct_LIPO"; then
5978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5979$as_echo "$ac_ct_LIPO" >&6; }
5980else
5981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982$as_echo "no" >&6; }
5983fi
5984
5985  if test "x$ac_ct_LIPO" = x; then
5986    LIPO=":"
5987  else
5988    case $cross_compiling:$ac_tool_warned in
5989yes:)
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5992ac_tool_warned=yes ;;
5993esac
5994    LIPO=$ac_ct_LIPO
5995  fi
5996else
5997  LIPO="$ac_cv_prog_LIPO"
5998fi
5999
6000    if test -n "$ac_tool_prefix"; then
6001  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6002set dummy ${ac_tool_prefix}otool; ac_word=$2
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6004$as_echo_n "checking for $ac_word... " >&6; }
6005if ${ac_cv_prog_OTOOL+:} false; then :
6006  $as_echo_n "(cached) " >&6
6007else
6008  if test -n "$OTOOL"; then
6009  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6010else
6011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012for as_dir in $PATH
6013do
6014  IFS=$as_save_IFS
6015  test -z "$as_dir" && as_dir=.
6016    for ac_exec_ext in '' $ac_executable_extensions; do
6017  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6020    break 2
6021  fi
6022done
6023  done
6024IFS=$as_save_IFS
6025
6026fi
6027fi
6028OTOOL=$ac_cv_prog_OTOOL
6029if test -n "$OTOOL"; then
6030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6031$as_echo "$OTOOL" >&6; }
6032else
6033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6034$as_echo "no" >&6; }
6035fi
6036
6037
6038fi
6039if test -z "$ac_cv_prog_OTOOL"; then
6040  ac_ct_OTOOL=$OTOOL
6041  # Extract the first word of "otool", so it can be a program name with args.
6042set dummy otool; ac_word=$2
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044$as_echo_n "checking for $ac_word... " >&6; }
6045if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6046  $as_echo_n "(cached) " >&6
6047else
6048  if test -n "$ac_ct_OTOOL"; then
6049  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054  IFS=$as_save_IFS
6055  test -z "$as_dir" && as_dir=.
6056    for ac_exec_ext in '' $ac_executable_extensions; do
6057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058    ac_cv_prog_ac_ct_OTOOL="otool"
6059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060    break 2
6061  fi
6062done
6063  done
6064IFS=$as_save_IFS
6065
6066fi
6067fi
6068ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6069if test -n "$ac_ct_OTOOL"; then
6070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6071$as_echo "$ac_ct_OTOOL" >&6; }
6072else
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074$as_echo "no" >&6; }
6075fi
6076
6077  if test "x$ac_ct_OTOOL" = x; then
6078    OTOOL=":"
6079  else
6080    case $cross_compiling:$ac_tool_warned in
6081yes:)
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6084ac_tool_warned=yes ;;
6085esac
6086    OTOOL=$ac_ct_OTOOL
6087  fi
6088else
6089  OTOOL="$ac_cv_prog_OTOOL"
6090fi
6091
6092    if test -n "$ac_tool_prefix"; then
6093  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6094set dummy ${ac_tool_prefix}otool64; ac_word=$2
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6096$as_echo_n "checking for $ac_word... " >&6; }
6097if ${ac_cv_prog_OTOOL64+:} false; then :
6098  $as_echo_n "(cached) " >&6
6099else
6100  if test -n "$OTOOL64"; then
6101  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6102else
6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104for as_dir in $PATH
6105do
6106  IFS=$as_save_IFS
6107  test -z "$as_dir" && as_dir=.
6108    for ac_exec_ext in '' $ac_executable_extensions; do
6109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112    break 2
6113  fi
6114done
6115  done
6116IFS=$as_save_IFS
6117
6118fi
6119fi
6120OTOOL64=$ac_cv_prog_OTOOL64
6121if test -n "$OTOOL64"; then
6122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6123$as_echo "$OTOOL64" >&6; }
6124else
6125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126$as_echo "no" >&6; }
6127fi
6128
6129
6130fi
6131if test -z "$ac_cv_prog_OTOOL64"; then
6132  ac_ct_OTOOL64=$OTOOL64
6133  # Extract the first word of "otool64", so it can be a program name with args.
6134set dummy otool64; ac_word=$2
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136$as_echo_n "checking for $ac_word... " >&6; }
6137if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6138  $as_echo_n "(cached) " >&6
6139else
6140  if test -n "$ac_ct_OTOOL64"; then
6141  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6142else
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146  IFS=$as_save_IFS
6147  test -z "$as_dir" && as_dir=.
6148    for ac_exec_ext in '' $ac_executable_extensions; do
6149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150    ac_cv_prog_ac_ct_OTOOL64="otool64"
6151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152    break 2
6153  fi
6154done
6155  done
6156IFS=$as_save_IFS
6157
6158fi
6159fi
6160ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6161if test -n "$ac_ct_OTOOL64"; then
6162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6163$as_echo "$ac_ct_OTOOL64" >&6; }
6164else
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166$as_echo "no" >&6; }
6167fi
6168
6169  if test "x$ac_ct_OTOOL64" = x; then
6170    OTOOL64=":"
6171  else
6172    case $cross_compiling:$ac_tool_warned in
6173yes:)
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6176ac_tool_warned=yes ;;
6177esac
6178    OTOOL64=$ac_ct_OTOOL64
6179  fi
6180else
6181  OTOOL64="$ac_cv_prog_OTOOL64"
6182fi
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6211$as_echo_n "checking for -single_module linker flag... " >&6; }
6212if ${lt_cv_apple_cc_single_mod+:} false; then :
6213  $as_echo_n "(cached) " >&6
6214else
6215  lt_cv_apple_cc_single_mod=no
6216      if test -z "${LT_MULTI_MODULE}"; then
6217	# By default we will add the -single_module flag. You can override
6218	# by either setting the environment variable LT_MULTI_MODULE
6219	# non-empty at configure time, or by adding -multi_module to the
6220	# link flags.
6221	rm -rf libconftest.dylib*
6222	echo "int foo(void){return 1;}" > conftest.c
6223	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6224-dynamiclib -Wl,-single_module conftest.c" >&5
6225	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6226	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6227        _lt_result=$?
6228	# If there is a non-empty error log, and "single_module"
6229	# appears in it, assume the flag caused a linker warning
6230        if test -s conftest.err && $GREP single_module conftest.err; then
6231	  cat conftest.err >&5
6232	# Otherwise, if the output was created with a 0 exit code from
6233	# the compiler, it worked.
6234	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6235	  lt_cv_apple_cc_single_mod=yes
6236	else
6237	  cat conftest.err >&5
6238	fi
6239	rm -rf libconftest.dylib*
6240	rm -f conftest.*
6241      fi
6242fi
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6244$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6245
6246    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6247$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6248if ${lt_cv_ld_exported_symbols_list+:} false; then :
6249  $as_echo_n "(cached) " >&6
6250else
6251  lt_cv_ld_exported_symbols_list=no
6252      save_LDFLAGS=$LDFLAGS
6253      echo "_main" > conftest.sym
6254      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6255      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256/* end confdefs.h.  */
6257
6258int
6259main ()
6260{
6261
6262  ;
6263  return 0;
6264}
6265_ACEOF
6266if ac_fn_c_try_link "$LINENO"; then :
6267  lt_cv_ld_exported_symbols_list=yes
6268else
6269  lt_cv_ld_exported_symbols_list=no
6270fi
6271rm -f core conftest.err conftest.$ac_objext \
6272    conftest$ac_exeext conftest.$ac_ext
6273	LDFLAGS="$save_LDFLAGS"
6274
6275fi
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6277$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6278
6279    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6280$as_echo_n "checking for -force_load linker flag... " >&6; }
6281if ${lt_cv_ld_force_load+:} false; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  lt_cv_ld_force_load=no
6285      cat > conftest.c << _LT_EOF
6286int forced_loaded() { return 2;}
6287_LT_EOF
6288      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6289      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6290      echo "$AR cru libconftest.a conftest.o" >&5
6291      $AR cru libconftest.a conftest.o 2>&5
6292      echo "$RANLIB libconftest.a" >&5
6293      $RANLIB libconftest.a 2>&5
6294      cat > conftest.c << _LT_EOF
6295int main() { return 0;}
6296_LT_EOF
6297      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6298      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6299      _lt_result=$?
6300      if test -s conftest.err && $GREP force_load conftest.err; then
6301	cat conftest.err >&5
6302      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6303	lt_cv_ld_force_load=yes
6304      else
6305	cat conftest.err >&5
6306      fi
6307        rm -f conftest.err libconftest.a conftest conftest.c
6308        rm -rf conftest.dSYM
6309
6310fi
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6312$as_echo "$lt_cv_ld_force_load" >&6; }
6313    case $host_os in
6314    rhapsody* | darwin1.[012])
6315      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6316    darwin1.*)
6317      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6318    darwin*) # darwin 5.x on
6319      # if running on 10.5 or later, the deployment target defaults
6320      # to the OS version, if on x86, and 10.4, the deployment
6321      # target defaults to 10.4. Don't you love it?
6322      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6323	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6324	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6325	10.[012]*)
6326	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6327	10.*)
6328	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6329      esac
6330    ;;
6331  esac
6332    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6333      _lt_dar_single_mod='$single_module'
6334    fi
6335    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6336      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6337    else
6338      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6339    fi
6340    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6341      _lt_dsymutil='~$DSYMUTIL $lib || :'
6342    else
6343      _lt_dsymutil=
6344    fi
6345    ;;
6346  esac
6347
6348ac_ext=c
6349ac_cpp='$CPP $CPPFLAGS'
6350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6352ac_compiler_gnu=$ac_cv_c_compiler_gnu
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6354$as_echo_n "checking how to run the C preprocessor... " >&6; }
6355# On Suns, sometimes $CPP names a directory.
6356if test -n "$CPP" && test -d "$CPP"; then
6357  CPP=
6358fi
6359if test -z "$CPP"; then
6360  if ${ac_cv_prog_CPP+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363      # Double quotes because CPP needs to be expanded
6364    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6365    do
6366      ac_preproc_ok=false
6367for ac_c_preproc_warn_flag in '' yes
6368do
6369  # Use a header file that comes with gcc, so configuring glibc
6370  # with a fresh cross-compiler works.
6371  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6372  # <limits.h> exists even on freestanding compilers.
6373  # On the NeXT, cc -E runs the code through the compiler's parser,
6374  # not just through cpp. "Syntax error" is here to catch this case.
6375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376/* end confdefs.h.  */
6377#ifdef __STDC__
6378# include <limits.h>
6379#else
6380# include <assert.h>
6381#endif
6382		     Syntax error
6383_ACEOF
6384if ac_fn_c_try_cpp "$LINENO"; then :
6385
6386else
6387  # Broken: fails on valid input.
6388continue
6389fi
6390rm -f conftest.err conftest.i conftest.$ac_ext
6391
6392  # OK, works on sane cases.  Now check whether nonexistent headers
6393  # can be detected and how.
6394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395/* end confdefs.h.  */
6396#include <ac_nonexistent.h>
6397_ACEOF
6398if ac_fn_c_try_cpp "$LINENO"; then :
6399  # Broken: success on invalid input.
6400continue
6401else
6402  # Passes both tests.
6403ac_preproc_ok=:
6404break
6405fi
6406rm -f conftest.err conftest.i conftest.$ac_ext
6407
6408done
6409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6410rm -f conftest.i conftest.err conftest.$ac_ext
6411if $ac_preproc_ok; then :
6412  break
6413fi
6414
6415    done
6416    ac_cv_prog_CPP=$CPP
6417
6418fi
6419  CPP=$ac_cv_prog_CPP
6420else
6421  ac_cv_prog_CPP=$CPP
6422fi
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6424$as_echo "$CPP" >&6; }
6425ac_preproc_ok=false
6426for ac_c_preproc_warn_flag in '' yes
6427do
6428  # Use a header file that comes with gcc, so configuring glibc
6429  # with a fresh cross-compiler works.
6430  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6431  # <limits.h> exists even on freestanding compilers.
6432  # On the NeXT, cc -E runs the code through the compiler's parser,
6433  # not just through cpp. "Syntax error" is here to catch this case.
6434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435/* end confdefs.h.  */
6436#ifdef __STDC__
6437# include <limits.h>
6438#else
6439# include <assert.h>
6440#endif
6441		     Syntax error
6442_ACEOF
6443if ac_fn_c_try_cpp "$LINENO"; then :
6444
6445else
6446  # Broken: fails on valid input.
6447continue
6448fi
6449rm -f conftest.err conftest.i conftest.$ac_ext
6450
6451  # OK, works on sane cases.  Now check whether nonexistent headers
6452  # can be detected and how.
6453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454/* end confdefs.h.  */
6455#include <ac_nonexistent.h>
6456_ACEOF
6457if ac_fn_c_try_cpp "$LINENO"; then :
6458  # Broken: success on invalid input.
6459continue
6460else
6461  # Passes both tests.
6462ac_preproc_ok=:
6463break
6464fi
6465rm -f conftest.err conftest.i conftest.$ac_ext
6466
6467done
6468# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6469rm -f conftest.i conftest.err conftest.$ac_ext
6470if $ac_preproc_ok; then :
6471
6472else
6473  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6475as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6476See \`config.log' for more details" "$LINENO" 5; }
6477fi
6478
6479ac_ext=c
6480ac_cpp='$CPP $CPPFLAGS'
6481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6483ac_compiler_gnu=$ac_cv_c_compiler_gnu
6484
6485
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6487$as_echo_n "checking for ANSI C header files... " >&6; }
6488if ${ac_cv_header_stdc+:} false; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492/* end confdefs.h.  */
6493#include <stdlib.h>
6494#include <stdarg.h>
6495#include <string.h>
6496#include <float.h>
6497
6498int
6499main ()
6500{
6501
6502  ;
6503  return 0;
6504}
6505_ACEOF
6506if ac_fn_c_try_compile "$LINENO"; then :
6507  ac_cv_header_stdc=yes
6508else
6509  ac_cv_header_stdc=no
6510fi
6511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512
6513if test $ac_cv_header_stdc = yes; then
6514  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516/* end confdefs.h.  */
6517#include <string.h>
6518
6519_ACEOF
6520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6521  $EGREP "memchr" >/dev/null 2>&1; then :
6522
6523else
6524  ac_cv_header_stdc=no
6525fi
6526rm -f conftest*
6527
6528fi
6529
6530if test $ac_cv_header_stdc = yes; then
6531  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533/* end confdefs.h.  */
6534#include <stdlib.h>
6535
6536_ACEOF
6537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6538  $EGREP "free" >/dev/null 2>&1; then :
6539
6540else
6541  ac_cv_header_stdc=no
6542fi
6543rm -f conftest*
6544
6545fi
6546
6547if test $ac_cv_header_stdc = yes; then
6548  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6549  if test "$cross_compiling" = yes; then :
6550  :
6551else
6552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553/* end confdefs.h.  */
6554#include <ctype.h>
6555#include <stdlib.h>
6556#if ((' ' & 0x0FF) == 0x020)
6557# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6558# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6559#else
6560# define ISLOWER(c) \
6561		   (('a' <= (c) && (c) <= 'i') \
6562		     || ('j' <= (c) && (c) <= 'r') \
6563		     || ('s' <= (c) && (c) <= 'z'))
6564# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6565#endif
6566
6567#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6568int
6569main ()
6570{
6571  int i;
6572  for (i = 0; i < 256; i++)
6573    if (XOR (islower (i), ISLOWER (i))
6574	|| toupper (i) != TOUPPER (i))
6575      return 2;
6576  return 0;
6577}
6578_ACEOF
6579if ac_fn_c_try_run "$LINENO"; then :
6580
6581else
6582  ac_cv_header_stdc=no
6583fi
6584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6585  conftest.$ac_objext conftest.beam conftest.$ac_ext
6586fi
6587
6588fi
6589fi
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6591$as_echo "$ac_cv_header_stdc" >&6; }
6592if test $ac_cv_header_stdc = yes; then
6593
6594$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6595
6596fi
6597
6598# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6599for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6600		  inttypes.h stdint.h unistd.h
6601do :
6602  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6603ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6604"
6605if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6606  cat >>confdefs.h <<_ACEOF
6607#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6608_ACEOF
6609
6610fi
6611
6612done
6613
6614
6615for ac_header in dlfcn.h
6616do :
6617  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6618"
6619if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6620  cat >>confdefs.h <<_ACEOF
6621#define HAVE_DLFCN_H 1
6622_ACEOF
6623
6624fi
6625
6626done
6627
6628
6629
6630
6631
6632# Set options
6633enable_win32_dll=yes
6634
6635case $host in
6636*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6637  if test -n "$ac_tool_prefix"; then
6638  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6639set dummy ${ac_tool_prefix}as; ac_word=$2
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641$as_echo_n "checking for $ac_word... " >&6; }
6642if ${ac_cv_prog_AS+:} false; then :
6643  $as_echo_n "(cached) " >&6
6644else
6645  if test -n "$AS"; then
6646  ac_cv_prog_AS="$AS" # Let the user override the test.
6647else
6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651  IFS=$as_save_IFS
6652  test -z "$as_dir" && as_dir=.
6653    for ac_exec_ext in '' $ac_executable_extensions; do
6654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655    ac_cv_prog_AS="${ac_tool_prefix}as"
6656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657    break 2
6658  fi
6659done
6660  done
6661IFS=$as_save_IFS
6662
6663fi
6664fi
6665AS=$ac_cv_prog_AS
6666if test -n "$AS"; then
6667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6668$as_echo "$AS" >&6; }
6669else
6670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671$as_echo "no" >&6; }
6672fi
6673
6674
6675fi
6676if test -z "$ac_cv_prog_AS"; then
6677  ac_ct_AS=$AS
6678  # Extract the first word of "as", so it can be a program name with args.
6679set dummy as; ac_word=$2
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681$as_echo_n "checking for $ac_word... " >&6; }
6682if ${ac_cv_prog_ac_ct_AS+:} false; then :
6683  $as_echo_n "(cached) " >&6
6684else
6685  if test -n "$ac_ct_AS"; then
6686  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6687else
6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689for as_dir in $PATH
6690do
6691  IFS=$as_save_IFS
6692  test -z "$as_dir" && as_dir=.
6693    for ac_exec_ext in '' $ac_executable_extensions; do
6694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695    ac_cv_prog_ac_ct_AS="as"
6696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697    break 2
6698  fi
6699done
6700  done
6701IFS=$as_save_IFS
6702
6703fi
6704fi
6705ac_ct_AS=$ac_cv_prog_ac_ct_AS
6706if test -n "$ac_ct_AS"; then
6707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6708$as_echo "$ac_ct_AS" >&6; }
6709else
6710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711$as_echo "no" >&6; }
6712fi
6713
6714  if test "x$ac_ct_AS" = x; then
6715    AS="false"
6716  else
6717    case $cross_compiling:$ac_tool_warned in
6718yes:)
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721ac_tool_warned=yes ;;
6722esac
6723    AS=$ac_ct_AS
6724  fi
6725else
6726  AS="$ac_cv_prog_AS"
6727fi
6728
6729  if test -n "$ac_tool_prefix"; then
6730  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6731set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733$as_echo_n "checking for $ac_word... " >&6; }
6734if ${ac_cv_prog_DLLTOOL+:} false; then :
6735  $as_echo_n "(cached) " >&6
6736else
6737  if test -n "$DLLTOOL"; then
6738  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6739else
6740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741for as_dir in $PATH
6742do
6743  IFS=$as_save_IFS
6744  test -z "$as_dir" && as_dir=.
6745    for ac_exec_ext in '' $ac_executable_extensions; do
6746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6747    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749    break 2
6750  fi
6751done
6752  done
6753IFS=$as_save_IFS
6754
6755fi
6756fi
6757DLLTOOL=$ac_cv_prog_DLLTOOL
6758if test -n "$DLLTOOL"; then
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6760$as_echo "$DLLTOOL" >&6; }
6761else
6762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763$as_echo "no" >&6; }
6764fi
6765
6766
6767fi
6768if test -z "$ac_cv_prog_DLLTOOL"; then
6769  ac_ct_DLLTOOL=$DLLTOOL
6770  # Extract the first word of "dlltool", so it can be a program name with args.
6771set dummy dlltool; ac_word=$2
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773$as_echo_n "checking for $ac_word... " >&6; }
6774if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6775  $as_echo_n "(cached) " >&6
6776else
6777  if test -n "$ac_ct_DLLTOOL"; then
6778  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6779else
6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783  IFS=$as_save_IFS
6784  test -z "$as_dir" && as_dir=.
6785    for ac_exec_ext in '' $ac_executable_extensions; do
6786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789    break 2
6790  fi
6791done
6792  done
6793IFS=$as_save_IFS
6794
6795fi
6796fi
6797ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6798if test -n "$ac_ct_DLLTOOL"; then
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6800$as_echo "$ac_ct_DLLTOOL" >&6; }
6801else
6802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803$as_echo "no" >&6; }
6804fi
6805
6806  if test "x$ac_ct_DLLTOOL" = x; then
6807    DLLTOOL="false"
6808  else
6809    case $cross_compiling:$ac_tool_warned in
6810yes:)
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813ac_tool_warned=yes ;;
6814esac
6815    DLLTOOL=$ac_ct_DLLTOOL
6816  fi
6817else
6818  DLLTOOL="$ac_cv_prog_DLLTOOL"
6819fi
6820
6821  if test -n "$ac_tool_prefix"; then
6822  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6823set dummy ${ac_tool_prefix}objdump; ac_word=$2
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825$as_echo_n "checking for $ac_word... " >&6; }
6826if ${ac_cv_prog_OBJDUMP+:} false; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829  if test -n "$OBJDUMP"; then
6830  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835  IFS=$as_save_IFS
6836  test -z "$as_dir" && as_dir=.
6837    for ac_exec_ext in '' $ac_executable_extensions; do
6838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841    break 2
6842  fi
6843done
6844  done
6845IFS=$as_save_IFS
6846
6847fi
6848fi
6849OBJDUMP=$ac_cv_prog_OBJDUMP
6850if test -n "$OBJDUMP"; then
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6852$as_echo "$OBJDUMP" >&6; }
6853else
6854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856fi
6857
6858
6859fi
6860if test -z "$ac_cv_prog_OBJDUMP"; then
6861  ac_ct_OBJDUMP=$OBJDUMP
6862  # Extract the first word of "objdump", so it can be a program name with args.
6863set dummy objdump; ac_word=$2
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865$as_echo_n "checking for $ac_word... " >&6; }
6866if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6867  $as_echo_n "(cached) " >&6
6868else
6869  if test -n "$ac_ct_OBJDUMP"; then
6870  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6871else
6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875  IFS=$as_save_IFS
6876  test -z "$as_dir" && as_dir=.
6877    for ac_exec_ext in '' $ac_executable_extensions; do
6878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881    break 2
6882  fi
6883done
6884  done
6885IFS=$as_save_IFS
6886
6887fi
6888fi
6889ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6890if test -n "$ac_ct_OBJDUMP"; then
6891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6892$as_echo "$ac_ct_OBJDUMP" >&6; }
6893else
6894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895$as_echo "no" >&6; }
6896fi
6897
6898  if test "x$ac_ct_OBJDUMP" = x; then
6899    OBJDUMP="false"
6900  else
6901    case $cross_compiling:$ac_tool_warned in
6902yes:)
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905ac_tool_warned=yes ;;
6906esac
6907    OBJDUMP=$ac_ct_OBJDUMP
6908  fi
6909else
6910  OBJDUMP="$ac_cv_prog_OBJDUMP"
6911fi
6912
6913  ;;
6914esac
6915
6916test -z "$AS" && AS=as
6917
6918
6919
6920
6921
6922test -z "$DLLTOOL" && DLLTOOL=dlltool
6923
6924
6925
6926
6927
6928test -z "$OBJDUMP" && OBJDUMP=objdump
6929
6930
6931
6932
6933
6934
6935
6936        enable_dlopen=no
6937
6938
6939
6940            # Check whether --enable-shared was given.
6941if test "${enable_shared+set}" = set; then :
6942  enableval=$enable_shared; p=${PACKAGE-default}
6943    case $enableval in
6944    yes) enable_shared=yes ;;
6945    no) enable_shared=no ;;
6946    *)
6947      enable_shared=no
6948      # Look at the argument we got.  We use all the common list separators.
6949      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6950      for pkg in $enableval; do
6951	IFS="$lt_save_ifs"
6952	if test "X$pkg" = "X$p"; then
6953	  enable_shared=yes
6954	fi
6955      done
6956      IFS="$lt_save_ifs"
6957      ;;
6958    esac
6959else
6960  enable_shared=yes
6961fi
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971  # Check whether --enable-static was given.
6972if test "${enable_static+set}" = set; then :
6973  enableval=$enable_static; p=${PACKAGE-default}
6974    case $enableval in
6975    yes) enable_static=yes ;;
6976    no) enable_static=no ;;
6977    *)
6978     enable_static=no
6979      # Look at the argument we got.  We use all the common list separators.
6980      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6981      for pkg in $enableval; do
6982	IFS="$lt_save_ifs"
6983	if test "X$pkg" = "X$p"; then
6984	  enable_static=yes
6985	fi
6986      done
6987      IFS="$lt_save_ifs"
6988      ;;
6989    esac
6990else
6991  enable_static=yes
6992fi
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003# Check whether --with-pic was given.
7004if test "${with_pic+set}" = set; then :
7005  withval=$with_pic; lt_p=${PACKAGE-default}
7006    case $withval in
7007    yes|no) pic_mode=$withval ;;
7008    *)
7009      pic_mode=default
7010      # Look at the argument we got.  We use all the common list separators.
7011      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7012      for lt_pkg in $withval; do
7013	IFS="$lt_save_ifs"
7014	if test "X$lt_pkg" = "X$lt_p"; then
7015	  pic_mode=yes
7016	fi
7017      done
7018      IFS="$lt_save_ifs"
7019      ;;
7020    esac
7021else
7022  pic_mode=default
7023fi
7024
7025
7026test -z "$pic_mode" && pic_mode=default
7027
7028
7029
7030
7031
7032
7033
7034  # Check whether --enable-fast-install was given.
7035if test "${enable_fast_install+set}" = set; then :
7036  enableval=$enable_fast_install; p=${PACKAGE-default}
7037    case $enableval in
7038    yes) enable_fast_install=yes ;;
7039    no) enable_fast_install=no ;;
7040    *)
7041      enable_fast_install=no
7042      # Look at the argument we got.  We use all the common list separators.
7043      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7044      for pkg in $enableval; do
7045	IFS="$lt_save_ifs"
7046	if test "X$pkg" = "X$p"; then
7047	  enable_fast_install=yes
7048	fi
7049      done
7050      IFS="$lt_save_ifs"
7051      ;;
7052    esac
7053else
7054  enable_fast_install=yes
7055fi
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067# This can be used to rebuild libtool when needed
7068LIBTOOL_DEPS="$ltmain"
7069
7070# Always use our own libtool.
7071LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102test -z "$LN_S" && LN_S="ln -s"
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117if test -n "${ZSH_VERSION+set}" ; then
7118   setopt NO_GLOB_SUBST
7119fi
7120
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7122$as_echo_n "checking for objdir... " >&6; }
7123if ${lt_cv_objdir+:} false; then :
7124  $as_echo_n "(cached) " >&6
7125else
7126  rm -f .libs 2>/dev/null
7127mkdir .libs 2>/dev/null
7128if test -d .libs; then
7129  lt_cv_objdir=.libs
7130else
7131  # MS-DOS does not allow filenames that begin with a dot.
7132  lt_cv_objdir=_libs
7133fi
7134rmdir .libs 2>/dev/null
7135fi
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7137$as_echo "$lt_cv_objdir" >&6; }
7138objdir=$lt_cv_objdir
7139
7140
7141
7142
7143
7144cat >>confdefs.h <<_ACEOF
7145#define LT_OBJDIR "$lt_cv_objdir/"
7146_ACEOF
7147
7148
7149
7150
7151case $host_os in
7152aix3*)
7153  # AIX sometimes has problems with the GCC collect2 program.  For some
7154  # reason, if we set the COLLECT_NAMES environment variable, the problems
7155  # vanish in a puff of smoke.
7156  if test "X${COLLECT_NAMES+set}" != Xset; then
7157    COLLECT_NAMES=
7158    export COLLECT_NAMES
7159  fi
7160  ;;
7161esac
7162
7163# Global variables:
7164ofile=libtool
7165can_build_shared=yes
7166
7167# All known linkers require a `.a' archive for static linking (except MSVC,
7168# which needs '.lib').
7169libext=a
7170
7171with_gnu_ld="$lt_cv_prog_gnu_ld"
7172
7173old_CC="$CC"
7174old_CFLAGS="$CFLAGS"
7175
7176# Set sane defaults for various variables
7177test -z "$CC" && CC=cc
7178test -z "$LTCC" && LTCC=$CC
7179test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7180test -z "$LD" && LD=ld
7181test -z "$ac_objext" && ac_objext=o
7182
7183for cc_temp in $compiler""; do
7184  case $cc_temp in
7185    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7186    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7187    \-*) ;;
7188    *) break;;
7189  esac
7190done
7191cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7192
7193
7194# Only perform the check for file, if the check method requires it
7195test -z "$MAGIC_CMD" && MAGIC_CMD=file
7196case $deplibs_check_method in
7197file_magic*)
7198  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7199    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7200$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7201if ${lt_cv_path_MAGIC_CMD+:} false; then :
7202  $as_echo_n "(cached) " >&6
7203else
7204  case $MAGIC_CMD in
7205[\\/*] |  ?:[\\/]*)
7206  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7207  ;;
7208*)
7209  lt_save_MAGIC_CMD="$MAGIC_CMD"
7210  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7211  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7212  for ac_dir in $ac_dummy; do
7213    IFS="$lt_save_ifs"
7214    test -z "$ac_dir" && ac_dir=.
7215    if test -f $ac_dir/${ac_tool_prefix}file; then
7216      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7217      if test -n "$file_magic_test_file"; then
7218	case $deplibs_check_method in
7219	"file_magic "*)
7220	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7221	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7222	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7223	    $EGREP "$file_magic_regex" > /dev/null; then
7224	    :
7225	  else
7226	    cat <<_LT_EOF 1>&2
7227
7228*** Warning: the command libtool uses to detect shared libraries,
7229*** $file_magic_cmd, produces output that libtool cannot recognize.
7230*** The result is that libtool may fail to recognize shared libraries
7231*** as such.  This will affect the creation of libtool libraries that
7232*** depend on shared libraries, but programs linked with such libtool
7233*** libraries will work regardless of this problem.  Nevertheless, you
7234*** may want to report the problem to your system manager and/or to
7235*** bug-libtool@gnu.org
7236
7237_LT_EOF
7238	  fi ;;
7239	esac
7240      fi
7241      break
7242    fi
7243  done
7244  IFS="$lt_save_ifs"
7245  MAGIC_CMD="$lt_save_MAGIC_CMD"
7246  ;;
7247esac
7248fi
7249
7250MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7251if test -n "$MAGIC_CMD"; then
7252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7253$as_echo "$MAGIC_CMD" >&6; }
7254else
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256$as_echo "no" >&6; }
7257fi
7258
7259
7260
7261
7262
7263if test -z "$lt_cv_path_MAGIC_CMD"; then
7264  if test -n "$ac_tool_prefix"; then
7265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7266$as_echo_n "checking for file... " >&6; }
7267if ${lt_cv_path_MAGIC_CMD+:} false; then :
7268  $as_echo_n "(cached) " >&6
7269else
7270  case $MAGIC_CMD in
7271[\\/*] |  ?:[\\/]*)
7272  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7273  ;;
7274*)
7275  lt_save_MAGIC_CMD="$MAGIC_CMD"
7276  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7277  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7278  for ac_dir in $ac_dummy; do
7279    IFS="$lt_save_ifs"
7280    test -z "$ac_dir" && ac_dir=.
7281    if test -f $ac_dir/file; then
7282      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7283      if test -n "$file_magic_test_file"; then
7284	case $deplibs_check_method in
7285	"file_magic "*)
7286	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7287	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7288	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7289	    $EGREP "$file_magic_regex" > /dev/null; then
7290	    :
7291	  else
7292	    cat <<_LT_EOF 1>&2
7293
7294*** Warning: the command libtool uses to detect shared libraries,
7295*** $file_magic_cmd, produces output that libtool cannot recognize.
7296*** The result is that libtool may fail to recognize shared libraries
7297*** as such.  This will affect the creation of libtool libraries that
7298*** depend on shared libraries, but programs linked with such libtool
7299*** libraries will work regardless of this problem.  Nevertheless, you
7300*** may want to report the problem to your system manager and/or to
7301*** bug-libtool@gnu.org
7302
7303_LT_EOF
7304	  fi ;;
7305	esac
7306      fi
7307      break
7308    fi
7309  done
7310  IFS="$lt_save_ifs"
7311  MAGIC_CMD="$lt_save_MAGIC_CMD"
7312  ;;
7313esac
7314fi
7315
7316MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7317if test -n "$MAGIC_CMD"; then
7318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7319$as_echo "$MAGIC_CMD" >&6; }
7320else
7321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322$as_echo "no" >&6; }
7323fi
7324
7325
7326  else
7327    MAGIC_CMD=:
7328  fi
7329fi
7330
7331  fi
7332  ;;
7333esac
7334
7335# Use C for the default configuration in the libtool script
7336
7337lt_save_CC="$CC"
7338ac_ext=c
7339ac_cpp='$CPP $CPPFLAGS'
7340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7342ac_compiler_gnu=$ac_cv_c_compiler_gnu
7343
7344
7345# Source file extension for C test sources.
7346ac_ext=c
7347
7348# Object file extension for compiled C test sources.
7349objext=o
7350objext=$objext
7351
7352# Code to be used in simple compile tests
7353lt_simple_compile_test_code="int some_variable = 0;"
7354
7355# Code to be used in simple link tests
7356lt_simple_link_test_code='int main(){return(0);}'
7357
7358
7359
7360
7361
7362
7363
7364# If no C compiler was specified, use CC.
7365LTCC=${LTCC-"$CC"}
7366
7367# If no C compiler flags were specified, use CFLAGS.
7368LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7369
7370# Allow CC to be a program name with arguments.
7371compiler=$CC
7372
7373# Save the default compiler, since it gets overwritten when the other
7374# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7375compiler_DEFAULT=$CC
7376
7377# save warnings/boilerplate of simple test code
7378ac_outfile=conftest.$ac_objext
7379echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7380eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7381_lt_compiler_boilerplate=`cat conftest.err`
7382$RM conftest*
7383
7384ac_outfile=conftest.$ac_objext
7385echo "$lt_simple_link_test_code" >conftest.$ac_ext
7386eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7387_lt_linker_boilerplate=`cat conftest.err`
7388$RM -r conftest*
7389
7390
7391## CAVEAT EMPTOR:
7392## There is no encapsulation within the following macros, do not change
7393## the running order or otherwise move them around unless you know exactly
7394## what you are doing...
7395if test -n "$compiler"; then
7396
7397lt_prog_compiler_no_builtin_flag=
7398
7399if test "$GCC" = yes; then
7400  case $cc_basename in
7401  nvcc*)
7402    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7403  *)
7404    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7405  esac
7406
7407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7408$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7409if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7410  $as_echo_n "(cached) " >&6
7411else
7412  lt_cv_prog_compiler_rtti_exceptions=no
7413   ac_outfile=conftest.$ac_objext
7414   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7415   lt_compiler_flag="-fno-rtti -fno-exceptions"
7416   # Insert the option either (1) after the last *FLAGS variable, or
7417   # (2) before a word containing "conftest.", or (3) at the end.
7418   # Note that $ac_compile itself does not contain backslashes and begins
7419   # with a dollar sign (not a hyphen), so the echo should work correctly.
7420   # The option is referenced via a variable to avoid confusing sed.
7421   lt_compile=`echo "$ac_compile" | $SED \
7422   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7423   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7424   -e 's:$: $lt_compiler_flag:'`
7425   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7426   (eval "$lt_compile" 2>conftest.err)
7427   ac_status=$?
7428   cat conftest.err >&5
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   if (exit $ac_status) && test -s "$ac_outfile"; then
7431     # The compiler can only warn and ignore the option if not recognized
7432     # So say no if there are warnings other than the usual output.
7433     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7434     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7435     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7436       lt_cv_prog_compiler_rtti_exceptions=yes
7437     fi
7438   fi
7439   $RM conftest*
7440
7441fi
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7443$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7444
7445if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7446    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7447else
7448    :
7449fi
7450
7451fi
7452
7453
7454
7455
7456
7457
7458  lt_prog_compiler_wl=
7459lt_prog_compiler_pic=
7460lt_prog_compiler_static=
7461
7462
7463  if test "$GCC" = yes; then
7464    lt_prog_compiler_wl='-Wl,'
7465    lt_prog_compiler_static='-static'
7466
7467    case $host_os in
7468      aix*)
7469      # All AIX code is PIC.
7470      if test "$host_cpu" = ia64; then
7471	# AIX 5 now supports IA64 processor
7472	lt_prog_compiler_static='-Bstatic'
7473      fi
7474      ;;
7475
7476    amigaos*)
7477      case $host_cpu in
7478      powerpc)
7479            # see comment about AmigaOS4 .so support
7480            lt_prog_compiler_pic='-fPIC'
7481        ;;
7482      m68k)
7483            # FIXME: we need at least 68020 code to build shared libraries, but
7484            # adding the `-m68020' flag to GCC prevents building anything better,
7485            # like `-m68040'.
7486            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7487        ;;
7488      esac
7489      ;;
7490
7491    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7492      # PIC is the default for these OSes.
7493      ;;
7494
7495    mingw* | cygwin* | pw32* | os2* | cegcc*)
7496      # This hack is so that the source file can tell whether it is being
7497      # built for inclusion in a dll (and should export symbols for example).
7498      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7499      # (--disable-auto-import) libraries
7500      lt_prog_compiler_pic='-DDLL_EXPORT'
7501      ;;
7502
7503    darwin* | rhapsody*)
7504      # PIC is the default on this platform
7505      # Common symbols not allowed in MH_DYLIB files
7506      lt_prog_compiler_pic='-fno-common'
7507      ;;
7508
7509    haiku*)
7510      # PIC is the default for Haiku.
7511      # The "-static" flag exists, but is broken.
7512      lt_prog_compiler_static=
7513      ;;
7514
7515    hpux*)
7516      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7517      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7518      # sets the default TLS model and affects inlining.
7519      case $host_cpu in
7520      hppa*64*)
7521	# +Z the default
7522	;;
7523      *)
7524	lt_prog_compiler_pic='-fPIC'
7525	;;
7526      esac
7527      ;;
7528
7529    interix[3-9]*)
7530      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7531      # Instead, we relocate shared libraries at runtime.
7532      ;;
7533
7534    msdosdjgpp*)
7535      # Just because we use GCC doesn't mean we suddenly get shared libraries
7536      # on systems that don't support them.
7537      lt_prog_compiler_can_build_shared=no
7538      enable_shared=no
7539      ;;
7540
7541    *nto* | *qnx*)
7542      # QNX uses GNU C++, but need to define -shared option too, otherwise
7543      # it will coredump.
7544      lt_prog_compiler_pic='-fPIC -shared'
7545      ;;
7546
7547    sysv4*MP*)
7548      if test -d /usr/nec; then
7549	lt_prog_compiler_pic=-Kconform_pic
7550      fi
7551      ;;
7552
7553    *)
7554      lt_prog_compiler_pic='-fPIC'
7555      ;;
7556    esac
7557
7558    case $cc_basename in
7559    nvcc*) # Cuda Compiler Driver 2.2
7560      lt_prog_compiler_wl='-Xlinker '
7561      if test -n "$lt_prog_compiler_pic"; then
7562        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7563      fi
7564      ;;
7565    esac
7566  else
7567    # PORTME Check for flag to pass linker flags through the system compiler.
7568    case $host_os in
7569    aix*)
7570      lt_prog_compiler_wl='-Wl,'
7571      if test "$host_cpu" = ia64; then
7572	# AIX 5 now supports IA64 processor
7573	lt_prog_compiler_static='-Bstatic'
7574      else
7575	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7576      fi
7577      ;;
7578
7579    mingw* | cygwin* | pw32* | os2* | cegcc*)
7580      # This hack is so that the source file can tell whether it is being
7581      # built for inclusion in a dll (and should export symbols for example).
7582      lt_prog_compiler_pic='-DDLL_EXPORT'
7583      ;;
7584
7585    hpux9* | hpux10* | hpux11*)
7586      lt_prog_compiler_wl='-Wl,'
7587      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7588      # not for PA HP-UX.
7589      case $host_cpu in
7590      hppa*64*|ia64*)
7591	# +Z the default
7592	;;
7593      *)
7594	lt_prog_compiler_pic='+Z'
7595	;;
7596      esac
7597      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7598      lt_prog_compiler_static='${wl}-a ${wl}archive'
7599      ;;
7600
7601    irix5* | irix6* | nonstopux*)
7602      lt_prog_compiler_wl='-Wl,'
7603      # PIC (with -KPIC) is the default.
7604      lt_prog_compiler_static='-non_shared'
7605      ;;
7606
7607    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7608      case $cc_basename in
7609      # old Intel for x86_64 which still supported -KPIC.
7610      ecc*)
7611	lt_prog_compiler_wl='-Wl,'
7612	lt_prog_compiler_pic='-KPIC'
7613	lt_prog_compiler_static='-static'
7614        ;;
7615      # icc used to be incompatible with GCC.
7616      # ICC 10 doesn't accept -KPIC any more.
7617      icc* | ifort*)
7618	lt_prog_compiler_wl='-Wl,'
7619	lt_prog_compiler_pic='-fPIC'
7620	lt_prog_compiler_static='-static'
7621        ;;
7622      # Lahey Fortran 8.1.
7623      lf95*)
7624	lt_prog_compiler_wl='-Wl,'
7625	lt_prog_compiler_pic='--shared'
7626	lt_prog_compiler_static='--static'
7627	;;
7628      nagfor*)
7629	# NAG Fortran compiler
7630	lt_prog_compiler_wl='-Wl,-Wl,,'
7631	lt_prog_compiler_pic='-PIC'
7632	lt_prog_compiler_static='-Bstatic'
7633	;;
7634      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7635        # Portland Group compilers (*not* the Pentium gcc compiler,
7636	# which looks to be a dead project)
7637	lt_prog_compiler_wl='-Wl,'
7638	lt_prog_compiler_pic='-fpic'
7639	lt_prog_compiler_static='-Bstatic'
7640        ;;
7641      ccc*)
7642        lt_prog_compiler_wl='-Wl,'
7643        # All Alpha code is PIC.
7644        lt_prog_compiler_static='-non_shared'
7645        ;;
7646      xl* | bgxl* | bgf* | mpixl*)
7647	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7648	lt_prog_compiler_wl='-Wl,'
7649	lt_prog_compiler_pic='-qpic'
7650	lt_prog_compiler_static='-qstaticlink'
7651	;;
7652      *)
7653	case `$CC -V 2>&1 | sed 5q` in
7654	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7655	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7656	  lt_prog_compiler_pic='-KPIC'
7657	  lt_prog_compiler_static='-Bstatic'
7658	  lt_prog_compiler_wl=''
7659	  ;;
7660	*Sun\ F* | *Sun*Fortran*)
7661	  lt_prog_compiler_pic='-KPIC'
7662	  lt_prog_compiler_static='-Bstatic'
7663	  lt_prog_compiler_wl='-Qoption ld '
7664	  ;;
7665	*Sun\ C*)
7666	  # Sun C 5.9
7667	  lt_prog_compiler_pic='-KPIC'
7668	  lt_prog_compiler_static='-Bstatic'
7669	  lt_prog_compiler_wl='-Wl,'
7670	  ;;
7671        *Intel*\ [CF]*Compiler*)
7672	  lt_prog_compiler_wl='-Wl,'
7673	  lt_prog_compiler_pic='-fPIC'
7674	  lt_prog_compiler_static='-static'
7675	  ;;
7676	*Portland\ Group*)
7677	  lt_prog_compiler_wl='-Wl,'
7678	  lt_prog_compiler_pic='-fpic'
7679	  lt_prog_compiler_static='-Bstatic'
7680	  ;;
7681	esac
7682	;;
7683      esac
7684      ;;
7685
7686    newsos6)
7687      lt_prog_compiler_pic='-KPIC'
7688      lt_prog_compiler_static='-Bstatic'
7689      ;;
7690
7691    *nto* | *qnx*)
7692      # QNX uses GNU C++, but need to define -shared option too, otherwise
7693      # it will coredump.
7694      lt_prog_compiler_pic='-fPIC -shared'
7695      ;;
7696
7697    osf3* | osf4* | osf5*)
7698      lt_prog_compiler_wl='-Wl,'
7699      # All OSF/1 code is PIC.
7700      lt_prog_compiler_static='-non_shared'
7701      ;;
7702
7703    rdos*)
7704      lt_prog_compiler_static='-non_shared'
7705      ;;
7706
7707    solaris*)
7708      lt_prog_compiler_pic='-KPIC'
7709      lt_prog_compiler_static='-Bstatic'
7710      case $cc_basename in
7711      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7712	lt_prog_compiler_wl='-Qoption ld ';;
7713      *)
7714	lt_prog_compiler_wl='-Wl,';;
7715      esac
7716      ;;
7717
7718    sunos4*)
7719      lt_prog_compiler_wl='-Qoption ld '
7720      lt_prog_compiler_pic='-PIC'
7721      lt_prog_compiler_static='-Bstatic'
7722      ;;
7723
7724    sysv4 | sysv4.2uw2* | sysv4.3*)
7725      lt_prog_compiler_wl='-Wl,'
7726      lt_prog_compiler_pic='-KPIC'
7727      lt_prog_compiler_static='-Bstatic'
7728      ;;
7729
7730    sysv4*MP*)
7731      if test -d /usr/nec ;then
7732	lt_prog_compiler_pic='-Kconform_pic'
7733	lt_prog_compiler_static='-Bstatic'
7734      fi
7735      ;;
7736
7737    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7738      lt_prog_compiler_wl='-Wl,'
7739      lt_prog_compiler_pic='-KPIC'
7740      lt_prog_compiler_static='-Bstatic'
7741      ;;
7742
7743    unicos*)
7744      lt_prog_compiler_wl='-Wl,'
7745      lt_prog_compiler_can_build_shared=no
7746      ;;
7747
7748    uts4*)
7749      lt_prog_compiler_pic='-pic'
7750      lt_prog_compiler_static='-Bstatic'
7751      ;;
7752
7753    *)
7754      lt_prog_compiler_can_build_shared=no
7755      ;;
7756    esac
7757  fi
7758
7759case $host_os in
7760  # For platforms which do not support PIC, -DPIC is meaningless:
7761  *djgpp*)
7762    lt_prog_compiler_pic=
7763    ;;
7764  *)
7765    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7766    ;;
7767esac
7768
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7770$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7771if ${lt_cv_prog_compiler_pic+:} false; then :
7772  $as_echo_n "(cached) " >&6
7773else
7774  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7775fi
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7777$as_echo "$lt_cv_prog_compiler_pic" >&6; }
7778lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7779
7780#
7781# Check to make sure the PIC flag actually works.
7782#
7783if test -n "$lt_prog_compiler_pic"; then
7784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7785$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7786if ${lt_cv_prog_compiler_pic_works+:} false; then :
7787  $as_echo_n "(cached) " >&6
7788else
7789  lt_cv_prog_compiler_pic_works=no
7790   ac_outfile=conftest.$ac_objext
7791   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7792   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7793   # Insert the option either (1) after the last *FLAGS variable, or
7794   # (2) before a word containing "conftest.", or (3) at the end.
7795   # Note that $ac_compile itself does not contain backslashes and begins
7796   # with a dollar sign (not a hyphen), so the echo should work correctly.
7797   # The option is referenced via a variable to avoid confusing sed.
7798   lt_compile=`echo "$ac_compile" | $SED \
7799   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7800   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7801   -e 's:$: $lt_compiler_flag:'`
7802   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7803   (eval "$lt_compile" 2>conftest.err)
7804   ac_status=$?
7805   cat conftest.err >&5
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   if (exit $ac_status) && test -s "$ac_outfile"; then
7808     # The compiler can only warn and ignore the option if not recognized
7809     # So say no if there are warnings other than the usual output.
7810     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7811     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7812     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7813       lt_cv_prog_compiler_pic_works=yes
7814     fi
7815   fi
7816   $RM conftest*
7817
7818fi
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7820$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7821
7822if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7823    case $lt_prog_compiler_pic in
7824     "" | " "*) ;;
7825     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7826     esac
7827else
7828    lt_prog_compiler_pic=
7829     lt_prog_compiler_can_build_shared=no
7830fi
7831
7832fi
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844#
7845# Check to make sure the static flag actually works.
7846#
7847wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7849$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7850if ${lt_cv_prog_compiler_static_works+:} false; then :
7851  $as_echo_n "(cached) " >&6
7852else
7853  lt_cv_prog_compiler_static_works=no
7854   save_LDFLAGS="$LDFLAGS"
7855   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7856   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7857   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7858     # The linker can only warn and ignore the option if not recognized
7859     # So say no if there are warnings
7860     if test -s conftest.err; then
7861       # Append any errors to the config.log.
7862       cat conftest.err 1>&5
7863       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7864       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7865       if diff conftest.exp conftest.er2 >/dev/null; then
7866         lt_cv_prog_compiler_static_works=yes
7867       fi
7868     else
7869       lt_cv_prog_compiler_static_works=yes
7870     fi
7871   fi
7872   $RM -r conftest*
7873   LDFLAGS="$save_LDFLAGS"
7874
7875fi
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7877$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7878
7879if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7880    :
7881else
7882    lt_prog_compiler_static=
7883fi
7884
7885
7886
7887
7888
7889
7890
7891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7892$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7893if ${lt_cv_prog_compiler_c_o+:} false; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  lt_cv_prog_compiler_c_o=no
7897   $RM -r conftest 2>/dev/null
7898   mkdir conftest
7899   cd conftest
7900   mkdir out
7901   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7902
7903   lt_compiler_flag="-o out/conftest2.$ac_objext"
7904   # Insert the option either (1) after the last *FLAGS variable, or
7905   # (2) before a word containing "conftest.", or (3) at the end.
7906   # Note that $ac_compile itself does not contain backslashes and begins
7907   # with a dollar sign (not a hyphen), so the echo should work correctly.
7908   lt_compile=`echo "$ac_compile" | $SED \
7909   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7911   -e 's:$: $lt_compiler_flag:'`
7912   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7913   (eval "$lt_compile" 2>out/conftest.err)
7914   ac_status=$?
7915   cat out/conftest.err >&5
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7918   then
7919     # The compiler can only warn and ignore the option if not recognized
7920     # So say no if there are warnings
7921     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7922     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7923     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7924       lt_cv_prog_compiler_c_o=yes
7925     fi
7926   fi
7927   chmod u+w . 2>&5
7928   $RM conftest*
7929   # SGI C++ compiler will create directory out/ii_files/ for
7930   # template instantiation
7931   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7932   $RM out/* && rmdir out
7933   cd ..
7934   $RM -r conftest
7935   $RM conftest*
7936
7937fi
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7939$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7940
7941
7942
7943
7944
7945
7946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7947$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7948if ${lt_cv_prog_compiler_c_o+:} false; then :
7949  $as_echo_n "(cached) " >&6
7950else
7951  lt_cv_prog_compiler_c_o=no
7952   $RM -r conftest 2>/dev/null
7953   mkdir conftest
7954   cd conftest
7955   mkdir out
7956   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7957
7958   lt_compiler_flag="-o out/conftest2.$ac_objext"
7959   # Insert the option either (1) after the last *FLAGS variable, or
7960   # (2) before a word containing "conftest.", or (3) at the end.
7961   # Note that $ac_compile itself does not contain backslashes and begins
7962   # with a dollar sign (not a hyphen), so the echo should work correctly.
7963   lt_compile=`echo "$ac_compile" | $SED \
7964   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7965   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7966   -e 's:$: $lt_compiler_flag:'`
7967   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7968   (eval "$lt_compile" 2>out/conftest.err)
7969   ac_status=$?
7970   cat out/conftest.err >&5
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7973   then
7974     # The compiler can only warn and ignore the option if not recognized
7975     # So say no if there are warnings
7976     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7977     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7978     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7979       lt_cv_prog_compiler_c_o=yes
7980     fi
7981   fi
7982   chmod u+w . 2>&5
7983   $RM conftest*
7984   # SGI C++ compiler will create directory out/ii_files/ for
7985   # template instantiation
7986   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7987   $RM out/* && rmdir out
7988   cd ..
7989   $RM -r conftest
7990   $RM conftest*
7991
7992fi
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7994$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7995
7996
7997
7998
7999hard_links="nottested"
8000if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8001  # do not overwrite the value of need_locks provided by the user
8002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8003$as_echo_n "checking if we can lock with hard links... " >&6; }
8004  hard_links=yes
8005  $RM conftest*
8006  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8007  touch conftest.a
8008  ln conftest.a conftest.b 2>&5 || hard_links=no
8009  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8011$as_echo "$hard_links" >&6; }
8012  if test "$hard_links" = no; then
8013    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8014$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8015    need_locks=warn
8016  fi
8017else
8018  need_locks=no
8019fi
8020
8021
8022
8023
8024
8025
8026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8027$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8028
8029  runpath_var=
8030  allow_undefined_flag=
8031  always_export_symbols=no
8032  archive_cmds=
8033  archive_expsym_cmds=
8034  compiler_needs_object=no
8035  enable_shared_with_static_runtimes=no
8036  export_dynamic_flag_spec=
8037  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8038  hardcode_automatic=no
8039  hardcode_direct=no
8040  hardcode_direct_absolute=no
8041  hardcode_libdir_flag_spec=
8042  hardcode_libdir_separator=
8043  hardcode_minus_L=no
8044  hardcode_shlibpath_var=unsupported
8045  inherit_rpath=no
8046  link_all_deplibs=unknown
8047  module_cmds=
8048  module_expsym_cmds=
8049  old_archive_from_new_cmds=
8050  old_archive_from_expsyms_cmds=
8051  thread_safe_flag_spec=
8052  whole_archive_flag_spec=
8053  # include_expsyms should be a list of space-separated symbols to be *always*
8054  # included in the symbol list
8055  include_expsyms=
8056  # exclude_expsyms can be an extended regexp of symbols to exclude
8057  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8058  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8059  # as well as any symbol that contains `d'.
8060  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8061  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8062  # platforms (ab)use it in PIC code, but their linkers get confused if
8063  # the symbol is explicitly referenced.  Since portable code cannot
8064  # rely on this symbol name, it's probably fine to never include it in
8065  # preloaded symbol tables.
8066  # Exclude shared library initialization/finalization symbols.
8067  extract_expsyms_cmds=
8068
8069  case $host_os in
8070  cygwin* | mingw* | pw32* | cegcc*)
8071    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8072    # When not using gcc, we currently assume that we are using
8073    # Microsoft Visual C++.
8074    if test "$GCC" != yes; then
8075      with_gnu_ld=no
8076    fi
8077    ;;
8078  interix*)
8079    # we just hope/assume this is gcc and not c89 (= MSVC++)
8080    with_gnu_ld=yes
8081    ;;
8082  openbsd*)
8083    with_gnu_ld=no
8084    ;;
8085  esac
8086
8087  ld_shlibs=yes
8088
8089  # On some targets, GNU ld is compatible enough with the native linker
8090  # that we're better off using the native interface for both.
8091  lt_use_gnu_ld_interface=no
8092  if test "$with_gnu_ld" = yes; then
8093    case $host_os in
8094      aix*)
8095	# The AIX port of GNU ld has always aspired to compatibility
8096	# with the native linker.  However, as the warning in the GNU ld
8097	# block says, versions before 2.19.5* couldn't really create working
8098	# shared libraries, regardless of the interface used.
8099	case `$LD -v 2>&1` in
8100	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8101	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8102	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8103	  *)
8104	    lt_use_gnu_ld_interface=yes
8105	    ;;
8106	esac
8107	;;
8108      *)
8109	lt_use_gnu_ld_interface=yes
8110	;;
8111    esac
8112  fi
8113
8114  if test "$lt_use_gnu_ld_interface" = yes; then
8115    # If archive_cmds runs LD, not CC, wlarc should be empty
8116    wlarc='${wl}'
8117
8118    # Set some defaults for GNU ld with shared library support. These
8119    # are reset later if shared libraries are not supported. Putting them
8120    # here allows them to be overridden if necessary.
8121    runpath_var=LD_RUN_PATH
8122    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8123    export_dynamic_flag_spec='${wl}--export-dynamic'
8124    # ancient GNU ld didn't support --whole-archive et. al.
8125    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8126      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8127    else
8128      whole_archive_flag_spec=
8129    fi
8130    supports_anon_versioning=no
8131    case `$LD -v 2>&1` in
8132      *GNU\ gold*) supports_anon_versioning=yes ;;
8133      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8134      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8135      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8136      *\ 2.11.*) ;; # other 2.11 versions
8137      *) supports_anon_versioning=yes ;;
8138    esac
8139
8140    # See if GNU ld supports shared libraries.
8141    case $host_os in
8142    aix[3-9]*)
8143      # On AIX/PPC, the GNU linker is very broken
8144      if test "$host_cpu" != ia64; then
8145	ld_shlibs=no
8146	cat <<_LT_EOF 1>&2
8147
8148*** Warning: the GNU linker, at least up to release 2.19, is reported
8149*** to be unable to reliably create shared libraries on AIX.
8150*** Therefore, libtool is disabling shared libraries support.  If you
8151*** really care for shared libraries, you may want to install binutils
8152*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8153*** You will then need to restart the configuration process.
8154
8155_LT_EOF
8156      fi
8157      ;;
8158
8159    amigaos*)
8160      case $host_cpu in
8161      powerpc)
8162            # see comment about AmigaOS4 .so support
8163            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8164            archive_expsym_cmds=''
8165        ;;
8166      m68k)
8167            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)'
8168            hardcode_libdir_flag_spec='-L$libdir'
8169            hardcode_minus_L=yes
8170        ;;
8171      esac
8172      ;;
8173
8174    beos*)
8175      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8176	allow_undefined_flag=unsupported
8177	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8178	# support --undefined.  This deserves some investigation.  FIXME
8179	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8180      else
8181	ld_shlibs=no
8182      fi
8183      ;;
8184
8185    cygwin* | mingw* | pw32* | cegcc*)
8186      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8187      # as there is no search path for DLLs.
8188      hardcode_libdir_flag_spec='-L$libdir'
8189      export_dynamic_flag_spec='${wl}--export-all-symbols'
8190      allow_undefined_flag=unsupported
8191      always_export_symbols=no
8192      enable_shared_with_static_runtimes=yes
8193      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'
8194      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8195
8196      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8197        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8198	# If the export-symbols file already is a .def file (1st line
8199	# is EXPORTS), use it as is; otherwise, prepend...
8200	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8201	  cp $export_symbols $output_objdir/$soname.def;
8202	else
8203	  echo EXPORTS > $output_objdir/$soname.def;
8204	  cat $export_symbols >> $output_objdir/$soname.def;
8205	fi~
8206	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8207      else
8208	ld_shlibs=no
8209      fi
8210      ;;
8211
8212    haiku*)
8213      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8214      link_all_deplibs=yes
8215      ;;
8216
8217    interix[3-9]*)
8218      hardcode_direct=no
8219      hardcode_shlibpath_var=no
8220      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8221      export_dynamic_flag_spec='${wl}-E'
8222      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8223      # Instead, shared libraries are loaded at an image base (0x10000000 by
8224      # default) and relocated if they conflict, which is a slow very memory
8225      # consuming and fragmenting process.  To avoid this, we pick a random,
8226      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8227      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8228      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8229      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'
8230      ;;
8231
8232    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8233      tmp_diet=no
8234      if test "$host_os" = linux-dietlibc; then
8235	case $cc_basename in
8236	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8237	esac
8238      fi
8239      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8240	 && test "$tmp_diet" = no
8241      then
8242	tmp_addflag=' $pic_flag'
8243	tmp_sharedflag='-shared'
8244	case $cc_basename,$host_cpu in
8245        pgcc*)				# Portland Group C compiler
8246	  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'
8247	  tmp_addflag=' $pic_flag'
8248	  ;;
8249	pgf77* | pgf90* | pgf95* | pgfortran*)
8250					# Portland Group f77 and f90 compilers
8251	  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'
8252	  tmp_addflag=' $pic_flag -Mnomain' ;;
8253	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8254	  tmp_addflag=' -i_dynamic' ;;
8255	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8256	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8257	ifc* | ifort*)			# Intel Fortran compiler
8258	  tmp_addflag=' -nofor_main' ;;
8259	lf95*)				# Lahey Fortran 8.1
8260	  whole_archive_flag_spec=
8261	  tmp_sharedflag='--shared' ;;
8262	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8263	  tmp_sharedflag='-qmkshrobj'
8264	  tmp_addflag= ;;
8265	nvcc*)	# Cuda Compiler Driver 2.2
8266	  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'
8267	  compiler_needs_object=yes
8268	  ;;
8269	esac
8270	case `$CC -V 2>&1 | sed 5q` in
8271	*Sun\ C*)			# Sun C 5.9
8272	  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'
8273	  compiler_needs_object=yes
8274	  tmp_sharedflag='-G' ;;
8275	*Sun\ F*)			# Sun Fortran 8.3
8276	  tmp_sharedflag='-G' ;;
8277	esac
8278	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8279
8280        if test "x$supports_anon_versioning" = xyes; then
8281          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8282	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8283	    echo "local: *; };" >> $output_objdir/$libname.ver~
8284	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8285        fi
8286
8287	case $cc_basename in
8288	xlf* | bgf* | bgxlf* | mpixlf*)
8289	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8290	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8291	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8292	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8293	  if test "x$supports_anon_versioning" = xyes; then
8294	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8295	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8296	      echo "local: *; };" >> $output_objdir/$libname.ver~
8297	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8298	  fi
8299	  ;;
8300	esac
8301      else
8302        ld_shlibs=no
8303      fi
8304      ;;
8305
8306    netbsd*)
8307      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8308	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8309	wlarc=
8310      else
8311	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8313      fi
8314      ;;
8315
8316    solaris*)
8317      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8318	ld_shlibs=no
8319	cat <<_LT_EOF 1>&2
8320
8321*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8322*** create shared libraries on Solaris systems.  Therefore, libtool
8323*** is disabling shared libraries support.  We urge you to upgrade GNU
8324*** binutils to release 2.9.1 or newer.  Another option is to modify
8325*** your PATH or compiler configuration so that the native linker is
8326*** used, and then restart.
8327
8328_LT_EOF
8329      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8330	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8331	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8332      else
8333	ld_shlibs=no
8334      fi
8335      ;;
8336
8337    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8338      case `$LD -v 2>&1` in
8339        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8340	ld_shlibs=no
8341	cat <<_LT_EOF 1>&2
8342
8343*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8344*** reliably create shared libraries on SCO systems.  Therefore, libtool
8345*** is disabling shared libraries support.  We urge you to upgrade GNU
8346*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8347*** your PATH or compiler configuration so that the native linker is
8348*** used, and then restart.
8349
8350_LT_EOF
8351	;;
8352	*)
8353	  # For security reasons, it is highly recommended that you always
8354	  # use absolute paths for naming shared libraries, and exclude the
8355	  # DT_RUNPATH tag from executables and libraries.  But doing so
8356	  # requires that you compile everything twice, which is a pain.
8357	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8358	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8359	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8360	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8361	  else
8362	    ld_shlibs=no
8363	  fi
8364	;;
8365      esac
8366      ;;
8367
8368    sunos4*)
8369      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8370      wlarc=
8371      hardcode_direct=yes
8372      hardcode_shlibpath_var=no
8373      ;;
8374
8375    *)
8376      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8377	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8378	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8379      else
8380	ld_shlibs=no
8381      fi
8382      ;;
8383    esac
8384
8385    if test "$ld_shlibs" = no; then
8386      runpath_var=
8387      hardcode_libdir_flag_spec=
8388      export_dynamic_flag_spec=
8389      whole_archive_flag_spec=
8390    fi
8391  else
8392    # PORTME fill in a description of your system's linker (not GNU ld)
8393    case $host_os in
8394    aix3*)
8395      allow_undefined_flag=unsupported
8396      always_export_symbols=yes
8397      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'
8398      # Note: this linker hardcodes the directories in LIBPATH if there
8399      # are no directories specified by -L.
8400      hardcode_minus_L=yes
8401      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8402	# Neither direct hardcoding nor static linking is supported with a
8403	# broken collect2.
8404	hardcode_direct=unsupported
8405      fi
8406      ;;
8407
8408    aix[4-9]*)
8409      if test "$host_cpu" = ia64; then
8410	# On IA64, the linker does run time linking by default, so we don't
8411	# have to do anything special.
8412	aix_use_runtimelinking=no
8413	exp_sym_flag='-Bexport'
8414	no_entry_flag=""
8415      else
8416	# If we're using GNU nm, then we don't want the "-C" option.
8417	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8418	# Also, AIX nm treats weak defined symbols like other global
8419	# defined symbols, whereas GNU nm marks them as "W".
8420	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8421	  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'
8422	else
8423	  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'
8424	fi
8425	aix_use_runtimelinking=no
8426
8427	# Test if we are trying to use run time linking or normal
8428	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8429	# need to do runtime linking.
8430	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8431	  for ld_flag in $LDFLAGS; do
8432	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8433	    aix_use_runtimelinking=yes
8434	    break
8435	  fi
8436	  done
8437	  ;;
8438	esac
8439
8440	exp_sym_flag='-bexport'
8441	no_entry_flag='-bnoentry'
8442      fi
8443
8444      # When large executables or shared objects are built, AIX ld can
8445      # have problems creating the table of contents.  If linking a library
8446      # or program results in "error TOC overflow" add -mminimal-toc to
8447      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8448      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8449
8450      archive_cmds=''
8451      hardcode_direct=yes
8452      hardcode_direct_absolute=yes
8453      hardcode_libdir_separator=':'
8454      link_all_deplibs=yes
8455      file_list_spec='${wl}-f,'
8456
8457      if test "$GCC" = yes; then
8458	case $host_os in aix4.[012]|aix4.[012].*)
8459	# We only want to do this on AIX 4.2 and lower, the check
8460	# below for broken collect2 doesn't work under 4.3+
8461	  collect2name=`${CC} -print-prog-name=collect2`
8462	  if test -f "$collect2name" &&
8463	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8464	  then
8465	  # We have reworked collect2
8466	  :
8467	  else
8468	  # We have old collect2
8469	  hardcode_direct=unsupported
8470	  # It fails to find uninstalled libraries when the uninstalled
8471	  # path is not listed in the libpath.  Setting hardcode_minus_L
8472	  # to unsupported forces relinking
8473	  hardcode_minus_L=yes
8474	  hardcode_libdir_flag_spec='-L$libdir'
8475	  hardcode_libdir_separator=
8476	  fi
8477	  ;;
8478	esac
8479	shared_flag='-shared'
8480	if test "$aix_use_runtimelinking" = yes; then
8481	  shared_flag="$shared_flag "'${wl}-G'
8482	fi
8483      else
8484	# not using gcc
8485	if test "$host_cpu" = ia64; then
8486	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8487	# chokes on -Wl,-G. The following line is correct:
8488	  shared_flag='-G'
8489	else
8490	  if test "$aix_use_runtimelinking" = yes; then
8491	    shared_flag='${wl}-G'
8492	  else
8493	    shared_flag='${wl}-bM:SRE'
8494	  fi
8495	fi
8496      fi
8497
8498      export_dynamic_flag_spec='${wl}-bexpall'
8499      # It seems that -bexpall does not export symbols beginning with
8500      # underscore (_), so it is better to generate a list of symbols to export.
8501      always_export_symbols=yes
8502      if test "$aix_use_runtimelinking" = yes; then
8503	# Warning - without using the other runtime loading flags (-brtl),
8504	# -berok will link without error, but may produce a broken library.
8505	allow_undefined_flag='-berok'
8506        # Determine the default libpath from the value encoded in an
8507        # empty executable.
8508        if test "${lt_cv_aix_libpath+set}" = set; then
8509  aix_libpath=$lt_cv_aix_libpath
8510else
8511  if ${lt_cv_aix_libpath_+:} false; then :
8512  $as_echo_n "(cached) " >&6
8513else
8514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h.  */
8516
8517int
8518main ()
8519{
8520
8521  ;
8522  return 0;
8523}
8524_ACEOF
8525if ac_fn_c_try_link "$LINENO"; then :
8526
8527  lt_aix_libpath_sed='
8528      /Import File Strings/,/^$/ {
8529	  /^0/ {
8530	      s/^0  *\([^ ]*\) *$/\1/
8531	      p
8532	  }
8533      }'
8534  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8535  # Check for a 64-bit object if we didn't find anything.
8536  if test -z "$lt_cv_aix_libpath_"; then
8537    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8538  fi
8539fi
8540rm -f core conftest.err conftest.$ac_objext \
8541    conftest$ac_exeext conftest.$ac_ext
8542  if test -z "$lt_cv_aix_libpath_"; then
8543    lt_cv_aix_libpath_="/usr/lib:/lib"
8544  fi
8545
8546fi
8547
8548  aix_libpath=$lt_cv_aix_libpath_
8549fi
8550
8551        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8552        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"
8553      else
8554	if test "$host_cpu" = ia64; then
8555	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8556	  allow_undefined_flag="-z nodefs"
8557	  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"
8558	else
8559	 # Determine the default libpath from the value encoded in an
8560	 # empty executable.
8561	 if test "${lt_cv_aix_libpath+set}" = set; then
8562  aix_libpath=$lt_cv_aix_libpath
8563else
8564  if ${lt_cv_aix_libpath_+:} false; then :
8565  $as_echo_n "(cached) " >&6
8566else
8567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568/* end confdefs.h.  */
8569
8570int
8571main ()
8572{
8573
8574  ;
8575  return 0;
8576}
8577_ACEOF
8578if ac_fn_c_try_link "$LINENO"; then :
8579
8580  lt_aix_libpath_sed='
8581      /Import File Strings/,/^$/ {
8582	  /^0/ {
8583	      s/^0  *\([^ ]*\) *$/\1/
8584	      p
8585	  }
8586      }'
8587  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8588  # Check for a 64-bit object if we didn't find anything.
8589  if test -z "$lt_cv_aix_libpath_"; then
8590    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8591  fi
8592fi
8593rm -f core conftest.err conftest.$ac_objext \
8594    conftest$ac_exeext conftest.$ac_ext
8595  if test -z "$lt_cv_aix_libpath_"; then
8596    lt_cv_aix_libpath_="/usr/lib:/lib"
8597  fi
8598
8599fi
8600
8601  aix_libpath=$lt_cv_aix_libpath_
8602fi
8603
8604	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8605	  # Warning - without using the other run time loading flags,
8606	  # -berok will link without error, but may produce a broken library.
8607	  no_undefined_flag=' ${wl}-bernotok'
8608	  allow_undefined_flag=' ${wl}-berok'
8609	  if test "$with_gnu_ld" = yes; then
8610	    # We only use this code for GNU lds that support --whole-archive.
8611	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8612	  else
8613	    # Exported symbols can be pulled into shared objects from archives
8614	    whole_archive_flag_spec='$convenience'
8615	  fi
8616	  archive_cmds_need_lc=yes
8617	  # This is similar to how AIX traditionally builds its shared libraries.
8618	  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'
8619	fi
8620      fi
8621      ;;
8622
8623    amigaos*)
8624      case $host_cpu in
8625      powerpc)
8626            # see comment about AmigaOS4 .so support
8627            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8628            archive_expsym_cmds=''
8629        ;;
8630      m68k)
8631            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)'
8632            hardcode_libdir_flag_spec='-L$libdir'
8633            hardcode_minus_L=yes
8634        ;;
8635      esac
8636      ;;
8637
8638    bsdi[45]*)
8639      export_dynamic_flag_spec=-rdynamic
8640      ;;
8641
8642    cygwin* | mingw* | pw32* | cegcc*)
8643      # When not using gcc, we currently assume that we are using
8644      # Microsoft Visual C++.
8645      # hardcode_libdir_flag_spec is actually meaningless, as there is
8646      # no search path for DLLs.
8647      case $cc_basename in
8648      cl*)
8649	# Native MSVC
8650	hardcode_libdir_flag_spec=' '
8651	allow_undefined_flag=unsupported
8652	always_export_symbols=yes
8653	file_list_spec='@'
8654	# Tell ltmain to make .lib files, not .a files.
8655	libext=lib
8656	# Tell ltmain to make .dll files, not .so files.
8657	shrext_cmds=".dll"
8658	# FIXME: Setting linknames here is a bad hack.
8659	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8660	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8661	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8662	  else
8663	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8664	  fi~
8665	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8666	  linknames='
8667	# The linker will not automatically build a static lib if we build a DLL.
8668	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8669	enable_shared_with_static_runtimes=yes
8670	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8671	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8672	# Don't use ranlib
8673	old_postinstall_cmds='chmod 644 $oldlib'
8674	postlink_cmds='lt_outputfile="@OUTPUT@"~
8675	  lt_tool_outputfile="@TOOL_OUTPUT@"~
8676	  case $lt_outputfile in
8677	    *.exe|*.EXE) ;;
8678	    *)
8679	      lt_outputfile="$lt_outputfile.exe"
8680	      lt_tool_outputfile="$lt_tool_outputfile.exe"
8681	      ;;
8682	  esac~
8683	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8684	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8685	    $RM "$lt_outputfile.manifest";
8686	  fi'
8687	;;
8688      *)
8689	# Assume MSVC wrapper
8690	hardcode_libdir_flag_spec=' '
8691	allow_undefined_flag=unsupported
8692	# Tell ltmain to make .lib files, not .a files.
8693	libext=lib
8694	# Tell ltmain to make .dll files, not .so files.
8695	shrext_cmds=".dll"
8696	# FIXME: Setting linknames here is a bad hack.
8697	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8698	# The linker will automatically build a .lib file if we build a DLL.
8699	old_archive_from_new_cmds='true'
8700	# FIXME: Should let the user specify the lib program.
8701	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8702	enable_shared_with_static_runtimes=yes
8703	;;
8704      esac
8705      ;;
8706
8707    darwin* | rhapsody*)
8708
8709
8710  archive_cmds_need_lc=no
8711  hardcode_direct=no
8712  hardcode_automatic=yes
8713  hardcode_shlibpath_var=unsupported
8714  if test "$lt_cv_ld_force_load" = "yes"; then
8715    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\"`'
8716
8717  else
8718    whole_archive_flag_spec=''
8719  fi
8720  link_all_deplibs=yes
8721  allow_undefined_flag="$_lt_dar_allow_undefined"
8722  case $cc_basename in
8723     ifort*) _lt_dar_can_shared=yes ;;
8724     *) _lt_dar_can_shared=$GCC ;;
8725  esac
8726  if test "$_lt_dar_can_shared" = "yes"; then
8727    output_verbose_link_cmd=func_echo_all
8728    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8729    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8730    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}"
8731    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}"
8732
8733  else
8734  ld_shlibs=no
8735  fi
8736
8737      ;;
8738
8739    dgux*)
8740      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8741      hardcode_libdir_flag_spec='-L$libdir'
8742      hardcode_shlibpath_var=no
8743      ;;
8744
8745    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8746    # support.  Future versions do this automatically, but an explicit c++rt0.o
8747    # does not break anything, and helps significantly (at the cost of a little
8748    # extra space).
8749    freebsd2.2*)
8750      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8751      hardcode_libdir_flag_spec='-R$libdir'
8752      hardcode_direct=yes
8753      hardcode_shlibpath_var=no
8754      ;;
8755
8756    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8757    freebsd2.*)
8758      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8759      hardcode_direct=yes
8760      hardcode_minus_L=yes
8761      hardcode_shlibpath_var=no
8762      ;;
8763
8764    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8765    freebsd* | dragonfly*)
8766      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8767      hardcode_libdir_flag_spec='-R$libdir'
8768      hardcode_direct=yes
8769      hardcode_shlibpath_var=no
8770      ;;
8771
8772    hpux9*)
8773      if test "$GCC" = yes; then
8774	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'
8775      else
8776	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'
8777      fi
8778      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8779      hardcode_libdir_separator=:
8780      hardcode_direct=yes
8781
8782      # hardcode_minus_L: Not really in the search PATH,
8783      # but as the default location of the library.
8784      hardcode_minus_L=yes
8785      export_dynamic_flag_spec='${wl}-E'
8786      ;;
8787
8788    hpux10*)
8789      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8790	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8791      else
8792	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8793      fi
8794      if test "$with_gnu_ld" = no; then
8795	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8796	hardcode_libdir_separator=:
8797	hardcode_direct=yes
8798	hardcode_direct_absolute=yes
8799	export_dynamic_flag_spec='${wl}-E'
8800	# hardcode_minus_L: Not really in the search PATH,
8801	# but as the default location of the library.
8802	hardcode_minus_L=yes
8803      fi
8804      ;;
8805
8806    hpux11*)
8807      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8808	case $host_cpu in
8809	hppa*64*)
8810	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8811	  ;;
8812	ia64*)
8813	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8814	  ;;
8815	*)
8816	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8817	  ;;
8818	esac
8819      else
8820	case $host_cpu in
8821	hppa*64*)
8822	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8823	  ;;
8824	ia64*)
8825	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8826	  ;;
8827	*)
8828
8829	  # Older versions of the 11.00 compiler do not understand -b yet
8830	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8831	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8832$as_echo_n "checking if $CC understands -b... " >&6; }
8833if ${lt_cv_prog_compiler__b+:} false; then :
8834  $as_echo_n "(cached) " >&6
8835else
8836  lt_cv_prog_compiler__b=no
8837   save_LDFLAGS="$LDFLAGS"
8838   LDFLAGS="$LDFLAGS -b"
8839   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8840   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8841     # The linker can only warn and ignore the option if not recognized
8842     # So say no if there are warnings
8843     if test -s conftest.err; then
8844       # Append any errors to the config.log.
8845       cat conftest.err 1>&5
8846       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8847       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8848       if diff conftest.exp conftest.er2 >/dev/null; then
8849         lt_cv_prog_compiler__b=yes
8850       fi
8851     else
8852       lt_cv_prog_compiler__b=yes
8853     fi
8854   fi
8855   $RM -r conftest*
8856   LDFLAGS="$save_LDFLAGS"
8857
8858fi
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8860$as_echo "$lt_cv_prog_compiler__b" >&6; }
8861
8862if test x"$lt_cv_prog_compiler__b" = xyes; then
8863    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8864else
8865    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8866fi
8867
8868	  ;;
8869	esac
8870      fi
8871      if test "$with_gnu_ld" = no; then
8872	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8873	hardcode_libdir_separator=:
8874
8875	case $host_cpu in
8876	hppa*64*|ia64*)
8877	  hardcode_direct=no
8878	  hardcode_shlibpath_var=no
8879	  ;;
8880	*)
8881	  hardcode_direct=yes
8882	  hardcode_direct_absolute=yes
8883	  export_dynamic_flag_spec='${wl}-E'
8884
8885	  # hardcode_minus_L: Not really in the search PATH,
8886	  # but as the default location of the library.
8887	  hardcode_minus_L=yes
8888	  ;;
8889	esac
8890      fi
8891      ;;
8892
8893    irix5* | irix6* | nonstopux*)
8894      if test "$GCC" = yes; then
8895	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'
8896	# Try to use the -exported_symbol ld option, if it does not
8897	# work, assume that -exports_file does not work either and
8898	# implicitly export all symbols.
8899	# This should be the same for all languages, so no per-tag cache variable.
8900	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8901$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8902if ${lt_cv_irix_exported_symbol+:} false; then :
8903  $as_echo_n "(cached) " >&6
8904else
8905  save_LDFLAGS="$LDFLAGS"
8906	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8907	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908/* end confdefs.h.  */
8909int foo (void) { return 0; }
8910_ACEOF
8911if ac_fn_c_try_link "$LINENO"; then :
8912  lt_cv_irix_exported_symbol=yes
8913else
8914  lt_cv_irix_exported_symbol=no
8915fi
8916rm -f core conftest.err conftest.$ac_objext \
8917    conftest$ac_exeext conftest.$ac_ext
8918           LDFLAGS="$save_LDFLAGS"
8919fi
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8921$as_echo "$lt_cv_irix_exported_symbol" >&6; }
8922	if test "$lt_cv_irix_exported_symbol" = yes; then
8923          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'
8924	fi
8925      else
8926	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'
8927	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'
8928      fi
8929      archive_cmds_need_lc='no'
8930      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8931      hardcode_libdir_separator=:
8932      inherit_rpath=yes
8933      link_all_deplibs=yes
8934      ;;
8935
8936    netbsd*)
8937      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8938	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8939      else
8940	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8941      fi
8942      hardcode_libdir_flag_spec='-R$libdir'
8943      hardcode_direct=yes
8944      hardcode_shlibpath_var=no
8945      ;;
8946
8947    newsos6)
8948      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949      hardcode_direct=yes
8950      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8951      hardcode_libdir_separator=:
8952      hardcode_shlibpath_var=no
8953      ;;
8954
8955    *nto* | *qnx*)
8956      ;;
8957
8958    openbsd*)
8959      if test -f /usr/libexec/ld.so; then
8960	hardcode_direct=yes
8961	hardcode_shlibpath_var=no
8962	hardcode_direct_absolute=yes
8963	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8964	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8965	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8966	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8967	  export_dynamic_flag_spec='${wl}-E'
8968	else
8969	  case $host_os in
8970	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8971	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8972	     hardcode_libdir_flag_spec='-R$libdir'
8973	     ;;
8974	   *)
8975	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8976	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8977	     ;;
8978	  esac
8979	fi
8980      else
8981	ld_shlibs=no
8982      fi
8983      ;;
8984
8985    os2*)
8986      hardcode_libdir_flag_spec='-L$libdir'
8987      hardcode_minus_L=yes
8988      allow_undefined_flag=unsupported
8989      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'
8990      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8991      ;;
8992
8993    osf3*)
8994      if test "$GCC" = yes; then
8995	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8996	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'
8997      else
8998	allow_undefined_flag=' -expect_unresolved \*'
8999	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'
9000      fi
9001      archive_cmds_need_lc='no'
9002      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9003      hardcode_libdir_separator=:
9004      ;;
9005
9006    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9007      if test "$GCC" = yes; then
9008	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9009	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'
9010	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9011      else
9012	allow_undefined_flag=' -expect_unresolved \*'
9013	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'
9014	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~
9015	$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'
9016
9017	# Both c and cxx compiler support -rpath directly
9018	hardcode_libdir_flag_spec='-rpath $libdir'
9019      fi
9020      archive_cmds_need_lc='no'
9021      hardcode_libdir_separator=:
9022      ;;
9023
9024    solaris*)
9025      no_undefined_flag=' -z defs'
9026      if test "$GCC" = yes; then
9027	wlarc='${wl}'
9028	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9029	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9030	  $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'
9031      else
9032	case `$CC -V 2>&1` in
9033	*"Compilers 5.0"*)
9034	  wlarc=''
9035	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9037	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9038	  ;;
9039	*)
9040	  wlarc='${wl}'
9041	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9042	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9043	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9044	  ;;
9045	esac
9046      fi
9047      hardcode_libdir_flag_spec='-R$libdir'
9048      hardcode_shlibpath_var=no
9049      case $host_os in
9050      solaris2.[0-5] | solaris2.[0-5].*) ;;
9051      *)
9052	# The compiler driver will combine and reorder linker options,
9053	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9054	# but is careful enough not to reorder.
9055	# Supported since Solaris 2.6 (maybe 2.5.1?)
9056	if test "$GCC" = yes; then
9057	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9058	else
9059	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9060	fi
9061	;;
9062      esac
9063      link_all_deplibs=yes
9064      ;;
9065
9066    sunos4*)
9067      if test "x$host_vendor" = xsequent; then
9068	# Use $CC to link under sequent, because it throws in some extra .o
9069	# files that make .init and .fini sections work.
9070	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9071      else
9072	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9073      fi
9074      hardcode_libdir_flag_spec='-L$libdir'
9075      hardcode_direct=yes
9076      hardcode_minus_L=yes
9077      hardcode_shlibpath_var=no
9078      ;;
9079
9080    sysv4)
9081      case $host_vendor in
9082	sni)
9083	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084	  hardcode_direct=yes # is this really true???
9085	;;
9086	siemens)
9087	  ## LD is ld it makes a PLAMLIB
9088	  ## CC just makes a GrossModule.
9089	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9090	  reload_cmds='$CC -r -o $output$reload_objs'
9091	  hardcode_direct=no
9092        ;;
9093	motorola)
9094	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9095	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9096	;;
9097      esac
9098      runpath_var='LD_RUN_PATH'
9099      hardcode_shlibpath_var=no
9100      ;;
9101
9102    sysv4.3*)
9103      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104      hardcode_shlibpath_var=no
9105      export_dynamic_flag_spec='-Bexport'
9106      ;;
9107
9108    sysv4*MP*)
9109      if test -d /usr/nec; then
9110	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111	hardcode_shlibpath_var=no
9112	runpath_var=LD_RUN_PATH
9113	hardcode_runpath_var=yes
9114	ld_shlibs=yes
9115      fi
9116      ;;
9117
9118    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9119      no_undefined_flag='${wl}-z,text'
9120      archive_cmds_need_lc=no
9121      hardcode_shlibpath_var=no
9122      runpath_var='LD_RUN_PATH'
9123
9124      if test "$GCC" = yes; then
9125	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9126	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9127      else
9128	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9129	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9130      fi
9131      ;;
9132
9133    sysv5* | sco3.2v5* | sco5v6*)
9134      # Note: We can NOT use -z defs as we might desire, because we do not
9135      # link with -lc, and that would cause any symbols used from libc to
9136      # always be unresolved, which means just about no library would
9137      # ever link correctly.  If we're not using GNU ld we use -z text
9138      # though, which does catch some bad symbols but isn't as heavy-handed
9139      # as -z defs.
9140      no_undefined_flag='${wl}-z,text'
9141      allow_undefined_flag='${wl}-z,nodefs'
9142      archive_cmds_need_lc=no
9143      hardcode_shlibpath_var=no
9144      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9145      hardcode_libdir_separator=':'
9146      link_all_deplibs=yes
9147      export_dynamic_flag_spec='${wl}-Bexport'
9148      runpath_var='LD_RUN_PATH'
9149
9150      if test "$GCC" = yes; then
9151	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9153      else
9154	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9155	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9156      fi
9157      ;;
9158
9159    uts4*)
9160      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9161      hardcode_libdir_flag_spec='-L$libdir'
9162      hardcode_shlibpath_var=no
9163      ;;
9164
9165    *)
9166      ld_shlibs=no
9167      ;;
9168    esac
9169
9170    if test x$host_vendor = xsni; then
9171      case $host in
9172      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9173	export_dynamic_flag_spec='${wl}-Blargedynsym'
9174	;;
9175      esac
9176    fi
9177  fi
9178
9179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9180$as_echo "$ld_shlibs" >&6; }
9181test "$ld_shlibs" = no && can_build_shared=no
9182
9183with_gnu_ld=$with_gnu_ld
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199#
9200# Do we need to explicitly link libc?
9201#
9202case "x$archive_cmds_need_lc" in
9203x|xyes)
9204  # Assume -lc should be added
9205  archive_cmds_need_lc=yes
9206
9207  if test "$enable_shared" = yes && test "$GCC" = yes; then
9208    case $archive_cmds in
9209    *'~'*)
9210      # FIXME: we may have to deal with multi-command sequences.
9211      ;;
9212    '$CC '*)
9213      # Test whether the compiler implicitly links with -lc since on some
9214      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9215      # to ld, don't add -lc before -lgcc.
9216      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9217$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9218if ${lt_cv_archive_cmds_need_lc+:} false; then :
9219  $as_echo_n "(cached) " >&6
9220else
9221  $RM conftest*
9222	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9223
9224	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9225  (eval $ac_compile) 2>&5
9226  ac_status=$?
9227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9228  test $ac_status = 0; } 2>conftest.err; then
9229	  soname=conftest
9230	  lib=conftest
9231	  libobjs=conftest.$ac_objext
9232	  deplibs=
9233	  wl=$lt_prog_compiler_wl
9234	  pic_flag=$lt_prog_compiler_pic
9235	  compiler_flags=-v
9236	  linker_flags=-v
9237	  verstring=
9238	  output_objdir=.
9239	  libname=conftest
9240	  lt_save_allow_undefined_flag=$allow_undefined_flag
9241	  allow_undefined_flag=
9242	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9243  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9244  ac_status=$?
9245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9246  test $ac_status = 0; }
9247	  then
9248	    lt_cv_archive_cmds_need_lc=no
9249	  else
9250	    lt_cv_archive_cmds_need_lc=yes
9251	  fi
9252	  allow_undefined_flag=$lt_save_allow_undefined_flag
9253	else
9254	  cat conftest.err 1>&5
9255	fi
9256	$RM conftest*
9257
9258fi
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9260$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9261      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9262      ;;
9263    esac
9264  fi
9265  ;;
9266esac
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9420$as_echo_n "checking dynamic linker characteristics... " >&6; }
9421
9422if test "$GCC" = yes; then
9423  case $host_os in
9424    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9425    *) lt_awk_arg="/^libraries:/" ;;
9426  esac
9427  case $host_os in
9428    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9429    *) lt_sed_strip_eq="s,=/,/,g" ;;
9430  esac
9431  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9432  case $lt_search_path_spec in
9433  *\;*)
9434    # if the path contains ";" then we assume it to be the separator
9435    # otherwise default to the standard path separator (i.e. ":") - it is
9436    # assumed that no part of a normal pathname contains ";" but that should
9437    # okay in the real world where ";" in dirpaths is itself problematic.
9438    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9439    ;;
9440  *)
9441    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9442    ;;
9443  esac
9444  # Ok, now we have the path, separated by spaces, we can step through it
9445  # and add multilib dir if necessary.
9446  lt_tmp_lt_search_path_spec=
9447  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9448  for lt_sys_path in $lt_search_path_spec; do
9449    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9450      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9451    else
9452      test -d "$lt_sys_path" && \
9453	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9454    fi
9455  done
9456  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9457BEGIN {RS=" "; FS="/|\n";} {
9458  lt_foo="";
9459  lt_count=0;
9460  for (lt_i = NF; lt_i > 0; lt_i--) {
9461    if ($lt_i != "" && $lt_i != ".") {
9462      if ($lt_i == "..") {
9463        lt_count++;
9464      } else {
9465        if (lt_count == 0) {
9466          lt_foo="/" $lt_i lt_foo;
9467        } else {
9468          lt_count--;
9469        }
9470      }
9471    }
9472  }
9473  if (lt_foo != "") { lt_freq[lt_foo]++; }
9474  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9475}'`
9476  # AWK program above erroneously prepends '/' to C:/dos/paths
9477  # for these hosts.
9478  case $host_os in
9479    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9480      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9481  esac
9482  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9483else
9484  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9485fi
9486library_names_spec=
9487libname_spec='lib$name'
9488soname_spec=
9489shrext_cmds=".so"
9490postinstall_cmds=
9491postuninstall_cmds=
9492finish_cmds=
9493finish_eval=
9494shlibpath_var=
9495shlibpath_overrides_runpath=unknown
9496version_type=none
9497dynamic_linker="$host_os ld.so"
9498sys_lib_dlsearch_path_spec="/lib /usr/lib"
9499need_lib_prefix=unknown
9500hardcode_into_libs=no
9501
9502# when you set need_version to no, make sure it does not cause -set_version
9503# flags to be left without arguments
9504need_version=unknown
9505
9506case $host_os in
9507aix3*)
9508  version_type=linux # correct to gnu/linux during the next big refactor
9509  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9510  shlibpath_var=LIBPATH
9511
9512  # AIX 3 has no versioning support, so we append a major version to the name.
9513  soname_spec='${libname}${release}${shared_ext}$major'
9514  ;;
9515
9516aix[4-9]*)
9517  version_type=linux # correct to gnu/linux during the next big refactor
9518  need_lib_prefix=no
9519  need_version=no
9520  hardcode_into_libs=yes
9521  if test "$host_cpu" = ia64; then
9522    # AIX 5 supports IA64
9523    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9524    shlibpath_var=LD_LIBRARY_PATH
9525  else
9526    # With GCC up to 2.95.x, collect2 would create an import file
9527    # for dependence libraries.  The import file would start with
9528    # the line `#! .'.  This would cause the generated library to
9529    # depend on `.', always an invalid library.  This was fixed in
9530    # development snapshots of GCC prior to 3.0.
9531    case $host_os in
9532      aix4 | aix4.[01] | aix4.[01].*)
9533      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9534	   echo ' yes '
9535	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9536	:
9537      else
9538	can_build_shared=no
9539      fi
9540      ;;
9541    esac
9542    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9543    # soname into executable. Probably we can add versioning support to
9544    # collect2, so additional links can be useful in future.
9545    if test "$aix_use_runtimelinking" = yes; then
9546      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9547      # instead of lib<name>.a to let people know that these are not
9548      # typical AIX shared libraries.
9549      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550    else
9551      # We preserve .a as extension for shared libraries through AIX4.2
9552      # and later when we are not doing run time linking.
9553      library_names_spec='${libname}${release}.a $libname.a'
9554      soname_spec='${libname}${release}${shared_ext}$major'
9555    fi
9556    shlibpath_var=LIBPATH
9557  fi
9558  ;;
9559
9560amigaos*)
9561  case $host_cpu in
9562  powerpc)
9563    # Since July 2007 AmigaOS4 officially supports .so libraries.
9564    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9565    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566    ;;
9567  m68k)
9568    library_names_spec='$libname.ixlibrary $libname.a'
9569    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9570    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'
9571    ;;
9572  esac
9573  ;;
9574
9575beos*)
9576  library_names_spec='${libname}${shared_ext}'
9577  dynamic_linker="$host_os ld.so"
9578  shlibpath_var=LIBRARY_PATH
9579  ;;
9580
9581bsdi[45]*)
9582  version_type=linux # correct to gnu/linux during the next big refactor
9583  need_version=no
9584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585  soname_spec='${libname}${release}${shared_ext}$major'
9586  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9587  shlibpath_var=LD_LIBRARY_PATH
9588  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9589  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9590  # the default ld.so.conf also contains /usr/contrib/lib and
9591  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9592  # libtool to hard-code these into programs
9593  ;;
9594
9595cygwin* | mingw* | pw32* | cegcc*)
9596  version_type=windows
9597  shrext_cmds=".dll"
9598  need_version=no
9599  need_lib_prefix=no
9600
9601  case $GCC,$cc_basename in
9602  yes,*)
9603    # gcc
9604    library_names_spec='$libname.dll.a'
9605    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9606    postinstall_cmds='base_file=`basename \${file}`~
9607      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9608      dldir=$destdir/`dirname \$dlpath`~
9609      test -d \$dldir || mkdir -p \$dldir~
9610      $install_prog $dir/$dlname \$dldir/$dlname~
9611      chmod a+x \$dldir/$dlname~
9612      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9613        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9614      fi'
9615    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9616      dlpath=$dir/\$dldll~
9617       $RM \$dlpath'
9618    shlibpath_overrides_runpath=yes
9619
9620    case $host_os in
9621    cygwin*)
9622      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9623      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9624
9625      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9626      ;;
9627    mingw* | cegcc*)
9628      # MinGW DLLs use traditional 'lib' prefix
9629      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9630      ;;
9631    pw32*)
9632      # pw32 DLLs use 'pw' prefix rather than 'lib'
9633      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9634      ;;
9635    esac
9636    dynamic_linker='Win32 ld.exe'
9637    ;;
9638
9639  *,cl*)
9640    # Native MSVC
9641    libname_spec='$name'
9642    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9643    library_names_spec='${libname}.dll.lib'
9644
9645    case $build_os in
9646    mingw*)
9647      sys_lib_search_path_spec=
9648      lt_save_ifs=$IFS
9649      IFS=';'
9650      for lt_path in $LIB
9651      do
9652        IFS=$lt_save_ifs
9653        # Let DOS variable expansion print the short 8.3 style file name.
9654        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9655        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9656      done
9657      IFS=$lt_save_ifs
9658      # Convert to MSYS style.
9659      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9660      ;;
9661    cygwin*)
9662      # Convert to unix form, then to dos form, then back to unix form
9663      # but this time dos style (no spaces!) so that the unix form looks
9664      # like /cygdrive/c/PROGRA~1:/cygdr...
9665      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9666      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9667      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9668      ;;
9669    *)
9670      sys_lib_search_path_spec="$LIB"
9671      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9672        # It is most probably a Windows format PATH.
9673        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9674      else
9675        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9676      fi
9677      # FIXME: find the short name or the path components, as spaces are
9678      # common. (e.g. "Program Files" -> "PROGRA~1")
9679      ;;
9680    esac
9681
9682    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9683    postinstall_cmds='base_file=`basename \${file}`~
9684      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9685      dldir=$destdir/`dirname \$dlpath`~
9686      test -d \$dldir || mkdir -p \$dldir~
9687      $install_prog $dir/$dlname \$dldir/$dlname'
9688    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9689      dlpath=$dir/\$dldll~
9690       $RM \$dlpath'
9691    shlibpath_overrides_runpath=yes
9692    dynamic_linker='Win32 link.exe'
9693    ;;
9694
9695  *)
9696    # Assume MSVC wrapper
9697    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9698    dynamic_linker='Win32 ld.exe'
9699    ;;
9700  esac
9701  # FIXME: first we should search . and the directory the executable is in
9702  shlibpath_var=PATH
9703  ;;
9704
9705darwin* | rhapsody*)
9706  dynamic_linker="$host_os dyld"
9707  version_type=darwin
9708  need_lib_prefix=no
9709  need_version=no
9710  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9711  soname_spec='${libname}${release}${major}$shared_ext'
9712  shlibpath_overrides_runpath=yes
9713  shlibpath_var=DYLD_LIBRARY_PATH
9714  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9715
9716  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9717  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9718  ;;
9719
9720dgux*)
9721  version_type=linux # correct to gnu/linux during the next big refactor
9722  need_lib_prefix=no
9723  need_version=no
9724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9725  soname_spec='${libname}${release}${shared_ext}$major'
9726  shlibpath_var=LD_LIBRARY_PATH
9727  ;;
9728
9729freebsd* | dragonfly*)
9730  # DragonFly does not have aout.  When/if they implement a new
9731  # versioning mechanism, adjust this.
9732  if test -x /usr/bin/objformat; then
9733    objformat=`/usr/bin/objformat`
9734  else
9735    case $host_os in
9736    freebsd[23].*) objformat=aout ;;
9737    *) objformat=elf ;;
9738    esac
9739  fi
9740  version_type=freebsd-$objformat
9741  case $version_type in
9742    freebsd-elf*)
9743      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9744      need_version=no
9745      need_lib_prefix=no
9746      ;;
9747    freebsd-*)
9748      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9749      need_version=yes
9750      ;;
9751  esac
9752  shlibpath_var=LD_LIBRARY_PATH
9753  case $host_os in
9754  freebsd2.*)
9755    shlibpath_overrides_runpath=yes
9756    ;;
9757  freebsd3.[01]* | freebsdelf3.[01]*)
9758    shlibpath_overrides_runpath=yes
9759    hardcode_into_libs=yes
9760    ;;
9761  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9762  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9763    shlibpath_overrides_runpath=no
9764    hardcode_into_libs=yes
9765    ;;
9766  *) # from 4.6 on, and DragonFly
9767    shlibpath_overrides_runpath=yes
9768    hardcode_into_libs=yes
9769    ;;
9770  esac
9771  ;;
9772
9773gnu*)
9774  version_type=linux # correct to gnu/linux during the next big refactor
9775  need_lib_prefix=no
9776  need_version=no
9777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9778  soname_spec='${libname}${release}${shared_ext}$major'
9779  shlibpath_var=LD_LIBRARY_PATH
9780  shlibpath_overrides_runpath=no
9781  hardcode_into_libs=yes
9782  ;;
9783
9784haiku*)
9785  version_type=linux # correct to gnu/linux during the next big refactor
9786  need_lib_prefix=no
9787  need_version=no
9788  dynamic_linker="$host_os runtime_loader"
9789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9790  soname_spec='${libname}${release}${shared_ext}$major'
9791  shlibpath_var=LIBRARY_PATH
9792  shlibpath_overrides_runpath=yes
9793  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9794  hardcode_into_libs=yes
9795  ;;
9796
9797hpux9* | hpux10* | hpux11*)
9798  # Give a soname corresponding to the major version so that dld.sl refuses to
9799  # link against other versions.
9800  version_type=sunos
9801  need_lib_prefix=no
9802  need_version=no
9803  case $host_cpu in
9804  ia64*)
9805    shrext_cmds='.so'
9806    hardcode_into_libs=yes
9807    dynamic_linker="$host_os dld.so"
9808    shlibpath_var=LD_LIBRARY_PATH
9809    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9810    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811    soname_spec='${libname}${release}${shared_ext}$major'
9812    if test "X$HPUX_IA64_MODE" = X32; then
9813      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9814    else
9815      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9816    fi
9817    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9818    ;;
9819  hppa*64*)
9820    shrext_cmds='.sl'
9821    hardcode_into_libs=yes
9822    dynamic_linker="$host_os dld.sl"
9823    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9824    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9828    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9829    ;;
9830  *)
9831    shrext_cmds='.sl'
9832    dynamic_linker="$host_os dld.sl"
9833    shlibpath_var=SHLIB_PATH
9834    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9835    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9836    soname_spec='${libname}${release}${shared_ext}$major'
9837    ;;
9838  esac
9839  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9840  postinstall_cmds='chmod 555 $lib'
9841  # or fails outright, so override atomically:
9842  install_override_mode=555
9843  ;;
9844
9845interix[3-9]*)
9846  version_type=linux # correct to gnu/linux during the next big refactor
9847  need_lib_prefix=no
9848  need_version=no
9849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9850  soname_spec='${libname}${release}${shared_ext}$major'
9851  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9852  shlibpath_var=LD_LIBRARY_PATH
9853  shlibpath_overrides_runpath=no
9854  hardcode_into_libs=yes
9855  ;;
9856
9857irix5* | irix6* | nonstopux*)
9858  case $host_os in
9859    nonstopux*) version_type=nonstopux ;;
9860    *)
9861	if test "$lt_cv_prog_gnu_ld" = yes; then
9862		version_type=linux # correct to gnu/linux during the next big refactor
9863	else
9864		version_type=irix
9865	fi ;;
9866  esac
9867  need_lib_prefix=no
9868  need_version=no
9869  soname_spec='${libname}${release}${shared_ext}$major'
9870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9871  case $host_os in
9872  irix5* | nonstopux*)
9873    libsuff= shlibsuff=
9874    ;;
9875  *)
9876    case $LD in # libtool.m4 will add one of these switches to LD
9877    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9878      libsuff= shlibsuff= libmagic=32-bit;;
9879    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9880      libsuff=32 shlibsuff=N32 libmagic=N32;;
9881    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9882      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9883    *) libsuff= shlibsuff= libmagic=never-match;;
9884    esac
9885    ;;
9886  esac
9887  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9888  shlibpath_overrides_runpath=no
9889  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9890  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9891  hardcode_into_libs=yes
9892  ;;
9893
9894# No shared lib support for Linux oldld, aout, or coff.
9895linux*oldld* | linux*aout* | linux*coff*)
9896  dynamic_linker=no
9897  ;;
9898
9899# This must be glibc/ELF.
9900linux* | k*bsd*-gnu | kopensolaris*-gnu)
9901  version_type=linux # correct to gnu/linux during the next big refactor
9902  need_lib_prefix=no
9903  need_version=no
9904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905  soname_spec='${libname}${release}${shared_ext}$major'
9906  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9907  shlibpath_var=LD_LIBRARY_PATH
9908  shlibpath_overrides_runpath=no
9909
9910  # Some binutils ld are patched to set DT_RUNPATH
9911  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9912  $as_echo_n "(cached) " >&6
9913else
9914  lt_cv_shlibpath_overrides_runpath=no
9915    save_LDFLAGS=$LDFLAGS
9916    save_libdir=$libdir
9917    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9918	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9919    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920/* end confdefs.h.  */
9921
9922int
9923main ()
9924{
9925
9926  ;
9927  return 0;
9928}
9929_ACEOF
9930if ac_fn_c_try_link "$LINENO"; then :
9931  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9932  lt_cv_shlibpath_overrides_runpath=yes
9933fi
9934fi
9935rm -f core conftest.err conftest.$ac_objext \
9936    conftest$ac_exeext conftest.$ac_ext
9937    LDFLAGS=$save_LDFLAGS
9938    libdir=$save_libdir
9939
9940fi
9941
9942  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9943
9944  # This implies no fast_install, which is unacceptable.
9945  # Some rework will be needed to allow for fast_install
9946  # before this can be enabled.
9947  hardcode_into_libs=yes
9948
9949  # Append ld.so.conf contents to the search path
9950  if test -f /etc/ld.so.conf; then
9951    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' ' '`
9952    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9953  fi
9954
9955  # We used to test for /lib/ld.so.1 and disable shared libraries on
9956  # powerpc, because MkLinux only supported shared libraries with the
9957  # GNU dynamic linker.  Since this was broken with cross compilers,
9958  # most powerpc-linux boxes support dynamic linking these days and
9959  # people can always --disable-shared, the test was removed, and we
9960  # assume the GNU/Linux dynamic linker is in use.
9961  dynamic_linker='GNU/Linux ld.so'
9962  ;;
9963
9964netbsd*)
9965  version_type=sunos
9966  need_lib_prefix=no
9967  need_version=no
9968  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9969    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9970    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9971    dynamic_linker='NetBSD (a.out) ld.so'
9972  else
9973    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9974    soname_spec='${libname}${release}${shared_ext}$major'
9975    dynamic_linker='NetBSD ld.elf_so'
9976  fi
9977  shlibpath_var=LD_LIBRARY_PATH
9978  shlibpath_overrides_runpath=yes
9979  hardcode_into_libs=yes
9980  ;;
9981
9982newsos6)
9983  version_type=linux # correct to gnu/linux during the next big refactor
9984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985  shlibpath_var=LD_LIBRARY_PATH
9986  shlibpath_overrides_runpath=yes
9987  ;;
9988
9989*nto* | *qnx*)
9990  version_type=qnx
9991  need_lib_prefix=no
9992  need_version=no
9993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9994  soname_spec='${libname}${release}${shared_ext}$major'
9995  shlibpath_var=LD_LIBRARY_PATH
9996  shlibpath_overrides_runpath=no
9997  hardcode_into_libs=yes
9998  dynamic_linker='ldqnx.so'
9999  ;;
10000
10001openbsd*)
10002  version_type=sunos
10003  sys_lib_dlsearch_path_spec="/usr/lib"
10004  need_lib_prefix=no
10005  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10006  case $host_os in
10007    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10008    *)				need_version=no  ;;
10009  esac
10010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10011  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10012  shlibpath_var=LD_LIBRARY_PATH
10013  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10014    case $host_os in
10015      openbsd2.[89] | openbsd2.[89].*)
10016	shlibpath_overrides_runpath=no
10017	;;
10018      *)
10019	shlibpath_overrides_runpath=yes
10020	;;
10021      esac
10022  else
10023    shlibpath_overrides_runpath=yes
10024  fi
10025  ;;
10026
10027os2*)
10028  libname_spec='$name'
10029  shrext_cmds=".dll"
10030  need_lib_prefix=no
10031  library_names_spec='$libname${shared_ext} $libname.a'
10032  dynamic_linker='OS/2 ld.exe'
10033  shlibpath_var=LIBPATH
10034  ;;
10035
10036osf3* | osf4* | osf5*)
10037  version_type=osf
10038  need_lib_prefix=no
10039  need_version=no
10040  soname_spec='${libname}${release}${shared_ext}$major'
10041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042  shlibpath_var=LD_LIBRARY_PATH
10043  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10044  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10045  ;;
10046
10047rdos*)
10048  dynamic_linker=no
10049  ;;
10050
10051solaris*)
10052  version_type=linux # correct to gnu/linux during the next big refactor
10053  need_lib_prefix=no
10054  need_version=no
10055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056  soname_spec='${libname}${release}${shared_ext}$major'
10057  shlibpath_var=LD_LIBRARY_PATH
10058  shlibpath_overrides_runpath=yes
10059  hardcode_into_libs=yes
10060  # ldd complains unless libraries are executable
10061  postinstall_cmds='chmod +x $lib'
10062  ;;
10063
10064sunos4*)
10065  version_type=sunos
10066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10067  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10068  shlibpath_var=LD_LIBRARY_PATH
10069  shlibpath_overrides_runpath=yes
10070  if test "$with_gnu_ld" = yes; then
10071    need_lib_prefix=no
10072  fi
10073  need_version=yes
10074  ;;
10075
10076sysv4 | sysv4.3*)
10077  version_type=linux # correct to gnu/linux during the next big refactor
10078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079  soname_spec='${libname}${release}${shared_ext}$major'
10080  shlibpath_var=LD_LIBRARY_PATH
10081  case $host_vendor in
10082    sni)
10083      shlibpath_overrides_runpath=no
10084      need_lib_prefix=no
10085      runpath_var=LD_RUN_PATH
10086      ;;
10087    siemens)
10088      need_lib_prefix=no
10089      ;;
10090    motorola)
10091      need_lib_prefix=no
10092      need_version=no
10093      shlibpath_overrides_runpath=no
10094      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10095      ;;
10096  esac
10097  ;;
10098
10099sysv4*MP*)
10100  if test -d /usr/nec ;then
10101    version_type=linux # correct to gnu/linux during the next big refactor
10102    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10103    soname_spec='$libname${shared_ext}.$major'
10104    shlibpath_var=LD_LIBRARY_PATH
10105  fi
10106  ;;
10107
10108sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10109  version_type=freebsd-elf
10110  need_lib_prefix=no
10111  need_version=no
10112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10113  soname_spec='${libname}${release}${shared_ext}$major'
10114  shlibpath_var=LD_LIBRARY_PATH
10115  shlibpath_overrides_runpath=yes
10116  hardcode_into_libs=yes
10117  if test "$with_gnu_ld" = yes; then
10118    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10119  else
10120    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10121    case $host_os in
10122      sco3.2v5*)
10123        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10124	;;
10125    esac
10126  fi
10127  sys_lib_dlsearch_path_spec='/usr/lib'
10128  ;;
10129
10130tpf*)
10131  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10132  version_type=linux # correct to gnu/linux during the next big refactor
10133  need_lib_prefix=no
10134  need_version=no
10135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136  shlibpath_var=LD_LIBRARY_PATH
10137  shlibpath_overrides_runpath=no
10138  hardcode_into_libs=yes
10139  ;;
10140
10141uts4*)
10142  version_type=linux # correct to gnu/linux during the next big refactor
10143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144  soname_spec='${libname}${release}${shared_ext}$major'
10145  shlibpath_var=LD_LIBRARY_PATH
10146  ;;
10147
10148*)
10149  dynamic_linker=no
10150  ;;
10151esac
10152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10153$as_echo "$dynamic_linker" >&6; }
10154test "$dynamic_linker" = no && can_build_shared=no
10155
10156variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10157if test "$GCC" = yes; then
10158  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10159fi
10160
10161if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10162  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10163fi
10164if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10165  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10166fi
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10260$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10261hardcode_action=
10262if test -n "$hardcode_libdir_flag_spec" ||
10263   test -n "$runpath_var" ||
10264   test "X$hardcode_automatic" = "Xyes" ; then
10265
10266  # We can hardcode non-existent directories.
10267  if test "$hardcode_direct" != no &&
10268     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10269     # have to relink, otherwise we might link with an installed library
10270     # when we should be linking with a yet-to-be-installed one
10271     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10272     test "$hardcode_minus_L" != no; then
10273    # Linking always hardcodes the temporary library directory.
10274    hardcode_action=relink
10275  else
10276    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10277    hardcode_action=immediate
10278  fi
10279else
10280  # We cannot hardcode anything, or else we can only hardcode existing
10281  # directories.
10282  hardcode_action=unsupported
10283fi
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10285$as_echo "$hardcode_action" >&6; }
10286
10287if test "$hardcode_action" = relink ||
10288   test "$inherit_rpath" = yes; then
10289  # Fast installation is not supported
10290  enable_fast_install=no
10291elif test "$shlibpath_overrides_runpath" = yes ||
10292     test "$enable_shared" = no; then
10293  # Fast installation is not necessary
10294  enable_fast_install=needless
10295fi
10296
10297
10298
10299
10300
10301
10302  if test "x$enable_dlopen" != xyes; then
10303  enable_dlopen=unknown
10304  enable_dlopen_self=unknown
10305  enable_dlopen_self_static=unknown
10306else
10307  lt_cv_dlopen=no
10308  lt_cv_dlopen_libs=
10309
10310  case $host_os in
10311  beos*)
10312    lt_cv_dlopen="load_add_on"
10313    lt_cv_dlopen_libs=
10314    lt_cv_dlopen_self=yes
10315    ;;
10316
10317  mingw* | pw32* | cegcc*)
10318    lt_cv_dlopen="LoadLibrary"
10319    lt_cv_dlopen_libs=
10320    ;;
10321
10322  cygwin*)
10323    lt_cv_dlopen="dlopen"
10324    lt_cv_dlopen_libs=
10325    ;;
10326
10327  darwin*)
10328  # if libdl is installed we need to link against it
10329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10330$as_echo_n "checking for dlopen in -ldl... " >&6; }
10331if ${ac_cv_lib_dl_dlopen+:} false; then :
10332  $as_echo_n "(cached) " >&6
10333else
10334  ac_check_lib_save_LIBS=$LIBS
10335LIBS="-ldl  $LIBS"
10336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337/* end confdefs.h.  */
10338
10339/* Override any GCC internal prototype to avoid an error.
10340   Use char because int might match the return type of a GCC
10341   builtin and then its argument prototype would still apply.  */
10342#ifdef __cplusplus
10343extern "C"
10344#endif
10345char dlopen ();
10346int
10347main ()
10348{
10349return dlopen ();
10350  ;
10351  return 0;
10352}
10353_ACEOF
10354if ac_fn_c_try_link "$LINENO"; then :
10355  ac_cv_lib_dl_dlopen=yes
10356else
10357  ac_cv_lib_dl_dlopen=no
10358fi
10359rm -f core conftest.err conftest.$ac_objext \
10360    conftest$ac_exeext conftest.$ac_ext
10361LIBS=$ac_check_lib_save_LIBS
10362fi
10363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10364$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10365if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10366  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10367else
10368
10369    lt_cv_dlopen="dyld"
10370    lt_cv_dlopen_libs=
10371    lt_cv_dlopen_self=yes
10372
10373fi
10374
10375    ;;
10376
10377  *)
10378    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10379if test "x$ac_cv_func_shl_load" = xyes; then :
10380  lt_cv_dlopen="shl_load"
10381else
10382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10383$as_echo_n "checking for shl_load in -ldld... " >&6; }
10384if ${ac_cv_lib_dld_shl_load+:} false; then :
10385  $as_echo_n "(cached) " >&6
10386else
10387  ac_check_lib_save_LIBS=$LIBS
10388LIBS="-ldld  $LIBS"
10389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390/* end confdefs.h.  */
10391
10392/* Override any GCC internal prototype to avoid an error.
10393   Use char because int might match the return type of a GCC
10394   builtin and then its argument prototype would still apply.  */
10395#ifdef __cplusplus
10396extern "C"
10397#endif
10398char shl_load ();
10399int
10400main ()
10401{
10402return shl_load ();
10403  ;
10404  return 0;
10405}
10406_ACEOF
10407if ac_fn_c_try_link "$LINENO"; then :
10408  ac_cv_lib_dld_shl_load=yes
10409else
10410  ac_cv_lib_dld_shl_load=no
10411fi
10412rm -f core conftest.err conftest.$ac_objext \
10413    conftest$ac_exeext conftest.$ac_ext
10414LIBS=$ac_check_lib_save_LIBS
10415fi
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10417$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10418if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10419  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10420else
10421  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10422if test "x$ac_cv_func_dlopen" = xyes; then :
10423  lt_cv_dlopen="dlopen"
10424else
10425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10426$as_echo_n "checking for dlopen in -ldl... " >&6; }
10427if ${ac_cv_lib_dl_dlopen+:} false; then :
10428  $as_echo_n "(cached) " >&6
10429else
10430  ac_check_lib_save_LIBS=$LIBS
10431LIBS="-ldl  $LIBS"
10432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433/* end confdefs.h.  */
10434
10435/* Override any GCC internal prototype to avoid an error.
10436   Use char because int might match the return type of a GCC
10437   builtin and then its argument prototype would still apply.  */
10438#ifdef __cplusplus
10439extern "C"
10440#endif
10441char dlopen ();
10442int
10443main ()
10444{
10445return dlopen ();
10446  ;
10447  return 0;
10448}
10449_ACEOF
10450if ac_fn_c_try_link "$LINENO"; then :
10451  ac_cv_lib_dl_dlopen=yes
10452else
10453  ac_cv_lib_dl_dlopen=no
10454fi
10455rm -f core conftest.err conftest.$ac_objext \
10456    conftest$ac_exeext conftest.$ac_ext
10457LIBS=$ac_check_lib_save_LIBS
10458fi
10459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10460$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10461if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10462  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10463else
10464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10465$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10466if ${ac_cv_lib_svld_dlopen+:} false; then :
10467  $as_echo_n "(cached) " >&6
10468else
10469  ac_check_lib_save_LIBS=$LIBS
10470LIBS="-lsvld  $LIBS"
10471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472/* end confdefs.h.  */
10473
10474/* Override any GCC internal prototype to avoid an error.
10475   Use char because int might match the return type of a GCC
10476   builtin and then its argument prototype would still apply.  */
10477#ifdef __cplusplus
10478extern "C"
10479#endif
10480char dlopen ();
10481int
10482main ()
10483{
10484return dlopen ();
10485  ;
10486  return 0;
10487}
10488_ACEOF
10489if ac_fn_c_try_link "$LINENO"; then :
10490  ac_cv_lib_svld_dlopen=yes
10491else
10492  ac_cv_lib_svld_dlopen=no
10493fi
10494rm -f core conftest.err conftest.$ac_objext \
10495    conftest$ac_exeext conftest.$ac_ext
10496LIBS=$ac_check_lib_save_LIBS
10497fi
10498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10499$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10500if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10501  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10502else
10503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10504$as_echo_n "checking for dld_link in -ldld... " >&6; }
10505if ${ac_cv_lib_dld_dld_link+:} false; then :
10506  $as_echo_n "(cached) " >&6
10507else
10508  ac_check_lib_save_LIBS=$LIBS
10509LIBS="-ldld  $LIBS"
10510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511/* end confdefs.h.  */
10512
10513/* Override any GCC internal prototype to avoid an error.
10514   Use char because int might match the return type of a GCC
10515   builtin and then its argument prototype would still apply.  */
10516#ifdef __cplusplus
10517extern "C"
10518#endif
10519char dld_link ();
10520int
10521main ()
10522{
10523return dld_link ();
10524  ;
10525  return 0;
10526}
10527_ACEOF
10528if ac_fn_c_try_link "$LINENO"; then :
10529  ac_cv_lib_dld_dld_link=yes
10530else
10531  ac_cv_lib_dld_dld_link=no
10532fi
10533rm -f core conftest.err conftest.$ac_objext \
10534    conftest$ac_exeext conftest.$ac_ext
10535LIBS=$ac_check_lib_save_LIBS
10536fi
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10538$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10539if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10540  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10541fi
10542
10543
10544fi
10545
10546
10547fi
10548
10549
10550fi
10551
10552
10553fi
10554
10555
10556fi
10557
10558    ;;
10559  esac
10560
10561  if test "x$lt_cv_dlopen" != xno; then
10562    enable_dlopen=yes
10563  else
10564    enable_dlopen=no
10565  fi
10566
10567  case $lt_cv_dlopen in
10568  dlopen)
10569    save_CPPFLAGS="$CPPFLAGS"
10570    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10571
10572    save_LDFLAGS="$LDFLAGS"
10573    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10574
10575    save_LIBS="$LIBS"
10576    LIBS="$lt_cv_dlopen_libs $LIBS"
10577
10578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10579$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10580if ${lt_cv_dlopen_self+:} false; then :
10581  $as_echo_n "(cached) " >&6
10582else
10583  	  if test "$cross_compiling" = yes; then :
10584  lt_cv_dlopen_self=cross
10585else
10586  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10587  lt_status=$lt_dlunknown
10588  cat > conftest.$ac_ext <<_LT_EOF
10589#line $LINENO "configure"
10590#include "confdefs.h"
10591
10592#if HAVE_DLFCN_H
10593#include <dlfcn.h>
10594#endif
10595
10596#include <stdio.h>
10597
10598#ifdef RTLD_GLOBAL
10599#  define LT_DLGLOBAL		RTLD_GLOBAL
10600#else
10601#  ifdef DL_GLOBAL
10602#    define LT_DLGLOBAL		DL_GLOBAL
10603#  else
10604#    define LT_DLGLOBAL		0
10605#  endif
10606#endif
10607
10608/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10609   find out it does not work in some platform. */
10610#ifndef LT_DLLAZY_OR_NOW
10611#  ifdef RTLD_LAZY
10612#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10613#  else
10614#    ifdef DL_LAZY
10615#      define LT_DLLAZY_OR_NOW		DL_LAZY
10616#    else
10617#      ifdef RTLD_NOW
10618#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10619#      else
10620#        ifdef DL_NOW
10621#          define LT_DLLAZY_OR_NOW	DL_NOW
10622#        else
10623#          define LT_DLLAZY_OR_NOW	0
10624#        endif
10625#      endif
10626#    endif
10627#  endif
10628#endif
10629
10630/* When -fvisbility=hidden is used, assume the code has been annotated
10631   correspondingly for the symbols needed.  */
10632#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10633int fnord () __attribute__((visibility("default")));
10634#endif
10635
10636int fnord () { return 42; }
10637int main ()
10638{
10639  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10640  int status = $lt_dlunknown;
10641
10642  if (self)
10643    {
10644      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10645      else
10646        {
10647	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10648          else puts (dlerror ());
10649	}
10650      /* dlclose (self); */
10651    }
10652  else
10653    puts (dlerror ());
10654
10655  return status;
10656}
10657_LT_EOF
10658  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10659  (eval $ac_link) 2>&5
10660  ac_status=$?
10661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10662  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10663    (./conftest; exit; ) >&5 2>/dev/null
10664    lt_status=$?
10665    case x$lt_status in
10666      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10667      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10668      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10669    esac
10670  else :
10671    # compilation failed
10672    lt_cv_dlopen_self=no
10673  fi
10674fi
10675rm -fr conftest*
10676
10677
10678fi
10679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10680$as_echo "$lt_cv_dlopen_self" >&6; }
10681
10682    if test "x$lt_cv_dlopen_self" = xyes; then
10683      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10684      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10685$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10686if ${lt_cv_dlopen_self_static+:} false; then :
10687  $as_echo_n "(cached) " >&6
10688else
10689  	  if test "$cross_compiling" = yes; then :
10690  lt_cv_dlopen_self_static=cross
10691else
10692  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10693  lt_status=$lt_dlunknown
10694  cat > conftest.$ac_ext <<_LT_EOF
10695#line $LINENO "configure"
10696#include "confdefs.h"
10697
10698#if HAVE_DLFCN_H
10699#include <dlfcn.h>
10700#endif
10701
10702#include <stdio.h>
10703
10704#ifdef RTLD_GLOBAL
10705#  define LT_DLGLOBAL		RTLD_GLOBAL
10706#else
10707#  ifdef DL_GLOBAL
10708#    define LT_DLGLOBAL		DL_GLOBAL
10709#  else
10710#    define LT_DLGLOBAL		0
10711#  endif
10712#endif
10713
10714/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10715   find out it does not work in some platform. */
10716#ifndef LT_DLLAZY_OR_NOW
10717#  ifdef RTLD_LAZY
10718#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10719#  else
10720#    ifdef DL_LAZY
10721#      define LT_DLLAZY_OR_NOW		DL_LAZY
10722#    else
10723#      ifdef RTLD_NOW
10724#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10725#      else
10726#        ifdef DL_NOW
10727#          define LT_DLLAZY_OR_NOW	DL_NOW
10728#        else
10729#          define LT_DLLAZY_OR_NOW	0
10730#        endif
10731#      endif
10732#    endif
10733#  endif
10734#endif
10735
10736/* When -fvisbility=hidden is used, assume the code has been annotated
10737   correspondingly for the symbols needed.  */
10738#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10739int fnord () __attribute__((visibility("default")));
10740#endif
10741
10742int fnord () { return 42; }
10743int main ()
10744{
10745  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10746  int status = $lt_dlunknown;
10747
10748  if (self)
10749    {
10750      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10751      else
10752        {
10753	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10754          else puts (dlerror ());
10755	}
10756      /* dlclose (self); */
10757    }
10758  else
10759    puts (dlerror ());
10760
10761  return status;
10762}
10763_LT_EOF
10764  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10765  (eval $ac_link) 2>&5
10766  ac_status=$?
10767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10768  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10769    (./conftest; exit; ) >&5 2>/dev/null
10770    lt_status=$?
10771    case x$lt_status in
10772      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10773      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10774      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10775    esac
10776  else :
10777    # compilation failed
10778    lt_cv_dlopen_self_static=no
10779  fi
10780fi
10781rm -fr conftest*
10782
10783
10784fi
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10786$as_echo "$lt_cv_dlopen_self_static" >&6; }
10787    fi
10788
10789    CPPFLAGS="$save_CPPFLAGS"
10790    LDFLAGS="$save_LDFLAGS"
10791    LIBS="$save_LIBS"
10792    ;;
10793  esac
10794
10795  case $lt_cv_dlopen_self in
10796  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10797  *) enable_dlopen_self=unknown ;;
10798  esac
10799
10800  case $lt_cv_dlopen_self_static in
10801  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10802  *) enable_dlopen_self_static=unknown ;;
10803  esac
10804fi
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822striplib=
10823old_striplib=
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10825$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10826if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10827  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10828  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10830$as_echo "yes" >&6; }
10831else
10832# FIXME - insert some real tests, host_os isn't really good enough
10833  case $host_os in
10834  darwin*)
10835    if test -n "$STRIP" ; then
10836      striplib="$STRIP -x"
10837      old_striplib="$STRIP -S"
10838      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10839$as_echo "yes" >&6; }
10840    else
10841      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842$as_echo "no" >&6; }
10843    fi
10844    ;;
10845  *)
10846    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847$as_echo "no" >&6; }
10848    ;;
10849  esac
10850fi
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863  # Report which library types will actually be built
10864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10865$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10867$as_echo "$can_build_shared" >&6; }
10868
10869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10870$as_echo_n "checking whether to build shared libraries... " >&6; }
10871  test "$can_build_shared" = "no" && enable_shared=no
10872
10873  # On AIX, shared libraries and static libraries use the same namespace, and
10874  # are all built from PIC.
10875  case $host_os in
10876  aix3*)
10877    test "$enable_shared" = yes && enable_static=no
10878    if test -n "$RANLIB"; then
10879      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10880      postinstall_cmds='$RANLIB $lib'
10881    fi
10882    ;;
10883
10884  aix[4-9]*)
10885    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10886      test "$enable_shared" = yes && enable_static=no
10887    fi
10888    ;;
10889  esac
10890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10891$as_echo "$enable_shared" >&6; }
10892
10893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10894$as_echo_n "checking whether to build static libraries... " >&6; }
10895  # Make sure either enable_shared or enable_static is yes.
10896  test "$enable_shared" = yes || enable_static=yes
10897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10898$as_echo "$enable_static" >&6; }
10899
10900
10901
10902
10903fi
10904ac_ext=c
10905ac_cpp='$CPP $CPPFLAGS'
10906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10908ac_compiler_gnu=$ac_cv_c_compiler_gnu
10909
10910CC="$lt_save_CC"
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926        ac_config_commands="$ac_config_commands libtool"
10927
10928
10929
10930
10931# Only expand once:
10932
10933
10934ac_ext=cpp
10935ac_cpp='$CXXCPP $CPPFLAGS'
10936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10939if test -z "$CXX"; then
10940  if test -n "$CCC"; then
10941    CXX=$CCC
10942  else
10943    if test -n "$ac_tool_prefix"; then
10944  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10945  do
10946    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10949$as_echo_n "checking for $ac_word... " >&6; }
10950if ${ac_cv_prog_CXX+:} false; then :
10951  $as_echo_n "(cached) " >&6
10952else
10953  if test -n "$CXX"; then
10954  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10955else
10956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957for as_dir in $PATH
10958do
10959  IFS=$as_save_IFS
10960  test -z "$as_dir" && as_dir=.
10961    for ac_exec_ext in '' $ac_executable_extensions; do
10962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10963    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10965    break 2
10966  fi
10967done
10968  done
10969IFS=$as_save_IFS
10970
10971fi
10972fi
10973CXX=$ac_cv_prog_CXX
10974if test -n "$CXX"; then
10975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10976$as_echo "$CXX" >&6; }
10977else
10978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10979$as_echo "no" >&6; }
10980fi
10981
10982
10983    test -n "$CXX" && break
10984  done
10985fi
10986if test -z "$CXX"; then
10987  ac_ct_CXX=$CXX
10988  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10989do
10990  # Extract the first word of "$ac_prog", so it can be a program name with args.
10991set dummy $ac_prog; ac_word=$2
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993$as_echo_n "checking for $ac_word... " >&6; }
10994if ${ac_cv_prog_ac_ct_CXX+:} false; then :
10995  $as_echo_n "(cached) " >&6
10996else
10997  if test -n "$ac_ct_CXX"; then
10998  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10999else
11000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001for as_dir in $PATH
11002do
11003  IFS=$as_save_IFS
11004  test -z "$as_dir" && as_dir=.
11005    for ac_exec_ext in '' $ac_executable_extensions; do
11006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11007    ac_cv_prog_ac_ct_CXX="$ac_prog"
11008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009    break 2
11010  fi
11011done
11012  done
11013IFS=$as_save_IFS
11014
11015fi
11016fi
11017ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11018if test -n "$ac_ct_CXX"; then
11019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11020$as_echo "$ac_ct_CXX" >&6; }
11021else
11022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023$as_echo "no" >&6; }
11024fi
11025
11026
11027  test -n "$ac_ct_CXX" && break
11028done
11029
11030  if test "x$ac_ct_CXX" = x; then
11031    CXX="g++"
11032  else
11033    case $cross_compiling:$ac_tool_warned in
11034yes:)
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11037ac_tool_warned=yes ;;
11038esac
11039    CXX=$ac_ct_CXX
11040  fi
11041fi
11042
11043  fi
11044fi
11045# Provide some information about the compiler.
11046$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11047set X $ac_compile
11048ac_compiler=$2
11049for ac_option in --version -v -V -qversion; do
11050  { { ac_try="$ac_compiler $ac_option >&5"
11051case "(($ac_try" in
11052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053  *) ac_try_echo=$ac_try;;
11054esac
11055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11056$as_echo "$ac_try_echo"; } >&5
11057  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11058  ac_status=$?
11059  if test -s conftest.err; then
11060    sed '10a\
11061... rest of stderr output deleted ...
11062         10q' conftest.err >conftest.er1
11063    cat conftest.er1 >&5
11064  fi
11065  rm -f conftest.er1 conftest.err
11066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11067  test $ac_status = 0; }
11068done
11069
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11071$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11072if ${ac_cv_cxx_compiler_gnu+:} false; then :
11073  $as_echo_n "(cached) " >&6
11074else
11075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076/* end confdefs.h.  */
11077
11078int
11079main ()
11080{
11081#ifndef __GNUC__
11082       choke me
11083#endif
11084
11085  ;
11086  return 0;
11087}
11088_ACEOF
11089if ac_fn_cxx_try_compile "$LINENO"; then :
11090  ac_compiler_gnu=yes
11091else
11092  ac_compiler_gnu=no
11093fi
11094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11096
11097fi
11098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11099$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11100if test $ac_compiler_gnu = yes; then
11101  GXX=yes
11102else
11103  GXX=
11104fi
11105ac_test_CXXFLAGS=${CXXFLAGS+set}
11106ac_save_CXXFLAGS=$CXXFLAGS
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11108$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11109if ${ac_cv_prog_cxx_g+:} false; then :
11110  $as_echo_n "(cached) " >&6
11111else
11112  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11113   ac_cxx_werror_flag=yes
11114   ac_cv_prog_cxx_g=no
11115   CXXFLAGS="-g"
11116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117/* end confdefs.h.  */
11118
11119int
11120main ()
11121{
11122
11123  ;
11124  return 0;
11125}
11126_ACEOF
11127if ac_fn_cxx_try_compile "$LINENO"; then :
11128  ac_cv_prog_cxx_g=yes
11129else
11130  CXXFLAGS=""
11131      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11132/* end confdefs.h.  */
11133
11134int
11135main ()
11136{
11137
11138  ;
11139  return 0;
11140}
11141_ACEOF
11142if ac_fn_cxx_try_compile "$LINENO"; then :
11143
11144else
11145  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11146	 CXXFLAGS="-g"
11147	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148/* end confdefs.h.  */
11149
11150int
11151main ()
11152{
11153
11154  ;
11155  return 0;
11156}
11157_ACEOF
11158if ac_fn_cxx_try_compile "$LINENO"; then :
11159  ac_cv_prog_cxx_g=yes
11160fi
11161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162fi
11163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164fi
11165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11166   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11167fi
11168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11169$as_echo "$ac_cv_prog_cxx_g" >&6; }
11170if test "$ac_test_CXXFLAGS" = set; then
11171  CXXFLAGS=$ac_save_CXXFLAGS
11172elif test $ac_cv_prog_cxx_g = yes; then
11173  if test "$GXX" = yes; then
11174    CXXFLAGS="-g -O2"
11175  else
11176    CXXFLAGS="-g"
11177  fi
11178else
11179  if test "$GXX" = yes; then
11180    CXXFLAGS="-O2"
11181  else
11182    CXXFLAGS=
11183  fi
11184fi
11185ac_ext=c
11186ac_cpp='$CPP $CPPFLAGS'
11187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11189ac_compiler_gnu=$ac_cv_c_compiler_gnu
11190
11191
11192
11193
11194func_stripname_cnf ()
11195{
11196  case ${2} in
11197  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11198  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11199  esac
11200} # func_stripname_cnf
11201
11202      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11203    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11204    (test "X$CXX" != "Xg++"))) ; then
11205  ac_ext=cpp
11206ac_cpp='$CXXCPP $CPPFLAGS'
11207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11211$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11212if test -z "$CXXCPP"; then
11213  if ${ac_cv_prog_CXXCPP+:} false; then :
11214  $as_echo_n "(cached) " >&6
11215else
11216      # Double quotes because CXXCPP needs to be expanded
11217    for CXXCPP in "$CXX -E" "/lib/cpp"
11218    do
11219      ac_preproc_ok=false
11220for ac_cxx_preproc_warn_flag in '' yes
11221do
11222  # Use a header file that comes with gcc, so configuring glibc
11223  # with a fresh cross-compiler works.
11224  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11225  # <limits.h> exists even on freestanding compilers.
11226  # On the NeXT, cc -E runs the code through the compiler's parser,
11227  # not just through cpp. "Syntax error" is here to catch this case.
11228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229/* end confdefs.h.  */
11230#ifdef __STDC__
11231# include <limits.h>
11232#else
11233# include <assert.h>
11234#endif
11235		     Syntax error
11236_ACEOF
11237if ac_fn_cxx_try_cpp "$LINENO"; then :
11238
11239else
11240  # Broken: fails on valid input.
11241continue
11242fi
11243rm -f conftest.err conftest.i conftest.$ac_ext
11244
11245  # OK, works on sane cases.  Now check whether nonexistent headers
11246  # can be detected and how.
11247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248/* end confdefs.h.  */
11249#include <ac_nonexistent.h>
11250_ACEOF
11251if ac_fn_cxx_try_cpp "$LINENO"; then :
11252  # Broken: success on invalid input.
11253continue
11254else
11255  # Passes both tests.
11256ac_preproc_ok=:
11257break
11258fi
11259rm -f conftest.err conftest.i conftest.$ac_ext
11260
11261done
11262# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11263rm -f conftest.i conftest.err conftest.$ac_ext
11264if $ac_preproc_ok; then :
11265  break
11266fi
11267
11268    done
11269    ac_cv_prog_CXXCPP=$CXXCPP
11270
11271fi
11272  CXXCPP=$ac_cv_prog_CXXCPP
11273else
11274  ac_cv_prog_CXXCPP=$CXXCPP
11275fi
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11277$as_echo "$CXXCPP" >&6; }
11278ac_preproc_ok=false
11279for ac_cxx_preproc_warn_flag in '' yes
11280do
11281  # Use a header file that comes with gcc, so configuring glibc
11282  # with a fresh cross-compiler works.
11283  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11284  # <limits.h> exists even on freestanding compilers.
11285  # On the NeXT, cc -E runs the code through the compiler's parser,
11286  # not just through cpp. "Syntax error" is here to catch this case.
11287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288/* end confdefs.h.  */
11289#ifdef __STDC__
11290# include <limits.h>
11291#else
11292# include <assert.h>
11293#endif
11294		     Syntax error
11295_ACEOF
11296if ac_fn_cxx_try_cpp "$LINENO"; then :
11297
11298else
11299  # Broken: fails on valid input.
11300continue
11301fi
11302rm -f conftest.err conftest.i conftest.$ac_ext
11303
11304  # OK, works on sane cases.  Now check whether nonexistent headers
11305  # can be detected and how.
11306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307/* end confdefs.h.  */
11308#include <ac_nonexistent.h>
11309_ACEOF
11310if ac_fn_cxx_try_cpp "$LINENO"; then :
11311  # Broken: success on invalid input.
11312continue
11313else
11314  # Passes both tests.
11315ac_preproc_ok=:
11316break
11317fi
11318rm -f conftest.err conftest.i conftest.$ac_ext
11319
11320done
11321# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11322rm -f conftest.i conftest.err conftest.$ac_ext
11323if $ac_preproc_ok; then :
11324
11325else
11326  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11328as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11329See \`config.log' for more details" "$LINENO" 5; }
11330fi
11331
11332ac_ext=c
11333ac_cpp='$CPP $CPPFLAGS'
11334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11336ac_compiler_gnu=$ac_cv_c_compiler_gnu
11337
11338else
11339  _lt_caught_CXX_error=yes
11340fi
11341
11342ac_ext=cpp
11343ac_cpp='$CXXCPP $CPPFLAGS'
11344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11347
11348archive_cmds_need_lc_CXX=no
11349allow_undefined_flag_CXX=
11350always_export_symbols_CXX=no
11351archive_expsym_cmds_CXX=
11352compiler_needs_object_CXX=no
11353export_dynamic_flag_spec_CXX=
11354hardcode_direct_CXX=no
11355hardcode_direct_absolute_CXX=no
11356hardcode_libdir_flag_spec_CXX=
11357hardcode_libdir_separator_CXX=
11358hardcode_minus_L_CXX=no
11359hardcode_shlibpath_var_CXX=unsupported
11360hardcode_automatic_CXX=no
11361inherit_rpath_CXX=no
11362module_cmds_CXX=
11363module_expsym_cmds_CXX=
11364link_all_deplibs_CXX=unknown
11365old_archive_cmds_CXX=$old_archive_cmds
11366reload_flag_CXX=$reload_flag
11367reload_cmds_CXX=$reload_cmds
11368no_undefined_flag_CXX=
11369whole_archive_flag_spec_CXX=
11370enable_shared_with_static_runtimes_CXX=no
11371
11372# Source file extension for C++ test sources.
11373ac_ext=cpp
11374
11375# Object file extension for compiled C++ test sources.
11376objext=o
11377objext_CXX=$objext
11378
11379# No sense in running all these tests if we already determined that
11380# the CXX compiler isn't working.  Some variables (like enable_shared)
11381# are currently assumed to apply to all compilers on this platform,
11382# and will be corrupted by setting them based on a non-working compiler.
11383if test "$_lt_caught_CXX_error" != yes; then
11384  # Code to be used in simple compile tests
11385  lt_simple_compile_test_code="int some_variable = 0;"
11386
11387  # Code to be used in simple link tests
11388  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11389
11390  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11391
11392
11393
11394
11395
11396
11397# If no C compiler was specified, use CC.
11398LTCC=${LTCC-"$CC"}
11399
11400# If no C compiler flags were specified, use CFLAGS.
11401LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11402
11403# Allow CC to be a program name with arguments.
11404compiler=$CC
11405
11406
11407  # save warnings/boilerplate of simple test code
11408  ac_outfile=conftest.$ac_objext
11409echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11410eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11411_lt_compiler_boilerplate=`cat conftest.err`
11412$RM conftest*
11413
11414  ac_outfile=conftest.$ac_objext
11415echo "$lt_simple_link_test_code" >conftest.$ac_ext
11416eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11417_lt_linker_boilerplate=`cat conftest.err`
11418$RM -r conftest*
11419
11420
11421  # Allow CC to be a program name with arguments.
11422  lt_save_CC=$CC
11423  lt_save_CFLAGS=$CFLAGS
11424  lt_save_LD=$LD
11425  lt_save_GCC=$GCC
11426  GCC=$GXX
11427  lt_save_with_gnu_ld=$with_gnu_ld
11428  lt_save_path_LD=$lt_cv_path_LD
11429  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11430    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11431  else
11432    $as_unset lt_cv_prog_gnu_ld
11433  fi
11434  if test -n "${lt_cv_path_LDCXX+set}"; then
11435    lt_cv_path_LD=$lt_cv_path_LDCXX
11436  else
11437    $as_unset lt_cv_path_LD
11438  fi
11439  test -z "${LDCXX+set}" || LD=$LDCXX
11440  CC=${CXX-"c++"}
11441  CFLAGS=$CXXFLAGS
11442  compiler=$CC
11443  compiler_CXX=$CC
11444  for cc_temp in $compiler""; do
11445  case $cc_temp in
11446    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11447    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11448    \-*) ;;
11449    *) break;;
11450  esac
11451done
11452cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11453
11454
11455  if test -n "$compiler"; then
11456    # We don't want -fno-exception when compiling C++ code, so set the
11457    # no_builtin_flag separately
11458    if test "$GXX" = yes; then
11459      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11460    else
11461      lt_prog_compiler_no_builtin_flag_CXX=
11462    fi
11463
11464    if test "$GXX" = yes; then
11465      # Set up default GNU C++ configuration
11466
11467
11468
11469# Check whether --with-gnu-ld was given.
11470if test "${with_gnu_ld+set}" = set; then :
11471  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11472else
11473  with_gnu_ld=no
11474fi
11475
11476ac_prog=ld
11477if test "$GCC" = yes; then
11478  # Check if gcc -print-prog-name=ld gives a path.
11479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11480$as_echo_n "checking for ld used by $CC... " >&6; }
11481  case $host in
11482  *-*-mingw*)
11483    # gcc leaves a trailing carriage return which upsets mingw
11484    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11485  *)
11486    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11487  esac
11488  case $ac_prog in
11489    # Accept absolute paths.
11490    [\\/]* | ?:[\\/]*)
11491      re_direlt='/[^/][^/]*/\.\./'
11492      # Canonicalize the pathname of ld
11493      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11494      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11495	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11496      done
11497      test -z "$LD" && LD="$ac_prog"
11498      ;;
11499  "")
11500    # If it fails, then pretend we aren't using GCC.
11501    ac_prog=ld
11502    ;;
11503  *)
11504    # If it is relative, then search for the first ld in PATH.
11505    with_gnu_ld=unknown
11506    ;;
11507  esac
11508elif test "$with_gnu_ld" = yes; then
11509  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11510$as_echo_n "checking for GNU ld... " >&6; }
11511else
11512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11513$as_echo_n "checking for non-GNU ld... " >&6; }
11514fi
11515if ${lt_cv_path_LD+:} false; then :
11516  $as_echo_n "(cached) " >&6
11517else
11518  if test -z "$LD"; then
11519  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11520  for ac_dir in $PATH; do
11521    IFS="$lt_save_ifs"
11522    test -z "$ac_dir" && ac_dir=.
11523    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11524      lt_cv_path_LD="$ac_dir/$ac_prog"
11525      # Check to see if the program is GNU ld.  I'd rather use --version,
11526      # but apparently some variants of GNU ld only accept -v.
11527      # Break only if it was the GNU/non-GNU ld that we prefer.
11528      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11529      *GNU* | *'with BFD'*)
11530	test "$with_gnu_ld" != no && break
11531	;;
11532      *)
11533	test "$with_gnu_ld" != yes && break
11534	;;
11535      esac
11536    fi
11537  done
11538  IFS="$lt_save_ifs"
11539else
11540  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11541fi
11542fi
11543
11544LD="$lt_cv_path_LD"
11545if test -n "$LD"; then
11546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11547$as_echo "$LD" >&6; }
11548else
11549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550$as_echo "no" >&6; }
11551fi
11552test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11554$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11555if ${lt_cv_prog_gnu_ld+:} false; then :
11556  $as_echo_n "(cached) " >&6
11557else
11558  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11559case `$LD -v 2>&1 </dev/null` in
11560*GNU* | *'with BFD'*)
11561  lt_cv_prog_gnu_ld=yes
11562  ;;
11563*)
11564  lt_cv_prog_gnu_ld=no
11565  ;;
11566esac
11567fi
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11569$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11570with_gnu_ld=$lt_cv_prog_gnu_ld
11571
11572
11573
11574
11575
11576
11577
11578      # Check if GNU C++ uses GNU ld as the underlying linker, since the
11579      # archiving commands below assume that GNU ld is being used.
11580      if test "$with_gnu_ld" = yes; then
11581        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11582        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'
11583
11584        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11585        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11586
11587        # If archive_cmds runs LD, not CC, wlarc should be empty
11588        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11589        #     investigate it a little bit more. (MM)
11590        wlarc='${wl}'
11591
11592        # ancient GNU ld didn't support --whole-archive et. al.
11593        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11594	  $GREP 'no-whole-archive' > /dev/null; then
11595          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11596        else
11597          whole_archive_flag_spec_CXX=
11598        fi
11599      else
11600        with_gnu_ld=no
11601        wlarc=
11602
11603        # A generic and very simple default shared library creation
11604        # command for GNU C++ for the case where it uses the native
11605        # linker, instead of GNU ld.  If possible, this setting should
11606        # overridden to take advantage of the native linker features on
11607        # the platform it is being used on.
11608        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11609      fi
11610
11611      # Commands to make compiler produce verbose output that lists
11612      # what "hidden" libraries, object files and flags are used when
11613      # linking a shared library.
11614      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11615
11616    else
11617      GXX=no
11618      with_gnu_ld=no
11619      wlarc=
11620    fi
11621
11622    # PORTME: fill in a description of your system's C++ link characteristics
11623    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11624$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11625    ld_shlibs_CXX=yes
11626    case $host_os in
11627      aix3*)
11628        # FIXME: insert proper C++ library support
11629        ld_shlibs_CXX=no
11630        ;;
11631      aix[4-9]*)
11632        if test "$host_cpu" = ia64; then
11633          # On IA64, the linker does run time linking by default, so we don't
11634          # have to do anything special.
11635          aix_use_runtimelinking=no
11636          exp_sym_flag='-Bexport'
11637          no_entry_flag=""
11638        else
11639          aix_use_runtimelinking=no
11640
11641          # Test if we are trying to use run time linking or normal
11642          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11643          # need to do runtime linking.
11644          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11645	    for ld_flag in $LDFLAGS; do
11646	      case $ld_flag in
11647	      *-brtl*)
11648	        aix_use_runtimelinking=yes
11649	        break
11650	        ;;
11651	      esac
11652	    done
11653	    ;;
11654          esac
11655
11656          exp_sym_flag='-bexport'
11657          no_entry_flag='-bnoentry'
11658        fi
11659
11660        # When large executables or shared objects are built, AIX ld can
11661        # have problems creating the table of contents.  If linking a library
11662        # or program results in "error TOC overflow" add -mminimal-toc to
11663        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11664        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11665
11666        archive_cmds_CXX=''
11667        hardcode_direct_CXX=yes
11668        hardcode_direct_absolute_CXX=yes
11669        hardcode_libdir_separator_CXX=':'
11670        link_all_deplibs_CXX=yes
11671        file_list_spec_CXX='${wl}-f,'
11672
11673        if test "$GXX" = yes; then
11674          case $host_os in aix4.[012]|aix4.[012].*)
11675          # We only want to do this on AIX 4.2 and lower, the check
11676          # below for broken collect2 doesn't work under 4.3+
11677	  collect2name=`${CC} -print-prog-name=collect2`
11678	  if test -f "$collect2name" &&
11679	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11680	  then
11681	    # We have reworked collect2
11682	    :
11683	  else
11684	    # We have old collect2
11685	    hardcode_direct_CXX=unsupported
11686	    # It fails to find uninstalled libraries when the uninstalled
11687	    # path is not listed in the libpath.  Setting hardcode_minus_L
11688	    # to unsupported forces relinking
11689	    hardcode_minus_L_CXX=yes
11690	    hardcode_libdir_flag_spec_CXX='-L$libdir'
11691	    hardcode_libdir_separator_CXX=
11692	  fi
11693          esac
11694          shared_flag='-shared'
11695	  if test "$aix_use_runtimelinking" = yes; then
11696	    shared_flag="$shared_flag "'${wl}-G'
11697	  fi
11698        else
11699          # not using gcc
11700          if test "$host_cpu" = ia64; then
11701	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11702	  # chokes on -Wl,-G. The following line is correct:
11703	  shared_flag='-G'
11704          else
11705	    if test "$aix_use_runtimelinking" = yes; then
11706	      shared_flag='${wl}-G'
11707	    else
11708	      shared_flag='${wl}-bM:SRE'
11709	    fi
11710          fi
11711        fi
11712
11713        export_dynamic_flag_spec_CXX='${wl}-bexpall'
11714        # It seems that -bexpall does not export symbols beginning with
11715        # underscore (_), so it is better to generate a list of symbols to
11716	# export.
11717        always_export_symbols_CXX=yes
11718        if test "$aix_use_runtimelinking" = yes; then
11719          # Warning - without using the other runtime loading flags (-brtl),
11720          # -berok will link without error, but may produce a broken library.
11721          allow_undefined_flag_CXX='-berok'
11722          # Determine the default libpath from the value encoded in an empty
11723          # executable.
11724          if test "${lt_cv_aix_libpath+set}" = set; then
11725  aix_libpath=$lt_cv_aix_libpath
11726else
11727  if ${lt_cv_aix_libpath__CXX+:} false; then :
11728  $as_echo_n "(cached) " >&6
11729else
11730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731/* end confdefs.h.  */
11732
11733int
11734main ()
11735{
11736
11737  ;
11738  return 0;
11739}
11740_ACEOF
11741if ac_fn_cxx_try_link "$LINENO"; then :
11742
11743  lt_aix_libpath_sed='
11744      /Import File Strings/,/^$/ {
11745	  /^0/ {
11746	      s/^0  *\([^ ]*\) *$/\1/
11747	      p
11748	  }
11749      }'
11750  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11751  # Check for a 64-bit object if we didn't find anything.
11752  if test -z "$lt_cv_aix_libpath__CXX"; then
11753    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11754  fi
11755fi
11756rm -f core conftest.err conftest.$ac_objext \
11757    conftest$ac_exeext conftest.$ac_ext
11758  if test -z "$lt_cv_aix_libpath__CXX"; then
11759    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
11760  fi
11761
11762fi
11763
11764  aix_libpath=$lt_cv_aix_libpath__CXX
11765fi
11766
11767          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11768
11769          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"
11770        else
11771          if test "$host_cpu" = ia64; then
11772	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11773	    allow_undefined_flag_CXX="-z nodefs"
11774	    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"
11775          else
11776	    # Determine the default libpath from the value encoded in an
11777	    # empty executable.
11778	    if test "${lt_cv_aix_libpath+set}" = set; then
11779  aix_libpath=$lt_cv_aix_libpath
11780else
11781  if ${lt_cv_aix_libpath__CXX+:} false; then :
11782  $as_echo_n "(cached) " >&6
11783else
11784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785/* end confdefs.h.  */
11786
11787int
11788main ()
11789{
11790
11791  ;
11792  return 0;
11793}
11794_ACEOF
11795if ac_fn_cxx_try_link "$LINENO"; then :
11796
11797  lt_aix_libpath_sed='
11798      /Import File Strings/,/^$/ {
11799	  /^0/ {
11800	      s/^0  *\([^ ]*\) *$/\1/
11801	      p
11802	  }
11803      }'
11804  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11805  # Check for a 64-bit object if we didn't find anything.
11806  if test -z "$lt_cv_aix_libpath__CXX"; then
11807    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11808  fi
11809fi
11810rm -f core conftest.err conftest.$ac_objext \
11811    conftest$ac_exeext conftest.$ac_ext
11812  if test -z "$lt_cv_aix_libpath__CXX"; then
11813    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
11814  fi
11815
11816fi
11817
11818  aix_libpath=$lt_cv_aix_libpath__CXX
11819fi
11820
11821	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11822	    # Warning - without using the other run time loading flags,
11823	    # -berok will link without error, but may produce a broken library.
11824	    no_undefined_flag_CXX=' ${wl}-bernotok'
11825	    allow_undefined_flag_CXX=' ${wl}-berok'
11826	    if test "$with_gnu_ld" = yes; then
11827	      # We only use this code for GNU lds that support --whole-archive.
11828	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11829	    else
11830	      # Exported symbols can be pulled into shared objects from archives
11831	      whole_archive_flag_spec_CXX='$convenience'
11832	    fi
11833	    archive_cmds_need_lc_CXX=yes
11834	    # This is similar to how AIX traditionally builds its shared
11835	    # libraries.
11836	    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'
11837          fi
11838        fi
11839        ;;
11840
11841      beos*)
11842	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11843	  allow_undefined_flag_CXX=unsupported
11844	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11845	  # support --undefined.  This deserves some investigation.  FIXME
11846	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11847	else
11848	  ld_shlibs_CXX=no
11849	fi
11850	;;
11851
11852      chorus*)
11853        case $cc_basename in
11854          *)
11855	  # FIXME: insert proper C++ library support
11856	  ld_shlibs_CXX=no
11857	  ;;
11858        esac
11859        ;;
11860
11861      cygwin* | mingw* | pw32* | cegcc*)
11862	case $GXX,$cc_basename in
11863	,cl* | no,cl*)
11864	  # Native MSVC
11865	  # hardcode_libdir_flag_spec is actually meaningless, as there is
11866	  # no search path for DLLs.
11867	  hardcode_libdir_flag_spec_CXX=' '
11868	  allow_undefined_flag_CXX=unsupported
11869	  always_export_symbols_CXX=yes
11870	  file_list_spec_CXX='@'
11871	  # Tell ltmain to make .lib files, not .a files.
11872	  libext=lib
11873	  # Tell ltmain to make .dll files, not .so files.
11874	  shrext_cmds=".dll"
11875	  # FIXME: Setting linknames here is a bad hack.
11876	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11877	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11878	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11879	    else
11880	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11881	    fi~
11882	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11883	    linknames='
11884	  # The linker will not automatically build a static lib if we build a DLL.
11885	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
11886	  enable_shared_with_static_runtimes_CXX=yes
11887	  # Don't use ranlib
11888	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
11889	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
11890	    lt_tool_outputfile="@TOOL_OUTPUT@"~
11891	    case $lt_outputfile in
11892	      *.exe|*.EXE) ;;
11893	      *)
11894		lt_outputfile="$lt_outputfile.exe"
11895		lt_tool_outputfile="$lt_tool_outputfile.exe"
11896		;;
11897	    esac~
11898	    func_to_tool_file "$lt_outputfile"~
11899	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11900	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11901	      $RM "$lt_outputfile.manifest";
11902	    fi'
11903	  ;;
11904	*)
11905	  # g++
11906	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11907	  # as there is no search path for DLLs.
11908	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11909	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11910	  allow_undefined_flag_CXX=unsupported
11911	  always_export_symbols_CXX=no
11912	  enable_shared_with_static_runtimes_CXX=yes
11913
11914	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11915	    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'
11916	    # If the export-symbols file already is a .def file (1st line
11917	    # is EXPORTS), use it as is; otherwise, prepend...
11918	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11919	      cp $export_symbols $output_objdir/$soname.def;
11920	    else
11921	      echo EXPORTS > $output_objdir/$soname.def;
11922	      cat $export_symbols >> $output_objdir/$soname.def;
11923	    fi~
11924	    $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'
11925	  else
11926	    ld_shlibs_CXX=no
11927	  fi
11928	  ;;
11929	esac
11930	;;
11931      darwin* | rhapsody*)
11932
11933
11934  archive_cmds_need_lc_CXX=no
11935  hardcode_direct_CXX=no
11936  hardcode_automatic_CXX=yes
11937  hardcode_shlibpath_var_CXX=unsupported
11938  if test "$lt_cv_ld_force_load" = "yes"; then
11939    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\"`'
11940
11941  else
11942    whole_archive_flag_spec_CXX=''
11943  fi
11944  link_all_deplibs_CXX=yes
11945  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11946  case $cc_basename in
11947     ifort*) _lt_dar_can_shared=yes ;;
11948     *) _lt_dar_can_shared=$GCC ;;
11949  esac
11950  if test "$_lt_dar_can_shared" = "yes"; then
11951    output_verbose_link_cmd=func_echo_all
11952    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}"
11953    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11954    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}"
11955    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}"
11956       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11957      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}"
11958      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}"
11959    fi
11960
11961  else
11962  ld_shlibs_CXX=no
11963  fi
11964
11965	;;
11966
11967      dgux*)
11968        case $cc_basename in
11969          ec++*)
11970	    # FIXME: insert proper C++ library support
11971	    ld_shlibs_CXX=no
11972	    ;;
11973          ghcx*)
11974	    # Green Hills C++ Compiler
11975	    # FIXME: insert proper C++ library support
11976	    ld_shlibs_CXX=no
11977	    ;;
11978          *)
11979	    # FIXME: insert proper C++ library support
11980	    ld_shlibs_CXX=no
11981	    ;;
11982        esac
11983        ;;
11984
11985      freebsd2.*)
11986        # C++ shared libraries reported to be fairly broken before
11987	# switch to ELF
11988        ld_shlibs_CXX=no
11989        ;;
11990
11991      freebsd-elf*)
11992        archive_cmds_need_lc_CXX=no
11993        ;;
11994
11995      freebsd* | dragonfly*)
11996        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11997        # conventions
11998        ld_shlibs_CXX=yes
11999        ;;
12000
12001      gnu*)
12002        ;;
12003
12004      haiku*)
12005        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12006        link_all_deplibs_CXX=yes
12007        ;;
12008
12009      hpux9*)
12010        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12011        hardcode_libdir_separator_CXX=:
12012        export_dynamic_flag_spec_CXX='${wl}-E'
12013        hardcode_direct_CXX=yes
12014        hardcode_minus_L_CXX=yes # Not in the search PATH,
12015				             # but as the default
12016				             # location of the library.
12017
12018        case $cc_basename in
12019          CC*)
12020            # FIXME: insert proper C++ library support
12021            ld_shlibs_CXX=no
12022            ;;
12023          aCC*)
12024            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'
12025            # Commands to make compiler produce verbose output that lists
12026            # what "hidden" libraries, object files and flags are used when
12027            # linking a shared library.
12028            #
12029            # There doesn't appear to be a way to prevent this compiler from
12030            # explicitly linking system object files so we need to strip them
12031            # from the output so that they don't get included in the library
12032            # dependencies.
12033            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"'
12034            ;;
12035          *)
12036            if test "$GXX" = yes; then
12037              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'
12038            else
12039              # FIXME: insert proper C++ library support
12040              ld_shlibs_CXX=no
12041            fi
12042            ;;
12043        esac
12044        ;;
12045
12046      hpux10*|hpux11*)
12047        if test $with_gnu_ld = no; then
12048	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12049	  hardcode_libdir_separator_CXX=:
12050
12051          case $host_cpu in
12052            hppa*64*|ia64*)
12053              ;;
12054            *)
12055	      export_dynamic_flag_spec_CXX='${wl}-E'
12056              ;;
12057          esac
12058        fi
12059        case $host_cpu in
12060          hppa*64*|ia64*)
12061            hardcode_direct_CXX=no
12062            hardcode_shlibpath_var_CXX=no
12063            ;;
12064          *)
12065            hardcode_direct_CXX=yes
12066            hardcode_direct_absolute_CXX=yes
12067            hardcode_minus_L_CXX=yes # Not in the search PATH,
12068					         # but as the default
12069					         # location of the library.
12070            ;;
12071        esac
12072
12073        case $cc_basename in
12074          CC*)
12075	    # FIXME: insert proper C++ library support
12076	    ld_shlibs_CXX=no
12077	    ;;
12078          aCC*)
12079	    case $host_cpu in
12080	      hppa*64*)
12081	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12082	        ;;
12083	      ia64*)
12084	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12085	        ;;
12086	      *)
12087	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12088	        ;;
12089	    esac
12090	    # Commands to make compiler produce verbose output that lists
12091	    # what "hidden" libraries, object files and flags are used when
12092	    # linking a shared library.
12093	    #
12094	    # There doesn't appear to be a way to prevent this compiler from
12095	    # explicitly linking system object files so we need to strip them
12096	    # from the output so that they don't get included in the library
12097	    # dependencies.
12098	    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"'
12099	    ;;
12100          *)
12101	    if test "$GXX" = yes; then
12102	      if test $with_gnu_ld = no; then
12103	        case $host_cpu in
12104	          hppa*64*)
12105	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12106	            ;;
12107	          ia64*)
12108	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12109	            ;;
12110	          *)
12111	            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'
12112	            ;;
12113	        esac
12114	      fi
12115	    else
12116	      # FIXME: insert proper C++ library support
12117	      ld_shlibs_CXX=no
12118	    fi
12119	    ;;
12120        esac
12121        ;;
12122
12123      interix[3-9]*)
12124	hardcode_direct_CXX=no
12125	hardcode_shlibpath_var_CXX=no
12126	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12127	export_dynamic_flag_spec_CXX='${wl}-E'
12128	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12129	# Instead, shared libraries are loaded at an image base (0x10000000 by
12130	# default) and relocated if they conflict, which is a slow very memory
12131	# consuming and fragmenting process.  To avoid this, we pick a random,
12132	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12133	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12134	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'
12135	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'
12136	;;
12137      irix5* | irix6*)
12138        case $cc_basename in
12139          CC*)
12140	    # SGI C++
12141	    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'
12142
12143	    # Archives containing C++ object files must be created using
12144	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12145	    # necessary to make sure instantiated templates are included
12146	    # in the archive.
12147	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12148	    ;;
12149          *)
12150	    if test "$GXX" = yes; then
12151	      if test "$with_gnu_ld" = no; then
12152	        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'
12153	      else
12154	        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'
12155	      fi
12156	    fi
12157	    link_all_deplibs_CXX=yes
12158	    ;;
12159        esac
12160        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12161        hardcode_libdir_separator_CXX=:
12162        inherit_rpath_CXX=yes
12163        ;;
12164
12165      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12166        case $cc_basename in
12167          KCC*)
12168	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12169
12170	    # KCC will only create a shared library if the output file
12171	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12172	    # to its proper name (with version) after linking.
12173	    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'
12174	    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'
12175	    # Commands to make compiler produce verbose output that lists
12176	    # what "hidden" libraries, object files and flags are used when
12177	    # linking a shared library.
12178	    #
12179	    # There doesn't appear to be a way to prevent this compiler from
12180	    # explicitly linking system object files so we need to strip them
12181	    # from the output so that they don't get included in the library
12182	    # dependencies.
12183	    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"'
12184
12185	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12186	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12187
12188	    # Archives containing C++ object files must be created using
12189	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12190	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12191	    ;;
12192	  icpc* | ecpc* )
12193	    # Intel C++
12194	    with_gnu_ld=yes
12195	    # version 8.0 and above of icpc choke on multiply defined symbols
12196	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12197	    # earlier do not add the objects themselves.
12198	    case `$CC -V 2>&1` in
12199	      *"Version 7."*)
12200	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12201		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'
12202		;;
12203	      *)  # Version 8.0 or newer
12204	        tmp_idyn=
12205	        case $host_cpu in
12206		  ia64*) tmp_idyn=' -i_dynamic';;
12207		esac
12208	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12209		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'
12210		;;
12211	    esac
12212	    archive_cmds_need_lc_CXX=no
12213	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12214	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12215	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12216	    ;;
12217          pgCC* | pgcpp*)
12218            # Portland Group C++ compiler
12219	    case `$CC -V` in
12220	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12221	      prelink_cmds_CXX='tpldir=Template.dir~
12222		rm -rf $tpldir~
12223		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12224		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12225	      old_archive_cmds_CXX='tpldir=Template.dir~
12226		rm -rf $tpldir~
12227		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12228		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12229		$RANLIB $oldlib'
12230	      archive_cmds_CXX='tpldir=Template.dir~
12231		rm -rf $tpldir~
12232		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12233		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12234	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12235		rm -rf $tpldir~
12236		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12237		$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'
12238	      ;;
12239	    *) # Version 6 and above use weak symbols
12240	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12241	      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'
12242	      ;;
12243	    esac
12244
12245	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12246	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12247	    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'
12248            ;;
12249	  cxx*)
12250	    # Compaq C++
12251	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12252	    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'
12253
12254	    runpath_var=LD_RUN_PATH
12255	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12256	    hardcode_libdir_separator_CXX=:
12257
12258	    # Commands to make compiler produce verbose output that lists
12259	    # what "hidden" libraries, object files and flags are used when
12260	    # linking a shared library.
12261	    #
12262	    # There doesn't appear to be a way to prevent this compiler from
12263	    # explicitly linking system object files so we need to strip them
12264	    # from the output so that they don't get included in the library
12265	    # dependencies.
12266	    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'
12267	    ;;
12268	  xl* | mpixl* | bgxl*)
12269	    # IBM XL 8.0 on PPC, with GNU ld
12270	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12271	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12272	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12273	    if test "x$supports_anon_versioning" = xyes; then
12274	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12275		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12276		echo "local: *; };" >> $output_objdir/$libname.ver~
12277		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12278	    fi
12279	    ;;
12280	  *)
12281	    case `$CC -V 2>&1 | sed 5q` in
12282	    *Sun\ C*)
12283	      # Sun C++ 5.9
12284	      no_undefined_flag_CXX=' -zdefs'
12285	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12286	      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'
12287	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12288	      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'
12289	      compiler_needs_object_CXX=yes
12290
12291	      # Not sure whether something based on
12292	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12293	      # would be better.
12294	      output_verbose_link_cmd='func_echo_all'
12295
12296	      # Archives containing C++ object files must be created using
12297	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12298	      # necessary to make sure instantiated templates are included
12299	      # in the archive.
12300	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12301	      ;;
12302	    esac
12303	    ;;
12304	esac
12305	;;
12306
12307      lynxos*)
12308        # FIXME: insert proper C++ library support
12309	ld_shlibs_CXX=no
12310	;;
12311
12312      m88k*)
12313        # FIXME: insert proper C++ library support
12314        ld_shlibs_CXX=no
12315	;;
12316
12317      mvs*)
12318        case $cc_basename in
12319          cxx*)
12320	    # FIXME: insert proper C++ library support
12321	    ld_shlibs_CXX=no
12322	    ;;
12323	  *)
12324	    # FIXME: insert proper C++ library support
12325	    ld_shlibs_CXX=no
12326	    ;;
12327	esac
12328	;;
12329
12330      netbsd*)
12331        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12332	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12333	  wlarc=
12334	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12335	  hardcode_direct_CXX=yes
12336	  hardcode_shlibpath_var_CXX=no
12337	fi
12338	# Workaround some broken pre-1.5 toolchains
12339	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12340	;;
12341
12342      *nto* | *qnx*)
12343        ld_shlibs_CXX=yes
12344	;;
12345
12346      openbsd2*)
12347        # C++ shared libraries are fairly broken
12348	ld_shlibs_CXX=no
12349	;;
12350
12351      openbsd*)
12352	if test -f /usr/libexec/ld.so; then
12353	  hardcode_direct_CXX=yes
12354	  hardcode_shlibpath_var_CXX=no
12355	  hardcode_direct_absolute_CXX=yes
12356	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12357	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12358	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12359	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12360	    export_dynamic_flag_spec_CXX='${wl}-E'
12361	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12362	  fi
12363	  output_verbose_link_cmd=func_echo_all
12364	else
12365	  ld_shlibs_CXX=no
12366	fi
12367	;;
12368
12369      osf3* | osf4* | osf5*)
12370        case $cc_basename in
12371          KCC*)
12372	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12373
12374	    # KCC will only create a shared library if the output file
12375	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12376	    # to its proper name (with version) after linking.
12377	    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'
12378
12379	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12380	    hardcode_libdir_separator_CXX=:
12381
12382	    # Archives containing C++ object files must be created using
12383	    # the KAI C++ compiler.
12384	    case $host in
12385	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12386	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12387	    esac
12388	    ;;
12389          RCC*)
12390	    # Rational C++ 2.4.1
12391	    # FIXME: insert proper C++ library support
12392	    ld_shlibs_CXX=no
12393	    ;;
12394          cxx*)
12395	    case $host in
12396	      osf3*)
12397	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12398	        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'
12399	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12400		;;
12401	      *)
12402	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12403	        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'
12404	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12405	          echo "-hidden">> $lib.exp~
12406	          $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~
12407	          $RM $lib.exp'
12408	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12409		;;
12410	    esac
12411
12412	    hardcode_libdir_separator_CXX=:
12413
12414	    # Commands to make compiler produce verbose output that lists
12415	    # what "hidden" libraries, object files and flags are used when
12416	    # linking a shared library.
12417	    #
12418	    # There doesn't appear to be a way to prevent this compiler from
12419	    # explicitly linking system object files so we need to strip them
12420	    # from the output so that they don't get included in the library
12421	    # dependencies.
12422	    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"'
12423	    ;;
12424	  *)
12425	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12426	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12427	      case $host in
12428	        osf3*)
12429	          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'
12430		  ;;
12431	        *)
12432	          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'
12433		  ;;
12434	      esac
12435
12436	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12437	      hardcode_libdir_separator_CXX=:
12438
12439	      # Commands to make compiler produce verbose output that lists
12440	      # what "hidden" libraries, object files and flags are used when
12441	      # linking a shared library.
12442	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12443
12444	    else
12445	      # FIXME: insert proper C++ library support
12446	      ld_shlibs_CXX=no
12447	    fi
12448	    ;;
12449        esac
12450        ;;
12451
12452      psos*)
12453        # FIXME: insert proper C++ library support
12454        ld_shlibs_CXX=no
12455        ;;
12456
12457      sunos4*)
12458        case $cc_basename in
12459          CC*)
12460	    # Sun C++ 4.x
12461	    # FIXME: insert proper C++ library support
12462	    ld_shlibs_CXX=no
12463	    ;;
12464          lcc*)
12465	    # Lucid
12466	    # FIXME: insert proper C++ library support
12467	    ld_shlibs_CXX=no
12468	    ;;
12469          *)
12470	    # FIXME: insert proper C++ library support
12471	    ld_shlibs_CXX=no
12472	    ;;
12473        esac
12474        ;;
12475
12476      solaris*)
12477        case $cc_basename in
12478          CC* | sunCC*)
12479	    # Sun C++ 4.2, 5.x and Centerline C++
12480            archive_cmds_need_lc_CXX=yes
12481	    no_undefined_flag_CXX=' -zdefs'
12482	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12483	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12484	      $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'
12485
12486	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12487	    hardcode_shlibpath_var_CXX=no
12488	    case $host_os in
12489	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12490	      *)
12491		# The compiler driver will combine and reorder linker options,
12492		# but understands `-z linker_flag'.
12493	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12494		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12495	        ;;
12496	    esac
12497	    link_all_deplibs_CXX=yes
12498
12499	    output_verbose_link_cmd='func_echo_all'
12500
12501	    # Archives containing C++ object files must be created using
12502	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12503	    # necessary to make sure instantiated templates are included
12504	    # in the archive.
12505	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12506	    ;;
12507          gcx*)
12508	    # Green Hills C++ Compiler
12509	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12510
12511	    # The C++ compiler must be used to create the archive.
12512	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12513	    ;;
12514          *)
12515	    # GNU C++ compiler with Solaris linker
12516	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12517	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12518	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12519	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12520	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12521		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12522
12523	        # Commands to make compiler produce verbose output that lists
12524	        # what "hidden" libraries, object files and flags are used when
12525	        # linking a shared library.
12526	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12527	      else
12528	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12529	        # platform.
12530	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12531	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12532		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12533
12534	        # Commands to make compiler produce verbose output that lists
12535	        # what "hidden" libraries, object files and flags are used when
12536	        # linking a shared library.
12537	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12538	      fi
12539
12540	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12541	      case $host_os in
12542		solaris2.[0-5] | solaris2.[0-5].*) ;;
12543		*)
12544		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12545		  ;;
12546	      esac
12547	    fi
12548	    ;;
12549        esac
12550        ;;
12551
12552    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12553      no_undefined_flag_CXX='${wl}-z,text'
12554      archive_cmds_need_lc_CXX=no
12555      hardcode_shlibpath_var_CXX=no
12556      runpath_var='LD_RUN_PATH'
12557
12558      case $cc_basename in
12559        CC*)
12560	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12561	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12562	  ;;
12563	*)
12564	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12565	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12566	  ;;
12567      esac
12568      ;;
12569
12570      sysv5* | sco3.2v5* | sco5v6*)
12571	# Note: We can NOT use -z defs as we might desire, because we do not
12572	# link with -lc, and that would cause any symbols used from libc to
12573	# always be unresolved, which means just about no library would
12574	# ever link correctly.  If we're not using GNU ld we use -z text
12575	# though, which does catch some bad symbols but isn't as heavy-handed
12576	# as -z defs.
12577	no_undefined_flag_CXX='${wl}-z,text'
12578	allow_undefined_flag_CXX='${wl}-z,nodefs'
12579	archive_cmds_need_lc_CXX=no
12580	hardcode_shlibpath_var_CXX=no
12581	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12582	hardcode_libdir_separator_CXX=':'
12583	link_all_deplibs_CXX=yes
12584	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12585	runpath_var='LD_RUN_PATH'
12586
12587	case $cc_basename in
12588          CC*)
12589	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12590	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12591	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12592	      '"$old_archive_cmds_CXX"
12593	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12594	      '"$reload_cmds_CXX"
12595	    ;;
12596	  *)
12597	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12598	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12599	    ;;
12600	esac
12601      ;;
12602
12603      tandem*)
12604        case $cc_basename in
12605          NCC*)
12606	    # NonStop-UX NCC 3.20
12607	    # FIXME: insert proper C++ library support
12608	    ld_shlibs_CXX=no
12609	    ;;
12610          *)
12611	    # FIXME: insert proper C++ library support
12612	    ld_shlibs_CXX=no
12613	    ;;
12614        esac
12615        ;;
12616
12617      vxworks*)
12618        # FIXME: insert proper C++ library support
12619        ld_shlibs_CXX=no
12620        ;;
12621
12622      *)
12623        # FIXME: insert proper C++ library support
12624        ld_shlibs_CXX=no
12625        ;;
12626    esac
12627
12628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12629$as_echo "$ld_shlibs_CXX" >&6; }
12630    test "$ld_shlibs_CXX" = no && can_build_shared=no
12631
12632    GCC_CXX="$GXX"
12633    LD_CXX="$LD"
12634
12635    ## CAVEAT EMPTOR:
12636    ## There is no encapsulation within the following macros, do not change
12637    ## the running order or otherwise move them around unless you know exactly
12638    ## what you are doing...
12639    # Dependencies to place before and after the object being linked:
12640predep_objects_CXX=
12641postdep_objects_CXX=
12642predeps_CXX=
12643postdeps_CXX=
12644compiler_lib_search_path_CXX=
12645
12646cat > conftest.$ac_ext <<_LT_EOF
12647class Foo
12648{
12649public:
12650  Foo (void) { a = 0; }
12651private:
12652  int a;
12653};
12654_LT_EOF
12655
12656
12657_lt_libdeps_save_CFLAGS=$CFLAGS
12658case "$CC $CFLAGS " in #(
12659*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
12660*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
12661*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
12662esac
12663
12664if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12665  (eval $ac_compile) 2>&5
12666  ac_status=$?
12667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12668  test $ac_status = 0; }; then
12669  # Parse the compiler output and extract the necessary
12670  # objects, libraries and library flags.
12671
12672  # Sentinel used to keep track of whether or not we are before
12673  # the conftest object file.
12674  pre_test_object_deps_done=no
12675
12676  for p in `eval "$output_verbose_link_cmd"`; do
12677    case ${prev}${p} in
12678
12679    -L* | -R* | -l*)
12680       # Some compilers place space between "-{L,R}" and the path.
12681       # Remove the space.
12682       if test $p = "-L" ||
12683          test $p = "-R"; then
12684	 prev=$p
12685	 continue
12686       fi
12687
12688       # Expand the sysroot to ease extracting the directories later.
12689       if test -z "$prev"; then
12690         case $p in
12691         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
12692         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
12693         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
12694         esac
12695       fi
12696       case $p in
12697       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
12698       esac
12699       if test "$pre_test_object_deps_done" = no; then
12700	 case ${prev} in
12701	 -L | -R)
12702	   # Internal compiler library paths should come after those
12703	   # provided the user.  The postdeps already come after the
12704	   # user supplied libs so there is no need to process them.
12705	   if test -z "$compiler_lib_search_path_CXX"; then
12706	     compiler_lib_search_path_CXX="${prev}${p}"
12707	   else
12708	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12709	   fi
12710	   ;;
12711	 # The "-l" case would never come before the object being
12712	 # linked, so don't bother handling this case.
12713	 esac
12714       else
12715	 if test -z "$postdeps_CXX"; then
12716	   postdeps_CXX="${prev}${p}"
12717	 else
12718	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12719	 fi
12720       fi
12721       prev=
12722       ;;
12723
12724    *.lto.$objext) ;; # Ignore GCC LTO objects
12725    *.$objext)
12726       # This assumes that the test object file only shows up
12727       # once in the compiler output.
12728       if test "$p" = "conftest.$objext"; then
12729	 pre_test_object_deps_done=yes
12730	 continue
12731       fi
12732
12733       if test "$pre_test_object_deps_done" = no; then
12734	 if test -z "$predep_objects_CXX"; then
12735	   predep_objects_CXX="$p"
12736	 else
12737	   predep_objects_CXX="$predep_objects_CXX $p"
12738	 fi
12739       else
12740	 if test -z "$postdep_objects_CXX"; then
12741	   postdep_objects_CXX="$p"
12742	 else
12743	   postdep_objects_CXX="$postdep_objects_CXX $p"
12744	 fi
12745       fi
12746       ;;
12747
12748    *) ;; # Ignore the rest.
12749
12750    esac
12751  done
12752
12753  # Clean up.
12754  rm -f a.out a.exe
12755else
12756  echo "libtool.m4: error: problem compiling CXX test program"
12757fi
12758
12759$RM -f confest.$objext
12760CFLAGS=$_lt_libdeps_save_CFLAGS
12761
12762# PORTME: override above test on systems where it is broken
12763case $host_os in
12764interix[3-9]*)
12765  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12766  # hack all around it, let's just trust "g++" to DTRT.
12767  predep_objects_CXX=
12768  postdep_objects_CXX=
12769  postdeps_CXX=
12770  ;;
12771
12772linux*)
12773  case `$CC -V 2>&1 | sed 5q` in
12774  *Sun\ C*)
12775    # Sun C++ 5.9
12776
12777    # The more standards-conforming stlport4 library is
12778    # incompatible with the Cstd library. Avoid specifying
12779    # it if it's in CXXFLAGS. Ignore libCrun as
12780    # -library=stlport4 depends on it.
12781    case " $CXX $CXXFLAGS " in
12782    *" -library=stlport4 "*)
12783      solaris_use_stlport4=yes
12784      ;;
12785    esac
12786
12787    if test "$solaris_use_stlport4" != yes; then
12788      postdeps_CXX='-library=Cstd -library=Crun'
12789    fi
12790    ;;
12791  esac
12792  ;;
12793
12794solaris*)
12795  case $cc_basename in
12796  CC* | sunCC*)
12797    # The more standards-conforming stlport4 library is
12798    # incompatible with the Cstd library. Avoid specifying
12799    # it if it's in CXXFLAGS. Ignore libCrun as
12800    # -library=stlport4 depends on it.
12801    case " $CXX $CXXFLAGS " in
12802    *" -library=stlport4 "*)
12803      solaris_use_stlport4=yes
12804      ;;
12805    esac
12806
12807    # Adding this requires a known-good setup of shared libraries for
12808    # Sun compiler versions before 5.6, else PIC objects from an old
12809    # archive will be linked into the output, leading to subtle bugs.
12810    if test "$solaris_use_stlport4" != yes; then
12811      postdeps_CXX='-library=Cstd -library=Crun'
12812    fi
12813    ;;
12814  esac
12815  ;;
12816esac
12817
12818
12819case " $postdeps_CXX " in
12820*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12821esac
12822 compiler_lib_search_dirs_CXX=
12823if test -n "${compiler_lib_search_path_CXX}"; then
12824 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12825fi
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857    lt_prog_compiler_wl_CXX=
12858lt_prog_compiler_pic_CXX=
12859lt_prog_compiler_static_CXX=
12860
12861
12862  # C++ specific cases for pic, static, wl, etc.
12863  if test "$GXX" = yes; then
12864    lt_prog_compiler_wl_CXX='-Wl,'
12865    lt_prog_compiler_static_CXX='-static'
12866
12867    case $host_os in
12868    aix*)
12869      # All AIX code is PIC.
12870      if test "$host_cpu" = ia64; then
12871	# AIX 5 now supports IA64 processor
12872	lt_prog_compiler_static_CXX='-Bstatic'
12873      fi
12874      ;;
12875
12876    amigaos*)
12877      case $host_cpu in
12878      powerpc)
12879            # see comment about AmigaOS4 .so support
12880            lt_prog_compiler_pic_CXX='-fPIC'
12881        ;;
12882      m68k)
12883            # FIXME: we need at least 68020 code to build shared libraries, but
12884            # adding the `-m68020' flag to GCC prevents building anything better,
12885            # like `-m68040'.
12886            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12887        ;;
12888      esac
12889      ;;
12890
12891    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12892      # PIC is the default for these OSes.
12893      ;;
12894    mingw* | cygwin* | os2* | pw32* | cegcc*)
12895      # This hack is so that the source file can tell whether it is being
12896      # built for inclusion in a dll (and should export symbols for example).
12897      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12898      # (--disable-auto-import) libraries
12899      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12900      ;;
12901    darwin* | rhapsody*)
12902      # PIC is the default on this platform
12903      # Common symbols not allowed in MH_DYLIB files
12904      lt_prog_compiler_pic_CXX='-fno-common'
12905      ;;
12906    *djgpp*)
12907      # DJGPP does not support shared libraries at all
12908      lt_prog_compiler_pic_CXX=
12909      ;;
12910    haiku*)
12911      # PIC is the default for Haiku.
12912      # The "-static" flag exists, but is broken.
12913      lt_prog_compiler_static_CXX=
12914      ;;
12915    interix[3-9]*)
12916      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12917      # Instead, we relocate shared libraries at runtime.
12918      ;;
12919    sysv4*MP*)
12920      if test -d /usr/nec; then
12921	lt_prog_compiler_pic_CXX=-Kconform_pic
12922      fi
12923      ;;
12924    hpux*)
12925      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12926      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12927      # sets the default TLS model and affects inlining.
12928      case $host_cpu in
12929      hppa*64*)
12930	;;
12931      *)
12932	lt_prog_compiler_pic_CXX='-fPIC'
12933	;;
12934      esac
12935      ;;
12936    *qnx* | *nto*)
12937      # QNX uses GNU C++, but need to define -shared option too, otherwise
12938      # it will coredump.
12939      lt_prog_compiler_pic_CXX='-fPIC -shared'
12940      ;;
12941    *)
12942      lt_prog_compiler_pic_CXX='-fPIC'
12943      ;;
12944    esac
12945  else
12946    case $host_os in
12947      aix[4-9]*)
12948	# All AIX code is PIC.
12949	if test "$host_cpu" = ia64; then
12950	  # AIX 5 now supports IA64 processor
12951	  lt_prog_compiler_static_CXX='-Bstatic'
12952	else
12953	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12954	fi
12955	;;
12956      chorus*)
12957	case $cc_basename in
12958	cxch68*)
12959	  # Green Hills C++ Compiler
12960	  # _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"
12961	  ;;
12962	esac
12963	;;
12964      mingw* | cygwin* | os2* | pw32* | cegcc*)
12965	# This hack is so that the source file can tell whether it is being
12966	# built for inclusion in a dll (and should export symbols for example).
12967	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12968	;;
12969      dgux*)
12970	case $cc_basename in
12971	  ec++*)
12972	    lt_prog_compiler_pic_CXX='-KPIC'
12973	    ;;
12974	  ghcx*)
12975	    # Green Hills C++ Compiler
12976	    lt_prog_compiler_pic_CXX='-pic'
12977	    ;;
12978	  *)
12979	    ;;
12980	esac
12981	;;
12982      freebsd* | dragonfly*)
12983	# FreeBSD uses GNU C++
12984	;;
12985      hpux9* | hpux10* | hpux11*)
12986	case $cc_basename in
12987	  CC*)
12988	    lt_prog_compiler_wl_CXX='-Wl,'
12989	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12990	    if test "$host_cpu" != ia64; then
12991	      lt_prog_compiler_pic_CXX='+Z'
12992	    fi
12993	    ;;
12994	  aCC*)
12995	    lt_prog_compiler_wl_CXX='-Wl,'
12996	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12997	    case $host_cpu in
12998	    hppa*64*|ia64*)
12999	      # +Z the default
13000	      ;;
13001	    *)
13002	      lt_prog_compiler_pic_CXX='+Z'
13003	      ;;
13004	    esac
13005	    ;;
13006	  *)
13007	    ;;
13008	esac
13009	;;
13010      interix*)
13011	# This is c89, which is MS Visual C++ (no shared libs)
13012	# Anyone wants to do a port?
13013	;;
13014      irix5* | irix6* | nonstopux*)
13015	case $cc_basename in
13016	  CC*)
13017	    lt_prog_compiler_wl_CXX='-Wl,'
13018	    lt_prog_compiler_static_CXX='-non_shared'
13019	    # CC pic flag -KPIC is the default.
13020	    ;;
13021	  *)
13022	    ;;
13023	esac
13024	;;
13025      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13026	case $cc_basename in
13027	  KCC*)
13028	    # KAI C++ Compiler
13029	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13030	    lt_prog_compiler_pic_CXX='-fPIC'
13031	    ;;
13032	  ecpc* )
13033	    # old Intel C++ for x86_64 which still supported -KPIC.
13034	    lt_prog_compiler_wl_CXX='-Wl,'
13035	    lt_prog_compiler_pic_CXX='-KPIC'
13036	    lt_prog_compiler_static_CXX='-static'
13037	    ;;
13038	  icpc* )
13039	    # Intel C++, used to be incompatible with GCC.
13040	    # ICC 10 doesn't accept -KPIC any more.
13041	    lt_prog_compiler_wl_CXX='-Wl,'
13042	    lt_prog_compiler_pic_CXX='-fPIC'
13043	    lt_prog_compiler_static_CXX='-static'
13044	    ;;
13045	  pgCC* | pgcpp*)
13046	    # Portland Group C++ compiler
13047	    lt_prog_compiler_wl_CXX='-Wl,'
13048	    lt_prog_compiler_pic_CXX='-fpic'
13049	    lt_prog_compiler_static_CXX='-Bstatic'
13050	    ;;
13051	  cxx*)
13052	    # Compaq C++
13053	    # Make sure the PIC flag is empty.  It appears that all Alpha
13054	    # Linux and Compaq Tru64 Unix objects are PIC.
13055	    lt_prog_compiler_pic_CXX=
13056	    lt_prog_compiler_static_CXX='-non_shared'
13057	    ;;
13058	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13059	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13060	    lt_prog_compiler_wl_CXX='-Wl,'
13061	    lt_prog_compiler_pic_CXX='-qpic'
13062	    lt_prog_compiler_static_CXX='-qstaticlink'
13063	    ;;
13064	  *)
13065	    case `$CC -V 2>&1 | sed 5q` in
13066	    *Sun\ C*)
13067	      # Sun C++ 5.9
13068	      lt_prog_compiler_pic_CXX='-KPIC'
13069	      lt_prog_compiler_static_CXX='-Bstatic'
13070	      lt_prog_compiler_wl_CXX='-Qoption ld '
13071	      ;;
13072	    esac
13073	    ;;
13074	esac
13075	;;
13076      lynxos*)
13077	;;
13078      m88k*)
13079	;;
13080      mvs*)
13081	case $cc_basename in
13082	  cxx*)
13083	    lt_prog_compiler_pic_CXX='-W c,exportall'
13084	    ;;
13085	  *)
13086	    ;;
13087	esac
13088	;;
13089      netbsd*)
13090	;;
13091      *qnx* | *nto*)
13092        # QNX uses GNU C++, but need to define -shared option too, otherwise
13093        # it will coredump.
13094        lt_prog_compiler_pic_CXX='-fPIC -shared'
13095        ;;
13096      osf3* | osf4* | osf5*)
13097	case $cc_basename in
13098	  KCC*)
13099	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13100	    ;;
13101	  RCC*)
13102	    # Rational C++ 2.4.1
13103	    lt_prog_compiler_pic_CXX='-pic'
13104	    ;;
13105	  cxx*)
13106	    # Digital/Compaq C++
13107	    lt_prog_compiler_wl_CXX='-Wl,'
13108	    # Make sure the PIC flag is empty.  It appears that all Alpha
13109	    # Linux and Compaq Tru64 Unix objects are PIC.
13110	    lt_prog_compiler_pic_CXX=
13111	    lt_prog_compiler_static_CXX='-non_shared'
13112	    ;;
13113	  *)
13114	    ;;
13115	esac
13116	;;
13117      psos*)
13118	;;
13119      solaris*)
13120	case $cc_basename in
13121	  CC* | sunCC*)
13122	    # Sun C++ 4.2, 5.x and Centerline C++
13123	    lt_prog_compiler_pic_CXX='-KPIC'
13124	    lt_prog_compiler_static_CXX='-Bstatic'
13125	    lt_prog_compiler_wl_CXX='-Qoption ld '
13126	    ;;
13127	  gcx*)
13128	    # Green Hills C++ Compiler
13129	    lt_prog_compiler_pic_CXX='-PIC'
13130	    ;;
13131	  *)
13132	    ;;
13133	esac
13134	;;
13135      sunos4*)
13136	case $cc_basename in
13137	  CC*)
13138	    # Sun C++ 4.x
13139	    lt_prog_compiler_pic_CXX='-pic'
13140	    lt_prog_compiler_static_CXX='-Bstatic'
13141	    ;;
13142	  lcc*)
13143	    # Lucid
13144	    lt_prog_compiler_pic_CXX='-pic'
13145	    ;;
13146	  *)
13147	    ;;
13148	esac
13149	;;
13150      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13151	case $cc_basename in
13152	  CC*)
13153	    lt_prog_compiler_wl_CXX='-Wl,'
13154	    lt_prog_compiler_pic_CXX='-KPIC'
13155	    lt_prog_compiler_static_CXX='-Bstatic'
13156	    ;;
13157	esac
13158	;;
13159      tandem*)
13160	case $cc_basename in
13161	  NCC*)
13162	    # NonStop-UX NCC 3.20
13163	    lt_prog_compiler_pic_CXX='-KPIC'
13164	    ;;
13165	  *)
13166	    ;;
13167	esac
13168	;;
13169      vxworks*)
13170	;;
13171      *)
13172	lt_prog_compiler_can_build_shared_CXX=no
13173	;;
13174    esac
13175  fi
13176
13177case $host_os in
13178  # For platforms which do not support PIC, -DPIC is meaningless:
13179  *djgpp*)
13180    lt_prog_compiler_pic_CXX=
13181    ;;
13182  *)
13183    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13184    ;;
13185esac
13186
13187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13188$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13189if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13190  $as_echo_n "(cached) " >&6
13191else
13192  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13193fi
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13195$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13196lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13197
13198#
13199# Check to make sure the PIC flag actually works.
13200#
13201if test -n "$lt_prog_compiler_pic_CXX"; then
13202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13203$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13204if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13205  $as_echo_n "(cached) " >&6
13206else
13207  lt_cv_prog_compiler_pic_works_CXX=no
13208   ac_outfile=conftest.$ac_objext
13209   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13210   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13211   # Insert the option either (1) after the last *FLAGS variable, or
13212   # (2) before a word containing "conftest.", or (3) at the end.
13213   # Note that $ac_compile itself does not contain backslashes and begins
13214   # with a dollar sign (not a hyphen), so the echo should work correctly.
13215   # The option is referenced via a variable to avoid confusing sed.
13216   lt_compile=`echo "$ac_compile" | $SED \
13217   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13218   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13219   -e 's:$: $lt_compiler_flag:'`
13220   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13221   (eval "$lt_compile" 2>conftest.err)
13222   ac_status=$?
13223   cat conftest.err >&5
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   if (exit $ac_status) && test -s "$ac_outfile"; then
13226     # The compiler can only warn and ignore the option if not recognized
13227     # So say no if there are warnings other than the usual output.
13228     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13229     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13230     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13231       lt_cv_prog_compiler_pic_works_CXX=yes
13232     fi
13233   fi
13234   $RM conftest*
13235
13236fi
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13238$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13239
13240if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13241    case $lt_prog_compiler_pic_CXX in
13242     "" | " "*) ;;
13243     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13244     esac
13245else
13246    lt_prog_compiler_pic_CXX=
13247     lt_prog_compiler_can_build_shared_CXX=no
13248fi
13249
13250fi
13251
13252
13253
13254
13255
13256#
13257# Check to make sure the static flag actually works.
13258#
13259wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13261$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13262if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13263  $as_echo_n "(cached) " >&6
13264else
13265  lt_cv_prog_compiler_static_works_CXX=no
13266   save_LDFLAGS="$LDFLAGS"
13267   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13268   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13269   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13270     # The linker can only warn and ignore the option if not recognized
13271     # So say no if there are warnings
13272     if test -s conftest.err; then
13273       # Append any errors to the config.log.
13274       cat conftest.err 1>&5
13275       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13276       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13277       if diff conftest.exp conftest.er2 >/dev/null; then
13278         lt_cv_prog_compiler_static_works_CXX=yes
13279       fi
13280     else
13281       lt_cv_prog_compiler_static_works_CXX=yes
13282     fi
13283   fi
13284   $RM -r conftest*
13285   LDFLAGS="$save_LDFLAGS"
13286
13287fi
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13289$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13290
13291if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13292    :
13293else
13294    lt_prog_compiler_static_CXX=
13295fi
13296
13297
13298
13299
13300    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13301$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13302if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13303  $as_echo_n "(cached) " >&6
13304else
13305  lt_cv_prog_compiler_c_o_CXX=no
13306   $RM -r conftest 2>/dev/null
13307   mkdir conftest
13308   cd conftest
13309   mkdir out
13310   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13311
13312   lt_compiler_flag="-o out/conftest2.$ac_objext"
13313   # Insert the option either (1) after the last *FLAGS variable, or
13314   # (2) before a word containing "conftest.", or (3) at the end.
13315   # Note that $ac_compile itself does not contain backslashes and begins
13316   # with a dollar sign (not a hyphen), so the echo should work correctly.
13317   lt_compile=`echo "$ac_compile" | $SED \
13318   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13319   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13320   -e 's:$: $lt_compiler_flag:'`
13321   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13322   (eval "$lt_compile" 2>out/conftest.err)
13323   ac_status=$?
13324   cat out/conftest.err >&5
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13327   then
13328     # The compiler can only warn and ignore the option if not recognized
13329     # So say no if there are warnings
13330     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13331     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13332     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13333       lt_cv_prog_compiler_c_o_CXX=yes
13334     fi
13335   fi
13336   chmod u+w . 2>&5
13337   $RM conftest*
13338   # SGI C++ compiler will create directory out/ii_files/ for
13339   # template instantiation
13340   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13341   $RM out/* && rmdir out
13342   cd ..
13343   $RM -r conftest
13344   $RM conftest*
13345
13346fi
13347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13348$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13349
13350
13351
13352    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13353$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13354if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13355  $as_echo_n "(cached) " >&6
13356else
13357  lt_cv_prog_compiler_c_o_CXX=no
13358   $RM -r conftest 2>/dev/null
13359   mkdir conftest
13360   cd conftest
13361   mkdir out
13362   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13363
13364   lt_compiler_flag="-o out/conftest2.$ac_objext"
13365   # Insert the option either (1) after the last *FLAGS variable, or
13366   # (2) before a word containing "conftest.", or (3) at the end.
13367   # Note that $ac_compile itself does not contain backslashes and begins
13368   # with a dollar sign (not a hyphen), so the echo should work correctly.
13369   lt_compile=`echo "$ac_compile" | $SED \
13370   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13371   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13372   -e 's:$: $lt_compiler_flag:'`
13373   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13374   (eval "$lt_compile" 2>out/conftest.err)
13375   ac_status=$?
13376   cat out/conftest.err >&5
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13379   then
13380     # The compiler can only warn and ignore the option if not recognized
13381     # So say no if there are warnings
13382     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13383     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13384     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13385       lt_cv_prog_compiler_c_o_CXX=yes
13386     fi
13387   fi
13388   chmod u+w . 2>&5
13389   $RM conftest*
13390   # SGI C++ compiler will create directory out/ii_files/ for
13391   # template instantiation
13392   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13393   $RM out/* && rmdir out
13394   cd ..
13395   $RM -r conftest
13396   $RM conftest*
13397
13398fi
13399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13400$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13401
13402
13403
13404
13405hard_links="nottested"
13406if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13407  # do not overwrite the value of need_locks provided by the user
13408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13409$as_echo_n "checking if we can lock with hard links... " >&6; }
13410  hard_links=yes
13411  $RM conftest*
13412  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13413  touch conftest.a
13414  ln conftest.a conftest.b 2>&5 || hard_links=no
13415  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13417$as_echo "$hard_links" >&6; }
13418  if test "$hard_links" = no; then
13419    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13420$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13421    need_locks=warn
13422  fi
13423else
13424  need_locks=no
13425fi
13426
13427
13428
13429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13430$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13431
13432  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13433  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13434  case $host_os in
13435  aix[4-9]*)
13436    # If we're using GNU nm, then we don't want the "-C" option.
13437    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13438    # Also, AIX nm treats weak defined symbols like other global defined
13439    # symbols, whereas GNU nm marks them as "W".
13440    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13441      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'
13442    else
13443      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'
13444    fi
13445    ;;
13446  pw32*)
13447    export_symbols_cmds_CXX="$ltdll_cmds"
13448    ;;
13449  cygwin* | mingw* | cegcc*)
13450    case $cc_basename in
13451    cl*)
13452      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13453      ;;
13454    *)
13455      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'
13456      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13457      ;;
13458    esac
13459    ;;
13460  *)
13461    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13462    ;;
13463  esac
13464
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13466$as_echo "$ld_shlibs_CXX" >&6; }
13467test "$ld_shlibs_CXX" = no && can_build_shared=no
13468
13469with_gnu_ld_CXX=$with_gnu_ld
13470
13471
13472
13473
13474
13475
13476#
13477# Do we need to explicitly link libc?
13478#
13479case "x$archive_cmds_need_lc_CXX" in
13480x|xyes)
13481  # Assume -lc should be added
13482  archive_cmds_need_lc_CXX=yes
13483
13484  if test "$enable_shared" = yes && test "$GCC" = yes; then
13485    case $archive_cmds_CXX in
13486    *'~'*)
13487      # FIXME: we may have to deal with multi-command sequences.
13488      ;;
13489    '$CC '*)
13490      # Test whether the compiler implicitly links with -lc since on some
13491      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13492      # to ld, don't add -lc before -lgcc.
13493      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13494$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13495if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13496  $as_echo_n "(cached) " >&6
13497else
13498  $RM conftest*
13499	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13500
13501	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13502  (eval $ac_compile) 2>&5
13503  ac_status=$?
13504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13505  test $ac_status = 0; } 2>conftest.err; then
13506	  soname=conftest
13507	  lib=conftest
13508	  libobjs=conftest.$ac_objext
13509	  deplibs=
13510	  wl=$lt_prog_compiler_wl_CXX
13511	  pic_flag=$lt_prog_compiler_pic_CXX
13512	  compiler_flags=-v
13513	  linker_flags=-v
13514	  verstring=
13515	  output_objdir=.
13516	  libname=conftest
13517	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13518	  allow_undefined_flag_CXX=
13519	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13520  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13521  ac_status=$?
13522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13523  test $ac_status = 0; }
13524	  then
13525	    lt_cv_archive_cmds_need_lc_CXX=no
13526	  else
13527	    lt_cv_archive_cmds_need_lc_CXX=yes
13528	  fi
13529	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13530	else
13531	  cat conftest.err 1>&5
13532	fi
13533	$RM conftest*
13534
13535fi
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13537$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13538      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13539      ;;
13540    esac
13541  fi
13542  ;;
13543esac
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13607$as_echo_n "checking dynamic linker characteristics... " >&6; }
13608
13609library_names_spec=
13610libname_spec='lib$name'
13611soname_spec=
13612shrext_cmds=".so"
13613postinstall_cmds=
13614postuninstall_cmds=
13615finish_cmds=
13616finish_eval=
13617shlibpath_var=
13618shlibpath_overrides_runpath=unknown
13619version_type=none
13620dynamic_linker="$host_os ld.so"
13621sys_lib_dlsearch_path_spec="/lib /usr/lib"
13622need_lib_prefix=unknown
13623hardcode_into_libs=no
13624
13625# when you set need_version to no, make sure it does not cause -set_version
13626# flags to be left without arguments
13627need_version=unknown
13628
13629case $host_os in
13630aix3*)
13631  version_type=linux # correct to gnu/linux during the next big refactor
13632  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13633  shlibpath_var=LIBPATH
13634
13635  # AIX 3 has no versioning support, so we append a major version to the name.
13636  soname_spec='${libname}${release}${shared_ext}$major'
13637  ;;
13638
13639aix[4-9]*)
13640  version_type=linux # correct to gnu/linux during the next big refactor
13641  need_lib_prefix=no
13642  need_version=no
13643  hardcode_into_libs=yes
13644  if test "$host_cpu" = ia64; then
13645    # AIX 5 supports IA64
13646    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13647    shlibpath_var=LD_LIBRARY_PATH
13648  else
13649    # With GCC up to 2.95.x, collect2 would create an import file
13650    # for dependence libraries.  The import file would start with
13651    # the line `#! .'.  This would cause the generated library to
13652    # depend on `.', always an invalid library.  This was fixed in
13653    # development snapshots of GCC prior to 3.0.
13654    case $host_os in
13655      aix4 | aix4.[01] | aix4.[01].*)
13656      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13657	   echo ' yes '
13658	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13659	:
13660      else
13661	can_build_shared=no
13662      fi
13663      ;;
13664    esac
13665    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13666    # soname into executable. Probably we can add versioning support to
13667    # collect2, so additional links can be useful in future.
13668    if test "$aix_use_runtimelinking" = yes; then
13669      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13670      # instead of lib<name>.a to let people know that these are not
13671      # typical AIX shared libraries.
13672      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13673    else
13674      # We preserve .a as extension for shared libraries through AIX4.2
13675      # and later when we are not doing run time linking.
13676      library_names_spec='${libname}${release}.a $libname.a'
13677      soname_spec='${libname}${release}${shared_ext}$major'
13678    fi
13679    shlibpath_var=LIBPATH
13680  fi
13681  ;;
13682
13683amigaos*)
13684  case $host_cpu in
13685  powerpc)
13686    # Since July 2007 AmigaOS4 officially supports .so libraries.
13687    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13688    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13689    ;;
13690  m68k)
13691    library_names_spec='$libname.ixlibrary $libname.a'
13692    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13693    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'
13694    ;;
13695  esac
13696  ;;
13697
13698beos*)
13699  library_names_spec='${libname}${shared_ext}'
13700  dynamic_linker="$host_os ld.so"
13701  shlibpath_var=LIBRARY_PATH
13702  ;;
13703
13704bsdi[45]*)
13705  version_type=linux # correct to gnu/linux during the next big refactor
13706  need_version=no
13707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13708  soname_spec='${libname}${release}${shared_ext}$major'
13709  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13710  shlibpath_var=LD_LIBRARY_PATH
13711  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13712  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13713  # the default ld.so.conf also contains /usr/contrib/lib and
13714  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13715  # libtool to hard-code these into programs
13716  ;;
13717
13718cygwin* | mingw* | pw32* | cegcc*)
13719  version_type=windows
13720  shrext_cmds=".dll"
13721  need_version=no
13722  need_lib_prefix=no
13723
13724  case $GCC,$cc_basename in
13725  yes,*)
13726    # gcc
13727    library_names_spec='$libname.dll.a'
13728    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13729    postinstall_cmds='base_file=`basename \${file}`~
13730      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13731      dldir=$destdir/`dirname \$dlpath`~
13732      test -d \$dldir || mkdir -p \$dldir~
13733      $install_prog $dir/$dlname \$dldir/$dlname~
13734      chmod a+x \$dldir/$dlname~
13735      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13736        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13737      fi'
13738    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13739      dlpath=$dir/\$dldll~
13740       $RM \$dlpath'
13741    shlibpath_overrides_runpath=yes
13742
13743    case $host_os in
13744    cygwin*)
13745      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13746      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13747
13748      ;;
13749    mingw* | cegcc*)
13750      # MinGW DLLs use traditional 'lib' prefix
13751      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13752      ;;
13753    pw32*)
13754      # pw32 DLLs use 'pw' prefix rather than 'lib'
13755      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13756      ;;
13757    esac
13758    dynamic_linker='Win32 ld.exe'
13759    ;;
13760
13761  *,cl*)
13762    # Native MSVC
13763    libname_spec='$name'
13764    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13765    library_names_spec='${libname}.dll.lib'
13766
13767    case $build_os in
13768    mingw*)
13769      sys_lib_search_path_spec=
13770      lt_save_ifs=$IFS
13771      IFS=';'
13772      for lt_path in $LIB
13773      do
13774        IFS=$lt_save_ifs
13775        # Let DOS variable expansion print the short 8.3 style file name.
13776        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13777        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13778      done
13779      IFS=$lt_save_ifs
13780      # Convert to MSYS style.
13781      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13782      ;;
13783    cygwin*)
13784      # Convert to unix form, then to dos form, then back to unix form
13785      # but this time dos style (no spaces!) so that the unix form looks
13786      # like /cygdrive/c/PROGRA~1:/cygdr...
13787      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13788      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13789      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13790      ;;
13791    *)
13792      sys_lib_search_path_spec="$LIB"
13793      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13794        # It is most probably a Windows format PATH.
13795        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13796      else
13797        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13798      fi
13799      # FIXME: find the short name or the path components, as spaces are
13800      # common. (e.g. "Program Files" -> "PROGRA~1")
13801      ;;
13802    esac
13803
13804    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13805    postinstall_cmds='base_file=`basename \${file}`~
13806      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13807      dldir=$destdir/`dirname \$dlpath`~
13808      test -d \$dldir || mkdir -p \$dldir~
13809      $install_prog $dir/$dlname \$dldir/$dlname'
13810    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13811      dlpath=$dir/\$dldll~
13812       $RM \$dlpath'
13813    shlibpath_overrides_runpath=yes
13814    dynamic_linker='Win32 link.exe'
13815    ;;
13816
13817  *)
13818    # Assume MSVC wrapper
13819    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13820    dynamic_linker='Win32 ld.exe'
13821    ;;
13822  esac
13823  # FIXME: first we should search . and the directory the executable is in
13824  shlibpath_var=PATH
13825  ;;
13826
13827darwin* | rhapsody*)
13828  dynamic_linker="$host_os dyld"
13829  version_type=darwin
13830  need_lib_prefix=no
13831  need_version=no
13832  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13833  soname_spec='${libname}${release}${major}$shared_ext'
13834  shlibpath_overrides_runpath=yes
13835  shlibpath_var=DYLD_LIBRARY_PATH
13836  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13837
13838  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13839  ;;
13840
13841dgux*)
13842  version_type=linux # correct to gnu/linux during the next big refactor
13843  need_lib_prefix=no
13844  need_version=no
13845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13846  soname_spec='${libname}${release}${shared_ext}$major'
13847  shlibpath_var=LD_LIBRARY_PATH
13848  ;;
13849
13850freebsd* | dragonfly*)
13851  # DragonFly does not have aout.  When/if they implement a new
13852  # versioning mechanism, adjust this.
13853  if test -x /usr/bin/objformat; then
13854    objformat=`/usr/bin/objformat`
13855  else
13856    case $host_os in
13857    freebsd[23].*) objformat=aout ;;
13858    *) objformat=elf ;;
13859    esac
13860  fi
13861  version_type=freebsd-$objformat
13862  case $version_type in
13863    freebsd-elf*)
13864      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13865      need_version=no
13866      need_lib_prefix=no
13867      ;;
13868    freebsd-*)
13869      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13870      need_version=yes
13871      ;;
13872  esac
13873  shlibpath_var=LD_LIBRARY_PATH
13874  case $host_os in
13875  freebsd2.*)
13876    shlibpath_overrides_runpath=yes
13877    ;;
13878  freebsd3.[01]* | freebsdelf3.[01]*)
13879    shlibpath_overrides_runpath=yes
13880    hardcode_into_libs=yes
13881    ;;
13882  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13883  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13884    shlibpath_overrides_runpath=no
13885    hardcode_into_libs=yes
13886    ;;
13887  *) # from 4.6 on, and DragonFly
13888    shlibpath_overrides_runpath=yes
13889    hardcode_into_libs=yes
13890    ;;
13891  esac
13892  ;;
13893
13894gnu*)
13895  version_type=linux # correct to gnu/linux during the next big refactor
13896  need_lib_prefix=no
13897  need_version=no
13898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13899  soname_spec='${libname}${release}${shared_ext}$major'
13900  shlibpath_var=LD_LIBRARY_PATH
13901  shlibpath_overrides_runpath=no
13902  hardcode_into_libs=yes
13903  ;;
13904
13905haiku*)
13906  version_type=linux # correct to gnu/linux during the next big refactor
13907  need_lib_prefix=no
13908  need_version=no
13909  dynamic_linker="$host_os runtime_loader"
13910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13911  soname_spec='${libname}${release}${shared_ext}$major'
13912  shlibpath_var=LIBRARY_PATH
13913  shlibpath_overrides_runpath=yes
13914  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13915  hardcode_into_libs=yes
13916  ;;
13917
13918hpux9* | hpux10* | hpux11*)
13919  # Give a soname corresponding to the major version so that dld.sl refuses to
13920  # link against other versions.
13921  version_type=sunos
13922  need_lib_prefix=no
13923  need_version=no
13924  case $host_cpu in
13925  ia64*)
13926    shrext_cmds='.so'
13927    hardcode_into_libs=yes
13928    dynamic_linker="$host_os dld.so"
13929    shlibpath_var=LD_LIBRARY_PATH
13930    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13931    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13932    soname_spec='${libname}${release}${shared_ext}$major'
13933    if test "X$HPUX_IA64_MODE" = X32; then
13934      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13935    else
13936      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13937    fi
13938    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13939    ;;
13940  hppa*64*)
13941    shrext_cmds='.sl'
13942    hardcode_into_libs=yes
13943    dynamic_linker="$host_os dld.sl"
13944    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13945    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13946    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13947    soname_spec='${libname}${release}${shared_ext}$major'
13948    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13949    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13950    ;;
13951  *)
13952    shrext_cmds='.sl'
13953    dynamic_linker="$host_os dld.sl"
13954    shlibpath_var=SHLIB_PATH
13955    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13956    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13957    soname_spec='${libname}${release}${shared_ext}$major'
13958    ;;
13959  esac
13960  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13961  postinstall_cmds='chmod 555 $lib'
13962  # or fails outright, so override atomically:
13963  install_override_mode=555
13964  ;;
13965
13966interix[3-9]*)
13967  version_type=linux # correct to gnu/linux during the next big refactor
13968  need_lib_prefix=no
13969  need_version=no
13970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13971  soname_spec='${libname}${release}${shared_ext}$major'
13972  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13973  shlibpath_var=LD_LIBRARY_PATH
13974  shlibpath_overrides_runpath=no
13975  hardcode_into_libs=yes
13976  ;;
13977
13978irix5* | irix6* | nonstopux*)
13979  case $host_os in
13980    nonstopux*) version_type=nonstopux ;;
13981    *)
13982	if test "$lt_cv_prog_gnu_ld" = yes; then
13983		version_type=linux # correct to gnu/linux during the next big refactor
13984	else
13985		version_type=irix
13986	fi ;;
13987  esac
13988  need_lib_prefix=no
13989  need_version=no
13990  soname_spec='${libname}${release}${shared_ext}$major'
13991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13992  case $host_os in
13993  irix5* | nonstopux*)
13994    libsuff= shlibsuff=
13995    ;;
13996  *)
13997    case $LD in # libtool.m4 will add one of these switches to LD
13998    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13999      libsuff= shlibsuff= libmagic=32-bit;;
14000    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14001      libsuff=32 shlibsuff=N32 libmagic=N32;;
14002    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14003      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14004    *) libsuff= shlibsuff= libmagic=never-match;;
14005    esac
14006    ;;
14007  esac
14008  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14009  shlibpath_overrides_runpath=no
14010  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14011  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14012  hardcode_into_libs=yes
14013  ;;
14014
14015# No shared lib support for Linux oldld, aout, or coff.
14016linux*oldld* | linux*aout* | linux*coff*)
14017  dynamic_linker=no
14018  ;;
14019
14020# This must be glibc/ELF.
14021linux* | k*bsd*-gnu | kopensolaris*-gnu)
14022  version_type=linux # correct to gnu/linux during the next big refactor
14023  need_lib_prefix=no
14024  need_version=no
14025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14026  soname_spec='${libname}${release}${shared_ext}$major'
14027  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14028  shlibpath_var=LD_LIBRARY_PATH
14029  shlibpath_overrides_runpath=no
14030
14031  # Some binutils ld are patched to set DT_RUNPATH
14032  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14033  $as_echo_n "(cached) " >&6
14034else
14035  lt_cv_shlibpath_overrides_runpath=no
14036    save_LDFLAGS=$LDFLAGS
14037    save_libdir=$libdir
14038    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14039	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14040    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041/* end confdefs.h.  */
14042
14043int
14044main ()
14045{
14046
14047  ;
14048  return 0;
14049}
14050_ACEOF
14051if ac_fn_cxx_try_link "$LINENO"; then :
14052  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14053  lt_cv_shlibpath_overrides_runpath=yes
14054fi
14055fi
14056rm -f core conftest.err conftest.$ac_objext \
14057    conftest$ac_exeext conftest.$ac_ext
14058    LDFLAGS=$save_LDFLAGS
14059    libdir=$save_libdir
14060
14061fi
14062
14063  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14064
14065  # This implies no fast_install, which is unacceptable.
14066  # Some rework will be needed to allow for fast_install
14067  # before this can be enabled.
14068  hardcode_into_libs=yes
14069
14070  # Append ld.so.conf contents to the search path
14071  if test -f /etc/ld.so.conf; then
14072    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' ' '`
14073    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14074  fi
14075
14076  # We used to test for /lib/ld.so.1 and disable shared libraries on
14077  # powerpc, because MkLinux only supported shared libraries with the
14078  # GNU dynamic linker.  Since this was broken with cross compilers,
14079  # most powerpc-linux boxes support dynamic linking these days and
14080  # people can always --disable-shared, the test was removed, and we
14081  # assume the GNU/Linux dynamic linker is in use.
14082  dynamic_linker='GNU/Linux ld.so'
14083  ;;
14084
14085netbsd*)
14086  version_type=sunos
14087  need_lib_prefix=no
14088  need_version=no
14089  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14090    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14091    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14092    dynamic_linker='NetBSD (a.out) ld.so'
14093  else
14094    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14095    soname_spec='${libname}${release}${shared_ext}$major'
14096    dynamic_linker='NetBSD ld.elf_so'
14097  fi
14098  shlibpath_var=LD_LIBRARY_PATH
14099  shlibpath_overrides_runpath=yes
14100  hardcode_into_libs=yes
14101  ;;
14102
14103newsos6)
14104  version_type=linux # correct to gnu/linux during the next big refactor
14105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14106  shlibpath_var=LD_LIBRARY_PATH
14107  shlibpath_overrides_runpath=yes
14108  ;;
14109
14110*nto* | *qnx*)
14111  version_type=qnx
14112  need_lib_prefix=no
14113  need_version=no
14114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14115  soname_spec='${libname}${release}${shared_ext}$major'
14116  shlibpath_var=LD_LIBRARY_PATH
14117  shlibpath_overrides_runpath=no
14118  hardcode_into_libs=yes
14119  dynamic_linker='ldqnx.so'
14120  ;;
14121
14122openbsd*)
14123  version_type=sunos
14124  sys_lib_dlsearch_path_spec="/usr/lib"
14125  need_lib_prefix=no
14126  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14127  case $host_os in
14128    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14129    *)				need_version=no  ;;
14130  esac
14131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14132  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14133  shlibpath_var=LD_LIBRARY_PATH
14134  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14135    case $host_os in
14136      openbsd2.[89] | openbsd2.[89].*)
14137	shlibpath_overrides_runpath=no
14138	;;
14139      *)
14140	shlibpath_overrides_runpath=yes
14141	;;
14142      esac
14143  else
14144    shlibpath_overrides_runpath=yes
14145  fi
14146  ;;
14147
14148os2*)
14149  libname_spec='$name'
14150  shrext_cmds=".dll"
14151  need_lib_prefix=no
14152  library_names_spec='$libname${shared_ext} $libname.a'
14153  dynamic_linker='OS/2 ld.exe'
14154  shlibpath_var=LIBPATH
14155  ;;
14156
14157osf3* | osf4* | osf5*)
14158  version_type=osf
14159  need_lib_prefix=no
14160  need_version=no
14161  soname_spec='${libname}${release}${shared_ext}$major'
14162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14163  shlibpath_var=LD_LIBRARY_PATH
14164  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14165  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14166  ;;
14167
14168rdos*)
14169  dynamic_linker=no
14170  ;;
14171
14172solaris*)
14173  version_type=linux # correct to gnu/linux during the next big refactor
14174  need_lib_prefix=no
14175  need_version=no
14176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177  soname_spec='${libname}${release}${shared_ext}$major'
14178  shlibpath_var=LD_LIBRARY_PATH
14179  shlibpath_overrides_runpath=yes
14180  hardcode_into_libs=yes
14181  # ldd complains unless libraries are executable
14182  postinstall_cmds='chmod +x $lib'
14183  ;;
14184
14185sunos4*)
14186  version_type=sunos
14187  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14188  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14189  shlibpath_var=LD_LIBRARY_PATH
14190  shlibpath_overrides_runpath=yes
14191  if test "$with_gnu_ld" = yes; then
14192    need_lib_prefix=no
14193  fi
14194  need_version=yes
14195  ;;
14196
14197sysv4 | sysv4.3*)
14198  version_type=linux # correct to gnu/linux during the next big refactor
14199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14200  soname_spec='${libname}${release}${shared_ext}$major'
14201  shlibpath_var=LD_LIBRARY_PATH
14202  case $host_vendor in
14203    sni)
14204      shlibpath_overrides_runpath=no
14205      need_lib_prefix=no
14206      runpath_var=LD_RUN_PATH
14207      ;;
14208    siemens)
14209      need_lib_prefix=no
14210      ;;
14211    motorola)
14212      need_lib_prefix=no
14213      need_version=no
14214      shlibpath_overrides_runpath=no
14215      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14216      ;;
14217  esac
14218  ;;
14219
14220sysv4*MP*)
14221  if test -d /usr/nec ;then
14222    version_type=linux # correct to gnu/linux during the next big refactor
14223    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14224    soname_spec='$libname${shared_ext}.$major'
14225    shlibpath_var=LD_LIBRARY_PATH
14226  fi
14227  ;;
14228
14229sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14230  version_type=freebsd-elf
14231  need_lib_prefix=no
14232  need_version=no
14233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14234  soname_spec='${libname}${release}${shared_ext}$major'
14235  shlibpath_var=LD_LIBRARY_PATH
14236  shlibpath_overrides_runpath=yes
14237  hardcode_into_libs=yes
14238  if test "$with_gnu_ld" = yes; then
14239    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14240  else
14241    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14242    case $host_os in
14243      sco3.2v5*)
14244        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14245	;;
14246    esac
14247  fi
14248  sys_lib_dlsearch_path_spec='/usr/lib'
14249  ;;
14250
14251tpf*)
14252  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14253  version_type=linux # correct to gnu/linux during the next big refactor
14254  need_lib_prefix=no
14255  need_version=no
14256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14257  shlibpath_var=LD_LIBRARY_PATH
14258  shlibpath_overrides_runpath=no
14259  hardcode_into_libs=yes
14260  ;;
14261
14262uts4*)
14263  version_type=linux # correct to gnu/linux during the next big refactor
14264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265  soname_spec='${libname}${release}${shared_ext}$major'
14266  shlibpath_var=LD_LIBRARY_PATH
14267  ;;
14268
14269*)
14270  dynamic_linker=no
14271  ;;
14272esac
14273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14274$as_echo "$dynamic_linker" >&6; }
14275test "$dynamic_linker" = no && can_build_shared=no
14276
14277variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14278if test "$GCC" = yes; then
14279  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14280fi
14281
14282if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14283  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14284fi
14285if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14286  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14287fi
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14327$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14328hardcode_action_CXX=
14329if test -n "$hardcode_libdir_flag_spec_CXX" ||
14330   test -n "$runpath_var_CXX" ||
14331   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14332
14333  # We can hardcode non-existent directories.
14334  if test "$hardcode_direct_CXX" != no &&
14335     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14336     # have to relink, otherwise we might link with an installed library
14337     # when we should be linking with a yet-to-be-installed one
14338     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14339     test "$hardcode_minus_L_CXX" != no; then
14340    # Linking always hardcodes the temporary library directory.
14341    hardcode_action_CXX=relink
14342  else
14343    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14344    hardcode_action_CXX=immediate
14345  fi
14346else
14347  # We cannot hardcode anything, or else we can only hardcode existing
14348  # directories.
14349  hardcode_action_CXX=unsupported
14350fi
14351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14352$as_echo "$hardcode_action_CXX" >&6; }
14353
14354if test "$hardcode_action_CXX" = relink ||
14355   test "$inherit_rpath_CXX" = yes; then
14356  # Fast installation is not supported
14357  enable_fast_install=no
14358elif test "$shlibpath_overrides_runpath" = yes ||
14359     test "$enable_shared" = no; then
14360  # Fast installation is not necessary
14361  enable_fast_install=needless
14362fi
14363
14364
14365
14366
14367
14368
14369
14370  fi # test -n "$compiler"
14371
14372  CC=$lt_save_CC
14373  CFLAGS=$lt_save_CFLAGS
14374  LDCXX=$LD
14375  LD=$lt_save_LD
14376  GCC=$lt_save_GCC
14377  with_gnu_ld=$lt_save_with_gnu_ld
14378  lt_cv_path_LDCXX=$lt_cv_path_LD
14379  lt_cv_path_LD=$lt_save_path_LD
14380  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14381  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14382fi # test "$_lt_caught_CXX_error" != yes
14383
14384ac_ext=c
14385ac_cpp='$CPP $CPPFLAGS'
14386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14388ac_compiler_gnu=$ac_cv_c_compiler_gnu
14389
14390
14391
14392ac_ext=c
14393ac_cpp='$CPP $CPPFLAGS'
14394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14396ac_compiler_gnu=$ac_cv_c_compiler_gnu
14397if test -n "$ac_tool_prefix"; then
14398  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14399set dummy ${ac_tool_prefix}gcc; ac_word=$2
14400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14401$as_echo_n "checking for $ac_word... " >&6; }
14402if ${ac_cv_prog_CC+:} false; then :
14403  $as_echo_n "(cached) " >&6
14404else
14405  if test -n "$CC"; then
14406  ac_cv_prog_CC="$CC" # Let the user override the test.
14407else
14408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14409for as_dir in $PATH
14410do
14411  IFS=$as_save_IFS
14412  test -z "$as_dir" && as_dir=.
14413    for ac_exec_ext in '' $ac_executable_extensions; do
14414  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14415    ac_cv_prog_CC="${ac_tool_prefix}gcc"
14416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14417    break 2
14418  fi
14419done
14420  done
14421IFS=$as_save_IFS
14422
14423fi
14424fi
14425CC=$ac_cv_prog_CC
14426if test -n "$CC"; then
14427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14428$as_echo "$CC" >&6; }
14429else
14430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14431$as_echo "no" >&6; }
14432fi
14433
14434
14435fi
14436if test -z "$ac_cv_prog_CC"; then
14437  ac_ct_CC=$CC
14438  # Extract the first word of "gcc", so it can be a program name with args.
14439set dummy gcc; ac_word=$2
14440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14441$as_echo_n "checking for $ac_word... " >&6; }
14442if ${ac_cv_prog_ac_ct_CC+:} false; then :
14443  $as_echo_n "(cached) " >&6
14444else
14445  if test -n "$ac_ct_CC"; then
14446  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14447else
14448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14449for as_dir in $PATH
14450do
14451  IFS=$as_save_IFS
14452  test -z "$as_dir" && as_dir=.
14453    for ac_exec_ext in '' $ac_executable_extensions; do
14454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14455    ac_cv_prog_ac_ct_CC="gcc"
14456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14457    break 2
14458  fi
14459done
14460  done
14461IFS=$as_save_IFS
14462
14463fi
14464fi
14465ac_ct_CC=$ac_cv_prog_ac_ct_CC
14466if test -n "$ac_ct_CC"; then
14467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14468$as_echo "$ac_ct_CC" >&6; }
14469else
14470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14471$as_echo "no" >&6; }
14472fi
14473
14474  if test "x$ac_ct_CC" = x; then
14475    CC=""
14476  else
14477    case $cross_compiling:$ac_tool_warned in
14478yes:)
14479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14481ac_tool_warned=yes ;;
14482esac
14483    CC=$ac_ct_CC
14484  fi
14485else
14486  CC="$ac_cv_prog_CC"
14487fi
14488
14489if test -z "$CC"; then
14490          if test -n "$ac_tool_prefix"; then
14491    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14492set dummy ${ac_tool_prefix}cc; ac_word=$2
14493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14494$as_echo_n "checking for $ac_word... " >&6; }
14495if ${ac_cv_prog_CC+:} false; then :
14496  $as_echo_n "(cached) " >&6
14497else
14498  if test -n "$CC"; then
14499  ac_cv_prog_CC="$CC" # Let the user override the test.
14500else
14501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14502for as_dir in $PATH
14503do
14504  IFS=$as_save_IFS
14505  test -z "$as_dir" && as_dir=.
14506    for ac_exec_ext in '' $ac_executable_extensions; do
14507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14508    ac_cv_prog_CC="${ac_tool_prefix}cc"
14509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14510    break 2
14511  fi
14512done
14513  done
14514IFS=$as_save_IFS
14515
14516fi
14517fi
14518CC=$ac_cv_prog_CC
14519if test -n "$CC"; then
14520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14521$as_echo "$CC" >&6; }
14522else
14523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524$as_echo "no" >&6; }
14525fi
14526
14527
14528  fi
14529fi
14530if test -z "$CC"; then
14531  # Extract the first word of "cc", so it can be a program name with args.
14532set dummy cc; ac_word=$2
14533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14534$as_echo_n "checking for $ac_word... " >&6; }
14535if ${ac_cv_prog_CC+:} false; then :
14536  $as_echo_n "(cached) " >&6
14537else
14538  if test -n "$CC"; then
14539  ac_cv_prog_CC="$CC" # Let the user override the test.
14540else
14541  ac_prog_rejected=no
14542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543for as_dir in $PATH
14544do
14545  IFS=$as_save_IFS
14546  test -z "$as_dir" && as_dir=.
14547    for ac_exec_ext in '' $ac_executable_extensions; do
14548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14549    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14550       ac_prog_rejected=yes
14551       continue
14552     fi
14553    ac_cv_prog_CC="cc"
14554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14555    break 2
14556  fi
14557done
14558  done
14559IFS=$as_save_IFS
14560
14561if test $ac_prog_rejected = yes; then
14562  # We found a bogon in the path, so make sure we never use it.
14563  set dummy $ac_cv_prog_CC
14564  shift
14565  if test $# != 0; then
14566    # We chose a different compiler from the bogus one.
14567    # However, it has the same basename, so the bogon will be chosen
14568    # first if we set CC to just the basename; use the full file name.
14569    shift
14570    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14571  fi
14572fi
14573fi
14574fi
14575CC=$ac_cv_prog_CC
14576if test -n "$CC"; then
14577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14578$as_echo "$CC" >&6; }
14579else
14580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581$as_echo "no" >&6; }
14582fi
14583
14584
14585fi
14586if test -z "$CC"; then
14587  if test -n "$ac_tool_prefix"; then
14588  for ac_prog in cl.exe
14589  do
14590    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14591set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14593$as_echo_n "checking for $ac_word... " >&6; }
14594if ${ac_cv_prog_CC+:} false; then :
14595  $as_echo_n "(cached) " >&6
14596else
14597  if test -n "$CC"; then
14598  ac_cv_prog_CC="$CC" # Let the user override the test.
14599else
14600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14601for as_dir in $PATH
14602do
14603  IFS=$as_save_IFS
14604  test -z "$as_dir" && as_dir=.
14605    for ac_exec_ext in '' $ac_executable_extensions; do
14606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14607    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14609    break 2
14610  fi
14611done
14612  done
14613IFS=$as_save_IFS
14614
14615fi
14616fi
14617CC=$ac_cv_prog_CC
14618if test -n "$CC"; then
14619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14620$as_echo "$CC" >&6; }
14621else
14622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14623$as_echo "no" >&6; }
14624fi
14625
14626
14627    test -n "$CC" && break
14628  done
14629fi
14630if test -z "$CC"; then
14631  ac_ct_CC=$CC
14632  for ac_prog in cl.exe
14633do
14634  # Extract the first word of "$ac_prog", so it can be a program name with args.
14635set dummy $ac_prog; ac_word=$2
14636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14637$as_echo_n "checking for $ac_word... " >&6; }
14638if ${ac_cv_prog_ac_ct_CC+:} false; then :
14639  $as_echo_n "(cached) " >&6
14640else
14641  if test -n "$ac_ct_CC"; then
14642  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14643else
14644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14645for as_dir in $PATH
14646do
14647  IFS=$as_save_IFS
14648  test -z "$as_dir" && as_dir=.
14649    for ac_exec_ext in '' $ac_executable_extensions; do
14650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14651    ac_cv_prog_ac_ct_CC="$ac_prog"
14652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14653    break 2
14654  fi
14655done
14656  done
14657IFS=$as_save_IFS
14658
14659fi
14660fi
14661ac_ct_CC=$ac_cv_prog_ac_ct_CC
14662if test -n "$ac_ct_CC"; then
14663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14664$as_echo "$ac_ct_CC" >&6; }
14665else
14666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14667$as_echo "no" >&6; }
14668fi
14669
14670
14671  test -n "$ac_ct_CC" && break
14672done
14673
14674  if test "x$ac_ct_CC" = x; then
14675    CC=""
14676  else
14677    case $cross_compiling:$ac_tool_warned in
14678yes:)
14679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14681ac_tool_warned=yes ;;
14682esac
14683    CC=$ac_ct_CC
14684  fi
14685fi
14686
14687fi
14688
14689
14690test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14692as_fn_error $? "no acceptable C compiler found in \$PATH
14693See \`config.log' for more details" "$LINENO" 5; }
14694
14695# Provide some information about the compiler.
14696$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14697set X $ac_compile
14698ac_compiler=$2
14699for ac_option in --version -v -V -qversion; do
14700  { { ac_try="$ac_compiler $ac_option >&5"
14701case "(($ac_try" in
14702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703  *) ac_try_echo=$ac_try;;
14704esac
14705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14706$as_echo "$ac_try_echo"; } >&5
14707  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14708  ac_status=$?
14709  if test -s conftest.err; then
14710    sed '10a\
14711... rest of stderr output deleted ...
14712         10q' conftest.err >conftest.er1
14713    cat conftest.er1 >&5
14714  fi
14715  rm -f conftest.er1 conftest.err
14716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14717  test $ac_status = 0; }
14718done
14719
14720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14721$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14722if ${ac_cv_c_compiler_gnu+:} false; then :
14723  $as_echo_n "(cached) " >&6
14724else
14725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726/* end confdefs.h.  */
14727
14728int
14729main ()
14730{
14731#ifndef __GNUC__
14732       choke me
14733#endif
14734
14735  ;
14736  return 0;
14737}
14738_ACEOF
14739if ac_fn_c_try_compile "$LINENO"; then :
14740  ac_compiler_gnu=yes
14741else
14742  ac_compiler_gnu=no
14743fi
14744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745ac_cv_c_compiler_gnu=$ac_compiler_gnu
14746
14747fi
14748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14749$as_echo "$ac_cv_c_compiler_gnu" >&6; }
14750if test $ac_compiler_gnu = yes; then
14751  GCC=yes
14752else
14753  GCC=
14754fi
14755ac_test_CFLAGS=${CFLAGS+set}
14756ac_save_CFLAGS=$CFLAGS
14757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14758$as_echo_n "checking whether $CC accepts -g... " >&6; }
14759if ${ac_cv_prog_cc_g+:} false; then :
14760  $as_echo_n "(cached) " >&6
14761else
14762  ac_save_c_werror_flag=$ac_c_werror_flag
14763   ac_c_werror_flag=yes
14764   ac_cv_prog_cc_g=no
14765   CFLAGS="-g"
14766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767/* end confdefs.h.  */
14768
14769int
14770main ()
14771{
14772
14773  ;
14774  return 0;
14775}
14776_ACEOF
14777if ac_fn_c_try_compile "$LINENO"; then :
14778  ac_cv_prog_cc_g=yes
14779else
14780  CFLAGS=""
14781      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782/* end confdefs.h.  */
14783
14784int
14785main ()
14786{
14787
14788  ;
14789  return 0;
14790}
14791_ACEOF
14792if ac_fn_c_try_compile "$LINENO"; then :
14793
14794else
14795  ac_c_werror_flag=$ac_save_c_werror_flag
14796	 CFLAGS="-g"
14797	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798/* end confdefs.h.  */
14799
14800int
14801main ()
14802{
14803
14804  ;
14805  return 0;
14806}
14807_ACEOF
14808if ac_fn_c_try_compile "$LINENO"; then :
14809  ac_cv_prog_cc_g=yes
14810fi
14811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14812fi
14813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814fi
14815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14816   ac_c_werror_flag=$ac_save_c_werror_flag
14817fi
14818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14819$as_echo "$ac_cv_prog_cc_g" >&6; }
14820if test "$ac_test_CFLAGS" = set; then
14821  CFLAGS=$ac_save_CFLAGS
14822elif test $ac_cv_prog_cc_g = yes; then
14823  if test "$GCC" = yes; then
14824    CFLAGS="-g -O2"
14825  else
14826    CFLAGS="-g"
14827  fi
14828else
14829  if test "$GCC" = yes; then
14830    CFLAGS="-O2"
14831  else
14832    CFLAGS=
14833  fi
14834fi
14835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14836$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14837if ${ac_cv_prog_cc_c89+:} false; then :
14838  $as_echo_n "(cached) " >&6
14839else
14840  ac_cv_prog_cc_c89=no
14841ac_save_CC=$CC
14842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843/* end confdefs.h.  */
14844#include <stdarg.h>
14845#include <stdio.h>
14846struct stat;
14847/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14848struct buf { int x; };
14849FILE * (*rcsopen) (struct buf *, struct stat *, int);
14850static char *e (p, i)
14851     char **p;
14852     int i;
14853{
14854  return p[i];
14855}
14856static char *f (char * (*g) (char **, int), char **p, ...)
14857{
14858  char *s;
14859  va_list v;
14860  va_start (v,p);
14861  s = g (p, va_arg (v,int));
14862  va_end (v);
14863  return s;
14864}
14865
14866/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14867   function prototypes and stuff, but not '\xHH' hex character constants.
14868   These don't provoke an error unfortunately, instead are silently treated
14869   as 'x'.  The following induces an error, until -std is added to get
14870   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14871   array size at least.  It's necessary to write '\x00'==0 to get something
14872   that's true only with -std.  */
14873int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14874
14875/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14876   inside strings and character constants.  */
14877#define FOO(x) 'x'
14878int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14879
14880int test (int i, double x);
14881struct s1 {int (*f) (int a);};
14882struct s2 {int (*f) (double a);};
14883int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14884int argc;
14885char **argv;
14886int
14887main ()
14888{
14889return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14890  ;
14891  return 0;
14892}
14893_ACEOF
14894for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14895	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14896do
14897  CC="$ac_save_CC $ac_arg"
14898  if ac_fn_c_try_compile "$LINENO"; then :
14899  ac_cv_prog_cc_c89=$ac_arg
14900fi
14901rm -f core conftest.err conftest.$ac_objext
14902  test "x$ac_cv_prog_cc_c89" != "xno" && break
14903done
14904rm -f conftest.$ac_ext
14905CC=$ac_save_CC
14906
14907fi
14908# AC_CACHE_VAL
14909case "x$ac_cv_prog_cc_c89" in
14910  x)
14911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14912$as_echo "none needed" >&6; } ;;
14913  xno)
14914    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14915$as_echo "unsupported" >&6; } ;;
14916  *)
14917    CC="$CC $ac_cv_prog_cc_c89"
14918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14919$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14920esac
14921if test "x$ac_cv_prog_cc_c89" != xno; then :
14922
14923fi
14924
14925ac_ext=c
14926ac_cpp='$CPP $CPPFLAGS'
14927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14929ac_compiler_gnu=$ac_cv_c_compiler_gnu
14930
14931ac_ext=cpp
14932ac_cpp='$CXXCPP $CPPFLAGS'
14933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14936if test -z "$CXX"; then
14937  if test -n "$CCC"; then
14938    CXX=$CCC
14939  else
14940    if test -n "$ac_tool_prefix"; then
14941  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14942  do
14943    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14944set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14946$as_echo_n "checking for $ac_word... " >&6; }
14947if ${ac_cv_prog_CXX+:} false; then :
14948  $as_echo_n "(cached) " >&6
14949else
14950  if test -n "$CXX"; then
14951  ac_cv_prog_CXX="$CXX" # Let the user override the test.
14952else
14953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14954for as_dir in $PATH
14955do
14956  IFS=$as_save_IFS
14957  test -z "$as_dir" && as_dir=.
14958    for ac_exec_ext in '' $ac_executable_extensions; do
14959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14960    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14962    break 2
14963  fi
14964done
14965  done
14966IFS=$as_save_IFS
14967
14968fi
14969fi
14970CXX=$ac_cv_prog_CXX
14971if test -n "$CXX"; then
14972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14973$as_echo "$CXX" >&6; }
14974else
14975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14976$as_echo "no" >&6; }
14977fi
14978
14979
14980    test -n "$CXX" && break
14981  done
14982fi
14983if test -z "$CXX"; then
14984  ac_ct_CXX=$CXX
14985  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14986do
14987  # Extract the first word of "$ac_prog", so it can be a program name with args.
14988set dummy $ac_prog; ac_word=$2
14989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14990$as_echo_n "checking for $ac_word... " >&6; }
14991if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14992  $as_echo_n "(cached) " >&6
14993else
14994  if test -n "$ac_ct_CXX"; then
14995  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14996else
14997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14998for as_dir in $PATH
14999do
15000  IFS=$as_save_IFS
15001  test -z "$as_dir" && as_dir=.
15002    for ac_exec_ext in '' $ac_executable_extensions; do
15003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15004    ac_cv_prog_ac_ct_CXX="$ac_prog"
15005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15006    break 2
15007  fi
15008done
15009  done
15010IFS=$as_save_IFS
15011
15012fi
15013fi
15014ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15015if test -n "$ac_ct_CXX"; then
15016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15017$as_echo "$ac_ct_CXX" >&6; }
15018else
15019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15020$as_echo "no" >&6; }
15021fi
15022
15023
15024  test -n "$ac_ct_CXX" && break
15025done
15026
15027  if test "x$ac_ct_CXX" = x; then
15028    CXX="g++"
15029  else
15030    case $cross_compiling:$ac_tool_warned in
15031yes:)
15032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15034ac_tool_warned=yes ;;
15035esac
15036    CXX=$ac_ct_CXX
15037  fi
15038fi
15039
15040  fi
15041fi
15042# Provide some information about the compiler.
15043$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15044set X $ac_compile
15045ac_compiler=$2
15046for ac_option in --version -v -V -qversion; do
15047  { { ac_try="$ac_compiler $ac_option >&5"
15048case "(($ac_try" in
15049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050  *) ac_try_echo=$ac_try;;
15051esac
15052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15053$as_echo "$ac_try_echo"; } >&5
15054  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15055  ac_status=$?
15056  if test -s conftest.err; then
15057    sed '10a\
15058... rest of stderr output deleted ...
15059         10q' conftest.err >conftest.er1
15060    cat conftest.er1 >&5
15061  fi
15062  rm -f conftest.er1 conftest.err
15063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15064  test $ac_status = 0; }
15065done
15066
15067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
15068$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
15069if ${ac_cv_cxx_compiler_gnu+:} false; then :
15070  $as_echo_n "(cached) " >&6
15071else
15072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073/* end confdefs.h.  */
15074
15075int
15076main ()
15077{
15078#ifndef __GNUC__
15079       choke me
15080#endif
15081
15082  ;
15083  return 0;
15084}
15085_ACEOF
15086if ac_fn_cxx_try_compile "$LINENO"; then :
15087  ac_compiler_gnu=yes
15088else
15089  ac_compiler_gnu=no
15090fi
15091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15092ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15093
15094fi
15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15096$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
15097if test $ac_compiler_gnu = yes; then
15098  GXX=yes
15099else
15100  GXX=
15101fi
15102ac_test_CXXFLAGS=${CXXFLAGS+set}
15103ac_save_CXXFLAGS=$CXXFLAGS
15104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15105$as_echo_n "checking whether $CXX accepts -g... " >&6; }
15106if ${ac_cv_prog_cxx_g+:} false; then :
15107  $as_echo_n "(cached) " >&6
15108else
15109  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15110   ac_cxx_werror_flag=yes
15111   ac_cv_prog_cxx_g=no
15112   CXXFLAGS="-g"
15113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114/* end confdefs.h.  */
15115
15116int
15117main ()
15118{
15119
15120  ;
15121  return 0;
15122}
15123_ACEOF
15124if ac_fn_cxx_try_compile "$LINENO"; then :
15125  ac_cv_prog_cxx_g=yes
15126else
15127  CXXFLAGS=""
15128      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129/* end confdefs.h.  */
15130
15131int
15132main ()
15133{
15134
15135  ;
15136  return 0;
15137}
15138_ACEOF
15139if ac_fn_cxx_try_compile "$LINENO"; then :
15140
15141else
15142  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15143	 CXXFLAGS="-g"
15144	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145/* end confdefs.h.  */
15146
15147int
15148main ()
15149{
15150
15151  ;
15152  return 0;
15153}
15154_ACEOF
15155if ac_fn_cxx_try_compile "$LINENO"; then :
15156  ac_cv_prog_cxx_g=yes
15157fi
15158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159fi
15160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161fi
15162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15163   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15164fi
15165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15166$as_echo "$ac_cv_prog_cxx_g" >&6; }
15167if test "$ac_test_CXXFLAGS" = set; then
15168  CXXFLAGS=$ac_save_CXXFLAGS
15169elif test $ac_cv_prog_cxx_g = yes; then
15170  if test "$GXX" = yes; then
15171    CXXFLAGS="-g -O2"
15172  else
15173    CXXFLAGS="-g"
15174  fi
15175else
15176  if test "$GXX" = yes; then
15177    CXXFLAGS="-O2"
15178  else
15179    CXXFLAGS=
15180  fi
15181fi
15182ac_ext=c
15183ac_cpp='$CPP $CPPFLAGS'
15184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15186ac_compiler_gnu=$ac_cv_c_compiler_gnu
15187
15188# Find a good install program.  We prefer a C program (faster),
15189# so one script is as good as another.  But avoid the broken or
15190# incompatible versions:
15191# SysV /etc/install, /usr/sbin/install
15192# SunOS /usr/etc/install
15193# IRIX /sbin/install
15194# AIX /bin/install
15195# AmigaOS /C/install, which installs bootblocks on floppy discs
15196# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15197# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15198# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15199# OS/2's system install, which has a completely different semantic
15200# ./install, which can be erroneously created by make from ./install.sh.
15201# Reject install programs that cannot install multiple files.
15202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15203$as_echo_n "checking for a BSD-compatible install... " >&6; }
15204if test -z "$INSTALL"; then
15205if ${ac_cv_path_install+:} false; then :
15206  $as_echo_n "(cached) " >&6
15207else
15208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209for as_dir in $PATH
15210do
15211  IFS=$as_save_IFS
15212  test -z "$as_dir" && as_dir=.
15213    # Account for people who put trailing slashes in PATH elements.
15214case $as_dir/ in #((
15215  ./ | .// | /[cC]/* | \
15216  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15217  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15218  /usr/ucb/* ) ;;
15219  *)
15220    # OSF1 and SCO ODT 3.0 have their own names for install.
15221    # Don't use installbsd from OSF since it installs stuff as root
15222    # by default.
15223    for ac_prog in ginstall scoinst install; do
15224      for ac_exec_ext in '' $ac_executable_extensions; do
15225	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15226	  if test $ac_prog = install &&
15227	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15228	    # AIX install.  It has an incompatible calling convention.
15229	    :
15230	  elif test $ac_prog = install &&
15231	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15232	    # program-specific install script used by HP pwplus--don't use.
15233	    :
15234	  else
15235	    rm -rf conftest.one conftest.two conftest.dir
15236	    echo one > conftest.one
15237	    echo two > conftest.two
15238	    mkdir conftest.dir
15239	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15240	      test -s conftest.one && test -s conftest.two &&
15241	      test -s conftest.dir/conftest.one &&
15242	      test -s conftest.dir/conftest.two
15243	    then
15244	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15245	      break 3
15246	    fi
15247	  fi
15248	fi
15249      done
15250    done
15251    ;;
15252esac
15253
15254  done
15255IFS=$as_save_IFS
15256
15257rm -rf conftest.one conftest.two conftest.dir
15258
15259fi
15260  if test "${ac_cv_path_install+set}" = set; then
15261    INSTALL=$ac_cv_path_install
15262  else
15263    # As a last resort, use the slow shell script.  Don't cache a
15264    # value for INSTALL within a source directory, because that will
15265    # break other packages using the cache if that directory is
15266    # removed, or if the value is a relative name.
15267    INSTALL=$ac_install_sh
15268  fi
15269fi
15270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15271$as_echo "$INSTALL" >&6; }
15272
15273# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15274# It thinks the first close brace ends the variable substitution.
15275test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15276
15277test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15278
15279test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15280
15281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15282$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15283set x ${MAKE-make}
15284ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15285if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15286  $as_echo_n "(cached) " >&6
15287else
15288  cat >conftest.make <<\_ACEOF
15289SHELL = /bin/sh
15290all:
15291	@echo '@@@%%%=$(MAKE)=@@@%%%'
15292_ACEOF
15293# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15294case `${MAKE-make} -f conftest.make 2>/dev/null` in
15295  *@@@%%%=?*=@@@%%%*)
15296    eval ac_cv_prog_make_${ac_make}_set=yes;;
15297  *)
15298    eval ac_cv_prog_make_${ac_make}_set=no;;
15299esac
15300rm -f conftest.make
15301fi
15302if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15304$as_echo "yes" >&6; }
15305  SET_MAKE=
15306else
15307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15308$as_echo "no" >&6; }
15309  SET_MAKE="MAKE=${MAKE-make}"
15310fi
15311
15312if test -n "$ac_tool_prefix"; then
15313  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15314set dummy ${ac_tool_prefix}windres; ac_word=$2
15315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15316$as_echo_n "checking for $ac_word... " >&6; }
15317if ${ac_cv_prog_WINDRES+:} false; then :
15318  $as_echo_n "(cached) " >&6
15319else
15320  if test -n "$WINDRES"; then
15321  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15322else
15323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15324for as_dir in $PATH
15325do
15326  IFS=$as_save_IFS
15327  test -z "$as_dir" && as_dir=.
15328    for ac_exec_ext in '' $ac_executable_extensions; do
15329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15330    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15332    break 2
15333  fi
15334done
15335  done
15336IFS=$as_save_IFS
15337
15338fi
15339fi
15340WINDRES=$ac_cv_prog_WINDRES
15341if test -n "$WINDRES"; then
15342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
15343$as_echo "$WINDRES" >&6; }
15344else
15345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15346$as_echo "no" >&6; }
15347fi
15348
15349
15350fi
15351if test -z "$ac_cv_prog_WINDRES"; then
15352  ac_ct_WINDRES=$WINDRES
15353  # Extract the first word of "windres", so it can be a program name with args.
15354set dummy windres; ac_word=$2
15355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15356$as_echo_n "checking for $ac_word... " >&6; }
15357if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
15358  $as_echo_n "(cached) " >&6
15359else
15360  if test -n "$ac_ct_WINDRES"; then
15361  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15362else
15363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15364for as_dir in $PATH
15365do
15366  IFS=$as_save_IFS
15367  test -z "$as_dir" && as_dir=.
15368    for ac_exec_ext in '' $ac_executable_extensions; do
15369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15370    ac_cv_prog_ac_ct_WINDRES="windres"
15371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15372    break 2
15373  fi
15374done
15375  done
15376IFS=$as_save_IFS
15377
15378fi
15379fi
15380ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15381if test -n "$ac_ct_WINDRES"; then
15382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
15383$as_echo "$ac_ct_WINDRES" >&6; }
15384else
15385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15386$as_echo "no" >&6; }
15387fi
15388
15389  if test "x$ac_ct_WINDRES" = x; then
15390    WINDRES=":"
15391  else
15392    case $cross_compiling:$ac_tool_warned in
15393yes:)
15394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15396ac_tool_warned=yes ;;
15397esac
15398    WINDRES=$ac_ct_WINDRES
15399  fi
15400else
15401  WINDRES="$ac_cv_prog_WINDRES"
15402fi
15403
15404ac_config_files="$ac_config_files Makefile"
15405
15406cat >confcache <<\_ACEOF
15407# This file is a shell script that caches the results of configure
15408# tests run on this system so they can be shared between configure
15409# scripts and configure runs, see configure's option --config-cache.
15410# It is not useful on other systems.  If it contains results you don't
15411# want to keep, you may remove or edit it.
15412#
15413# config.status only pays attention to the cache file if you give it
15414# the --recheck option to rerun configure.
15415#
15416# `ac_cv_env_foo' variables (set or unset) will be overridden when
15417# loading this file, other *unset* `ac_cv_foo' will be assigned the
15418# following values.
15419
15420_ACEOF
15421
15422# The following way of writing the cache mishandles newlines in values,
15423# but we know of no workaround that is simple, portable, and efficient.
15424# So, we kill variables containing newlines.
15425# Ultrix sh set writes to stderr and can't be redirected directly,
15426# and sets the high bit in the cache file unless we assign to the vars.
15427(
15428  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15429    eval ac_val=\$$ac_var
15430    case $ac_val in #(
15431    *${as_nl}*)
15432      case $ac_var in #(
15433      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15434$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15435      esac
15436      case $ac_var in #(
15437      _ | IFS | as_nl) ;; #(
15438      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15439      *) { eval $ac_var=; unset $ac_var;} ;;
15440      esac ;;
15441    esac
15442  done
15443
15444  (set) 2>&1 |
15445    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15446    *${as_nl}ac_space=\ *)
15447      # `set' does not quote correctly, so add quotes: double-quote
15448      # substitution turns \\\\ into \\, and sed turns \\ into \.
15449      sed -n \
15450	"s/'/'\\\\''/g;
15451	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15452      ;; #(
15453    *)
15454      # `set' quotes correctly as required by POSIX, so do not add quotes.
15455      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15456      ;;
15457    esac |
15458    sort
15459) |
15460  sed '
15461     /^ac_cv_env_/b end
15462     t clear
15463     :clear
15464     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15465     t end
15466     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15467     :end' >>confcache
15468if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15469  if test -w "$cache_file"; then
15470    if test "x$cache_file" != "x/dev/null"; then
15471      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15472$as_echo "$as_me: updating cache $cache_file" >&6;}
15473      if test ! -f "$cache_file" || test -h "$cache_file"; then
15474	cat confcache >"$cache_file"
15475      else
15476        case $cache_file in #(
15477        */* | ?:*)
15478	  mv -f confcache "$cache_file"$$ &&
15479	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15480        *)
15481	  mv -f confcache "$cache_file" ;;
15482	esac
15483      fi
15484    fi
15485  else
15486    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15487$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15488  fi
15489fi
15490rm -f confcache
15491
15492test "x$prefix" = xNONE && prefix=$ac_default_prefix
15493# Let make expand exec_prefix.
15494test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15495
15496DEFS=-DHAVE_CONFIG_H
15497
15498ac_libobjs=
15499ac_ltlibobjs=
15500U=
15501for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15502  # 1. Remove the extension, and $U if already installed.
15503  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15504  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15505  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15506  #    will be set to the directory where LIBOBJS objects are built.
15507  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15508  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15509done
15510LIBOBJS=$ac_libobjs
15511
15512LTLIBOBJS=$ac_ltlibobjs
15513
15514
15515
15516: "${CONFIG_STATUS=./config.status}"
15517ac_write_fail=0
15518ac_clean_files_save=$ac_clean_files
15519ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15520{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15521$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15522as_write_fail=0
15523cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15524#! $SHELL
15525# Generated by $as_me.
15526# Run this file to recreate the current configuration.
15527# Compiler output produced by configure, useful for debugging
15528# configure, is in config.log if it exists.
15529
15530debug=false
15531ac_cs_recheck=false
15532ac_cs_silent=false
15533
15534SHELL=\${CONFIG_SHELL-$SHELL}
15535export SHELL
15536_ASEOF
15537cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15538## -------------------- ##
15539## M4sh Initialization. ##
15540## -------------------- ##
15541
15542# Be more Bourne compatible
15543DUALCASE=1; export DUALCASE # for MKS sh
15544if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15545  emulate sh
15546  NULLCMD=:
15547  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15548  # is contrary to our usage.  Disable this feature.
15549  alias -g '${1+"$@"}'='"$@"'
15550  setopt NO_GLOB_SUBST
15551else
15552  case `(set -o) 2>/dev/null` in #(
15553  *posix*) :
15554    set -o posix ;; #(
15555  *) :
15556     ;;
15557esac
15558fi
15559
15560
15561as_nl='
15562'
15563export as_nl
15564# Printing a long string crashes Solaris 7 /usr/bin/printf.
15565as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15566as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15567as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15568# Prefer a ksh shell builtin over an external printf program on Solaris,
15569# but without wasting forks for bash or zsh.
15570if test -z "$BASH_VERSION$ZSH_VERSION" \
15571    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15572  as_echo='print -r --'
15573  as_echo_n='print -rn --'
15574elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15575  as_echo='printf %s\n'
15576  as_echo_n='printf %s'
15577else
15578  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15579    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15580    as_echo_n='/usr/ucb/echo -n'
15581  else
15582    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15583    as_echo_n_body='eval
15584      arg=$1;
15585      case $arg in #(
15586      *"$as_nl"*)
15587	expr "X$arg" : "X\\(.*\\)$as_nl";
15588	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15589      esac;
15590      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15591    '
15592    export as_echo_n_body
15593    as_echo_n='sh -c $as_echo_n_body as_echo'
15594  fi
15595  export as_echo_body
15596  as_echo='sh -c $as_echo_body as_echo'
15597fi
15598
15599# The user is always right.
15600if test "${PATH_SEPARATOR+set}" != set; then
15601  PATH_SEPARATOR=:
15602  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15603    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15604      PATH_SEPARATOR=';'
15605  }
15606fi
15607
15608
15609# IFS
15610# We need space, tab and new line, in precisely that order.  Quoting is
15611# there to prevent editors from complaining about space-tab.
15612# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15613# splitting by setting IFS to empty value.)
15614IFS=" ""	$as_nl"
15615
15616# Find who we are.  Look in the path if we contain no directory separator.
15617as_myself=
15618case $0 in #((
15619  *[\\/]* ) as_myself=$0 ;;
15620  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15621for as_dir in $PATH
15622do
15623  IFS=$as_save_IFS
15624  test -z "$as_dir" && as_dir=.
15625    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15626  done
15627IFS=$as_save_IFS
15628
15629     ;;
15630esac
15631# We did not find ourselves, most probably we were run as `sh COMMAND'
15632# in which case we are not to be found in the path.
15633if test "x$as_myself" = x; then
15634  as_myself=$0
15635fi
15636if test ! -f "$as_myself"; then
15637  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15638  exit 1
15639fi
15640
15641# Unset variables that we do not need and which cause bugs (e.g. in
15642# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15643# suppresses any "Segmentation fault" message there.  '((' could
15644# trigger a bug in pdksh 5.2.14.
15645for as_var in BASH_ENV ENV MAIL MAILPATH
15646do eval test x\${$as_var+set} = xset \
15647  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15648done
15649PS1='$ '
15650PS2='> '
15651PS4='+ '
15652
15653# NLS nuisances.
15654LC_ALL=C
15655export LC_ALL
15656LANGUAGE=C
15657export LANGUAGE
15658
15659# CDPATH.
15660(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15661
15662
15663# as_fn_error STATUS ERROR [LINENO LOG_FD]
15664# ----------------------------------------
15665# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15666# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15667# script with STATUS, using 1 if that was 0.
15668as_fn_error ()
15669{
15670  as_status=$1; test $as_status -eq 0 && as_status=1
15671  if test "$4"; then
15672    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15673    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15674  fi
15675  $as_echo "$as_me: error: $2" >&2
15676  as_fn_exit $as_status
15677} # as_fn_error
15678
15679
15680# as_fn_set_status STATUS
15681# -----------------------
15682# Set $? to STATUS, without forking.
15683as_fn_set_status ()
15684{
15685  return $1
15686} # as_fn_set_status
15687
15688# as_fn_exit STATUS
15689# -----------------
15690# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15691as_fn_exit ()
15692{
15693  set +e
15694  as_fn_set_status $1
15695  exit $1
15696} # as_fn_exit
15697
15698# as_fn_unset VAR
15699# ---------------
15700# Portably unset VAR.
15701as_fn_unset ()
15702{
15703  { eval $1=; unset $1;}
15704}
15705as_unset=as_fn_unset
15706# as_fn_append VAR VALUE
15707# ----------------------
15708# Append the text in VALUE to the end of the definition contained in VAR. Take
15709# advantage of any shell optimizations that allow amortized linear growth over
15710# repeated appends, instead of the typical quadratic growth present in naive
15711# implementations.
15712if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15713  eval 'as_fn_append ()
15714  {
15715    eval $1+=\$2
15716  }'
15717else
15718  as_fn_append ()
15719  {
15720    eval $1=\$$1\$2
15721  }
15722fi # as_fn_append
15723
15724# as_fn_arith ARG...
15725# ------------------
15726# Perform arithmetic evaluation on the ARGs, and store the result in the
15727# global $as_val. Take advantage of shells that can avoid forks. The arguments
15728# must be portable across $(()) and expr.
15729if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15730  eval 'as_fn_arith ()
15731  {
15732    as_val=$(( $* ))
15733  }'
15734else
15735  as_fn_arith ()
15736  {
15737    as_val=`expr "$@" || test $? -eq 1`
15738  }
15739fi # as_fn_arith
15740
15741
15742if expr a : '\(a\)' >/dev/null 2>&1 &&
15743   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15744  as_expr=expr
15745else
15746  as_expr=false
15747fi
15748
15749if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15750  as_basename=basename
15751else
15752  as_basename=false
15753fi
15754
15755if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15756  as_dirname=dirname
15757else
15758  as_dirname=false
15759fi
15760
15761as_me=`$as_basename -- "$0" ||
15762$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15763	 X"$0" : 'X\(//\)$' \| \
15764	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15765$as_echo X/"$0" |
15766    sed '/^.*\/\([^/][^/]*\)\/*$/{
15767	    s//\1/
15768	    q
15769	  }
15770	  /^X\/\(\/\/\)$/{
15771	    s//\1/
15772	    q
15773	  }
15774	  /^X\/\(\/\).*/{
15775	    s//\1/
15776	    q
15777	  }
15778	  s/.*/./; q'`
15779
15780# Avoid depending upon Character Ranges.
15781as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15782as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15783as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15784as_cr_digits='0123456789'
15785as_cr_alnum=$as_cr_Letters$as_cr_digits
15786
15787ECHO_C= ECHO_N= ECHO_T=
15788case `echo -n x` in #(((((
15789-n*)
15790  case `echo 'xy\c'` in
15791  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15792  xy)  ECHO_C='\c';;
15793  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15794       ECHO_T='	';;
15795  esac;;
15796*)
15797  ECHO_N='-n';;
15798esac
15799
15800rm -f conf$$ conf$$.exe conf$$.file
15801if test -d conf$$.dir; then
15802  rm -f conf$$.dir/conf$$.file
15803else
15804  rm -f conf$$.dir
15805  mkdir conf$$.dir 2>/dev/null
15806fi
15807if (echo >conf$$.file) 2>/dev/null; then
15808  if ln -s conf$$.file conf$$ 2>/dev/null; then
15809    as_ln_s='ln -s'
15810    # ... but there are two gotchas:
15811    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15812    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15813    # In both cases, we have to default to `cp -pR'.
15814    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15815      as_ln_s='cp -pR'
15816  elif ln conf$$.file conf$$ 2>/dev/null; then
15817    as_ln_s=ln
15818  else
15819    as_ln_s='cp -pR'
15820  fi
15821else
15822  as_ln_s='cp -pR'
15823fi
15824rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15825rmdir conf$$.dir 2>/dev/null
15826
15827
15828# as_fn_mkdir_p
15829# -------------
15830# Create "$as_dir" as a directory, including parents if necessary.
15831as_fn_mkdir_p ()
15832{
15833
15834  case $as_dir in #(
15835  -*) as_dir=./$as_dir;;
15836  esac
15837  test -d "$as_dir" || eval $as_mkdir_p || {
15838    as_dirs=
15839    while :; do
15840      case $as_dir in #(
15841      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15842      *) as_qdir=$as_dir;;
15843      esac
15844      as_dirs="'$as_qdir' $as_dirs"
15845      as_dir=`$as_dirname -- "$as_dir" ||
15846$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15847	 X"$as_dir" : 'X\(//\)[^/]' \| \
15848	 X"$as_dir" : 'X\(//\)$' \| \
15849	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15850$as_echo X"$as_dir" |
15851    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15852	    s//\1/
15853	    q
15854	  }
15855	  /^X\(\/\/\)[^/].*/{
15856	    s//\1/
15857	    q
15858	  }
15859	  /^X\(\/\/\)$/{
15860	    s//\1/
15861	    q
15862	  }
15863	  /^X\(\/\).*/{
15864	    s//\1/
15865	    q
15866	  }
15867	  s/.*/./; q'`
15868      test -d "$as_dir" && break
15869    done
15870    test -z "$as_dirs" || eval "mkdir $as_dirs"
15871  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15872
15873
15874} # as_fn_mkdir_p
15875if mkdir -p . 2>/dev/null; then
15876  as_mkdir_p='mkdir -p "$as_dir"'
15877else
15878  test -d ./-p && rmdir ./-p
15879  as_mkdir_p=false
15880fi
15881
15882
15883# as_fn_executable_p FILE
15884# -----------------------
15885# Test if FILE is an executable regular file.
15886as_fn_executable_p ()
15887{
15888  test -f "$1" && test -x "$1"
15889} # as_fn_executable_p
15890as_test_x='test -x'
15891as_executable_p=as_fn_executable_p
15892
15893# Sed expression to map a string onto a valid CPP name.
15894as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15895
15896# Sed expression to map a string onto a valid variable name.
15897as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15898
15899
15900exec 6>&1
15901## ----------------------------------- ##
15902## Main body of $CONFIG_STATUS script. ##
15903## ----------------------------------- ##
15904_ASEOF
15905test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15906
15907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15908# Save the log message, to keep $0 and so on meaningful, and to
15909# report actual input values of CONFIG_FILES etc. instead of their
15910# values after options handling.
15911ac_log="
15912This file was extended by $as_me, which was
15913generated by GNU Autoconf 2.69.  Invocation command line was
15914
15915  CONFIG_FILES    = $CONFIG_FILES
15916  CONFIG_HEADERS  = $CONFIG_HEADERS
15917  CONFIG_LINKS    = $CONFIG_LINKS
15918  CONFIG_COMMANDS = $CONFIG_COMMANDS
15919  $ $0 $@
15920
15921on `(hostname || uname -n) 2>/dev/null | sed 1q`
15922"
15923
15924_ACEOF
15925
15926case $ac_config_files in *"
15927"*) set x $ac_config_files; shift; ac_config_files=$*;;
15928esac
15929
15930case $ac_config_headers in *"
15931"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15932esac
15933
15934
15935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15936# Files that config.status was made for.
15937config_files="$ac_config_files"
15938config_headers="$ac_config_headers"
15939config_commands="$ac_config_commands"
15940
15941_ACEOF
15942
15943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15944ac_cs_usage="\
15945\`$as_me' instantiates files and other configuration actions
15946from templates according to the current configuration.  Unless the files
15947and actions are specified as TAGs, all are instantiated by default.
15948
15949Usage: $0 [OPTION]... [TAG]...
15950
15951  -h, --help       print this help, then exit
15952  -V, --version    print version number and configuration settings, then exit
15953      --config     print configuration, then exit
15954  -q, --quiet, --silent
15955                   do not print progress messages
15956  -d, --debug      don't remove temporary files
15957      --recheck    update $as_me by reconfiguring in the same conditions
15958      --file=FILE[:TEMPLATE]
15959                   instantiate the configuration file FILE
15960      --header=FILE[:TEMPLATE]
15961                   instantiate the configuration header FILE
15962
15963Configuration files:
15964$config_files
15965
15966Configuration headers:
15967$config_headers
15968
15969Configuration commands:
15970$config_commands
15971
15972Report bugs to the package provider."
15973
15974_ACEOF
15975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15976ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15977ac_cs_version="\\
15978config.status
15979configured by $0, generated by GNU Autoconf 2.69,
15980  with options \\"\$ac_cs_config\\"
15981
15982Copyright (C) 2012 Free Software Foundation, Inc.
15983This config.status script is free software; the Free Software Foundation
15984gives unlimited permission to copy, distribute and modify it."
15985
15986ac_pwd='$ac_pwd'
15987srcdir='$srcdir'
15988INSTALL='$INSTALL'
15989AWK='$AWK'
15990test -n "\$AWK" || AWK=awk
15991_ACEOF
15992
15993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15994# The default lists apply if the user does not specify any file.
15995ac_need_defaults=:
15996while test $# != 0
15997do
15998  case $1 in
15999  --*=?*)
16000    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16001    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16002    ac_shift=:
16003    ;;
16004  --*=)
16005    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16006    ac_optarg=
16007    ac_shift=:
16008    ;;
16009  *)
16010    ac_option=$1
16011    ac_optarg=$2
16012    ac_shift=shift
16013    ;;
16014  esac
16015
16016  case $ac_option in
16017  # Handling of the options.
16018  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16019    ac_cs_recheck=: ;;
16020  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16021    $as_echo "$ac_cs_version"; exit ;;
16022  --config | --confi | --conf | --con | --co | --c )
16023    $as_echo "$ac_cs_config"; exit ;;
16024  --debug | --debu | --deb | --de | --d | -d )
16025    debug=: ;;
16026  --file | --fil | --fi | --f )
16027    $ac_shift
16028    case $ac_optarg in
16029    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16030    '') as_fn_error $? "missing file argument" ;;
16031    esac
16032    as_fn_append CONFIG_FILES " '$ac_optarg'"
16033    ac_need_defaults=false;;
16034  --header | --heade | --head | --hea )
16035    $ac_shift
16036    case $ac_optarg in
16037    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16038    esac
16039    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16040    ac_need_defaults=false;;
16041  --he | --h)
16042    # Conflict between --help and --header
16043    as_fn_error $? "ambiguous option: \`$1'
16044Try \`$0 --help' for more information.";;
16045  --help | --hel | -h )
16046    $as_echo "$ac_cs_usage"; exit ;;
16047  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16048  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16049    ac_cs_silent=: ;;
16050
16051  # This is an error.
16052  -*) as_fn_error $? "unrecognized option: \`$1'
16053Try \`$0 --help' for more information." ;;
16054
16055  *) as_fn_append ac_config_targets " $1"
16056     ac_need_defaults=false ;;
16057
16058  esac
16059  shift
16060done
16061
16062ac_configure_extra_args=
16063
16064if $ac_cs_silent; then
16065  exec 6>/dev/null
16066  ac_configure_extra_args="$ac_configure_extra_args --silent"
16067fi
16068
16069_ACEOF
16070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16071if \$ac_cs_recheck; then
16072  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16073  shift
16074  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16075  CONFIG_SHELL='$SHELL'
16076  export CONFIG_SHELL
16077  exec "\$@"
16078fi
16079
16080_ACEOF
16081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16082exec 5>>config.log
16083{
16084  echo
16085  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16086## Running $as_me. ##
16087_ASBOX
16088  $as_echo "$ac_log"
16089} >&5
16090
16091_ACEOF
16092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16093#
16094# INIT-COMMANDS
16095#
16096
16097
16098# The HP-UX ksh and POSIX shell print the target directory to stdout
16099# if CDPATH is set.
16100(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16101
16102sed_quote_subst='$sed_quote_subst'
16103double_quote_subst='$double_quote_subst'
16104delay_variable_subst='$delay_variable_subst'
16105macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16106macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16107AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16108DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16109OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16110enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16111enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16112pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16113enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16114SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16115ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16116PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16117host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16118host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16119host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16120build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16121build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16122build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16123SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16124Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16125GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16126EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16127FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16128LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16129NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16130LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16131max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16132ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16133exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16134lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16135lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16136lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16137lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16138lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16139reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16140reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16141deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16142file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16143file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16144want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16145sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16146AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16147AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16148archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16149STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16150RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16151old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16152old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16153old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16154lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16155CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16156CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16157compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16158GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16159lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16160lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16161lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16162lt_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"`'
16163nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16164lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16165objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16166MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16167lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16168lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16169lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16170lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16171lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16172need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16173MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16174DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16175NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16176LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16177OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16178OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16179libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16180shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16181extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16182archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16183enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16184export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16185whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16186compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16187old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16188old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16189archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16190archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16191module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16192module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16193with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16194allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16195no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16196hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16197hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16198hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16199hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16200hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16201hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16202hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16203inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16204link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16205always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16206export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16207exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16208include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16209prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16210postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16211file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16212variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16213need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16214need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16215version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16216runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16217shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16218shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16219libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16220library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16221soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16222install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16223postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16224postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16225finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16226finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16227hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16228sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16229sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16230hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16231enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16232enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16233enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16234old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16235striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16236compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16237predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16238postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16239predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16240postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16241compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16242LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16243reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16244reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16245old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16246compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16247GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16248lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16249lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16250lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16251lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16252lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16253archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16254enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16255export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16256whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16257compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16258old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16259old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16260archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16261archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16262module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16263module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16264with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16265allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16266no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16267hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16268hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16269hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16270hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16271hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16272hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16273hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16274inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16275link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16276always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16277export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16278exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16279include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16280prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16281postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16282file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16283hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16284compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16285predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16286postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16287predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16288postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16289compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16290
16291LTCC='$LTCC'
16292LTCFLAGS='$LTCFLAGS'
16293compiler='$compiler_DEFAULT'
16294
16295# A function that is used when there is no print builtin or printf.
16296func_fallback_echo ()
16297{
16298  eval 'cat <<_LTECHO_EOF
16299\$1
16300_LTECHO_EOF'
16301}
16302
16303# Quote evaled strings.
16304for var in AS \
16305DLLTOOL \
16306OBJDUMP \
16307SHELL \
16308ECHO \
16309PATH_SEPARATOR \
16310SED \
16311GREP \
16312EGREP \
16313FGREP \
16314LD \
16315NM \
16316LN_S \
16317lt_SP2NL \
16318lt_NL2SP \
16319reload_flag \
16320deplibs_check_method \
16321file_magic_cmd \
16322file_magic_glob \
16323want_nocaseglob \
16324sharedlib_from_linklib_cmd \
16325AR \
16326AR_FLAGS \
16327archiver_list_spec \
16328STRIP \
16329RANLIB \
16330CC \
16331CFLAGS \
16332compiler \
16333lt_cv_sys_global_symbol_pipe \
16334lt_cv_sys_global_symbol_to_cdecl \
16335lt_cv_sys_global_symbol_to_c_name_address \
16336lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16337nm_file_list_spec \
16338lt_prog_compiler_no_builtin_flag \
16339lt_prog_compiler_pic \
16340lt_prog_compiler_wl \
16341lt_prog_compiler_static \
16342lt_cv_prog_compiler_c_o \
16343need_locks \
16344MANIFEST_TOOL \
16345DSYMUTIL \
16346NMEDIT \
16347LIPO \
16348OTOOL \
16349OTOOL64 \
16350shrext_cmds \
16351export_dynamic_flag_spec \
16352whole_archive_flag_spec \
16353compiler_needs_object \
16354with_gnu_ld \
16355allow_undefined_flag \
16356no_undefined_flag \
16357hardcode_libdir_flag_spec \
16358hardcode_libdir_separator \
16359exclude_expsyms \
16360include_expsyms \
16361file_list_spec \
16362variables_saved_for_relink \
16363libname_spec \
16364library_names_spec \
16365soname_spec \
16366install_override_mode \
16367finish_eval \
16368old_striplib \
16369striplib \
16370compiler_lib_search_dirs \
16371predep_objects \
16372postdep_objects \
16373predeps \
16374postdeps \
16375compiler_lib_search_path \
16376LD_CXX \
16377reload_flag_CXX \
16378compiler_CXX \
16379lt_prog_compiler_no_builtin_flag_CXX \
16380lt_prog_compiler_pic_CXX \
16381lt_prog_compiler_wl_CXX \
16382lt_prog_compiler_static_CXX \
16383lt_cv_prog_compiler_c_o_CXX \
16384export_dynamic_flag_spec_CXX \
16385whole_archive_flag_spec_CXX \
16386compiler_needs_object_CXX \
16387with_gnu_ld_CXX \
16388allow_undefined_flag_CXX \
16389no_undefined_flag_CXX \
16390hardcode_libdir_flag_spec_CXX \
16391hardcode_libdir_separator_CXX \
16392exclude_expsyms_CXX \
16393include_expsyms_CXX \
16394file_list_spec_CXX \
16395compiler_lib_search_dirs_CXX \
16396predep_objects_CXX \
16397postdep_objects_CXX \
16398predeps_CXX \
16399postdeps_CXX \
16400compiler_lib_search_path_CXX; do
16401    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16402    *[\\\\\\\`\\"\\\$]*)
16403      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16404      ;;
16405    *)
16406      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16407      ;;
16408    esac
16409done
16410
16411# Double-quote double-evaled strings.
16412for var in reload_cmds \
16413old_postinstall_cmds \
16414old_postuninstall_cmds \
16415old_archive_cmds \
16416extract_expsyms_cmds \
16417old_archive_from_new_cmds \
16418old_archive_from_expsyms_cmds \
16419archive_cmds \
16420archive_expsym_cmds \
16421module_cmds \
16422module_expsym_cmds \
16423export_symbols_cmds \
16424prelink_cmds \
16425postlink_cmds \
16426postinstall_cmds \
16427postuninstall_cmds \
16428finish_cmds \
16429sys_lib_search_path_spec \
16430sys_lib_dlsearch_path_spec \
16431reload_cmds_CXX \
16432old_archive_cmds_CXX \
16433old_archive_from_new_cmds_CXX \
16434old_archive_from_expsyms_cmds_CXX \
16435archive_cmds_CXX \
16436archive_expsym_cmds_CXX \
16437module_cmds_CXX \
16438module_expsym_cmds_CXX \
16439export_symbols_cmds_CXX \
16440prelink_cmds_CXX \
16441postlink_cmds_CXX; do
16442    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16443    *[\\\\\\\`\\"\\\$]*)
16444      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16445      ;;
16446    *)
16447      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16448      ;;
16449    esac
16450done
16451
16452ac_aux_dir='$ac_aux_dir'
16453xsi_shell='$xsi_shell'
16454lt_shell_append='$lt_shell_append'
16455
16456# See if we are running on zsh, and set the options which allow our
16457# commands through without removal of \ escapes INIT.
16458if test -n "\${ZSH_VERSION+set}" ; then
16459   setopt NO_GLOB_SUBST
16460fi
16461
16462
16463    PACKAGE='$PACKAGE'
16464    VERSION='$VERSION'
16465    TIMESTAMP='$TIMESTAMP'
16466    RM='$RM'
16467    ofile='$ofile'
16468
16469
16470
16471
16472
16473
16474_ACEOF
16475
16476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16477
16478# Handling of arguments.
16479for ac_config_target in $ac_config_targets
16480do
16481  case $ac_config_target in
16482    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16483    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16484
16485  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16486  esac
16487done
16488
16489
16490# If the user did not use the arguments to specify the items to instantiate,
16491# then the envvar interface is used.  Set only those that are not.
16492# We use the long form for the default assignment because of an extremely
16493# bizarre bug on SunOS 4.1.3.
16494if $ac_need_defaults; then
16495  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16496  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16497  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16498fi
16499
16500# Have a temporary directory for convenience.  Make it in the build tree
16501# simply because there is no reason against having it here, and in addition,
16502# creating and moving files from /tmp can sometimes cause problems.
16503# Hook for its removal unless debugging.
16504# Note that there is a small window in which the directory will not be cleaned:
16505# after its creation but before its name has been assigned to `$tmp'.
16506$debug ||
16507{
16508  tmp= ac_tmp=
16509  trap 'exit_status=$?
16510  : "${ac_tmp:=$tmp}"
16511  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16512' 0
16513  trap 'as_fn_exit 1' 1 2 13 15
16514}
16515# Create a (secure) tmp directory for tmp files.
16516
16517{
16518  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16519  test -d "$tmp"
16520}  ||
16521{
16522  tmp=./conf$$-$RANDOM
16523  (umask 077 && mkdir "$tmp")
16524} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16525ac_tmp=$tmp
16526
16527# Set up the scripts for CONFIG_FILES section.
16528# No need to generate them if there are no CONFIG_FILES.
16529# This happens for instance with `./config.status config.h'.
16530if test -n "$CONFIG_FILES"; then
16531
16532
16533ac_cr=`echo X | tr X '\015'`
16534# On cygwin, bash can eat \r inside `` if the user requested igncr.
16535# But we know of no other shell where ac_cr would be empty at this
16536# point, so we can use a bashism as a fallback.
16537if test "x$ac_cr" = x; then
16538  eval ac_cr=\$\'\\r\'
16539fi
16540ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16541if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16542  ac_cs_awk_cr='\\r'
16543else
16544  ac_cs_awk_cr=$ac_cr
16545fi
16546
16547echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16548_ACEOF
16549
16550
16551{
16552  echo "cat >conf$$subs.awk <<_ACEOF" &&
16553  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16554  echo "_ACEOF"
16555} >conf$$subs.sh ||
16556  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16557ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16558ac_delim='%!_!# '
16559for ac_last_try in false false false false false :; do
16560  . ./conf$$subs.sh ||
16561    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16562
16563  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16564  if test $ac_delim_n = $ac_delim_num; then
16565    break
16566  elif $ac_last_try; then
16567    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16568  else
16569    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16570  fi
16571done
16572rm -f conf$$subs.sh
16573
16574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16575cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16576_ACEOF
16577sed -n '
16578h
16579s/^/S["/; s/!.*/"]=/
16580p
16581g
16582s/^[^!]*!//
16583:repl
16584t repl
16585s/'"$ac_delim"'$//
16586t delim
16587:nl
16588h
16589s/\(.\{148\}\)..*/\1/
16590t more1
16591s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16592p
16593n
16594b repl
16595:more1
16596s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16597p
16598g
16599s/.\{148\}//
16600t nl
16601:delim
16602h
16603s/\(.\{148\}\)..*/\1/
16604t more2
16605s/["\\]/\\&/g; s/^/"/; s/$/"/
16606p
16607b
16608:more2
16609s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16610p
16611g
16612s/.\{148\}//
16613t delim
16614' <conf$$subs.awk | sed '
16615/^[^""]/{
16616  N
16617  s/\n//
16618}
16619' >>$CONFIG_STATUS || ac_write_fail=1
16620rm -f conf$$subs.awk
16621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16622_ACAWK
16623cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16624  for (key in S) S_is_set[key] = 1
16625  FS = ""
16626
16627}
16628{
16629  line = $ 0
16630  nfields = split(line, field, "@")
16631  substed = 0
16632  len = length(field[1])
16633  for (i = 2; i < nfields; i++) {
16634    key = field[i]
16635    keylen = length(key)
16636    if (S_is_set[key]) {
16637      value = S[key]
16638      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16639      len += length(value) + length(field[++i])
16640      substed = 1
16641    } else
16642      len += 1 + keylen
16643  }
16644
16645  print line
16646}
16647
16648_ACAWK
16649_ACEOF
16650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16651if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16652  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16653else
16654  cat
16655fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16656  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16657_ACEOF
16658
16659# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16660# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16661# trailing colons and then remove the whole line if VPATH becomes empty
16662# (actually we leave an empty line to preserve line numbers).
16663if test "x$srcdir" = x.; then
16664  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16665h
16666s///
16667s/^/:/
16668s/[	 ]*$/:/
16669s/:\$(srcdir):/:/g
16670s/:\${srcdir}:/:/g
16671s/:@srcdir@:/:/g
16672s/^:*//
16673s/:*$//
16674x
16675s/\(=[	 ]*\).*/\1/
16676G
16677s/\n//
16678s/^[^=]*=[	 ]*$//
16679}'
16680fi
16681
16682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16683fi # test -n "$CONFIG_FILES"
16684
16685# Set up the scripts for CONFIG_HEADERS section.
16686# No need to generate them if there are no CONFIG_HEADERS.
16687# This happens for instance with `./config.status Makefile'.
16688if test -n "$CONFIG_HEADERS"; then
16689cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16690BEGIN {
16691_ACEOF
16692
16693# Transform confdefs.h into an awk script `defines.awk', embedded as
16694# here-document in config.status, that substitutes the proper values into
16695# config.h.in to produce config.h.
16696
16697# Create a delimiter string that does not exist in confdefs.h, to ease
16698# handling of long lines.
16699ac_delim='%!_!# '
16700for ac_last_try in false false :; do
16701  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16702  if test -z "$ac_tt"; then
16703    break
16704  elif $ac_last_try; then
16705    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16706  else
16707    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16708  fi
16709done
16710
16711# For the awk script, D is an array of macro values keyed by name,
16712# likewise P contains macro parameters if any.  Preserve backslash
16713# newline sequences.
16714
16715ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16716sed -n '
16717s/.\{148\}/&'"$ac_delim"'/g
16718t rset
16719:rset
16720s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16721t def
16722d
16723:def
16724s/\\$//
16725t bsnl
16726s/["\\]/\\&/g
16727s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16728D["\1"]=" \3"/p
16729s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16730d
16731:bsnl
16732s/["\\]/\\&/g
16733s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16734D["\1"]=" \3\\\\\\n"\\/p
16735t cont
16736s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16737t cont
16738d
16739:cont
16740n
16741s/.\{148\}/&'"$ac_delim"'/g
16742t clear
16743:clear
16744s/\\$//
16745t bsnlc
16746s/["\\]/\\&/g; s/^/"/; s/$/"/p
16747d
16748:bsnlc
16749s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16750b cont
16751' <confdefs.h | sed '
16752s/'"$ac_delim"'/"\\\
16753"/g' >>$CONFIG_STATUS || ac_write_fail=1
16754
16755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16756  for (key in D) D_is_set[key] = 1
16757  FS = ""
16758}
16759/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16760  line = \$ 0
16761  split(line, arg, " ")
16762  if (arg[1] == "#") {
16763    defundef = arg[2]
16764    mac1 = arg[3]
16765  } else {
16766    defundef = substr(arg[1], 2)
16767    mac1 = arg[2]
16768  }
16769  split(mac1, mac2, "(") #)
16770  macro = mac2[1]
16771  prefix = substr(line, 1, index(line, defundef) - 1)
16772  if (D_is_set[macro]) {
16773    # Preserve the white space surrounding the "#".
16774    print prefix "define", macro P[macro] D[macro]
16775    next
16776  } else {
16777    # Replace #undef with comments.  This is necessary, for example,
16778    # in the case of _POSIX_SOURCE, which is predefined and required
16779    # on some systems where configure will not decide to define it.
16780    if (defundef == "undef") {
16781      print "/*", prefix defundef, macro, "*/"
16782      next
16783    }
16784  }
16785}
16786{ print }
16787_ACAWK
16788_ACEOF
16789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16790  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16791fi # test -n "$CONFIG_HEADERS"
16792
16793
16794eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16795shift
16796for ac_tag
16797do
16798  case $ac_tag in
16799  :[FHLC]) ac_mode=$ac_tag; continue;;
16800  esac
16801  case $ac_mode$ac_tag in
16802  :[FHL]*:*);;
16803  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16804  :[FH]-) ac_tag=-:-;;
16805  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16806  esac
16807  ac_save_IFS=$IFS
16808  IFS=:
16809  set x $ac_tag
16810  IFS=$ac_save_IFS
16811  shift
16812  ac_file=$1
16813  shift
16814
16815  case $ac_mode in
16816  :L) ac_source=$1;;
16817  :[FH])
16818    ac_file_inputs=
16819    for ac_f
16820    do
16821      case $ac_f in
16822      -) ac_f="$ac_tmp/stdin";;
16823      *) # Look for the file first in the build tree, then in the source tree
16824	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16825	 # because $ac_f cannot contain `:'.
16826	 test -f "$ac_f" ||
16827	   case $ac_f in
16828	   [\\/$]*) false;;
16829	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16830	   esac ||
16831	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16832      esac
16833      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16834      as_fn_append ac_file_inputs " '$ac_f'"
16835    done
16836
16837    # Let's still pretend it is `configure' which instantiates (i.e., don't
16838    # use $as_me), people would be surprised to read:
16839    #    /* config.h.  Generated by config.status.  */
16840    configure_input='Generated from '`
16841	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16842	`' by configure.'
16843    if test x"$ac_file" != x-; then
16844      configure_input="$ac_file.  $configure_input"
16845      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16846$as_echo "$as_me: creating $ac_file" >&6;}
16847    fi
16848    # Neutralize special characters interpreted by sed in replacement strings.
16849    case $configure_input in #(
16850    *\&* | *\|* | *\\* )
16851       ac_sed_conf_input=`$as_echo "$configure_input" |
16852       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16853    *) ac_sed_conf_input=$configure_input;;
16854    esac
16855
16856    case $ac_tag in
16857    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16858      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16859    esac
16860    ;;
16861  esac
16862
16863  ac_dir=`$as_dirname -- "$ac_file" ||
16864$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16865	 X"$ac_file" : 'X\(//\)[^/]' \| \
16866	 X"$ac_file" : 'X\(//\)$' \| \
16867	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16868$as_echo X"$ac_file" |
16869    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16870	    s//\1/
16871	    q
16872	  }
16873	  /^X\(\/\/\)[^/].*/{
16874	    s//\1/
16875	    q
16876	  }
16877	  /^X\(\/\/\)$/{
16878	    s//\1/
16879	    q
16880	  }
16881	  /^X\(\/\).*/{
16882	    s//\1/
16883	    q
16884	  }
16885	  s/.*/./; q'`
16886  as_dir="$ac_dir"; as_fn_mkdir_p
16887  ac_builddir=.
16888
16889case "$ac_dir" in
16890.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16891*)
16892  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16893  # A ".." for each directory in $ac_dir_suffix.
16894  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16895  case $ac_top_builddir_sub in
16896  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16897  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16898  esac ;;
16899esac
16900ac_abs_top_builddir=$ac_pwd
16901ac_abs_builddir=$ac_pwd$ac_dir_suffix
16902# for backward compatibility:
16903ac_top_builddir=$ac_top_build_prefix
16904
16905case $srcdir in
16906  .)  # We are building in place.
16907    ac_srcdir=.
16908    ac_top_srcdir=$ac_top_builddir_sub
16909    ac_abs_top_srcdir=$ac_pwd ;;
16910  [\\/]* | ?:[\\/]* )  # Absolute name.
16911    ac_srcdir=$srcdir$ac_dir_suffix;
16912    ac_top_srcdir=$srcdir
16913    ac_abs_top_srcdir=$srcdir ;;
16914  *) # Relative name.
16915    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16916    ac_top_srcdir=$ac_top_build_prefix$srcdir
16917    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16918esac
16919ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16920
16921
16922  case $ac_mode in
16923  :F)
16924  #
16925  # CONFIG_FILE
16926  #
16927
16928  case $INSTALL in
16929  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16930  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16931  esac
16932_ACEOF
16933
16934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16935# If the template does not know about datarootdir, expand it.
16936# FIXME: This hack should be removed a few years after 2.60.
16937ac_datarootdir_hack=; ac_datarootdir_seen=
16938ac_sed_dataroot='
16939/datarootdir/ {
16940  p
16941  q
16942}
16943/@datadir@/p
16944/@docdir@/p
16945/@infodir@/p
16946/@localedir@/p
16947/@mandir@/p'
16948case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16949*datarootdir*) ac_datarootdir_seen=yes;;
16950*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16951  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16952$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16953_ACEOF
16954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16955  ac_datarootdir_hack='
16956  s&@datadir@&$datadir&g
16957  s&@docdir@&$docdir&g
16958  s&@infodir@&$infodir&g
16959  s&@localedir@&$localedir&g
16960  s&@mandir@&$mandir&g
16961  s&\\\${datarootdir}&$datarootdir&g' ;;
16962esac
16963_ACEOF
16964
16965# Neutralize VPATH when `$srcdir' = `.'.
16966# Shell code in configure.ac might set extrasub.
16967# FIXME: do we really want to maintain this feature?
16968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16969ac_sed_extra="$ac_vpsub
16970$extrasub
16971_ACEOF
16972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16973:t
16974/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16975s|@configure_input@|$ac_sed_conf_input|;t t
16976s&@top_builddir@&$ac_top_builddir_sub&;t t
16977s&@top_build_prefix@&$ac_top_build_prefix&;t t
16978s&@srcdir@&$ac_srcdir&;t t
16979s&@abs_srcdir@&$ac_abs_srcdir&;t t
16980s&@top_srcdir@&$ac_top_srcdir&;t t
16981s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16982s&@builddir@&$ac_builddir&;t t
16983s&@abs_builddir@&$ac_abs_builddir&;t t
16984s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16985s&@INSTALL@&$ac_INSTALL&;t t
16986$ac_datarootdir_hack
16987"
16988eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16989  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16990
16991test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16992  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16993  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16994      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16995  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16996which seems to be undefined.  Please make sure it is defined" >&5
16997$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16998which seems to be undefined.  Please make sure it is defined" >&2;}
16999
17000  rm -f "$ac_tmp/stdin"
17001  case $ac_file in
17002  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17003  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17004  esac \
17005  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17006 ;;
17007  :H)
17008  #
17009  # CONFIG_HEADER
17010  #
17011  if test x"$ac_file" != x-; then
17012    {
17013      $as_echo "/* $configure_input  */" \
17014      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17015    } >"$ac_tmp/config.h" \
17016      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17017    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17018      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17019$as_echo "$as_me: $ac_file is unchanged" >&6;}
17020    else
17021      rm -f "$ac_file"
17022      mv "$ac_tmp/config.h" "$ac_file" \
17023	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17024    fi
17025  else
17026    $as_echo "/* $configure_input  */" \
17027      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17028      || as_fn_error $? "could not create -" "$LINENO" 5
17029  fi
17030 ;;
17031
17032  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17033$as_echo "$as_me: executing $ac_file commands" >&6;}
17034 ;;
17035  esac
17036
17037
17038  case $ac_file$ac_mode in
17039    "libtool":C)
17040
17041    # See if we are running on zsh, and set the options which allow our
17042    # commands through without removal of \ escapes.
17043    if test -n "${ZSH_VERSION+set}" ; then
17044      setopt NO_GLOB_SUBST
17045    fi
17046
17047    cfgfile="${ofile}T"
17048    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17049    $RM "$cfgfile"
17050
17051    cat <<_LT_EOF >> "$cfgfile"
17052#! $SHELL
17053
17054# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17055# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17056# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17057# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17058#
17059#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17060#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17061#                 Foundation, Inc.
17062#   Written by Gordon Matzigkeit, 1996
17063#
17064#   This file is part of GNU Libtool.
17065#
17066# GNU Libtool is free software; you can redistribute it and/or
17067# modify it under the terms of the GNU General Public License as
17068# published by the Free Software Foundation; either version 2 of
17069# the License, or (at your option) any later version.
17070#
17071# As a special exception to the GNU General Public License,
17072# if you distribute this file as part of a program or library that
17073# is built using GNU Libtool, you may include this file under the
17074# same distribution terms that you use for the rest of that program.
17075#
17076# GNU Libtool is distributed in the hope that it will be useful,
17077# but WITHOUT ANY WARRANTY; without even the implied warranty of
17078# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17079# GNU General Public License for more details.
17080#
17081# You should have received a copy of the GNU General Public License
17082# along with GNU Libtool; see the file COPYING.  If not, a copy
17083# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17084# obtained by writing to the Free Software Foundation, Inc.,
17085# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17086
17087
17088# The names of the tagged configurations supported by this script.
17089available_tags="CXX "
17090
17091# ### BEGIN LIBTOOL CONFIG
17092
17093# Which release of libtool.m4 was used?
17094macro_version=$macro_version
17095macro_revision=$macro_revision
17096
17097# Assembler program.
17098AS=$lt_AS
17099
17100# DLL creation program.
17101DLLTOOL=$lt_DLLTOOL
17102
17103# Object dumper program.
17104OBJDUMP=$lt_OBJDUMP
17105
17106# Whether or not to build shared libraries.
17107build_libtool_libs=$enable_shared
17108
17109# Whether or not to build static libraries.
17110build_old_libs=$enable_static
17111
17112# What type of objects to build.
17113pic_mode=$pic_mode
17114
17115# Whether or not to optimize for fast installation.
17116fast_install=$enable_fast_install
17117
17118# Shell to use when invoking shell scripts.
17119SHELL=$lt_SHELL
17120
17121# An echo program that protects backslashes.
17122ECHO=$lt_ECHO
17123
17124# The PATH separator for the build system.
17125PATH_SEPARATOR=$lt_PATH_SEPARATOR
17126
17127# The host system.
17128host_alias=$host_alias
17129host=$host
17130host_os=$host_os
17131
17132# The build system.
17133build_alias=$build_alias
17134build=$build
17135build_os=$build_os
17136
17137# A sed program that does not truncate output.
17138SED=$lt_SED
17139
17140# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17141Xsed="\$SED -e 1s/^X//"
17142
17143# A grep program that handles long lines.
17144GREP=$lt_GREP
17145
17146# An ERE matcher.
17147EGREP=$lt_EGREP
17148
17149# A literal string matcher.
17150FGREP=$lt_FGREP
17151
17152# A BSD- or MS-compatible name lister.
17153NM=$lt_NM
17154
17155# Whether we need soft or hard links.
17156LN_S=$lt_LN_S
17157
17158# What is the maximum length of a command?
17159max_cmd_len=$max_cmd_len
17160
17161# Object file suffix (normally "o").
17162objext=$ac_objext
17163
17164# Executable file suffix (normally "").
17165exeext=$exeext
17166
17167# whether the shell understands "unset".
17168lt_unset=$lt_unset
17169
17170# turn spaces into newlines.
17171SP2NL=$lt_lt_SP2NL
17172
17173# turn newlines into spaces.
17174NL2SP=$lt_lt_NL2SP
17175
17176# convert \$build file names to \$host format.
17177to_host_file_cmd=$lt_cv_to_host_file_cmd
17178
17179# convert \$build files to toolchain format.
17180to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17181
17182# Method to check whether dependent libraries are shared objects.
17183deplibs_check_method=$lt_deplibs_check_method
17184
17185# Command to use when deplibs_check_method = "file_magic".
17186file_magic_cmd=$lt_file_magic_cmd
17187
17188# How to find potential files when deplibs_check_method = "file_magic".
17189file_magic_glob=$lt_file_magic_glob
17190
17191# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17192want_nocaseglob=$lt_want_nocaseglob
17193
17194# Command to associate shared and link libraries.
17195sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17196
17197# The archiver.
17198AR=$lt_AR
17199
17200# Flags to create an archive.
17201AR_FLAGS=$lt_AR_FLAGS
17202
17203# How to feed a file listing to the archiver.
17204archiver_list_spec=$lt_archiver_list_spec
17205
17206# A symbol stripping program.
17207STRIP=$lt_STRIP
17208
17209# Commands used to install an old-style archive.
17210RANLIB=$lt_RANLIB
17211old_postinstall_cmds=$lt_old_postinstall_cmds
17212old_postuninstall_cmds=$lt_old_postuninstall_cmds
17213
17214# Whether to use a lock for old archive extraction.
17215lock_old_archive_extraction=$lock_old_archive_extraction
17216
17217# A C compiler.
17218LTCC=$lt_CC
17219
17220# LTCC compiler flags.
17221LTCFLAGS=$lt_CFLAGS
17222
17223# Take the output of nm and produce a listing of raw symbols and C names.
17224global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17225
17226# Transform the output of nm in a proper C declaration.
17227global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17228
17229# Transform the output of nm in a C name address pair.
17230global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17231
17232# Transform the output of nm in a C name address pair when lib prefix is needed.
17233global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17234
17235# Specify filename containing input files for \$NM.
17236nm_file_list_spec=$lt_nm_file_list_spec
17237
17238# The root where to search for dependent libraries,and in which our libraries should be installed.
17239lt_sysroot=$lt_sysroot
17240
17241# The name of the directory that contains temporary libtool files.
17242objdir=$objdir
17243
17244# Used to examine libraries when file_magic_cmd begins with "file".
17245MAGIC_CMD=$MAGIC_CMD
17246
17247# Must we lock files when doing compilation?
17248need_locks=$lt_need_locks
17249
17250# Manifest tool.
17251MANIFEST_TOOL=$lt_MANIFEST_TOOL
17252
17253# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17254DSYMUTIL=$lt_DSYMUTIL
17255
17256# Tool to change global to local symbols on Mac OS X.
17257NMEDIT=$lt_NMEDIT
17258
17259# Tool to manipulate fat objects and archives on Mac OS X.
17260LIPO=$lt_LIPO
17261
17262# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17263OTOOL=$lt_OTOOL
17264
17265# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17266OTOOL64=$lt_OTOOL64
17267
17268# Old archive suffix (normally "a").
17269libext=$libext
17270
17271# Shared library suffix (normally ".so").
17272shrext_cmds=$lt_shrext_cmds
17273
17274# The commands to extract the exported symbol list from a shared archive.
17275extract_expsyms_cmds=$lt_extract_expsyms_cmds
17276
17277# Variables whose values should be saved in libtool wrapper scripts and
17278# restored at link time.
17279variables_saved_for_relink=$lt_variables_saved_for_relink
17280
17281# Do we need the "lib" prefix for modules?
17282need_lib_prefix=$need_lib_prefix
17283
17284# Do we need a version for libraries?
17285need_version=$need_version
17286
17287# Library versioning type.
17288version_type=$version_type
17289
17290# Shared library runtime path variable.
17291runpath_var=$runpath_var
17292
17293# Shared library path variable.
17294shlibpath_var=$shlibpath_var
17295
17296# Is shlibpath searched before the hard-coded library search path?
17297shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17298
17299# Format of library name prefix.
17300libname_spec=$lt_libname_spec
17301
17302# List of archive names.  First name is the real one, the rest are links.
17303# The last name is the one that the linker finds with -lNAME
17304library_names_spec=$lt_library_names_spec
17305
17306# The coded name of the library, if different from the real name.
17307soname_spec=$lt_soname_spec
17308
17309# Permission mode override for installation of shared libraries.
17310install_override_mode=$lt_install_override_mode
17311
17312# Command to use after installation of a shared archive.
17313postinstall_cmds=$lt_postinstall_cmds
17314
17315# Command to use after uninstallation of a shared archive.
17316postuninstall_cmds=$lt_postuninstall_cmds
17317
17318# Commands used to finish a libtool library installation in a directory.
17319finish_cmds=$lt_finish_cmds
17320
17321# As "finish_cmds", except a single script fragment to be evaled but
17322# not shown.
17323finish_eval=$lt_finish_eval
17324
17325# Whether we should hardcode library paths into libraries.
17326hardcode_into_libs=$hardcode_into_libs
17327
17328# Compile-time system search path for libraries.
17329sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17330
17331# Run-time system search path for libraries.
17332sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17333
17334# Whether dlopen is supported.
17335dlopen_support=$enable_dlopen
17336
17337# Whether dlopen of programs is supported.
17338dlopen_self=$enable_dlopen_self
17339
17340# Whether dlopen of statically linked programs is supported.
17341dlopen_self_static=$enable_dlopen_self_static
17342
17343# Commands to strip libraries.
17344old_striplib=$lt_old_striplib
17345striplib=$lt_striplib
17346
17347
17348# The linker used to build libraries.
17349LD=$lt_LD
17350
17351# How to create reloadable object files.
17352reload_flag=$lt_reload_flag
17353reload_cmds=$lt_reload_cmds
17354
17355# Commands used to build an old-style archive.
17356old_archive_cmds=$lt_old_archive_cmds
17357
17358# A language specific compiler.
17359CC=$lt_compiler
17360
17361# Is the compiler the GNU compiler?
17362with_gcc=$GCC
17363
17364# Compiler flag to turn off builtin functions.
17365no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17366
17367# Additional compiler flags for building library objects.
17368pic_flag=$lt_lt_prog_compiler_pic
17369
17370# How to pass a linker flag through the compiler.
17371wl=$lt_lt_prog_compiler_wl
17372
17373# Compiler flag to prevent dynamic linking.
17374link_static_flag=$lt_lt_prog_compiler_static
17375
17376# Does compiler simultaneously support -c and -o options?
17377compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17378
17379# Whether or not to add -lc for building shared libraries.
17380build_libtool_need_lc=$archive_cmds_need_lc
17381
17382# Whether or not to disallow shared libs when runtime libs are static.
17383allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17384
17385# Compiler flag to allow reflexive dlopens.
17386export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17387
17388# Compiler flag to generate shared objects directly from archives.
17389whole_archive_flag_spec=$lt_whole_archive_flag_spec
17390
17391# Whether the compiler copes with passing no objects directly.
17392compiler_needs_object=$lt_compiler_needs_object
17393
17394# Create an old-style archive from a shared archive.
17395old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17396
17397# Create a temporary old-style archive to link instead of a shared archive.
17398old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17399
17400# Commands used to build a shared archive.
17401archive_cmds=$lt_archive_cmds
17402archive_expsym_cmds=$lt_archive_expsym_cmds
17403
17404# Commands used to build a loadable module if different from building
17405# a shared archive.
17406module_cmds=$lt_module_cmds
17407module_expsym_cmds=$lt_module_expsym_cmds
17408
17409# Whether we are building with GNU ld or not.
17410with_gnu_ld=$lt_with_gnu_ld
17411
17412# Flag that allows shared libraries with undefined symbols to be built.
17413allow_undefined_flag=$lt_allow_undefined_flag
17414
17415# Flag that enforces no undefined symbols.
17416no_undefined_flag=$lt_no_undefined_flag
17417
17418# Flag to hardcode \$libdir into a binary during linking.
17419# This must work even if \$libdir does not exist
17420hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17421
17422# Whether we need a single "-rpath" flag with a separated argument.
17423hardcode_libdir_separator=$lt_hardcode_libdir_separator
17424
17425# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17426# DIR into the resulting binary.
17427hardcode_direct=$hardcode_direct
17428
17429# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17430# DIR into the resulting binary and the resulting library dependency is
17431# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17432# library is relocated.
17433hardcode_direct_absolute=$hardcode_direct_absolute
17434
17435# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17436# into the resulting binary.
17437hardcode_minus_L=$hardcode_minus_L
17438
17439# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17440# into the resulting binary.
17441hardcode_shlibpath_var=$hardcode_shlibpath_var
17442
17443# Set to "yes" if building a shared library automatically hardcodes DIR
17444# into the library and all subsequent libraries and executables linked
17445# against it.
17446hardcode_automatic=$hardcode_automatic
17447
17448# Set to yes if linker adds runtime paths of dependent libraries
17449# to runtime path list.
17450inherit_rpath=$inherit_rpath
17451
17452# Whether libtool must link a program against all its dependency libraries.
17453link_all_deplibs=$link_all_deplibs
17454
17455# Set to "yes" if exported symbols are required.
17456always_export_symbols=$always_export_symbols
17457
17458# The commands to list exported symbols.
17459export_symbols_cmds=$lt_export_symbols_cmds
17460
17461# Symbols that should not be listed in the preloaded symbols.
17462exclude_expsyms=$lt_exclude_expsyms
17463
17464# Symbols that must always be exported.
17465include_expsyms=$lt_include_expsyms
17466
17467# Commands necessary for linking programs (against libraries) with templates.
17468prelink_cmds=$lt_prelink_cmds
17469
17470# Commands necessary for finishing linking programs.
17471postlink_cmds=$lt_postlink_cmds
17472
17473# Specify filename containing input files.
17474file_list_spec=$lt_file_list_spec
17475
17476# How to hardcode a shared library path into an executable.
17477hardcode_action=$hardcode_action
17478
17479# The directories searched by this compiler when creating a shared library.
17480compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17481
17482# Dependencies to place before and after the objects being linked to
17483# create a shared library.
17484predep_objects=$lt_predep_objects
17485postdep_objects=$lt_postdep_objects
17486predeps=$lt_predeps
17487postdeps=$lt_postdeps
17488
17489# The library search path used internally by the compiler when linking
17490# a shared library.
17491compiler_lib_search_path=$lt_compiler_lib_search_path
17492
17493# ### END LIBTOOL CONFIG
17494
17495_LT_EOF
17496
17497  case $host_os in
17498  aix3*)
17499    cat <<\_LT_EOF >> "$cfgfile"
17500# AIX sometimes has problems with the GCC collect2 program.  For some
17501# reason, if we set the COLLECT_NAMES environment variable, the problems
17502# vanish in a puff of smoke.
17503if test "X${COLLECT_NAMES+set}" != Xset; then
17504  COLLECT_NAMES=
17505  export COLLECT_NAMES
17506fi
17507_LT_EOF
17508    ;;
17509  esac
17510
17511
17512ltmain="$ac_aux_dir/ltmain.sh"
17513
17514
17515  # We use sed instead of cat because bash on DJGPP gets confused if
17516  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17517  # text mode, it properly converts lines to CR/LF.  This bash problem
17518  # is reportedly fixed, but why not run on old versions too?
17519  sed '$q' "$ltmain" >> "$cfgfile" \
17520     || (rm -f "$cfgfile"; exit 1)
17521
17522  if test x"$xsi_shell" = xyes; then
17523  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17524func_dirname ()\
17525{\
17526\    case ${1} in\
17527\      */*) func_dirname_result="${1%/*}${2}" ;;\
17528\      *  ) func_dirname_result="${3}" ;;\
17529\    esac\
17530} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17531  && mv -f "$cfgfile.tmp" "$cfgfile" \
17532    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17533test 0 -eq $? || _lt_function_replace_fail=:
17534
17535
17536  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17537func_basename ()\
17538{\
17539\    func_basename_result="${1##*/}"\
17540} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17541  && mv -f "$cfgfile.tmp" "$cfgfile" \
17542    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17543test 0 -eq $? || _lt_function_replace_fail=:
17544
17545
17546  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17547func_dirname_and_basename ()\
17548{\
17549\    case ${1} in\
17550\      */*) func_dirname_result="${1%/*}${2}" ;;\
17551\      *  ) func_dirname_result="${3}" ;;\
17552\    esac\
17553\    func_basename_result="${1##*/}"\
17554} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17555  && mv -f "$cfgfile.tmp" "$cfgfile" \
17556    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17557test 0 -eq $? || _lt_function_replace_fail=:
17558
17559
17560  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17561func_stripname ()\
17562{\
17563\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17564\    # positional parameters, so assign one to ordinary parameter first.\
17565\    func_stripname_result=${3}\
17566\    func_stripname_result=${func_stripname_result#"${1}"}\
17567\    func_stripname_result=${func_stripname_result%"${2}"}\
17568} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17569  && mv -f "$cfgfile.tmp" "$cfgfile" \
17570    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17571test 0 -eq $? || _lt_function_replace_fail=:
17572
17573
17574  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17575func_split_long_opt ()\
17576{\
17577\    func_split_long_opt_name=${1%%=*}\
17578\    func_split_long_opt_arg=${1#*=}\
17579} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17580  && mv -f "$cfgfile.tmp" "$cfgfile" \
17581    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17582test 0 -eq $? || _lt_function_replace_fail=:
17583
17584
17585  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17586func_split_short_opt ()\
17587{\
17588\    func_split_short_opt_arg=${1#??}\
17589\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17590} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17591  && mv -f "$cfgfile.tmp" "$cfgfile" \
17592    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17593test 0 -eq $? || _lt_function_replace_fail=:
17594
17595
17596  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17597func_lo2o ()\
17598{\
17599\    case ${1} in\
17600\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17601\      *)    func_lo2o_result=${1} ;;\
17602\    esac\
17603} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17604  && mv -f "$cfgfile.tmp" "$cfgfile" \
17605    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17606test 0 -eq $? || _lt_function_replace_fail=:
17607
17608
17609  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17610func_xform ()\
17611{\
17612    func_xform_result=${1%.*}.lo\
17613} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17614  && mv -f "$cfgfile.tmp" "$cfgfile" \
17615    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17616test 0 -eq $? || _lt_function_replace_fail=:
17617
17618
17619  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17620func_arith ()\
17621{\
17622    func_arith_result=$(( $* ))\
17623} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17624  && mv -f "$cfgfile.tmp" "$cfgfile" \
17625    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17626test 0 -eq $? || _lt_function_replace_fail=:
17627
17628
17629  sed -e '/^func_len ()$/,/^} # func_len /c\
17630func_len ()\
17631{\
17632    func_len_result=${#1}\
17633} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17634  && mv -f "$cfgfile.tmp" "$cfgfile" \
17635    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17636test 0 -eq $? || _lt_function_replace_fail=:
17637
17638fi
17639
17640if test x"$lt_shell_append" = xyes; then
17641  sed -e '/^func_append ()$/,/^} # func_append /c\
17642func_append ()\
17643{\
17644    eval "${1}+=\\${2}"\
17645} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17646  && mv -f "$cfgfile.tmp" "$cfgfile" \
17647    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17648test 0 -eq $? || _lt_function_replace_fail=:
17649
17650
17651  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17652func_append_quoted ()\
17653{\
17654\    func_quote_for_eval "${2}"\
17655\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17656} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17657  && mv -f "$cfgfile.tmp" "$cfgfile" \
17658    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17659test 0 -eq $? || _lt_function_replace_fail=:
17660
17661
17662  # Save a `func_append' function call where possible by direct use of '+='
17663  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17664    && mv -f "$cfgfile.tmp" "$cfgfile" \
17665      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17666  test 0 -eq $? || _lt_function_replace_fail=:
17667else
17668  # Save a `func_append' function call even when '+=' is not available
17669  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17670    && mv -f "$cfgfile.tmp" "$cfgfile" \
17671      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17672  test 0 -eq $? || _lt_function_replace_fail=:
17673fi
17674
17675if test x"$_lt_function_replace_fail" = x":"; then
17676  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17677$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17678fi
17679
17680
17681   mv -f "$cfgfile" "$ofile" ||
17682    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17683  chmod +x "$ofile"
17684
17685
17686    cat <<_LT_EOF >> "$ofile"
17687
17688# ### BEGIN LIBTOOL TAG CONFIG: CXX
17689
17690# The linker used to build libraries.
17691LD=$lt_LD_CXX
17692
17693# How to create reloadable object files.
17694reload_flag=$lt_reload_flag_CXX
17695reload_cmds=$lt_reload_cmds_CXX
17696
17697# Commands used to build an old-style archive.
17698old_archive_cmds=$lt_old_archive_cmds_CXX
17699
17700# A language specific compiler.
17701CC=$lt_compiler_CXX
17702
17703# Is the compiler the GNU compiler?
17704with_gcc=$GCC_CXX
17705
17706# Compiler flag to turn off builtin functions.
17707no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17708
17709# Additional compiler flags for building library objects.
17710pic_flag=$lt_lt_prog_compiler_pic_CXX
17711
17712# How to pass a linker flag through the compiler.
17713wl=$lt_lt_prog_compiler_wl_CXX
17714
17715# Compiler flag to prevent dynamic linking.
17716link_static_flag=$lt_lt_prog_compiler_static_CXX
17717
17718# Does compiler simultaneously support -c and -o options?
17719compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17720
17721# Whether or not to add -lc for building shared libraries.
17722build_libtool_need_lc=$archive_cmds_need_lc_CXX
17723
17724# Whether or not to disallow shared libs when runtime libs are static.
17725allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17726
17727# Compiler flag to allow reflexive dlopens.
17728export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17729
17730# Compiler flag to generate shared objects directly from archives.
17731whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17732
17733# Whether the compiler copes with passing no objects directly.
17734compiler_needs_object=$lt_compiler_needs_object_CXX
17735
17736# Create an old-style archive from a shared archive.
17737old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17738
17739# Create a temporary old-style archive to link instead of a shared archive.
17740old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17741
17742# Commands used to build a shared archive.
17743archive_cmds=$lt_archive_cmds_CXX
17744archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17745
17746# Commands used to build a loadable module if different from building
17747# a shared archive.
17748module_cmds=$lt_module_cmds_CXX
17749module_expsym_cmds=$lt_module_expsym_cmds_CXX
17750
17751# Whether we are building with GNU ld or not.
17752with_gnu_ld=$lt_with_gnu_ld_CXX
17753
17754# Flag that allows shared libraries with undefined symbols to be built.
17755allow_undefined_flag=$lt_allow_undefined_flag_CXX
17756
17757# Flag that enforces no undefined symbols.
17758no_undefined_flag=$lt_no_undefined_flag_CXX
17759
17760# Flag to hardcode \$libdir into a binary during linking.
17761# This must work even if \$libdir does not exist
17762hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17763
17764# Whether we need a single "-rpath" flag with a separated argument.
17765hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17766
17767# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17768# DIR into the resulting binary.
17769hardcode_direct=$hardcode_direct_CXX
17770
17771# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17772# DIR into the resulting binary and the resulting library dependency is
17773# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17774# library is relocated.
17775hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17776
17777# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17778# into the resulting binary.
17779hardcode_minus_L=$hardcode_minus_L_CXX
17780
17781# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17782# into the resulting binary.
17783hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17784
17785# Set to "yes" if building a shared library automatically hardcodes DIR
17786# into the library and all subsequent libraries and executables linked
17787# against it.
17788hardcode_automatic=$hardcode_automatic_CXX
17789
17790# Set to yes if linker adds runtime paths of dependent libraries
17791# to runtime path list.
17792inherit_rpath=$inherit_rpath_CXX
17793
17794# Whether libtool must link a program against all its dependency libraries.
17795link_all_deplibs=$link_all_deplibs_CXX
17796
17797# Set to "yes" if exported symbols are required.
17798always_export_symbols=$always_export_symbols_CXX
17799
17800# The commands to list exported symbols.
17801export_symbols_cmds=$lt_export_symbols_cmds_CXX
17802
17803# Symbols that should not be listed in the preloaded symbols.
17804exclude_expsyms=$lt_exclude_expsyms_CXX
17805
17806# Symbols that must always be exported.
17807include_expsyms=$lt_include_expsyms_CXX
17808
17809# Commands necessary for linking programs (against libraries) with templates.
17810prelink_cmds=$lt_prelink_cmds_CXX
17811
17812# Commands necessary for finishing linking programs.
17813postlink_cmds=$lt_postlink_cmds_CXX
17814
17815# Specify filename containing input files.
17816file_list_spec=$lt_file_list_spec_CXX
17817
17818# How to hardcode a shared library path into an executable.
17819hardcode_action=$hardcode_action_CXX
17820
17821# The directories searched by this compiler when creating a shared library.
17822compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17823
17824# Dependencies to place before and after the objects being linked to
17825# create a shared library.
17826predep_objects=$lt_predep_objects_CXX
17827postdep_objects=$lt_postdep_objects_CXX
17828predeps=$lt_predeps_CXX
17829postdeps=$lt_postdeps_CXX
17830
17831# The library search path used internally by the compiler when linking
17832# a shared library.
17833compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17834
17835# ### END LIBTOOL TAG CONFIG: CXX
17836_LT_EOF
17837
17838 ;;
17839
17840  esac
17841done # for ac_tag
17842
17843
17844as_fn_exit 0
17845_ACEOF
17846ac_clean_files=$ac_clean_files_save
17847
17848test $ac_write_fail = 0 ||
17849  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17850
17851
17852# configure is writing to config.log, and then calls config.status.
17853# config.status does its own redirection, appending to config.log.
17854# Unfortunately, on DOS this fails, as config.log is still kept open
17855# by configure, so config.status won't be able to write to it; its
17856# output is simply discarded.  So we exec the FD to /dev/null,
17857# effectively closing config.log, so it can be properly (re)opened and
17858# appended to by config.status.  When coming back to configure, we
17859# need to make the FD available again.
17860if test "$no_create" != yes; then
17861  ac_cs_success=:
17862  ac_config_status_args=
17863  test "$silent" = yes &&
17864    ac_config_status_args="$ac_config_status_args --quiet"
17865  exec 5>/dev/null
17866  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17867  exec 5>>config.log
17868  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17869  # would make configure fail if this is the last instruction.
17870  $ac_cs_success || as_fn_exit 1
17871fi
17872if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17873  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17874$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17875fi
17876
17877