1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for mercator 0.3.3.
4#
5# Report bugs to <erik@ogenvik.org>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and erik@ogenvik.org
250$0: about your system, including any error possibly output
251$0: before this message. Then install a modern shell, or
252$0: manually run the script under such a shell if you do
253$0: have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='mercator'
572PACKAGE_TARNAME='mercator'
573PACKAGE_VERSION='0.3.3'
574PACKAGE_STRING='mercator 0.3.3'
575PACKAGE_BUGREPORT='erik@ogenvik.org'
576PACKAGE_URL=''
577
578ac_unique_file="Mercator/Mercator.cpp"
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593#  include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598#  include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
618LIBOBJS
619MERCATOR_REQUIRES
620MERCATOR_CFLAGS
621MERCATOR_LIBS
622MERCATOR_LIB_SUFFIX
623SYSTEM_LIBS
624WF_LIBS
625WF_CFLAGS
626PKG_CONFIG_LIBDIR
627PKG_CONFIG_PATH
628PKG_CONFIG
629CXXCPP
630am__fastdepCXX_FALSE
631am__fastdepCXX_TRUE
632CXXDEPMODE
633ac_ct_CXX
634CXXFLAGS
635CXX
636CPP
637OTOOL64
638OTOOL
639LIPO
640NMEDIT
641DSYMUTIL
642MANIFEST_TOOL
643RANLIB
644ac_ct_AR
645AR
646DLLTOOL
647OBJDUMP
648LN_S
649NM
650ac_ct_DUMPBIN
651DUMPBIN
652LD
653FGREP
654EGREP
655GREP
656SED
657am__fastdepCC_FALSE
658am__fastdepCC_TRUE
659CCDEPMODE
660am__nodep
661AMDEPBACKSLASH
662AMDEP_FALSE
663AMDEP_TRUE
664am__quote
665am__include
666DEPDIR
667OBJEXT
668EXEEXT
669ac_ct_CC
670CPPFLAGS
671LDFLAGS
672CFLAGS
673CC
674LIBTOOL
675MERCATOR_VERSION_INFO
676AM_BACKSLASH
677AM_DEFAULT_VERBOSITY
678AM_DEFAULT_V
679AM_V
680am__untar
681am__tar
682AMTAR
683am__leading_dot
684SET_MAKE
685AWK
686mkdir_p
687MKDIR_P
688INSTALL_STRIP_PROGRAM
689STRIP
690install_sh
691MAKEINFO
692AUTOHEADER
693AUTOMAKE
694AUTOCONF
695ACLOCAL
696VERSION
697PACKAGE
698CYGPATH_W
699am__isrc
700INSTALL_DATA
701INSTALL_SCRIPT
702INSTALL_PROGRAM
703host_os
704host_vendor
705host_cpu
706host
707build_os
708build_vendor
709build_cpu
710build
711target_alias
712host_alias
713build_alias
714LIBS
715ECHO_T
716ECHO_N
717ECHO_C
718DEFS
719mandir
720localedir
721libdir
722psdir
723pdfdir
724dvidir
725htmldir
726infodir
727docdir
728oldincludedir
729includedir
730localstatedir
731sharedstatedir
732sysconfdir
733datadir
734datarootdir
735libexecdir
736sbindir
737bindir
738program_transform_name
739prefix
740exec_prefix
741PACKAGE_URL
742PACKAGE_BUGREPORT
743PACKAGE_STRING
744PACKAGE_VERSION
745PACKAGE_TARNAME
746PACKAGE_NAME
747PATH_SEPARATOR
748SHELL'
749ac_subst_files=''
750ac_user_opts='
751enable_option_checking
752enable_silent_rules
753enable_static
754enable_shared
755with_pic
756enable_fast_install
757enable_dependency_tracking
758with_gnu_ld
759with_sysroot
760enable_libtool_lock
761enable_debug
762'
763      ac_precious_vars='build_alias
764host_alias
765target_alias
766CC
767CFLAGS
768LDFLAGS
769LIBS
770CPPFLAGS
771CPP
772CXX
773CXXFLAGS
774CCC
775CXXCPP
776PKG_CONFIG
777PKG_CONFIG_PATH
778PKG_CONFIG_LIBDIR
779WF_CFLAGS
780WF_LIBS'
781
782
783# Initialize some variables set by options.
784ac_init_help=
785ac_init_version=false
786ac_unrecognized_opts=
787ac_unrecognized_sep=
788# The variables have the same names as the options, with
789# dashes changed to underlines.
790cache_file=/dev/null
791exec_prefix=NONE
792no_create=
793no_recursion=
794prefix=NONE
795program_prefix=NONE
796program_suffix=NONE
797program_transform_name=s,x,x,
798silent=
799site=
800srcdir=
801verbose=
802x_includes=NONE
803x_libraries=NONE
804
805# Installation directory options.
806# These are left unexpanded so users can "make install exec_prefix=/foo"
807# and all the variables that are supposed to be based on exec_prefix
808# by default will actually change.
809# Use braces instead of parens because sh, perl, etc. also accept them.
810# (The list follows the same order as the GNU Coding Standards.)
811bindir='${exec_prefix}/bin'
812sbindir='${exec_prefix}/sbin'
813libexecdir='${exec_prefix}/libexec'
814datarootdir='${prefix}/share'
815datadir='${datarootdir}'
816sysconfdir='${prefix}/etc'
817sharedstatedir='${prefix}/com'
818localstatedir='${prefix}/var'
819includedir='${prefix}/include'
820oldincludedir='/usr/include'
821docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822infodir='${datarootdir}/info'
823htmldir='${docdir}'
824dvidir='${docdir}'
825pdfdir='${docdir}'
826psdir='${docdir}'
827libdir='${exec_prefix}/lib'
828localedir='${datarootdir}/locale'
829mandir='${datarootdir}/man'
830
831ac_prev=
832ac_dashdash=
833for ac_option
834do
835  # If the previous option needs an argument, assign it.
836  if test -n "$ac_prev"; then
837    eval $ac_prev=\$ac_option
838    ac_prev=
839    continue
840  fi
841
842  case $ac_option in
843  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844  *=)   ac_optarg= ;;
845  *)    ac_optarg=yes ;;
846  esac
847
848  # Accept the important Cygnus configure options, so we can diagnose typos.
849
850  case $ac_dashdash$ac_option in
851  --)
852    ac_dashdash=yes ;;
853
854  -bindir | --bindir | --bindi | --bind | --bin | --bi)
855    ac_prev=bindir ;;
856  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857    bindir=$ac_optarg ;;
858
859  -build | --build | --buil | --bui | --bu)
860    ac_prev=build_alias ;;
861  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862    build_alias=$ac_optarg ;;
863
864  -cache-file | --cache-file | --cache-fil | --cache-fi \
865  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866    ac_prev=cache_file ;;
867  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869    cache_file=$ac_optarg ;;
870
871  --config-cache | -C)
872    cache_file=config.cache ;;
873
874  -datadir | --datadir | --datadi | --datad)
875    ac_prev=datadir ;;
876  -datadir=* | --datadir=* | --datadi=* | --datad=*)
877    datadir=$ac_optarg ;;
878
879  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880  | --dataroo | --dataro | --datar)
881    ac_prev=datarootdir ;;
882  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884    datarootdir=$ac_optarg ;;
885
886  -disable-* | --disable-*)
887    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888    # Reject names that are not valid shell variable names.
889    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890      as_fn_error $? "invalid feature name: $ac_useropt"
891    ac_useropt_orig=$ac_useropt
892    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893    case $ac_user_opts in
894      *"
895"enable_$ac_useropt"
896"*) ;;
897      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898	 ac_unrecognized_sep=', ';;
899    esac
900    eval enable_$ac_useropt=no ;;
901
902  -docdir | --docdir | --docdi | --doc | --do)
903    ac_prev=docdir ;;
904  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905    docdir=$ac_optarg ;;
906
907  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908    ac_prev=dvidir ;;
909  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910    dvidir=$ac_optarg ;;
911
912  -enable-* | --enable-*)
913    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914    # Reject names that are not valid shell variable names.
915    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916      as_fn_error $? "invalid feature name: $ac_useropt"
917    ac_useropt_orig=$ac_useropt
918    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919    case $ac_user_opts in
920      *"
921"enable_$ac_useropt"
922"*) ;;
923      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924	 ac_unrecognized_sep=', ';;
925    esac
926    eval enable_$ac_useropt=\$ac_optarg ;;
927
928  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930  | --exec | --exe | --ex)
931    ac_prev=exec_prefix ;;
932  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934  | --exec=* | --exe=* | --ex=*)
935    exec_prefix=$ac_optarg ;;
936
937  -gas | --gas | --ga | --g)
938    # Obsolete; use --with-gas.
939    with_gas=yes ;;
940
941  -help | --help | --hel | --he | -h)
942    ac_init_help=long ;;
943  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944    ac_init_help=recursive ;;
945  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946    ac_init_help=short ;;
947
948  -host | --host | --hos | --ho)
949    ac_prev=host_alias ;;
950  -host=* | --host=* | --hos=* | --ho=*)
951    host_alias=$ac_optarg ;;
952
953  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954    ac_prev=htmldir ;;
955  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956  | --ht=*)
957    htmldir=$ac_optarg ;;
958
959  -includedir | --includedir | --includedi | --included | --include \
960  | --includ | --inclu | --incl | --inc)
961    ac_prev=includedir ;;
962  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963  | --includ=* | --inclu=* | --incl=* | --inc=*)
964    includedir=$ac_optarg ;;
965
966  -infodir | --infodir | --infodi | --infod | --info | --inf)
967    ac_prev=infodir ;;
968  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969    infodir=$ac_optarg ;;
970
971  -libdir | --libdir | --libdi | --libd)
972    ac_prev=libdir ;;
973  -libdir=* | --libdir=* | --libdi=* | --libd=*)
974    libdir=$ac_optarg ;;
975
976  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977  | --libexe | --libex | --libe)
978    ac_prev=libexecdir ;;
979  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980  | --libexe=* | --libex=* | --libe=*)
981    libexecdir=$ac_optarg ;;
982
983  -localedir | --localedir | --localedi | --localed | --locale)
984    ac_prev=localedir ;;
985  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986    localedir=$ac_optarg ;;
987
988  -localstatedir | --localstatedir | --localstatedi | --localstated \
989  | --localstate | --localstat | --localsta | --localst | --locals)
990    ac_prev=localstatedir ;;
991  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993    localstatedir=$ac_optarg ;;
994
995  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996    ac_prev=mandir ;;
997  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998    mandir=$ac_optarg ;;
999
1000  -nfp | --nfp | --nf)
1001    # Obsolete; use --without-fp.
1002    with_fp=no ;;
1003
1004  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005  | --no-cr | --no-c | -n)
1006    no_create=yes ;;
1007
1008  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010    no_recursion=yes ;;
1011
1012  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014  | --oldin | --oldi | --old | --ol | --o)
1015    ac_prev=oldincludedir ;;
1016  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019    oldincludedir=$ac_optarg ;;
1020
1021  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022    ac_prev=prefix ;;
1023  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024    prefix=$ac_optarg ;;
1025
1026  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027  | --program-pre | --program-pr | --program-p)
1028    ac_prev=program_prefix ;;
1029  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031    program_prefix=$ac_optarg ;;
1032
1033  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034  | --program-suf | --program-su | --program-s)
1035    ac_prev=program_suffix ;;
1036  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038    program_suffix=$ac_optarg ;;
1039
1040  -program-transform-name | --program-transform-name \
1041  | --program-transform-nam | --program-transform-na \
1042  | --program-transform-n | --program-transform- \
1043  | --program-transform | --program-transfor \
1044  | --program-transfo | --program-transf \
1045  | --program-trans | --program-tran \
1046  | --progr-tra | --program-tr | --program-t)
1047    ac_prev=program_transform_name ;;
1048  -program-transform-name=* | --program-transform-name=* \
1049  | --program-transform-nam=* | --program-transform-na=* \
1050  | --program-transform-n=* | --program-transform-=* \
1051  | --program-transform=* | --program-transfor=* \
1052  | --program-transfo=* | --program-transf=* \
1053  | --program-trans=* | --program-tran=* \
1054  | --progr-tra=* | --program-tr=* | --program-t=*)
1055    program_transform_name=$ac_optarg ;;
1056
1057  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058    ac_prev=pdfdir ;;
1059  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060    pdfdir=$ac_optarg ;;
1061
1062  -psdir | --psdir | --psdi | --psd | --ps)
1063    ac_prev=psdir ;;
1064  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065    psdir=$ac_optarg ;;
1066
1067  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068  | -silent | --silent | --silen | --sile | --sil)
1069    silent=yes ;;
1070
1071  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072    ac_prev=sbindir ;;
1073  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074  | --sbi=* | --sb=*)
1075    sbindir=$ac_optarg ;;
1076
1077  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079  | --sharedst | --shareds | --shared | --share | --shar \
1080  | --sha | --sh)
1081    ac_prev=sharedstatedir ;;
1082  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085  | --sha=* | --sh=*)
1086    sharedstatedir=$ac_optarg ;;
1087
1088  -site | --site | --sit)
1089    ac_prev=site ;;
1090  -site=* | --site=* | --sit=*)
1091    site=$ac_optarg ;;
1092
1093  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094    ac_prev=srcdir ;;
1095  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096    srcdir=$ac_optarg ;;
1097
1098  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099  | --syscon | --sysco | --sysc | --sys | --sy)
1100    ac_prev=sysconfdir ;;
1101  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103    sysconfdir=$ac_optarg ;;
1104
1105  -target | --target | --targe | --targ | --tar | --ta | --t)
1106    ac_prev=target_alias ;;
1107  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108    target_alias=$ac_optarg ;;
1109
1110  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111    verbose=yes ;;
1112
1113  -version | --version | --versio | --versi | --vers | -V)
1114    ac_init_version=: ;;
1115
1116  -with-* | --with-*)
1117    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118    # Reject names that are not valid shell variable names.
1119    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120      as_fn_error $? "invalid package name: $ac_useropt"
1121    ac_useropt_orig=$ac_useropt
1122    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123    case $ac_user_opts in
1124      *"
1125"with_$ac_useropt"
1126"*) ;;
1127      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128	 ac_unrecognized_sep=', ';;
1129    esac
1130    eval with_$ac_useropt=\$ac_optarg ;;
1131
1132  -without-* | --without-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid package name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"with_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval with_$ac_useropt=no ;;
1147
1148  --x)
1149    # Obsolete; use --with-x.
1150    with_x=yes ;;
1151
1152  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153  | --x-incl | --x-inc | --x-in | --x-i)
1154    ac_prev=x_includes ;;
1155  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157    x_includes=$ac_optarg ;;
1158
1159  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161    ac_prev=x_libraries ;;
1162  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164    x_libraries=$ac_optarg ;;
1165
1166  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167Try \`$0 --help' for more information"
1168    ;;
1169
1170  *=*)
1171    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172    # Reject names that are not valid shell variable names.
1173    case $ac_envvar in #(
1174      '' | [0-9]* | *[!_$as_cr_alnum]* )
1175      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176    esac
1177    eval $ac_envvar=\$ac_optarg
1178    export $ac_envvar ;;
1179
1180  *)
1181    # FIXME: should be removed in autoconf 3.0.
1182    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186    ;;
1187
1188  esac
1189done
1190
1191if test -n "$ac_prev"; then
1192  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193  as_fn_error $? "missing argument to $ac_option"
1194fi
1195
1196if test -n "$ac_unrecognized_opts"; then
1197  case $enable_option_checking in
1198    no) ;;
1199    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201  esac
1202fi
1203
1204# Check all directory arguments for consistency.
1205for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206		datadir sysconfdir sharedstatedir localstatedir includedir \
1207		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208		libdir localedir mandir
1209do
1210  eval ac_val=\$$ac_var
1211  # Remove trailing slashes.
1212  case $ac_val in
1213    */ )
1214      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215      eval $ac_var=\$ac_val;;
1216  esac
1217  # Be sure to have absolute directory names.
1218  case $ac_val in
1219    [\\/$]* | ?:[\\/]* )  continue;;
1220    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221  esac
1222  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223done
1224
1225# There might be people who depend on the old broken behavior: `$host'
1226# used to hold the argument of --host etc.
1227# FIXME: To remove some day.
1228build=$build_alias
1229host=$host_alias
1230target=$target_alias
1231
1232# FIXME: To remove some day.
1233if test "x$host_alias" != x; then
1234  if test "x$build_alias" = x; then
1235    cross_compiling=maybe
1236    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1237    If a cross compiler is detected then cross compile mode will be used" >&2
1238  elif test "x$build_alias" != "x$host_alias"; then
1239    cross_compiling=yes
1240  fi
1241fi
1242
1243ac_tool_prefix=
1244test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246test "$silent" = yes && exec 6>/dev/null
1247
1248
1249ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250ac_ls_di=`ls -di .` &&
1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252  as_fn_error $? "working directory cannot be determined"
1253test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254  as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257# Find the source files, if location was not specified.
1258if test -z "$srcdir"; then
1259  ac_srcdir_defaulted=yes
1260  # Try the directory containing this script, then the parent directory.
1261  ac_confdir=`$as_dirname -- "$as_myself" ||
1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263	 X"$as_myself" : 'X\(//\)[^/]' \| \
1264	 X"$as_myself" : 'X\(//\)$' \| \
1265	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266$as_echo X"$as_myself" |
1267    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268	    s//\1/
1269	    q
1270	  }
1271	  /^X\(\/\/\)[^/].*/{
1272	    s//\1/
1273	    q
1274	  }
1275	  /^X\(\/\/\)$/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\).*/{
1280	    s//\1/
1281	    q
1282	  }
1283	  s/.*/./; q'`
1284  srcdir=$ac_confdir
1285  if test ! -r "$srcdir/$ac_unique_file"; then
1286    srcdir=..
1287  fi
1288else
1289  ac_srcdir_defaulted=no
1290fi
1291if test ! -r "$srcdir/$ac_unique_file"; then
1292  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294fi
1295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296ac_abs_confdir=`(
1297	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298	pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301  srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311  eval ac_env_${ac_var}_value=\$${ac_var}
1312  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
1315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320  # Omit some internal or obsolete options to make the list less imposing.
1321  # This message is too long to be a string in the A/UX 3.1 sh.
1322  cat <<_ACEOF
1323\`configure' configures mercator 0.3.3 to adapt to many kinds of systems.
1324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE.  See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333  -h, --help              display this help and exit
1334      --help=short        display options specific to this package
1335      --help=recursive    display the short help of all the included packages
1336  -V, --version           display version information and exit
1337  -q, --quiet, --silent   do not print \`checking ...' messages
1338      --cache-file=FILE   cache test results in FILE [disabled]
1339  -C, --config-cache      alias for \`--cache-file=config.cache'
1340  -n, --no-create         do not create output files
1341      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1342
1343Installation directories:
1344  --prefix=PREFIX         install architecture-independent files in PREFIX
1345                          [$ac_default_prefix]
1346  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1347                          [PREFIX]
1348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
1357  --bindir=DIR            user executables [EPREFIX/bin]
1358  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1359  --libexecdir=DIR        program executables [EPREFIX/libexec]
1360  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1361  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1362  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1363  --libdir=DIR            object code libraries [EPREFIX/lib]
1364  --includedir=DIR        C header files [PREFIX/include]
1365  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1366  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1367  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1368  --infodir=DIR           info documentation [DATAROOTDIR/info]
1369  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1370  --mandir=DIR            man documentation [DATAROOTDIR/man]
1371  --docdir=DIR            documentation root [DATAROOTDIR/doc/mercator]
1372  --htmldir=DIR           html documentation [DOCDIR]
1373  --dvidir=DIR            dvi documentation [DOCDIR]
1374  --pdfdir=DIR            pdf documentation [DOCDIR]
1375  --psdir=DIR             ps documentation [DOCDIR]
1376_ACEOF
1377
1378  cat <<\_ACEOF
1379
1380Program names:
1381  --program-prefix=PREFIX            prepend PREFIX to installed program names
1382  --program-suffix=SUFFIX            append SUFFIX to installed program names
1383  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1384
1385System types:
1386  --build=BUILD     configure for building on BUILD [guessed]
1387  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1388_ACEOF
1389fi
1390
1391if test -n "$ac_init_help"; then
1392  case $ac_init_help in
1393     short | recursive ) echo "Configuration of mercator 0.3.3:";;
1394   esac
1395  cat <<\_ACEOF
1396
1397Optional Features:
1398  --disable-option-checking  ignore unrecognized --enable/--with options
1399  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1400  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1401  --enable-silent-rules          less verbose build output (undo: `make V=1')
1402  --disable-silent-rules         verbose build output (undo: `make V=0')
1403  --enable-static[=PKGS]  build static libraries [default=no]
1404  --enable-shared[=PKGS]  build shared libraries [default=yes]
1405  --enable-fast-install[=PKGS]
1406                          optimize for fast installation [default=yes]
1407  --disable-dependency-tracking  speeds up one-time build
1408  --enable-dependency-tracking   do not reject slow dependency extractors
1409  --disable-libtool-lock  avoid locking (might break parallel builds)
1410  --enable-debug          enable debug information default=no
1411
1412Optional Packages:
1413  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1414  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1415  --with-pic              try to use only PIC/non-PIC objects [default=use
1416                          both]
1417  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1418  --with-sysroot=DIR Search for dependent libraries within DIR
1419                        (or the compiler's sysroot if not specified).
1420
1421Some influential environment variables:
1422  CC          C compiler command
1423  CFLAGS      C compiler flags
1424  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1425              nonstandard directory <lib dir>
1426  LIBS        libraries to pass to the linker, e.g. -l<library>
1427  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1428              you have headers in a nonstandard directory <include dir>
1429  CPP         C preprocessor
1430  CXX         C++ compiler command
1431  CXXFLAGS    C++ compiler flags
1432  CXXCPP      C++ preprocessor
1433  PKG_CONFIG  path to pkg-config utility
1434  PKG_CONFIG_PATH
1435              directories to add to pkg-config's search path
1436  PKG_CONFIG_LIBDIR
1437              path overriding pkg-config's built-in search path
1438  WF_CFLAGS   C compiler flags for WF, overriding pkg-config
1439  WF_LIBS     linker flags for WF, overriding pkg-config
1440
1441Use these variables to override the choices made by `configure' or to help
1442it to find libraries and programs with nonstandard names/locations.
1443
1444Report bugs to <erik@ogenvik.org>.
1445_ACEOF
1446ac_status=$?
1447fi
1448
1449if test "$ac_init_help" = "recursive"; then
1450  # If there are subdirs, report their specific --help.
1451  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452    test -d "$ac_dir" ||
1453      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454      continue
1455    ac_builddir=.
1456
1457case "$ac_dir" in
1458.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459*)
1460  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461  # A ".." for each directory in $ac_dir_suffix.
1462  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463  case $ac_top_builddir_sub in
1464  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466  esac ;;
1467esac
1468ac_abs_top_builddir=$ac_pwd
1469ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470# for backward compatibility:
1471ac_top_builddir=$ac_top_build_prefix
1472
1473case $srcdir in
1474  .)  # We are building in place.
1475    ac_srcdir=.
1476    ac_top_srcdir=$ac_top_builddir_sub
1477    ac_abs_top_srcdir=$ac_pwd ;;
1478  [\\/]* | ?:[\\/]* )  # Absolute name.
1479    ac_srcdir=$srcdir$ac_dir_suffix;
1480    ac_top_srcdir=$srcdir
1481    ac_abs_top_srcdir=$srcdir ;;
1482  *) # Relative name.
1483    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484    ac_top_srcdir=$ac_top_build_prefix$srcdir
1485    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486esac
1487ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489    cd "$ac_dir" || { ac_status=$?; continue; }
1490    # Check for guested configure.
1491    if test -f "$ac_srcdir/configure.gnu"; then
1492      echo &&
1493      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494    elif test -f "$ac_srcdir/configure"; then
1495      echo &&
1496      $SHELL "$ac_srcdir/configure" --help=recursive
1497    else
1498      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499    fi || ac_status=$?
1500    cd "$ac_pwd" || { ac_status=$?; break; }
1501  done
1502fi
1503
1504test -n "$ac_init_help" && exit $ac_status
1505if $ac_init_version; then
1506  cat <<\_ACEOF
1507mercator configure 0.3.3
1508generated by GNU Autoconf 2.68
1509
1510Copyright (C) 2010 Free Software Foundation, Inc.
1511This configure script is free software; the Free Software Foundation
1512gives unlimited permission to copy, distribute and modify it.
1513_ACEOF
1514  exit
1515fi
1516
1517## ------------------------ ##
1518## Autoconf initialization. ##
1519## ------------------------ ##
1520
1521# ac_fn_c_try_compile LINENO
1522# --------------------------
1523# Try to compile conftest.$ac_ext, and return whether this succeeded.
1524ac_fn_c_try_compile ()
1525{
1526  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527  rm -f conftest.$ac_objext
1528  if { { ac_try="$ac_compile"
1529case "(($ac_try" in
1530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531  *) ac_try_echo=$ac_try;;
1532esac
1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534$as_echo "$ac_try_echo"; } >&5
1535  (eval "$ac_compile") 2>conftest.err
1536  ac_status=$?
1537  if test -s conftest.err; then
1538    grep -v '^ *+' conftest.err >conftest.er1
1539    cat conftest.er1 >&5
1540    mv -f conftest.er1 conftest.err
1541  fi
1542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543  test $ac_status = 0; } && {
1544	 test -z "$ac_c_werror_flag" ||
1545	 test ! -s conftest.err
1546       } && test -s conftest.$ac_objext; then :
1547  ac_retval=0
1548else
1549  $as_echo "$as_me: failed program was:" >&5
1550sed 's/^/| /' conftest.$ac_ext >&5
1551
1552	ac_retval=1
1553fi
1554  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555  as_fn_set_status $ac_retval
1556
1557} # ac_fn_c_try_compile
1558
1559# ac_fn_c_try_link LINENO
1560# -----------------------
1561# Try to link conftest.$ac_ext, and return whether this succeeded.
1562ac_fn_c_try_link ()
1563{
1564  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565  rm -f conftest.$ac_objext conftest$ac_exeext
1566  if { { ac_try="$ac_link"
1567case "(($ac_try" in
1568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569  *) ac_try_echo=$ac_try;;
1570esac
1571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572$as_echo "$ac_try_echo"; } >&5
1573  (eval "$ac_link") 2>conftest.err
1574  ac_status=$?
1575  if test -s conftest.err; then
1576    grep -v '^ *+' conftest.err >conftest.er1
1577    cat conftest.er1 >&5
1578    mv -f conftest.er1 conftest.err
1579  fi
1580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581  test $ac_status = 0; } && {
1582	 test -z "$ac_c_werror_flag" ||
1583	 test ! -s conftest.err
1584       } && test -s conftest$ac_exeext && {
1585	 test "$cross_compiling" = yes ||
1586	 $as_test_x conftest$ac_exeext
1587       }; then :
1588  ac_retval=0
1589else
1590  $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593	ac_retval=1
1594fi
1595  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1596  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1597  # interfere with the next link command; also delete a directory that is
1598  # left behind by Apple's compiler.  We do this before executing the actions.
1599  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601  as_fn_set_status $ac_retval
1602
1603} # ac_fn_c_try_link
1604
1605# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606# -------------------------------------------------------
1607# Tests whether HEADER exists and can be compiled using the include files in
1608# INCLUDES, setting the cache variable VAR accordingly.
1609ac_fn_c_check_header_compile ()
1610{
1611  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613$as_echo_n "checking for $2... " >&6; }
1614if eval \${$3+:} false; then :
1615  $as_echo_n "(cached) " >&6
1616else
1617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618/* end confdefs.h.  */
1619$4
1620#include <$2>
1621_ACEOF
1622if ac_fn_c_try_compile "$LINENO"; then :
1623  eval "$3=yes"
1624else
1625  eval "$3=no"
1626fi
1627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628fi
1629eval ac_res=\$$3
1630	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631$as_echo "$ac_res" >&6; }
1632  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634} # ac_fn_c_check_header_compile
1635
1636# ac_fn_c_try_cpp LINENO
1637# ----------------------
1638# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639ac_fn_c_try_cpp ()
1640{
1641  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642  if { { ac_try="$ac_cpp conftest.$ac_ext"
1643case "(($ac_try" in
1644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645  *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648$as_echo "$ac_try_echo"; } >&5
1649  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650  ac_status=$?
1651  if test -s conftest.err; then
1652    grep -v '^ *+' conftest.err >conftest.er1
1653    cat conftest.er1 >&5
1654    mv -f conftest.er1 conftest.err
1655  fi
1656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657  test $ac_status = 0; } > conftest.i && {
1658	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659	 test ! -s conftest.err
1660       }; then :
1661  ac_retval=0
1662else
1663  $as_echo "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666    ac_retval=1
1667fi
1668  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669  as_fn_set_status $ac_retval
1670
1671} # ac_fn_c_try_cpp
1672
1673# ac_fn_c_try_run LINENO
1674# ----------------------
1675# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676# that executables *can* be run.
1677ac_fn_c_try_run ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  if { { ac_try="$ac_link"
1681case "(($ac_try" in
1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683  *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687  (eval "$ac_link") 2>&5
1688  ac_status=$?
1689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691  { { case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697  (eval "$ac_try") 2>&5
1698  ac_status=$?
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; }; }; then :
1701  ac_retval=0
1702else
1703  $as_echo "$as_me: program exited with status $ac_status" >&5
1704       $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707       ac_retval=$ac_status
1708fi
1709  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711  as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_run
1714
1715# ac_fn_c_check_func LINENO FUNC VAR
1716# ----------------------------------
1717# Tests whether FUNC exists, setting the cache variable VAR accordingly
1718ac_fn_c_check_func ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722$as_echo_n "checking for $2... " >&6; }
1723if eval \${$3+:} false; then :
1724  $as_echo_n "(cached) " >&6
1725else
1726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727/* end confdefs.h.  */
1728/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1729   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1730#define $2 innocuous_$2
1731
1732/* System header to define __stub macros and hopefully few prototypes,
1733    which can conflict with char $2 (); below.
1734    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1735    <limits.h> exists even on freestanding compilers.  */
1736
1737#ifdef __STDC__
1738# include <limits.h>
1739#else
1740# include <assert.h>
1741#endif
1742
1743#undef $2
1744
1745/* Override any GCC internal prototype to avoid an error.
1746   Use char because int might match the return type of a GCC
1747   builtin and then its argument prototype would still apply.  */
1748#ifdef __cplusplus
1749extern "C"
1750#endif
1751char $2 ();
1752/* The GNU C library defines this for functions which it implements
1753    to always fail with ENOSYS.  Some functions are actually named
1754    something starting with __ and the normal name is an alias.  */
1755#if defined __stub_$2 || defined __stub___$2
1756choke me
1757#endif
1758
1759int
1760main ()
1761{
1762return $2 ();
1763  ;
1764  return 0;
1765}
1766_ACEOF
1767if ac_fn_c_try_link "$LINENO"; then :
1768  eval "$3=yes"
1769else
1770  eval "$3=no"
1771fi
1772rm -f core conftest.err conftest.$ac_objext \
1773    conftest$ac_exeext conftest.$ac_ext
1774fi
1775eval ac_res=\$$3
1776	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777$as_echo "$ac_res" >&6; }
1778  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780} # ac_fn_c_check_func
1781
1782# ac_fn_cxx_try_compile LINENO
1783# ----------------------------
1784# Try to compile conftest.$ac_ext, and return whether this succeeded.
1785ac_fn_cxx_try_compile ()
1786{
1787  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788  rm -f conftest.$ac_objext
1789  if { { ac_try="$ac_compile"
1790case "(($ac_try" in
1791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792  *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796  (eval "$ac_compile") 2>conftest.err
1797  ac_status=$?
1798  if test -s conftest.err; then
1799    grep -v '^ *+' conftest.err >conftest.er1
1800    cat conftest.er1 >&5
1801    mv -f conftest.er1 conftest.err
1802  fi
1803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804  test $ac_status = 0; } && {
1805	 test -z "$ac_cxx_werror_flag" ||
1806	 test ! -s conftest.err
1807       } && test -s conftest.$ac_objext; then :
1808  ac_retval=0
1809else
1810  $as_echo "$as_me: failed program was:" >&5
1811sed 's/^/| /' conftest.$ac_ext >&5
1812
1813	ac_retval=1
1814fi
1815  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816  as_fn_set_status $ac_retval
1817
1818} # ac_fn_cxx_try_compile
1819
1820# ac_fn_cxx_try_cpp LINENO
1821# ------------------------
1822# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1823ac_fn_cxx_try_cpp ()
1824{
1825  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826  if { { ac_try="$ac_cpp conftest.$ac_ext"
1827case "(($ac_try" in
1828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829  *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1834  ac_status=$?
1835  if test -s conftest.err; then
1836    grep -v '^ *+' conftest.err >conftest.er1
1837    cat conftest.er1 >&5
1838    mv -f conftest.er1 conftest.err
1839  fi
1840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841  test $ac_status = 0; } > conftest.i && {
1842	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1843	 test ! -s conftest.err
1844       }; then :
1845  ac_retval=0
1846else
1847  $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
1849
1850    ac_retval=1
1851fi
1852  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853  as_fn_set_status $ac_retval
1854
1855} # ac_fn_cxx_try_cpp
1856
1857# ac_fn_cxx_try_link LINENO
1858# -------------------------
1859# Try to link conftest.$ac_ext, and return whether this succeeded.
1860ac_fn_cxx_try_link ()
1861{
1862  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863  rm -f conftest.$ac_objext conftest$ac_exeext
1864  if { { ac_try="$ac_link"
1865case "(($ac_try" in
1866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867  *) ac_try_echo=$ac_try;;
1868esac
1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870$as_echo "$ac_try_echo"; } >&5
1871  (eval "$ac_link") 2>conftest.err
1872  ac_status=$?
1873  if test -s conftest.err; then
1874    grep -v '^ *+' conftest.err >conftest.er1
1875    cat conftest.er1 >&5
1876    mv -f conftest.er1 conftest.err
1877  fi
1878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879  test $ac_status = 0; } && {
1880	 test -z "$ac_cxx_werror_flag" ||
1881	 test ! -s conftest.err
1882       } && test -s conftest$ac_exeext && {
1883	 test "$cross_compiling" = yes ||
1884	 $as_test_x conftest$ac_exeext
1885       }; then :
1886  ac_retval=0
1887else
1888  $as_echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891	ac_retval=1
1892fi
1893  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1894  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1895  # interfere with the next link command; also delete a directory that is
1896  # left behind by Apple's compiler.  We do this before executing the actions.
1897  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899  as_fn_set_status $ac_retval
1900
1901} # ac_fn_cxx_try_link
1902
1903# ac_fn_cxx_check_func LINENO FUNC VAR
1904# ------------------------------------
1905# Tests whether FUNC exists, setting the cache variable VAR accordingly
1906ac_fn_cxx_check_func ()
1907{
1908  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910$as_echo_n "checking for $2... " >&6; }
1911if eval \${$3+:} false; then :
1912  $as_echo_n "(cached) " >&6
1913else
1914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915/* end confdefs.h.  */
1916/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1917   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1918#define $2 innocuous_$2
1919
1920/* System header to define __stub macros and hopefully few prototypes,
1921    which can conflict with char $2 (); below.
1922    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1923    <limits.h> exists even on freestanding compilers.  */
1924
1925#ifdef __STDC__
1926# include <limits.h>
1927#else
1928# include <assert.h>
1929#endif
1930
1931#undef $2
1932
1933/* Override any GCC internal prototype to avoid an error.
1934   Use char because int might match the return type of a GCC
1935   builtin and then its argument prototype would still apply.  */
1936#ifdef __cplusplus
1937extern "C"
1938#endif
1939char $2 ();
1940/* The GNU C library defines this for functions which it implements
1941    to always fail with ENOSYS.  Some functions are actually named
1942    something starting with __ and the normal name is an alias.  */
1943#if defined __stub_$2 || defined __stub___$2
1944choke me
1945#endif
1946
1947int
1948main ()
1949{
1950return $2 ();
1951  ;
1952  return 0;
1953}
1954_ACEOF
1955if ac_fn_cxx_try_link "$LINENO"; then :
1956  eval "$3=yes"
1957else
1958  eval "$3=no"
1959fi
1960rm -f core conftest.err conftest.$ac_objext \
1961    conftest$ac_exeext conftest.$ac_ext
1962fi
1963eval ac_res=\$$3
1964	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965$as_echo "$ac_res" >&6; }
1966  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967
1968} # ac_fn_cxx_check_func
1969cat >config.log <<_ACEOF
1970This file contains any messages produced by compilers while
1971running configure, to aid debugging if configure makes a mistake.
1972
1973It was created by mercator $as_me 0.3.3, which was
1974generated by GNU Autoconf 2.68.  Invocation command line was
1975
1976  $ $0 $@
1977
1978_ACEOF
1979exec 5>>config.log
1980{
1981cat <<_ASUNAME
1982## --------- ##
1983## Platform. ##
1984## --------- ##
1985
1986hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1987uname -m = `(uname -m) 2>/dev/null || echo unknown`
1988uname -r = `(uname -r) 2>/dev/null || echo unknown`
1989uname -s = `(uname -s) 2>/dev/null || echo unknown`
1990uname -v = `(uname -v) 2>/dev/null || echo unknown`
1991
1992/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1993/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1994
1995/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1996/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1997/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1998/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1999/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2000/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2001/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2002
2003_ASUNAME
2004
2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006for as_dir in $PATH
2007do
2008  IFS=$as_save_IFS
2009  test -z "$as_dir" && as_dir=.
2010    $as_echo "PATH: $as_dir"
2011  done
2012IFS=$as_save_IFS
2013
2014} >&5
2015
2016cat >&5 <<_ACEOF
2017
2018
2019## ----------- ##
2020## Core tests. ##
2021## ----------- ##
2022
2023_ACEOF
2024
2025
2026# Keep a trace of the command line.
2027# Strip out --no-create and --no-recursion so they do not pile up.
2028# Strip out --silent because we don't want to record it for future runs.
2029# Also quote any args containing shell meta-characters.
2030# Make two passes to allow for proper duplicate-argument suppression.
2031ac_configure_args=
2032ac_configure_args0=
2033ac_configure_args1=
2034ac_must_keep_next=false
2035for ac_pass in 1 2
2036do
2037  for ac_arg
2038  do
2039    case $ac_arg in
2040    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2041    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2042    | -silent | --silent | --silen | --sile | --sil)
2043      continue ;;
2044    *\'*)
2045      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2046    esac
2047    case $ac_pass in
2048    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2049    2)
2050      as_fn_append ac_configure_args1 " '$ac_arg'"
2051      if test $ac_must_keep_next = true; then
2052	ac_must_keep_next=false # Got value, back to normal.
2053      else
2054	case $ac_arg in
2055	  *=* | --config-cache | -C | -disable-* | --disable-* \
2056	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2057	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2058	  | -with-* | --with-* | -without-* | --without-* | --x)
2059	    case "$ac_configure_args0 " in
2060	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2061	    esac
2062	    ;;
2063	  -* ) ac_must_keep_next=true ;;
2064	esac
2065      fi
2066      as_fn_append ac_configure_args " '$ac_arg'"
2067      ;;
2068    esac
2069  done
2070done
2071{ ac_configure_args0=; unset ac_configure_args0;}
2072{ ac_configure_args1=; unset ac_configure_args1;}
2073
2074# When interrupted or exit'd, cleanup temporary files, and complete
2075# config.log.  We remove comments because anyway the quotes in there
2076# would cause problems or look ugly.
2077# WARNING: Use '\'' to represent an apostrophe within the trap.
2078# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2079trap 'exit_status=$?
2080  # Save into config.log some information that might help in debugging.
2081  {
2082    echo
2083
2084    $as_echo "## ---------------- ##
2085## Cache variables. ##
2086## ---------------- ##"
2087    echo
2088    # The following way of writing the cache mishandles newlines in values,
2089(
2090  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2091    eval ac_val=\$$ac_var
2092    case $ac_val in #(
2093    *${as_nl}*)
2094      case $ac_var in #(
2095      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2096$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2097      esac
2098      case $ac_var in #(
2099      _ | IFS | as_nl) ;; #(
2100      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2101      *) { eval $ac_var=; unset $ac_var;} ;;
2102      esac ;;
2103    esac
2104  done
2105  (set) 2>&1 |
2106    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2107    *${as_nl}ac_space=\ *)
2108      sed -n \
2109	"s/'\''/'\''\\\\'\'''\''/g;
2110	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2111      ;; #(
2112    *)
2113      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2114      ;;
2115    esac |
2116    sort
2117)
2118    echo
2119
2120    $as_echo "## ----------------- ##
2121## Output variables. ##
2122## ----------------- ##"
2123    echo
2124    for ac_var in $ac_subst_vars
2125    do
2126      eval ac_val=\$$ac_var
2127      case $ac_val in
2128      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129      esac
2130      $as_echo "$ac_var='\''$ac_val'\''"
2131    done | sort
2132    echo
2133
2134    if test -n "$ac_subst_files"; then
2135      $as_echo "## ------------------- ##
2136## File substitutions. ##
2137## ------------------- ##"
2138      echo
2139      for ac_var in $ac_subst_files
2140      do
2141	eval ac_val=\$$ac_var
2142	case $ac_val in
2143	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144	esac
2145	$as_echo "$ac_var='\''$ac_val'\''"
2146      done | sort
2147      echo
2148    fi
2149
2150    if test -s confdefs.h; then
2151      $as_echo "## ----------- ##
2152## confdefs.h. ##
2153## ----------- ##"
2154      echo
2155      cat confdefs.h
2156      echo
2157    fi
2158    test "$ac_signal" != 0 &&
2159      $as_echo "$as_me: caught signal $ac_signal"
2160    $as_echo "$as_me: exit $exit_status"
2161  } >&5
2162  rm -f core *.core core.conftest.* &&
2163    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2164    exit $exit_status
2165' 0
2166for ac_signal in 1 2 13 15; do
2167  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2168done
2169ac_signal=0
2170
2171# confdefs.h avoids OS command line length limits that DEFS can exceed.
2172rm -f -r conftest* confdefs.h
2173
2174$as_echo "/* confdefs.h */" > confdefs.h
2175
2176# Predefined preprocessor variables.
2177
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_NAME "$PACKAGE_NAME"
2180_ACEOF
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2184_ACEOF
2185
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_VERSION "$PACKAGE_VERSION"
2188_ACEOF
2189
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_STRING "$PACKAGE_STRING"
2192_ACEOF
2193
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2196_ACEOF
2197
2198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_URL "$PACKAGE_URL"
2200_ACEOF
2201
2202
2203# Let the site file select an alternate cache file if it wants to.
2204# Prefer an explicitly selected file to automatically selected ones.
2205ac_site_file1=NONE
2206ac_site_file2=NONE
2207if test -n "$CONFIG_SITE"; then
2208  # We do not want a PATH search for config.site.
2209  case $CONFIG_SITE in #((
2210    -*)  ac_site_file1=./$CONFIG_SITE;;
2211    */*) ac_site_file1=$CONFIG_SITE;;
2212    *)   ac_site_file1=./$CONFIG_SITE;;
2213  esac
2214elif test "x$prefix" != xNONE; then
2215  ac_site_file1=$prefix/share/config.site
2216  ac_site_file2=$prefix/etc/config.site
2217else
2218  ac_site_file1=$ac_default_prefix/share/config.site
2219  ac_site_file2=$ac_default_prefix/etc/config.site
2220fi
2221for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2222do
2223  test "x$ac_site_file" = xNONE && continue
2224  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2225    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2226$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2227    sed 's/^/| /' "$ac_site_file" >&5
2228    . "$ac_site_file" \
2229      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2231as_fn_error $? "failed to load site script $ac_site_file
2232See \`config.log' for more details" "$LINENO" 5; }
2233  fi
2234done
2235
2236if test -r "$cache_file"; then
2237  # Some versions of bash will fail to source /dev/null (special files
2238  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2239  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2240    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2241$as_echo "$as_me: loading cache $cache_file" >&6;}
2242    case $cache_file in
2243      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2244      *)                      . "./$cache_file";;
2245    esac
2246  fi
2247else
2248  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2249$as_echo "$as_me: creating cache $cache_file" >&6;}
2250  >$cache_file
2251fi
2252
2253# Check that the precious variables saved in the cache have kept the same
2254# value.
2255ac_cache_corrupted=false
2256for ac_var in $ac_precious_vars; do
2257  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2258  eval ac_new_set=\$ac_env_${ac_var}_set
2259  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2260  eval ac_new_val=\$ac_env_${ac_var}_value
2261  case $ac_old_set,$ac_new_set in
2262    set,)
2263      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2264$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2265      ac_cache_corrupted=: ;;
2266    ,set)
2267      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2268$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2269      ac_cache_corrupted=: ;;
2270    ,);;
2271    *)
2272      if test "x$ac_old_val" != "x$ac_new_val"; then
2273	# differences in whitespace do not lead to failure.
2274	ac_old_val_w=`echo x $ac_old_val`
2275	ac_new_val_w=`echo x $ac_new_val`
2276	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2277	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2278$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2279	  ac_cache_corrupted=:
2280	else
2281	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2282$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2283	  eval $ac_var=\$ac_old_val
2284	fi
2285	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2286$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2287	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2288$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2289      fi;;
2290  esac
2291  # Pass precious variables to config.status.
2292  if test "$ac_new_set" = set; then
2293    case $ac_new_val in
2294    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2295    *) ac_arg=$ac_var=$ac_new_val ;;
2296    esac
2297    case " $ac_configure_args " in
2298      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2299      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2300    esac
2301  fi
2302done
2303if $ac_cache_corrupted; then
2304  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2307$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2308  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2309fi
2310## -------------------- ##
2311## Main body of script. ##
2312## -------------------- ##
2313
2314ac_ext=c
2315ac_cpp='$CPP $CPPFLAGS'
2316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319
2320
2321
2322ac_config_headers="$ac_config_headers config.h"
2323
2324
2325
2326
2327ac_aux_dir=
2328for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2329  if test -f "$ac_dir/install-sh"; then
2330    ac_aux_dir=$ac_dir
2331    ac_install_sh="$ac_aux_dir/install-sh -c"
2332    break
2333  elif test -f "$ac_dir/install.sh"; then
2334    ac_aux_dir=$ac_dir
2335    ac_install_sh="$ac_aux_dir/install.sh -c"
2336    break
2337  elif test -f "$ac_dir/shtool"; then
2338    ac_aux_dir=$ac_dir
2339    ac_install_sh="$ac_aux_dir/shtool install -c"
2340    break
2341  fi
2342done
2343if test -z "$ac_aux_dir"; then
2344  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2345fi
2346
2347# These three variables are undocumented and unsupported,
2348# and are intended to be withdrawn in a future Autoconf release.
2349# They can cause serious problems if a builder's source tree is in a directory
2350# whose full name contains unusual characters.
2351ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2352ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2353ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2354
2355
2356# Make sure we can run config.sub.
2357$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2358  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2359
2360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2361$as_echo_n "checking build system type... " >&6; }
2362if ${ac_cv_build+:} false; then :
2363  $as_echo_n "(cached) " >&6
2364else
2365  ac_build_alias=$build_alias
2366test "x$ac_build_alias" = x &&
2367  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2368test "x$ac_build_alias" = x &&
2369  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2370ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2371  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2372
2373fi
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2375$as_echo "$ac_cv_build" >&6; }
2376case $ac_cv_build in
2377*-*-*) ;;
2378*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2379esac
2380build=$ac_cv_build
2381ac_save_IFS=$IFS; IFS='-'
2382set x $ac_cv_build
2383shift
2384build_cpu=$1
2385build_vendor=$2
2386shift; shift
2387# Remember, the first character of IFS is used to create $*,
2388# except with old shells:
2389build_os=$*
2390IFS=$ac_save_IFS
2391case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2392
2393
2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2395$as_echo_n "checking host system type... " >&6; }
2396if ${ac_cv_host+:} false; then :
2397  $as_echo_n "(cached) " >&6
2398else
2399  if test "x$host_alias" = x; then
2400  ac_cv_host=$ac_cv_build
2401else
2402  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2403    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2404fi
2405
2406fi
2407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2408$as_echo "$ac_cv_host" >&6; }
2409case $ac_cv_host in
2410*-*-*) ;;
2411*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2412esac
2413host=$ac_cv_host
2414ac_save_IFS=$IFS; IFS='-'
2415set x $ac_cv_host
2416shift
2417host_cpu=$1
2418host_vendor=$2
2419shift; shift
2420# Remember, the first character of IFS is used to create $*,
2421# except with old shells:
2422host_os=$*
2423IFS=$ac_save_IFS
2424case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2425
2426
2427
2428
2429am__api_version='1.11'
2430
2431# Find a good install program.  We prefer a C program (faster),
2432# so one script is as good as another.  But avoid the broken or
2433# incompatible versions:
2434# SysV /etc/install, /usr/sbin/install
2435# SunOS /usr/etc/install
2436# IRIX /sbin/install
2437# AIX /bin/install
2438# AmigaOS /C/install, which installs bootblocks on floppy discs
2439# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2441# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2442# OS/2's system install, which has a completely different semantic
2443# ./install, which can be erroneously created by make from ./install.sh.
2444# Reject install programs that cannot install multiple files.
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2446$as_echo_n "checking for a BSD-compatible install... " >&6; }
2447if test -z "$INSTALL"; then
2448if ${ac_cv_path_install+:} false; then :
2449  $as_echo_n "(cached) " >&6
2450else
2451  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454  IFS=$as_save_IFS
2455  test -z "$as_dir" && as_dir=.
2456    # Account for people who put trailing slashes in PATH elements.
2457case $as_dir/ in #((
2458  ./ | .// | /[cC]/* | \
2459  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2460  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2461  /usr/ucb/* ) ;;
2462  *)
2463    # OSF1 and SCO ODT 3.0 have their own names for install.
2464    # Don't use installbsd from OSF since it installs stuff as root
2465    # by default.
2466    for ac_prog in ginstall scoinst install; do
2467      for ac_exec_ext in '' $ac_executable_extensions; do
2468	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2469	  if test $ac_prog = install &&
2470	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2471	    # AIX install.  It has an incompatible calling convention.
2472	    :
2473	  elif test $ac_prog = install &&
2474	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475	    # program-specific install script used by HP pwplus--don't use.
2476	    :
2477	  else
2478	    rm -rf conftest.one conftest.two conftest.dir
2479	    echo one > conftest.one
2480	    echo two > conftest.two
2481	    mkdir conftest.dir
2482	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2483	      test -s conftest.one && test -s conftest.two &&
2484	      test -s conftest.dir/conftest.one &&
2485	      test -s conftest.dir/conftest.two
2486	    then
2487	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2488	      break 3
2489	    fi
2490	  fi
2491	fi
2492      done
2493    done
2494    ;;
2495esac
2496
2497  done
2498IFS=$as_save_IFS
2499
2500rm -rf conftest.one conftest.two conftest.dir
2501
2502fi
2503  if test "${ac_cv_path_install+set}" = set; then
2504    INSTALL=$ac_cv_path_install
2505  else
2506    # As a last resort, use the slow shell script.  Don't cache a
2507    # value for INSTALL within a source directory, because that will
2508    # break other packages using the cache if that directory is
2509    # removed, or if the value is a relative name.
2510    INSTALL=$ac_install_sh
2511  fi
2512fi
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2514$as_echo "$INSTALL" >&6; }
2515
2516# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2517# It thinks the first close brace ends the variable substitution.
2518test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2519
2520test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2521
2522test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2523
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2525$as_echo_n "checking whether build environment is sane... " >&6; }
2526# Just in case
2527sleep 1
2528echo timestamp > conftest.file
2529# Reject unsafe characters in $srcdir or the absolute working directory
2530# name.  Accept space and tab only in the latter.
2531am_lf='
2532'
2533case `pwd` in
2534  *[\\\"\#\$\&\'\`$am_lf]*)
2535    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2536esac
2537case $srcdir in
2538  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2539    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2540esac
2541
2542# Do `set' in a subshell so we don't clobber the current shell's
2543# arguments.  Must try -L first in case configure is actually a
2544# symlink; some systems play weird games with the mod time of symlinks
2545# (eg FreeBSD returns the mod time of the symlink's containing
2546# directory).
2547if (
2548   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2549   if test "$*" = "X"; then
2550      # -L didn't work.
2551      set X `ls -t "$srcdir/configure" conftest.file`
2552   fi
2553   rm -f conftest.file
2554   if test "$*" != "X $srcdir/configure conftest.file" \
2555      && test "$*" != "X conftest.file $srcdir/configure"; then
2556
2557      # If neither matched, then we have a broken ls.  This can happen
2558      # if, for instance, CONFIG_SHELL is bash and it inherits a
2559      # broken ls alias from the environment.  This has actually
2560      # happened.  Such a system could not be considered "sane".
2561      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2562alias in your environment" "$LINENO" 5
2563   fi
2564
2565   test "$2" = conftest.file
2566   )
2567then
2568   # Ok.
2569   :
2570else
2571   as_fn_error $? "newly created file is older than distributed files!
2572Check your system clock" "$LINENO" 5
2573fi
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2575$as_echo "yes" >&6; }
2576test "$program_prefix" != NONE &&
2577  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2578# Use a double $ so make ignores it.
2579test "$program_suffix" != NONE &&
2580  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2581# Double any \ or $.
2582# By default was `s,x,x', remove it if useless.
2583ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2584program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2585
2586# expand $ac_aux_dir to an absolute path
2587am_aux_dir=`cd $ac_aux_dir && pwd`
2588
2589if test x"${MISSING+set}" != xset; then
2590  case $am_aux_dir in
2591  *\ * | *\	*)
2592    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2593  *)
2594    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2595  esac
2596fi
2597# Use eval to expand $SHELL
2598if eval "$MISSING --run true"; then
2599  am_missing_run="$MISSING --run "
2600else
2601  am_missing_run=
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2603$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2604fi
2605
2606if test x"${install_sh}" != xset; then
2607  case $am_aux_dir in
2608  *\ * | *\	*)
2609    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2610  *)
2611    install_sh="\${SHELL} $am_aux_dir/install-sh"
2612  esac
2613fi
2614
2615# Installed binaries are usually stripped using `strip' when the user
2616# run `make install-strip'.  However `strip' might not be the right
2617# tool to use in cross-compilation environments, therefore Automake
2618# will honor the `STRIP' environment variable to overrule this program.
2619if test "$cross_compiling" != no; then
2620  if test -n "$ac_tool_prefix"; then
2621  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2622set dummy ${ac_tool_prefix}strip; ac_word=$2
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624$as_echo_n "checking for $ac_word... " >&6; }
2625if ${ac_cv_prog_STRIP+:} false; then :
2626  $as_echo_n "(cached) " >&6
2627else
2628  if test -n "$STRIP"; then
2629  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2630else
2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634  IFS=$as_save_IFS
2635  test -z "$as_dir" && as_dir=.
2636    for ac_exec_ext in '' $ac_executable_extensions; do
2637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640    break 2
2641  fi
2642done
2643  done
2644IFS=$as_save_IFS
2645
2646fi
2647fi
2648STRIP=$ac_cv_prog_STRIP
2649if test -n "$STRIP"; then
2650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2651$as_echo "$STRIP" >&6; }
2652else
2653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654$as_echo "no" >&6; }
2655fi
2656
2657
2658fi
2659if test -z "$ac_cv_prog_STRIP"; then
2660  ac_ct_STRIP=$STRIP
2661  # Extract the first word of "strip", so it can be a program name with args.
2662set dummy strip; ac_word=$2
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664$as_echo_n "checking for $ac_word... " >&6; }
2665if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2666  $as_echo_n "(cached) " >&6
2667else
2668  if test -n "$ac_ct_STRIP"; then
2669  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2670else
2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674  IFS=$as_save_IFS
2675  test -z "$as_dir" && as_dir=.
2676    for ac_exec_ext in '' $ac_executable_extensions; do
2677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678    ac_cv_prog_ac_ct_STRIP="strip"
2679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680    break 2
2681  fi
2682done
2683  done
2684IFS=$as_save_IFS
2685
2686fi
2687fi
2688ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2689if test -n "$ac_ct_STRIP"; then
2690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2691$as_echo "$ac_ct_STRIP" >&6; }
2692else
2693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694$as_echo "no" >&6; }
2695fi
2696
2697  if test "x$ac_ct_STRIP" = x; then
2698    STRIP=":"
2699  else
2700    case $cross_compiling:$ac_tool_warned in
2701yes:)
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2704ac_tool_warned=yes ;;
2705esac
2706    STRIP=$ac_ct_STRIP
2707  fi
2708else
2709  STRIP="$ac_cv_prog_STRIP"
2710fi
2711
2712fi
2713INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2714
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2716$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2717if test -z "$MKDIR_P"; then
2718  if ${ac_cv_path_mkdir+:} false; then :
2719  $as_echo_n "(cached) " >&6
2720else
2721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2723do
2724  IFS=$as_save_IFS
2725  test -z "$as_dir" && as_dir=.
2726    for ac_prog in mkdir gmkdir; do
2727	 for ac_exec_ext in '' $ac_executable_extensions; do
2728	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2729	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2730	     'mkdir (GNU coreutils) '* | \
2731	     'mkdir (coreutils) '* | \
2732	     'mkdir (fileutils) '4.1*)
2733	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2734	       break 3;;
2735	   esac
2736	 done
2737       done
2738  done
2739IFS=$as_save_IFS
2740
2741fi
2742
2743  test -d ./--version && rmdir ./--version
2744  if test "${ac_cv_path_mkdir+set}" = set; then
2745    MKDIR_P="$ac_cv_path_mkdir -p"
2746  else
2747    # As a last resort, use the slow shell script.  Don't cache a
2748    # value for MKDIR_P within a source directory, because that will
2749    # break other packages using the cache if that directory is
2750    # removed, or if the value is a relative name.
2751    MKDIR_P="$ac_install_sh -d"
2752  fi
2753fi
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2755$as_echo "$MKDIR_P" >&6; }
2756
2757mkdir_p="$MKDIR_P"
2758case $mkdir_p in
2759  [\\/$]* | ?:[\\/]*) ;;
2760  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2761esac
2762
2763for ac_prog in gawk mawk nawk awk
2764do
2765  # Extract the first word of "$ac_prog", so it can be a program name with args.
2766set dummy $ac_prog; ac_word=$2
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768$as_echo_n "checking for $ac_word... " >&6; }
2769if ${ac_cv_prog_AWK+:} false; then :
2770  $as_echo_n "(cached) " >&6
2771else
2772  if test -n "$AWK"; then
2773  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2774else
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778  IFS=$as_save_IFS
2779  test -z "$as_dir" && as_dir=.
2780    for ac_exec_ext in '' $ac_executable_extensions; do
2781  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782    ac_cv_prog_AWK="$ac_prog"
2783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784    break 2
2785  fi
2786done
2787  done
2788IFS=$as_save_IFS
2789
2790fi
2791fi
2792AWK=$ac_cv_prog_AWK
2793if test -n "$AWK"; then
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2795$as_echo "$AWK" >&6; }
2796else
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798$as_echo "no" >&6; }
2799fi
2800
2801
2802  test -n "$AWK" && break
2803done
2804
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2806$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2807set x ${MAKE-make}
2808ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2809if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2810  $as_echo_n "(cached) " >&6
2811else
2812  cat >conftest.make <<\_ACEOF
2813SHELL = /bin/sh
2814all:
2815	@echo '@@@%%%=$(MAKE)=@@@%%%'
2816_ACEOF
2817# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2818case `${MAKE-make} -f conftest.make 2>/dev/null` in
2819  *@@@%%%=?*=@@@%%%*)
2820    eval ac_cv_prog_make_${ac_make}_set=yes;;
2821  *)
2822    eval ac_cv_prog_make_${ac_make}_set=no;;
2823esac
2824rm -f conftest.make
2825fi
2826if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2828$as_echo "yes" >&6; }
2829  SET_MAKE=
2830else
2831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832$as_echo "no" >&6; }
2833  SET_MAKE="MAKE=${MAKE-make}"
2834fi
2835
2836rm -rf .tst 2>/dev/null
2837mkdir .tst 2>/dev/null
2838if test -d .tst; then
2839  am__leading_dot=.
2840else
2841  am__leading_dot=_
2842fi
2843rmdir .tst 2>/dev/null
2844
2845# Check whether --enable-silent-rules was given.
2846if test "${enable_silent_rules+set}" = set; then :
2847  enableval=$enable_silent_rules;
2848fi
2849
2850case $enable_silent_rules in
2851yes) AM_DEFAULT_VERBOSITY=0;;
2852no)  AM_DEFAULT_VERBOSITY=1;;
2853*)   AM_DEFAULT_VERBOSITY=1;;
2854esac
2855am_make=${MAKE-make}
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2857$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2858if ${am_cv_make_support_nested_variables+:} false; then :
2859  $as_echo_n "(cached) " >&6
2860else
2861  if $as_echo 'TRUE=$(BAR$(V))
2862BAR0=false
2863BAR1=true
2864V=1
2865am__doit:
2866	@$(TRUE)
2867.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2868  am_cv_make_support_nested_variables=yes
2869else
2870  am_cv_make_support_nested_variables=no
2871fi
2872fi
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2874$as_echo "$am_cv_make_support_nested_variables" >&6; }
2875if test $am_cv_make_support_nested_variables = yes; then
2876    AM_V='$(V)'
2877  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2878else
2879  AM_V=$AM_DEFAULT_VERBOSITY
2880  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2881fi
2882AM_BACKSLASH='\'
2883
2884if test "`cd $srcdir && pwd`" != "`pwd`"; then
2885  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2886  # is not polluted with repeated "-I."
2887  am__isrc=' -I$(srcdir)'
2888  # test to see if srcdir already configured
2889  if test -f $srcdir/config.status; then
2890    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2891  fi
2892fi
2893
2894# test whether we have cygpath
2895if test -z "$CYGPATH_W"; then
2896  if (cygpath --version) >/dev/null 2>/dev/null; then
2897    CYGPATH_W='cygpath -w'
2898  else
2899    CYGPATH_W=echo
2900  fi
2901fi
2902
2903
2904# Define the identity of the package.
2905 PACKAGE='mercator'
2906 VERSION='0.3.3'
2907
2908
2909# Some tools Automake needs.
2910
2911ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2912
2913
2914AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2915
2916
2917AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2918
2919
2920AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2921
2922
2923MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2924
2925# We need awk for the "check" target.  The system "awk" is bad on
2926# some platforms.
2927# Always define AMTAR for backward compatibility.  Yes, it's still used
2928# in the wild :-(  We should find a proper way to deprecate it ...
2929AMTAR='$${TAR-tar}'
2930
2931am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2932
2933
2934
2935
2936
2937# Check whether --enable-silent-rules was given.
2938if test "${enable_silent_rules+set}" = set; then :
2939  enableval=$enable_silent_rules;
2940fi
2941
2942case $enable_silent_rules in
2943yes) AM_DEFAULT_VERBOSITY=0;;
2944no)  AM_DEFAULT_VERBOSITY=1;;
2945*)   AM_DEFAULT_VERBOSITY=0;;
2946esac
2947am_make=${MAKE-make}
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2949$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2950if ${am_cv_make_support_nested_variables+:} false; then :
2951  $as_echo_n "(cached) " >&6
2952else
2953  if $as_echo 'TRUE=$(BAR$(V))
2954BAR0=false
2955BAR1=true
2956V=1
2957am__doit:
2958	@$(TRUE)
2959.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2960  am_cv_make_support_nested_variables=yes
2961else
2962  am_cv_make_support_nested_variables=no
2963fi
2964fi
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2966$as_echo "$am_cv_make_support_nested_variables" >&6; }
2967if test $am_cv_make_support_nested_variables = yes; then
2968    AM_V='$(V)'
2969  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2970else
2971  AM_V=$AM_DEFAULT_VERBOSITY
2972  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2973fi
2974AM_BACKSLASH='\'
2975
2976
2977MERCATOR_CURRENT=4
2978MERCATOR_REVISION=0
2979MERCATOR_AGE=0
2980MERCATOR_VERSION_INFO=$MERCATOR_CURRENT:$MERCATOR_REVISION:$MERCATOR_AGE
2981
2982MERCATOR_LIB_SUFFIX="-0.3"
2983MERCATOR_LIBS="-lmercator$MERCATOR_LIB_SUFFIX"
2984MERCATOR_REQUIRES=""
2985
2986
2987
2988
2989case `pwd` in
2990  *\ * | *\	*)
2991    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2992$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2993esac
2994
2995
2996
2997macro_version='2.4'
2998macro_revision='1.3293'
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012ltmain="$ac_aux_dir/ltmain.sh"
3013
3014# Backslashify metacharacters that are still active within
3015# double-quoted strings.
3016sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3017
3018# Same as above, but do not quote variable references.
3019double_quote_subst='s/\(["`\\]\)/\\\1/g'
3020
3021# Sed substitution to delay expansion of an escaped shell variable in a
3022# double_quote_subst'ed string.
3023delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3024
3025# Sed substitution to delay expansion of an escaped single quote.
3026delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3027
3028# Sed substitution to avoid accidental globbing in evaled expressions
3029no_glob_subst='s/\*/\\\*/g'
3030
3031ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3032ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3033ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3034
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3036$as_echo_n "checking how to print strings... " >&6; }
3037# Test print first, because it will be a builtin if present.
3038if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3039   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3040  ECHO='print -r --'
3041elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3042  ECHO='printf %s\n'
3043else
3044  # Use this function as a fallback that always works.
3045  func_fallback_echo ()
3046  {
3047    eval 'cat <<_LTECHO_EOF
3048$1
3049_LTECHO_EOF'
3050  }
3051  ECHO='func_fallback_echo'
3052fi
3053
3054# func_echo_all arg...
3055# Invoke $ECHO with all args, space-separated.
3056func_echo_all ()
3057{
3058    $ECHO ""
3059}
3060
3061case "$ECHO" in
3062  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3063$as_echo "printf" >&6; } ;;
3064  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3065$as_echo "print -r" >&6; } ;;
3066  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3067$as_echo "cat" >&6; } ;;
3068esac
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083DEPDIR="${am__leading_dot}deps"
3084
3085ac_config_commands="$ac_config_commands depfiles"
3086
3087
3088am_make=${MAKE-make}
3089cat > confinc << 'END'
3090am__doit:
3091	@echo this is the am__doit target
3092.PHONY: am__doit
3093END
3094# If we don't find an include directive, just comment out the code.
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3096$as_echo_n "checking for style of include used by $am_make... " >&6; }
3097am__include="#"
3098am__quote=
3099_am_result=none
3100# First try GNU make style include.
3101echo "include confinc" > confmf
3102# Ignore all kinds of additional output from `make'.
3103case `$am_make -s -f confmf 2> /dev/null` in #(
3104*the\ am__doit\ target*)
3105  am__include=include
3106  am__quote=
3107  _am_result=GNU
3108  ;;
3109esac
3110# Now try BSD make style include.
3111if test "$am__include" = "#"; then
3112   echo '.include "confinc"' > confmf
3113   case `$am_make -s -f confmf 2> /dev/null` in #(
3114   *the\ am__doit\ target*)
3115     am__include=.include
3116     am__quote="\""
3117     _am_result=BSD
3118     ;;
3119   esac
3120fi
3121
3122
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3124$as_echo "$_am_result" >&6; }
3125rm -f confinc confmf
3126
3127# Check whether --enable-dependency-tracking was given.
3128if test "${enable_dependency_tracking+set}" = set; then :
3129  enableval=$enable_dependency_tracking;
3130fi
3131
3132if test "x$enable_dependency_tracking" != xno; then
3133  am_depcomp="$ac_aux_dir/depcomp"
3134  AMDEPBACKSLASH='\'
3135  am__nodep='_no'
3136fi
3137 if test "x$enable_dependency_tracking" != xno; then
3138  AMDEP_TRUE=
3139  AMDEP_FALSE='#'
3140else
3141  AMDEP_TRUE='#'
3142  AMDEP_FALSE=
3143fi
3144
3145
3146ac_ext=c
3147ac_cpp='$CPP $CPPFLAGS'
3148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151if test -n "$ac_tool_prefix"; then
3152  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3153set dummy ${ac_tool_prefix}gcc; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if ${ac_cv_prog_CC+:} false; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  if test -n "$CC"; then
3160  ac_cv_prog_CC="$CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165  IFS=$as_save_IFS
3166  test -z "$as_dir" && as_dir=.
3167    for ac_exec_ext in '' $ac_executable_extensions; do
3168  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171    break 2
3172  fi
3173done
3174  done
3175IFS=$as_save_IFS
3176
3177fi
3178fi
3179CC=$ac_cv_prog_CC
3180if test -n "$CC"; then
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182$as_echo "$CC" >&6; }
3183else
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186fi
3187
3188
3189fi
3190if test -z "$ac_cv_prog_CC"; then
3191  ac_ct_CC=$CC
3192  # Extract the first word of "gcc", so it can be a program name with args.
3193set dummy gcc; ac_word=$2
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195$as_echo_n "checking for $ac_word... " >&6; }
3196if ${ac_cv_prog_ac_ct_CC+:} false; then :
3197  $as_echo_n "(cached) " >&6
3198else
3199  if test -n "$ac_ct_CC"; then
3200  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205  IFS=$as_save_IFS
3206  test -z "$as_dir" && as_dir=.
3207    for ac_exec_ext in '' $ac_executable_extensions; do
3208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209    ac_cv_prog_ac_ct_CC="gcc"
3210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214  done
3215IFS=$as_save_IFS
3216
3217fi
3218fi
3219ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220if test -n "$ac_ct_CC"; then
3221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222$as_echo "$ac_ct_CC" >&6; }
3223else
3224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225$as_echo "no" >&6; }
3226fi
3227
3228  if test "x$ac_ct_CC" = x; then
3229    CC=""
3230  else
3231    case $cross_compiling:$ac_tool_warned in
3232yes:)
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235ac_tool_warned=yes ;;
3236esac
3237    CC=$ac_ct_CC
3238  fi
3239else
3240  CC="$ac_cv_prog_CC"
3241fi
3242
3243if test -z "$CC"; then
3244          if test -n "$ac_tool_prefix"; then
3245    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3246set dummy ${ac_tool_prefix}cc; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
3249if ${ac_cv_prog_CC+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  if test -n "$CC"; then
3253  ac_cv_prog_CC="$CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258  IFS=$as_save_IFS
3259  test -z "$as_dir" && as_dir=.
3260    for ac_exec_ext in '' $ac_executable_extensions; do
3261  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262    ac_cv_prog_CC="${ac_tool_prefix}cc"
3263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264    break 2
3265  fi
3266done
3267  done
3268IFS=$as_save_IFS
3269
3270fi
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
3274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275$as_echo "$CC" >&6; }
3276else
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279fi
3280
3281
3282  fi
3283fi
3284if test -z "$CC"; then
3285  # Extract the first word of "cc", so it can be a program name with args.
3286set dummy cc; ac_word=$2
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288$as_echo_n "checking for $ac_word... " >&6; }
3289if ${ac_cv_prog_CC+:} false; then :
3290  $as_echo_n "(cached) " >&6
3291else
3292  if test -n "$CC"; then
3293  ac_cv_prog_CC="$CC" # Let the user override the test.
3294else
3295  ac_prog_rejected=no
3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297for as_dir in $PATH
3298do
3299  IFS=$as_save_IFS
3300  test -z "$as_dir" && as_dir=.
3301    for ac_exec_ext in '' $ac_executable_extensions; do
3302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3304       ac_prog_rejected=yes
3305       continue
3306     fi
3307    ac_cv_prog_CC="cc"
3308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309    break 2
3310  fi
3311done
3312  done
3313IFS=$as_save_IFS
3314
3315if test $ac_prog_rejected = yes; then
3316  # We found a bogon in the path, so make sure we never use it.
3317  set dummy $ac_cv_prog_CC
3318  shift
3319  if test $# != 0; then
3320    # We chose a different compiler from the bogus one.
3321    # However, it has the same basename, so the bogon will be chosen
3322    # first if we set CC to just the basename; use the full file name.
3323    shift
3324    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3325  fi
3326fi
3327fi
3328fi
3329CC=$ac_cv_prog_CC
3330if test -n "$CC"; then
3331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332$as_echo "$CC" >&6; }
3333else
3334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335$as_echo "no" >&6; }
3336fi
3337
3338
3339fi
3340if test -z "$CC"; then
3341  if test -n "$ac_tool_prefix"; then
3342  for ac_prog in cl.exe
3343  do
3344    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347$as_echo_n "checking for $ac_word... " >&6; }
3348if ${ac_cv_prog_CC+:} false; then :
3349  $as_echo_n "(cached) " >&6
3350else
3351  if test -n "$CC"; then
3352  ac_cv_prog_CC="$CC" # Let the user override the test.
3353else
3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355for as_dir in $PATH
3356do
3357  IFS=$as_save_IFS
3358  test -z "$as_dir" && as_dir=.
3359    for ac_exec_ext in '' $ac_executable_extensions; do
3360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363    break 2
3364  fi
3365done
3366  done
3367IFS=$as_save_IFS
3368
3369fi
3370fi
3371CC=$ac_cv_prog_CC
3372if test -n "$CC"; then
3373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374$as_echo "$CC" >&6; }
3375else
3376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377$as_echo "no" >&6; }
3378fi
3379
3380
3381    test -n "$CC" && break
3382  done
3383fi
3384if test -z "$CC"; then
3385  ac_ct_CC=$CC
3386  for ac_prog in cl.exe
3387do
3388  # Extract the first word of "$ac_prog", so it can be a program name with args.
3389set dummy $ac_prog; ac_word=$2
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391$as_echo_n "checking for $ac_word... " >&6; }
3392if ${ac_cv_prog_ac_ct_CC+:} false; then :
3393  $as_echo_n "(cached) " >&6
3394else
3395  if test -n "$ac_ct_CC"; then
3396  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397else
3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399for as_dir in $PATH
3400do
3401  IFS=$as_save_IFS
3402  test -z "$as_dir" && as_dir=.
3403    for ac_exec_ext in '' $ac_executable_extensions; do
3404  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405    ac_cv_prog_ac_ct_CC="$ac_prog"
3406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407    break 2
3408  fi
3409done
3410  done
3411IFS=$as_save_IFS
3412
3413fi
3414fi
3415ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416if test -n "$ac_ct_CC"; then
3417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418$as_echo "$ac_ct_CC" >&6; }
3419else
3420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421$as_echo "no" >&6; }
3422fi
3423
3424
3425  test -n "$ac_ct_CC" && break
3426done
3427
3428  if test "x$ac_ct_CC" = x; then
3429    CC=""
3430  else
3431    case $cross_compiling:$ac_tool_warned in
3432yes:)
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435ac_tool_warned=yes ;;
3436esac
3437    CC=$ac_ct_CC
3438  fi
3439fi
3440
3441fi
3442
3443
3444test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446as_fn_error $? "no acceptable C compiler found in \$PATH
3447See \`config.log' for more details" "$LINENO" 5; }
3448
3449# Provide some information about the compiler.
3450$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3451set X $ac_compile
3452ac_compiler=$2
3453for ac_option in --version -v -V -qversion; do
3454  { { ac_try="$ac_compiler $ac_option >&5"
3455case "(($ac_try" in
3456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457  *) ac_try_echo=$ac_try;;
3458esac
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
3461  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3462  ac_status=$?
3463  if test -s conftest.err; then
3464    sed '10a\
3465... rest of stderr output deleted ...
3466         10q' conftest.err >conftest.er1
3467    cat conftest.er1 >&5
3468  fi
3469  rm -f conftest.er1 conftest.err
3470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471  test $ac_status = 0; }
3472done
3473
3474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475/* end confdefs.h.  */
3476
3477int
3478main ()
3479{
3480
3481  ;
3482  return 0;
3483}
3484_ACEOF
3485ac_clean_files_save=$ac_clean_files
3486ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3487# Try to create an executable without -o first, disregard a.out.
3488# It will help us diagnose broken compilers, and finding out an intuition
3489# of exeext.
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3491$as_echo_n "checking whether the C compiler works... " >&6; }
3492ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3493
3494# The possible output files:
3495ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3496
3497ac_rmfiles=
3498for ac_file in $ac_files
3499do
3500  case $ac_file in
3501    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3502    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3503  esac
3504done
3505rm -f $ac_rmfiles
3506
3507if { { ac_try="$ac_link_default"
3508case "(($ac_try" in
3509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510  *) ac_try_echo=$ac_try;;
3511esac
3512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513$as_echo "$ac_try_echo"; } >&5
3514  (eval "$ac_link_default") 2>&5
3515  ac_status=$?
3516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517  test $ac_status = 0; }; then :
3518  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3519# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3520# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3521# so that the user can short-circuit this test for compilers unknown to
3522# Autoconf.
3523for ac_file in $ac_files ''
3524do
3525  test -f "$ac_file" || continue
3526  case $ac_file in
3527    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3528	;;
3529    [ab].out )
3530	# We found the default executable, but exeext='' is most
3531	# certainly right.
3532	break;;
3533    *.* )
3534	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3535	then :; else
3536	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3537	fi
3538	# We set ac_cv_exeext here because the later test for it is not
3539	# safe: cross compilers may not add the suffix if given an `-o'
3540	# argument, so we may need to know it at that point already.
3541	# Even if this section looks crufty: it has the advantage of
3542	# actually working.
3543	break;;
3544    * )
3545	break;;
3546  esac
3547done
3548test "$ac_cv_exeext" = no && ac_cv_exeext=
3549
3550else
3551  ac_file=''
3552fi
3553if test -z "$ac_file"; then :
3554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555$as_echo "no" >&6; }
3556$as_echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561as_fn_error 77 "C compiler cannot create executables
3562See \`config.log' for more details" "$LINENO" 5; }
3563else
3564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3565$as_echo "yes" >&6; }
3566fi
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3568$as_echo_n "checking for C compiler default output file name... " >&6; }
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3570$as_echo "$ac_file" >&6; }
3571ac_exeext=$ac_cv_exeext
3572
3573rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3574ac_clean_files=$ac_clean_files_save
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3576$as_echo_n "checking for suffix of executables... " >&6; }
3577if { { ac_try="$ac_link"
3578case "(($ac_try" in
3579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580  *) ac_try_echo=$ac_try;;
3581esac
3582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583$as_echo "$ac_try_echo"; } >&5
3584  (eval "$ac_link") 2>&5
3585  ac_status=$?
3586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587  test $ac_status = 0; }; then :
3588  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3589# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3590# work properly (i.e., refer to `conftest.exe'), while it won't with
3591# `rm'.
3592for ac_file in conftest.exe conftest conftest.*; do
3593  test -f "$ac_file" || continue
3594  case $ac_file in
3595    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3596    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3597	  break;;
3598    * ) break;;
3599  esac
3600done
3601else
3602  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3605See \`config.log' for more details" "$LINENO" 5; }
3606fi
3607rm -f conftest conftest$ac_cv_exeext
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3609$as_echo "$ac_cv_exeext" >&6; }
3610
3611rm -f conftest.$ac_ext
3612EXEEXT=$ac_cv_exeext
3613ac_exeext=$EXEEXT
3614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615/* end confdefs.h.  */
3616#include <stdio.h>
3617int
3618main ()
3619{
3620FILE *f = fopen ("conftest.out", "w");
3621 return ferror (f) || fclose (f) != 0;
3622
3623  ;
3624  return 0;
3625}
3626_ACEOF
3627ac_clean_files="$ac_clean_files conftest.out"
3628# Check that the compiler produces executables we can run.  If not, either
3629# the compiler is broken, or we cross compile.
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3631$as_echo_n "checking whether we are cross compiling... " >&6; }
3632if test "$cross_compiling" != yes; then
3633  { { ac_try="$ac_link"
3634case "(($ac_try" in
3635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636  *) ac_try_echo=$ac_try;;
3637esac
3638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639$as_echo "$ac_try_echo"; } >&5
3640  (eval "$ac_link") 2>&5
3641  ac_status=$?
3642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643  test $ac_status = 0; }
3644  if { ac_try='./conftest$ac_cv_exeext'
3645  { { case "(($ac_try" in
3646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647  *) ac_try_echo=$ac_try;;
3648esac
3649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650$as_echo "$ac_try_echo"; } >&5
3651  (eval "$ac_try") 2>&5
3652  ac_status=$?
3653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654  test $ac_status = 0; }; }; then
3655    cross_compiling=no
3656  else
3657    if test "$cross_compiling" = maybe; then
3658	cross_compiling=yes
3659    else
3660	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662as_fn_error $? "cannot run C compiled programs.
3663If you meant to cross compile, use \`--host'.
3664See \`config.log' for more details" "$LINENO" 5; }
3665    fi
3666  fi
3667fi
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3669$as_echo "$cross_compiling" >&6; }
3670
3671rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3672ac_clean_files=$ac_clean_files_save
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3674$as_echo_n "checking for suffix of object files... " >&6; }
3675if ${ac_cv_objext+:} false; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h.  */
3680
3681int
3682main ()
3683{
3684
3685  ;
3686  return 0;
3687}
3688_ACEOF
3689rm -f conftest.o conftest.obj
3690if { { ac_try="$ac_compile"
3691case "(($ac_try" in
3692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693  *) ac_try_echo=$ac_try;;
3694esac
3695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696$as_echo "$ac_try_echo"; } >&5
3697  (eval "$ac_compile") 2>&5
3698  ac_status=$?
3699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700  test $ac_status = 0; }; then :
3701  for ac_file in conftest.o conftest.obj conftest.*; do
3702  test -f "$ac_file" || continue;
3703  case $ac_file in
3704    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3705    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3706       break;;
3707  esac
3708done
3709else
3710  $as_echo "$as_me: failed program was:" >&5
3711sed 's/^/| /' conftest.$ac_ext >&5
3712
3713{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715as_fn_error $? "cannot compute suffix of object files: cannot compile
3716See \`config.log' for more details" "$LINENO" 5; }
3717fi
3718rm -f conftest.$ac_cv_objext conftest.$ac_ext
3719fi
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3721$as_echo "$ac_cv_objext" >&6; }
3722OBJEXT=$ac_cv_objext
3723ac_objext=$OBJEXT
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3725$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3726if ${ac_cv_c_compiler_gnu+:} false; then :
3727  $as_echo_n "(cached) " >&6
3728else
3729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730/* end confdefs.h.  */
3731
3732int
3733main ()
3734{
3735#ifndef __GNUC__
3736       choke me
3737#endif
3738
3739  ;
3740  return 0;
3741}
3742_ACEOF
3743if ac_fn_c_try_compile "$LINENO"; then :
3744  ac_compiler_gnu=yes
3745else
3746  ac_compiler_gnu=no
3747fi
3748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749ac_cv_c_compiler_gnu=$ac_compiler_gnu
3750
3751fi
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3753$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3754if test $ac_compiler_gnu = yes; then
3755  GCC=yes
3756else
3757  GCC=
3758fi
3759ac_test_CFLAGS=${CFLAGS+set}
3760ac_save_CFLAGS=$CFLAGS
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3762$as_echo_n "checking whether $CC accepts -g... " >&6; }
3763if ${ac_cv_prog_cc_g+:} false; then :
3764  $as_echo_n "(cached) " >&6
3765else
3766  ac_save_c_werror_flag=$ac_c_werror_flag
3767   ac_c_werror_flag=yes
3768   ac_cv_prog_cc_g=no
3769   CFLAGS="-g"
3770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771/* end confdefs.h.  */
3772
3773int
3774main ()
3775{
3776
3777  ;
3778  return 0;
3779}
3780_ACEOF
3781if ac_fn_c_try_compile "$LINENO"; then :
3782  ac_cv_prog_cc_g=yes
3783else
3784  CFLAGS=""
3785      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786/* end confdefs.h.  */
3787
3788int
3789main ()
3790{
3791
3792  ;
3793  return 0;
3794}
3795_ACEOF
3796if ac_fn_c_try_compile "$LINENO"; then :
3797
3798else
3799  ac_c_werror_flag=$ac_save_c_werror_flag
3800	 CFLAGS="-g"
3801	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802/* end confdefs.h.  */
3803
3804int
3805main ()
3806{
3807
3808  ;
3809  return 0;
3810}
3811_ACEOF
3812if ac_fn_c_try_compile "$LINENO"; then :
3813  ac_cv_prog_cc_g=yes
3814fi
3815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816fi
3817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818fi
3819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820   ac_c_werror_flag=$ac_save_c_werror_flag
3821fi
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3823$as_echo "$ac_cv_prog_cc_g" >&6; }
3824if test "$ac_test_CFLAGS" = set; then
3825  CFLAGS=$ac_save_CFLAGS
3826elif test $ac_cv_prog_cc_g = yes; then
3827  if test "$GCC" = yes; then
3828    CFLAGS="-g -O2"
3829  else
3830    CFLAGS="-g"
3831  fi
3832else
3833  if test "$GCC" = yes; then
3834    CFLAGS="-O2"
3835  else
3836    CFLAGS=
3837  fi
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3840$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3841if ${ac_cv_prog_cc_c89+:} false; then :
3842  $as_echo_n "(cached) " >&6
3843else
3844  ac_cv_prog_cc_c89=no
3845ac_save_CC=$CC
3846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847/* end confdefs.h.  */
3848#include <stdarg.h>
3849#include <stdio.h>
3850#include <sys/types.h>
3851#include <sys/stat.h>
3852/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3853struct buf { int x; };
3854FILE * (*rcsopen) (struct buf *, struct stat *, int);
3855static char *e (p, i)
3856     char **p;
3857     int i;
3858{
3859  return p[i];
3860}
3861static char *f (char * (*g) (char **, int), char **p, ...)
3862{
3863  char *s;
3864  va_list v;
3865  va_start (v,p);
3866  s = g (p, va_arg (v,int));
3867  va_end (v);
3868  return s;
3869}
3870
3871/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3872   function prototypes and stuff, but not '\xHH' hex character constants.
3873   These don't provoke an error unfortunately, instead are silently treated
3874   as 'x'.  The following induces an error, until -std is added to get
3875   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3876   array size at least.  It's necessary to write '\x00'==0 to get something
3877   that's true only with -std.  */
3878int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3879
3880/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3881   inside strings and character constants.  */
3882#define FOO(x) 'x'
3883int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3884
3885int test (int i, double x);
3886struct s1 {int (*f) (int a);};
3887struct s2 {int (*f) (double a);};
3888int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3889int argc;
3890char **argv;
3891int
3892main ()
3893{
3894return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3900	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3901do
3902  CC="$ac_save_CC $ac_arg"
3903  if ac_fn_c_try_compile "$LINENO"; then :
3904  ac_cv_prog_cc_c89=$ac_arg
3905fi
3906rm -f core conftest.err conftest.$ac_objext
3907  test "x$ac_cv_prog_cc_c89" != "xno" && break
3908done
3909rm -f conftest.$ac_ext
3910CC=$ac_save_CC
3911
3912fi
3913# AC_CACHE_VAL
3914case "x$ac_cv_prog_cc_c89" in
3915  x)
3916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3917$as_echo "none needed" >&6; } ;;
3918  xno)
3919    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3920$as_echo "unsupported" >&6; } ;;
3921  *)
3922    CC="$CC $ac_cv_prog_cc_c89"
3923    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3924$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3925esac
3926if test "x$ac_cv_prog_cc_c89" != xno; then :
3927
3928fi
3929
3930ac_ext=c
3931ac_cpp='$CPP $CPPFLAGS'
3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935
3936depcc="$CC"   am_compiler_list=
3937
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3939$as_echo_n "checking dependency style of $depcc... " >&6; }
3940if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3941  $as_echo_n "(cached) " >&6
3942else
3943  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3944  # We make a subdir and do the tests there.  Otherwise we can end up
3945  # making bogus files that we don't know about and never remove.  For
3946  # instance it was reported that on HP-UX the gcc test will end up
3947  # making a dummy file named `D' -- because `-MD' means `put the output
3948  # in D'.
3949  rm -rf conftest.dir
3950  mkdir conftest.dir
3951  # Copy depcomp to subdir because otherwise we won't find it if we're
3952  # using a relative directory.
3953  cp "$am_depcomp" conftest.dir
3954  cd conftest.dir
3955  # We will build objects and dependencies in a subdirectory because
3956  # it helps to detect inapplicable dependency modes.  For instance
3957  # both Tru64's cc and ICC support -MD to output dependencies as a
3958  # side effect of compilation, but ICC will put the dependencies in
3959  # the current directory while Tru64 will put them in the object
3960  # directory.
3961  mkdir sub
3962
3963  am_cv_CC_dependencies_compiler_type=none
3964  if test "$am_compiler_list" = ""; then
3965     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3966  fi
3967  am__universal=false
3968  case " $depcc " in #(
3969     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3970     esac
3971
3972  for depmode in $am_compiler_list; do
3973    # Setup a source with many dependencies, because some compilers
3974    # like to wrap large dependency lists on column 80 (with \), and
3975    # we should not choose a depcomp mode which is confused by this.
3976    #
3977    # We need to recreate these files for each test, as the compiler may
3978    # overwrite some of them when testing with obscure command lines.
3979    # This happens at least with the AIX C compiler.
3980    : > sub/conftest.c
3981    for i in 1 2 3 4 5 6; do
3982      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3983      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3984      # Solaris 8's {/usr,}/bin/sh.
3985      touch sub/conftst$i.h
3986    done
3987    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3988
3989    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3990    # mode.  It turns out that the SunPro C++ compiler does not properly
3991    # handle `-M -o', and we need to detect this.  Also, some Intel
3992    # versions had trouble with output in subdirs
3993    am__obj=sub/conftest.${OBJEXT-o}
3994    am__minus_obj="-o $am__obj"
3995    case $depmode in
3996    gcc)
3997      # This depmode causes a compiler race in universal mode.
3998      test "$am__universal" = false || continue
3999      ;;
4000    nosideeffect)
4001      # after this tag, mechanisms are not by side-effect, so they'll
4002      # only be used when explicitly requested
4003      if test "x$enable_dependency_tracking" = xyes; then
4004	continue
4005      else
4006	break
4007      fi
4008      ;;
4009    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4010      # This compiler won't grok `-c -o', but also, the minuso test has
4011      # not run yet.  These depmodes are late enough in the game, and
4012      # so weak that their functioning should not be impacted.
4013      am__obj=conftest.${OBJEXT-o}
4014      am__minus_obj=
4015      ;;
4016    none) break ;;
4017    esac
4018    if depmode=$depmode \
4019       source=sub/conftest.c object=$am__obj \
4020       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4021       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4022         >/dev/null 2>conftest.err &&
4023       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4024       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4025       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4026       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4027      # icc doesn't choke on unknown options, it will just issue warnings
4028      # or remarks (even with -Werror).  So we grep stderr for any message
4029      # that says an option was ignored or not supported.
4030      # When given -MP, icc 7.0 and 7.1 complain thusly:
4031      #   icc: Command line warning: ignoring option '-M'; no argument required
4032      # The diagnosis changed in icc 8.0:
4033      #   icc: Command line remark: option '-MP' not supported
4034      if (grep 'ignoring option' conftest.err ||
4035          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4036        am_cv_CC_dependencies_compiler_type=$depmode
4037        break
4038      fi
4039    fi
4040  done
4041
4042  cd ..
4043  rm -rf conftest.dir
4044else
4045  am_cv_CC_dependencies_compiler_type=none
4046fi
4047
4048fi
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4050$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4051CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4052
4053 if
4054  test "x$enable_dependency_tracking" != xno \
4055  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4056  am__fastdepCC_TRUE=
4057  am__fastdepCC_FALSE='#'
4058else
4059  am__fastdepCC_TRUE='#'
4060  am__fastdepCC_FALSE=
4061fi
4062
4063
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4065$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4066if ${ac_cv_path_SED+:} false; then :
4067  $as_echo_n "(cached) " >&6
4068else
4069            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4070     for ac_i in 1 2 3 4 5 6 7; do
4071       ac_script="$ac_script$as_nl$ac_script"
4072     done
4073     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4074     { ac_script=; unset ac_script;}
4075     if test -z "$SED"; then
4076  ac_path_SED_found=false
4077  # Loop through the user's path and test for each of PROGNAME-LIST
4078  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079for as_dir in $PATH
4080do
4081  IFS=$as_save_IFS
4082  test -z "$as_dir" && as_dir=.
4083    for ac_prog in sed gsed; do
4084    for ac_exec_ext in '' $ac_executable_extensions; do
4085      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4086      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4087# Check for GNU ac_path_SED and select it if it is found.
4088  # Check for GNU $ac_path_SED
4089case `"$ac_path_SED" --version 2>&1` in
4090*GNU*)
4091  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4092*)
4093  ac_count=0
4094  $as_echo_n 0123456789 >"conftest.in"
4095  while :
4096  do
4097    cat "conftest.in" "conftest.in" >"conftest.tmp"
4098    mv "conftest.tmp" "conftest.in"
4099    cp "conftest.in" "conftest.nl"
4100    $as_echo '' >> "conftest.nl"
4101    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4102    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4103    as_fn_arith $ac_count + 1 && ac_count=$as_val
4104    if test $ac_count -gt ${ac_path_SED_max-0}; then
4105      # Best one so far, save it but keep looking for a better one
4106      ac_cv_path_SED="$ac_path_SED"
4107      ac_path_SED_max=$ac_count
4108    fi
4109    # 10*(2^10) chars as input seems more than enough
4110    test $ac_count -gt 10 && break
4111  done
4112  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4113esac
4114
4115      $ac_path_SED_found && break 3
4116    done
4117  done
4118  done
4119IFS=$as_save_IFS
4120  if test -z "$ac_cv_path_SED"; then
4121    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4122  fi
4123else
4124  ac_cv_path_SED=$SED
4125fi
4126
4127fi
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4129$as_echo "$ac_cv_path_SED" >&6; }
4130 SED="$ac_cv_path_SED"
4131  rm -f conftest.sed
4132
4133test -z "$SED" && SED=sed
4134Xsed="$SED -e 1s/^X//"
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4147$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4148if ${ac_cv_path_GREP+:} false; then :
4149  $as_echo_n "(cached) " >&6
4150else
4151  if test -z "$GREP"; then
4152  ac_path_GREP_found=false
4153  # Loop through the user's path and test for each of PROGNAME-LIST
4154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156do
4157  IFS=$as_save_IFS
4158  test -z "$as_dir" && as_dir=.
4159    for ac_prog in grep ggrep; do
4160    for ac_exec_ext in '' $ac_executable_extensions; do
4161      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4162      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4163# Check for GNU ac_path_GREP and select it if it is found.
4164  # Check for GNU $ac_path_GREP
4165case `"$ac_path_GREP" --version 2>&1` in
4166*GNU*)
4167  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4168*)
4169  ac_count=0
4170  $as_echo_n 0123456789 >"conftest.in"
4171  while :
4172  do
4173    cat "conftest.in" "conftest.in" >"conftest.tmp"
4174    mv "conftest.tmp" "conftest.in"
4175    cp "conftest.in" "conftest.nl"
4176    $as_echo 'GREP' >> "conftest.nl"
4177    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4178    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4179    as_fn_arith $ac_count + 1 && ac_count=$as_val
4180    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4181      # Best one so far, save it but keep looking for a better one
4182      ac_cv_path_GREP="$ac_path_GREP"
4183      ac_path_GREP_max=$ac_count
4184    fi
4185    # 10*(2^10) chars as input seems more than enough
4186    test $ac_count -gt 10 && break
4187  done
4188  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189esac
4190
4191      $ac_path_GREP_found && break 3
4192    done
4193  done
4194  done
4195IFS=$as_save_IFS
4196  if test -z "$ac_cv_path_GREP"; then
4197    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198  fi
4199else
4200  ac_cv_path_GREP=$GREP
4201fi
4202
4203fi
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4205$as_echo "$ac_cv_path_GREP" >&6; }
4206 GREP="$ac_cv_path_GREP"
4207
4208
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4210$as_echo_n "checking for egrep... " >&6; }
4211if ${ac_cv_path_EGREP+:} false; then :
4212  $as_echo_n "(cached) " >&6
4213else
4214  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4215   then ac_cv_path_EGREP="$GREP -E"
4216   else
4217     if test -z "$EGREP"; then
4218  ac_path_EGREP_found=false
4219  # Loop through the user's path and test for each of PROGNAME-LIST
4220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225    for ac_prog in egrep; do
4226    for ac_exec_ext in '' $ac_executable_extensions; do
4227      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4228      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4229# Check for GNU ac_path_EGREP and select it if it is found.
4230  # Check for GNU $ac_path_EGREP
4231case `"$ac_path_EGREP" --version 2>&1` in
4232*GNU*)
4233  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4234*)
4235  ac_count=0
4236  $as_echo_n 0123456789 >"conftest.in"
4237  while :
4238  do
4239    cat "conftest.in" "conftest.in" >"conftest.tmp"
4240    mv "conftest.tmp" "conftest.in"
4241    cp "conftest.in" "conftest.nl"
4242    $as_echo 'EGREP' >> "conftest.nl"
4243    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245    as_fn_arith $ac_count + 1 && ac_count=$as_val
4246    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4247      # Best one so far, save it but keep looking for a better one
4248      ac_cv_path_EGREP="$ac_path_EGREP"
4249      ac_path_EGREP_max=$ac_count
4250    fi
4251    # 10*(2^10) chars as input seems more than enough
4252    test $ac_count -gt 10 && break
4253  done
4254  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255esac
4256
4257      $ac_path_EGREP_found && break 3
4258    done
4259  done
4260  done
4261IFS=$as_save_IFS
4262  if test -z "$ac_cv_path_EGREP"; then
4263    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264  fi
4265else
4266  ac_cv_path_EGREP=$EGREP
4267fi
4268
4269   fi
4270fi
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4272$as_echo "$ac_cv_path_EGREP" >&6; }
4273 EGREP="$ac_cv_path_EGREP"
4274
4275
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4277$as_echo_n "checking for fgrep... " >&6; }
4278if ${ac_cv_path_FGREP+:} false; then :
4279  $as_echo_n "(cached) " >&6
4280else
4281  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4282   then ac_cv_path_FGREP="$GREP -F"
4283   else
4284     if test -z "$FGREP"; then
4285  ac_path_FGREP_found=false
4286  # Loop through the user's path and test for each of PROGNAME-LIST
4287  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289do
4290  IFS=$as_save_IFS
4291  test -z "$as_dir" && as_dir=.
4292    for ac_prog in fgrep; do
4293    for ac_exec_ext in '' $ac_executable_extensions; do
4294      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4295      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4296# Check for GNU ac_path_FGREP and select it if it is found.
4297  # Check for GNU $ac_path_FGREP
4298case `"$ac_path_FGREP" --version 2>&1` in
4299*GNU*)
4300  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4301*)
4302  ac_count=0
4303  $as_echo_n 0123456789 >"conftest.in"
4304  while :
4305  do
4306    cat "conftest.in" "conftest.in" >"conftest.tmp"
4307    mv "conftest.tmp" "conftest.in"
4308    cp "conftest.in" "conftest.nl"
4309    $as_echo 'FGREP' >> "conftest.nl"
4310    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312    as_fn_arith $ac_count + 1 && ac_count=$as_val
4313    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4314      # Best one so far, save it but keep looking for a better one
4315      ac_cv_path_FGREP="$ac_path_FGREP"
4316      ac_path_FGREP_max=$ac_count
4317    fi
4318    # 10*(2^10) chars as input seems more than enough
4319    test $ac_count -gt 10 && break
4320  done
4321  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322esac
4323
4324      $ac_path_FGREP_found && break 3
4325    done
4326  done
4327  done
4328IFS=$as_save_IFS
4329  if test -z "$ac_cv_path_FGREP"; then
4330    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331  fi
4332else
4333  ac_cv_path_FGREP=$FGREP
4334fi
4335
4336   fi
4337fi
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4339$as_echo "$ac_cv_path_FGREP" >&6; }
4340 FGREP="$ac_cv_path_FGREP"
4341
4342
4343test -z "$GREP" && GREP=grep
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363# Check whether --with-gnu-ld was given.
4364if test "${with_gnu_ld+set}" = set; then :
4365  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4366else
4367  with_gnu_ld=no
4368fi
4369
4370ac_prog=ld
4371if test "$GCC" = yes; then
4372  # Check if gcc -print-prog-name=ld gives a path.
4373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4374$as_echo_n "checking for ld used by $CC... " >&6; }
4375  case $host in
4376  *-*-mingw*)
4377    # gcc leaves a trailing carriage return which upsets mingw
4378    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4379  *)
4380    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4381  esac
4382  case $ac_prog in
4383    # Accept absolute paths.
4384    [\\/]* | ?:[\\/]*)
4385      re_direlt='/[^/][^/]*/\.\./'
4386      # Canonicalize the pathname of ld
4387      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4388      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4389	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4390      done
4391      test -z "$LD" && LD="$ac_prog"
4392      ;;
4393  "")
4394    # If it fails, then pretend we aren't using GCC.
4395    ac_prog=ld
4396    ;;
4397  *)
4398    # If it is relative, then search for the first ld in PATH.
4399    with_gnu_ld=unknown
4400    ;;
4401  esac
4402elif test "$with_gnu_ld" = yes; then
4403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4404$as_echo_n "checking for GNU ld... " >&6; }
4405else
4406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4407$as_echo_n "checking for non-GNU ld... " >&6; }
4408fi
4409if ${lt_cv_path_LD+:} false; then :
4410  $as_echo_n "(cached) " >&6
4411else
4412  if test -z "$LD"; then
4413  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4414  for ac_dir in $PATH; do
4415    IFS="$lt_save_ifs"
4416    test -z "$ac_dir" && ac_dir=.
4417    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4418      lt_cv_path_LD="$ac_dir/$ac_prog"
4419      # Check to see if the program is GNU ld.  I'd rather use --version,
4420      # but apparently some variants of GNU ld only accept -v.
4421      # Break only if it was the GNU/non-GNU ld that we prefer.
4422      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4423      *GNU* | *'with BFD'*)
4424	test "$with_gnu_ld" != no && break
4425	;;
4426      *)
4427	test "$with_gnu_ld" != yes && break
4428	;;
4429      esac
4430    fi
4431  done
4432  IFS="$lt_save_ifs"
4433else
4434  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4435fi
4436fi
4437
4438LD="$lt_cv_path_LD"
4439if test -n "$LD"; then
4440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4441$as_echo "$LD" >&6; }
4442else
4443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444$as_echo "no" >&6; }
4445fi
4446test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4448$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4449if ${lt_cv_prog_gnu_ld+:} false; then :
4450  $as_echo_n "(cached) " >&6
4451else
4452  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4453case `$LD -v 2>&1 </dev/null` in
4454*GNU* | *'with BFD'*)
4455  lt_cv_prog_gnu_ld=yes
4456  ;;
4457*)
4458  lt_cv_prog_gnu_ld=no
4459  ;;
4460esac
4461fi
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4463$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4464with_gnu_ld=$lt_cv_prog_gnu_ld
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4475$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4476if ${lt_cv_path_NM+:} false; then :
4477  $as_echo_n "(cached) " >&6
4478else
4479  if test -n "$NM"; then
4480  # Let the user override the test.
4481  lt_cv_path_NM="$NM"
4482else
4483  lt_nm_to_check="${ac_tool_prefix}nm"
4484  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4485    lt_nm_to_check="$lt_nm_to_check nm"
4486  fi
4487  for lt_tmp_nm in $lt_nm_to_check; do
4488    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4489    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4490      IFS="$lt_save_ifs"
4491      test -z "$ac_dir" && ac_dir=.
4492      tmp_nm="$ac_dir/$lt_tmp_nm"
4493      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4494	# Check to see if the nm accepts a BSD-compat flag.
4495	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4496	#   nm: unknown option "B" ignored
4497	# Tru64's nm complains that /dev/null is an invalid object file
4498	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4499	*/dev/null* | *'Invalid file or object type'*)
4500	  lt_cv_path_NM="$tmp_nm -B"
4501	  break
4502	  ;;
4503	*)
4504	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4505	  */dev/null*)
4506	    lt_cv_path_NM="$tmp_nm -p"
4507	    break
4508	    ;;
4509	  *)
4510	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4511	    continue # so that we can try to find one that supports BSD flags
4512	    ;;
4513	  esac
4514	  ;;
4515	esac
4516      fi
4517    done
4518    IFS="$lt_save_ifs"
4519  done
4520  : ${lt_cv_path_NM=no}
4521fi
4522fi
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4524$as_echo "$lt_cv_path_NM" >&6; }
4525if test "$lt_cv_path_NM" != "no"; then
4526  NM="$lt_cv_path_NM"
4527else
4528  # Didn't find any BSD compatible name lister, look for dumpbin.
4529  if test -n "$DUMPBIN"; then :
4530    # Let the user override the test.
4531  else
4532    if test -n "$ac_tool_prefix"; then
4533  for ac_prog in dumpbin "link -dump"
4534  do
4535    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4536set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538$as_echo_n "checking for $ac_word... " >&6; }
4539if ${ac_cv_prog_DUMPBIN+:} false; then :
4540  $as_echo_n "(cached) " >&6
4541else
4542  if test -n "$DUMPBIN"; then
4543  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4544else
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548  IFS=$as_save_IFS
4549  test -z "$as_dir" && as_dir=.
4550    for ac_exec_ext in '' $ac_executable_extensions; do
4551  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554    break 2
4555  fi
4556done
4557  done
4558IFS=$as_save_IFS
4559
4560fi
4561fi
4562DUMPBIN=$ac_cv_prog_DUMPBIN
4563if test -n "$DUMPBIN"; then
4564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4565$as_echo "$DUMPBIN" >&6; }
4566else
4567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568$as_echo "no" >&6; }
4569fi
4570
4571
4572    test -n "$DUMPBIN" && break
4573  done
4574fi
4575if test -z "$DUMPBIN"; then
4576  ac_ct_DUMPBIN=$DUMPBIN
4577  for ac_prog in dumpbin "link -dump"
4578do
4579  # Extract the first word of "$ac_prog", so it can be a program name with args.
4580set dummy $ac_prog; ac_word=$2
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582$as_echo_n "checking for $ac_word... " >&6; }
4583if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4584  $as_echo_n "(cached) " >&6
4585else
4586  if test -n "$ac_ct_DUMPBIN"; then
4587  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4588else
4589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH
4591do
4592  IFS=$as_save_IFS
4593  test -z "$as_dir" && as_dir=.
4594    for ac_exec_ext in '' $ac_executable_extensions; do
4595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598    break 2
4599  fi
4600done
4601  done
4602IFS=$as_save_IFS
4603
4604fi
4605fi
4606ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4607if test -n "$ac_ct_DUMPBIN"; then
4608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4609$as_echo "$ac_ct_DUMPBIN" >&6; }
4610else
4611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612$as_echo "no" >&6; }
4613fi
4614
4615
4616  test -n "$ac_ct_DUMPBIN" && break
4617done
4618
4619  if test "x$ac_ct_DUMPBIN" = x; then
4620    DUMPBIN=":"
4621  else
4622    case $cross_compiling:$ac_tool_warned in
4623yes:)
4624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4626ac_tool_warned=yes ;;
4627esac
4628    DUMPBIN=$ac_ct_DUMPBIN
4629  fi
4630fi
4631
4632    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4633    *COFF*)
4634      DUMPBIN="$DUMPBIN -symbols"
4635      ;;
4636    *)
4637      DUMPBIN=:
4638      ;;
4639    esac
4640  fi
4641
4642  if test "$DUMPBIN" != ":"; then
4643    NM="$DUMPBIN"
4644  fi
4645fi
4646test -z "$NM" && NM=nm
4647
4648
4649
4650
4651
4652
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4654$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4655if ${lt_cv_nm_interface+:} false; then :
4656  $as_echo_n "(cached) " >&6
4657else
4658  lt_cv_nm_interface="BSD nm"
4659  echo "int some_variable = 0;" > conftest.$ac_ext
4660  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4661  (eval "$ac_compile" 2>conftest.err)
4662  cat conftest.err >&5
4663  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4664  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4665  cat conftest.err >&5
4666  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4667  cat conftest.out >&5
4668  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4669    lt_cv_nm_interface="MS dumpbin"
4670  fi
4671  rm -f conftest*
4672fi
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4674$as_echo "$lt_cv_nm_interface" >&6; }
4675
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4677$as_echo_n "checking whether ln -s works... " >&6; }
4678LN_S=$as_ln_s
4679if test "$LN_S" = "ln -s"; then
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4681$as_echo "yes" >&6; }
4682else
4683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4684$as_echo "no, using $LN_S" >&6; }
4685fi
4686
4687# find the maximum length of command line arguments
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4689$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4690if ${lt_cv_sys_max_cmd_len+:} false; then :
4691  $as_echo_n "(cached) " >&6
4692else
4693    i=0
4694  teststring="ABCD"
4695
4696  case $build_os in
4697  msdosdjgpp*)
4698    # On DJGPP, this test can blow up pretty badly due to problems in libc
4699    # (any single argument exceeding 2000 bytes causes a buffer overrun
4700    # during glob expansion).  Even if it were fixed, the result of this
4701    # check would be larger than it should be.
4702    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4703    ;;
4704
4705  gnu*)
4706    # Under GNU Hurd, this test is not required because there is
4707    # no limit to the length of command line arguments.
4708    # Libtool will interpret -1 as no limit whatsoever
4709    lt_cv_sys_max_cmd_len=-1;
4710    ;;
4711
4712  cygwin* | mingw* | cegcc*)
4713    # On Win9x/ME, this test blows up -- it succeeds, but takes
4714    # about 5 minutes as the teststring grows exponentially.
4715    # Worse, since 9x/ME are not pre-emptively multitasking,
4716    # you end up with a "frozen" computer, even though with patience
4717    # the test eventually succeeds (with a max line length of 256k).
4718    # Instead, let's just punt: use the minimum linelength reported by
4719    # all of the supported platforms: 8192 (on NT/2K/XP).
4720    lt_cv_sys_max_cmd_len=8192;
4721    ;;
4722
4723  mint*)
4724    # On MiNT this can take a long time and run out of memory.
4725    lt_cv_sys_max_cmd_len=8192;
4726    ;;
4727
4728  amigaos*)
4729    # On AmigaOS with pdksh, this test takes hours, literally.
4730    # So we just punt and use a minimum line length of 8192.
4731    lt_cv_sys_max_cmd_len=8192;
4732    ;;
4733
4734  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4735    # This has been around since 386BSD, at least.  Likely further.
4736    if test -x /sbin/sysctl; then
4737      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4738    elif test -x /usr/sbin/sysctl; then
4739      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4740    else
4741      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4742    fi
4743    # And add a safety zone
4744    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4745    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4746    ;;
4747
4748  interix*)
4749    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4750    lt_cv_sys_max_cmd_len=196608
4751    ;;
4752
4753  osf*)
4754    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4755    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4756    # nice to cause kernel panics so lets avoid the loop below.
4757    # First set a reasonable default.
4758    lt_cv_sys_max_cmd_len=16384
4759    #
4760    if test -x /sbin/sysconfig; then
4761      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4762        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4763      esac
4764    fi
4765    ;;
4766  sco3.2v5*)
4767    lt_cv_sys_max_cmd_len=102400
4768    ;;
4769  sysv5* | sco5v6* | sysv4.2uw2*)
4770    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4771    if test -n "$kargmax"; then
4772      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4773    else
4774      lt_cv_sys_max_cmd_len=32768
4775    fi
4776    ;;
4777  *)
4778    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4779    if test -n "$lt_cv_sys_max_cmd_len"; then
4780      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4781      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4782    else
4783      # Make teststring a little bigger before we do anything with it.
4784      # a 1K string should be a reasonable start.
4785      for i in 1 2 3 4 5 6 7 8 ; do
4786        teststring=$teststring$teststring
4787      done
4788      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4789      # If test is not a shell built-in, we'll probably end up computing a
4790      # maximum length that is only half of the actual maximum length, but
4791      # we can't tell.
4792      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4793	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4794	      test $i != 17 # 1/2 MB should be enough
4795      do
4796        i=`expr $i + 1`
4797        teststring=$teststring$teststring
4798      done
4799      # Only check the string length outside the loop.
4800      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4801      teststring=
4802      # Add a significant safety factor because C++ compilers can tack on
4803      # massive amounts of additional arguments before passing them to the
4804      # linker.  It appears as though 1/2 is a usable value.
4805      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4806    fi
4807    ;;
4808  esac
4809
4810fi
4811
4812if test -n $lt_cv_sys_max_cmd_len ; then
4813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4814$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4815else
4816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4817$as_echo "none" >&6; }
4818fi
4819max_cmd_len=$lt_cv_sys_max_cmd_len
4820
4821
4822
4823
4824
4825
4826: ${CP="cp -f"}
4827: ${MV="mv -f"}
4828: ${RM="rm -f"}
4829
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4831$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4832# Try some XSI features
4833xsi_shell=no
4834( _lt_dummy="a/b/c"
4835  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4836      = c,a/b,b/c, \
4837    && eval 'test $(( 1 + 1 )) -eq 2 \
4838    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4839  && xsi_shell=yes
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4841$as_echo "$xsi_shell" >&6; }
4842
4843
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4845$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4846lt_shell_append=no
4847( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4848    >/dev/null 2>&1 \
4849  && lt_shell_append=yes
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4851$as_echo "$lt_shell_append" >&6; }
4852
4853
4854if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4855  lt_unset=unset
4856else
4857  lt_unset=false
4858fi
4859
4860
4861
4862
4863
4864# test EBCDIC or ASCII
4865case `echo X|tr X '\101'` in
4866 A) # ASCII based system
4867    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4868  lt_SP2NL='tr \040 \012'
4869  lt_NL2SP='tr \015\012 \040\040'
4870  ;;
4871 *) # EBCDIC based system
4872  lt_SP2NL='tr \100 \n'
4873  lt_NL2SP='tr \r\n \100\100'
4874  ;;
4875esac
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4886$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4887if ${lt_cv_to_host_file_cmd+:} false; then :
4888  $as_echo_n "(cached) " >&6
4889else
4890  case $host in
4891  *-*-mingw* )
4892    case $build in
4893      *-*-mingw* ) # actually msys
4894        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4895        ;;
4896      *-*-cygwin* )
4897        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4898        ;;
4899      * ) # otherwise, assume *nix
4900        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4901        ;;
4902    esac
4903    ;;
4904  *-*-cygwin* )
4905    case $build in
4906      *-*-mingw* ) # actually msys
4907        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4908        ;;
4909      *-*-cygwin* )
4910        lt_cv_to_host_file_cmd=func_convert_file_noop
4911        ;;
4912      * ) # otherwise, assume *nix
4913        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4914        ;;
4915    esac
4916    ;;
4917  * ) # unhandled hosts (and "normal" native builds)
4918    lt_cv_to_host_file_cmd=func_convert_file_noop
4919    ;;
4920esac
4921
4922fi
4923
4924to_host_file_cmd=$lt_cv_to_host_file_cmd
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4926$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4927
4928
4929
4930
4931
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4933$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4934if ${lt_cv_to_tool_file_cmd+:} false; then :
4935  $as_echo_n "(cached) " >&6
4936else
4937  #assume ordinary cross tools, or native build.
4938lt_cv_to_tool_file_cmd=func_convert_file_noop
4939case $host in
4940  *-*-mingw* )
4941    case $build in
4942      *-*-mingw* ) # actually msys
4943        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4944        ;;
4945    esac
4946    ;;
4947esac
4948
4949fi
4950
4951to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4953$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4954
4955
4956
4957
4958
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4960$as_echo_n "checking for $LD option to reload object files... " >&6; }
4961if ${lt_cv_ld_reload_flag+:} false; then :
4962  $as_echo_n "(cached) " >&6
4963else
4964  lt_cv_ld_reload_flag='-r'
4965fi
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4967$as_echo "$lt_cv_ld_reload_flag" >&6; }
4968reload_flag=$lt_cv_ld_reload_flag
4969case $reload_flag in
4970"" | " "*) ;;
4971*) reload_flag=" $reload_flag" ;;
4972esac
4973reload_cmds='$LD$reload_flag -o $output$reload_objs'
4974case $host_os in
4975  cygwin* | mingw* | pw32* | cegcc*)
4976    if test "$GCC" != yes; then
4977      reload_cmds=false
4978    fi
4979    ;;
4980  darwin*)
4981    if test "$GCC" = yes; then
4982      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4983    else
4984      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4985    fi
4986    ;;
4987esac
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997if test -n "$ac_tool_prefix"; then
4998  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4999set dummy ${ac_tool_prefix}objdump; ac_word=$2
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001$as_echo_n "checking for $ac_word... " >&6; }
5002if ${ac_cv_prog_OBJDUMP+:} false; then :
5003  $as_echo_n "(cached) " >&6
5004else
5005  if test -n "$OBJDUMP"; then
5006  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5007else
5008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009for as_dir in $PATH
5010do
5011  IFS=$as_save_IFS
5012  test -z "$as_dir" && as_dir=.
5013    for ac_exec_ext in '' $ac_executable_extensions; do
5014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017    break 2
5018  fi
5019done
5020  done
5021IFS=$as_save_IFS
5022
5023fi
5024fi
5025OBJDUMP=$ac_cv_prog_OBJDUMP
5026if test -n "$OBJDUMP"; then
5027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5028$as_echo "$OBJDUMP" >&6; }
5029else
5030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031$as_echo "no" >&6; }
5032fi
5033
5034
5035fi
5036if test -z "$ac_cv_prog_OBJDUMP"; then
5037  ac_ct_OBJDUMP=$OBJDUMP
5038  # Extract the first word of "objdump", so it can be a program name with args.
5039set dummy objdump; ac_word=$2
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041$as_echo_n "checking for $ac_word... " >&6; }
5042if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5043  $as_echo_n "(cached) " >&6
5044else
5045  if test -n "$ac_ct_OBJDUMP"; then
5046  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5047else
5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051  IFS=$as_save_IFS
5052  test -z "$as_dir" && as_dir=.
5053    for ac_exec_ext in '' $ac_executable_extensions; do
5054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057    break 2
5058  fi
5059done
5060  done
5061IFS=$as_save_IFS
5062
5063fi
5064fi
5065ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5066if test -n "$ac_ct_OBJDUMP"; then
5067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5068$as_echo "$ac_ct_OBJDUMP" >&6; }
5069else
5070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071$as_echo "no" >&6; }
5072fi
5073
5074  if test "x$ac_ct_OBJDUMP" = x; then
5075    OBJDUMP="false"
5076  else
5077    case $cross_compiling:$ac_tool_warned in
5078yes:)
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5081ac_tool_warned=yes ;;
5082esac
5083    OBJDUMP=$ac_ct_OBJDUMP
5084  fi
5085else
5086  OBJDUMP="$ac_cv_prog_OBJDUMP"
5087fi
5088
5089test -z "$OBJDUMP" && OBJDUMP=objdump
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5100$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5101if ${lt_cv_deplibs_check_method+:} false; then :
5102  $as_echo_n "(cached) " >&6
5103else
5104  lt_cv_file_magic_cmd='$MAGIC_CMD'
5105lt_cv_file_magic_test_file=
5106lt_cv_deplibs_check_method='unknown'
5107# Need to set the preceding variable on all platforms that support
5108# interlibrary dependencies.
5109# 'none' -- dependencies not supported.
5110# `unknown' -- same as none, but documents that we really don't know.
5111# 'pass_all' -- all dependencies passed with no checks.
5112# 'test_compile' -- check by making test program.
5113# 'file_magic [[regex]]' -- check by looking for files in library path
5114# which responds to the $file_magic_cmd with a given extended regex.
5115# If you have `file' or equivalent on your system and you're not sure
5116# whether `pass_all' will *always* work, you probably want this one.
5117
5118case $host_os in
5119aix[4-9]*)
5120  lt_cv_deplibs_check_method=pass_all
5121  ;;
5122
5123beos*)
5124  lt_cv_deplibs_check_method=pass_all
5125  ;;
5126
5127bsdi[45]*)
5128  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5129  lt_cv_file_magic_cmd='/usr/bin/file -L'
5130  lt_cv_file_magic_test_file=/shlib/libc.so
5131  ;;
5132
5133cygwin*)
5134  # func_win32_libid is a shell function defined in ltmain.sh
5135  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5136  lt_cv_file_magic_cmd='func_win32_libid'
5137  ;;
5138
5139mingw* | pw32*)
5140  # Base MSYS/MinGW do not provide the 'file' command needed by
5141  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5142  # unless we find 'file', for example because we are cross-compiling.
5143  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5144  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5145    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5146    lt_cv_file_magic_cmd='func_win32_libid'
5147  else
5148    # Keep this pattern in sync with the one in func_win32_libid.
5149    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5150    lt_cv_file_magic_cmd='$OBJDUMP -f'
5151  fi
5152  ;;
5153
5154cegcc*)
5155  # use the weaker test based on 'objdump'. See mingw*.
5156  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5157  lt_cv_file_magic_cmd='$OBJDUMP -f'
5158  ;;
5159
5160darwin* | rhapsody*)
5161  lt_cv_deplibs_check_method=pass_all
5162  ;;
5163
5164freebsd* | dragonfly*)
5165  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5166    case $host_cpu in
5167    i*86 )
5168      # Not sure whether the presence of OpenBSD here was a mistake.
5169      # Let's accept both of them until this is cleared up.
5170      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5171      lt_cv_file_magic_cmd=/usr/bin/file
5172      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5173      ;;
5174    esac
5175  else
5176    lt_cv_deplibs_check_method=pass_all
5177  fi
5178  ;;
5179
5180gnu*)
5181  lt_cv_deplibs_check_method=pass_all
5182  ;;
5183
5184haiku*)
5185  lt_cv_deplibs_check_method=pass_all
5186  ;;
5187
5188hpux10.20* | hpux11*)
5189  lt_cv_file_magic_cmd=/usr/bin/file
5190  case $host_cpu in
5191  ia64*)
5192    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5193    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5194    ;;
5195  hppa*64*)
5196    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]'
5197    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5198    ;;
5199  *)
5200    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5201    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5202    ;;
5203  esac
5204  ;;
5205
5206interix[3-9]*)
5207  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5208  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5209  ;;
5210
5211irix5* | irix6* | nonstopux*)
5212  case $LD in
5213  *-32|*"-32 ") libmagic=32-bit;;
5214  *-n32|*"-n32 ") libmagic=N32;;
5215  *-64|*"-64 ") libmagic=64-bit;;
5216  *) libmagic=never-match;;
5217  esac
5218  lt_cv_deplibs_check_method=pass_all
5219  ;;
5220
5221# This must be Linux ELF.
5222linux* | k*bsd*-gnu | kopensolaris*-gnu)
5223  lt_cv_deplibs_check_method=pass_all
5224  ;;
5225
5226netbsd*)
5227  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5228    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5229  else
5230    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5231  fi
5232  ;;
5233
5234newos6*)
5235  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5236  lt_cv_file_magic_cmd=/usr/bin/file
5237  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5238  ;;
5239
5240*nto* | *qnx*)
5241  lt_cv_deplibs_check_method=pass_all
5242  ;;
5243
5244openbsd*)
5245  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5246    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5247  else
5248    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5249  fi
5250  ;;
5251
5252osf3* | osf4* | osf5*)
5253  lt_cv_deplibs_check_method=pass_all
5254  ;;
5255
5256rdos*)
5257  lt_cv_deplibs_check_method=pass_all
5258  ;;
5259
5260solaris*)
5261  lt_cv_deplibs_check_method=pass_all
5262  ;;
5263
5264sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5265  lt_cv_deplibs_check_method=pass_all
5266  ;;
5267
5268sysv4 | sysv4.3*)
5269  case $host_vendor in
5270  motorola)
5271    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]'
5272    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5273    ;;
5274  ncr)
5275    lt_cv_deplibs_check_method=pass_all
5276    ;;
5277  sequent)
5278    lt_cv_file_magic_cmd='/bin/file'
5279    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5280    ;;
5281  sni)
5282    lt_cv_file_magic_cmd='/bin/file'
5283    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5284    lt_cv_file_magic_test_file=/lib/libc.so
5285    ;;
5286  siemens)
5287    lt_cv_deplibs_check_method=pass_all
5288    ;;
5289  pc)
5290    lt_cv_deplibs_check_method=pass_all
5291    ;;
5292  esac
5293  ;;
5294
5295tpf*)
5296  lt_cv_deplibs_check_method=pass_all
5297  ;;
5298esac
5299
5300fi
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5302$as_echo "$lt_cv_deplibs_check_method" >&6; }
5303
5304file_magic_glob=
5305want_nocaseglob=no
5306if test "$build" = "$host"; then
5307  case $host_os in
5308  mingw* | pw32*)
5309    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5310      want_nocaseglob=yes
5311    else
5312      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5313    fi
5314    ;;
5315  esac
5316fi
5317
5318file_magic_cmd=$lt_cv_file_magic_cmd
5319deplibs_check_method=$lt_cv_deplibs_check_method
5320test -z "$deplibs_check_method" && deplibs_check_method=unknown
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343if test -n "$ac_tool_prefix"; then
5344  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5345set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347$as_echo_n "checking for $ac_word... " >&6; }
5348if ${ac_cv_prog_DLLTOOL+:} false; then :
5349  $as_echo_n "(cached) " >&6
5350else
5351  if test -n "$DLLTOOL"; then
5352  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5353else
5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355for as_dir in $PATH
5356do
5357  IFS=$as_save_IFS
5358  test -z "$as_dir" && as_dir=.
5359    for ac_exec_ext in '' $ac_executable_extensions; do
5360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5361    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363    break 2
5364  fi
5365done
5366  done
5367IFS=$as_save_IFS
5368
5369fi
5370fi
5371DLLTOOL=$ac_cv_prog_DLLTOOL
5372if test -n "$DLLTOOL"; then
5373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5374$as_echo "$DLLTOOL" >&6; }
5375else
5376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377$as_echo "no" >&6; }
5378fi
5379
5380
5381fi
5382if test -z "$ac_cv_prog_DLLTOOL"; then
5383  ac_ct_DLLTOOL=$DLLTOOL
5384  # Extract the first word of "dlltool", so it can be a program name with args.
5385set dummy dlltool; ac_word=$2
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387$as_echo_n "checking for $ac_word... " >&6; }
5388if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5389  $as_echo_n "(cached) " >&6
5390else
5391  if test -n "$ac_ct_DLLTOOL"; then
5392  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5393else
5394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395for as_dir in $PATH
5396do
5397  IFS=$as_save_IFS
5398  test -z "$as_dir" && as_dir=.
5399    for ac_exec_ext in '' $ac_executable_extensions; do
5400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5401    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403    break 2
5404  fi
5405done
5406  done
5407IFS=$as_save_IFS
5408
5409fi
5410fi
5411ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5412if test -n "$ac_ct_DLLTOOL"; then
5413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5414$as_echo "$ac_ct_DLLTOOL" >&6; }
5415else
5416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417$as_echo "no" >&6; }
5418fi
5419
5420  if test "x$ac_ct_DLLTOOL" = x; then
5421    DLLTOOL="false"
5422  else
5423    case $cross_compiling:$ac_tool_warned in
5424yes:)
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5427ac_tool_warned=yes ;;
5428esac
5429    DLLTOOL=$ac_ct_DLLTOOL
5430  fi
5431else
5432  DLLTOOL="$ac_cv_prog_DLLTOOL"
5433fi
5434
5435test -z "$DLLTOOL" && DLLTOOL=dlltool
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5447$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5448if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5449  $as_echo_n "(cached) " >&6
5450else
5451  lt_cv_sharedlib_from_linklib_cmd='unknown'
5452
5453case $host_os in
5454cygwin* | mingw* | pw32* | cegcc*)
5455  # two different shell functions defined in ltmain.sh
5456  # decide which to use based on capabilities of $DLLTOOL
5457  case `$DLLTOOL --help 2>&1` in
5458  *--identify-strict*)
5459    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5460    ;;
5461  *)
5462    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5463    ;;
5464  esac
5465  ;;
5466*)
5467  # fallback: assume linklib IS sharedlib
5468  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5469  ;;
5470esac
5471
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5474$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5475sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5476test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5477
5478
5479
5480
5481
5482
5483
5484
5485if test -n "$ac_tool_prefix"; then
5486  for ac_prog in ar
5487  do
5488    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491$as_echo_n "checking for $ac_word... " >&6; }
5492if ${ac_cv_prog_AR+:} false; then :
5493  $as_echo_n "(cached) " >&6
5494else
5495  if test -n "$AR"; then
5496  ac_cv_prog_AR="$AR" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501  IFS=$as_save_IFS
5502  test -z "$as_dir" && as_dir=.
5503    for ac_exec_ext in '' $ac_executable_extensions; do
5504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507    break 2
5508  fi
5509done
5510  done
5511IFS=$as_save_IFS
5512
5513fi
5514fi
5515AR=$ac_cv_prog_AR
5516if test -n "$AR"; then
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5518$as_echo "$AR" >&6; }
5519else
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521$as_echo "no" >&6; }
5522fi
5523
5524
5525    test -n "$AR" && break
5526  done
5527fi
5528if test -z "$AR"; then
5529  ac_ct_AR=$AR
5530  for ac_prog in ar
5531do
5532  # Extract the first word of "$ac_prog", so it can be a program name with args.
5533set dummy $ac_prog; ac_word=$2
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535$as_echo_n "checking for $ac_word... " >&6; }
5536if ${ac_cv_prog_ac_ct_AR+:} false; then :
5537  $as_echo_n "(cached) " >&6
5538else
5539  if test -n "$ac_ct_AR"; then
5540  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5541else
5542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543for as_dir in $PATH
5544do
5545  IFS=$as_save_IFS
5546  test -z "$as_dir" && as_dir=.
5547    for ac_exec_ext in '' $ac_executable_extensions; do
5548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549    ac_cv_prog_ac_ct_AR="$ac_prog"
5550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551    break 2
5552  fi
5553done
5554  done
5555IFS=$as_save_IFS
5556
5557fi
5558fi
5559ac_ct_AR=$ac_cv_prog_ac_ct_AR
5560if test -n "$ac_ct_AR"; then
5561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5562$as_echo "$ac_ct_AR" >&6; }
5563else
5564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565$as_echo "no" >&6; }
5566fi
5567
5568
5569  test -n "$ac_ct_AR" && break
5570done
5571
5572  if test "x$ac_ct_AR" = x; then
5573    AR="false"
5574  else
5575    case $cross_compiling:$ac_tool_warned in
5576yes:)
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5579ac_tool_warned=yes ;;
5580esac
5581    AR=$ac_ct_AR
5582  fi
5583fi
5584
5585: ${AR=ar}
5586: ${AR_FLAGS=cru}
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5599$as_echo_n "checking for archiver @FILE support... " >&6; }
5600if ${lt_cv_ar_at_file+:} false; then :
5601  $as_echo_n "(cached) " >&6
5602else
5603  lt_cv_ar_at_file=no
5604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605/* end confdefs.h.  */
5606
5607int
5608main ()
5609{
5610
5611  ;
5612  return 0;
5613}
5614_ACEOF
5615if ac_fn_c_try_compile "$LINENO"; then :
5616  echo conftest.$ac_objext > conftest.lst
5617      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5618      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5619  (eval $lt_ar_try) 2>&5
5620  ac_status=$?
5621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5622  test $ac_status = 0; }
5623      if test "$ac_status" -eq 0; then
5624	# Ensure the archiver fails upon bogus file names.
5625	rm -f conftest.$ac_objext libconftest.a
5626	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5627  (eval $lt_ar_try) 2>&5
5628  ac_status=$?
5629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630  test $ac_status = 0; }
5631	if test "$ac_status" -ne 0; then
5632          lt_cv_ar_at_file=@
5633        fi
5634      fi
5635      rm -f conftest.* libconftest.a
5636
5637fi
5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639
5640fi
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5642$as_echo "$lt_cv_ar_at_file" >&6; }
5643
5644if test "x$lt_cv_ar_at_file" = xno; then
5645  archiver_list_spec=
5646else
5647  archiver_list_spec=$lt_cv_ar_at_file
5648fi
5649
5650
5651
5652
5653
5654
5655
5656if test -n "$ac_tool_prefix"; then
5657  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5658set dummy ${ac_tool_prefix}strip; ac_word=$2
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660$as_echo_n "checking for $ac_word... " >&6; }
5661if ${ac_cv_prog_STRIP+:} false; then :
5662  $as_echo_n "(cached) " >&6
5663else
5664  if test -n "$STRIP"; then
5665  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5666else
5667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH
5669do
5670  IFS=$as_save_IFS
5671  test -z "$as_dir" && as_dir=.
5672    for ac_exec_ext in '' $ac_executable_extensions; do
5673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5674    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676    break 2
5677  fi
5678done
5679  done
5680IFS=$as_save_IFS
5681
5682fi
5683fi
5684STRIP=$ac_cv_prog_STRIP
5685if test -n "$STRIP"; then
5686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5687$as_echo "$STRIP" >&6; }
5688else
5689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690$as_echo "no" >&6; }
5691fi
5692
5693
5694fi
5695if test -z "$ac_cv_prog_STRIP"; then
5696  ac_ct_STRIP=$STRIP
5697  # Extract the first word of "strip", so it can be a program name with args.
5698set dummy strip; ac_word=$2
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700$as_echo_n "checking for $ac_word... " >&6; }
5701if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5702  $as_echo_n "(cached) " >&6
5703else
5704  if test -n "$ac_ct_STRIP"; then
5705  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5706else
5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710  IFS=$as_save_IFS
5711  test -z "$as_dir" && as_dir=.
5712    for ac_exec_ext in '' $ac_executable_extensions; do
5713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714    ac_cv_prog_ac_ct_STRIP="strip"
5715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716    break 2
5717  fi
5718done
5719  done
5720IFS=$as_save_IFS
5721
5722fi
5723fi
5724ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5725if test -n "$ac_ct_STRIP"; then
5726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5727$as_echo "$ac_ct_STRIP" >&6; }
5728else
5729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730$as_echo "no" >&6; }
5731fi
5732
5733  if test "x$ac_ct_STRIP" = x; then
5734    STRIP=":"
5735  else
5736    case $cross_compiling:$ac_tool_warned in
5737yes:)
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5740ac_tool_warned=yes ;;
5741esac
5742    STRIP=$ac_ct_STRIP
5743  fi
5744else
5745  STRIP="$ac_cv_prog_STRIP"
5746fi
5747
5748test -z "$STRIP" && STRIP=:
5749
5750
5751
5752
5753
5754
5755if test -n "$ac_tool_prefix"; then
5756  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5757set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759$as_echo_n "checking for $ac_word... " >&6; }
5760if ${ac_cv_prog_RANLIB+:} false; then :
5761  $as_echo_n "(cached) " >&6
5762else
5763  if test -n "$RANLIB"; then
5764  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5765else
5766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767for as_dir in $PATH
5768do
5769  IFS=$as_save_IFS
5770  test -z "$as_dir" && as_dir=.
5771    for ac_exec_ext in '' $ac_executable_extensions; do
5772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775    break 2
5776  fi
5777done
5778  done
5779IFS=$as_save_IFS
5780
5781fi
5782fi
5783RANLIB=$ac_cv_prog_RANLIB
5784if test -n "$RANLIB"; then
5785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5786$as_echo "$RANLIB" >&6; }
5787else
5788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789$as_echo "no" >&6; }
5790fi
5791
5792
5793fi
5794if test -z "$ac_cv_prog_RANLIB"; then
5795  ac_ct_RANLIB=$RANLIB
5796  # Extract the first word of "ranlib", so it can be a program name with args.
5797set dummy ranlib; ac_word=$2
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799$as_echo_n "checking for $ac_word... " >&6; }
5800if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  if test -n "$ac_ct_RANLIB"; then
5804  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809  IFS=$as_save_IFS
5810  test -z "$as_dir" && as_dir=.
5811    for ac_exec_ext in '' $ac_executable_extensions; do
5812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813    ac_cv_prog_ac_ct_RANLIB="ranlib"
5814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815    break 2
5816  fi
5817done
5818  done
5819IFS=$as_save_IFS
5820
5821fi
5822fi
5823ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5824if test -n "$ac_ct_RANLIB"; then
5825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5826$as_echo "$ac_ct_RANLIB" >&6; }
5827else
5828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829$as_echo "no" >&6; }
5830fi
5831
5832  if test "x$ac_ct_RANLIB" = x; then
5833    RANLIB=":"
5834  else
5835    case $cross_compiling:$ac_tool_warned in
5836yes:)
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5839ac_tool_warned=yes ;;
5840esac
5841    RANLIB=$ac_ct_RANLIB
5842  fi
5843else
5844  RANLIB="$ac_cv_prog_RANLIB"
5845fi
5846
5847test -z "$RANLIB" && RANLIB=:
5848
5849
5850
5851
5852
5853
5854# Determine commands to create old-style static archives.
5855old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5856old_postinstall_cmds='chmod 644 $oldlib'
5857old_postuninstall_cmds=
5858
5859if test -n "$RANLIB"; then
5860  case $host_os in
5861  openbsd*)
5862    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5863    ;;
5864  *)
5865    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5866    ;;
5867  esac
5868  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5869fi
5870
5871case $host_os in
5872  darwin*)
5873    lock_old_archive_extraction=yes ;;
5874  *)
5875    lock_old_archive_extraction=no ;;
5876esac
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916# If no C compiler was specified, use CC.
5917LTCC=${LTCC-"$CC"}
5918
5919# If no C compiler flags were specified, use CFLAGS.
5920LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5921
5922# Allow CC to be a program name with arguments.
5923compiler=$CC
5924
5925
5926# Check for command to grab the raw symbol name followed by C symbol from nm.
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5928$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5929if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5930  $as_echo_n "(cached) " >&6
5931else
5932
5933# These are sane defaults that work on at least a few old systems.
5934# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5935
5936# Character class describing NM global symbol codes.
5937symcode='[BCDEGRST]'
5938
5939# Regexp to match symbols that can be accessed directly from C.
5940sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5941
5942# Define system-specific variables.
5943case $host_os in
5944aix*)
5945  symcode='[BCDT]'
5946  ;;
5947cygwin* | mingw* | pw32* | cegcc*)
5948  symcode='[ABCDGISTW]'
5949  ;;
5950hpux*)
5951  if test "$host_cpu" = ia64; then
5952    symcode='[ABCDEGRST]'
5953  fi
5954  ;;
5955irix* | nonstopux*)
5956  symcode='[BCDEGRST]'
5957  ;;
5958osf*)
5959  symcode='[BCDEGQRST]'
5960  ;;
5961solaris*)
5962  symcode='[BDRT]'
5963  ;;
5964sco3.2v5*)
5965  symcode='[DT]'
5966  ;;
5967sysv4.2uw2*)
5968  symcode='[DT]'
5969  ;;
5970sysv5* | sco5v6* | unixware* | OpenUNIX*)
5971  symcode='[ABDT]'
5972  ;;
5973sysv4)
5974  symcode='[DFNSTU]'
5975  ;;
5976esac
5977
5978# If we're using GNU nm, then use its standard symbol codes.
5979case `$NM -V 2>&1` in
5980*GNU* | *'with BFD'*)
5981  symcode='[ABCDGIRSTW]' ;;
5982esac
5983
5984# Transform an extracted symbol line into a proper C declaration.
5985# Some systems (esp. on ia64) link data and code symbols differently,
5986# so use this general approach.
5987lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5988
5989# Transform an extracted symbol line into symbol name and symbol address
5990lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5991lt_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'"
5992
5993# Handle CRLF in mingw tool chain
5994opt_cr=
5995case $build_os in
5996mingw*)
5997  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5998  ;;
5999esac
6000
6001# Try without a prefix underscore, then with it.
6002for ac_symprfx in "" "_"; do
6003
6004  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6005  symxfrm="\\1 $ac_symprfx\\2 \\2"
6006
6007  # Write the raw and C identifiers.
6008  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6009    # Fake it for dumpbin and say T for any non-static function
6010    # and D for any global variable.
6011    # Also find C++ and __fastcall symbols from MSVC++,
6012    # which start with @ or ?.
6013    lt_cv_sys_global_symbol_pipe="$AWK '"\
6014"     {last_section=section; section=\$ 3};"\
6015"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6016"     \$ 0!~/External *\|/{next};"\
6017"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6018"     {if(hide[section]) next};"\
6019"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6020"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6021"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6022"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6023"     ' prfx=^$ac_symprfx"
6024  else
6025    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6026  fi
6027  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6028
6029  # Check to see that the pipe works correctly.
6030  pipe_works=no
6031
6032  rm -f conftest*
6033  cat > conftest.$ac_ext <<_LT_EOF
6034#ifdef __cplusplus
6035extern "C" {
6036#endif
6037char nm_test_var;
6038void nm_test_func(void);
6039void nm_test_func(void){}
6040#ifdef __cplusplus
6041}
6042#endif
6043int main(){nm_test_var='a';nm_test_func();return(0);}
6044_LT_EOF
6045
6046  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6047  (eval $ac_compile) 2>&5
6048  ac_status=$?
6049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6050  test $ac_status = 0; }; then
6051    # Now try to grab the symbols.
6052    nlist=conftest.nm
6053    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6054  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6055  ac_status=$?
6056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6057  test $ac_status = 0; } && test -s "$nlist"; then
6058      # Try sorting and uniquifying the output.
6059      if sort "$nlist" | uniq > "$nlist"T; then
6060	mv -f "$nlist"T "$nlist"
6061      else
6062	rm -f "$nlist"T
6063      fi
6064
6065      # Make sure that we snagged all the symbols we need.
6066      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6067	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6068	  cat <<_LT_EOF > conftest.$ac_ext
6069/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6070#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6071/* DATA imports from DLLs on WIN32 con't be const, because runtime
6072   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6073# define LT_DLSYM_CONST
6074#elif defined(__osf__)
6075/* This system does not cope well with relocations in const data.  */
6076# define LT_DLSYM_CONST
6077#else
6078# define LT_DLSYM_CONST const
6079#endif
6080
6081#ifdef __cplusplus
6082extern "C" {
6083#endif
6084
6085_LT_EOF
6086	  # Now generate the symbol file.
6087	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6088
6089	  cat <<_LT_EOF >> conftest.$ac_ext
6090
6091/* The mapping between symbol names and symbols.  */
6092LT_DLSYM_CONST struct {
6093  const char *name;
6094  void       *address;
6095}
6096lt__PROGRAM__LTX_preloaded_symbols[] =
6097{
6098  { "@PROGRAM@", (void *) 0 },
6099_LT_EOF
6100	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6101	  cat <<\_LT_EOF >> conftest.$ac_ext
6102  {0, (void *) 0}
6103};
6104
6105/* This works around a problem in FreeBSD linker */
6106#ifdef FREEBSD_WORKAROUND
6107static const void *lt_preloaded_setup() {
6108  return lt__PROGRAM__LTX_preloaded_symbols;
6109}
6110#endif
6111
6112#ifdef __cplusplus
6113}
6114#endif
6115_LT_EOF
6116	  # Now try linking the two files.
6117	  mv conftest.$ac_objext conftstm.$ac_objext
6118	  lt_globsym_save_LIBS=$LIBS
6119	  lt_globsym_save_CFLAGS=$CFLAGS
6120	  LIBS="conftstm.$ac_objext"
6121	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6122	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6123  (eval $ac_link) 2>&5
6124  ac_status=$?
6125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6126  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6127	    pipe_works=yes
6128	  fi
6129	  LIBS=$lt_globsym_save_LIBS
6130	  CFLAGS=$lt_globsym_save_CFLAGS
6131	else
6132	  echo "cannot find nm_test_func in $nlist" >&5
6133	fi
6134      else
6135	echo "cannot find nm_test_var in $nlist" >&5
6136      fi
6137    else
6138      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6139    fi
6140  else
6141    echo "$progname: failed program was:" >&5
6142    cat conftest.$ac_ext >&5
6143  fi
6144  rm -rf conftest* conftst*
6145
6146  # Do not use the global_symbol_pipe unless it works.
6147  if test "$pipe_works" = yes; then
6148    break
6149  else
6150    lt_cv_sys_global_symbol_pipe=
6151  fi
6152done
6153
6154fi
6155
6156if test -z "$lt_cv_sys_global_symbol_pipe"; then
6157  lt_cv_sys_global_symbol_to_cdecl=
6158fi
6159if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6161$as_echo "failed" >&6; }
6162else
6163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6164$as_echo "ok" >&6; }
6165fi
6166
6167# Response file support.
6168if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6169  nm_file_list_spec='@'
6170elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6171  nm_file_list_spec='@'
6172fi
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6201$as_echo_n "checking for sysroot... " >&6; }
6202
6203# Check whether --with-sysroot was given.
6204if test "${with_sysroot+set}" = set; then :
6205  withval=$with_sysroot;
6206else
6207  with_sysroot=no
6208fi
6209
6210
6211lt_sysroot=
6212case ${with_sysroot} in #(
6213 yes)
6214   if test "$GCC" = yes; then
6215     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6216   fi
6217   ;; #(
6218 /*)
6219   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6220   ;; #(
6221 no|'')
6222   ;; #(
6223 *)
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6225$as_echo "${with_sysroot}" >&6; }
6226   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6227   ;;
6228esac
6229
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6231$as_echo "${lt_sysroot:-no}" >&6; }
6232
6233
6234
6235
6236
6237# Check whether --enable-libtool-lock was given.
6238if test "${enable_libtool_lock+set}" = set; then :
6239  enableval=$enable_libtool_lock;
6240fi
6241
6242test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6243
6244# Some flags need to be propagated to the compiler or linker for good
6245# libtool support.
6246case $host in
6247ia64-*-hpux*)
6248  # Find out which ABI we are using.
6249  echo 'int i;' > conftest.$ac_ext
6250  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6251  (eval $ac_compile) 2>&5
6252  ac_status=$?
6253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254  test $ac_status = 0; }; then
6255    case `/usr/bin/file conftest.$ac_objext` in
6256      *ELF-32*)
6257	HPUX_IA64_MODE="32"
6258	;;
6259      *ELF-64*)
6260	HPUX_IA64_MODE="64"
6261	;;
6262    esac
6263  fi
6264  rm -rf conftest*
6265  ;;
6266*-*-irix6*)
6267  # Find out which ABI we are using.
6268  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6269  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6270  (eval $ac_compile) 2>&5
6271  ac_status=$?
6272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6273  test $ac_status = 0; }; then
6274    if test "$lt_cv_prog_gnu_ld" = yes; then
6275      case `/usr/bin/file conftest.$ac_objext` in
6276	*32-bit*)
6277	  LD="${LD-ld} -melf32bsmip"
6278	  ;;
6279	*N32*)
6280	  LD="${LD-ld} -melf32bmipn32"
6281	  ;;
6282	*64-bit*)
6283	  LD="${LD-ld} -melf64bmip"
6284	;;
6285      esac
6286    else
6287      case `/usr/bin/file conftest.$ac_objext` in
6288	*32-bit*)
6289	  LD="${LD-ld} -32"
6290	  ;;
6291	*N32*)
6292	  LD="${LD-ld} -n32"
6293	  ;;
6294	*64-bit*)
6295	  LD="${LD-ld} -64"
6296	  ;;
6297      esac
6298    fi
6299  fi
6300  rm -rf conftest*
6301  ;;
6302
6303x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6304s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6305  # Find out which ABI we are using.
6306  echo 'int i;' > conftest.$ac_ext
6307  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6308  (eval $ac_compile) 2>&5
6309  ac_status=$?
6310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311  test $ac_status = 0; }; then
6312    case `/usr/bin/file conftest.o` in
6313      *32-bit*)
6314	case $host in
6315	  x86_64-*kfreebsd*-gnu)
6316	    LD="${LD-ld} -m elf_i386_fbsd"
6317	    ;;
6318	  x86_64-*linux*)
6319	    LD="${LD-ld} -m elf_i386"
6320	    ;;
6321	  ppc64-*linux*|powerpc64-*linux*)
6322	    LD="${LD-ld} -m elf32ppclinux"
6323	    ;;
6324	  s390x-*linux*)
6325	    LD="${LD-ld} -m elf_s390"
6326	    ;;
6327	  sparc64-*linux*)
6328	    LD="${LD-ld} -m elf32_sparc"
6329	    ;;
6330	esac
6331	;;
6332      *64-bit*)
6333	case $host in
6334	  x86_64-*kfreebsd*-gnu)
6335	    LD="${LD-ld} -m elf_x86_64_fbsd"
6336	    ;;
6337	  x86_64-*linux*)
6338	    LD="${LD-ld} -m elf_x86_64"
6339	    ;;
6340	  ppc*-*linux*|powerpc*-*linux*)
6341	    LD="${LD-ld} -m elf64ppc"
6342	    ;;
6343	  s390*-*linux*|s390*-*tpf*)
6344	    LD="${LD-ld} -m elf64_s390"
6345	    ;;
6346	  sparc*-*linux*)
6347	    LD="${LD-ld} -m elf64_sparc"
6348	    ;;
6349	esac
6350	;;
6351    esac
6352  fi
6353  rm -rf conftest*
6354  ;;
6355
6356*-*-sco3.2v5*)
6357  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6358  SAVE_CFLAGS="$CFLAGS"
6359  CFLAGS="$CFLAGS -belf"
6360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6361$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6362if ${lt_cv_cc_needs_belf+:} false; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365  ac_ext=c
6366ac_cpp='$CPP $CPPFLAGS'
6367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6369ac_compiler_gnu=$ac_cv_c_compiler_gnu
6370
6371     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372/* end confdefs.h.  */
6373
6374int
6375main ()
6376{
6377
6378  ;
6379  return 0;
6380}
6381_ACEOF
6382if ac_fn_c_try_link "$LINENO"; then :
6383  lt_cv_cc_needs_belf=yes
6384else
6385  lt_cv_cc_needs_belf=no
6386fi
6387rm -f core conftest.err conftest.$ac_objext \
6388    conftest$ac_exeext conftest.$ac_ext
6389     ac_ext=c
6390ac_cpp='$CPP $CPPFLAGS'
6391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394
6395fi
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6397$as_echo "$lt_cv_cc_needs_belf" >&6; }
6398  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6399    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6400    CFLAGS="$SAVE_CFLAGS"
6401  fi
6402  ;;
6403sparc*-*solaris*)
6404  # Find out which ABI we are using.
6405  echo 'int i;' > conftest.$ac_ext
6406  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6407  (eval $ac_compile) 2>&5
6408  ac_status=$?
6409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6410  test $ac_status = 0; }; then
6411    case `/usr/bin/file conftest.o` in
6412    *64-bit*)
6413      case $lt_cv_prog_gnu_ld in
6414      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6415      *)
6416	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6417	  LD="${LD-ld} -64"
6418	fi
6419	;;
6420      esac
6421      ;;
6422    esac
6423  fi
6424  rm -rf conftest*
6425  ;;
6426esac
6427
6428need_locks="$enable_libtool_lock"
6429
6430if test -n "$ac_tool_prefix"; then
6431  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6432set dummy ${ac_tool_prefix}mt; ac_word=$2
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434$as_echo_n "checking for $ac_word... " >&6; }
6435if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6436  $as_echo_n "(cached) " >&6
6437else
6438  if test -n "$MANIFEST_TOOL"; then
6439  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444  IFS=$as_save_IFS
6445  test -z "$as_dir" && as_dir=.
6446    for ac_exec_ext in '' $ac_executable_extensions; do
6447  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450    break 2
6451  fi
6452done
6453  done
6454IFS=$as_save_IFS
6455
6456fi
6457fi
6458MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6459if test -n "$MANIFEST_TOOL"; then
6460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6461$as_echo "$MANIFEST_TOOL" >&6; }
6462else
6463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
6465fi
6466
6467
6468fi
6469if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6470  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6471  # Extract the first word of "mt", so it can be a program name with args.
6472set dummy mt; ac_word=$2
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
6475if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  if test -n "$ac_ct_MANIFEST_TOOL"; then
6479  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484  IFS=$as_save_IFS
6485  test -z "$as_dir" && as_dir=.
6486    for ac_exec_ext in '' $ac_executable_extensions; do
6487  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490    break 2
6491  fi
6492done
6493  done
6494IFS=$as_save_IFS
6495
6496fi
6497fi
6498ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6499if test -n "$ac_ct_MANIFEST_TOOL"; then
6500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6501$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6502else
6503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504$as_echo "no" >&6; }
6505fi
6506
6507  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6508    MANIFEST_TOOL=":"
6509  else
6510    case $cross_compiling:$ac_tool_warned in
6511yes:)
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514ac_tool_warned=yes ;;
6515esac
6516    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6517  fi
6518else
6519  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6520fi
6521
6522test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6524$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6525if ${lt_cv_path_mainfest_tool+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  lt_cv_path_mainfest_tool=no
6529  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6530  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6531  cat conftest.err >&5
6532  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6533    lt_cv_path_mainfest_tool=yes
6534  fi
6535  rm -f conftest*
6536fi
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6538$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6539if test "x$lt_cv_path_mainfest_tool" != xyes; then
6540  MANIFEST_TOOL=:
6541fi
6542
6543
6544
6545
6546
6547
6548  case $host_os in
6549    rhapsody* | darwin*)
6550    if test -n "$ac_tool_prefix"; then
6551  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6552set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554$as_echo_n "checking for $ac_word... " >&6; }
6555if ${ac_cv_prog_DSYMUTIL+:} false; then :
6556  $as_echo_n "(cached) " >&6
6557else
6558  if test -n "$DSYMUTIL"; then
6559  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6560else
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564  IFS=$as_save_IFS
6565  test -z "$as_dir" && as_dir=.
6566    for ac_exec_ext in '' $ac_executable_extensions; do
6567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570    break 2
6571  fi
6572done
6573  done
6574IFS=$as_save_IFS
6575
6576fi
6577fi
6578DSYMUTIL=$ac_cv_prog_DSYMUTIL
6579if test -n "$DSYMUTIL"; then
6580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6581$as_echo "$DSYMUTIL" >&6; }
6582else
6583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584$as_echo "no" >&6; }
6585fi
6586
6587
6588fi
6589if test -z "$ac_cv_prog_DSYMUTIL"; then
6590  ac_ct_DSYMUTIL=$DSYMUTIL
6591  # Extract the first word of "dsymutil", so it can be a program name with args.
6592set dummy dsymutil; ac_word=$2
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594$as_echo_n "checking for $ac_word... " >&6; }
6595if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6596  $as_echo_n "(cached) " >&6
6597else
6598  if test -n "$ac_ct_DSYMUTIL"; then
6599  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6600else
6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604  IFS=$as_save_IFS
6605  test -z "$as_dir" && as_dir=.
6606    for ac_exec_ext in '' $ac_executable_extensions; do
6607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610    break 2
6611  fi
6612done
6613  done
6614IFS=$as_save_IFS
6615
6616fi
6617fi
6618ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6619if test -n "$ac_ct_DSYMUTIL"; then
6620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6621$as_echo "$ac_ct_DSYMUTIL" >&6; }
6622else
6623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624$as_echo "no" >&6; }
6625fi
6626
6627  if test "x$ac_ct_DSYMUTIL" = x; then
6628    DSYMUTIL=":"
6629  else
6630    case $cross_compiling:$ac_tool_warned in
6631yes:)
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634ac_tool_warned=yes ;;
6635esac
6636    DSYMUTIL=$ac_ct_DSYMUTIL
6637  fi
6638else
6639  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6640fi
6641
6642    if test -n "$ac_tool_prefix"; then
6643  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6644set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646$as_echo_n "checking for $ac_word... " >&6; }
6647if ${ac_cv_prog_NMEDIT+:} false; then :
6648  $as_echo_n "(cached) " >&6
6649else
6650  if test -n "$NMEDIT"; then
6651  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6652else
6653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654for as_dir in $PATH
6655do
6656  IFS=$as_save_IFS
6657  test -z "$as_dir" && as_dir=.
6658    for ac_exec_ext in '' $ac_executable_extensions; do
6659  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662    break 2
6663  fi
6664done
6665  done
6666IFS=$as_save_IFS
6667
6668fi
6669fi
6670NMEDIT=$ac_cv_prog_NMEDIT
6671if test -n "$NMEDIT"; then
6672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6673$as_echo "$NMEDIT" >&6; }
6674else
6675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676$as_echo "no" >&6; }
6677fi
6678
6679
6680fi
6681if test -z "$ac_cv_prog_NMEDIT"; then
6682  ac_ct_NMEDIT=$NMEDIT
6683  # Extract the first word of "nmedit", so it can be a program name with args.
6684set dummy nmedit; ac_word=$2
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686$as_echo_n "checking for $ac_word... " >&6; }
6687if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  if test -n "$ac_ct_NMEDIT"; then
6691  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6692else
6693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696  IFS=$as_save_IFS
6697  test -z "$as_dir" && as_dir=.
6698    for ac_exec_ext in '' $ac_executable_extensions; do
6699  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702    break 2
6703  fi
6704done
6705  done
6706IFS=$as_save_IFS
6707
6708fi
6709fi
6710ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6711if test -n "$ac_ct_NMEDIT"; then
6712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6713$as_echo "$ac_ct_NMEDIT" >&6; }
6714else
6715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716$as_echo "no" >&6; }
6717fi
6718
6719  if test "x$ac_ct_NMEDIT" = x; then
6720    NMEDIT=":"
6721  else
6722    case $cross_compiling:$ac_tool_warned in
6723yes:)
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6726ac_tool_warned=yes ;;
6727esac
6728    NMEDIT=$ac_ct_NMEDIT
6729  fi
6730else
6731  NMEDIT="$ac_cv_prog_NMEDIT"
6732fi
6733
6734    if test -n "$ac_tool_prefix"; then
6735  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6736set dummy ${ac_tool_prefix}lipo; ac_word=$2
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738$as_echo_n "checking for $ac_word... " >&6; }
6739if ${ac_cv_prog_LIPO+:} false; then :
6740  $as_echo_n "(cached) " >&6
6741else
6742  if test -n "$LIPO"; then
6743  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6744else
6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746for as_dir in $PATH
6747do
6748  IFS=$as_save_IFS
6749  test -z "$as_dir" && as_dir=.
6750    for ac_exec_ext in '' $ac_executable_extensions; do
6751  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754    break 2
6755  fi
6756done
6757  done
6758IFS=$as_save_IFS
6759
6760fi
6761fi
6762LIPO=$ac_cv_prog_LIPO
6763if test -n "$LIPO"; then
6764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6765$as_echo "$LIPO" >&6; }
6766else
6767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768$as_echo "no" >&6; }
6769fi
6770
6771
6772fi
6773if test -z "$ac_cv_prog_LIPO"; then
6774  ac_ct_LIPO=$LIPO
6775  # Extract the first word of "lipo", so it can be a program name with args.
6776set dummy lipo; ac_word=$2
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778$as_echo_n "checking for $ac_word... " >&6; }
6779if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6780  $as_echo_n "(cached) " >&6
6781else
6782  if test -n "$ac_ct_LIPO"; then
6783  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6784else
6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in $PATH
6787do
6788  IFS=$as_save_IFS
6789  test -z "$as_dir" && as_dir=.
6790    for ac_exec_ext in '' $ac_executable_extensions; do
6791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792    ac_cv_prog_ac_ct_LIPO="lipo"
6793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794    break 2
6795  fi
6796done
6797  done
6798IFS=$as_save_IFS
6799
6800fi
6801fi
6802ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6803if test -n "$ac_ct_LIPO"; then
6804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6805$as_echo "$ac_ct_LIPO" >&6; }
6806else
6807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808$as_echo "no" >&6; }
6809fi
6810
6811  if test "x$ac_ct_LIPO" = x; then
6812    LIPO=":"
6813  else
6814    case $cross_compiling:$ac_tool_warned in
6815yes:)
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818ac_tool_warned=yes ;;
6819esac
6820    LIPO=$ac_ct_LIPO
6821  fi
6822else
6823  LIPO="$ac_cv_prog_LIPO"
6824fi
6825
6826    if test -n "$ac_tool_prefix"; then
6827  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6828set dummy ${ac_tool_prefix}otool; ac_word=$2
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830$as_echo_n "checking for $ac_word... " >&6; }
6831if ${ac_cv_prog_OTOOL+:} false; then :
6832  $as_echo_n "(cached) " >&6
6833else
6834  if test -n "$OTOOL"; then
6835  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6836else
6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840  IFS=$as_save_IFS
6841  test -z "$as_dir" && as_dir=.
6842    for ac_exec_ext in '' $ac_executable_extensions; do
6843  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846    break 2
6847  fi
6848done
6849  done
6850IFS=$as_save_IFS
6851
6852fi
6853fi
6854OTOOL=$ac_cv_prog_OTOOL
6855if test -n "$OTOOL"; then
6856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6857$as_echo "$OTOOL" >&6; }
6858else
6859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860$as_echo "no" >&6; }
6861fi
6862
6863
6864fi
6865if test -z "$ac_cv_prog_OTOOL"; then
6866  ac_ct_OTOOL=$OTOOL
6867  # Extract the first word of "otool", so it can be a program name with args.
6868set dummy otool; ac_word=$2
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870$as_echo_n "checking for $ac_word... " >&6; }
6871if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6872  $as_echo_n "(cached) " >&6
6873else
6874  if test -n "$ac_ct_OTOOL"; then
6875  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6876else
6877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH
6879do
6880  IFS=$as_save_IFS
6881  test -z "$as_dir" && as_dir=.
6882    for ac_exec_ext in '' $ac_executable_extensions; do
6883  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884    ac_cv_prog_ac_ct_OTOOL="otool"
6885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886    break 2
6887  fi
6888done
6889  done
6890IFS=$as_save_IFS
6891
6892fi
6893fi
6894ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6895if test -n "$ac_ct_OTOOL"; then
6896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6897$as_echo "$ac_ct_OTOOL" >&6; }
6898else
6899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900$as_echo "no" >&6; }
6901fi
6902
6903  if test "x$ac_ct_OTOOL" = x; then
6904    OTOOL=":"
6905  else
6906    case $cross_compiling:$ac_tool_warned in
6907yes:)
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910ac_tool_warned=yes ;;
6911esac
6912    OTOOL=$ac_ct_OTOOL
6913  fi
6914else
6915  OTOOL="$ac_cv_prog_OTOOL"
6916fi
6917
6918    if test -n "$ac_tool_prefix"; then
6919  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6920set dummy ${ac_tool_prefix}otool64; ac_word=$2
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922$as_echo_n "checking for $ac_word... " >&6; }
6923if ${ac_cv_prog_OTOOL64+:} false; then :
6924  $as_echo_n "(cached) " >&6
6925else
6926  if test -n "$OTOOL64"; then
6927  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6928else
6929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930for as_dir in $PATH
6931do
6932  IFS=$as_save_IFS
6933  test -z "$as_dir" && as_dir=.
6934    for ac_exec_ext in '' $ac_executable_extensions; do
6935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938    break 2
6939  fi
6940done
6941  done
6942IFS=$as_save_IFS
6943
6944fi
6945fi
6946OTOOL64=$ac_cv_prog_OTOOL64
6947if test -n "$OTOOL64"; then
6948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6949$as_echo "$OTOOL64" >&6; }
6950else
6951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952$as_echo "no" >&6; }
6953fi
6954
6955
6956fi
6957if test -z "$ac_cv_prog_OTOOL64"; then
6958  ac_ct_OTOOL64=$OTOOL64
6959  # Extract the first word of "otool64", so it can be a program name with args.
6960set dummy otool64; ac_word=$2
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962$as_echo_n "checking for $ac_word... " >&6; }
6963if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6964  $as_echo_n "(cached) " >&6
6965else
6966  if test -n "$ac_ct_OTOOL64"; then
6967  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6968else
6969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970for as_dir in $PATH
6971do
6972  IFS=$as_save_IFS
6973  test -z "$as_dir" && as_dir=.
6974    for ac_exec_ext in '' $ac_executable_extensions; do
6975  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6976    ac_cv_prog_ac_ct_OTOOL64="otool64"
6977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978    break 2
6979  fi
6980done
6981  done
6982IFS=$as_save_IFS
6983
6984fi
6985fi
6986ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6987if test -n "$ac_ct_OTOOL64"; then
6988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6989$as_echo "$ac_ct_OTOOL64" >&6; }
6990else
6991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992$as_echo "no" >&6; }
6993fi
6994
6995  if test "x$ac_ct_OTOOL64" = x; then
6996    OTOOL64=":"
6997  else
6998    case $cross_compiling:$ac_tool_warned in
6999yes:)
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7002ac_tool_warned=yes ;;
7003esac
7004    OTOOL64=$ac_ct_OTOOL64
7005  fi
7006else
7007  OTOOL64="$ac_cv_prog_OTOOL64"
7008fi
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7037$as_echo_n "checking for -single_module linker flag... " >&6; }
7038if ${lt_cv_apple_cc_single_mod+:} false; then :
7039  $as_echo_n "(cached) " >&6
7040else
7041  lt_cv_apple_cc_single_mod=no
7042      if test -z "${LT_MULTI_MODULE}"; then
7043	# By default we will add the -single_module flag. You can override
7044	# by either setting the environment variable LT_MULTI_MODULE
7045	# non-empty at configure time, or by adding -multi_module to the
7046	# link flags.
7047	rm -rf libconftest.dylib*
7048	echo "int foo(void){return 1;}" > conftest.c
7049	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7050-dynamiclib -Wl,-single_module conftest.c" >&5
7051	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7052	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7053        _lt_result=$?
7054	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7055	  lt_cv_apple_cc_single_mod=yes
7056	else
7057	  cat conftest.err >&5
7058	fi
7059	rm -rf libconftest.dylib*
7060	rm -f conftest.*
7061      fi
7062fi
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7064$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7066$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7067if ${lt_cv_ld_exported_symbols_list+:} false; then :
7068  $as_echo_n "(cached) " >&6
7069else
7070  lt_cv_ld_exported_symbols_list=no
7071      save_LDFLAGS=$LDFLAGS
7072      echo "_main" > conftest.sym
7073      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7074      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075/* end confdefs.h.  */
7076
7077int
7078main ()
7079{
7080
7081  ;
7082  return 0;
7083}
7084_ACEOF
7085if ac_fn_c_try_link "$LINENO"; then :
7086  lt_cv_ld_exported_symbols_list=yes
7087else
7088  lt_cv_ld_exported_symbols_list=no
7089fi
7090rm -f core conftest.err conftest.$ac_objext \
7091    conftest$ac_exeext conftest.$ac_ext
7092	LDFLAGS="$save_LDFLAGS"
7093
7094fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7096$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7098$as_echo_n "checking for -force_load linker flag... " >&6; }
7099if ${lt_cv_ld_force_load+:} false; then :
7100  $as_echo_n "(cached) " >&6
7101else
7102  lt_cv_ld_force_load=no
7103      cat > conftest.c << _LT_EOF
7104int forced_loaded() { return 2;}
7105_LT_EOF
7106      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7107      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7108      echo "$AR cru libconftest.a conftest.o" >&5
7109      $AR cru libconftest.a conftest.o 2>&5
7110      echo "$RANLIB libconftest.a" >&5
7111      $RANLIB libconftest.a 2>&5
7112      cat > conftest.c << _LT_EOF
7113int main() { return 0;}
7114_LT_EOF
7115      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7116      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7117      _lt_result=$?
7118      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7119	lt_cv_ld_force_load=yes
7120      else
7121	cat conftest.err >&5
7122      fi
7123        rm -f conftest.err libconftest.a conftest conftest.c
7124        rm -rf conftest.dSYM
7125
7126fi
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7128$as_echo "$lt_cv_ld_force_load" >&6; }
7129    case $host_os in
7130    rhapsody* | darwin1.[012])
7131      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7132    darwin1.*)
7133      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7134    darwin*) # darwin 5.x on
7135      # if running on 10.5 or later, the deployment target defaults
7136      # to the OS version, if on x86, and 10.4, the deployment
7137      # target defaults to 10.4. Don't you love it?
7138      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7139	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7140	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7141	10.[012]*)
7142	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7143	10.*)
7144	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7145      esac
7146    ;;
7147  esac
7148    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7149      _lt_dar_single_mod='$single_module'
7150    fi
7151    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7152      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7153    else
7154      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7155    fi
7156    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7157      _lt_dsymutil='~$DSYMUTIL $lib || :'
7158    else
7159      _lt_dsymutil=
7160    fi
7161    ;;
7162  esac
7163
7164ac_ext=c
7165ac_cpp='$CPP $CPPFLAGS'
7166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168ac_compiler_gnu=$ac_cv_c_compiler_gnu
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7170$as_echo_n "checking how to run the C preprocessor... " >&6; }
7171# On Suns, sometimes $CPP names a directory.
7172if test -n "$CPP" && test -d "$CPP"; then
7173  CPP=
7174fi
7175if test -z "$CPP"; then
7176  if ${ac_cv_prog_CPP+:} false; then :
7177  $as_echo_n "(cached) " >&6
7178else
7179      # Double quotes because CPP needs to be expanded
7180    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7181    do
7182      ac_preproc_ok=false
7183for ac_c_preproc_warn_flag in '' yes
7184do
7185  # Use a header file that comes with gcc, so configuring glibc
7186  # with a fresh cross-compiler works.
7187  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188  # <limits.h> exists even on freestanding compilers.
7189  # On the NeXT, cc -E runs the code through the compiler's parser,
7190  # not just through cpp. "Syntax error" is here to catch this case.
7191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192/* end confdefs.h.  */
7193#ifdef __STDC__
7194# include <limits.h>
7195#else
7196# include <assert.h>
7197#endif
7198		     Syntax error
7199_ACEOF
7200if ac_fn_c_try_cpp "$LINENO"; then :
7201
7202else
7203  # Broken: fails on valid input.
7204continue
7205fi
7206rm -f conftest.err conftest.i conftest.$ac_ext
7207
7208  # OK, works on sane cases.  Now check whether nonexistent headers
7209  # can be detected and how.
7210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211/* end confdefs.h.  */
7212#include <ac_nonexistent.h>
7213_ACEOF
7214if ac_fn_c_try_cpp "$LINENO"; then :
7215  # Broken: success on invalid input.
7216continue
7217else
7218  # Passes both tests.
7219ac_preproc_ok=:
7220break
7221fi
7222rm -f conftest.err conftest.i conftest.$ac_ext
7223
7224done
7225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7226rm -f conftest.i conftest.err conftest.$ac_ext
7227if $ac_preproc_ok; then :
7228  break
7229fi
7230
7231    done
7232    ac_cv_prog_CPP=$CPP
7233
7234fi
7235  CPP=$ac_cv_prog_CPP
7236else
7237  ac_cv_prog_CPP=$CPP
7238fi
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7240$as_echo "$CPP" >&6; }
7241ac_preproc_ok=false
7242for ac_c_preproc_warn_flag in '' yes
7243do
7244  # Use a header file that comes with gcc, so configuring glibc
7245  # with a fresh cross-compiler works.
7246  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7247  # <limits.h> exists even on freestanding compilers.
7248  # On the NeXT, cc -E runs the code through the compiler's parser,
7249  # not just through cpp. "Syntax error" is here to catch this case.
7250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h.  */
7252#ifdef __STDC__
7253# include <limits.h>
7254#else
7255# include <assert.h>
7256#endif
7257		     Syntax error
7258_ACEOF
7259if ac_fn_c_try_cpp "$LINENO"; then :
7260
7261else
7262  # Broken: fails on valid input.
7263continue
7264fi
7265rm -f conftest.err conftest.i conftest.$ac_ext
7266
7267  # OK, works on sane cases.  Now check whether nonexistent headers
7268  # can be detected and how.
7269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270/* end confdefs.h.  */
7271#include <ac_nonexistent.h>
7272_ACEOF
7273if ac_fn_c_try_cpp "$LINENO"; then :
7274  # Broken: success on invalid input.
7275continue
7276else
7277  # Passes both tests.
7278ac_preproc_ok=:
7279break
7280fi
7281rm -f conftest.err conftest.i conftest.$ac_ext
7282
7283done
7284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7285rm -f conftest.i conftest.err conftest.$ac_ext
7286if $ac_preproc_ok; then :
7287
7288else
7289  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7291as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7292See \`config.log' for more details" "$LINENO" 5; }
7293fi
7294
7295ac_ext=c
7296ac_cpp='$CPP $CPPFLAGS'
7297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299ac_compiler_gnu=$ac_cv_c_compiler_gnu
7300
7301
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7303$as_echo_n "checking for ANSI C header files... " >&6; }
7304if ${ac_cv_header_stdc+:} false; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309#include <stdlib.h>
7310#include <stdarg.h>
7311#include <string.h>
7312#include <float.h>
7313
7314int
7315main ()
7316{
7317
7318  ;
7319  return 0;
7320}
7321_ACEOF
7322if ac_fn_c_try_compile "$LINENO"; then :
7323  ac_cv_header_stdc=yes
7324else
7325  ac_cv_header_stdc=no
7326fi
7327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328
7329if test $ac_cv_header_stdc = yes; then
7330  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332/* end confdefs.h.  */
7333#include <string.h>
7334
7335_ACEOF
7336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7337  $EGREP "memchr" >/dev/null 2>&1; then :
7338
7339else
7340  ac_cv_header_stdc=no
7341fi
7342rm -f conftest*
7343
7344fi
7345
7346if test $ac_cv_header_stdc = yes; then
7347  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349/* end confdefs.h.  */
7350#include <stdlib.h>
7351
7352_ACEOF
7353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7354  $EGREP "free" >/dev/null 2>&1; then :
7355
7356else
7357  ac_cv_header_stdc=no
7358fi
7359rm -f conftest*
7360
7361fi
7362
7363if test $ac_cv_header_stdc = yes; then
7364  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7365  if test "$cross_compiling" = yes; then :
7366  :
7367else
7368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369/* end confdefs.h.  */
7370#include <ctype.h>
7371#include <stdlib.h>
7372#if ((' ' & 0x0FF) == 0x020)
7373# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7374# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7375#else
7376# define ISLOWER(c) \
7377		   (('a' <= (c) && (c) <= 'i') \
7378		     || ('j' <= (c) && (c) <= 'r') \
7379		     || ('s' <= (c) && (c) <= 'z'))
7380# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7381#endif
7382
7383#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7384int
7385main ()
7386{
7387  int i;
7388  for (i = 0; i < 256; i++)
7389    if (XOR (islower (i), ISLOWER (i))
7390	|| toupper (i) != TOUPPER (i))
7391      return 2;
7392  return 0;
7393}
7394_ACEOF
7395if ac_fn_c_try_run "$LINENO"; then :
7396
7397else
7398  ac_cv_header_stdc=no
7399fi
7400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7401  conftest.$ac_objext conftest.beam conftest.$ac_ext
7402fi
7403
7404fi
7405fi
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7407$as_echo "$ac_cv_header_stdc" >&6; }
7408if test $ac_cv_header_stdc = yes; then
7409
7410$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7411
7412fi
7413
7414# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7415for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7416		  inttypes.h stdint.h unistd.h
7417do :
7418  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7419ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7420"
7421if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7422  cat >>confdefs.h <<_ACEOF
7423#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7424_ACEOF
7425
7426fi
7427
7428done
7429
7430
7431for ac_header in dlfcn.h
7432do :
7433  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7434"
7435if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7436  cat >>confdefs.h <<_ACEOF
7437#define HAVE_DLFCN_H 1
7438_ACEOF
7439
7440fi
7441
7442done
7443
7444
7445
7446
7447
7448# Set options
7449# Check whether --enable-static was given.
7450if test "${enable_static+set}" = set; then :
7451  enableval=$enable_static; p=${PACKAGE-default}
7452    case $enableval in
7453    yes) enable_static=yes ;;
7454    no) enable_static=no ;;
7455    *)
7456     enable_static=no
7457      # Look at the argument we got.  We use all the common list separators.
7458      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7459      for pkg in $enableval; do
7460	IFS="$lt_save_ifs"
7461	if test "X$pkg" = "X$p"; then
7462	  enable_static=yes
7463	fi
7464      done
7465      IFS="$lt_save_ifs"
7466      ;;
7467    esac
7468else
7469  enable_static=no
7470fi
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481        enable_dlopen=no
7482
7483
7484  enable_win32_dll=no
7485
7486
7487            # Check whether --enable-shared was given.
7488if test "${enable_shared+set}" = set; then :
7489  enableval=$enable_shared; p=${PACKAGE-default}
7490    case $enableval in
7491    yes) enable_shared=yes ;;
7492    no) enable_shared=no ;;
7493    *)
7494      enable_shared=no
7495      # Look at the argument we got.  We use all the common list separators.
7496      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7497      for pkg in $enableval; do
7498	IFS="$lt_save_ifs"
7499	if test "X$pkg" = "X$p"; then
7500	  enable_shared=yes
7501	fi
7502      done
7503      IFS="$lt_save_ifs"
7504      ;;
7505    esac
7506else
7507  enable_shared=yes
7508fi
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520# Check whether --with-pic was given.
7521if test "${with_pic+set}" = set; then :
7522  withval=$with_pic; pic_mode="$withval"
7523else
7524  pic_mode=default
7525fi
7526
7527
7528test -z "$pic_mode" && pic_mode=default
7529
7530
7531
7532
7533
7534
7535
7536  # Check whether --enable-fast-install was given.
7537if test "${enable_fast_install+set}" = set; then :
7538  enableval=$enable_fast_install; p=${PACKAGE-default}
7539    case $enableval in
7540    yes) enable_fast_install=yes ;;
7541    no) enable_fast_install=no ;;
7542    *)
7543      enable_fast_install=no
7544      # Look at the argument we got.  We use all the common list separators.
7545      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7546      for pkg in $enableval; do
7547	IFS="$lt_save_ifs"
7548	if test "X$pkg" = "X$p"; then
7549	  enable_fast_install=yes
7550	fi
7551      done
7552      IFS="$lt_save_ifs"
7553      ;;
7554    esac
7555else
7556  enable_fast_install=yes
7557fi
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569# This can be used to rebuild libtool when needed
7570LIBTOOL_DEPS="$ltmain"
7571
7572# Always use our own libtool.
7573LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600test -z "$LN_S" && LN_S="ln -s"
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615if test -n "${ZSH_VERSION+set}" ; then
7616   setopt NO_GLOB_SUBST
7617fi
7618
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7620$as_echo_n "checking for objdir... " >&6; }
7621if ${lt_cv_objdir+:} false; then :
7622  $as_echo_n "(cached) " >&6
7623else
7624  rm -f .libs 2>/dev/null
7625mkdir .libs 2>/dev/null
7626if test -d .libs; then
7627  lt_cv_objdir=.libs
7628else
7629  # MS-DOS does not allow filenames that begin with a dot.
7630  lt_cv_objdir=_libs
7631fi
7632rmdir .libs 2>/dev/null
7633fi
7634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7635$as_echo "$lt_cv_objdir" >&6; }
7636objdir=$lt_cv_objdir
7637
7638
7639
7640
7641
7642cat >>confdefs.h <<_ACEOF
7643#define LT_OBJDIR "$lt_cv_objdir/"
7644_ACEOF
7645
7646
7647
7648
7649case $host_os in
7650aix3*)
7651  # AIX sometimes has problems with the GCC collect2 program.  For some
7652  # reason, if we set the COLLECT_NAMES environment variable, the problems
7653  # vanish in a puff of smoke.
7654  if test "X${COLLECT_NAMES+set}" != Xset; then
7655    COLLECT_NAMES=
7656    export COLLECT_NAMES
7657  fi
7658  ;;
7659esac
7660
7661# Global variables:
7662ofile=libtool
7663can_build_shared=yes
7664
7665# All known linkers require a `.a' archive for static linking (except MSVC,
7666# which needs '.lib').
7667libext=a
7668
7669with_gnu_ld="$lt_cv_prog_gnu_ld"
7670
7671old_CC="$CC"
7672old_CFLAGS="$CFLAGS"
7673
7674# Set sane defaults for various variables
7675test -z "$CC" && CC=cc
7676test -z "$LTCC" && LTCC=$CC
7677test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7678test -z "$LD" && LD=ld
7679test -z "$ac_objext" && ac_objext=o
7680
7681for cc_temp in $compiler""; do
7682  case $cc_temp in
7683    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7684    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7685    \-*) ;;
7686    *) break;;
7687  esac
7688done
7689cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7690
7691
7692# Only perform the check for file, if the check method requires it
7693test -z "$MAGIC_CMD" && MAGIC_CMD=file
7694case $deplibs_check_method in
7695file_magic*)
7696  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7697    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7698$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7699if ${lt_cv_path_MAGIC_CMD+:} false; then :
7700  $as_echo_n "(cached) " >&6
7701else
7702  case $MAGIC_CMD in
7703[\\/*] |  ?:[\\/]*)
7704  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7705  ;;
7706*)
7707  lt_save_MAGIC_CMD="$MAGIC_CMD"
7708  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7709  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7710  for ac_dir in $ac_dummy; do
7711    IFS="$lt_save_ifs"
7712    test -z "$ac_dir" && ac_dir=.
7713    if test -f $ac_dir/${ac_tool_prefix}file; then
7714      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7715      if test -n "$file_magic_test_file"; then
7716	case $deplibs_check_method in
7717	"file_magic "*)
7718	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7719	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7721	    $EGREP "$file_magic_regex" > /dev/null; then
7722	    :
7723	  else
7724	    cat <<_LT_EOF 1>&2
7725
7726*** Warning: the command libtool uses to detect shared libraries,
7727*** $file_magic_cmd, produces output that libtool cannot recognize.
7728*** The result is that libtool may fail to recognize shared libraries
7729*** as such.  This will affect the creation of libtool libraries that
7730*** depend on shared libraries, but programs linked with such libtool
7731*** libraries will work regardless of this problem.  Nevertheless, you
7732*** may want to report the problem to your system manager and/or to
7733*** bug-libtool@gnu.org
7734
7735_LT_EOF
7736	  fi ;;
7737	esac
7738      fi
7739      break
7740    fi
7741  done
7742  IFS="$lt_save_ifs"
7743  MAGIC_CMD="$lt_save_MAGIC_CMD"
7744  ;;
7745esac
7746fi
7747
7748MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7749if test -n "$MAGIC_CMD"; then
7750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7751$as_echo "$MAGIC_CMD" >&6; }
7752else
7753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754$as_echo "no" >&6; }
7755fi
7756
7757
7758
7759
7760
7761if test -z "$lt_cv_path_MAGIC_CMD"; then
7762  if test -n "$ac_tool_prefix"; then
7763    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7764$as_echo_n "checking for file... " >&6; }
7765if ${lt_cv_path_MAGIC_CMD+:} false; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  case $MAGIC_CMD in
7769[\\/*] |  ?:[\\/]*)
7770  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7771  ;;
7772*)
7773  lt_save_MAGIC_CMD="$MAGIC_CMD"
7774  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7775  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7776  for ac_dir in $ac_dummy; do
7777    IFS="$lt_save_ifs"
7778    test -z "$ac_dir" && ac_dir=.
7779    if test -f $ac_dir/file; then
7780      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7781      if test -n "$file_magic_test_file"; then
7782	case $deplibs_check_method in
7783	"file_magic "*)
7784	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7785	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7786	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7787	    $EGREP "$file_magic_regex" > /dev/null; then
7788	    :
7789	  else
7790	    cat <<_LT_EOF 1>&2
7791
7792*** Warning: the command libtool uses to detect shared libraries,
7793*** $file_magic_cmd, produces output that libtool cannot recognize.
7794*** The result is that libtool may fail to recognize shared libraries
7795*** as such.  This will affect the creation of libtool libraries that
7796*** depend on shared libraries, but programs linked with such libtool
7797*** libraries will work regardless of this problem.  Nevertheless, you
7798*** may want to report the problem to your system manager and/or to
7799*** bug-libtool@gnu.org
7800
7801_LT_EOF
7802	  fi ;;
7803	esac
7804      fi
7805      break
7806    fi
7807  done
7808  IFS="$lt_save_ifs"
7809  MAGIC_CMD="$lt_save_MAGIC_CMD"
7810  ;;
7811esac
7812fi
7813
7814MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7815if test -n "$MAGIC_CMD"; then
7816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7817$as_echo "$MAGIC_CMD" >&6; }
7818else
7819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820$as_echo "no" >&6; }
7821fi
7822
7823
7824  else
7825    MAGIC_CMD=:
7826  fi
7827fi
7828
7829  fi
7830  ;;
7831esac
7832
7833# Use C for the default configuration in the libtool script
7834
7835lt_save_CC="$CC"
7836ac_ext=c
7837ac_cpp='$CPP $CPPFLAGS'
7838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842
7843# Source file extension for C test sources.
7844ac_ext=c
7845
7846# Object file extension for compiled C test sources.
7847objext=o
7848objext=$objext
7849
7850# Code to be used in simple compile tests
7851lt_simple_compile_test_code="int some_variable = 0;"
7852
7853# Code to be used in simple link tests
7854lt_simple_link_test_code='int main(){return(0);}'
7855
7856
7857
7858
7859
7860
7861
7862# If no C compiler was specified, use CC.
7863LTCC=${LTCC-"$CC"}
7864
7865# If no C compiler flags were specified, use CFLAGS.
7866LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7867
7868# Allow CC to be a program name with arguments.
7869compiler=$CC
7870
7871# Save the default compiler, since it gets overwritten when the other
7872# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7873compiler_DEFAULT=$CC
7874
7875# save warnings/boilerplate of simple test code
7876ac_outfile=conftest.$ac_objext
7877echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7878eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7879_lt_compiler_boilerplate=`cat conftest.err`
7880$RM conftest*
7881
7882ac_outfile=conftest.$ac_objext
7883echo "$lt_simple_link_test_code" >conftest.$ac_ext
7884eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7885_lt_linker_boilerplate=`cat conftest.err`
7886$RM -r conftest*
7887
7888
7889## CAVEAT EMPTOR:
7890## There is no encapsulation within the following macros, do not change
7891## the running order or otherwise move them around unless you know exactly
7892## what you are doing...
7893if test -n "$compiler"; then
7894
7895lt_prog_compiler_no_builtin_flag=
7896
7897if test "$GCC" = yes; then
7898  case $cc_basename in
7899  nvcc*)
7900    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7901  *)
7902    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7903  esac
7904
7905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7906$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7907if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7908  $as_echo_n "(cached) " >&6
7909else
7910  lt_cv_prog_compiler_rtti_exceptions=no
7911   ac_outfile=conftest.$ac_objext
7912   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7913   lt_compiler_flag="-fno-rtti -fno-exceptions"
7914   # Insert the option either (1) after the last *FLAGS variable, or
7915   # (2) before a word containing "conftest.", or (3) at the end.
7916   # Note that $ac_compile itself does not contain backslashes and begins
7917   # with a dollar sign (not a hyphen), so the echo should work correctly.
7918   # The option is referenced via a variable to avoid confusing sed.
7919   lt_compile=`echo "$ac_compile" | $SED \
7920   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7921   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7922   -e 's:$: $lt_compiler_flag:'`
7923   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7924   (eval "$lt_compile" 2>conftest.err)
7925   ac_status=$?
7926   cat conftest.err >&5
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   if (exit $ac_status) && test -s "$ac_outfile"; then
7929     # The compiler can only warn and ignore the option if not recognized
7930     # So say no if there are warnings other than the usual output.
7931     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7932     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7933     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7934       lt_cv_prog_compiler_rtti_exceptions=yes
7935     fi
7936   fi
7937   $RM conftest*
7938
7939fi
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7941$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7942
7943if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7944    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7945else
7946    :
7947fi
7948
7949fi
7950
7951
7952
7953
7954
7955
7956  lt_prog_compiler_wl=
7957lt_prog_compiler_pic=
7958lt_prog_compiler_static=
7959
7960
7961  if test "$GCC" = yes; then
7962    lt_prog_compiler_wl='-Wl,'
7963    lt_prog_compiler_static='-static'
7964
7965    case $host_os in
7966      aix*)
7967      # All AIX code is PIC.
7968      if test "$host_cpu" = ia64; then
7969	# AIX 5 now supports IA64 processor
7970	lt_prog_compiler_static='-Bstatic'
7971      fi
7972      ;;
7973
7974    amigaos*)
7975      case $host_cpu in
7976      powerpc)
7977            # see comment about AmigaOS4 .so support
7978            lt_prog_compiler_pic='-fPIC'
7979        ;;
7980      m68k)
7981            # FIXME: we need at least 68020 code to build shared libraries, but
7982            # adding the `-m68020' flag to GCC prevents building anything better,
7983            # like `-m68040'.
7984            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7985        ;;
7986      esac
7987      ;;
7988
7989    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7990      # PIC is the default for these OSes.
7991      ;;
7992
7993    mingw* | cygwin* | pw32* | os2* | cegcc*)
7994      # This hack is so that the source file can tell whether it is being
7995      # built for inclusion in a dll (and should export symbols for example).
7996      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7997      # (--disable-auto-import) libraries
7998      lt_prog_compiler_pic='-DDLL_EXPORT'
7999      ;;
8000
8001    darwin* | rhapsody*)
8002      # PIC is the default on this platform
8003      # Common symbols not allowed in MH_DYLIB files
8004      lt_prog_compiler_pic='-fno-common'
8005      ;;
8006
8007    haiku*)
8008      # PIC is the default for Haiku.
8009      # The "-static" flag exists, but is broken.
8010      lt_prog_compiler_static=
8011      ;;
8012
8013    hpux*)
8014      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8015      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8016      # sets the default TLS model and affects inlining.
8017      case $host_cpu in
8018      hppa*64*)
8019	# +Z the default
8020	;;
8021      *)
8022	lt_prog_compiler_pic='-fPIC'
8023	;;
8024      esac
8025      ;;
8026
8027    interix[3-9]*)
8028      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8029      # Instead, we relocate shared libraries at runtime.
8030      ;;
8031
8032    msdosdjgpp*)
8033      # Just because we use GCC doesn't mean we suddenly get shared libraries
8034      # on systems that don't support them.
8035      lt_prog_compiler_can_build_shared=no
8036      enable_shared=no
8037      ;;
8038
8039    *nto* | *qnx*)
8040      # QNX uses GNU C++, but need to define -shared option too, otherwise
8041      # it will coredump.
8042      lt_prog_compiler_pic='-fPIC -shared'
8043      ;;
8044
8045    sysv4*MP*)
8046      if test -d /usr/nec; then
8047	lt_prog_compiler_pic=-Kconform_pic
8048      fi
8049      ;;
8050
8051    *)
8052      lt_prog_compiler_pic='-fPIC'
8053      ;;
8054    esac
8055
8056    case $cc_basename in
8057    nvcc*) # Cuda Compiler Driver 2.2
8058      lt_prog_compiler_wl='-Xlinker '
8059      lt_prog_compiler_pic='-Xcompiler -fPIC'
8060      ;;
8061    esac
8062  else
8063    # PORTME Check for flag to pass linker flags through the system compiler.
8064    case $host_os in
8065    aix*)
8066      lt_prog_compiler_wl='-Wl,'
8067      if test "$host_cpu" = ia64; then
8068	# AIX 5 now supports IA64 processor
8069	lt_prog_compiler_static='-Bstatic'
8070      else
8071	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8072      fi
8073      ;;
8074
8075    mingw* | cygwin* | pw32* | os2* | cegcc*)
8076      # This hack is so that the source file can tell whether it is being
8077      # built for inclusion in a dll (and should export symbols for example).
8078      lt_prog_compiler_pic='-DDLL_EXPORT'
8079      ;;
8080
8081    hpux9* | hpux10* | hpux11*)
8082      lt_prog_compiler_wl='-Wl,'
8083      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8084      # not for PA HP-UX.
8085      case $host_cpu in
8086      hppa*64*|ia64*)
8087	# +Z the default
8088	;;
8089      *)
8090	lt_prog_compiler_pic='+Z'
8091	;;
8092      esac
8093      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8094      lt_prog_compiler_static='${wl}-a ${wl}archive'
8095      ;;
8096
8097    irix5* | irix6* | nonstopux*)
8098      lt_prog_compiler_wl='-Wl,'
8099      # PIC (with -KPIC) is the default.
8100      lt_prog_compiler_static='-non_shared'
8101      ;;
8102
8103    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8104      case $cc_basename in
8105      # old Intel for x86_64 which still supported -KPIC.
8106      ecc*)
8107	lt_prog_compiler_wl='-Wl,'
8108	lt_prog_compiler_pic='-KPIC'
8109	lt_prog_compiler_static='-static'
8110        ;;
8111      # icc used to be incompatible with GCC.
8112      # ICC 10 doesn't accept -KPIC any more.
8113      icc* | ifort*)
8114	lt_prog_compiler_wl='-Wl,'
8115	lt_prog_compiler_pic='-fPIC'
8116	lt_prog_compiler_static='-static'
8117        ;;
8118      # Lahey Fortran 8.1.
8119      lf95*)
8120	lt_prog_compiler_wl='-Wl,'
8121	lt_prog_compiler_pic='--shared'
8122	lt_prog_compiler_static='--static'
8123	;;
8124      nagfor*)
8125	# NAG Fortran compiler
8126	lt_prog_compiler_wl='-Wl,-Wl,,'
8127	lt_prog_compiler_pic='-PIC'
8128	lt_prog_compiler_static='-Bstatic'
8129	;;
8130      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8131        # Portland Group compilers (*not* the Pentium gcc compiler,
8132	# which looks to be a dead project)
8133	lt_prog_compiler_wl='-Wl,'
8134	lt_prog_compiler_pic='-fpic'
8135	lt_prog_compiler_static='-Bstatic'
8136        ;;
8137      ccc*)
8138        lt_prog_compiler_wl='-Wl,'
8139        # All Alpha code is PIC.
8140        lt_prog_compiler_static='-non_shared'
8141        ;;
8142      xl* | bgxl* | bgf* | mpixl*)
8143	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8144	lt_prog_compiler_wl='-Wl,'
8145	lt_prog_compiler_pic='-qpic'
8146	lt_prog_compiler_static='-qstaticlink'
8147	;;
8148      *)
8149	case `$CC -V 2>&1 | sed 5q` in
8150	*Sun\ F* | *Sun*Fortran*)
8151	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8152	  lt_prog_compiler_pic='-KPIC'
8153	  lt_prog_compiler_static='-Bstatic'
8154	  lt_prog_compiler_wl=''
8155	  ;;
8156	*Sun\ C*)
8157	  # Sun C 5.9
8158	  lt_prog_compiler_pic='-KPIC'
8159	  lt_prog_compiler_static='-Bstatic'
8160	  lt_prog_compiler_wl='-Wl,'
8161	  ;;
8162	esac
8163	;;
8164      esac
8165      ;;
8166
8167    newsos6)
8168      lt_prog_compiler_pic='-KPIC'
8169      lt_prog_compiler_static='-Bstatic'
8170      ;;
8171
8172    *nto* | *qnx*)
8173      # QNX uses GNU C++, but need to define -shared option too, otherwise
8174      # it will coredump.
8175      lt_prog_compiler_pic='-fPIC -shared'
8176      ;;
8177
8178    osf3* | osf4* | osf5*)
8179      lt_prog_compiler_wl='-Wl,'
8180      # All OSF/1 code is PIC.
8181      lt_prog_compiler_static='-non_shared'
8182      ;;
8183
8184    rdos*)
8185      lt_prog_compiler_static='-non_shared'
8186      ;;
8187
8188    solaris*)
8189      lt_prog_compiler_pic='-KPIC'
8190      lt_prog_compiler_static='-Bstatic'
8191      case $cc_basename in
8192      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8193	lt_prog_compiler_wl='-Qoption ld ';;
8194      *)
8195	lt_prog_compiler_wl='-Wl,';;
8196      esac
8197      ;;
8198
8199    sunos4*)
8200      lt_prog_compiler_wl='-Qoption ld '
8201      lt_prog_compiler_pic='-PIC'
8202      lt_prog_compiler_static='-Bstatic'
8203      ;;
8204
8205    sysv4 | sysv4.2uw2* | sysv4.3*)
8206      lt_prog_compiler_wl='-Wl,'
8207      lt_prog_compiler_pic='-KPIC'
8208      lt_prog_compiler_static='-Bstatic'
8209      ;;
8210
8211    sysv4*MP*)
8212      if test -d /usr/nec ;then
8213	lt_prog_compiler_pic='-Kconform_pic'
8214	lt_prog_compiler_static='-Bstatic'
8215      fi
8216      ;;
8217
8218    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8219      lt_prog_compiler_wl='-Wl,'
8220      lt_prog_compiler_pic='-KPIC'
8221      lt_prog_compiler_static='-Bstatic'
8222      ;;
8223
8224    unicos*)
8225      lt_prog_compiler_wl='-Wl,'
8226      lt_prog_compiler_can_build_shared=no
8227      ;;
8228
8229    uts4*)
8230      lt_prog_compiler_pic='-pic'
8231      lt_prog_compiler_static='-Bstatic'
8232      ;;
8233
8234    *)
8235      lt_prog_compiler_can_build_shared=no
8236      ;;
8237    esac
8238  fi
8239
8240case $host_os in
8241  # For platforms which do not support PIC, -DPIC is meaningless:
8242  *djgpp*)
8243    lt_prog_compiler_pic=
8244    ;;
8245  *)
8246    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8247    ;;
8248esac
8249
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8251$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8252if ${lt_cv_prog_compiler_pic+:} false; then :
8253  $as_echo_n "(cached) " >&6
8254else
8255  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8256fi
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8258$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8259lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8260
8261#
8262# Check to make sure the PIC flag actually works.
8263#
8264if test -n "$lt_prog_compiler_pic"; then
8265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8266$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8267if ${lt_cv_prog_compiler_pic_works+:} false; then :
8268  $as_echo_n "(cached) " >&6
8269else
8270  lt_cv_prog_compiler_pic_works=no
8271   ac_outfile=conftest.$ac_objext
8272   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8273   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8274   # Insert the option either (1) after the last *FLAGS variable, or
8275   # (2) before a word containing "conftest.", or (3) at the end.
8276   # Note that $ac_compile itself does not contain backslashes and begins
8277   # with a dollar sign (not a hyphen), so the echo should work correctly.
8278   # The option is referenced via a variable to avoid confusing sed.
8279   lt_compile=`echo "$ac_compile" | $SED \
8280   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8281   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8282   -e 's:$: $lt_compiler_flag:'`
8283   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8284   (eval "$lt_compile" 2>conftest.err)
8285   ac_status=$?
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   if (exit $ac_status) && test -s "$ac_outfile"; then
8289     # The compiler can only warn and ignore the option if not recognized
8290     # So say no if there are warnings other than the usual output.
8291     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8292     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8293     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8294       lt_cv_prog_compiler_pic_works=yes
8295     fi
8296   fi
8297   $RM conftest*
8298
8299fi
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8301$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8302
8303if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8304    case $lt_prog_compiler_pic in
8305     "" | " "*) ;;
8306     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8307     esac
8308else
8309    lt_prog_compiler_pic=
8310     lt_prog_compiler_can_build_shared=no
8311fi
8312
8313fi
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325#
8326# Check to make sure the static flag actually works.
8327#
8328wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8330$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8331if ${lt_cv_prog_compiler_static_works+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  lt_cv_prog_compiler_static_works=no
8335   save_LDFLAGS="$LDFLAGS"
8336   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8337   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8338   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8339     # The linker can only warn and ignore the option if not recognized
8340     # So say no if there are warnings
8341     if test -s conftest.err; then
8342       # Append any errors to the config.log.
8343       cat conftest.err 1>&5
8344       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8345       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8346       if diff conftest.exp conftest.er2 >/dev/null; then
8347         lt_cv_prog_compiler_static_works=yes
8348       fi
8349     else
8350       lt_cv_prog_compiler_static_works=yes
8351     fi
8352   fi
8353   $RM -r conftest*
8354   LDFLAGS="$save_LDFLAGS"
8355
8356fi
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8358$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8359
8360if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8361    :
8362else
8363    lt_prog_compiler_static=
8364fi
8365
8366
8367
8368
8369
8370
8371
8372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8373$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8374if ${lt_cv_prog_compiler_c_o+:} false; then :
8375  $as_echo_n "(cached) " >&6
8376else
8377  lt_cv_prog_compiler_c_o=no
8378   $RM -r conftest 2>/dev/null
8379   mkdir conftest
8380   cd conftest
8381   mkdir out
8382   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8383
8384   lt_compiler_flag="-o out/conftest2.$ac_objext"
8385   # Insert the option either (1) after the last *FLAGS variable, or
8386   # (2) before a word containing "conftest.", or (3) at the end.
8387   # Note that $ac_compile itself does not contain backslashes and begins
8388   # with a dollar sign (not a hyphen), so the echo should work correctly.
8389   lt_compile=`echo "$ac_compile" | $SED \
8390   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8391   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8392   -e 's:$: $lt_compiler_flag:'`
8393   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8394   (eval "$lt_compile" 2>out/conftest.err)
8395   ac_status=$?
8396   cat out/conftest.err >&5
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8399   then
8400     # The compiler can only warn and ignore the option if not recognized
8401     # So say no if there are warnings
8402     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8403     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8404     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8405       lt_cv_prog_compiler_c_o=yes
8406     fi
8407   fi
8408   chmod u+w . 2>&5
8409   $RM conftest*
8410   # SGI C++ compiler will create directory out/ii_files/ for
8411   # template instantiation
8412   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8413   $RM out/* && rmdir out
8414   cd ..
8415   $RM -r conftest
8416   $RM conftest*
8417
8418fi
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8420$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8421
8422
8423
8424
8425
8426
8427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8428$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8429if ${lt_cv_prog_compiler_c_o+:} false; then :
8430  $as_echo_n "(cached) " >&6
8431else
8432  lt_cv_prog_compiler_c_o=no
8433   $RM -r conftest 2>/dev/null
8434   mkdir conftest
8435   cd conftest
8436   mkdir out
8437   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8438
8439   lt_compiler_flag="-o out/conftest2.$ac_objext"
8440   # Insert the option either (1) after the last *FLAGS variable, or
8441   # (2) before a word containing "conftest.", or (3) at the end.
8442   # Note that $ac_compile itself does not contain backslashes and begins
8443   # with a dollar sign (not a hyphen), so the echo should work correctly.
8444   lt_compile=`echo "$ac_compile" | $SED \
8445   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8446   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8447   -e 's:$: $lt_compiler_flag:'`
8448   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8449   (eval "$lt_compile" 2>out/conftest.err)
8450   ac_status=$?
8451   cat out/conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8454   then
8455     # The compiler can only warn and ignore the option if not recognized
8456     # So say no if there are warnings
8457     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8458     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8459     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8460       lt_cv_prog_compiler_c_o=yes
8461     fi
8462   fi
8463   chmod u+w . 2>&5
8464   $RM conftest*
8465   # SGI C++ compiler will create directory out/ii_files/ for
8466   # template instantiation
8467   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8468   $RM out/* && rmdir out
8469   cd ..
8470   $RM -r conftest
8471   $RM conftest*
8472
8473fi
8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8475$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8476
8477
8478
8479
8480hard_links="nottested"
8481if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8482  # do not overwrite the value of need_locks provided by the user
8483  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8484$as_echo_n "checking if we can lock with hard links... " >&6; }
8485  hard_links=yes
8486  $RM conftest*
8487  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8488  touch conftest.a
8489  ln conftest.a conftest.b 2>&5 || hard_links=no
8490  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8492$as_echo "$hard_links" >&6; }
8493  if test "$hard_links" = no; then
8494    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8495$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8496    need_locks=warn
8497  fi
8498else
8499  need_locks=no
8500fi
8501
8502
8503
8504
8505
8506
8507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8508$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8509
8510  runpath_var=
8511  allow_undefined_flag=
8512  always_export_symbols=no
8513  archive_cmds=
8514  archive_expsym_cmds=
8515  compiler_needs_object=no
8516  enable_shared_with_static_runtimes=no
8517  export_dynamic_flag_spec=
8518  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8519  hardcode_automatic=no
8520  hardcode_direct=no
8521  hardcode_direct_absolute=no
8522  hardcode_libdir_flag_spec=
8523  hardcode_libdir_flag_spec_ld=
8524  hardcode_libdir_separator=
8525  hardcode_minus_L=no
8526  hardcode_shlibpath_var=unsupported
8527  inherit_rpath=no
8528  link_all_deplibs=unknown
8529  module_cmds=
8530  module_expsym_cmds=
8531  old_archive_from_new_cmds=
8532  old_archive_from_expsyms_cmds=
8533  thread_safe_flag_spec=
8534  whole_archive_flag_spec=
8535  # include_expsyms should be a list of space-separated symbols to be *always*
8536  # included in the symbol list
8537  include_expsyms=
8538  # exclude_expsyms can be an extended regexp of symbols to exclude
8539  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8540  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8541  # as well as any symbol that contains `d'.
8542  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8543  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8544  # platforms (ab)use it in PIC code, but their linkers get confused if
8545  # the symbol is explicitly referenced.  Since portable code cannot
8546  # rely on this symbol name, it's probably fine to never include it in
8547  # preloaded symbol tables.
8548  # Exclude shared library initialization/finalization symbols.
8549  extract_expsyms_cmds=
8550
8551  case $host_os in
8552  cygwin* | mingw* | pw32* | cegcc*)
8553    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8554    # When not using gcc, we currently assume that we are using
8555    # Microsoft Visual C++.
8556    if test "$GCC" != yes; then
8557      with_gnu_ld=no
8558    fi
8559    ;;
8560  interix*)
8561    # we just hope/assume this is gcc and not c89 (= MSVC++)
8562    with_gnu_ld=yes
8563    ;;
8564  openbsd*)
8565    with_gnu_ld=no
8566    ;;
8567  esac
8568
8569  ld_shlibs=yes
8570
8571  # On some targets, GNU ld is compatible enough with the native linker
8572  # that we're better off using the native interface for both.
8573  lt_use_gnu_ld_interface=no
8574  if test "$with_gnu_ld" = yes; then
8575    case $host_os in
8576      aix*)
8577	# The AIX port of GNU ld has always aspired to compatibility
8578	# with the native linker.  However, as the warning in the GNU ld
8579	# block says, versions before 2.19.5* couldn't really create working
8580	# shared libraries, regardless of the interface used.
8581	case `$LD -v 2>&1` in
8582	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8583	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8584	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8585	  *)
8586	    lt_use_gnu_ld_interface=yes
8587	    ;;
8588	esac
8589	;;
8590      *)
8591	lt_use_gnu_ld_interface=yes
8592	;;
8593    esac
8594  fi
8595
8596  if test "$lt_use_gnu_ld_interface" = yes; then
8597    # If archive_cmds runs LD, not CC, wlarc should be empty
8598    wlarc='${wl}'
8599
8600    # Set some defaults for GNU ld with shared library support. These
8601    # are reset later if shared libraries are not supported. Putting them
8602    # here allows them to be overridden if necessary.
8603    runpath_var=LD_RUN_PATH
8604    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8605    export_dynamic_flag_spec='${wl}--export-dynamic'
8606    # ancient GNU ld didn't support --whole-archive et. al.
8607    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8608      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8609    else
8610      whole_archive_flag_spec=
8611    fi
8612    supports_anon_versioning=no
8613    case `$LD -v 2>&1` in
8614      *GNU\ gold*) supports_anon_versioning=yes ;;
8615      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8616      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8617      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8618      *\ 2.11.*) ;; # other 2.11 versions
8619      *) supports_anon_versioning=yes ;;
8620    esac
8621
8622    # See if GNU ld supports shared libraries.
8623    case $host_os in
8624    aix[3-9]*)
8625      # On AIX/PPC, the GNU linker is very broken
8626      if test "$host_cpu" != ia64; then
8627	ld_shlibs=no
8628	cat <<_LT_EOF 1>&2
8629
8630*** Warning: the GNU linker, at least up to release 2.19, is reported
8631*** to be unable to reliably create shared libraries on AIX.
8632*** Therefore, libtool is disabling shared libraries support.  If you
8633*** really care for shared libraries, you may want to install binutils
8634*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8635*** You will then need to restart the configuration process.
8636
8637_LT_EOF
8638      fi
8639      ;;
8640
8641    amigaos*)
8642      case $host_cpu in
8643      powerpc)
8644            # see comment about AmigaOS4 .so support
8645            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646            archive_expsym_cmds=''
8647        ;;
8648      m68k)
8649            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)'
8650            hardcode_libdir_flag_spec='-L$libdir'
8651            hardcode_minus_L=yes
8652        ;;
8653      esac
8654      ;;
8655
8656    beos*)
8657      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8658	allow_undefined_flag=unsupported
8659	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8660	# support --undefined.  This deserves some investigation.  FIXME
8661	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662      else
8663	ld_shlibs=no
8664      fi
8665      ;;
8666
8667    cygwin* | mingw* | pw32* | cegcc*)
8668      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8669      # as there is no search path for DLLs.
8670      hardcode_libdir_flag_spec='-L$libdir'
8671      export_dynamic_flag_spec='${wl}--export-all-symbols'
8672      allow_undefined_flag=unsupported
8673      always_export_symbols=no
8674      enable_shared_with_static_runtimes=yes
8675      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'
8676      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8677
8678      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8679        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8680	# If the export-symbols file already is a .def file (1st line
8681	# is EXPORTS), use it as is; otherwise, prepend...
8682	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8683	  cp $export_symbols $output_objdir/$soname.def;
8684	else
8685	  echo EXPORTS > $output_objdir/$soname.def;
8686	  cat $export_symbols >> $output_objdir/$soname.def;
8687	fi~
8688	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8689      else
8690	ld_shlibs=no
8691      fi
8692      ;;
8693
8694    haiku*)
8695      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8696      link_all_deplibs=yes
8697      ;;
8698
8699    interix[3-9]*)
8700      hardcode_direct=no
8701      hardcode_shlibpath_var=no
8702      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8703      export_dynamic_flag_spec='${wl}-E'
8704      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8705      # Instead, shared libraries are loaded at an image base (0x10000000 by
8706      # default) and relocated if they conflict, which is a slow very memory
8707      # consuming and fragmenting process.  To avoid this, we pick a random,
8708      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8709      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8710      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8711      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'
8712      ;;
8713
8714    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8715      tmp_diet=no
8716      if test "$host_os" = linux-dietlibc; then
8717	case $cc_basename in
8718	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8719	esac
8720      fi
8721      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8722	 && test "$tmp_diet" = no
8723      then
8724	tmp_addflag=' $pic_flag'
8725	tmp_sharedflag='-shared'
8726	case $cc_basename,$host_cpu in
8727        pgcc*)				# Portland Group C compiler
8728	  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'
8729	  tmp_addflag=' $pic_flag'
8730	  ;;
8731	pgf77* | pgf90* | pgf95* | pgfortran*)
8732					# Portland Group f77 and f90 compilers
8733	  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'
8734	  tmp_addflag=' $pic_flag -Mnomain' ;;
8735	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8736	  tmp_addflag=' -i_dynamic' ;;
8737	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8738	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8739	ifc* | ifort*)			# Intel Fortran compiler
8740	  tmp_addflag=' -nofor_main' ;;
8741	lf95*)				# Lahey Fortran 8.1
8742	  whole_archive_flag_spec=
8743	  tmp_sharedflag='--shared' ;;
8744	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8745	  tmp_sharedflag='-qmkshrobj'
8746	  tmp_addflag= ;;
8747	nvcc*)	# Cuda Compiler Driver 2.2
8748	  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'
8749	  compiler_needs_object=yes
8750	  ;;
8751	esac
8752	case `$CC -V 2>&1 | sed 5q` in
8753	*Sun\ C*)			# Sun C 5.9
8754	  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'
8755	  compiler_needs_object=yes
8756	  tmp_sharedflag='-G' ;;
8757	*Sun\ F*)			# Sun Fortran 8.3
8758	  tmp_sharedflag='-G' ;;
8759	esac
8760	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761
8762        if test "x$supports_anon_versioning" = xyes; then
8763          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8764	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8765	    echo "local: *; };" >> $output_objdir/$libname.ver~
8766	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8767        fi
8768
8769	case $cc_basename in
8770	xlf* | bgf* | bgxlf* | mpixlf*)
8771	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8772	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8773	  hardcode_libdir_flag_spec=
8774	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8775	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8776	  if test "x$supports_anon_versioning" = xyes; then
8777	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8778	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8779	      echo "local: *; };" >> $output_objdir/$libname.ver~
8780	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8781	  fi
8782	  ;;
8783	esac
8784      else
8785        ld_shlibs=no
8786      fi
8787      ;;
8788
8789    netbsd*)
8790      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8791	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8792	wlarc=
8793      else
8794	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8795	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8796      fi
8797      ;;
8798
8799    solaris*)
8800      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8801	ld_shlibs=no
8802	cat <<_LT_EOF 1>&2
8803
8804*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8805*** create shared libraries on Solaris systems.  Therefore, libtool
8806*** is disabling shared libraries support.  We urge you to upgrade GNU
8807*** binutils to release 2.9.1 or newer.  Another option is to modify
8808*** your PATH or compiler configuration so that the native linker is
8809*** used, and then restart.
8810
8811_LT_EOF
8812      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8813	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8815      else
8816	ld_shlibs=no
8817      fi
8818      ;;
8819
8820    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8821      case `$LD -v 2>&1` in
8822        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8823	ld_shlibs=no
8824	cat <<_LT_EOF 1>&2
8825
8826*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8827*** reliably create shared libraries on SCO systems.  Therefore, libtool
8828*** is disabling shared libraries support.  We urge you to upgrade GNU
8829*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8830*** your PATH or compiler configuration so that the native linker is
8831*** used, and then restart.
8832
8833_LT_EOF
8834	;;
8835	*)
8836	  # For security reasons, it is highly recommended that you always
8837	  # use absolute paths for naming shared libraries, and exclude the
8838	  # DT_RUNPATH tag from executables and libraries.  But doing so
8839	  # requires that you compile everything twice, which is a pain.
8840	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8841	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8842	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8844	  else
8845	    ld_shlibs=no
8846	  fi
8847	;;
8848      esac
8849      ;;
8850
8851    sunos4*)
8852      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8853      wlarc=
8854      hardcode_direct=yes
8855      hardcode_shlibpath_var=no
8856      ;;
8857
8858    *)
8859      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8860	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8862      else
8863	ld_shlibs=no
8864      fi
8865      ;;
8866    esac
8867
8868    if test "$ld_shlibs" = no; then
8869      runpath_var=
8870      hardcode_libdir_flag_spec=
8871      export_dynamic_flag_spec=
8872      whole_archive_flag_spec=
8873    fi
8874  else
8875    # PORTME fill in a description of your system's linker (not GNU ld)
8876    case $host_os in
8877    aix3*)
8878      allow_undefined_flag=unsupported
8879      always_export_symbols=yes
8880      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'
8881      # Note: this linker hardcodes the directories in LIBPATH if there
8882      # are no directories specified by -L.
8883      hardcode_minus_L=yes
8884      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8885	# Neither direct hardcoding nor static linking is supported with a
8886	# broken collect2.
8887	hardcode_direct=unsupported
8888      fi
8889      ;;
8890
8891    aix[4-9]*)
8892      if test "$host_cpu" = ia64; then
8893	# On IA64, the linker does run time linking by default, so we don't
8894	# have to do anything special.
8895	aix_use_runtimelinking=no
8896	exp_sym_flag='-Bexport'
8897	no_entry_flag=""
8898      else
8899	# If we're using GNU nm, then we don't want the "-C" option.
8900	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8901	# Also, AIX nm treats weak defined symbols like other global
8902	# defined symbols, whereas GNU nm marks them as "W".
8903	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8904	  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'
8905	else
8906	  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'
8907	fi
8908	aix_use_runtimelinking=no
8909
8910	# Test if we are trying to use run time linking or normal
8911	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8912	# need to do runtime linking.
8913	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8914	  for ld_flag in $LDFLAGS; do
8915	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8916	    aix_use_runtimelinking=yes
8917	    break
8918	  fi
8919	  done
8920	  ;;
8921	esac
8922
8923	exp_sym_flag='-bexport'
8924	no_entry_flag='-bnoentry'
8925      fi
8926
8927      # When large executables or shared objects are built, AIX ld can
8928      # have problems creating the table of contents.  If linking a library
8929      # or program results in "error TOC overflow" add -mminimal-toc to
8930      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8931      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8932
8933      archive_cmds=''
8934      hardcode_direct=yes
8935      hardcode_direct_absolute=yes
8936      hardcode_libdir_separator=':'
8937      link_all_deplibs=yes
8938      file_list_spec='${wl}-f,'
8939
8940      if test "$GCC" = yes; then
8941	case $host_os in aix4.[012]|aix4.[012].*)
8942	# We only want to do this on AIX 4.2 and lower, the check
8943	# below for broken collect2 doesn't work under 4.3+
8944	  collect2name=`${CC} -print-prog-name=collect2`
8945	  if test -f "$collect2name" &&
8946	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8947	  then
8948	  # We have reworked collect2
8949	  :
8950	  else
8951	  # We have old collect2
8952	  hardcode_direct=unsupported
8953	  # It fails to find uninstalled libraries when the uninstalled
8954	  # path is not listed in the libpath.  Setting hardcode_minus_L
8955	  # to unsupported forces relinking
8956	  hardcode_minus_L=yes
8957	  hardcode_libdir_flag_spec='-L$libdir'
8958	  hardcode_libdir_separator=
8959	  fi
8960	  ;;
8961	esac
8962	shared_flag='-shared'
8963	if test "$aix_use_runtimelinking" = yes; then
8964	  shared_flag="$shared_flag "'${wl}-G'
8965	fi
8966	link_all_deplibs=no
8967      else
8968	# not using gcc
8969	if test "$host_cpu" = ia64; then
8970	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8971	# chokes on -Wl,-G. The following line is correct:
8972	  shared_flag='-G'
8973	else
8974	  if test "$aix_use_runtimelinking" = yes; then
8975	    shared_flag='${wl}-G'
8976	  else
8977	    shared_flag='${wl}-bM:SRE'
8978	  fi
8979	fi
8980      fi
8981
8982      export_dynamic_flag_spec='${wl}-bexpall'
8983      # It seems that -bexpall does not export symbols beginning with
8984      # underscore (_), so it is better to generate a list of symbols to export.
8985      always_export_symbols=yes
8986      if test "$aix_use_runtimelinking" = yes; then
8987	# Warning - without using the other runtime loading flags (-brtl),
8988	# -berok will link without error, but may produce a broken library.
8989	allow_undefined_flag='-berok'
8990        # Determine the default libpath from the value encoded in an
8991        # empty executable.
8992        if test "${lt_cv_aix_libpath+set}" = set; then
8993  aix_libpath=$lt_cv_aix_libpath
8994else
8995  if ${lt_cv_aix_libpath_+:} false; then :
8996  $as_echo_n "(cached) " >&6
8997else
8998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h.  */
9000
9001int
9002main ()
9003{
9004
9005  ;
9006  return 0;
9007}
9008_ACEOF
9009if ac_fn_c_try_link "$LINENO"; then :
9010
9011  lt_aix_libpath_sed='
9012      /Import File Strings/,/^$/ {
9013	  /^0/ {
9014	      s/^0  *\([^ ]*\) *$/\1/
9015	      p
9016	  }
9017      }'
9018  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9019  # Check for a 64-bit object if we didn't find anything.
9020  if test -z "$lt_cv_aix_libpath_"; then
9021    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9022  fi
9023fi
9024rm -f core conftest.err conftest.$ac_objext \
9025    conftest$ac_exeext conftest.$ac_ext
9026  if test -z "$lt_cv_aix_libpath_"; then
9027    lt_cv_aix_libpath_="/usr/lib:/lib"
9028  fi
9029
9030fi
9031
9032  aix_libpath=$lt_cv_aix_libpath_
9033fi
9034
9035        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9036        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"
9037      else
9038	if test "$host_cpu" = ia64; then
9039	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9040	  allow_undefined_flag="-z nodefs"
9041	  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"
9042	else
9043	 # Determine the default libpath from the value encoded in an
9044	 # empty executable.
9045	 if test "${lt_cv_aix_libpath+set}" = set; then
9046  aix_libpath=$lt_cv_aix_libpath
9047else
9048  if ${lt_cv_aix_libpath_+:} false; then :
9049  $as_echo_n "(cached) " >&6
9050else
9051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052/* end confdefs.h.  */
9053
9054int
9055main ()
9056{
9057
9058  ;
9059  return 0;
9060}
9061_ACEOF
9062if ac_fn_c_try_link "$LINENO"; then :
9063
9064  lt_aix_libpath_sed='
9065      /Import File Strings/,/^$/ {
9066	  /^0/ {
9067	      s/^0  *\([^ ]*\) *$/\1/
9068	      p
9069	  }
9070      }'
9071  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9072  # Check for a 64-bit object if we didn't find anything.
9073  if test -z "$lt_cv_aix_libpath_"; then
9074    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9075  fi
9076fi
9077rm -f core conftest.err conftest.$ac_objext \
9078    conftest$ac_exeext conftest.$ac_ext
9079  if test -z "$lt_cv_aix_libpath_"; then
9080    lt_cv_aix_libpath_="/usr/lib:/lib"
9081  fi
9082
9083fi
9084
9085  aix_libpath=$lt_cv_aix_libpath_
9086fi
9087
9088	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9089	  # Warning - without using the other run time loading flags,
9090	  # -berok will link without error, but may produce a broken library.
9091	  no_undefined_flag=' ${wl}-bernotok'
9092	  allow_undefined_flag=' ${wl}-berok'
9093	  if test "$with_gnu_ld" = yes; then
9094	    # We only use this code for GNU lds that support --whole-archive.
9095	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9096	  else
9097	    # Exported symbols can be pulled into shared objects from archives
9098	    whole_archive_flag_spec='$convenience'
9099	  fi
9100	  archive_cmds_need_lc=yes
9101	  # This is similar to how AIX traditionally builds its shared libraries.
9102	  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'
9103	fi
9104      fi
9105      ;;
9106
9107    amigaos*)
9108      case $host_cpu in
9109      powerpc)
9110            # see comment about AmigaOS4 .so support
9111            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9112            archive_expsym_cmds=''
9113        ;;
9114      m68k)
9115            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)'
9116            hardcode_libdir_flag_spec='-L$libdir'
9117            hardcode_minus_L=yes
9118        ;;
9119      esac
9120      ;;
9121
9122    bsdi[45]*)
9123      export_dynamic_flag_spec=-rdynamic
9124      ;;
9125
9126    cygwin* | mingw* | pw32* | cegcc*)
9127      # When not using gcc, we currently assume that we are using
9128      # Microsoft Visual C++.
9129      # hardcode_libdir_flag_spec is actually meaningless, as there is
9130      # no search path for DLLs.
9131      case $cc_basename in
9132      cl*)
9133	# Native MSVC
9134	hardcode_libdir_flag_spec=' '
9135	allow_undefined_flag=unsupported
9136	always_export_symbols=yes
9137	file_list_spec='@'
9138	# Tell ltmain to make .lib files, not .a files.
9139	libext=lib
9140	# Tell ltmain to make .dll files, not .so files.
9141	shrext_cmds=".dll"
9142	# FIXME: Setting linknames here is a bad hack.
9143	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9144	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9145	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9146	  else
9147	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9148	  fi~
9149	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9150	  linknames='
9151	# The linker will not automatically build a static lib if we build a DLL.
9152	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9153	enable_shared_with_static_runtimes=yes
9154	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9155	# Don't use ranlib
9156	old_postinstall_cmds='chmod 644 $oldlib'
9157	postlink_cmds='lt_outputfile="@OUTPUT@"~
9158	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9159	  case $lt_outputfile in
9160	    *.exe|*.EXE) ;;
9161	    *)
9162	      lt_outputfile="$lt_outputfile.exe"
9163	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9164	      ;;
9165	  esac~
9166	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9167	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9168	    $RM "$lt_outputfile.manifest";
9169	  fi'
9170	;;
9171      *)
9172	# Assume MSVC wrapper
9173	hardcode_libdir_flag_spec=' '
9174	allow_undefined_flag=unsupported
9175	# Tell ltmain to make .lib files, not .a files.
9176	libext=lib
9177	# Tell ltmain to make .dll files, not .so files.
9178	shrext_cmds=".dll"
9179	# FIXME: Setting linknames here is a bad hack.
9180	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9181	# The linker will automatically build a .lib file if we build a DLL.
9182	old_archive_from_new_cmds='true'
9183	# FIXME: Should let the user specify the lib program.
9184	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9185	enable_shared_with_static_runtimes=yes
9186	;;
9187      esac
9188      ;;
9189
9190    darwin* | rhapsody*)
9191
9192
9193  archive_cmds_need_lc=no
9194  hardcode_direct=no
9195  hardcode_automatic=yes
9196  hardcode_shlibpath_var=unsupported
9197  if test "$lt_cv_ld_force_load" = "yes"; then
9198    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\"`'
9199  else
9200    whole_archive_flag_spec=''
9201  fi
9202  link_all_deplibs=yes
9203  allow_undefined_flag="$_lt_dar_allow_undefined"
9204  case $cc_basename in
9205     ifort*) _lt_dar_can_shared=yes ;;
9206     *) _lt_dar_can_shared=$GCC ;;
9207  esac
9208  if test "$_lt_dar_can_shared" = "yes"; then
9209    output_verbose_link_cmd=func_echo_all
9210    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9211    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9212    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}"
9213    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}"
9214
9215  else
9216  ld_shlibs=no
9217  fi
9218
9219      ;;
9220
9221    dgux*)
9222      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9223      hardcode_libdir_flag_spec='-L$libdir'
9224      hardcode_shlibpath_var=no
9225      ;;
9226
9227    freebsd1*)
9228      ld_shlibs=no
9229      ;;
9230
9231    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9232    # support.  Future versions do this automatically, but an explicit c++rt0.o
9233    # does not break anything, and helps significantly (at the cost of a little
9234    # extra space).
9235    freebsd2.2*)
9236      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9237      hardcode_libdir_flag_spec='-R$libdir'
9238      hardcode_direct=yes
9239      hardcode_shlibpath_var=no
9240      ;;
9241
9242    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9243    freebsd2*)
9244      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9245      hardcode_direct=yes
9246      hardcode_minus_L=yes
9247      hardcode_shlibpath_var=no
9248      ;;
9249
9250    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9251    freebsd* | dragonfly*)
9252      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9253      hardcode_libdir_flag_spec='-R$libdir'
9254      hardcode_direct=yes
9255      hardcode_shlibpath_var=no
9256      ;;
9257
9258    hpux9*)
9259      if test "$GCC" = yes; then
9260	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'
9261      else
9262	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'
9263      fi
9264      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9265      hardcode_libdir_separator=:
9266      hardcode_direct=yes
9267
9268      # hardcode_minus_L: Not really in the search PATH,
9269      # but as the default location of the library.
9270      hardcode_minus_L=yes
9271      export_dynamic_flag_spec='${wl}-E'
9272      ;;
9273
9274    hpux10*)
9275      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9276	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9277      else
9278	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9279      fi
9280      if test "$with_gnu_ld" = no; then
9281	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9282	hardcode_libdir_flag_spec_ld='+b $libdir'
9283	hardcode_libdir_separator=:
9284	hardcode_direct=yes
9285	hardcode_direct_absolute=yes
9286	export_dynamic_flag_spec='${wl}-E'
9287	# hardcode_minus_L: Not really in the search PATH,
9288	# but as the default location of the library.
9289	hardcode_minus_L=yes
9290      fi
9291      ;;
9292
9293    hpux11*)
9294      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9295	case $host_cpu in
9296	hppa*64*)
9297	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9298	  ;;
9299	ia64*)
9300	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9301	  ;;
9302	*)
9303	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9304	  ;;
9305	esac
9306      else
9307	case $host_cpu in
9308	hppa*64*)
9309	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9310	  ;;
9311	ia64*)
9312	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9313	  ;;
9314	*)
9315
9316	  # Older versions of the 11.00 compiler do not understand -b yet
9317	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9318	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9319$as_echo_n "checking if $CC understands -b... " >&6; }
9320if ${lt_cv_prog_compiler__b+:} false; then :
9321  $as_echo_n "(cached) " >&6
9322else
9323  lt_cv_prog_compiler__b=no
9324   save_LDFLAGS="$LDFLAGS"
9325   LDFLAGS="$LDFLAGS -b"
9326   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9327   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9328     # The linker can only warn and ignore the option if not recognized
9329     # So say no if there are warnings
9330     if test -s conftest.err; then
9331       # Append any errors to the config.log.
9332       cat conftest.err 1>&5
9333       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9334       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9335       if diff conftest.exp conftest.er2 >/dev/null; then
9336         lt_cv_prog_compiler__b=yes
9337       fi
9338     else
9339       lt_cv_prog_compiler__b=yes
9340     fi
9341   fi
9342   $RM -r conftest*
9343   LDFLAGS="$save_LDFLAGS"
9344
9345fi
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9347$as_echo "$lt_cv_prog_compiler__b" >&6; }
9348
9349if test x"$lt_cv_prog_compiler__b" = xyes; then
9350    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9351else
9352    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9353fi
9354
9355	  ;;
9356	esac
9357      fi
9358      if test "$with_gnu_ld" = no; then
9359	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9360	hardcode_libdir_separator=:
9361
9362	case $host_cpu in
9363	hppa*64*|ia64*)
9364	  hardcode_direct=no
9365	  hardcode_shlibpath_var=no
9366	  ;;
9367	*)
9368	  hardcode_direct=yes
9369	  hardcode_direct_absolute=yes
9370	  export_dynamic_flag_spec='${wl}-E'
9371
9372	  # hardcode_minus_L: Not really in the search PATH,
9373	  # but as the default location of the library.
9374	  hardcode_minus_L=yes
9375	  ;;
9376	esac
9377      fi
9378      ;;
9379
9380    irix5* | irix6* | nonstopux*)
9381      if test "$GCC" = yes; then
9382	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'
9383	# Try to use the -exported_symbol ld option, if it does not
9384	# work, assume that -exports_file does not work either and
9385	# implicitly export all symbols.
9386	# This should be the same for all languages, so no per-tag cache variable.
9387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9388$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9389if ${lt_cv_irix_exported_symbol+:} false; then :
9390  $as_echo_n "(cached) " >&6
9391else
9392  save_LDFLAGS="$LDFLAGS"
9393	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9394	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395/* end confdefs.h.  */
9396int foo (void) { return 0; }
9397_ACEOF
9398if ac_fn_c_try_link "$LINENO"; then :
9399  lt_cv_irix_exported_symbol=yes
9400else
9401  lt_cv_irix_exported_symbol=no
9402fi
9403rm -f core conftest.err conftest.$ac_objext \
9404    conftest$ac_exeext conftest.$ac_ext
9405           LDFLAGS="$save_LDFLAGS"
9406fi
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9408$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9409	if test "$lt_cv_irix_exported_symbol" = yes; then
9410          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'
9411	fi
9412      else
9413	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'
9414	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'
9415      fi
9416      archive_cmds_need_lc='no'
9417      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9418      hardcode_libdir_separator=:
9419      inherit_rpath=yes
9420      link_all_deplibs=yes
9421      ;;
9422
9423    netbsd*)
9424      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9425	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9426      else
9427	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9428      fi
9429      hardcode_libdir_flag_spec='-R$libdir'
9430      hardcode_direct=yes
9431      hardcode_shlibpath_var=no
9432      ;;
9433
9434    newsos6)
9435      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436      hardcode_direct=yes
9437      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9438      hardcode_libdir_separator=:
9439      hardcode_shlibpath_var=no
9440      ;;
9441
9442    *nto* | *qnx*)
9443      ;;
9444
9445    openbsd*)
9446      if test -f /usr/libexec/ld.so; then
9447	hardcode_direct=yes
9448	hardcode_shlibpath_var=no
9449	hardcode_direct_absolute=yes
9450	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9451	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9452	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9453	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9454	  export_dynamic_flag_spec='${wl}-E'
9455	else
9456	  case $host_os in
9457	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9458	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9459	     hardcode_libdir_flag_spec='-R$libdir'
9460	     ;;
9461	   *)
9462	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9463	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9464	     ;;
9465	  esac
9466	fi
9467      else
9468	ld_shlibs=no
9469      fi
9470      ;;
9471
9472    os2*)
9473      hardcode_libdir_flag_spec='-L$libdir'
9474      hardcode_minus_L=yes
9475      allow_undefined_flag=unsupported
9476      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'
9477      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9478      ;;
9479
9480    osf3*)
9481      if test "$GCC" = yes; then
9482	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9483	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'
9484      else
9485	allow_undefined_flag=' -expect_unresolved \*'
9486	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'
9487      fi
9488      archive_cmds_need_lc='no'
9489      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9490      hardcode_libdir_separator=:
9491      ;;
9492
9493    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9494      if test "$GCC" = yes; then
9495	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9496	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'
9497	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9498      else
9499	allow_undefined_flag=' -expect_unresolved \*'
9500	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'
9501	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~
9502	$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'
9503
9504	# Both c and cxx compiler support -rpath directly
9505	hardcode_libdir_flag_spec='-rpath $libdir'
9506      fi
9507      archive_cmds_need_lc='no'
9508      hardcode_libdir_separator=:
9509      ;;
9510
9511    solaris*)
9512      no_undefined_flag=' -z defs'
9513      if test "$GCC" = yes; then
9514	wlarc='${wl}'
9515	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9516	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9517	  $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'
9518      else
9519	case `$CC -V 2>&1` in
9520	*"Compilers 5.0"*)
9521	  wlarc=''
9522	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9524	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9525	  ;;
9526	*)
9527	  wlarc='${wl}'
9528	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9529	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9530	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9531	  ;;
9532	esac
9533      fi
9534      hardcode_libdir_flag_spec='-R$libdir'
9535      hardcode_shlibpath_var=no
9536      case $host_os in
9537      solaris2.[0-5] | solaris2.[0-5].*) ;;
9538      *)
9539	# The compiler driver will combine and reorder linker options,
9540	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9541	# but is careful enough not to reorder.
9542	# Supported since Solaris 2.6 (maybe 2.5.1?)
9543	if test "$GCC" = yes; then
9544	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9545	else
9546	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9547	fi
9548	;;
9549      esac
9550      link_all_deplibs=yes
9551      ;;
9552
9553    sunos4*)
9554      if test "x$host_vendor" = xsequent; then
9555	# Use $CC to link under sequent, because it throws in some extra .o
9556	# files that make .init and .fini sections work.
9557	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9558      else
9559	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9560      fi
9561      hardcode_libdir_flag_spec='-L$libdir'
9562      hardcode_direct=yes
9563      hardcode_minus_L=yes
9564      hardcode_shlibpath_var=no
9565      ;;
9566
9567    sysv4)
9568      case $host_vendor in
9569	sni)
9570	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9571	  hardcode_direct=yes # is this really true???
9572	;;
9573	siemens)
9574	  ## LD is ld it makes a PLAMLIB
9575	  ## CC just makes a GrossModule.
9576	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9577	  reload_cmds='$CC -r -o $output$reload_objs'
9578	  hardcode_direct=no
9579        ;;
9580	motorola)
9581	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9582	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9583	;;
9584      esac
9585      runpath_var='LD_RUN_PATH'
9586      hardcode_shlibpath_var=no
9587      ;;
9588
9589    sysv4.3*)
9590      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9591      hardcode_shlibpath_var=no
9592      export_dynamic_flag_spec='-Bexport'
9593      ;;
9594
9595    sysv4*MP*)
9596      if test -d /usr/nec; then
9597	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598	hardcode_shlibpath_var=no
9599	runpath_var=LD_RUN_PATH
9600	hardcode_runpath_var=yes
9601	ld_shlibs=yes
9602      fi
9603      ;;
9604
9605    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9606      no_undefined_flag='${wl}-z,text'
9607      archive_cmds_need_lc=no
9608      hardcode_shlibpath_var=no
9609      runpath_var='LD_RUN_PATH'
9610
9611      if test "$GCC" = yes; then
9612	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9613	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9614      else
9615	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9616	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9617      fi
9618      ;;
9619
9620    sysv5* | sco3.2v5* | sco5v6*)
9621      # Note: We can NOT use -z defs as we might desire, because we do not
9622      # link with -lc, and that would cause any symbols used from libc to
9623      # always be unresolved, which means just about no library would
9624      # ever link correctly.  If we're not using GNU ld we use -z text
9625      # though, which does catch some bad symbols but isn't as heavy-handed
9626      # as -z defs.
9627      no_undefined_flag='${wl}-z,text'
9628      allow_undefined_flag='${wl}-z,nodefs'
9629      archive_cmds_need_lc=no
9630      hardcode_shlibpath_var=no
9631      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9632      hardcode_libdir_separator=':'
9633      link_all_deplibs=yes
9634      export_dynamic_flag_spec='${wl}-Bexport'
9635      runpath_var='LD_RUN_PATH'
9636
9637      if test "$GCC" = yes; then
9638	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9639	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9640      else
9641	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9642	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9643      fi
9644      ;;
9645
9646    uts4*)
9647      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9648      hardcode_libdir_flag_spec='-L$libdir'
9649      hardcode_shlibpath_var=no
9650      ;;
9651
9652    *)
9653      ld_shlibs=no
9654      ;;
9655    esac
9656
9657    if test x$host_vendor = xsni; then
9658      case $host in
9659      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9660	export_dynamic_flag_spec='${wl}-Blargedynsym'
9661	;;
9662      esac
9663    fi
9664  fi
9665
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9667$as_echo "$ld_shlibs" >&6; }
9668test "$ld_shlibs" = no && can_build_shared=no
9669
9670with_gnu_ld=$with_gnu_ld
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686#
9687# Do we need to explicitly link libc?
9688#
9689case "x$archive_cmds_need_lc" in
9690x|xyes)
9691  # Assume -lc should be added
9692  archive_cmds_need_lc=yes
9693
9694  if test "$enable_shared" = yes && test "$GCC" = yes; then
9695    case $archive_cmds in
9696    *'~'*)
9697      # FIXME: we may have to deal with multi-command sequences.
9698      ;;
9699    '$CC '*)
9700      # Test whether the compiler implicitly links with -lc since on some
9701      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9702      # to ld, don't add -lc before -lgcc.
9703      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9704$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9705if ${lt_cv_archive_cmds_need_lc+:} false; then :
9706  $as_echo_n "(cached) " >&6
9707else
9708  $RM conftest*
9709	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9710
9711	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9712  (eval $ac_compile) 2>&5
9713  ac_status=$?
9714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9715  test $ac_status = 0; } 2>conftest.err; then
9716	  soname=conftest
9717	  lib=conftest
9718	  libobjs=conftest.$ac_objext
9719	  deplibs=
9720	  wl=$lt_prog_compiler_wl
9721	  pic_flag=$lt_prog_compiler_pic
9722	  compiler_flags=-v
9723	  linker_flags=-v
9724	  verstring=
9725	  output_objdir=.
9726	  libname=conftest
9727	  lt_save_allow_undefined_flag=$allow_undefined_flag
9728	  allow_undefined_flag=
9729	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9730  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9731  ac_status=$?
9732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9733  test $ac_status = 0; }
9734	  then
9735	    lt_cv_archive_cmds_need_lc=no
9736	  else
9737	    lt_cv_archive_cmds_need_lc=yes
9738	  fi
9739	  allow_undefined_flag=$lt_save_allow_undefined_flag
9740	else
9741	  cat conftest.err 1>&5
9742	fi
9743	$RM conftest*
9744
9745fi
9746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9747$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9748      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9749      ;;
9750    esac
9751  fi
9752  ;;
9753esac
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9912$as_echo_n "checking dynamic linker characteristics... " >&6; }
9913
9914if test "$GCC" = yes; then
9915  case $host_os in
9916    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9917    *) lt_awk_arg="/^libraries:/" ;;
9918  esac
9919  case $host_os in
9920    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9921    *) lt_sed_strip_eq="s,=/,/,g" ;;
9922  esac
9923  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9924  case $lt_search_path_spec in
9925  *\;*)
9926    # if the path contains ";" then we assume it to be the separator
9927    # otherwise default to the standard path separator (i.e. ":") - it is
9928    # assumed that no part of a normal pathname contains ";" but that should
9929    # okay in the real world where ";" in dirpaths is itself problematic.
9930    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9931    ;;
9932  *)
9933    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9934    ;;
9935  esac
9936  # Ok, now we have the path, separated by spaces, we can step through it
9937  # and add multilib dir if necessary.
9938  lt_tmp_lt_search_path_spec=
9939  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9940  for lt_sys_path in $lt_search_path_spec; do
9941    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9942      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9943    else
9944      test -d "$lt_sys_path" && \
9945	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9946    fi
9947  done
9948  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9949BEGIN {RS=" "; FS="/|\n";} {
9950  lt_foo="";
9951  lt_count=0;
9952  for (lt_i = NF; lt_i > 0; lt_i--) {
9953    if ($lt_i != "" && $lt_i != ".") {
9954      if ($lt_i == "..") {
9955        lt_count++;
9956      } else {
9957        if (lt_count == 0) {
9958          lt_foo="/" $lt_i lt_foo;
9959        } else {
9960          lt_count--;
9961        }
9962      }
9963    }
9964  }
9965  if (lt_foo != "") { lt_freq[lt_foo]++; }
9966  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9967}'`
9968  # AWK program above erroneously prepends '/' to C:/dos/paths
9969  # for these hosts.
9970  case $host_os in
9971    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9972      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9973  esac
9974  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9975else
9976  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9977fi
9978library_names_spec=
9979libname_spec='lib$name'
9980soname_spec=
9981shrext_cmds=".so"
9982postinstall_cmds=
9983postuninstall_cmds=
9984finish_cmds=
9985finish_eval=
9986shlibpath_var=
9987shlibpath_overrides_runpath=unknown
9988version_type=none
9989dynamic_linker="$host_os ld.so"
9990sys_lib_dlsearch_path_spec="/lib /usr/lib"
9991need_lib_prefix=unknown
9992hardcode_into_libs=no
9993
9994# when you set need_version to no, make sure it does not cause -set_version
9995# flags to be left without arguments
9996need_version=unknown
9997
9998case $host_os in
9999aix3*)
10000  version_type=linux
10001  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10002  shlibpath_var=LIBPATH
10003
10004  # AIX 3 has no versioning support, so we append a major version to the name.
10005  soname_spec='${libname}${release}${shared_ext}$major'
10006  ;;
10007
10008aix[4-9]*)
10009  version_type=linux
10010  need_lib_prefix=no
10011  need_version=no
10012  hardcode_into_libs=yes
10013  if test "$host_cpu" = ia64; then
10014    # AIX 5 supports IA64
10015    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10016    shlibpath_var=LD_LIBRARY_PATH
10017  else
10018    # With GCC up to 2.95.x, collect2 would create an import file
10019    # for dependence libraries.  The import file would start with
10020    # the line `#! .'.  This would cause the generated library to
10021    # depend on `.', always an invalid library.  This was fixed in
10022    # development snapshots of GCC prior to 3.0.
10023    case $host_os in
10024      aix4 | aix4.[01] | aix4.[01].*)
10025      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10026	   echo ' yes '
10027	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10028	:
10029      else
10030	can_build_shared=no
10031      fi
10032      ;;
10033    esac
10034    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10035    # soname into executable. Probably we can add versioning support to
10036    # collect2, so additional links can be useful in future.
10037    if test "$aix_use_runtimelinking" = yes; then
10038      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10039      # instead of lib<name>.a to let people know that these are not
10040      # typical AIX shared libraries.
10041      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042    else
10043      # We preserve .a as extension for shared libraries through AIX4.2
10044      # and later when we are not doing run time linking.
10045      library_names_spec='${libname}${release}.a $libname.a'
10046      soname_spec='${libname}${release}${shared_ext}$major'
10047    fi
10048    shlibpath_var=LIBPATH
10049  fi
10050  ;;
10051
10052amigaos*)
10053  case $host_cpu in
10054  powerpc)
10055    # Since July 2007 AmigaOS4 officially supports .so libraries.
10056    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10057    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058    ;;
10059  m68k)
10060    library_names_spec='$libname.ixlibrary $libname.a'
10061    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10062    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'
10063    ;;
10064  esac
10065  ;;
10066
10067beos*)
10068  library_names_spec='${libname}${shared_ext}'
10069  dynamic_linker="$host_os ld.so"
10070  shlibpath_var=LIBRARY_PATH
10071  ;;
10072
10073bsdi[45]*)
10074  version_type=linux
10075  need_version=no
10076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077  soname_spec='${libname}${release}${shared_ext}$major'
10078  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10079  shlibpath_var=LD_LIBRARY_PATH
10080  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10081  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10082  # the default ld.so.conf also contains /usr/contrib/lib and
10083  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10084  # libtool to hard-code these into programs
10085  ;;
10086
10087cygwin* | mingw* | pw32* | cegcc*)
10088  version_type=windows
10089  shrext_cmds=".dll"
10090  need_version=no
10091  need_lib_prefix=no
10092
10093  case $GCC,$cc_basename in
10094  yes,*)
10095    # gcc
10096    library_names_spec='$libname.dll.a'
10097    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10098    postinstall_cmds='base_file=`basename \${file}`~
10099      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10100      dldir=$destdir/`dirname \$dlpath`~
10101      test -d \$dldir || mkdir -p \$dldir~
10102      $install_prog $dir/$dlname \$dldir/$dlname~
10103      chmod a+x \$dldir/$dlname~
10104      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10105        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10106      fi'
10107    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10108      dlpath=$dir/\$dldll~
10109       $RM \$dlpath'
10110    shlibpath_overrides_runpath=yes
10111
10112    case $host_os in
10113    cygwin*)
10114      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10115      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10116
10117      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10118      ;;
10119    mingw* | cegcc*)
10120      # MinGW DLLs use traditional 'lib' prefix
10121      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10122      ;;
10123    pw32*)
10124      # pw32 DLLs use 'pw' prefix rather than 'lib'
10125      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10126      ;;
10127    esac
10128    dynamic_linker='Win32 ld.exe'
10129    ;;
10130
10131  *,cl*)
10132    # Native MSVC
10133    libname_spec='$name'
10134    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10135    library_names_spec='${libname}.dll.lib'
10136
10137    case $build_os in
10138    mingw*)
10139      sys_lib_search_path_spec=
10140      lt_save_ifs=$IFS
10141      IFS=';'
10142      for lt_path in $LIB
10143      do
10144        IFS=$lt_save_ifs
10145        # Let DOS variable expansion print the short 8.3 style file name.
10146        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10147        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10148      done
10149      IFS=$lt_save_ifs
10150      # Convert to MSYS style.
10151      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10152      ;;
10153    cygwin*)
10154      # Convert to unix form, then to dos form, then back to unix form
10155      # but this time dos style (no spaces!) so that the unix form looks
10156      # like /cygdrive/c/PROGRA~1:/cygdr...
10157      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10158      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10159      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10160      ;;
10161    *)
10162      sys_lib_search_path_spec="$LIB"
10163      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10164        # It is most probably a Windows format PATH.
10165        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10166      else
10167        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10168      fi
10169      # FIXME: find the short name or the path components, as spaces are
10170      # common. (e.g. "Program Files" -> "PROGRA~1")
10171      ;;
10172    esac
10173
10174    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10175    postinstall_cmds='base_file=`basename \${file}`~
10176      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10177      dldir=$destdir/`dirname \$dlpath`~
10178      test -d \$dldir || mkdir -p \$dldir~
10179      $install_prog $dir/$dlname \$dldir/$dlname'
10180    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10181      dlpath=$dir/\$dldll~
10182       $RM \$dlpath'
10183    shlibpath_overrides_runpath=yes
10184    dynamic_linker='Win32 link.exe'
10185    ;;
10186
10187  *)
10188    # Assume MSVC wrapper
10189    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10190    dynamic_linker='Win32 ld.exe'
10191    ;;
10192  esac
10193  # FIXME: first we should search . and the directory the executable is in
10194  shlibpath_var=PATH
10195  ;;
10196
10197darwin* | rhapsody*)
10198  dynamic_linker="$host_os dyld"
10199  version_type=darwin
10200  need_lib_prefix=no
10201  need_version=no
10202  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10203  soname_spec='${libname}${release}${major}$shared_ext'
10204  shlibpath_overrides_runpath=yes
10205  shlibpath_var=DYLD_LIBRARY_PATH
10206  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10207
10208  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10209  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10210  ;;
10211
10212dgux*)
10213  version_type=linux
10214  need_lib_prefix=no
10215  need_version=no
10216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10217  soname_spec='${libname}${release}${shared_ext}$major'
10218  shlibpath_var=LD_LIBRARY_PATH
10219  ;;
10220
10221freebsd1*)
10222  dynamic_linker=no
10223  ;;
10224
10225freebsd* | dragonfly*)
10226  # DragonFly does not have aout.  When/if they implement a new
10227  # versioning mechanism, adjust this.
10228  if test -x /usr/bin/objformat; then
10229    objformat=`/usr/bin/objformat`
10230  else
10231    case $host_os in
10232    freebsd[123]*) objformat=aout ;;
10233    *) objformat=elf ;;
10234    esac
10235  fi
10236  version_type=freebsd-$objformat
10237  case $version_type in
10238    freebsd-elf*)
10239      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10240      need_version=no
10241      need_lib_prefix=no
10242      ;;
10243    freebsd-*)
10244      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10245      need_version=yes
10246      ;;
10247  esac
10248  shlibpath_var=LD_LIBRARY_PATH
10249  case $host_os in
10250  freebsd2*)
10251    shlibpath_overrides_runpath=yes
10252    ;;
10253  freebsd3.[01]* | freebsdelf3.[01]*)
10254    shlibpath_overrides_runpath=yes
10255    hardcode_into_libs=yes
10256    ;;
10257  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10258  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10259    shlibpath_overrides_runpath=no
10260    hardcode_into_libs=yes
10261    ;;
10262  *) # from 4.6 on, and DragonFly
10263    shlibpath_overrides_runpath=yes
10264    hardcode_into_libs=yes
10265    ;;
10266  esac
10267  ;;
10268
10269gnu*)
10270  version_type=linux
10271  need_lib_prefix=no
10272  need_version=no
10273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10274  soname_spec='${libname}${release}${shared_ext}$major'
10275  shlibpath_var=LD_LIBRARY_PATH
10276  shlibpath_overrides_runpath=no
10277  hardcode_into_libs=yes
10278  ;;
10279
10280haiku*)
10281  version_type=linux
10282  need_lib_prefix=no
10283  need_version=no
10284  dynamic_linker="$host_os runtime_loader"
10285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10286  soname_spec='${libname}${release}${shared_ext}$major'
10287  shlibpath_var=LIBRARY_PATH
10288  shlibpath_overrides_runpath=yes
10289  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10290  hardcode_into_libs=yes
10291  ;;
10292
10293hpux9* | hpux10* | hpux11*)
10294  # Give a soname corresponding to the major version so that dld.sl refuses to
10295  # link against other versions.
10296  version_type=sunos
10297  need_lib_prefix=no
10298  need_version=no
10299  case $host_cpu in
10300  ia64*)
10301    shrext_cmds='.so'
10302    hardcode_into_libs=yes
10303    dynamic_linker="$host_os dld.so"
10304    shlibpath_var=LD_LIBRARY_PATH
10305    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10306    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307    soname_spec='${libname}${release}${shared_ext}$major'
10308    if test "X$HPUX_IA64_MODE" = X32; then
10309      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10310    else
10311      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10312    fi
10313    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10314    ;;
10315  hppa*64*)
10316    shrext_cmds='.sl'
10317    hardcode_into_libs=yes
10318    dynamic_linker="$host_os dld.sl"
10319    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10320    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10321    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322    soname_spec='${libname}${release}${shared_ext}$major'
10323    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10324    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10325    ;;
10326  *)
10327    shrext_cmds='.sl'
10328    dynamic_linker="$host_os dld.sl"
10329    shlibpath_var=SHLIB_PATH
10330    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10331    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332    soname_spec='${libname}${release}${shared_ext}$major'
10333    ;;
10334  esac
10335  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10336  postinstall_cmds='chmod 555 $lib'
10337  # or fails outright, so override atomically:
10338  install_override_mode=555
10339  ;;
10340
10341interix[3-9]*)
10342  version_type=linux
10343  need_lib_prefix=no
10344  need_version=no
10345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10346  soname_spec='${libname}${release}${shared_ext}$major'
10347  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10348  shlibpath_var=LD_LIBRARY_PATH
10349  shlibpath_overrides_runpath=no
10350  hardcode_into_libs=yes
10351  ;;
10352
10353irix5* | irix6* | nonstopux*)
10354  case $host_os in
10355    nonstopux*) version_type=nonstopux ;;
10356    *)
10357	if test "$lt_cv_prog_gnu_ld" = yes; then
10358		version_type=linux
10359	else
10360		version_type=irix
10361	fi ;;
10362  esac
10363  need_lib_prefix=no
10364  need_version=no
10365  soname_spec='${libname}${release}${shared_ext}$major'
10366  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10367  case $host_os in
10368  irix5* | nonstopux*)
10369    libsuff= shlibsuff=
10370    ;;
10371  *)
10372    case $LD in # libtool.m4 will add one of these switches to LD
10373    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10374      libsuff= shlibsuff= libmagic=32-bit;;
10375    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10376      libsuff=32 shlibsuff=N32 libmagic=N32;;
10377    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10378      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10379    *) libsuff= shlibsuff= libmagic=never-match;;
10380    esac
10381    ;;
10382  esac
10383  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10384  shlibpath_overrides_runpath=no
10385  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10386  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10387  hardcode_into_libs=yes
10388  ;;
10389
10390# No shared lib support for Linux oldld, aout, or coff.
10391linux*oldld* | linux*aout* | linux*coff*)
10392  dynamic_linker=no
10393  ;;
10394
10395# This must be Linux ELF.
10396linux* | k*bsd*-gnu | kopensolaris*-gnu)
10397  version_type=linux
10398  need_lib_prefix=no
10399  need_version=no
10400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401  soname_spec='${libname}${release}${shared_ext}$major'
10402  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10403  shlibpath_var=LD_LIBRARY_PATH
10404  shlibpath_overrides_runpath=no
10405
10406  # Some binutils ld are patched to set DT_RUNPATH
10407  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10408  $as_echo_n "(cached) " >&6
10409else
10410  lt_cv_shlibpath_overrides_runpath=no
10411    save_LDFLAGS=$LDFLAGS
10412    save_libdir=$libdir
10413    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10414	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10415    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416/* end confdefs.h.  */
10417
10418int
10419main ()
10420{
10421
10422  ;
10423  return 0;
10424}
10425_ACEOF
10426if ac_fn_c_try_link "$LINENO"; then :
10427  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10428  lt_cv_shlibpath_overrides_runpath=yes
10429fi
10430fi
10431rm -f core conftest.err conftest.$ac_objext \
10432    conftest$ac_exeext conftest.$ac_ext
10433    LDFLAGS=$save_LDFLAGS
10434    libdir=$save_libdir
10435
10436fi
10437
10438  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10439
10440  # This implies no fast_install, which is unacceptable.
10441  # Some rework will be needed to allow for fast_install
10442  # before this can be enabled.
10443  hardcode_into_libs=yes
10444
10445  # find out which ABI we are using
10446  libsuff=
10447  case "$host_cpu" in
10448  x86_64*|s390x*|powerpc64*)
10449    echo '#line 10449 "configure"' > conftest.$ac_ext
10450    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10451  (eval $ac_compile) 2>&5
10452  ac_status=$?
10453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10454  test $ac_status = 0; }; then
10455      case `/usr/bin/file conftest.$ac_objext` in
10456      *64-bit*)
10457        libsuff=64
10458        ;;
10459      esac
10460    fi
10461    rm -rf conftest*
10462    ;;
10463  esac
10464
10465  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10466
10467  # Append ld.so.conf contents to the search path
10468  if test -f /etc/ld.so.conf; then
10469    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' ' '`
10470    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10471  fi
10472
10473  # We used to test for /lib/ld.so.1 and disable shared libraries on
10474  # powerpc, because MkLinux only supported shared libraries with the
10475  # GNU dynamic linker.  Since this was broken with cross compilers,
10476  # most powerpc-linux boxes support dynamic linking these days and
10477  # people can always --disable-shared, the test was removed, and we
10478  # assume the GNU/Linux dynamic linker is in use.
10479  dynamic_linker='GNU/Linux ld.so'
10480  ;;
10481
10482netbsd*)
10483  version_type=sunos
10484  need_lib_prefix=no
10485  need_version=no
10486  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10487    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10488    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10489    dynamic_linker='NetBSD (a.out) ld.so'
10490  else
10491    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10492    soname_spec='${libname}${release}${shared_ext}$major'
10493    dynamic_linker='NetBSD ld.elf_so'
10494  fi
10495  shlibpath_var=LD_LIBRARY_PATH
10496  shlibpath_overrides_runpath=yes
10497  hardcode_into_libs=yes
10498  ;;
10499
10500newsos6)
10501  version_type=linux
10502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503  shlibpath_var=LD_LIBRARY_PATH
10504  shlibpath_overrides_runpath=yes
10505  ;;
10506
10507*nto* | *qnx*)
10508  version_type=qnx
10509  need_lib_prefix=no
10510  need_version=no
10511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512  soname_spec='${libname}${release}${shared_ext}$major'
10513  shlibpath_var=LD_LIBRARY_PATH
10514  shlibpath_overrides_runpath=no
10515  hardcode_into_libs=yes
10516  dynamic_linker='ldqnx.so'
10517  ;;
10518
10519openbsd*)
10520  version_type=sunos
10521  sys_lib_dlsearch_path_spec="/usr/lib"
10522  need_lib_prefix=no
10523  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10524  case $host_os in
10525    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10526    *)				need_version=no  ;;
10527  esac
10528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10529  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10530  shlibpath_var=LD_LIBRARY_PATH
10531  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10532    case $host_os in
10533      openbsd2.[89] | openbsd2.[89].*)
10534	shlibpath_overrides_runpath=no
10535	;;
10536      *)
10537	shlibpath_overrides_runpath=yes
10538	;;
10539      esac
10540  else
10541    shlibpath_overrides_runpath=yes
10542  fi
10543  ;;
10544
10545os2*)
10546  libname_spec='$name'
10547  shrext_cmds=".dll"
10548  need_lib_prefix=no
10549  library_names_spec='$libname${shared_ext} $libname.a'
10550  dynamic_linker='OS/2 ld.exe'
10551  shlibpath_var=LIBPATH
10552  ;;
10553
10554osf3* | osf4* | osf5*)
10555  version_type=osf
10556  need_lib_prefix=no
10557  need_version=no
10558  soname_spec='${libname}${release}${shared_ext}$major'
10559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560  shlibpath_var=LD_LIBRARY_PATH
10561  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10562  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10563  ;;
10564
10565rdos*)
10566  dynamic_linker=no
10567  ;;
10568
10569solaris*)
10570  version_type=linux
10571  need_lib_prefix=no
10572  need_version=no
10573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574  soname_spec='${libname}${release}${shared_ext}$major'
10575  shlibpath_var=LD_LIBRARY_PATH
10576  shlibpath_overrides_runpath=yes
10577  hardcode_into_libs=yes
10578  # ldd complains unless libraries are executable
10579  postinstall_cmds='chmod +x $lib'
10580  ;;
10581
10582sunos4*)
10583  version_type=sunos
10584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10585  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10586  shlibpath_var=LD_LIBRARY_PATH
10587  shlibpath_overrides_runpath=yes
10588  if test "$with_gnu_ld" = yes; then
10589    need_lib_prefix=no
10590  fi
10591  need_version=yes
10592  ;;
10593
10594sysv4 | sysv4.3*)
10595  version_type=linux
10596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597  soname_spec='${libname}${release}${shared_ext}$major'
10598  shlibpath_var=LD_LIBRARY_PATH
10599  case $host_vendor in
10600    sni)
10601      shlibpath_overrides_runpath=no
10602      need_lib_prefix=no
10603      runpath_var=LD_RUN_PATH
10604      ;;
10605    siemens)
10606      need_lib_prefix=no
10607      ;;
10608    motorola)
10609      need_lib_prefix=no
10610      need_version=no
10611      shlibpath_overrides_runpath=no
10612      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10613      ;;
10614  esac
10615  ;;
10616
10617sysv4*MP*)
10618  if test -d /usr/nec ;then
10619    version_type=linux
10620    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10621    soname_spec='$libname${shared_ext}.$major'
10622    shlibpath_var=LD_LIBRARY_PATH
10623  fi
10624  ;;
10625
10626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10627  version_type=freebsd-elf
10628  need_lib_prefix=no
10629  need_version=no
10630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10631  soname_spec='${libname}${release}${shared_ext}$major'
10632  shlibpath_var=LD_LIBRARY_PATH
10633  shlibpath_overrides_runpath=yes
10634  hardcode_into_libs=yes
10635  if test "$with_gnu_ld" = yes; then
10636    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10637  else
10638    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10639    case $host_os in
10640      sco3.2v5*)
10641        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10642	;;
10643    esac
10644  fi
10645  sys_lib_dlsearch_path_spec='/usr/lib'
10646  ;;
10647
10648tpf*)
10649  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10650  version_type=linux
10651  need_lib_prefix=no
10652  need_version=no
10653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654  shlibpath_var=LD_LIBRARY_PATH
10655  shlibpath_overrides_runpath=no
10656  hardcode_into_libs=yes
10657  ;;
10658
10659uts4*)
10660  version_type=linux
10661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662  soname_spec='${libname}${release}${shared_ext}$major'
10663  shlibpath_var=LD_LIBRARY_PATH
10664  ;;
10665
10666*)
10667  dynamic_linker=no
10668  ;;
10669esac
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10671$as_echo "$dynamic_linker" >&6; }
10672test "$dynamic_linker" = no && can_build_shared=no
10673
10674variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10675if test "$GCC" = yes; then
10676  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10677fi
10678
10679if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10680  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10681fi
10682if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10683  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10684fi
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10778$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10779hardcode_action=
10780if test -n "$hardcode_libdir_flag_spec" ||
10781   test -n "$runpath_var" ||
10782   test "X$hardcode_automatic" = "Xyes" ; then
10783
10784  # We can hardcode non-existent directories.
10785  if test "$hardcode_direct" != no &&
10786     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10787     # have to relink, otherwise we might link with an installed library
10788     # when we should be linking with a yet-to-be-installed one
10789     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10790     test "$hardcode_minus_L" != no; then
10791    # Linking always hardcodes the temporary library directory.
10792    hardcode_action=relink
10793  else
10794    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10795    hardcode_action=immediate
10796  fi
10797else
10798  # We cannot hardcode anything, or else we can only hardcode existing
10799  # directories.
10800  hardcode_action=unsupported
10801fi
10802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10803$as_echo "$hardcode_action" >&6; }
10804
10805if test "$hardcode_action" = relink ||
10806   test "$inherit_rpath" = yes; then
10807  # Fast installation is not supported
10808  enable_fast_install=no
10809elif test "$shlibpath_overrides_runpath" = yes ||
10810     test "$enable_shared" = no; then
10811  # Fast installation is not necessary
10812  enable_fast_install=needless
10813fi
10814
10815
10816
10817
10818
10819
10820  if test "x$enable_dlopen" != xyes; then
10821  enable_dlopen=unknown
10822  enable_dlopen_self=unknown
10823  enable_dlopen_self_static=unknown
10824else
10825  lt_cv_dlopen=no
10826  lt_cv_dlopen_libs=
10827
10828  case $host_os in
10829  beos*)
10830    lt_cv_dlopen="load_add_on"
10831    lt_cv_dlopen_libs=
10832    lt_cv_dlopen_self=yes
10833    ;;
10834
10835  mingw* | pw32* | cegcc*)
10836    lt_cv_dlopen="LoadLibrary"
10837    lt_cv_dlopen_libs=
10838    ;;
10839
10840  cygwin*)
10841    lt_cv_dlopen="dlopen"
10842    lt_cv_dlopen_libs=
10843    ;;
10844
10845  darwin*)
10846  # if libdl is installed we need to link against it
10847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10848$as_echo_n "checking for dlopen in -ldl... " >&6; }
10849if ${ac_cv_lib_dl_dlopen+:} false; then :
10850  $as_echo_n "(cached) " >&6
10851else
10852  ac_check_lib_save_LIBS=$LIBS
10853LIBS="-ldl  $LIBS"
10854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855/* end confdefs.h.  */
10856
10857/* Override any GCC internal prototype to avoid an error.
10858   Use char because int might match the return type of a GCC
10859   builtin and then its argument prototype would still apply.  */
10860#ifdef __cplusplus
10861extern "C"
10862#endif
10863char dlopen ();
10864int
10865main ()
10866{
10867return dlopen ();
10868  ;
10869  return 0;
10870}
10871_ACEOF
10872if ac_fn_c_try_link "$LINENO"; then :
10873  ac_cv_lib_dl_dlopen=yes
10874else
10875  ac_cv_lib_dl_dlopen=no
10876fi
10877rm -f core conftest.err conftest.$ac_objext \
10878    conftest$ac_exeext conftest.$ac_ext
10879LIBS=$ac_check_lib_save_LIBS
10880fi
10881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10882$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10883if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10884  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10885else
10886
10887    lt_cv_dlopen="dyld"
10888    lt_cv_dlopen_libs=
10889    lt_cv_dlopen_self=yes
10890
10891fi
10892
10893    ;;
10894
10895  *)
10896    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10897if test "x$ac_cv_func_shl_load" = xyes; then :
10898  lt_cv_dlopen="shl_load"
10899else
10900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10901$as_echo_n "checking for shl_load in -ldld... " >&6; }
10902if ${ac_cv_lib_dld_shl_load+:} false; then :
10903  $as_echo_n "(cached) " >&6
10904else
10905  ac_check_lib_save_LIBS=$LIBS
10906LIBS="-ldld  $LIBS"
10907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908/* end confdefs.h.  */
10909
10910/* Override any GCC internal prototype to avoid an error.
10911   Use char because int might match the return type of a GCC
10912   builtin and then its argument prototype would still apply.  */
10913#ifdef __cplusplus
10914extern "C"
10915#endif
10916char shl_load ();
10917int
10918main ()
10919{
10920return shl_load ();
10921  ;
10922  return 0;
10923}
10924_ACEOF
10925if ac_fn_c_try_link "$LINENO"; then :
10926  ac_cv_lib_dld_shl_load=yes
10927else
10928  ac_cv_lib_dld_shl_load=no
10929fi
10930rm -f core conftest.err conftest.$ac_objext \
10931    conftest$ac_exeext conftest.$ac_ext
10932LIBS=$ac_check_lib_save_LIBS
10933fi
10934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10935$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10936if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10937  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10938else
10939  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10940if test "x$ac_cv_func_dlopen" = xyes; then :
10941  lt_cv_dlopen="dlopen"
10942else
10943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10944$as_echo_n "checking for dlopen in -ldl... " >&6; }
10945if ${ac_cv_lib_dl_dlopen+:} false; then :
10946  $as_echo_n "(cached) " >&6
10947else
10948  ac_check_lib_save_LIBS=$LIBS
10949LIBS="-ldl  $LIBS"
10950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951/* end confdefs.h.  */
10952
10953/* Override any GCC internal prototype to avoid an error.
10954   Use char because int might match the return type of a GCC
10955   builtin and then its argument prototype would still apply.  */
10956#ifdef __cplusplus
10957extern "C"
10958#endif
10959char dlopen ();
10960int
10961main ()
10962{
10963return dlopen ();
10964  ;
10965  return 0;
10966}
10967_ACEOF
10968if ac_fn_c_try_link "$LINENO"; then :
10969  ac_cv_lib_dl_dlopen=yes
10970else
10971  ac_cv_lib_dl_dlopen=no
10972fi
10973rm -f core conftest.err conftest.$ac_objext \
10974    conftest$ac_exeext conftest.$ac_ext
10975LIBS=$ac_check_lib_save_LIBS
10976fi
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10978$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10979if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10980  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10981else
10982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10983$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10984if ${ac_cv_lib_svld_dlopen+:} false; then :
10985  $as_echo_n "(cached) " >&6
10986else
10987  ac_check_lib_save_LIBS=$LIBS
10988LIBS="-lsvld  $LIBS"
10989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990/* end confdefs.h.  */
10991
10992/* Override any GCC internal prototype to avoid an error.
10993   Use char because int might match the return type of a GCC
10994   builtin and then its argument prototype would still apply.  */
10995#ifdef __cplusplus
10996extern "C"
10997#endif
10998char dlopen ();
10999int
11000main ()
11001{
11002return dlopen ();
11003  ;
11004  return 0;
11005}
11006_ACEOF
11007if ac_fn_c_try_link "$LINENO"; then :
11008  ac_cv_lib_svld_dlopen=yes
11009else
11010  ac_cv_lib_svld_dlopen=no
11011fi
11012rm -f core conftest.err conftest.$ac_objext \
11013    conftest$ac_exeext conftest.$ac_ext
11014LIBS=$ac_check_lib_save_LIBS
11015fi
11016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11017$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11018if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11019  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11020else
11021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11022$as_echo_n "checking for dld_link in -ldld... " >&6; }
11023if ${ac_cv_lib_dld_dld_link+:} false; then :
11024  $as_echo_n "(cached) " >&6
11025else
11026  ac_check_lib_save_LIBS=$LIBS
11027LIBS="-ldld  $LIBS"
11028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029/* end confdefs.h.  */
11030
11031/* Override any GCC internal prototype to avoid an error.
11032   Use char because int might match the return type of a GCC
11033   builtin and then its argument prototype would still apply.  */
11034#ifdef __cplusplus
11035extern "C"
11036#endif
11037char dld_link ();
11038int
11039main ()
11040{
11041return dld_link ();
11042  ;
11043  return 0;
11044}
11045_ACEOF
11046if ac_fn_c_try_link "$LINENO"; then :
11047  ac_cv_lib_dld_dld_link=yes
11048else
11049  ac_cv_lib_dld_dld_link=no
11050fi
11051rm -f core conftest.err conftest.$ac_objext \
11052    conftest$ac_exeext conftest.$ac_ext
11053LIBS=$ac_check_lib_save_LIBS
11054fi
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11056$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11057if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11058  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11059fi
11060
11061
11062fi
11063
11064
11065fi
11066
11067
11068fi
11069
11070
11071fi
11072
11073
11074fi
11075
11076    ;;
11077  esac
11078
11079  if test "x$lt_cv_dlopen" != xno; then
11080    enable_dlopen=yes
11081  else
11082    enable_dlopen=no
11083  fi
11084
11085  case $lt_cv_dlopen in
11086  dlopen)
11087    save_CPPFLAGS="$CPPFLAGS"
11088    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11089
11090    save_LDFLAGS="$LDFLAGS"
11091    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11092
11093    save_LIBS="$LIBS"
11094    LIBS="$lt_cv_dlopen_libs $LIBS"
11095
11096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11097$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11098if ${lt_cv_dlopen_self+:} false; then :
11099  $as_echo_n "(cached) " >&6
11100else
11101  	  if test "$cross_compiling" = yes; then :
11102  lt_cv_dlopen_self=cross
11103else
11104  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11105  lt_status=$lt_dlunknown
11106  cat > conftest.$ac_ext <<_LT_EOF
11107#line $LINENO "configure"
11108#include "confdefs.h"
11109
11110#if HAVE_DLFCN_H
11111#include <dlfcn.h>
11112#endif
11113
11114#include <stdio.h>
11115
11116#ifdef RTLD_GLOBAL
11117#  define LT_DLGLOBAL		RTLD_GLOBAL
11118#else
11119#  ifdef DL_GLOBAL
11120#    define LT_DLGLOBAL		DL_GLOBAL
11121#  else
11122#    define LT_DLGLOBAL		0
11123#  endif
11124#endif
11125
11126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11127   find out it does not work in some platform. */
11128#ifndef LT_DLLAZY_OR_NOW
11129#  ifdef RTLD_LAZY
11130#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11131#  else
11132#    ifdef DL_LAZY
11133#      define LT_DLLAZY_OR_NOW		DL_LAZY
11134#    else
11135#      ifdef RTLD_NOW
11136#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11137#      else
11138#        ifdef DL_NOW
11139#          define LT_DLLAZY_OR_NOW	DL_NOW
11140#        else
11141#          define LT_DLLAZY_OR_NOW	0
11142#        endif
11143#      endif
11144#    endif
11145#  endif
11146#endif
11147
11148/* When -fvisbility=hidden is used, assume the code has been annotated
11149   correspondingly for the symbols needed.  */
11150#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11151int fnord () __attribute__((visibility("default")));
11152#endif
11153
11154int fnord () { return 42; }
11155int main ()
11156{
11157  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11158  int status = $lt_dlunknown;
11159
11160  if (self)
11161    {
11162      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11163      else
11164        {
11165	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11166          else puts (dlerror ());
11167	}
11168      /* dlclose (self); */
11169    }
11170  else
11171    puts (dlerror ());
11172
11173  return status;
11174}
11175_LT_EOF
11176  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11177  (eval $ac_link) 2>&5
11178  ac_status=$?
11179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11180  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11181    (./conftest; exit; ) >&5 2>/dev/null
11182    lt_status=$?
11183    case x$lt_status in
11184      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11185      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11186      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11187    esac
11188  else :
11189    # compilation failed
11190    lt_cv_dlopen_self=no
11191  fi
11192fi
11193rm -fr conftest*
11194
11195
11196fi
11197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11198$as_echo "$lt_cv_dlopen_self" >&6; }
11199
11200    if test "x$lt_cv_dlopen_self" = xyes; then
11201      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11202      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11203$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11204if ${lt_cv_dlopen_self_static+:} false; then :
11205  $as_echo_n "(cached) " >&6
11206else
11207  	  if test "$cross_compiling" = yes; then :
11208  lt_cv_dlopen_self_static=cross
11209else
11210  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11211  lt_status=$lt_dlunknown
11212  cat > conftest.$ac_ext <<_LT_EOF
11213#line $LINENO "configure"
11214#include "confdefs.h"
11215
11216#if HAVE_DLFCN_H
11217#include <dlfcn.h>
11218#endif
11219
11220#include <stdio.h>
11221
11222#ifdef RTLD_GLOBAL
11223#  define LT_DLGLOBAL		RTLD_GLOBAL
11224#else
11225#  ifdef DL_GLOBAL
11226#    define LT_DLGLOBAL		DL_GLOBAL
11227#  else
11228#    define LT_DLGLOBAL		0
11229#  endif
11230#endif
11231
11232/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11233   find out it does not work in some platform. */
11234#ifndef LT_DLLAZY_OR_NOW
11235#  ifdef RTLD_LAZY
11236#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11237#  else
11238#    ifdef DL_LAZY
11239#      define LT_DLLAZY_OR_NOW		DL_LAZY
11240#    else
11241#      ifdef RTLD_NOW
11242#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11243#      else
11244#        ifdef DL_NOW
11245#          define LT_DLLAZY_OR_NOW	DL_NOW
11246#        else
11247#          define LT_DLLAZY_OR_NOW	0
11248#        endif
11249#      endif
11250#    endif
11251#  endif
11252#endif
11253
11254/* When -fvisbility=hidden is used, assume the code has been annotated
11255   correspondingly for the symbols needed.  */
11256#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11257int fnord () __attribute__((visibility("default")));
11258#endif
11259
11260int fnord () { return 42; }
11261int main ()
11262{
11263  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11264  int status = $lt_dlunknown;
11265
11266  if (self)
11267    {
11268      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11269      else
11270        {
11271	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11272          else puts (dlerror ());
11273	}
11274      /* dlclose (self); */
11275    }
11276  else
11277    puts (dlerror ());
11278
11279  return status;
11280}
11281_LT_EOF
11282  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11283  (eval $ac_link) 2>&5
11284  ac_status=$?
11285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11286  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11287    (./conftest; exit; ) >&5 2>/dev/null
11288    lt_status=$?
11289    case x$lt_status in
11290      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11291      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11292      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11293    esac
11294  else :
11295    # compilation failed
11296    lt_cv_dlopen_self_static=no
11297  fi
11298fi
11299rm -fr conftest*
11300
11301
11302fi
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11304$as_echo "$lt_cv_dlopen_self_static" >&6; }
11305    fi
11306
11307    CPPFLAGS="$save_CPPFLAGS"
11308    LDFLAGS="$save_LDFLAGS"
11309    LIBS="$save_LIBS"
11310    ;;
11311  esac
11312
11313  case $lt_cv_dlopen_self in
11314  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11315  *) enable_dlopen_self=unknown ;;
11316  esac
11317
11318  case $lt_cv_dlopen_self_static in
11319  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11320  *) enable_dlopen_self_static=unknown ;;
11321  esac
11322fi
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340striplib=
11341old_striplib=
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11343$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11344if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11345  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11346  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11348$as_echo "yes" >&6; }
11349else
11350# FIXME - insert some real tests, host_os isn't really good enough
11351  case $host_os in
11352  darwin*)
11353    if test -n "$STRIP" ; then
11354      striplib="$STRIP -x"
11355      old_striplib="$STRIP -S"
11356      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11357$as_echo "yes" >&6; }
11358    else
11359      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360$as_echo "no" >&6; }
11361    fi
11362    ;;
11363  *)
11364    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365$as_echo "no" >&6; }
11366    ;;
11367  esac
11368fi
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381  # Report which library types will actually be built
11382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11383$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11385$as_echo "$can_build_shared" >&6; }
11386
11387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11388$as_echo_n "checking whether to build shared libraries... " >&6; }
11389  test "$can_build_shared" = "no" && enable_shared=no
11390
11391  # On AIX, shared libraries and static libraries use the same namespace, and
11392  # are all built from PIC.
11393  case $host_os in
11394  aix3*)
11395    test "$enable_shared" = yes && enable_static=no
11396    if test -n "$RANLIB"; then
11397      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11398      postinstall_cmds='$RANLIB $lib'
11399    fi
11400    ;;
11401
11402  aix[4-9]*)
11403    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11404      test "$enable_shared" = yes && enable_static=no
11405    fi
11406    ;;
11407  esac
11408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11409$as_echo "$enable_shared" >&6; }
11410
11411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11412$as_echo_n "checking whether to build static libraries... " >&6; }
11413  # Make sure either enable_shared or enable_static is yes.
11414  test "$enable_shared" = yes || enable_static=yes
11415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11416$as_echo "$enable_static" >&6; }
11417
11418
11419
11420
11421fi
11422ac_ext=c
11423ac_cpp='$CPP $CPPFLAGS'
11424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426ac_compiler_gnu=$ac_cv_c_compiler_gnu
11427
11428CC="$lt_save_CC"
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442        ac_config_commands="$ac_config_commands libtool"
11443
11444
11445
11446
11447# Only expand once:
11448
11449
11450
11451ac_ext=cpp
11452ac_cpp='$CXXCPP $CPPFLAGS'
11453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11456if test -z "$CXX"; then
11457  if test -n "$CCC"; then
11458    CXX=$CCC
11459  else
11460    if test -n "$ac_tool_prefix"; then
11461  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11462  do
11463    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11464set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466$as_echo_n "checking for $ac_word... " >&6; }
11467if ${ac_cv_prog_CXX+:} false; then :
11468  $as_echo_n "(cached) " >&6
11469else
11470  if test -n "$CXX"; then
11471  ac_cv_prog_CXX="$CXX" # Let the user override the test.
11472else
11473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474for as_dir in $PATH
11475do
11476  IFS=$as_save_IFS
11477  test -z "$as_dir" && as_dir=.
11478    for ac_exec_ext in '' $ac_executable_extensions; do
11479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11480    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482    break 2
11483  fi
11484done
11485  done
11486IFS=$as_save_IFS
11487
11488fi
11489fi
11490CXX=$ac_cv_prog_CXX
11491if test -n "$CXX"; then
11492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11493$as_echo "$CXX" >&6; }
11494else
11495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496$as_echo "no" >&6; }
11497fi
11498
11499
11500    test -n "$CXX" && break
11501  done
11502fi
11503if test -z "$CXX"; then
11504  ac_ct_CXX=$CXX
11505  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11506do
11507  # Extract the first word of "$ac_prog", so it can be a program name with args.
11508set dummy $ac_prog; ac_word=$2
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510$as_echo_n "checking for $ac_word... " >&6; }
11511if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11512  $as_echo_n "(cached) " >&6
11513else
11514  if test -n "$ac_ct_CXX"; then
11515  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11516else
11517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518for as_dir in $PATH
11519do
11520  IFS=$as_save_IFS
11521  test -z "$as_dir" && as_dir=.
11522    for ac_exec_ext in '' $ac_executable_extensions; do
11523  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11524    ac_cv_prog_ac_ct_CXX="$ac_prog"
11525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11526    break 2
11527  fi
11528done
11529  done
11530IFS=$as_save_IFS
11531
11532fi
11533fi
11534ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11535if test -n "$ac_ct_CXX"; then
11536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11537$as_echo "$ac_ct_CXX" >&6; }
11538else
11539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540$as_echo "no" >&6; }
11541fi
11542
11543
11544  test -n "$ac_ct_CXX" && break
11545done
11546
11547  if test "x$ac_ct_CXX" = x; then
11548    CXX="g++"
11549  else
11550    case $cross_compiling:$ac_tool_warned in
11551yes:)
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11554ac_tool_warned=yes ;;
11555esac
11556    CXX=$ac_ct_CXX
11557  fi
11558fi
11559
11560  fi
11561fi
11562# Provide some information about the compiler.
11563$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11564set X $ac_compile
11565ac_compiler=$2
11566for ac_option in --version -v -V -qversion; do
11567  { { ac_try="$ac_compiler $ac_option >&5"
11568case "(($ac_try" in
11569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570  *) ac_try_echo=$ac_try;;
11571esac
11572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11573$as_echo "$ac_try_echo"; } >&5
11574  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11575  ac_status=$?
11576  if test -s conftest.err; then
11577    sed '10a\
11578... rest of stderr output deleted ...
11579         10q' conftest.err >conftest.er1
11580    cat conftest.er1 >&5
11581  fi
11582  rm -f conftest.er1 conftest.err
11583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11584  test $ac_status = 0; }
11585done
11586
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11588$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11589if ${ac_cv_cxx_compiler_gnu+:} false; then :
11590  $as_echo_n "(cached) " >&6
11591else
11592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593/* end confdefs.h.  */
11594
11595int
11596main ()
11597{
11598#ifndef __GNUC__
11599       choke me
11600#endif
11601
11602  ;
11603  return 0;
11604}
11605_ACEOF
11606if ac_fn_cxx_try_compile "$LINENO"; then :
11607  ac_compiler_gnu=yes
11608else
11609  ac_compiler_gnu=no
11610fi
11611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11612ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11613
11614fi
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11616$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11617if test $ac_compiler_gnu = yes; then
11618  GXX=yes
11619else
11620  GXX=
11621fi
11622ac_test_CXXFLAGS=${CXXFLAGS+set}
11623ac_save_CXXFLAGS=$CXXFLAGS
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11625$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11626if ${ac_cv_prog_cxx_g+:} false; then :
11627  $as_echo_n "(cached) " >&6
11628else
11629  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11630   ac_cxx_werror_flag=yes
11631   ac_cv_prog_cxx_g=no
11632   CXXFLAGS="-g"
11633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634/* end confdefs.h.  */
11635
11636int
11637main ()
11638{
11639
11640  ;
11641  return 0;
11642}
11643_ACEOF
11644if ac_fn_cxx_try_compile "$LINENO"; then :
11645  ac_cv_prog_cxx_g=yes
11646else
11647  CXXFLAGS=""
11648      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649/* end confdefs.h.  */
11650
11651int
11652main ()
11653{
11654
11655  ;
11656  return 0;
11657}
11658_ACEOF
11659if ac_fn_cxx_try_compile "$LINENO"; then :
11660
11661else
11662  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11663	 CXXFLAGS="-g"
11664	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665/* end confdefs.h.  */
11666
11667int
11668main ()
11669{
11670
11671  ;
11672  return 0;
11673}
11674_ACEOF
11675if ac_fn_cxx_try_compile "$LINENO"; then :
11676  ac_cv_prog_cxx_g=yes
11677fi
11678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11679fi
11680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11681fi
11682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11684fi
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11686$as_echo "$ac_cv_prog_cxx_g" >&6; }
11687if test "$ac_test_CXXFLAGS" = set; then
11688  CXXFLAGS=$ac_save_CXXFLAGS
11689elif test $ac_cv_prog_cxx_g = yes; then
11690  if test "$GXX" = yes; then
11691    CXXFLAGS="-g -O2"
11692  else
11693    CXXFLAGS="-g"
11694  fi
11695else
11696  if test "$GXX" = yes; then
11697    CXXFLAGS="-O2"
11698  else
11699    CXXFLAGS=
11700  fi
11701fi
11702ac_ext=c
11703ac_cpp='$CPP $CPPFLAGS'
11704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11706ac_compiler_gnu=$ac_cv_c_compiler_gnu
11707
11708depcc="$CXX"  am_compiler_list=
11709
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11711$as_echo_n "checking dependency style of $depcc... " >&6; }
11712if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11713  $as_echo_n "(cached) " >&6
11714else
11715  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11716  # We make a subdir and do the tests there.  Otherwise we can end up
11717  # making bogus files that we don't know about and never remove.  For
11718  # instance it was reported that on HP-UX the gcc test will end up
11719  # making a dummy file named `D' -- because `-MD' means `put the output
11720  # in D'.
11721  rm -rf conftest.dir
11722  mkdir conftest.dir
11723  # Copy depcomp to subdir because otherwise we won't find it if we're
11724  # using a relative directory.
11725  cp "$am_depcomp" conftest.dir
11726  cd conftest.dir
11727  # We will build objects and dependencies in a subdirectory because
11728  # it helps to detect inapplicable dependency modes.  For instance
11729  # both Tru64's cc and ICC support -MD to output dependencies as a
11730  # side effect of compilation, but ICC will put the dependencies in
11731  # the current directory while Tru64 will put them in the object
11732  # directory.
11733  mkdir sub
11734
11735  am_cv_CXX_dependencies_compiler_type=none
11736  if test "$am_compiler_list" = ""; then
11737     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11738  fi
11739  am__universal=false
11740  case " $depcc " in #(
11741     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11742     esac
11743
11744  for depmode in $am_compiler_list; do
11745    # Setup a source with many dependencies, because some compilers
11746    # like to wrap large dependency lists on column 80 (with \), and
11747    # we should not choose a depcomp mode which is confused by this.
11748    #
11749    # We need to recreate these files for each test, as the compiler may
11750    # overwrite some of them when testing with obscure command lines.
11751    # This happens at least with the AIX C compiler.
11752    : > sub/conftest.c
11753    for i in 1 2 3 4 5 6; do
11754      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11755      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11756      # Solaris 8's {/usr,}/bin/sh.
11757      touch sub/conftst$i.h
11758    done
11759    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11760
11761    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11762    # mode.  It turns out that the SunPro C++ compiler does not properly
11763    # handle `-M -o', and we need to detect this.  Also, some Intel
11764    # versions had trouble with output in subdirs
11765    am__obj=sub/conftest.${OBJEXT-o}
11766    am__minus_obj="-o $am__obj"
11767    case $depmode in
11768    gcc)
11769      # This depmode causes a compiler race in universal mode.
11770      test "$am__universal" = false || continue
11771      ;;
11772    nosideeffect)
11773      # after this tag, mechanisms are not by side-effect, so they'll
11774      # only be used when explicitly requested
11775      if test "x$enable_dependency_tracking" = xyes; then
11776	continue
11777      else
11778	break
11779      fi
11780      ;;
11781    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11782      # This compiler won't grok `-c -o', but also, the minuso test has
11783      # not run yet.  These depmodes are late enough in the game, and
11784      # so weak that their functioning should not be impacted.
11785      am__obj=conftest.${OBJEXT-o}
11786      am__minus_obj=
11787      ;;
11788    none) break ;;
11789    esac
11790    if depmode=$depmode \
11791       source=sub/conftest.c object=$am__obj \
11792       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11793       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11794         >/dev/null 2>conftest.err &&
11795       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11796       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11797       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11798       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11799      # icc doesn't choke on unknown options, it will just issue warnings
11800      # or remarks (even with -Werror).  So we grep stderr for any message
11801      # that says an option was ignored or not supported.
11802      # When given -MP, icc 7.0 and 7.1 complain thusly:
11803      #   icc: Command line warning: ignoring option '-M'; no argument required
11804      # The diagnosis changed in icc 8.0:
11805      #   icc: Command line remark: option '-MP' not supported
11806      if (grep 'ignoring option' conftest.err ||
11807          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11808        am_cv_CXX_dependencies_compiler_type=$depmode
11809        break
11810      fi
11811    fi
11812  done
11813
11814  cd ..
11815  rm -rf conftest.dir
11816else
11817  am_cv_CXX_dependencies_compiler_type=none
11818fi
11819
11820fi
11821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11822$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11823CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11824
11825 if
11826  test "x$enable_dependency_tracking" != xno \
11827  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11828  am__fastdepCXX_TRUE=
11829  am__fastdepCXX_FALSE='#'
11830else
11831  am__fastdepCXX_TRUE='#'
11832  am__fastdepCXX_FALSE=
11833fi
11834
11835
11836
11837
11838func_stripname_cnf ()
11839{
11840  case ${2} in
11841  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11842  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11843  esac
11844} # func_stripname_cnf
11845
11846      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11847    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11848    (test "X$CXX" != "Xg++"))) ; then
11849  ac_ext=cpp
11850ac_cpp='$CXXCPP $CPPFLAGS'
11851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11855$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11856if test -z "$CXXCPP"; then
11857  if ${ac_cv_prog_CXXCPP+:} false; then :
11858  $as_echo_n "(cached) " >&6
11859else
11860      # Double quotes because CXXCPP needs to be expanded
11861    for CXXCPP in "$CXX -E" "/lib/cpp"
11862    do
11863      ac_preproc_ok=false
11864for ac_cxx_preproc_warn_flag in '' yes
11865do
11866  # Use a header file that comes with gcc, so configuring glibc
11867  # with a fresh cross-compiler works.
11868  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11869  # <limits.h> exists even on freestanding compilers.
11870  # On the NeXT, cc -E runs the code through the compiler's parser,
11871  # not just through cpp. "Syntax error" is here to catch this case.
11872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873/* end confdefs.h.  */
11874#ifdef __STDC__
11875# include <limits.h>
11876#else
11877# include <assert.h>
11878#endif
11879		     Syntax error
11880_ACEOF
11881if ac_fn_cxx_try_cpp "$LINENO"; then :
11882
11883else
11884  # Broken: fails on valid input.
11885continue
11886fi
11887rm -f conftest.err conftest.i conftest.$ac_ext
11888
11889  # OK, works on sane cases.  Now check whether nonexistent headers
11890  # can be detected and how.
11891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892/* end confdefs.h.  */
11893#include <ac_nonexistent.h>
11894_ACEOF
11895if ac_fn_cxx_try_cpp "$LINENO"; then :
11896  # Broken: success on invalid input.
11897continue
11898else
11899  # Passes both tests.
11900ac_preproc_ok=:
11901break
11902fi
11903rm -f conftest.err conftest.i conftest.$ac_ext
11904
11905done
11906# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11907rm -f conftest.i conftest.err conftest.$ac_ext
11908if $ac_preproc_ok; then :
11909  break
11910fi
11911
11912    done
11913    ac_cv_prog_CXXCPP=$CXXCPP
11914
11915fi
11916  CXXCPP=$ac_cv_prog_CXXCPP
11917else
11918  ac_cv_prog_CXXCPP=$CXXCPP
11919fi
11920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11921$as_echo "$CXXCPP" >&6; }
11922ac_preproc_ok=false
11923for ac_cxx_preproc_warn_flag in '' yes
11924do
11925  # Use a header file that comes with gcc, so configuring glibc
11926  # with a fresh cross-compiler works.
11927  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11928  # <limits.h> exists even on freestanding compilers.
11929  # On the NeXT, cc -E runs the code through the compiler's parser,
11930  # not just through cpp. "Syntax error" is here to catch this case.
11931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932/* end confdefs.h.  */
11933#ifdef __STDC__
11934# include <limits.h>
11935#else
11936# include <assert.h>
11937#endif
11938		     Syntax error
11939_ACEOF
11940if ac_fn_cxx_try_cpp "$LINENO"; then :
11941
11942else
11943  # Broken: fails on valid input.
11944continue
11945fi
11946rm -f conftest.err conftest.i conftest.$ac_ext
11947
11948  # OK, works on sane cases.  Now check whether nonexistent headers
11949  # can be detected and how.
11950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951/* end confdefs.h.  */
11952#include <ac_nonexistent.h>
11953_ACEOF
11954if ac_fn_cxx_try_cpp "$LINENO"; then :
11955  # Broken: success on invalid input.
11956continue
11957else
11958  # Passes both tests.
11959ac_preproc_ok=:
11960break
11961fi
11962rm -f conftest.err conftest.i conftest.$ac_ext
11963
11964done
11965# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11966rm -f conftest.i conftest.err conftest.$ac_ext
11967if $ac_preproc_ok; then :
11968
11969else
11970  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11972as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11973See \`config.log' for more details" "$LINENO" 5; }
11974fi
11975
11976ac_ext=c
11977ac_cpp='$CPP $CPPFLAGS'
11978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11980ac_compiler_gnu=$ac_cv_c_compiler_gnu
11981
11982else
11983  _lt_caught_CXX_error=yes
11984fi
11985
11986ac_ext=cpp
11987ac_cpp='$CXXCPP $CPPFLAGS'
11988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11991
11992archive_cmds_need_lc_CXX=no
11993allow_undefined_flag_CXX=
11994always_export_symbols_CXX=no
11995archive_expsym_cmds_CXX=
11996compiler_needs_object_CXX=no
11997export_dynamic_flag_spec_CXX=
11998hardcode_direct_CXX=no
11999hardcode_direct_absolute_CXX=no
12000hardcode_libdir_flag_spec_CXX=
12001hardcode_libdir_flag_spec_ld_CXX=
12002hardcode_libdir_separator_CXX=
12003hardcode_minus_L_CXX=no
12004hardcode_shlibpath_var_CXX=unsupported
12005hardcode_automatic_CXX=no
12006inherit_rpath_CXX=no
12007module_cmds_CXX=
12008module_expsym_cmds_CXX=
12009link_all_deplibs_CXX=unknown
12010old_archive_cmds_CXX=$old_archive_cmds
12011reload_flag_CXX=$reload_flag
12012reload_cmds_CXX=$reload_cmds
12013no_undefined_flag_CXX=
12014whole_archive_flag_spec_CXX=
12015enable_shared_with_static_runtimes_CXX=no
12016
12017# Source file extension for C++ test sources.
12018ac_ext=cpp
12019
12020# Object file extension for compiled C++ test sources.
12021objext=o
12022objext_CXX=$objext
12023
12024# No sense in running all these tests if we already determined that
12025# the CXX compiler isn't working.  Some variables (like enable_shared)
12026# are currently assumed to apply to all compilers on this platform,
12027# and will be corrupted by setting them based on a non-working compiler.
12028if test "$_lt_caught_CXX_error" != yes; then
12029  # Code to be used in simple compile tests
12030  lt_simple_compile_test_code="int some_variable = 0;"
12031
12032  # Code to be used in simple link tests
12033  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12034
12035  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12036
12037
12038
12039
12040
12041
12042# If no C compiler was specified, use CC.
12043LTCC=${LTCC-"$CC"}
12044
12045# If no C compiler flags were specified, use CFLAGS.
12046LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12047
12048# Allow CC to be a program name with arguments.
12049compiler=$CC
12050
12051
12052  # save warnings/boilerplate of simple test code
12053  ac_outfile=conftest.$ac_objext
12054echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12055eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12056_lt_compiler_boilerplate=`cat conftest.err`
12057$RM conftest*
12058
12059  ac_outfile=conftest.$ac_objext
12060echo "$lt_simple_link_test_code" >conftest.$ac_ext
12061eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12062_lt_linker_boilerplate=`cat conftest.err`
12063$RM -r conftest*
12064
12065
12066  # Allow CC to be a program name with arguments.
12067  lt_save_CC=$CC
12068  lt_save_CFLAGS=$CFLAGS
12069  lt_save_LD=$LD
12070  lt_save_GCC=$GCC
12071  GCC=$GXX
12072  lt_save_with_gnu_ld=$with_gnu_ld
12073  lt_save_path_LD=$lt_cv_path_LD
12074  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12075    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12076  else
12077    $as_unset lt_cv_prog_gnu_ld
12078  fi
12079  if test -n "${lt_cv_path_LDCXX+set}"; then
12080    lt_cv_path_LD=$lt_cv_path_LDCXX
12081  else
12082    $as_unset lt_cv_path_LD
12083  fi
12084  test -z "${LDCXX+set}" || LD=$LDCXX
12085  CC=${CXX-"c++"}
12086  CFLAGS=$CXXFLAGS
12087  compiler=$CC
12088  compiler_CXX=$CC
12089  for cc_temp in $compiler""; do
12090  case $cc_temp in
12091    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12092    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12093    \-*) ;;
12094    *) break;;
12095  esac
12096done
12097cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12098
12099
12100  if test -n "$compiler"; then
12101    # We don't want -fno-exception when compiling C++ code, so set the
12102    # no_builtin_flag separately
12103    if test "$GXX" = yes; then
12104      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12105    else
12106      lt_prog_compiler_no_builtin_flag_CXX=
12107    fi
12108
12109    if test "$GXX" = yes; then
12110      # Set up default GNU C++ configuration
12111
12112
12113
12114# Check whether --with-gnu-ld was given.
12115if test "${with_gnu_ld+set}" = set; then :
12116  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12117else
12118  with_gnu_ld=no
12119fi
12120
12121ac_prog=ld
12122if test "$GCC" = yes; then
12123  # Check if gcc -print-prog-name=ld gives a path.
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12125$as_echo_n "checking for ld used by $CC... " >&6; }
12126  case $host in
12127  *-*-mingw*)
12128    # gcc leaves a trailing carriage return which upsets mingw
12129    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12130  *)
12131    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12132  esac
12133  case $ac_prog in
12134    # Accept absolute paths.
12135    [\\/]* | ?:[\\/]*)
12136      re_direlt='/[^/][^/]*/\.\./'
12137      # Canonicalize the pathname of ld
12138      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12139      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12140	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12141      done
12142      test -z "$LD" && LD="$ac_prog"
12143      ;;
12144  "")
12145    # If it fails, then pretend we aren't using GCC.
12146    ac_prog=ld
12147    ;;
12148  *)
12149    # If it is relative, then search for the first ld in PATH.
12150    with_gnu_ld=unknown
12151    ;;
12152  esac
12153elif test "$with_gnu_ld" = yes; then
12154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12155$as_echo_n "checking for GNU ld... " >&6; }
12156else
12157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12158$as_echo_n "checking for non-GNU ld... " >&6; }
12159fi
12160if ${lt_cv_path_LD+:} false; then :
12161  $as_echo_n "(cached) " >&6
12162else
12163  if test -z "$LD"; then
12164  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12165  for ac_dir in $PATH; do
12166    IFS="$lt_save_ifs"
12167    test -z "$ac_dir" && ac_dir=.
12168    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12169      lt_cv_path_LD="$ac_dir/$ac_prog"
12170      # Check to see if the program is GNU ld.  I'd rather use --version,
12171      # but apparently some variants of GNU ld only accept -v.
12172      # Break only if it was the GNU/non-GNU ld that we prefer.
12173      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12174      *GNU* | *'with BFD'*)
12175	test "$with_gnu_ld" != no && break
12176	;;
12177      *)
12178	test "$with_gnu_ld" != yes && break
12179	;;
12180      esac
12181    fi
12182  done
12183  IFS="$lt_save_ifs"
12184else
12185  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12186fi
12187fi
12188
12189LD="$lt_cv_path_LD"
12190if test -n "$LD"; then
12191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12192$as_echo "$LD" >&6; }
12193else
12194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195$as_echo "no" >&6; }
12196fi
12197test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12199$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12200if ${lt_cv_prog_gnu_ld+:} false; then :
12201  $as_echo_n "(cached) " >&6
12202else
12203  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12204case `$LD -v 2>&1 </dev/null` in
12205*GNU* | *'with BFD'*)
12206  lt_cv_prog_gnu_ld=yes
12207  ;;
12208*)
12209  lt_cv_prog_gnu_ld=no
12210  ;;
12211esac
12212fi
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12214$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12215with_gnu_ld=$lt_cv_prog_gnu_ld
12216
12217
12218
12219
12220
12221
12222
12223      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12224      # archiving commands below assume that GNU ld is being used.
12225      if test "$with_gnu_ld" = yes; then
12226        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12227        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'
12228
12229        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12230        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12231
12232        # If archive_cmds runs LD, not CC, wlarc should be empty
12233        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12234        #     investigate it a little bit more. (MM)
12235        wlarc='${wl}'
12236
12237        # ancient GNU ld didn't support --whole-archive et. al.
12238        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12239	  $GREP 'no-whole-archive' > /dev/null; then
12240          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12241        else
12242          whole_archive_flag_spec_CXX=
12243        fi
12244      else
12245        with_gnu_ld=no
12246        wlarc=
12247
12248        # A generic and very simple default shared library creation
12249        # command for GNU C++ for the case where it uses the native
12250        # linker, instead of GNU ld.  If possible, this setting should
12251        # overridden to take advantage of the native linker features on
12252        # the platform it is being used on.
12253        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12254      fi
12255
12256      # Commands to make compiler produce verbose output that lists
12257      # what "hidden" libraries, object files and flags are used when
12258      # linking a shared library.
12259      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12260
12261    else
12262      GXX=no
12263      with_gnu_ld=no
12264      wlarc=
12265    fi
12266
12267    # PORTME: fill in a description of your system's C++ link characteristics
12268    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12269$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12270    ld_shlibs_CXX=yes
12271    case $host_os in
12272      aix3*)
12273        # FIXME: insert proper C++ library support
12274        ld_shlibs_CXX=no
12275        ;;
12276      aix[4-9]*)
12277        if test "$host_cpu" = ia64; then
12278          # On IA64, the linker does run time linking by default, so we don't
12279          # have to do anything special.
12280          aix_use_runtimelinking=no
12281          exp_sym_flag='-Bexport'
12282          no_entry_flag=""
12283        else
12284          aix_use_runtimelinking=no
12285
12286          # Test if we are trying to use run time linking or normal
12287          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12288          # need to do runtime linking.
12289          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12290	    for ld_flag in $LDFLAGS; do
12291	      case $ld_flag in
12292	      *-brtl*)
12293	        aix_use_runtimelinking=yes
12294	        break
12295	        ;;
12296	      esac
12297	    done
12298	    ;;
12299          esac
12300
12301          exp_sym_flag='-bexport'
12302          no_entry_flag='-bnoentry'
12303        fi
12304
12305        # When large executables or shared objects are built, AIX ld can
12306        # have problems creating the table of contents.  If linking a library
12307        # or program results in "error TOC overflow" add -mminimal-toc to
12308        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12309        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12310
12311        archive_cmds_CXX=''
12312        hardcode_direct_CXX=yes
12313        hardcode_direct_absolute_CXX=yes
12314        hardcode_libdir_separator_CXX=':'
12315        link_all_deplibs_CXX=yes
12316        file_list_spec_CXX='${wl}-f,'
12317
12318        if test "$GXX" = yes; then
12319          case $host_os in aix4.[012]|aix4.[012].*)
12320          # We only want to do this on AIX 4.2 and lower, the check
12321          # below for broken collect2 doesn't work under 4.3+
12322	  collect2name=`${CC} -print-prog-name=collect2`
12323	  if test -f "$collect2name" &&
12324	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12325	  then
12326	    # We have reworked collect2
12327	    :
12328	  else
12329	    # We have old collect2
12330	    hardcode_direct_CXX=unsupported
12331	    # It fails to find uninstalled libraries when the uninstalled
12332	    # path is not listed in the libpath.  Setting hardcode_minus_L
12333	    # to unsupported forces relinking
12334	    hardcode_minus_L_CXX=yes
12335	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12336	    hardcode_libdir_separator_CXX=
12337	  fi
12338          esac
12339          shared_flag='-shared'
12340	  if test "$aix_use_runtimelinking" = yes; then
12341	    shared_flag="$shared_flag "'${wl}-G'
12342	  fi
12343	  link_all_deplibs_CXX=no
12344        else
12345          # not using gcc
12346          if test "$host_cpu" = ia64; then
12347	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12348	  # chokes on -Wl,-G. The following line is correct:
12349	  shared_flag='-G'
12350          else
12351	    if test "$aix_use_runtimelinking" = yes; then
12352	      shared_flag='${wl}-G'
12353	    else
12354	      shared_flag='${wl}-bM:SRE'
12355	    fi
12356          fi
12357        fi
12358
12359        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12360        # It seems that -bexpall does not export symbols beginning with
12361        # underscore (_), so it is better to generate a list of symbols to
12362	# export.
12363        always_export_symbols_CXX=yes
12364        if test "$aix_use_runtimelinking" = yes; then
12365          # Warning - without using the other runtime loading flags (-brtl),
12366          # -berok will link without error, but may produce a broken library.
12367          allow_undefined_flag_CXX='-berok'
12368          # Determine the default libpath from the value encoded in an empty
12369          # executable.
12370          if test "${lt_cv_aix_libpath+set}" = set; then
12371  aix_libpath=$lt_cv_aix_libpath
12372else
12373  if ${lt_cv_aix_libpath__CXX+:} false; then :
12374  $as_echo_n "(cached) " >&6
12375else
12376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377/* end confdefs.h.  */
12378
12379int
12380main ()
12381{
12382
12383  ;
12384  return 0;
12385}
12386_ACEOF
12387if ac_fn_cxx_try_link "$LINENO"; then :
12388
12389  lt_aix_libpath_sed='
12390      /Import File Strings/,/^$/ {
12391	  /^0/ {
12392	      s/^0  *\([^ ]*\) *$/\1/
12393	      p
12394	  }
12395      }'
12396  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12397  # Check for a 64-bit object if we didn't find anything.
12398  if test -z "$lt_cv_aix_libpath__CXX"; then
12399    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12400  fi
12401fi
12402rm -f core conftest.err conftest.$ac_objext \
12403    conftest$ac_exeext conftest.$ac_ext
12404  if test -z "$lt_cv_aix_libpath__CXX"; then
12405    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12406  fi
12407
12408fi
12409
12410  aix_libpath=$lt_cv_aix_libpath__CXX
12411fi
12412
12413          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12414
12415          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"
12416        else
12417          if test "$host_cpu" = ia64; then
12418	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12419	    allow_undefined_flag_CXX="-z nodefs"
12420	    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"
12421          else
12422	    # Determine the default libpath from the value encoded in an
12423	    # empty executable.
12424	    if test "${lt_cv_aix_libpath+set}" = set; then
12425  aix_libpath=$lt_cv_aix_libpath
12426else
12427  if ${lt_cv_aix_libpath__CXX+:} false; then :
12428  $as_echo_n "(cached) " >&6
12429else
12430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431/* end confdefs.h.  */
12432
12433int
12434main ()
12435{
12436
12437  ;
12438  return 0;
12439}
12440_ACEOF
12441if ac_fn_cxx_try_link "$LINENO"; then :
12442
12443  lt_aix_libpath_sed='
12444      /Import File Strings/,/^$/ {
12445	  /^0/ {
12446	      s/^0  *\([^ ]*\) *$/\1/
12447	      p
12448	  }
12449      }'
12450  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12451  # Check for a 64-bit object if we didn't find anything.
12452  if test -z "$lt_cv_aix_libpath__CXX"; then
12453    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12454  fi
12455fi
12456rm -f core conftest.err conftest.$ac_objext \
12457    conftest$ac_exeext conftest.$ac_ext
12458  if test -z "$lt_cv_aix_libpath__CXX"; then
12459    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12460  fi
12461
12462fi
12463
12464  aix_libpath=$lt_cv_aix_libpath__CXX
12465fi
12466
12467	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12468	    # Warning - without using the other run time loading flags,
12469	    # -berok will link without error, but may produce a broken library.
12470	    no_undefined_flag_CXX=' ${wl}-bernotok'
12471	    allow_undefined_flag_CXX=' ${wl}-berok'
12472	    if test "$with_gnu_ld" = yes; then
12473	      # We only use this code for GNU lds that support --whole-archive.
12474	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12475	    else
12476	      # Exported symbols can be pulled into shared objects from archives
12477	      whole_archive_flag_spec_CXX='$convenience'
12478	    fi
12479	    archive_cmds_need_lc_CXX=yes
12480	    # This is similar to how AIX traditionally builds its shared
12481	    # libraries.
12482	    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'
12483          fi
12484        fi
12485        ;;
12486
12487      beos*)
12488	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12489	  allow_undefined_flag_CXX=unsupported
12490	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12491	  # support --undefined.  This deserves some investigation.  FIXME
12492	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12493	else
12494	  ld_shlibs_CXX=no
12495	fi
12496	;;
12497
12498      chorus*)
12499        case $cc_basename in
12500          *)
12501	  # FIXME: insert proper C++ library support
12502	  ld_shlibs_CXX=no
12503	  ;;
12504        esac
12505        ;;
12506
12507      cygwin* | mingw* | pw32* | cegcc*)
12508	case $GXX,$cc_basename in
12509	,cl* | no,cl*)
12510	  # Native MSVC
12511	  # hardcode_libdir_flag_spec is actually meaningless, as there is
12512	  # no search path for DLLs.
12513	  hardcode_libdir_flag_spec_CXX=' '
12514	  allow_undefined_flag_CXX=unsupported
12515	  always_export_symbols_CXX=yes
12516	  file_list_spec_CXX='@'
12517	  # Tell ltmain to make .lib files, not .a files.
12518	  libext=lib
12519	  # Tell ltmain to make .dll files, not .so files.
12520	  shrext_cmds=".dll"
12521	  # FIXME: Setting linknames here is a bad hack.
12522	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12523	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12524	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12525	    else
12526	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12527	    fi~
12528	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12529	    linknames='
12530	  # The linker will not automatically build a static lib if we build a DLL.
12531	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12532	  enable_shared_with_static_runtimes_CXX=yes
12533	  # Don't use ranlib
12534	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
12535	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12536	    lt_tool_outputfile="@TOOL_OUTPUT@"~
12537	    case $lt_outputfile in
12538	      *.exe|*.EXE) ;;
12539	      *)
12540		lt_outputfile="$lt_outputfile.exe"
12541		lt_tool_outputfile="$lt_tool_outputfile.exe"
12542		;;
12543	    esac~
12544	    func_to_tool_file "$lt_outputfile"~
12545	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12546	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12547	      $RM "$lt_outputfile.manifest";
12548	    fi'
12549	  ;;
12550	*)
12551	  # g++
12552	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12553	  # as there is no search path for DLLs.
12554	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12555	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12556	  allow_undefined_flag_CXX=unsupported
12557	  always_export_symbols_CXX=no
12558	  enable_shared_with_static_runtimes_CXX=yes
12559
12560	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12561	    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'
12562	    # If the export-symbols file already is a .def file (1st line
12563	    # is EXPORTS), use it as is; otherwise, prepend...
12564	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12565	      cp $export_symbols $output_objdir/$soname.def;
12566	    else
12567	      echo EXPORTS > $output_objdir/$soname.def;
12568	      cat $export_symbols >> $output_objdir/$soname.def;
12569	    fi~
12570	    $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'
12571	  else
12572	    ld_shlibs_CXX=no
12573	  fi
12574	  ;;
12575	esac
12576	;;
12577      darwin* | rhapsody*)
12578
12579
12580  archive_cmds_need_lc_CXX=no
12581  hardcode_direct_CXX=no
12582  hardcode_automatic_CXX=yes
12583  hardcode_shlibpath_var_CXX=unsupported
12584  if test "$lt_cv_ld_force_load" = "yes"; then
12585    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\"`'
12586  else
12587    whole_archive_flag_spec_CXX=''
12588  fi
12589  link_all_deplibs_CXX=yes
12590  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12591  case $cc_basename in
12592     ifort*) _lt_dar_can_shared=yes ;;
12593     *) _lt_dar_can_shared=$GCC ;;
12594  esac
12595  if test "$_lt_dar_can_shared" = "yes"; then
12596    output_verbose_link_cmd=func_echo_all
12597    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}"
12598    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12599    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}"
12600    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}"
12601       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12602      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}"
12603      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}"
12604    fi
12605
12606  else
12607  ld_shlibs_CXX=no
12608  fi
12609
12610	;;
12611
12612      dgux*)
12613        case $cc_basename in
12614          ec++*)
12615	    # FIXME: insert proper C++ library support
12616	    ld_shlibs_CXX=no
12617	    ;;
12618          ghcx*)
12619	    # Green Hills C++ Compiler
12620	    # FIXME: insert proper C++ library support
12621	    ld_shlibs_CXX=no
12622	    ;;
12623          *)
12624	    # FIXME: insert proper C++ library support
12625	    ld_shlibs_CXX=no
12626	    ;;
12627        esac
12628        ;;
12629
12630      freebsd[12]*)
12631        # C++ shared libraries reported to be fairly broken before
12632	# switch to ELF
12633        ld_shlibs_CXX=no
12634        ;;
12635
12636      freebsd-elf*)
12637        archive_cmds_need_lc_CXX=no
12638        ;;
12639
12640      freebsd* | dragonfly*)
12641        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12642        # conventions
12643        ld_shlibs_CXX=yes
12644        ;;
12645
12646      gnu*)
12647        ;;
12648
12649      haiku*)
12650        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12651        link_all_deplibs_CXX=yes
12652        ;;
12653
12654      hpux9*)
12655        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12656        hardcode_libdir_separator_CXX=:
12657        export_dynamic_flag_spec_CXX='${wl}-E'
12658        hardcode_direct_CXX=yes
12659        hardcode_minus_L_CXX=yes # Not in the search PATH,
12660				             # but as the default
12661				             # location of the library.
12662
12663        case $cc_basename in
12664          CC*)
12665            # FIXME: insert proper C++ library support
12666            ld_shlibs_CXX=no
12667            ;;
12668          aCC*)
12669            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'
12670            # Commands to make compiler produce verbose output that lists
12671            # what "hidden" libraries, object files and flags are used when
12672            # linking a shared library.
12673            #
12674            # There doesn't appear to be a way to prevent this compiler from
12675            # explicitly linking system object files so we need to strip them
12676            # from the output so that they don't get included in the library
12677            # dependencies.
12678            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"'
12679            ;;
12680          *)
12681            if test "$GXX" = yes; then
12682              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'
12683            else
12684              # FIXME: insert proper C++ library support
12685              ld_shlibs_CXX=no
12686            fi
12687            ;;
12688        esac
12689        ;;
12690
12691      hpux10*|hpux11*)
12692        if test $with_gnu_ld = no; then
12693	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12694	  hardcode_libdir_separator_CXX=:
12695
12696          case $host_cpu in
12697            hppa*64*|ia64*)
12698              ;;
12699            *)
12700	      export_dynamic_flag_spec_CXX='${wl}-E'
12701              ;;
12702          esac
12703        fi
12704        case $host_cpu in
12705          hppa*64*|ia64*)
12706            hardcode_direct_CXX=no
12707            hardcode_shlibpath_var_CXX=no
12708            ;;
12709          *)
12710            hardcode_direct_CXX=yes
12711            hardcode_direct_absolute_CXX=yes
12712            hardcode_minus_L_CXX=yes # Not in the search PATH,
12713					         # but as the default
12714					         # location of the library.
12715            ;;
12716        esac
12717
12718        case $cc_basename in
12719          CC*)
12720	    # FIXME: insert proper C++ library support
12721	    ld_shlibs_CXX=no
12722	    ;;
12723          aCC*)
12724	    case $host_cpu in
12725	      hppa*64*)
12726	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12727	        ;;
12728	      ia64*)
12729	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12730	        ;;
12731	      *)
12732	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12733	        ;;
12734	    esac
12735	    # Commands to make compiler produce verbose output that lists
12736	    # what "hidden" libraries, object files and flags are used when
12737	    # linking a shared library.
12738	    #
12739	    # There doesn't appear to be a way to prevent this compiler from
12740	    # explicitly linking system object files so we need to strip them
12741	    # from the output so that they don't get included in the library
12742	    # dependencies.
12743	    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"'
12744	    ;;
12745          *)
12746	    if test "$GXX" = yes; then
12747	      if test $with_gnu_ld = no; then
12748	        case $host_cpu in
12749	          hppa*64*)
12750	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12751	            ;;
12752	          ia64*)
12753	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12754	            ;;
12755	          *)
12756	            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'
12757	            ;;
12758	        esac
12759	      fi
12760	    else
12761	      # FIXME: insert proper C++ library support
12762	      ld_shlibs_CXX=no
12763	    fi
12764	    ;;
12765        esac
12766        ;;
12767
12768      interix[3-9]*)
12769	hardcode_direct_CXX=no
12770	hardcode_shlibpath_var_CXX=no
12771	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12772	export_dynamic_flag_spec_CXX='${wl}-E'
12773	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12774	# Instead, shared libraries are loaded at an image base (0x10000000 by
12775	# default) and relocated if they conflict, which is a slow very memory
12776	# consuming and fragmenting process.  To avoid this, we pick a random,
12777	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12778	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12779	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'
12780	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'
12781	;;
12782      irix5* | irix6*)
12783        case $cc_basename in
12784          CC*)
12785	    # SGI C++
12786	    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'
12787
12788	    # Archives containing C++ object files must be created using
12789	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12790	    # necessary to make sure instantiated templates are included
12791	    # in the archive.
12792	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12793	    ;;
12794          *)
12795	    if test "$GXX" = yes; then
12796	      if test "$with_gnu_ld" = no; then
12797	        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'
12798	      else
12799	        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'
12800	      fi
12801	    fi
12802	    link_all_deplibs_CXX=yes
12803	    ;;
12804        esac
12805        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12806        hardcode_libdir_separator_CXX=:
12807        inherit_rpath_CXX=yes
12808        ;;
12809
12810      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12811        case $cc_basename in
12812          KCC*)
12813	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12814
12815	    # KCC will only create a shared library if the output file
12816	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12817	    # to its proper name (with version) after linking.
12818	    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'
12819	    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'
12820	    # Commands to make compiler produce verbose output that lists
12821	    # what "hidden" libraries, object files and flags are used when
12822	    # linking a shared library.
12823	    #
12824	    # There doesn't appear to be a way to prevent this compiler from
12825	    # explicitly linking system object files so we need to strip them
12826	    # from the output so that they don't get included in the library
12827	    # dependencies.
12828	    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"'
12829
12830	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12831	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12832
12833	    # Archives containing C++ object files must be created using
12834	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12835	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12836	    ;;
12837	  icpc* | ecpc* )
12838	    # Intel C++
12839	    with_gnu_ld=yes
12840	    # version 8.0 and above of icpc choke on multiply defined symbols
12841	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12842	    # earlier do not add the objects themselves.
12843	    case `$CC -V 2>&1` in
12844	      *"Version 7."*)
12845	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846		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'
12847		;;
12848	      *)  # Version 8.0 or newer
12849	        tmp_idyn=
12850	        case $host_cpu in
12851		  ia64*) tmp_idyn=' -i_dynamic';;
12852		esac
12853	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12854		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'
12855		;;
12856	    esac
12857	    archive_cmds_need_lc_CXX=no
12858	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12859	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12860	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12861	    ;;
12862          pgCC* | pgcpp*)
12863            # Portland Group C++ compiler
12864	    case `$CC -V` in
12865	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12866	      prelink_cmds_CXX='tpldir=Template.dir~
12867		rm -rf $tpldir~
12868		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12869		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12870	      old_archive_cmds_CXX='tpldir=Template.dir~
12871		rm -rf $tpldir~
12872		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12873		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12874		$RANLIB $oldlib'
12875	      archive_cmds_CXX='tpldir=Template.dir~
12876		rm -rf $tpldir~
12877		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12878		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12879	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12880		rm -rf $tpldir~
12881		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12882		$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'
12883	      ;;
12884	    *) # Version 6 and above use weak symbols
12885	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12886	      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'
12887	      ;;
12888	    esac
12889
12890	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12891	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12892	    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'
12893            ;;
12894	  cxx*)
12895	    # Compaq C++
12896	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12897	    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'
12898
12899	    runpath_var=LD_RUN_PATH
12900	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12901	    hardcode_libdir_separator_CXX=:
12902
12903	    # Commands to make compiler produce verbose output that lists
12904	    # what "hidden" libraries, object files and flags are used when
12905	    # linking a shared library.
12906	    #
12907	    # There doesn't appear to be a way to prevent this compiler from
12908	    # explicitly linking system object files so we need to strip them
12909	    # from the output so that they don't get included in the library
12910	    # dependencies.
12911	    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'
12912	    ;;
12913	  xl* | mpixl* | bgxl*)
12914	    # IBM XL 8.0 on PPC, with GNU ld
12915	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12916	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12917	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12918	    if test "x$supports_anon_versioning" = xyes; then
12919	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12920		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12921		echo "local: *; };" >> $output_objdir/$libname.ver~
12922		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12923	    fi
12924	    ;;
12925	  *)
12926	    case `$CC -V 2>&1 | sed 5q` in
12927	    *Sun\ C*)
12928	      # Sun C++ 5.9
12929	      no_undefined_flag_CXX=' -zdefs'
12930	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12931	      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'
12932	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12933	      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'
12934	      compiler_needs_object_CXX=yes
12935
12936	      # Not sure whether something based on
12937	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12938	      # would be better.
12939	      output_verbose_link_cmd='func_echo_all'
12940
12941	      # Archives containing C++ object files must be created using
12942	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12943	      # necessary to make sure instantiated templates are included
12944	      # in the archive.
12945	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12946	      ;;
12947	    esac
12948	    ;;
12949	esac
12950	;;
12951
12952      lynxos*)
12953        # FIXME: insert proper C++ library support
12954	ld_shlibs_CXX=no
12955	;;
12956
12957      m88k*)
12958        # FIXME: insert proper C++ library support
12959        ld_shlibs_CXX=no
12960	;;
12961
12962      mvs*)
12963        case $cc_basename in
12964          cxx*)
12965	    # FIXME: insert proper C++ library support
12966	    ld_shlibs_CXX=no
12967	    ;;
12968	  *)
12969	    # FIXME: insert proper C++ library support
12970	    ld_shlibs_CXX=no
12971	    ;;
12972	esac
12973	;;
12974
12975      netbsd*)
12976        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12977	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12978	  wlarc=
12979	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12980	  hardcode_direct_CXX=yes
12981	  hardcode_shlibpath_var_CXX=no
12982	fi
12983	# Workaround some broken pre-1.5 toolchains
12984	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12985	;;
12986
12987      *nto* | *qnx*)
12988        ld_shlibs_CXX=yes
12989	;;
12990
12991      openbsd2*)
12992        # C++ shared libraries are fairly broken
12993	ld_shlibs_CXX=no
12994	;;
12995
12996      openbsd*)
12997	if test -f /usr/libexec/ld.so; then
12998	  hardcode_direct_CXX=yes
12999	  hardcode_shlibpath_var_CXX=no
13000	  hardcode_direct_absolute_CXX=yes
13001	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13002	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13003	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13004	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13005	    export_dynamic_flag_spec_CXX='${wl}-E'
13006	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13007	  fi
13008	  output_verbose_link_cmd=func_echo_all
13009	else
13010	  ld_shlibs_CXX=no
13011	fi
13012	;;
13013
13014      osf3* | osf4* | osf5*)
13015        case $cc_basename in
13016          KCC*)
13017	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13018
13019	    # KCC will only create a shared library if the output file
13020	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13021	    # to its proper name (with version) after linking.
13022	    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'
13023
13024	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13025	    hardcode_libdir_separator_CXX=:
13026
13027	    # Archives containing C++ object files must be created using
13028	    # the KAI C++ compiler.
13029	    case $host in
13030	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13031	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13032	    esac
13033	    ;;
13034          RCC*)
13035	    # Rational C++ 2.4.1
13036	    # FIXME: insert proper C++ library support
13037	    ld_shlibs_CXX=no
13038	    ;;
13039          cxx*)
13040	    case $host in
13041	      osf3*)
13042	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13043	        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'
13044	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13045		;;
13046	      *)
13047	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13048	        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'
13049	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13050	          echo "-hidden">> $lib.exp~
13051	          $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~
13052	          $RM $lib.exp'
13053	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13054		;;
13055	    esac
13056
13057	    hardcode_libdir_separator_CXX=:
13058
13059	    # Commands to make compiler produce verbose output that lists
13060	    # what "hidden" libraries, object files and flags are used when
13061	    # linking a shared library.
13062	    #
13063	    # There doesn't appear to be a way to prevent this compiler from
13064	    # explicitly linking system object files so we need to strip them
13065	    # from the output so that they don't get included in the library
13066	    # dependencies.
13067	    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"'
13068	    ;;
13069	  *)
13070	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13071	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13072	      case $host in
13073	        osf3*)
13074	          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'
13075		  ;;
13076	        *)
13077	          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'
13078		  ;;
13079	      esac
13080
13081	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13082	      hardcode_libdir_separator_CXX=:
13083
13084	      # Commands to make compiler produce verbose output that lists
13085	      # what "hidden" libraries, object files and flags are used when
13086	      # linking a shared library.
13087	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13088
13089	    else
13090	      # FIXME: insert proper C++ library support
13091	      ld_shlibs_CXX=no
13092	    fi
13093	    ;;
13094        esac
13095        ;;
13096
13097      psos*)
13098        # FIXME: insert proper C++ library support
13099        ld_shlibs_CXX=no
13100        ;;
13101
13102      sunos4*)
13103        case $cc_basename in
13104          CC*)
13105	    # Sun C++ 4.x
13106	    # FIXME: insert proper C++ library support
13107	    ld_shlibs_CXX=no
13108	    ;;
13109          lcc*)
13110	    # Lucid
13111	    # FIXME: insert proper C++ library support
13112	    ld_shlibs_CXX=no
13113	    ;;
13114          *)
13115	    # FIXME: insert proper C++ library support
13116	    ld_shlibs_CXX=no
13117	    ;;
13118        esac
13119        ;;
13120
13121      solaris*)
13122        case $cc_basename in
13123          CC* | sunCC*)
13124	    # Sun C++ 4.2, 5.x and Centerline C++
13125            archive_cmds_need_lc_CXX=yes
13126	    no_undefined_flag_CXX=' -zdefs'
13127	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13128	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13129	      $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'
13130
13131	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13132	    hardcode_shlibpath_var_CXX=no
13133	    case $host_os in
13134	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13135	      *)
13136		# The compiler driver will combine and reorder linker options,
13137		# but understands `-z linker_flag'.
13138	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13139		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13140	        ;;
13141	    esac
13142	    link_all_deplibs_CXX=yes
13143
13144	    output_verbose_link_cmd='func_echo_all'
13145
13146	    # Archives containing C++ object files must be created using
13147	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13148	    # necessary to make sure instantiated templates are included
13149	    # in the archive.
13150	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13151	    ;;
13152          gcx*)
13153	    # Green Hills C++ Compiler
13154	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13155
13156	    # The C++ compiler must be used to create the archive.
13157	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13158	    ;;
13159          *)
13160	    # GNU C++ compiler with Solaris linker
13161	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13162	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13163	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13164	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13165	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13166		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13167
13168	        # Commands to make compiler produce verbose output that lists
13169	        # what "hidden" libraries, object files and flags are used when
13170	        # linking a shared library.
13171	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13172	      else
13173	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13174	        # platform.
13175	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13176	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13177		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13178
13179	        # Commands to make compiler produce verbose output that lists
13180	        # what "hidden" libraries, object files and flags are used when
13181	        # linking a shared library.
13182	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13183	      fi
13184
13185	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13186	      case $host_os in
13187		solaris2.[0-5] | solaris2.[0-5].*) ;;
13188		*)
13189		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13190		  ;;
13191	      esac
13192	    fi
13193	    ;;
13194        esac
13195        ;;
13196
13197    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13198      no_undefined_flag_CXX='${wl}-z,text'
13199      archive_cmds_need_lc_CXX=no
13200      hardcode_shlibpath_var_CXX=no
13201      runpath_var='LD_RUN_PATH'
13202
13203      case $cc_basename in
13204        CC*)
13205	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13206	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13207	  ;;
13208	*)
13209	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13210	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13211	  ;;
13212      esac
13213      ;;
13214
13215      sysv5* | sco3.2v5* | sco5v6*)
13216	# Note: We can NOT use -z defs as we might desire, because we do not
13217	# link with -lc, and that would cause any symbols used from libc to
13218	# always be unresolved, which means just about no library would
13219	# ever link correctly.  If we're not using GNU ld we use -z text
13220	# though, which does catch some bad symbols but isn't as heavy-handed
13221	# as -z defs.
13222	no_undefined_flag_CXX='${wl}-z,text'
13223	allow_undefined_flag_CXX='${wl}-z,nodefs'
13224	archive_cmds_need_lc_CXX=no
13225	hardcode_shlibpath_var_CXX=no
13226	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13227	hardcode_libdir_separator_CXX=':'
13228	link_all_deplibs_CXX=yes
13229	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13230	runpath_var='LD_RUN_PATH'
13231
13232	case $cc_basename in
13233          CC*)
13234	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13235	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13236	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13237	      '"$old_archive_cmds_CXX"
13238	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13239	      '"$reload_cmds_CXX"
13240	    ;;
13241	  *)
13242	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13243	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13244	    ;;
13245	esac
13246      ;;
13247
13248      tandem*)
13249        case $cc_basename in
13250          NCC*)
13251	    # NonStop-UX NCC 3.20
13252	    # FIXME: insert proper C++ library support
13253	    ld_shlibs_CXX=no
13254	    ;;
13255          *)
13256	    # FIXME: insert proper C++ library support
13257	    ld_shlibs_CXX=no
13258	    ;;
13259        esac
13260        ;;
13261
13262      vxworks*)
13263        # FIXME: insert proper C++ library support
13264        ld_shlibs_CXX=no
13265        ;;
13266
13267      *)
13268        # FIXME: insert proper C++ library support
13269        ld_shlibs_CXX=no
13270        ;;
13271    esac
13272
13273    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13274$as_echo "$ld_shlibs_CXX" >&6; }
13275    test "$ld_shlibs_CXX" = no && can_build_shared=no
13276
13277    GCC_CXX="$GXX"
13278    LD_CXX="$LD"
13279
13280    ## CAVEAT EMPTOR:
13281    ## There is no encapsulation within the following macros, do not change
13282    ## the running order or otherwise move them around unless you know exactly
13283    ## what you are doing...
13284    # Dependencies to place before and after the object being linked:
13285predep_objects_CXX=
13286postdep_objects_CXX=
13287predeps_CXX=
13288postdeps_CXX=
13289compiler_lib_search_path_CXX=
13290
13291cat > conftest.$ac_ext <<_LT_EOF
13292class Foo
13293{
13294public:
13295  Foo (void) { a = 0; }
13296private:
13297  int a;
13298};
13299_LT_EOF
13300
13301
13302_lt_libdeps_save_CFLAGS=$CFLAGS
13303case "$CC $CFLAGS " in #(
13304*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13305*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13306esac
13307
13308if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13309  (eval $ac_compile) 2>&5
13310  ac_status=$?
13311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13312  test $ac_status = 0; }; then
13313  # Parse the compiler output and extract the necessary
13314  # objects, libraries and library flags.
13315
13316  # Sentinel used to keep track of whether or not we are before
13317  # the conftest object file.
13318  pre_test_object_deps_done=no
13319
13320  for p in `eval "$output_verbose_link_cmd"`; do
13321    case ${prev}${p} in
13322
13323    -L* | -R* | -l*)
13324       # Some compilers place space between "-{L,R}" and the path.
13325       # Remove the space.
13326       if test $p = "-L" ||
13327          test $p = "-R"; then
13328	 prev=$p
13329	 continue
13330       fi
13331
13332       # Expand the sysroot to ease extracting the directories later.
13333       if test -z "$prev"; then
13334         case $p in
13335         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13336         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13337         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13338         esac
13339       fi
13340       case $p in
13341       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13342       esac
13343       if test "$pre_test_object_deps_done" = no; then
13344	 case ${prev} in
13345	 -L | -R)
13346	   # Internal compiler library paths should come after those
13347	   # provided the user.  The postdeps already come after the
13348	   # user supplied libs so there is no need to process them.
13349	   if test -z "$compiler_lib_search_path_CXX"; then
13350	     compiler_lib_search_path_CXX="${prev}${p}"
13351	   else
13352	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13353	   fi
13354	   ;;
13355	 # The "-l" case would never come before the object being
13356	 # linked, so don't bother handling this case.
13357	 esac
13358       else
13359	 if test -z "$postdeps_CXX"; then
13360	   postdeps_CXX="${prev}${p}"
13361	 else
13362	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13363	 fi
13364       fi
13365       prev=
13366       ;;
13367
13368    *.lto.$objext) ;; # Ignore GCC LTO objects
13369    *.$objext)
13370       # This assumes that the test object file only shows up
13371       # once in the compiler output.
13372       if test "$p" = "conftest.$objext"; then
13373	 pre_test_object_deps_done=yes
13374	 continue
13375       fi
13376
13377       if test "$pre_test_object_deps_done" = no; then
13378	 if test -z "$predep_objects_CXX"; then
13379	   predep_objects_CXX="$p"
13380	 else
13381	   predep_objects_CXX="$predep_objects_CXX $p"
13382	 fi
13383       else
13384	 if test -z "$postdep_objects_CXX"; then
13385	   postdep_objects_CXX="$p"
13386	 else
13387	   postdep_objects_CXX="$postdep_objects_CXX $p"
13388	 fi
13389       fi
13390       ;;
13391
13392    *) ;; # Ignore the rest.
13393
13394    esac
13395  done
13396
13397  # Clean up.
13398  rm -f a.out a.exe
13399else
13400  echo "libtool.m4: error: problem compiling CXX test program"
13401fi
13402
13403$RM -f confest.$objext
13404CFLAGS=$_lt_libdeps_save_CFLAGS
13405
13406# PORTME: override above test on systems where it is broken
13407case $host_os in
13408interix[3-9]*)
13409  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13410  # hack all around it, let's just trust "g++" to DTRT.
13411  predep_objects_CXX=
13412  postdep_objects_CXX=
13413  postdeps_CXX=
13414  ;;
13415
13416linux*)
13417  case `$CC -V 2>&1 | sed 5q` in
13418  *Sun\ C*)
13419    # Sun C++ 5.9
13420
13421    # The more standards-conforming stlport4 library is
13422    # incompatible with the Cstd library. Avoid specifying
13423    # it if it's in CXXFLAGS. Ignore libCrun as
13424    # -library=stlport4 depends on it.
13425    case " $CXX $CXXFLAGS " in
13426    *" -library=stlport4 "*)
13427      solaris_use_stlport4=yes
13428      ;;
13429    esac
13430
13431    if test "$solaris_use_stlport4" != yes; then
13432      postdeps_CXX='-library=Cstd -library=Crun'
13433    fi
13434    ;;
13435  esac
13436  ;;
13437
13438solaris*)
13439  case $cc_basename in
13440  CC* | sunCC*)
13441    # The more standards-conforming stlport4 library is
13442    # incompatible with the Cstd library. Avoid specifying
13443    # it if it's in CXXFLAGS. Ignore libCrun as
13444    # -library=stlport4 depends on it.
13445    case " $CXX $CXXFLAGS " in
13446    *" -library=stlport4 "*)
13447      solaris_use_stlport4=yes
13448      ;;
13449    esac
13450
13451    # Adding this requires a known-good setup of shared libraries for
13452    # Sun compiler versions before 5.6, else PIC objects from an old
13453    # archive will be linked into the output, leading to subtle bugs.
13454    if test "$solaris_use_stlport4" != yes; then
13455      postdeps_CXX='-library=Cstd -library=Crun'
13456    fi
13457    ;;
13458  esac
13459  ;;
13460esac
13461
13462
13463case " $postdeps_CXX " in
13464*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13465esac
13466 compiler_lib_search_dirs_CXX=
13467if test -n "${compiler_lib_search_path_CXX}"; then
13468 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13469fi
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501    lt_prog_compiler_wl_CXX=
13502lt_prog_compiler_pic_CXX=
13503lt_prog_compiler_static_CXX=
13504
13505
13506  # C++ specific cases for pic, static, wl, etc.
13507  if test "$GXX" = yes; then
13508    lt_prog_compiler_wl_CXX='-Wl,'
13509    lt_prog_compiler_static_CXX='-static'
13510
13511    case $host_os in
13512    aix*)
13513      # All AIX code is PIC.
13514      if test "$host_cpu" = ia64; then
13515	# AIX 5 now supports IA64 processor
13516	lt_prog_compiler_static_CXX='-Bstatic'
13517      fi
13518      ;;
13519
13520    amigaos*)
13521      case $host_cpu in
13522      powerpc)
13523            # see comment about AmigaOS4 .so support
13524            lt_prog_compiler_pic_CXX='-fPIC'
13525        ;;
13526      m68k)
13527            # FIXME: we need at least 68020 code to build shared libraries, but
13528            # adding the `-m68020' flag to GCC prevents building anything better,
13529            # like `-m68040'.
13530            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13531        ;;
13532      esac
13533      ;;
13534
13535    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13536      # PIC is the default for these OSes.
13537      ;;
13538    mingw* | cygwin* | os2* | pw32* | cegcc*)
13539      # This hack is so that the source file can tell whether it is being
13540      # built for inclusion in a dll (and should export symbols for example).
13541      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13542      # (--disable-auto-import) libraries
13543      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13544      ;;
13545    darwin* | rhapsody*)
13546      # PIC is the default on this platform
13547      # Common symbols not allowed in MH_DYLIB files
13548      lt_prog_compiler_pic_CXX='-fno-common'
13549      ;;
13550    *djgpp*)
13551      # DJGPP does not support shared libraries at all
13552      lt_prog_compiler_pic_CXX=
13553      ;;
13554    haiku*)
13555      # PIC is the default for Haiku.
13556      # The "-static" flag exists, but is broken.
13557      lt_prog_compiler_static_CXX=
13558      ;;
13559    interix[3-9]*)
13560      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13561      # Instead, we relocate shared libraries at runtime.
13562      ;;
13563    sysv4*MP*)
13564      if test -d /usr/nec; then
13565	lt_prog_compiler_pic_CXX=-Kconform_pic
13566      fi
13567      ;;
13568    hpux*)
13569      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13570      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13571      # sets the default TLS model and affects inlining.
13572      case $host_cpu in
13573      hppa*64*)
13574	;;
13575      *)
13576	lt_prog_compiler_pic_CXX='-fPIC'
13577	;;
13578      esac
13579      ;;
13580    *qnx* | *nto*)
13581      # QNX uses GNU C++, but need to define -shared option too, otherwise
13582      # it will coredump.
13583      lt_prog_compiler_pic_CXX='-fPIC -shared'
13584      ;;
13585    *)
13586      lt_prog_compiler_pic_CXX='-fPIC'
13587      ;;
13588    esac
13589  else
13590    case $host_os in
13591      aix[4-9]*)
13592	# All AIX code is PIC.
13593	if test "$host_cpu" = ia64; then
13594	  # AIX 5 now supports IA64 processor
13595	  lt_prog_compiler_static_CXX='-Bstatic'
13596	else
13597	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13598	fi
13599	;;
13600      chorus*)
13601	case $cc_basename in
13602	cxch68*)
13603	  # Green Hills C++ Compiler
13604	  # _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"
13605	  ;;
13606	esac
13607	;;
13608      mingw* | cygwin* | os2* | pw32* | cegcc*)
13609	# This hack is so that the source file can tell whether it is being
13610	# built for inclusion in a dll (and should export symbols for example).
13611	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13612	;;
13613      dgux*)
13614	case $cc_basename in
13615	  ec++*)
13616	    lt_prog_compiler_pic_CXX='-KPIC'
13617	    ;;
13618	  ghcx*)
13619	    # Green Hills C++ Compiler
13620	    lt_prog_compiler_pic_CXX='-pic'
13621	    ;;
13622	  *)
13623	    ;;
13624	esac
13625	;;
13626      freebsd* | dragonfly*)
13627	# FreeBSD uses GNU C++
13628	;;
13629      hpux9* | hpux10* | hpux11*)
13630	case $cc_basename in
13631	  CC*)
13632	    lt_prog_compiler_wl_CXX='-Wl,'
13633	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13634	    if test "$host_cpu" != ia64; then
13635	      lt_prog_compiler_pic_CXX='+Z'
13636	    fi
13637	    ;;
13638	  aCC*)
13639	    lt_prog_compiler_wl_CXX='-Wl,'
13640	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13641	    case $host_cpu in
13642	    hppa*64*|ia64*)
13643	      # +Z the default
13644	      ;;
13645	    *)
13646	      lt_prog_compiler_pic_CXX='+Z'
13647	      ;;
13648	    esac
13649	    ;;
13650	  *)
13651	    ;;
13652	esac
13653	;;
13654      interix*)
13655	# This is c89, which is MS Visual C++ (no shared libs)
13656	# Anyone wants to do a port?
13657	;;
13658      irix5* | irix6* | nonstopux*)
13659	case $cc_basename in
13660	  CC*)
13661	    lt_prog_compiler_wl_CXX='-Wl,'
13662	    lt_prog_compiler_static_CXX='-non_shared'
13663	    # CC pic flag -KPIC is the default.
13664	    ;;
13665	  *)
13666	    ;;
13667	esac
13668	;;
13669      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13670	case $cc_basename in
13671	  KCC*)
13672	    # KAI C++ Compiler
13673	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13674	    lt_prog_compiler_pic_CXX='-fPIC'
13675	    ;;
13676	  ecpc* )
13677	    # old Intel C++ for x86_64 which still supported -KPIC.
13678	    lt_prog_compiler_wl_CXX='-Wl,'
13679	    lt_prog_compiler_pic_CXX='-KPIC'
13680	    lt_prog_compiler_static_CXX='-static'
13681	    ;;
13682	  icpc* )
13683	    # Intel C++, used to be incompatible with GCC.
13684	    # ICC 10 doesn't accept -KPIC any more.
13685	    lt_prog_compiler_wl_CXX='-Wl,'
13686	    lt_prog_compiler_pic_CXX='-fPIC'
13687	    lt_prog_compiler_static_CXX='-static'
13688	    ;;
13689	  pgCC* | pgcpp*)
13690	    # Portland Group C++ compiler
13691	    lt_prog_compiler_wl_CXX='-Wl,'
13692	    lt_prog_compiler_pic_CXX='-fpic'
13693	    lt_prog_compiler_static_CXX='-Bstatic'
13694	    ;;
13695	  cxx*)
13696	    # Compaq C++
13697	    # Make sure the PIC flag is empty.  It appears that all Alpha
13698	    # Linux and Compaq Tru64 Unix objects are PIC.
13699	    lt_prog_compiler_pic_CXX=
13700	    lt_prog_compiler_static_CXX='-non_shared'
13701	    ;;
13702	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13703	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13704	    lt_prog_compiler_wl_CXX='-Wl,'
13705	    lt_prog_compiler_pic_CXX='-qpic'
13706	    lt_prog_compiler_static_CXX='-qstaticlink'
13707	    ;;
13708	  *)
13709	    case `$CC -V 2>&1 | sed 5q` in
13710	    *Sun\ C*)
13711	      # Sun C++ 5.9
13712	      lt_prog_compiler_pic_CXX='-KPIC'
13713	      lt_prog_compiler_static_CXX='-Bstatic'
13714	      lt_prog_compiler_wl_CXX='-Qoption ld '
13715	      ;;
13716	    esac
13717	    ;;
13718	esac
13719	;;
13720      lynxos*)
13721	;;
13722      m88k*)
13723	;;
13724      mvs*)
13725	case $cc_basename in
13726	  cxx*)
13727	    lt_prog_compiler_pic_CXX='-W c,exportall'
13728	    ;;
13729	  *)
13730	    ;;
13731	esac
13732	;;
13733      netbsd*)
13734	;;
13735      *qnx* | *nto*)
13736        # QNX uses GNU C++, but need to define -shared option too, otherwise
13737        # it will coredump.
13738        lt_prog_compiler_pic_CXX='-fPIC -shared'
13739        ;;
13740      osf3* | osf4* | osf5*)
13741	case $cc_basename in
13742	  KCC*)
13743	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13744	    ;;
13745	  RCC*)
13746	    # Rational C++ 2.4.1
13747	    lt_prog_compiler_pic_CXX='-pic'
13748	    ;;
13749	  cxx*)
13750	    # Digital/Compaq C++
13751	    lt_prog_compiler_wl_CXX='-Wl,'
13752	    # Make sure the PIC flag is empty.  It appears that all Alpha
13753	    # Linux and Compaq Tru64 Unix objects are PIC.
13754	    lt_prog_compiler_pic_CXX=
13755	    lt_prog_compiler_static_CXX='-non_shared'
13756	    ;;
13757	  *)
13758	    ;;
13759	esac
13760	;;
13761      psos*)
13762	;;
13763      solaris*)
13764	case $cc_basename in
13765	  CC* | sunCC*)
13766	    # Sun C++ 4.2, 5.x and Centerline C++
13767	    lt_prog_compiler_pic_CXX='-KPIC'
13768	    lt_prog_compiler_static_CXX='-Bstatic'
13769	    lt_prog_compiler_wl_CXX='-Qoption ld '
13770	    ;;
13771	  gcx*)
13772	    # Green Hills C++ Compiler
13773	    lt_prog_compiler_pic_CXX='-PIC'
13774	    ;;
13775	  *)
13776	    ;;
13777	esac
13778	;;
13779      sunos4*)
13780	case $cc_basename in
13781	  CC*)
13782	    # Sun C++ 4.x
13783	    lt_prog_compiler_pic_CXX='-pic'
13784	    lt_prog_compiler_static_CXX='-Bstatic'
13785	    ;;
13786	  lcc*)
13787	    # Lucid
13788	    lt_prog_compiler_pic_CXX='-pic'
13789	    ;;
13790	  *)
13791	    ;;
13792	esac
13793	;;
13794      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13795	case $cc_basename in
13796	  CC*)
13797	    lt_prog_compiler_wl_CXX='-Wl,'
13798	    lt_prog_compiler_pic_CXX='-KPIC'
13799	    lt_prog_compiler_static_CXX='-Bstatic'
13800	    ;;
13801	esac
13802	;;
13803      tandem*)
13804	case $cc_basename in
13805	  NCC*)
13806	    # NonStop-UX NCC 3.20
13807	    lt_prog_compiler_pic_CXX='-KPIC'
13808	    ;;
13809	  *)
13810	    ;;
13811	esac
13812	;;
13813      vxworks*)
13814	;;
13815      *)
13816	lt_prog_compiler_can_build_shared_CXX=no
13817	;;
13818    esac
13819  fi
13820
13821case $host_os in
13822  # For platforms which do not support PIC, -DPIC is meaningless:
13823  *djgpp*)
13824    lt_prog_compiler_pic_CXX=
13825    ;;
13826  *)
13827    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13828    ;;
13829esac
13830
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13832$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13833if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13834  $as_echo_n "(cached) " >&6
13835else
13836  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13837fi
13838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13839$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13840lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13841
13842#
13843# Check to make sure the PIC flag actually works.
13844#
13845if test -n "$lt_prog_compiler_pic_CXX"; then
13846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13847$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13848if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13849  $as_echo_n "(cached) " >&6
13850else
13851  lt_cv_prog_compiler_pic_works_CXX=no
13852   ac_outfile=conftest.$ac_objext
13853   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13854   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13855   # Insert the option either (1) after the last *FLAGS variable, or
13856   # (2) before a word containing "conftest.", or (3) at the end.
13857   # Note that $ac_compile itself does not contain backslashes and begins
13858   # with a dollar sign (not a hyphen), so the echo should work correctly.
13859   # The option is referenced via a variable to avoid confusing sed.
13860   lt_compile=`echo "$ac_compile" | $SED \
13861   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13862   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13863   -e 's:$: $lt_compiler_flag:'`
13864   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13865   (eval "$lt_compile" 2>conftest.err)
13866   ac_status=$?
13867   cat conftest.err >&5
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   if (exit $ac_status) && test -s "$ac_outfile"; then
13870     # The compiler can only warn and ignore the option if not recognized
13871     # So say no if there are warnings other than the usual output.
13872     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13873     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13874     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13875       lt_cv_prog_compiler_pic_works_CXX=yes
13876     fi
13877   fi
13878   $RM conftest*
13879
13880fi
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13882$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13883
13884if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13885    case $lt_prog_compiler_pic_CXX in
13886     "" | " "*) ;;
13887     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13888     esac
13889else
13890    lt_prog_compiler_pic_CXX=
13891     lt_prog_compiler_can_build_shared_CXX=no
13892fi
13893
13894fi
13895
13896
13897
13898
13899
13900#
13901# Check to make sure the static flag actually works.
13902#
13903wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13905$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13906if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13907  $as_echo_n "(cached) " >&6
13908else
13909  lt_cv_prog_compiler_static_works_CXX=no
13910   save_LDFLAGS="$LDFLAGS"
13911   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13912   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13913   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13914     # The linker can only warn and ignore the option if not recognized
13915     # So say no if there are warnings
13916     if test -s conftest.err; then
13917       # Append any errors to the config.log.
13918       cat conftest.err 1>&5
13919       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13920       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13921       if diff conftest.exp conftest.er2 >/dev/null; then
13922         lt_cv_prog_compiler_static_works_CXX=yes
13923       fi
13924     else
13925       lt_cv_prog_compiler_static_works_CXX=yes
13926     fi
13927   fi
13928   $RM -r conftest*
13929   LDFLAGS="$save_LDFLAGS"
13930
13931fi
13932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13933$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13934
13935if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13936    :
13937else
13938    lt_prog_compiler_static_CXX=
13939fi
13940
13941
13942
13943
13944    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13945$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13946if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13947  $as_echo_n "(cached) " >&6
13948else
13949  lt_cv_prog_compiler_c_o_CXX=no
13950   $RM -r conftest 2>/dev/null
13951   mkdir conftest
13952   cd conftest
13953   mkdir out
13954   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13955
13956   lt_compiler_flag="-o out/conftest2.$ac_objext"
13957   # Insert the option either (1) after the last *FLAGS variable, or
13958   # (2) before a word containing "conftest.", or (3) at the end.
13959   # Note that $ac_compile itself does not contain backslashes and begins
13960   # with a dollar sign (not a hyphen), so the echo should work correctly.
13961   lt_compile=`echo "$ac_compile" | $SED \
13962   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13963   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13964   -e 's:$: $lt_compiler_flag:'`
13965   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13966   (eval "$lt_compile" 2>out/conftest.err)
13967   ac_status=$?
13968   cat out/conftest.err >&5
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13971   then
13972     # The compiler can only warn and ignore the option if not recognized
13973     # So say no if there are warnings
13974     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13975     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13976     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13977       lt_cv_prog_compiler_c_o_CXX=yes
13978     fi
13979   fi
13980   chmod u+w . 2>&5
13981   $RM conftest*
13982   # SGI C++ compiler will create directory out/ii_files/ for
13983   # template instantiation
13984   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13985   $RM out/* && rmdir out
13986   cd ..
13987   $RM -r conftest
13988   $RM conftest*
13989
13990fi
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13992$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13993
13994
13995
13996    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13997$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13998if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13999  $as_echo_n "(cached) " >&6
14000else
14001  lt_cv_prog_compiler_c_o_CXX=no
14002   $RM -r conftest 2>/dev/null
14003   mkdir conftest
14004   cd conftest
14005   mkdir out
14006   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14007
14008   lt_compiler_flag="-o out/conftest2.$ac_objext"
14009   # Insert the option either (1) after the last *FLAGS variable, or
14010   # (2) before a word containing "conftest.", or (3) at the end.
14011   # Note that $ac_compile itself does not contain backslashes and begins
14012   # with a dollar sign (not a hyphen), so the echo should work correctly.
14013   lt_compile=`echo "$ac_compile" | $SED \
14014   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14015   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14016   -e 's:$: $lt_compiler_flag:'`
14017   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14018   (eval "$lt_compile" 2>out/conftest.err)
14019   ac_status=$?
14020   cat out/conftest.err >&5
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14023   then
14024     # The compiler can only warn and ignore the option if not recognized
14025     # So say no if there are warnings
14026     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14027     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14028     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14029       lt_cv_prog_compiler_c_o_CXX=yes
14030     fi
14031   fi
14032   chmod u+w . 2>&5
14033   $RM conftest*
14034   # SGI C++ compiler will create directory out/ii_files/ for
14035   # template instantiation
14036   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14037   $RM out/* && rmdir out
14038   cd ..
14039   $RM -r conftest
14040   $RM conftest*
14041
14042fi
14043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14044$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14045
14046
14047
14048
14049hard_links="nottested"
14050if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14051  # do not overwrite the value of need_locks provided by the user
14052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14053$as_echo_n "checking if we can lock with hard links... " >&6; }
14054  hard_links=yes
14055  $RM conftest*
14056  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14057  touch conftest.a
14058  ln conftest.a conftest.b 2>&5 || hard_links=no
14059  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14061$as_echo "$hard_links" >&6; }
14062  if test "$hard_links" = no; then
14063    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14064$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14065    need_locks=warn
14066  fi
14067else
14068  need_locks=no
14069fi
14070
14071
14072
14073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14074$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14075
14076  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14077  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14078  case $host_os in
14079  aix[4-9]*)
14080    # If we're using GNU nm, then we don't want the "-C" option.
14081    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14082    # Also, AIX nm treats weak defined symbols like other global defined
14083    # symbols, whereas GNU nm marks them as "W".
14084    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14085      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'
14086    else
14087      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'
14088    fi
14089    ;;
14090  pw32*)
14091    export_symbols_cmds_CXX="$ltdll_cmds"
14092    ;;
14093  cygwin* | mingw* | cegcc*)
14094    case $cc_basename in
14095    cl*) ;;
14096    *)
14097      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'
14098      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14099      ;;
14100    esac
14101    ;;
14102  linux* | k*bsd*-gnu)
14103    link_all_deplibs_CXX=no
14104    ;;
14105  *)
14106    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14107    ;;
14108  esac
14109
14110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14111$as_echo "$ld_shlibs_CXX" >&6; }
14112test "$ld_shlibs_CXX" = no && can_build_shared=no
14113
14114with_gnu_ld_CXX=$with_gnu_ld
14115
14116
14117
14118
14119
14120
14121#
14122# Do we need to explicitly link libc?
14123#
14124case "x$archive_cmds_need_lc_CXX" in
14125x|xyes)
14126  # Assume -lc should be added
14127  archive_cmds_need_lc_CXX=yes
14128
14129  if test "$enable_shared" = yes && test "$GCC" = yes; then
14130    case $archive_cmds_CXX in
14131    *'~'*)
14132      # FIXME: we may have to deal with multi-command sequences.
14133      ;;
14134    '$CC '*)
14135      # Test whether the compiler implicitly links with -lc since on some
14136      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14137      # to ld, don't add -lc before -lgcc.
14138      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14139$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14140if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14141  $as_echo_n "(cached) " >&6
14142else
14143  $RM conftest*
14144	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14145
14146	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14147  (eval $ac_compile) 2>&5
14148  ac_status=$?
14149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14150  test $ac_status = 0; } 2>conftest.err; then
14151	  soname=conftest
14152	  lib=conftest
14153	  libobjs=conftest.$ac_objext
14154	  deplibs=
14155	  wl=$lt_prog_compiler_wl_CXX
14156	  pic_flag=$lt_prog_compiler_pic_CXX
14157	  compiler_flags=-v
14158	  linker_flags=-v
14159	  verstring=
14160	  output_objdir=.
14161	  libname=conftest
14162	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14163	  allow_undefined_flag_CXX=
14164	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14165  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14166  ac_status=$?
14167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14168  test $ac_status = 0; }
14169	  then
14170	    lt_cv_archive_cmds_need_lc_CXX=no
14171	  else
14172	    lt_cv_archive_cmds_need_lc_CXX=yes
14173	  fi
14174	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14175	else
14176	  cat conftest.err 1>&5
14177	fi
14178	$RM conftest*
14179
14180fi
14181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14182$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14183      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14184      ;;
14185    esac
14186  fi
14187  ;;
14188esac
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14254$as_echo_n "checking dynamic linker characteristics... " >&6; }
14255
14256library_names_spec=
14257libname_spec='lib$name'
14258soname_spec=
14259shrext_cmds=".so"
14260postinstall_cmds=
14261postuninstall_cmds=
14262finish_cmds=
14263finish_eval=
14264shlibpath_var=
14265shlibpath_overrides_runpath=unknown
14266version_type=none
14267dynamic_linker="$host_os ld.so"
14268sys_lib_dlsearch_path_spec="/lib /usr/lib"
14269need_lib_prefix=unknown
14270hardcode_into_libs=no
14271
14272# when you set need_version to no, make sure it does not cause -set_version
14273# flags to be left without arguments
14274need_version=unknown
14275
14276case $host_os in
14277aix3*)
14278  version_type=linux
14279  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14280  shlibpath_var=LIBPATH
14281
14282  # AIX 3 has no versioning support, so we append a major version to the name.
14283  soname_spec='${libname}${release}${shared_ext}$major'
14284  ;;
14285
14286aix[4-9]*)
14287  version_type=linux
14288  need_lib_prefix=no
14289  need_version=no
14290  hardcode_into_libs=yes
14291  if test "$host_cpu" = ia64; then
14292    # AIX 5 supports IA64
14293    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14294    shlibpath_var=LD_LIBRARY_PATH
14295  else
14296    # With GCC up to 2.95.x, collect2 would create an import file
14297    # for dependence libraries.  The import file would start with
14298    # the line `#! .'.  This would cause the generated library to
14299    # depend on `.', always an invalid library.  This was fixed in
14300    # development snapshots of GCC prior to 3.0.
14301    case $host_os in
14302      aix4 | aix4.[01] | aix4.[01].*)
14303      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14304	   echo ' yes '
14305	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14306	:
14307      else
14308	can_build_shared=no
14309      fi
14310      ;;
14311    esac
14312    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14313    # soname into executable. Probably we can add versioning support to
14314    # collect2, so additional links can be useful in future.
14315    if test "$aix_use_runtimelinking" = yes; then
14316      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14317      # instead of lib<name>.a to let people know that these are not
14318      # typical AIX shared libraries.
14319      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14320    else
14321      # We preserve .a as extension for shared libraries through AIX4.2
14322      # and later when we are not doing run time linking.
14323      library_names_spec='${libname}${release}.a $libname.a'
14324      soname_spec='${libname}${release}${shared_ext}$major'
14325    fi
14326    shlibpath_var=LIBPATH
14327  fi
14328  ;;
14329
14330amigaos*)
14331  case $host_cpu in
14332  powerpc)
14333    # Since July 2007 AmigaOS4 officially supports .so libraries.
14334    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14335    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14336    ;;
14337  m68k)
14338    library_names_spec='$libname.ixlibrary $libname.a'
14339    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14340    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'
14341    ;;
14342  esac
14343  ;;
14344
14345beos*)
14346  library_names_spec='${libname}${shared_ext}'
14347  dynamic_linker="$host_os ld.so"
14348  shlibpath_var=LIBRARY_PATH
14349  ;;
14350
14351bsdi[45]*)
14352  version_type=linux
14353  need_version=no
14354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14355  soname_spec='${libname}${release}${shared_ext}$major'
14356  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14357  shlibpath_var=LD_LIBRARY_PATH
14358  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14359  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14360  # the default ld.so.conf also contains /usr/contrib/lib and
14361  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14362  # libtool to hard-code these into programs
14363  ;;
14364
14365cygwin* | mingw* | pw32* | cegcc*)
14366  version_type=windows
14367  shrext_cmds=".dll"
14368  need_version=no
14369  need_lib_prefix=no
14370
14371  case $GCC,$cc_basename in
14372  yes,*)
14373    # gcc
14374    library_names_spec='$libname.dll.a'
14375    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14376    postinstall_cmds='base_file=`basename \${file}`~
14377      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14378      dldir=$destdir/`dirname \$dlpath`~
14379      test -d \$dldir || mkdir -p \$dldir~
14380      $install_prog $dir/$dlname \$dldir/$dlname~
14381      chmod a+x \$dldir/$dlname~
14382      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14383        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14384      fi'
14385    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14386      dlpath=$dir/\$dldll~
14387       $RM \$dlpath'
14388    shlibpath_overrides_runpath=yes
14389
14390    case $host_os in
14391    cygwin*)
14392      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14393      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14394
14395      ;;
14396    mingw* | cegcc*)
14397      # MinGW DLLs use traditional 'lib' prefix
14398      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14399      ;;
14400    pw32*)
14401      # pw32 DLLs use 'pw' prefix rather than 'lib'
14402      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14403      ;;
14404    esac
14405    dynamic_linker='Win32 ld.exe'
14406    ;;
14407
14408  *,cl*)
14409    # Native MSVC
14410    libname_spec='$name'
14411    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14412    library_names_spec='${libname}.dll.lib'
14413
14414    case $build_os in
14415    mingw*)
14416      sys_lib_search_path_spec=
14417      lt_save_ifs=$IFS
14418      IFS=';'
14419      for lt_path in $LIB
14420      do
14421        IFS=$lt_save_ifs
14422        # Let DOS variable expansion print the short 8.3 style file name.
14423        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14424        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14425      done
14426      IFS=$lt_save_ifs
14427      # Convert to MSYS style.
14428      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14429      ;;
14430    cygwin*)
14431      # Convert to unix form, then to dos form, then back to unix form
14432      # but this time dos style (no spaces!) so that the unix form looks
14433      # like /cygdrive/c/PROGRA~1:/cygdr...
14434      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14435      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14436      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14437      ;;
14438    *)
14439      sys_lib_search_path_spec="$LIB"
14440      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14441        # It is most probably a Windows format PATH.
14442        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14443      else
14444        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14445      fi
14446      # FIXME: find the short name or the path components, as spaces are
14447      # common. (e.g. "Program Files" -> "PROGRA~1")
14448      ;;
14449    esac
14450
14451    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14452    postinstall_cmds='base_file=`basename \${file}`~
14453      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14454      dldir=$destdir/`dirname \$dlpath`~
14455      test -d \$dldir || mkdir -p \$dldir~
14456      $install_prog $dir/$dlname \$dldir/$dlname'
14457    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14458      dlpath=$dir/\$dldll~
14459       $RM \$dlpath'
14460    shlibpath_overrides_runpath=yes
14461    dynamic_linker='Win32 link.exe'
14462    ;;
14463
14464  *)
14465    # Assume MSVC wrapper
14466    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14467    dynamic_linker='Win32 ld.exe'
14468    ;;
14469  esac
14470  # FIXME: first we should search . and the directory the executable is in
14471  shlibpath_var=PATH
14472  ;;
14473
14474darwin* | rhapsody*)
14475  dynamic_linker="$host_os dyld"
14476  version_type=darwin
14477  need_lib_prefix=no
14478  need_version=no
14479  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14480  soname_spec='${libname}${release}${major}$shared_ext'
14481  shlibpath_overrides_runpath=yes
14482  shlibpath_var=DYLD_LIBRARY_PATH
14483  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14484
14485  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14486  ;;
14487
14488dgux*)
14489  version_type=linux
14490  need_lib_prefix=no
14491  need_version=no
14492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14493  soname_spec='${libname}${release}${shared_ext}$major'
14494  shlibpath_var=LD_LIBRARY_PATH
14495  ;;
14496
14497freebsd1*)
14498  dynamic_linker=no
14499  ;;
14500
14501freebsd* | dragonfly*)
14502  # DragonFly does not have aout.  When/if they implement a new
14503  # versioning mechanism, adjust this.
14504  if test -x /usr/bin/objformat; then
14505    objformat=`/usr/bin/objformat`
14506  else
14507    case $host_os in
14508    freebsd[123]*) objformat=aout ;;
14509    *) objformat=elf ;;
14510    esac
14511  fi
14512  version_type=freebsd-$objformat
14513  case $version_type in
14514    freebsd-elf*)
14515      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14516      need_version=no
14517      need_lib_prefix=no
14518      ;;
14519    freebsd-*)
14520      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14521      need_version=yes
14522      ;;
14523  esac
14524  shlibpath_var=LD_LIBRARY_PATH
14525  case $host_os in
14526  freebsd2*)
14527    shlibpath_overrides_runpath=yes
14528    ;;
14529  freebsd3.[01]* | freebsdelf3.[01]*)
14530    shlibpath_overrides_runpath=yes
14531    hardcode_into_libs=yes
14532    ;;
14533  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14534  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14535    shlibpath_overrides_runpath=no
14536    hardcode_into_libs=yes
14537    ;;
14538  *) # from 4.6 on, and DragonFly
14539    shlibpath_overrides_runpath=yes
14540    hardcode_into_libs=yes
14541    ;;
14542  esac
14543  ;;
14544
14545gnu*)
14546  version_type=linux
14547  need_lib_prefix=no
14548  need_version=no
14549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14550  soname_spec='${libname}${release}${shared_ext}$major'
14551  shlibpath_var=LD_LIBRARY_PATH
14552  shlibpath_overrides_runpath=no
14553  hardcode_into_libs=yes
14554  ;;
14555
14556haiku*)
14557  version_type=linux
14558  need_lib_prefix=no
14559  need_version=no
14560  dynamic_linker="$host_os runtime_loader"
14561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14562  soname_spec='${libname}${release}${shared_ext}$major'
14563  shlibpath_var=LIBRARY_PATH
14564  shlibpath_overrides_runpath=yes
14565  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14566  hardcode_into_libs=yes
14567  ;;
14568
14569hpux9* | hpux10* | hpux11*)
14570  # Give a soname corresponding to the major version so that dld.sl refuses to
14571  # link against other versions.
14572  version_type=sunos
14573  need_lib_prefix=no
14574  need_version=no
14575  case $host_cpu in
14576  ia64*)
14577    shrext_cmds='.so'
14578    hardcode_into_libs=yes
14579    dynamic_linker="$host_os dld.so"
14580    shlibpath_var=LD_LIBRARY_PATH
14581    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14582    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583    soname_spec='${libname}${release}${shared_ext}$major'
14584    if test "X$HPUX_IA64_MODE" = X32; then
14585      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14586    else
14587      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14588    fi
14589    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14590    ;;
14591  hppa*64*)
14592    shrext_cmds='.sl'
14593    hardcode_into_libs=yes
14594    dynamic_linker="$host_os dld.sl"
14595    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14596    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598    soname_spec='${libname}${release}${shared_ext}$major'
14599    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14600    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14601    ;;
14602  *)
14603    shrext_cmds='.sl'
14604    dynamic_linker="$host_os dld.sl"
14605    shlibpath_var=SHLIB_PATH
14606    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14607    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14608    soname_spec='${libname}${release}${shared_ext}$major'
14609    ;;
14610  esac
14611  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14612  postinstall_cmds='chmod 555 $lib'
14613  # or fails outright, so override atomically:
14614  install_override_mode=555
14615  ;;
14616
14617interix[3-9]*)
14618  version_type=linux
14619  need_lib_prefix=no
14620  need_version=no
14621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14622  soname_spec='${libname}${release}${shared_ext}$major'
14623  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14624  shlibpath_var=LD_LIBRARY_PATH
14625  shlibpath_overrides_runpath=no
14626  hardcode_into_libs=yes
14627  ;;
14628
14629irix5* | irix6* | nonstopux*)
14630  case $host_os in
14631    nonstopux*) version_type=nonstopux ;;
14632    *)
14633	if test "$lt_cv_prog_gnu_ld" = yes; then
14634		version_type=linux
14635	else
14636		version_type=irix
14637	fi ;;
14638  esac
14639  need_lib_prefix=no
14640  need_version=no
14641  soname_spec='${libname}${release}${shared_ext}$major'
14642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14643  case $host_os in
14644  irix5* | nonstopux*)
14645    libsuff= shlibsuff=
14646    ;;
14647  *)
14648    case $LD in # libtool.m4 will add one of these switches to LD
14649    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14650      libsuff= shlibsuff= libmagic=32-bit;;
14651    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14652      libsuff=32 shlibsuff=N32 libmagic=N32;;
14653    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14654      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14655    *) libsuff= shlibsuff= libmagic=never-match;;
14656    esac
14657    ;;
14658  esac
14659  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14660  shlibpath_overrides_runpath=no
14661  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14662  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14663  hardcode_into_libs=yes
14664  ;;
14665
14666# No shared lib support for Linux oldld, aout, or coff.
14667linux*oldld* | linux*aout* | linux*coff*)
14668  dynamic_linker=no
14669  ;;
14670
14671# This must be Linux ELF.
14672linux* | k*bsd*-gnu | kopensolaris*-gnu)
14673  version_type=linux
14674  need_lib_prefix=no
14675  need_version=no
14676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677  soname_spec='${libname}${release}${shared_ext}$major'
14678  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14679  shlibpath_var=LD_LIBRARY_PATH
14680  shlibpath_overrides_runpath=no
14681
14682  # Some binutils ld are patched to set DT_RUNPATH
14683  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14684  $as_echo_n "(cached) " >&6
14685else
14686  lt_cv_shlibpath_overrides_runpath=no
14687    save_LDFLAGS=$LDFLAGS
14688    save_libdir=$libdir
14689    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14690	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14691    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14692/* end confdefs.h.  */
14693
14694int
14695main ()
14696{
14697
14698  ;
14699  return 0;
14700}
14701_ACEOF
14702if ac_fn_cxx_try_link "$LINENO"; then :
14703  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14704  lt_cv_shlibpath_overrides_runpath=yes
14705fi
14706fi
14707rm -f core conftest.err conftest.$ac_objext \
14708    conftest$ac_exeext conftest.$ac_ext
14709    LDFLAGS=$save_LDFLAGS
14710    libdir=$save_libdir
14711
14712fi
14713
14714  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14715
14716  # This implies no fast_install, which is unacceptable.
14717  # Some rework will be needed to allow for fast_install
14718  # before this can be enabled.
14719  hardcode_into_libs=yes
14720
14721  # find out which ABI we are using
14722  libsuff=
14723  case "$host_cpu" in
14724  x86_64*|s390x*|powerpc64*)
14725    echo '#line 14725 "configure"' > conftest.$ac_ext
14726    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14727  (eval $ac_compile) 2>&5
14728  ac_status=$?
14729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14730  test $ac_status = 0; }; then
14731      case `/usr/bin/file conftest.$ac_objext` in
14732      *64-bit*)
14733        libsuff=64
14734        ;;
14735      esac
14736    fi
14737    rm -rf conftest*
14738    ;;
14739  esac
14740
14741  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14742
14743  # Append ld.so.conf contents to the search path
14744  if test -f /etc/ld.so.conf; then
14745    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' ' '`
14746    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14747  fi
14748
14749  # We used to test for /lib/ld.so.1 and disable shared libraries on
14750  # powerpc, because MkLinux only supported shared libraries with the
14751  # GNU dynamic linker.  Since this was broken with cross compilers,
14752  # most powerpc-linux boxes support dynamic linking these days and
14753  # people can always --disable-shared, the test was removed, and we
14754  # assume the GNU/Linux dynamic linker is in use.
14755  dynamic_linker='GNU/Linux ld.so'
14756  ;;
14757
14758netbsd*)
14759  version_type=sunos
14760  need_lib_prefix=no
14761  need_version=no
14762  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14763    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14764    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14765    dynamic_linker='NetBSD (a.out) ld.so'
14766  else
14767    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14768    soname_spec='${libname}${release}${shared_ext}$major'
14769    dynamic_linker='NetBSD ld.elf_so'
14770  fi
14771  shlibpath_var=LD_LIBRARY_PATH
14772  shlibpath_overrides_runpath=yes
14773  hardcode_into_libs=yes
14774  ;;
14775
14776newsos6)
14777  version_type=linux
14778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14779  shlibpath_var=LD_LIBRARY_PATH
14780  shlibpath_overrides_runpath=yes
14781  ;;
14782
14783*nto* | *qnx*)
14784  version_type=qnx
14785  need_lib_prefix=no
14786  need_version=no
14787  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788  soname_spec='${libname}${release}${shared_ext}$major'
14789  shlibpath_var=LD_LIBRARY_PATH
14790  shlibpath_overrides_runpath=no
14791  hardcode_into_libs=yes
14792  dynamic_linker='ldqnx.so'
14793  ;;
14794
14795openbsd*)
14796  version_type=sunos
14797  sys_lib_dlsearch_path_spec="/usr/lib"
14798  need_lib_prefix=no
14799  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14800  case $host_os in
14801    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14802    *)				need_version=no  ;;
14803  esac
14804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14805  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14806  shlibpath_var=LD_LIBRARY_PATH
14807  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14808    case $host_os in
14809      openbsd2.[89] | openbsd2.[89].*)
14810	shlibpath_overrides_runpath=no
14811	;;
14812      *)
14813	shlibpath_overrides_runpath=yes
14814	;;
14815      esac
14816  else
14817    shlibpath_overrides_runpath=yes
14818  fi
14819  ;;
14820
14821os2*)
14822  libname_spec='$name'
14823  shrext_cmds=".dll"
14824  need_lib_prefix=no
14825  library_names_spec='$libname${shared_ext} $libname.a'
14826  dynamic_linker='OS/2 ld.exe'
14827  shlibpath_var=LIBPATH
14828  ;;
14829
14830osf3* | osf4* | osf5*)
14831  version_type=osf
14832  need_lib_prefix=no
14833  need_version=no
14834  soname_spec='${libname}${release}${shared_ext}$major'
14835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14836  shlibpath_var=LD_LIBRARY_PATH
14837  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14838  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14839  ;;
14840
14841rdos*)
14842  dynamic_linker=no
14843  ;;
14844
14845solaris*)
14846  version_type=linux
14847  need_lib_prefix=no
14848  need_version=no
14849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850  soname_spec='${libname}${release}${shared_ext}$major'
14851  shlibpath_var=LD_LIBRARY_PATH
14852  shlibpath_overrides_runpath=yes
14853  hardcode_into_libs=yes
14854  # ldd complains unless libraries are executable
14855  postinstall_cmds='chmod +x $lib'
14856  ;;
14857
14858sunos4*)
14859  version_type=sunos
14860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14861  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14862  shlibpath_var=LD_LIBRARY_PATH
14863  shlibpath_overrides_runpath=yes
14864  if test "$with_gnu_ld" = yes; then
14865    need_lib_prefix=no
14866  fi
14867  need_version=yes
14868  ;;
14869
14870sysv4 | sysv4.3*)
14871  version_type=linux
14872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873  soname_spec='${libname}${release}${shared_ext}$major'
14874  shlibpath_var=LD_LIBRARY_PATH
14875  case $host_vendor in
14876    sni)
14877      shlibpath_overrides_runpath=no
14878      need_lib_prefix=no
14879      runpath_var=LD_RUN_PATH
14880      ;;
14881    siemens)
14882      need_lib_prefix=no
14883      ;;
14884    motorola)
14885      need_lib_prefix=no
14886      need_version=no
14887      shlibpath_overrides_runpath=no
14888      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14889      ;;
14890  esac
14891  ;;
14892
14893sysv4*MP*)
14894  if test -d /usr/nec ;then
14895    version_type=linux
14896    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14897    soname_spec='$libname${shared_ext}.$major'
14898    shlibpath_var=LD_LIBRARY_PATH
14899  fi
14900  ;;
14901
14902sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14903  version_type=freebsd-elf
14904  need_lib_prefix=no
14905  need_version=no
14906  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14907  soname_spec='${libname}${release}${shared_ext}$major'
14908  shlibpath_var=LD_LIBRARY_PATH
14909  shlibpath_overrides_runpath=yes
14910  hardcode_into_libs=yes
14911  if test "$with_gnu_ld" = yes; then
14912    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14913  else
14914    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14915    case $host_os in
14916      sco3.2v5*)
14917        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14918	;;
14919    esac
14920  fi
14921  sys_lib_dlsearch_path_spec='/usr/lib'
14922  ;;
14923
14924tpf*)
14925  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14926  version_type=linux
14927  need_lib_prefix=no
14928  need_version=no
14929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930  shlibpath_var=LD_LIBRARY_PATH
14931  shlibpath_overrides_runpath=no
14932  hardcode_into_libs=yes
14933  ;;
14934
14935uts4*)
14936  version_type=linux
14937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938  soname_spec='${libname}${release}${shared_ext}$major'
14939  shlibpath_var=LD_LIBRARY_PATH
14940  ;;
14941
14942*)
14943  dynamic_linker=no
14944  ;;
14945esac
14946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14947$as_echo "$dynamic_linker" >&6; }
14948test "$dynamic_linker" = no && can_build_shared=no
14949
14950variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14951if test "$GCC" = yes; then
14952  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14953fi
14954
14955if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14956  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14957fi
14958if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14959  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14960fi
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15000$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15001hardcode_action_CXX=
15002if test -n "$hardcode_libdir_flag_spec_CXX" ||
15003   test -n "$runpath_var_CXX" ||
15004   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15005
15006  # We can hardcode non-existent directories.
15007  if test "$hardcode_direct_CXX" != no &&
15008     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15009     # have to relink, otherwise we might link with an installed library
15010     # when we should be linking with a yet-to-be-installed one
15011     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15012     test "$hardcode_minus_L_CXX" != no; then
15013    # Linking always hardcodes the temporary library directory.
15014    hardcode_action_CXX=relink
15015  else
15016    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15017    hardcode_action_CXX=immediate
15018  fi
15019else
15020  # We cannot hardcode anything, or else we can only hardcode existing
15021  # directories.
15022  hardcode_action_CXX=unsupported
15023fi
15024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15025$as_echo "$hardcode_action_CXX" >&6; }
15026
15027if test "$hardcode_action_CXX" = relink ||
15028   test "$inherit_rpath_CXX" = yes; then
15029  # Fast installation is not supported
15030  enable_fast_install=no
15031elif test "$shlibpath_overrides_runpath" = yes ||
15032     test "$enable_shared" = no; then
15033  # Fast installation is not necessary
15034  enable_fast_install=needless
15035fi
15036
15037
15038
15039
15040
15041
15042
15043  fi # test -n "$compiler"
15044
15045  CC=$lt_save_CC
15046  CFLAGS=$lt_save_CFLAGS
15047  LDCXX=$LD
15048  LD=$lt_save_LD
15049  GCC=$lt_save_GCC
15050  with_gnu_ld=$lt_save_with_gnu_ld
15051  lt_cv_path_LDCXX=$lt_cv_path_LD
15052  lt_cv_path_LD=$lt_save_path_LD
15053  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15054  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15055fi # test "$_lt_caught_CXX_error" != yes
15056
15057ac_ext=c
15058ac_cpp='$CPP $CPPFLAGS'
15059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15061ac_compiler_gnu=$ac_cv_c_compiler_gnu
15062
15063
15064
15065# Check whether --enable-debug was given.
15066if test "${enable_debug+set}" = set; then :
15067  enableval=$enable_debug;
15068        if test "$enableval" = "yes"; then
15069            CXXFLAGS="$CXXFLAGS -Wall -DDEBUG"
15070        else
15071            CXXFLAGS="$CXXFLAGS -Wall -DNDEBUG"
15072        fi
15073
15074else
15075
15076        CXXFLAGS="$CXXFLAGS -Wall -DNDEBUG"
15077
15078
15079fi
15080
15081
15082
15083
15084$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
15085
15086
15087$as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h
15088
15089
15090ac_ext=cpp
15091ac_cpp='$CXXCPP $CPPFLAGS'
15092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15095
15096
15097      ac_success=no
15098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
15099$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
15100if ${ax_cv_cxx_compile_cxx11+:} false; then :
15101  $as_echo_n "(cached) " >&6
15102else
15103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104/* end confdefs.h.  */
15105
15106  template <typename T>
15107    struct check
15108    {
15109      static_assert(sizeof(int) <= sizeof(T), "not big enough");
15110    };
15111
15112    typedef check<check<bool>> right_angle_brackets;
15113
15114    int a;
15115    decltype(a) b;
15116
15117    typedef check<int> check_type;
15118    check_type c;
15119    check_type&& cr = static_cast<check_type&&>(c);
15120
15121_ACEOF
15122if ac_fn_cxx_try_compile "$LINENO"; then :
15123  ax_cv_cxx_compile_cxx11=yes
15124else
15125  ax_cv_cxx_compile_cxx11=no
15126fi
15127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15128fi
15129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
15130$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
15131  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
15132    ac_success=yes
15133  fi
15134
15135    if test x$ac_success = xno; then
15136    for switch in -std=gnu++11 -std=gnu++0x; do
15137      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15138      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15139$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15140if eval \${$cachevar+:} false; then :
15141  $as_echo_n "(cached) " >&6
15142else
15143  ac_save_CXXFLAGS="$CXXFLAGS"
15144         CXXFLAGS="$CXXFLAGS $switch"
15145         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146/* end confdefs.h.  */
15147
15148  template <typename T>
15149    struct check
15150    {
15151      static_assert(sizeof(int) <= sizeof(T), "not big enough");
15152    };
15153
15154    typedef check<check<bool>> right_angle_brackets;
15155
15156    int a;
15157    decltype(a) b;
15158
15159    typedef check<int> check_type;
15160    check_type c;
15161    check_type&& cr = static_cast<check_type&&>(c);
15162
15163_ACEOF
15164if ac_fn_cxx_try_compile "$LINENO"; then :
15165  eval $cachevar=yes
15166else
15167  eval $cachevar=no
15168fi
15169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170         CXXFLAGS="$ac_save_CXXFLAGS"
15171fi
15172eval ac_res=\$$cachevar
15173	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15174$as_echo "$ac_res" >&6; }
15175      if eval test x\$$cachevar = xyes; then
15176        CXXFLAGS="$CXXFLAGS $switch"
15177        ac_success=yes
15178        break
15179      fi
15180    done
15181  fi
15182
15183    if test x$ac_success = xno; then
15184    for switch in -std=c++11 -std=c++0x; do
15185      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15186      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15187$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15188if eval \${$cachevar+:} false; then :
15189  $as_echo_n "(cached) " >&6
15190else
15191  ac_save_CXXFLAGS="$CXXFLAGS"
15192         CXXFLAGS="$CXXFLAGS $switch"
15193         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194/* end confdefs.h.  */
15195
15196  template <typename T>
15197    struct check
15198    {
15199      static_assert(sizeof(int) <= sizeof(T), "not big enough");
15200    };
15201
15202    typedef check<check<bool>> right_angle_brackets;
15203
15204    int a;
15205    decltype(a) b;
15206
15207    typedef check<int> check_type;
15208    check_type c;
15209    check_type&& cr = static_cast<check_type&&>(c);
15210
15211_ACEOF
15212if ac_fn_cxx_try_compile "$LINENO"; then :
15213  eval $cachevar=yes
15214else
15215  eval $cachevar=no
15216fi
15217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15218         CXXFLAGS="$ac_save_CXXFLAGS"
15219fi
15220eval ac_res=\$$cachevar
15221	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15222$as_echo "$ac_res" >&6; }
15223      if eval test x\$$cachevar = xyes; then
15224        CXXFLAGS="$CXXFLAGS $switch"
15225        ac_success=yes
15226        break
15227      fi
15228    done
15229  fi
15230
15231  if test x$ac_success = xno; then
15232    as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
15233  fi
15234
15235
15236
15237for ac_func in lrintf rintf rint
15238do :
15239  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15240ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
15241if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15242  cat >>confdefs.h <<_ACEOF
15243#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15244_ACEOF
15245
15246fi
15247done
15248
15249for ac_func in fabsf powf floorf ceilf
15250do :
15251  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15252ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
15253if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15254  cat >>confdefs.h <<_ACEOF
15255#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15256_ACEOF
15257
15258fi
15259done
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15270	if test -n "$ac_tool_prefix"; then
15271  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15272set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15274$as_echo_n "checking for $ac_word... " >&6; }
15275if ${ac_cv_path_PKG_CONFIG+:} false; then :
15276  $as_echo_n "(cached) " >&6
15277else
15278  case $PKG_CONFIG in
15279  [\\/]* | ?:[\\/]*)
15280  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15281  ;;
15282  *)
15283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15284for as_dir in $PATH
15285do
15286  IFS=$as_save_IFS
15287  test -z "$as_dir" && as_dir=.
15288    for ac_exec_ext in '' $ac_executable_extensions; do
15289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15290    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15292    break 2
15293  fi
15294done
15295  done
15296IFS=$as_save_IFS
15297
15298  ;;
15299esac
15300fi
15301PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15302if test -n "$PKG_CONFIG"; then
15303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15304$as_echo "$PKG_CONFIG" >&6; }
15305else
15306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15307$as_echo "no" >&6; }
15308fi
15309
15310
15311fi
15312if test -z "$ac_cv_path_PKG_CONFIG"; then
15313  ac_pt_PKG_CONFIG=$PKG_CONFIG
15314  # Extract the first word of "pkg-config", so it can be a program name with args.
15315set dummy pkg-config; ac_word=$2
15316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15317$as_echo_n "checking for $ac_word... " >&6; }
15318if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15319  $as_echo_n "(cached) " >&6
15320else
15321  case $ac_pt_PKG_CONFIG in
15322  [\\/]* | ?:[\\/]*)
15323  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15324  ;;
15325  *)
15326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15327for as_dir in $PATH
15328do
15329  IFS=$as_save_IFS
15330  test -z "$as_dir" && as_dir=.
15331    for ac_exec_ext in '' $ac_executable_extensions; do
15332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15333    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15335    break 2
15336  fi
15337done
15338  done
15339IFS=$as_save_IFS
15340
15341  ;;
15342esac
15343fi
15344ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15345if test -n "$ac_pt_PKG_CONFIG"; then
15346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15347$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15348else
15349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15350$as_echo "no" >&6; }
15351fi
15352
15353  if test "x$ac_pt_PKG_CONFIG" = x; then
15354    PKG_CONFIG=""
15355  else
15356    case $cross_compiling:$ac_tool_warned in
15357yes:)
15358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15360ac_tool_warned=yes ;;
15361esac
15362    PKG_CONFIG=$ac_pt_PKG_CONFIG
15363  fi
15364else
15365  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15366fi
15367
15368fi
15369if test -n "$PKG_CONFIG"; then
15370	_pkg_min_version=0.9.0
15371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15372$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15373	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15374		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15375$as_echo "yes" >&6; }
15376	else
15377		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15378$as_echo "no" >&6; }
15379		PKG_CONFIG=""
15380	fi
15381fi
15382
15383
15384pkg_failed=no
15385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WF" >&5
15386$as_echo_n "checking for WF... " >&6; }
15387
15388if test -n "$WF_CFLAGS"; then
15389    pkg_cv_WF_CFLAGS="$WF_CFLAGS"
15390 elif test -n "$PKG_CONFIG"; then
15391    if test -n "$PKG_CONFIG" && \
15392    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wfmath-1.0 >= 1.0.0\""; } >&5
15393  ($PKG_CONFIG --exists --print-errors "wfmath-1.0 >= 1.0.0") 2>&5
15394  ac_status=$?
15395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15396  test $ac_status = 0; }; then
15397  pkg_cv_WF_CFLAGS=`$PKG_CONFIG --cflags "wfmath-1.0 >= 1.0.0" 2>/dev/null`
15398		      test "x$?" != "x0" && pkg_failed=yes
15399else
15400  pkg_failed=yes
15401fi
15402 else
15403    pkg_failed=untried
15404fi
15405if test -n "$WF_LIBS"; then
15406    pkg_cv_WF_LIBS="$WF_LIBS"
15407 elif test -n "$PKG_CONFIG"; then
15408    if test -n "$PKG_CONFIG" && \
15409    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wfmath-1.0 >= 1.0.0\""; } >&5
15410  ($PKG_CONFIG --exists --print-errors "wfmath-1.0 >= 1.0.0") 2>&5
15411  ac_status=$?
15412  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15413  test $ac_status = 0; }; then
15414  pkg_cv_WF_LIBS=`$PKG_CONFIG --libs "wfmath-1.0 >= 1.0.0" 2>/dev/null`
15415		      test "x$?" != "x0" && pkg_failed=yes
15416else
15417  pkg_failed=yes
15418fi
15419 else
15420    pkg_failed=untried
15421fi
15422
15423
15424
15425if test $pkg_failed = yes; then
15426   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15427$as_echo "no" >&6; }
15428
15429if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15430        _pkg_short_errors_supported=yes
15431else
15432        _pkg_short_errors_supported=no
15433fi
15434        if test $_pkg_short_errors_supported = yes; then
15435	        WF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wfmath-1.0 >= 1.0.0" 2>&1`
15436        else
15437	        WF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wfmath-1.0 >= 1.0.0" 2>&1`
15438        fi
15439	# Put the nasty error message in config.log where it belongs
15440	echo "$WF_PKG_ERRORS" >&5
15441
15442
15443        as_fn_error $? "
15444Cannot find valid versions of required WorldForge maths library, wfmath:
15445$WF_PKG_ERRORS
15446Perhaps you should add the directory containing the missing libraries to the
15447PKG_CONFIG_PATH environment variable.
15448Please see http://www.worldforge.org/dev/eng/libraries/mercator for details of
15449the libraries required and where to obtain them." "$LINENO" 5
15450
15451elif test $pkg_failed = untried; then
15452     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15453$as_echo "no" >&6; }
15454
15455        as_fn_error $? "
15456Cannot find valid versions of required WorldForge maths library, wfmath:
15457$WF_PKG_ERRORS
15458Perhaps you should add the directory containing the missing libraries to the
15459PKG_CONFIG_PATH environment variable.
15460Please see http://www.worldforge.org/dev/eng/libraries/mercator for details of
15461the libraries required and where to obtain them." "$LINENO" 5
15462
15463else
15464	WF_CFLAGS=$pkg_cv_WF_CFLAGS
15465	WF_LIBS=$pkg_cv_WF_LIBS
15466        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15467$as_echo "yes" >&6; }
15468
15469        CPPFLAGS="$CPPFLAGS $WF_CFLAGS"
15470        LIBS="$LIBS $WF_LIBS"
15471        MERCATOR_REQUIRES="$MERCATOR_REQUIRES wfmath-1.0"
15472
15473fi
15474
15475SYSTEM_LIBS=""
15476MERCATOR_CFLAGS=""
15477
15478
15479
15480
15481
15482
15483ac_config_files="$ac_config_files Makefile Mercator/Makefile tests/Makefile mercator.spec mingw32-mercator.spec mercator-0.3.pc"
15484
15485cat >confcache <<\_ACEOF
15486# This file is a shell script that caches the results of configure
15487# tests run on this system so they can be shared between configure
15488# scripts and configure runs, see configure's option --config-cache.
15489# It is not useful on other systems.  If it contains results you don't
15490# want to keep, you may remove or edit it.
15491#
15492# config.status only pays attention to the cache file if you give it
15493# the --recheck option to rerun configure.
15494#
15495# `ac_cv_env_foo' variables (set or unset) will be overridden when
15496# loading this file, other *unset* `ac_cv_foo' will be assigned the
15497# following values.
15498
15499_ACEOF
15500
15501# The following way of writing the cache mishandles newlines in values,
15502# but we know of no workaround that is simple, portable, and efficient.
15503# So, we kill variables containing newlines.
15504# Ultrix sh set writes to stderr and can't be redirected directly,
15505# and sets the high bit in the cache file unless we assign to the vars.
15506(
15507  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15508    eval ac_val=\$$ac_var
15509    case $ac_val in #(
15510    *${as_nl}*)
15511      case $ac_var in #(
15512      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15513$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15514      esac
15515      case $ac_var in #(
15516      _ | IFS | as_nl) ;; #(
15517      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15518      *) { eval $ac_var=; unset $ac_var;} ;;
15519      esac ;;
15520    esac
15521  done
15522
15523  (set) 2>&1 |
15524    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15525    *${as_nl}ac_space=\ *)
15526      # `set' does not quote correctly, so add quotes: double-quote
15527      # substitution turns \\\\ into \\, and sed turns \\ into \.
15528      sed -n \
15529	"s/'/'\\\\''/g;
15530	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15531      ;; #(
15532    *)
15533      # `set' quotes correctly as required by POSIX, so do not add quotes.
15534      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15535      ;;
15536    esac |
15537    sort
15538) |
15539  sed '
15540     /^ac_cv_env_/b end
15541     t clear
15542     :clear
15543     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15544     t end
15545     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15546     :end' >>confcache
15547if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15548  if test -w "$cache_file"; then
15549    if test "x$cache_file" != "x/dev/null"; then
15550      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15551$as_echo "$as_me: updating cache $cache_file" >&6;}
15552      if test ! -f "$cache_file" || test -h "$cache_file"; then
15553	cat confcache >"$cache_file"
15554      else
15555        case $cache_file in #(
15556        */* | ?:*)
15557	  mv -f confcache "$cache_file"$$ &&
15558	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15559        *)
15560	  mv -f confcache "$cache_file" ;;
15561	esac
15562      fi
15563    fi
15564  else
15565    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15566$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15567  fi
15568fi
15569rm -f confcache
15570
15571test "x$prefix" = xNONE && prefix=$ac_default_prefix
15572# Let make expand exec_prefix.
15573test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15574
15575DEFS=-DHAVE_CONFIG_H
15576
15577ac_libobjs=
15578ac_ltlibobjs=
15579U=
15580for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15581  # 1. Remove the extension, and $U if already installed.
15582  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15583  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15584  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15585  #    will be set to the directory where LIBOBJS objects are built.
15586  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15587  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15588done
15589LIBOBJS=$ac_libobjs
15590
15591LTLIBOBJS=$ac_ltlibobjs
15592
15593
15594 if test -n "$EXEEXT"; then
15595  am__EXEEXT_TRUE=
15596  am__EXEEXT_FALSE='#'
15597else
15598  am__EXEEXT_TRUE='#'
15599  am__EXEEXT_FALSE=
15600fi
15601
15602if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15603  as_fn_error $? "conditional \"AMDEP\" was never defined.
15604Usually this means the macro was only invoked conditionally." "$LINENO" 5
15605fi
15606if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15607  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15608Usually this means the macro was only invoked conditionally." "$LINENO" 5
15609fi
15610if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15611  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15612Usually this means the macro was only invoked conditionally." "$LINENO" 5
15613fi
15614
15615: "${CONFIG_STATUS=./config.status}"
15616ac_write_fail=0
15617ac_clean_files_save=$ac_clean_files
15618ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15619{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15620$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15621as_write_fail=0
15622cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15623#! $SHELL
15624# Generated by $as_me.
15625# Run this file to recreate the current configuration.
15626# Compiler output produced by configure, useful for debugging
15627# configure, is in config.log if it exists.
15628
15629debug=false
15630ac_cs_recheck=false
15631ac_cs_silent=false
15632
15633SHELL=\${CONFIG_SHELL-$SHELL}
15634export SHELL
15635_ASEOF
15636cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15637## -------------------- ##
15638## M4sh Initialization. ##
15639## -------------------- ##
15640
15641# Be more Bourne compatible
15642DUALCASE=1; export DUALCASE # for MKS sh
15643if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15644  emulate sh
15645  NULLCMD=:
15646  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15647  # is contrary to our usage.  Disable this feature.
15648  alias -g '${1+"$@"}'='"$@"'
15649  setopt NO_GLOB_SUBST
15650else
15651  case `(set -o) 2>/dev/null` in #(
15652  *posix*) :
15653    set -o posix ;; #(
15654  *) :
15655     ;;
15656esac
15657fi
15658
15659
15660as_nl='
15661'
15662export as_nl
15663# Printing a long string crashes Solaris 7 /usr/bin/printf.
15664as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15665as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15666as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15667# Prefer a ksh shell builtin over an external printf program on Solaris,
15668# but without wasting forks for bash or zsh.
15669if test -z "$BASH_VERSION$ZSH_VERSION" \
15670    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15671  as_echo='print -r --'
15672  as_echo_n='print -rn --'
15673elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15674  as_echo='printf %s\n'
15675  as_echo_n='printf %s'
15676else
15677  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15678    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15679    as_echo_n='/usr/ucb/echo -n'
15680  else
15681    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15682    as_echo_n_body='eval
15683      arg=$1;
15684      case $arg in #(
15685      *"$as_nl"*)
15686	expr "X$arg" : "X\\(.*\\)$as_nl";
15687	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15688      esac;
15689      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15690    '
15691    export as_echo_n_body
15692    as_echo_n='sh -c $as_echo_n_body as_echo'
15693  fi
15694  export as_echo_body
15695  as_echo='sh -c $as_echo_body as_echo'
15696fi
15697
15698# The user is always right.
15699if test "${PATH_SEPARATOR+set}" != set; then
15700  PATH_SEPARATOR=:
15701  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15702    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15703      PATH_SEPARATOR=';'
15704  }
15705fi
15706
15707
15708# IFS
15709# We need space, tab and new line, in precisely that order.  Quoting is
15710# there to prevent editors from complaining about space-tab.
15711# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15712# splitting by setting IFS to empty value.)
15713IFS=" ""	$as_nl"
15714
15715# Find who we are.  Look in the path if we contain no directory separator.
15716as_myself=
15717case $0 in #((
15718  *[\\/]* ) as_myself=$0 ;;
15719  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15720for as_dir in $PATH
15721do
15722  IFS=$as_save_IFS
15723  test -z "$as_dir" && as_dir=.
15724    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15725  done
15726IFS=$as_save_IFS
15727
15728     ;;
15729esac
15730# We did not find ourselves, most probably we were run as `sh COMMAND'
15731# in which case we are not to be found in the path.
15732if test "x$as_myself" = x; then
15733  as_myself=$0
15734fi
15735if test ! -f "$as_myself"; then
15736  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15737  exit 1
15738fi
15739
15740# Unset variables that we do not need and which cause bugs (e.g. in
15741# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15742# suppresses any "Segmentation fault" message there.  '((' could
15743# trigger a bug in pdksh 5.2.14.
15744for as_var in BASH_ENV ENV MAIL MAILPATH
15745do eval test x\${$as_var+set} = xset \
15746  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15747done
15748PS1='$ '
15749PS2='> '
15750PS4='+ '
15751
15752# NLS nuisances.
15753LC_ALL=C
15754export LC_ALL
15755LANGUAGE=C
15756export LANGUAGE
15757
15758# CDPATH.
15759(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15760
15761
15762# as_fn_error STATUS ERROR [LINENO LOG_FD]
15763# ----------------------------------------
15764# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15765# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15766# script with STATUS, using 1 if that was 0.
15767as_fn_error ()
15768{
15769  as_status=$1; test $as_status -eq 0 && as_status=1
15770  if test "$4"; then
15771    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15772    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15773  fi
15774  $as_echo "$as_me: error: $2" >&2
15775  as_fn_exit $as_status
15776} # as_fn_error
15777
15778
15779# as_fn_set_status STATUS
15780# -----------------------
15781# Set $? to STATUS, without forking.
15782as_fn_set_status ()
15783{
15784  return $1
15785} # as_fn_set_status
15786
15787# as_fn_exit STATUS
15788# -----------------
15789# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15790as_fn_exit ()
15791{
15792  set +e
15793  as_fn_set_status $1
15794  exit $1
15795} # as_fn_exit
15796
15797# as_fn_unset VAR
15798# ---------------
15799# Portably unset VAR.
15800as_fn_unset ()
15801{
15802  { eval $1=; unset $1;}
15803}
15804as_unset=as_fn_unset
15805# as_fn_append VAR VALUE
15806# ----------------------
15807# Append the text in VALUE to the end of the definition contained in VAR. Take
15808# advantage of any shell optimizations that allow amortized linear growth over
15809# repeated appends, instead of the typical quadratic growth present in naive
15810# implementations.
15811if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15812  eval 'as_fn_append ()
15813  {
15814    eval $1+=\$2
15815  }'
15816else
15817  as_fn_append ()
15818  {
15819    eval $1=\$$1\$2
15820  }
15821fi # as_fn_append
15822
15823# as_fn_arith ARG...
15824# ------------------
15825# Perform arithmetic evaluation on the ARGs, and store the result in the
15826# global $as_val. Take advantage of shells that can avoid forks. The arguments
15827# must be portable across $(()) and expr.
15828if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15829  eval 'as_fn_arith ()
15830  {
15831    as_val=$(( $* ))
15832  }'
15833else
15834  as_fn_arith ()
15835  {
15836    as_val=`expr "$@" || test $? -eq 1`
15837  }
15838fi # as_fn_arith
15839
15840
15841if expr a : '\(a\)' >/dev/null 2>&1 &&
15842   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15843  as_expr=expr
15844else
15845  as_expr=false
15846fi
15847
15848if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15849  as_basename=basename
15850else
15851  as_basename=false
15852fi
15853
15854if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15855  as_dirname=dirname
15856else
15857  as_dirname=false
15858fi
15859
15860as_me=`$as_basename -- "$0" ||
15861$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15862	 X"$0" : 'X\(//\)$' \| \
15863	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15864$as_echo X/"$0" |
15865    sed '/^.*\/\([^/][^/]*\)\/*$/{
15866	    s//\1/
15867	    q
15868	  }
15869	  /^X\/\(\/\/\)$/{
15870	    s//\1/
15871	    q
15872	  }
15873	  /^X\/\(\/\).*/{
15874	    s//\1/
15875	    q
15876	  }
15877	  s/.*/./; q'`
15878
15879# Avoid depending upon Character Ranges.
15880as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15881as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15882as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15883as_cr_digits='0123456789'
15884as_cr_alnum=$as_cr_Letters$as_cr_digits
15885
15886ECHO_C= ECHO_N= ECHO_T=
15887case `echo -n x` in #(((((
15888-n*)
15889  case `echo 'xy\c'` in
15890  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15891  xy)  ECHO_C='\c';;
15892  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15893       ECHO_T='	';;
15894  esac;;
15895*)
15896  ECHO_N='-n';;
15897esac
15898
15899rm -f conf$$ conf$$.exe conf$$.file
15900if test -d conf$$.dir; then
15901  rm -f conf$$.dir/conf$$.file
15902else
15903  rm -f conf$$.dir
15904  mkdir conf$$.dir 2>/dev/null
15905fi
15906if (echo >conf$$.file) 2>/dev/null; then
15907  if ln -s conf$$.file conf$$ 2>/dev/null; then
15908    as_ln_s='ln -s'
15909    # ... but there are two gotchas:
15910    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15911    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15912    # In both cases, we have to default to `cp -p'.
15913    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15914      as_ln_s='cp -p'
15915  elif ln conf$$.file conf$$ 2>/dev/null; then
15916    as_ln_s=ln
15917  else
15918    as_ln_s='cp -p'
15919  fi
15920else
15921  as_ln_s='cp -p'
15922fi
15923rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15924rmdir conf$$.dir 2>/dev/null
15925
15926
15927# as_fn_mkdir_p
15928# -------------
15929# Create "$as_dir" as a directory, including parents if necessary.
15930as_fn_mkdir_p ()
15931{
15932
15933  case $as_dir in #(
15934  -*) as_dir=./$as_dir;;
15935  esac
15936  test -d "$as_dir" || eval $as_mkdir_p || {
15937    as_dirs=
15938    while :; do
15939      case $as_dir in #(
15940      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15941      *) as_qdir=$as_dir;;
15942      esac
15943      as_dirs="'$as_qdir' $as_dirs"
15944      as_dir=`$as_dirname -- "$as_dir" ||
15945$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15946	 X"$as_dir" : 'X\(//\)[^/]' \| \
15947	 X"$as_dir" : 'X\(//\)$' \| \
15948	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15949$as_echo X"$as_dir" |
15950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15951	    s//\1/
15952	    q
15953	  }
15954	  /^X\(\/\/\)[^/].*/{
15955	    s//\1/
15956	    q
15957	  }
15958	  /^X\(\/\/\)$/{
15959	    s//\1/
15960	    q
15961	  }
15962	  /^X\(\/\).*/{
15963	    s//\1/
15964	    q
15965	  }
15966	  s/.*/./; q'`
15967      test -d "$as_dir" && break
15968    done
15969    test -z "$as_dirs" || eval "mkdir $as_dirs"
15970  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15971
15972
15973} # as_fn_mkdir_p
15974if mkdir -p . 2>/dev/null; then
15975  as_mkdir_p='mkdir -p "$as_dir"'
15976else
15977  test -d ./-p && rmdir ./-p
15978  as_mkdir_p=false
15979fi
15980
15981if test -x / >/dev/null 2>&1; then
15982  as_test_x='test -x'
15983else
15984  if ls -dL / >/dev/null 2>&1; then
15985    as_ls_L_option=L
15986  else
15987    as_ls_L_option=
15988  fi
15989  as_test_x='
15990    eval sh -c '\''
15991      if test -d "$1"; then
15992	test -d "$1/.";
15993      else
15994	case $1 in #(
15995	-*)set "./$1";;
15996	esac;
15997	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15998	???[sx]*):;;*)false;;esac;fi
15999    '\'' sh
16000  '
16001fi
16002as_executable_p=$as_test_x
16003
16004# Sed expression to map a string onto a valid CPP name.
16005as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16006
16007# Sed expression to map a string onto a valid variable name.
16008as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16009
16010
16011exec 6>&1
16012## ----------------------------------- ##
16013## Main body of $CONFIG_STATUS script. ##
16014## ----------------------------------- ##
16015_ASEOF
16016test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16017
16018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16019# Save the log message, to keep $0 and so on meaningful, and to
16020# report actual input values of CONFIG_FILES etc. instead of their
16021# values after options handling.
16022ac_log="
16023This file was extended by mercator $as_me 0.3.3, which was
16024generated by GNU Autoconf 2.68.  Invocation command line was
16025
16026  CONFIG_FILES    = $CONFIG_FILES
16027  CONFIG_HEADERS  = $CONFIG_HEADERS
16028  CONFIG_LINKS    = $CONFIG_LINKS
16029  CONFIG_COMMANDS = $CONFIG_COMMANDS
16030  $ $0 $@
16031
16032on `(hostname || uname -n) 2>/dev/null | sed 1q`
16033"
16034
16035_ACEOF
16036
16037case $ac_config_files in *"
16038"*) set x $ac_config_files; shift; ac_config_files=$*;;
16039esac
16040
16041case $ac_config_headers in *"
16042"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16043esac
16044
16045
16046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16047# Files that config.status was made for.
16048config_files="`echo $ac_config_files`"
16049config_headers="`echo $ac_config_headers`"
16050config_commands="`echo $ac_config_commands`"
16051
16052_ACEOF
16053
16054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16055ac_cs_usage="\
16056\`$as_me' instantiates files and other configuration actions
16057from templates according to the current configuration.  Unless the files
16058and actions are specified as TAGs, all are instantiated by default.
16059
16060Usage: $0 [OPTION]... [TAG]...
16061
16062  -h, --help       print this help, then exit
16063  -V, --version    print version number and configuration settings, then exit
16064      --config     print configuration, then exit
16065  -q, --quiet, --silent
16066                   do not print progress messages
16067  -d, --debug      don't remove temporary files
16068      --recheck    update $as_me by reconfiguring in the same conditions
16069      --file=FILE[:TEMPLATE]
16070                   instantiate the configuration file FILE
16071      --header=FILE[:TEMPLATE]
16072                   instantiate the configuration header FILE
16073
16074Configuration files:
16075$config_files
16076
16077Configuration headers:
16078$config_headers
16079
16080Configuration commands:
16081$config_commands
16082
16083Report bugs to <erik@ogenvik.org>."
16084
16085_ACEOF
16086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16087ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16088ac_cs_version="\\
16089mercator config.status 0.3.3
16090configured by $0, generated by GNU Autoconf 2.68,
16091  with options \\"\$ac_cs_config\\"
16092
16093Copyright (C) 2010 Free Software Foundation, Inc.
16094This config.status script is free software; the Free Software Foundation
16095gives unlimited permission to copy, distribute and modify it."
16096
16097ac_pwd='$ac_pwd'
16098srcdir='$srcdir'
16099INSTALL='$INSTALL'
16100MKDIR_P='$MKDIR_P'
16101AWK='$AWK'
16102test -n "\$AWK" || AWK=awk
16103_ACEOF
16104
16105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16106# The default lists apply if the user does not specify any file.
16107ac_need_defaults=:
16108while test $# != 0
16109do
16110  case $1 in
16111  --*=?*)
16112    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16113    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16114    ac_shift=:
16115    ;;
16116  --*=)
16117    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16118    ac_optarg=
16119    ac_shift=:
16120    ;;
16121  *)
16122    ac_option=$1
16123    ac_optarg=$2
16124    ac_shift=shift
16125    ;;
16126  esac
16127
16128  case $ac_option in
16129  # Handling of the options.
16130  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16131    ac_cs_recheck=: ;;
16132  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16133    $as_echo "$ac_cs_version"; exit ;;
16134  --config | --confi | --conf | --con | --co | --c )
16135    $as_echo "$ac_cs_config"; exit ;;
16136  --debug | --debu | --deb | --de | --d | -d )
16137    debug=: ;;
16138  --file | --fil | --fi | --f )
16139    $ac_shift
16140    case $ac_optarg in
16141    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16142    '') as_fn_error $? "missing file argument" ;;
16143    esac
16144    as_fn_append CONFIG_FILES " '$ac_optarg'"
16145    ac_need_defaults=false;;
16146  --header | --heade | --head | --hea )
16147    $ac_shift
16148    case $ac_optarg in
16149    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16150    esac
16151    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16152    ac_need_defaults=false;;
16153  --he | --h)
16154    # Conflict between --help and --header
16155    as_fn_error $? "ambiguous option: \`$1'
16156Try \`$0 --help' for more information.";;
16157  --help | --hel | -h )
16158    $as_echo "$ac_cs_usage"; exit ;;
16159  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16160  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16161    ac_cs_silent=: ;;
16162
16163  # This is an error.
16164  -*) as_fn_error $? "unrecognized option: \`$1'
16165Try \`$0 --help' for more information." ;;
16166
16167  *) as_fn_append ac_config_targets " $1"
16168     ac_need_defaults=false ;;
16169
16170  esac
16171  shift
16172done
16173
16174ac_configure_extra_args=
16175
16176if $ac_cs_silent; then
16177  exec 6>/dev/null
16178  ac_configure_extra_args="$ac_configure_extra_args --silent"
16179fi
16180
16181_ACEOF
16182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16183if \$ac_cs_recheck; then
16184  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16185  shift
16186  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16187  CONFIG_SHELL='$SHELL'
16188  export CONFIG_SHELL
16189  exec "\$@"
16190fi
16191
16192_ACEOF
16193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16194exec 5>>config.log
16195{
16196  echo
16197  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16198## Running $as_me. ##
16199_ASBOX
16200  $as_echo "$ac_log"
16201} >&5
16202
16203_ACEOF
16204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16205#
16206# INIT-COMMANDS
16207#
16208AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16209
16210
16211# The HP-UX ksh and POSIX shell print the target directory to stdout
16212# if CDPATH is set.
16213(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16214
16215sed_quote_subst='$sed_quote_subst'
16216double_quote_subst='$double_quote_subst'
16217delay_variable_subst='$delay_variable_subst'
16218macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16219macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16220enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16221enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16222pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16223enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16224SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16225ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16226host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16227host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16228host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16229build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16230build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16231build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16232SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16233Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16234GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16235EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16236FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16237LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16238NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16239LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16240max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16241ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16242exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16243lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16244lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16245lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16246lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16247lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16248reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16249reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16250OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16251deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16252file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16253file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16254want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16255DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16256sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16257AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16258AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16259archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16260STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16261RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16262old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16263old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16264old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16265lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16266CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16267CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16268compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16269GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16270lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16271lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16272lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16273lt_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"`'
16274nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16275lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16276objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16277MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16278lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16279lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16280lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16281lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16282lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16283need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16284MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16285DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16286NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16287LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16288OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16289OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16290libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16291shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16292extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16293archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16294enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16295export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16296whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16297compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16298old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16299old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16300archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16301archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16302module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16303module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16304with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16305allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16306no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16307hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16308hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16309hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16310hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16311hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16312hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16313hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16314hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16315inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16316link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16317always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16318export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16319exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16320include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16321prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16322postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16323file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16324variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16325need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16326need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16327version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16328runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16329shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16330shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16331libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16332library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16333soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16334install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16335postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16336postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16337finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16338finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16339hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16340sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16341sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16342hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16343enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16344enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16345enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16346old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16347striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16348compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16349predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16350postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16351predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16352postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16353compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16354LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16355reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16356reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16357old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16358compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16359GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16360lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16361lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16362lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16363lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16364lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16365archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16366enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16367export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16368whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16369compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16370old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16371old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16372archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16373archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16374module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16375module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16376with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16377allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16378no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16379hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16380hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16381hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16382hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16383hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16384hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16385hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16386hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16387inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16388link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16389always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16390export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16391exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16392include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16393prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16394postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16395file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16396hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16397compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16398predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16399postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16400predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16401postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16402compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16403
16404LTCC='$LTCC'
16405LTCFLAGS='$LTCFLAGS'
16406compiler='$compiler_DEFAULT'
16407
16408# A function that is used when there is no print builtin or printf.
16409func_fallback_echo ()
16410{
16411  eval 'cat <<_LTECHO_EOF
16412\$1
16413_LTECHO_EOF'
16414}
16415
16416# Quote evaled strings.
16417for var in SHELL \
16418ECHO \
16419SED \
16420GREP \
16421EGREP \
16422FGREP \
16423LD \
16424NM \
16425LN_S \
16426lt_SP2NL \
16427lt_NL2SP \
16428reload_flag \
16429OBJDUMP \
16430deplibs_check_method \
16431file_magic_cmd \
16432file_magic_glob \
16433want_nocaseglob \
16434DLLTOOL \
16435sharedlib_from_linklib_cmd \
16436AR \
16437AR_FLAGS \
16438archiver_list_spec \
16439STRIP \
16440RANLIB \
16441CC \
16442CFLAGS \
16443compiler \
16444lt_cv_sys_global_symbol_pipe \
16445lt_cv_sys_global_symbol_to_cdecl \
16446lt_cv_sys_global_symbol_to_c_name_address \
16447lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16448nm_file_list_spec \
16449lt_prog_compiler_no_builtin_flag \
16450lt_prog_compiler_pic \
16451lt_prog_compiler_wl \
16452lt_prog_compiler_static \
16453lt_cv_prog_compiler_c_o \
16454need_locks \
16455MANIFEST_TOOL \
16456DSYMUTIL \
16457NMEDIT \
16458LIPO \
16459OTOOL \
16460OTOOL64 \
16461shrext_cmds \
16462export_dynamic_flag_spec \
16463whole_archive_flag_spec \
16464compiler_needs_object \
16465with_gnu_ld \
16466allow_undefined_flag \
16467no_undefined_flag \
16468hardcode_libdir_flag_spec \
16469hardcode_libdir_flag_spec_ld \
16470hardcode_libdir_separator \
16471exclude_expsyms \
16472include_expsyms \
16473file_list_spec \
16474variables_saved_for_relink \
16475libname_spec \
16476library_names_spec \
16477soname_spec \
16478install_override_mode \
16479finish_eval \
16480old_striplib \
16481striplib \
16482compiler_lib_search_dirs \
16483predep_objects \
16484postdep_objects \
16485predeps \
16486postdeps \
16487compiler_lib_search_path \
16488LD_CXX \
16489reload_flag_CXX \
16490compiler_CXX \
16491lt_prog_compiler_no_builtin_flag_CXX \
16492lt_prog_compiler_pic_CXX \
16493lt_prog_compiler_wl_CXX \
16494lt_prog_compiler_static_CXX \
16495lt_cv_prog_compiler_c_o_CXX \
16496export_dynamic_flag_spec_CXX \
16497whole_archive_flag_spec_CXX \
16498compiler_needs_object_CXX \
16499with_gnu_ld_CXX \
16500allow_undefined_flag_CXX \
16501no_undefined_flag_CXX \
16502hardcode_libdir_flag_spec_CXX \
16503hardcode_libdir_flag_spec_ld_CXX \
16504hardcode_libdir_separator_CXX \
16505exclude_expsyms_CXX \
16506include_expsyms_CXX \
16507file_list_spec_CXX \
16508compiler_lib_search_dirs_CXX \
16509predep_objects_CXX \
16510postdep_objects_CXX \
16511predeps_CXX \
16512postdeps_CXX \
16513compiler_lib_search_path_CXX; do
16514    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16515    *[\\\\\\\`\\"\\\$]*)
16516      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16517      ;;
16518    *)
16519      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16520      ;;
16521    esac
16522done
16523
16524# Double-quote double-evaled strings.
16525for var in reload_cmds \
16526old_postinstall_cmds \
16527old_postuninstall_cmds \
16528old_archive_cmds \
16529extract_expsyms_cmds \
16530old_archive_from_new_cmds \
16531old_archive_from_expsyms_cmds \
16532archive_cmds \
16533archive_expsym_cmds \
16534module_cmds \
16535module_expsym_cmds \
16536export_symbols_cmds \
16537prelink_cmds \
16538postlink_cmds \
16539postinstall_cmds \
16540postuninstall_cmds \
16541finish_cmds \
16542sys_lib_search_path_spec \
16543sys_lib_dlsearch_path_spec \
16544reload_cmds_CXX \
16545old_archive_cmds_CXX \
16546old_archive_from_new_cmds_CXX \
16547old_archive_from_expsyms_cmds_CXX \
16548archive_cmds_CXX \
16549archive_expsym_cmds_CXX \
16550module_cmds_CXX \
16551module_expsym_cmds_CXX \
16552export_symbols_cmds_CXX \
16553prelink_cmds_CXX \
16554postlink_cmds_CXX; do
16555    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16556    *[\\\\\\\`\\"\\\$]*)
16557      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16558      ;;
16559    *)
16560      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16561      ;;
16562    esac
16563done
16564
16565ac_aux_dir='$ac_aux_dir'
16566xsi_shell='$xsi_shell'
16567lt_shell_append='$lt_shell_append'
16568
16569# See if we are running on zsh, and set the options which allow our
16570# commands through without removal of \ escapes INIT.
16571if test -n "\${ZSH_VERSION+set}" ; then
16572   setopt NO_GLOB_SUBST
16573fi
16574
16575
16576    PACKAGE='$PACKAGE'
16577    VERSION='$VERSION'
16578    TIMESTAMP='$TIMESTAMP'
16579    RM='$RM'
16580    ofile='$ofile'
16581
16582
16583
16584
16585
16586
16587_ACEOF
16588
16589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16590
16591# Handling of arguments.
16592for ac_config_target in $ac_config_targets
16593do
16594  case $ac_config_target in
16595    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16596    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16597    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16598    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16599    "Mercator/Makefile") CONFIG_FILES="$CONFIG_FILES Mercator/Makefile" ;;
16600    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16601    "mercator.spec") CONFIG_FILES="$CONFIG_FILES mercator.spec" ;;
16602    "mingw32-mercator.spec") CONFIG_FILES="$CONFIG_FILES mingw32-mercator.spec" ;;
16603    "mercator-0.3.pc") CONFIG_FILES="$CONFIG_FILES mercator-0.3.pc" ;;
16604
16605  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16606  esac
16607done
16608
16609
16610# If the user did not use the arguments to specify the items to instantiate,
16611# then the envvar interface is used.  Set only those that are not.
16612# We use the long form for the default assignment because of an extremely
16613# bizarre bug on SunOS 4.1.3.
16614if $ac_need_defaults; then
16615  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16616  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16617  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16618fi
16619
16620# Have a temporary directory for convenience.  Make it in the build tree
16621# simply because there is no reason against having it here, and in addition,
16622# creating and moving files from /tmp can sometimes cause problems.
16623# Hook for its removal unless debugging.
16624# Note that there is a small window in which the directory will not be cleaned:
16625# after its creation but before its name has been assigned to `$tmp'.
16626$debug ||
16627{
16628  tmp= ac_tmp=
16629  trap 'exit_status=$?
16630  : "${ac_tmp:=$tmp}"
16631  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16632' 0
16633  trap 'as_fn_exit 1' 1 2 13 15
16634}
16635# Create a (secure) tmp directory for tmp files.
16636
16637{
16638  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16639  test -d "$tmp"
16640}  ||
16641{
16642  tmp=./conf$$-$RANDOM
16643  (umask 077 && mkdir "$tmp")
16644} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16645ac_tmp=$tmp
16646
16647# Set up the scripts for CONFIG_FILES section.
16648# No need to generate them if there are no CONFIG_FILES.
16649# This happens for instance with `./config.status config.h'.
16650if test -n "$CONFIG_FILES"; then
16651
16652
16653ac_cr=`echo X | tr X '\015'`
16654# On cygwin, bash can eat \r inside `` if the user requested igncr.
16655# But we know of no other shell where ac_cr would be empty at this
16656# point, so we can use a bashism as a fallback.
16657if test "x$ac_cr" = x; then
16658  eval ac_cr=\$\'\\r\'
16659fi
16660ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16661if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16662  ac_cs_awk_cr='\\r'
16663else
16664  ac_cs_awk_cr=$ac_cr
16665fi
16666
16667echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16668_ACEOF
16669
16670
16671{
16672  echo "cat >conf$$subs.awk <<_ACEOF" &&
16673  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16674  echo "_ACEOF"
16675} >conf$$subs.sh ||
16676  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16677ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16678ac_delim='%!_!# '
16679for ac_last_try in false false false false false :; do
16680  . ./conf$$subs.sh ||
16681    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16682
16683  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16684  if test $ac_delim_n = $ac_delim_num; then
16685    break
16686  elif $ac_last_try; then
16687    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16688  else
16689    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16690  fi
16691done
16692rm -f conf$$subs.sh
16693
16694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16695cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16696_ACEOF
16697sed -n '
16698h
16699s/^/S["/; s/!.*/"]=/
16700p
16701g
16702s/^[^!]*!//
16703:repl
16704t repl
16705s/'"$ac_delim"'$//
16706t delim
16707:nl
16708h
16709s/\(.\{148\}\)..*/\1/
16710t more1
16711s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16712p
16713n
16714b repl
16715:more1
16716s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16717p
16718g
16719s/.\{148\}//
16720t nl
16721:delim
16722h
16723s/\(.\{148\}\)..*/\1/
16724t more2
16725s/["\\]/\\&/g; s/^/"/; s/$/"/
16726p
16727b
16728:more2
16729s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16730p
16731g
16732s/.\{148\}//
16733t delim
16734' <conf$$subs.awk | sed '
16735/^[^""]/{
16736  N
16737  s/\n//
16738}
16739' >>$CONFIG_STATUS || ac_write_fail=1
16740rm -f conf$$subs.awk
16741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16742_ACAWK
16743cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16744  for (key in S) S_is_set[key] = 1
16745  FS = ""
16746
16747}
16748{
16749  line = $ 0
16750  nfields = split(line, field, "@")
16751  substed = 0
16752  len = length(field[1])
16753  for (i = 2; i < nfields; i++) {
16754    key = field[i]
16755    keylen = length(key)
16756    if (S_is_set[key]) {
16757      value = S[key]
16758      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16759      len += length(value) + length(field[++i])
16760      substed = 1
16761    } else
16762      len += 1 + keylen
16763  }
16764
16765  print line
16766}
16767
16768_ACAWK
16769_ACEOF
16770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16771if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16772  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16773else
16774  cat
16775fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16776  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16777_ACEOF
16778
16779# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16780# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16781# trailing colons and then remove the whole line if VPATH becomes empty
16782# (actually we leave an empty line to preserve line numbers).
16783if test "x$srcdir" = x.; then
16784  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16785h
16786s///
16787s/^/:/
16788s/[	 ]*$/:/
16789s/:\$(srcdir):/:/g
16790s/:\${srcdir}:/:/g
16791s/:@srcdir@:/:/g
16792s/^:*//
16793s/:*$//
16794x
16795s/\(=[	 ]*\).*/\1/
16796G
16797s/\n//
16798s/^[^=]*=[	 ]*$//
16799}'
16800fi
16801
16802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16803fi # test -n "$CONFIG_FILES"
16804
16805# Set up the scripts for CONFIG_HEADERS section.
16806# No need to generate them if there are no CONFIG_HEADERS.
16807# This happens for instance with `./config.status Makefile'.
16808if test -n "$CONFIG_HEADERS"; then
16809cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16810BEGIN {
16811_ACEOF
16812
16813# Transform confdefs.h into an awk script `defines.awk', embedded as
16814# here-document in config.status, that substitutes the proper values into
16815# config.h.in to produce config.h.
16816
16817# Create a delimiter string that does not exist in confdefs.h, to ease
16818# handling of long lines.
16819ac_delim='%!_!# '
16820for ac_last_try in false false :; do
16821  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16822  if test -z "$ac_tt"; then
16823    break
16824  elif $ac_last_try; then
16825    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16826  else
16827    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16828  fi
16829done
16830
16831# For the awk script, D is an array of macro values keyed by name,
16832# likewise P contains macro parameters if any.  Preserve backslash
16833# newline sequences.
16834
16835ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16836sed -n '
16837s/.\{148\}/&'"$ac_delim"'/g
16838t rset
16839:rset
16840s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16841t def
16842d
16843:def
16844s/\\$//
16845t bsnl
16846s/["\\]/\\&/g
16847s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16848D["\1"]=" \3"/p
16849s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16850d
16851:bsnl
16852s/["\\]/\\&/g
16853s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16854D["\1"]=" \3\\\\\\n"\\/p
16855t cont
16856s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16857t cont
16858d
16859:cont
16860n
16861s/.\{148\}/&'"$ac_delim"'/g
16862t clear
16863:clear
16864s/\\$//
16865t bsnlc
16866s/["\\]/\\&/g; s/^/"/; s/$/"/p
16867d
16868:bsnlc
16869s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16870b cont
16871' <confdefs.h | sed '
16872s/'"$ac_delim"'/"\\\
16873"/g' >>$CONFIG_STATUS || ac_write_fail=1
16874
16875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16876  for (key in D) D_is_set[key] = 1
16877  FS = ""
16878}
16879/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16880  line = \$ 0
16881  split(line, arg, " ")
16882  if (arg[1] == "#") {
16883    defundef = arg[2]
16884    mac1 = arg[3]
16885  } else {
16886    defundef = substr(arg[1], 2)
16887    mac1 = arg[2]
16888  }
16889  split(mac1, mac2, "(") #)
16890  macro = mac2[1]
16891  prefix = substr(line, 1, index(line, defundef) - 1)
16892  if (D_is_set[macro]) {
16893    # Preserve the white space surrounding the "#".
16894    print prefix "define", macro P[macro] D[macro]
16895    next
16896  } else {
16897    # Replace #undef with comments.  This is necessary, for example,
16898    # in the case of _POSIX_SOURCE, which is predefined and required
16899    # on some systems where configure will not decide to define it.
16900    if (defundef == "undef") {
16901      print "/*", prefix defundef, macro, "*/"
16902      next
16903    }
16904  }
16905}
16906{ print }
16907_ACAWK
16908_ACEOF
16909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16910  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16911fi # test -n "$CONFIG_HEADERS"
16912
16913
16914eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16915shift
16916for ac_tag
16917do
16918  case $ac_tag in
16919  :[FHLC]) ac_mode=$ac_tag; continue;;
16920  esac
16921  case $ac_mode$ac_tag in
16922  :[FHL]*:*);;
16923  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16924  :[FH]-) ac_tag=-:-;;
16925  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16926  esac
16927  ac_save_IFS=$IFS
16928  IFS=:
16929  set x $ac_tag
16930  IFS=$ac_save_IFS
16931  shift
16932  ac_file=$1
16933  shift
16934
16935  case $ac_mode in
16936  :L) ac_source=$1;;
16937  :[FH])
16938    ac_file_inputs=
16939    for ac_f
16940    do
16941      case $ac_f in
16942      -) ac_f="$ac_tmp/stdin";;
16943      *) # Look for the file first in the build tree, then in the source tree
16944	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16945	 # because $ac_f cannot contain `:'.
16946	 test -f "$ac_f" ||
16947	   case $ac_f in
16948	   [\\/$]*) false;;
16949	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16950	   esac ||
16951	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16952      esac
16953      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16954      as_fn_append ac_file_inputs " '$ac_f'"
16955    done
16956
16957    # Let's still pretend it is `configure' which instantiates (i.e., don't
16958    # use $as_me), people would be surprised to read:
16959    #    /* config.h.  Generated by config.status.  */
16960    configure_input='Generated from '`
16961	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16962	`' by configure.'
16963    if test x"$ac_file" != x-; then
16964      configure_input="$ac_file.  $configure_input"
16965      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16966$as_echo "$as_me: creating $ac_file" >&6;}
16967    fi
16968    # Neutralize special characters interpreted by sed in replacement strings.
16969    case $configure_input in #(
16970    *\&* | *\|* | *\\* )
16971       ac_sed_conf_input=`$as_echo "$configure_input" |
16972       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16973    *) ac_sed_conf_input=$configure_input;;
16974    esac
16975
16976    case $ac_tag in
16977    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16978      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16979    esac
16980    ;;
16981  esac
16982
16983  ac_dir=`$as_dirname -- "$ac_file" ||
16984$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16985	 X"$ac_file" : 'X\(//\)[^/]' \| \
16986	 X"$ac_file" : 'X\(//\)$' \| \
16987	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16988$as_echo X"$ac_file" |
16989    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16990	    s//\1/
16991	    q
16992	  }
16993	  /^X\(\/\/\)[^/].*/{
16994	    s//\1/
16995	    q
16996	  }
16997	  /^X\(\/\/\)$/{
16998	    s//\1/
16999	    q
17000	  }
17001	  /^X\(\/\).*/{
17002	    s//\1/
17003	    q
17004	  }
17005	  s/.*/./; q'`
17006  as_dir="$ac_dir"; as_fn_mkdir_p
17007  ac_builddir=.
17008
17009case "$ac_dir" in
17010.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17011*)
17012  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17013  # A ".." for each directory in $ac_dir_suffix.
17014  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17015  case $ac_top_builddir_sub in
17016  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17017  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17018  esac ;;
17019esac
17020ac_abs_top_builddir=$ac_pwd
17021ac_abs_builddir=$ac_pwd$ac_dir_suffix
17022# for backward compatibility:
17023ac_top_builddir=$ac_top_build_prefix
17024
17025case $srcdir in
17026  .)  # We are building in place.
17027    ac_srcdir=.
17028    ac_top_srcdir=$ac_top_builddir_sub
17029    ac_abs_top_srcdir=$ac_pwd ;;
17030  [\\/]* | ?:[\\/]* )  # Absolute name.
17031    ac_srcdir=$srcdir$ac_dir_suffix;
17032    ac_top_srcdir=$srcdir
17033    ac_abs_top_srcdir=$srcdir ;;
17034  *) # Relative name.
17035    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17036    ac_top_srcdir=$ac_top_build_prefix$srcdir
17037    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17038esac
17039ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17040
17041
17042  case $ac_mode in
17043  :F)
17044  #
17045  # CONFIG_FILE
17046  #
17047
17048  case $INSTALL in
17049  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17050  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17051  esac
17052  ac_MKDIR_P=$MKDIR_P
17053  case $MKDIR_P in
17054  [\\/$]* | ?:[\\/]* ) ;;
17055  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17056  esac
17057_ACEOF
17058
17059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17060# If the template does not know about datarootdir, expand it.
17061# FIXME: This hack should be removed a few years after 2.60.
17062ac_datarootdir_hack=; ac_datarootdir_seen=
17063ac_sed_dataroot='
17064/datarootdir/ {
17065  p
17066  q
17067}
17068/@datadir@/p
17069/@docdir@/p
17070/@infodir@/p
17071/@localedir@/p
17072/@mandir@/p'
17073case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17074*datarootdir*) ac_datarootdir_seen=yes;;
17075*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17076  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17077$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17078_ACEOF
17079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17080  ac_datarootdir_hack='
17081  s&@datadir@&$datadir&g
17082  s&@docdir@&$docdir&g
17083  s&@infodir@&$infodir&g
17084  s&@localedir@&$localedir&g
17085  s&@mandir@&$mandir&g
17086  s&\\\${datarootdir}&$datarootdir&g' ;;
17087esac
17088_ACEOF
17089
17090# Neutralize VPATH when `$srcdir' = `.'.
17091# Shell code in configure.ac might set extrasub.
17092# FIXME: do we really want to maintain this feature?
17093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17094ac_sed_extra="$ac_vpsub
17095$extrasub
17096_ACEOF
17097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17098:t
17099/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17100s|@configure_input@|$ac_sed_conf_input|;t t
17101s&@top_builddir@&$ac_top_builddir_sub&;t t
17102s&@top_build_prefix@&$ac_top_build_prefix&;t t
17103s&@srcdir@&$ac_srcdir&;t t
17104s&@abs_srcdir@&$ac_abs_srcdir&;t t
17105s&@top_srcdir@&$ac_top_srcdir&;t t
17106s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17107s&@builddir@&$ac_builddir&;t t
17108s&@abs_builddir@&$ac_abs_builddir&;t t
17109s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17110s&@INSTALL@&$ac_INSTALL&;t t
17111s&@MKDIR_P@&$ac_MKDIR_P&;t t
17112$ac_datarootdir_hack
17113"
17114eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17115  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17116
17117test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17118  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17119  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17120      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17121  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17122which seems to be undefined.  Please make sure it is defined" >&5
17123$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17124which seems to be undefined.  Please make sure it is defined" >&2;}
17125
17126  rm -f "$ac_tmp/stdin"
17127  case $ac_file in
17128  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17129  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17130  esac \
17131  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17132 ;;
17133  :H)
17134  #
17135  # CONFIG_HEADER
17136  #
17137  if test x"$ac_file" != x-; then
17138    {
17139      $as_echo "/* $configure_input  */" \
17140      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17141    } >"$ac_tmp/config.h" \
17142      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17143    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17144      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17145$as_echo "$as_me: $ac_file is unchanged" >&6;}
17146    else
17147      rm -f "$ac_file"
17148      mv "$ac_tmp/config.h" "$ac_file" \
17149	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17150    fi
17151  else
17152    $as_echo "/* $configure_input  */" \
17153      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17154      || as_fn_error $? "could not create -" "$LINENO" 5
17155  fi
17156# Compute "$ac_file"'s index in $config_headers.
17157_am_arg="$ac_file"
17158_am_stamp_count=1
17159for _am_header in $config_headers :; do
17160  case $_am_header in
17161    $_am_arg | $_am_arg:* )
17162      break ;;
17163    * )
17164      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17165  esac
17166done
17167echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17168$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17169	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17170	 X"$_am_arg" : 'X\(//\)$' \| \
17171	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17172$as_echo X"$_am_arg" |
17173    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17174	    s//\1/
17175	    q
17176	  }
17177	  /^X\(\/\/\)[^/].*/{
17178	    s//\1/
17179	    q
17180	  }
17181	  /^X\(\/\/\)$/{
17182	    s//\1/
17183	    q
17184	  }
17185	  /^X\(\/\).*/{
17186	    s//\1/
17187	    q
17188	  }
17189	  s/.*/./; q'`/stamp-h$_am_stamp_count
17190 ;;
17191
17192  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17193$as_echo "$as_me: executing $ac_file commands" >&6;}
17194 ;;
17195  esac
17196
17197
17198  case $ac_file$ac_mode in
17199    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17200  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17201  # are listed without --file.  Let's play safe and only enable the eval
17202  # if we detect the quoting.
17203  case $CONFIG_FILES in
17204  *\'*) eval set x "$CONFIG_FILES" ;;
17205  *)   set x $CONFIG_FILES ;;
17206  esac
17207  shift
17208  for mf
17209  do
17210    # Strip MF so we end up with the name of the file.
17211    mf=`echo "$mf" | sed -e 's/:.*$//'`
17212    # Check whether this is an Automake generated Makefile or not.
17213    # We used to match only the files named `Makefile.in', but
17214    # some people rename them; so instead we look at the file content.
17215    # Grep'ing the first line is not enough: some people post-process
17216    # each Makefile.in and add a new line on top of each file to say so.
17217    # Grep'ing the whole file is not good either: AIX grep has a line
17218    # limit of 2048, but all sed's we know have understand at least 4000.
17219    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17220      dirpart=`$as_dirname -- "$mf" ||
17221$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17222	 X"$mf" : 'X\(//\)[^/]' \| \
17223	 X"$mf" : 'X\(//\)$' \| \
17224	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17225$as_echo X"$mf" |
17226    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17227	    s//\1/
17228	    q
17229	  }
17230	  /^X\(\/\/\)[^/].*/{
17231	    s//\1/
17232	    q
17233	  }
17234	  /^X\(\/\/\)$/{
17235	    s//\1/
17236	    q
17237	  }
17238	  /^X\(\/\).*/{
17239	    s//\1/
17240	    q
17241	  }
17242	  s/.*/./; q'`
17243    else
17244      continue
17245    fi
17246    # Extract the definition of DEPDIR, am__include, and am__quote
17247    # from the Makefile without running `make'.
17248    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17249    test -z "$DEPDIR" && continue
17250    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17251    test -z "am__include" && continue
17252    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17253    # When using ansi2knr, U may be empty or an underscore; expand it
17254    U=`sed -n 's/^U = //p' < "$mf"`
17255    # Find all dependency output files, they are included files with
17256    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17257    # simplest approach to changing $(DEPDIR) to its actual value in the
17258    # expansion.
17259    for file in `sed -n "
17260      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17261	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17262      # Make sure the directory exists.
17263      test -f "$dirpart/$file" && continue
17264      fdir=`$as_dirname -- "$file" ||
17265$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17266	 X"$file" : 'X\(//\)[^/]' \| \
17267	 X"$file" : 'X\(//\)$' \| \
17268	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17269$as_echo X"$file" |
17270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17271	    s//\1/
17272	    q
17273	  }
17274	  /^X\(\/\/\)[^/].*/{
17275	    s//\1/
17276	    q
17277	  }
17278	  /^X\(\/\/\)$/{
17279	    s//\1/
17280	    q
17281	  }
17282	  /^X\(\/\).*/{
17283	    s//\1/
17284	    q
17285	  }
17286	  s/.*/./; q'`
17287      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17288      # echo "creating $dirpart/$file"
17289      echo '# dummy' > "$dirpart/$file"
17290    done
17291  done
17292}
17293 ;;
17294    "libtool":C)
17295
17296    # See if we are running on zsh, and set the options which allow our
17297    # commands through without removal of \ escapes.
17298    if test -n "${ZSH_VERSION+set}" ; then
17299      setopt NO_GLOB_SUBST
17300    fi
17301
17302    cfgfile="${ofile}T"
17303    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17304    $RM "$cfgfile"
17305
17306    cat <<_LT_EOF >> "$cfgfile"
17307#! $SHELL
17308
17309# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17310# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17311# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17312# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17313#
17314#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17315#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17316#                 Inc.
17317#   Written by Gordon Matzigkeit, 1996
17318#
17319#   This file is part of GNU Libtool.
17320#
17321# GNU Libtool is free software; you can redistribute it and/or
17322# modify it under the terms of the GNU General Public License as
17323# published by the Free Software Foundation; either version 2 of
17324# the License, or (at your option) any later version.
17325#
17326# As a special exception to the GNU General Public License,
17327# if you distribute this file as part of a program or library that
17328# is built using GNU Libtool, you may include this file under the
17329# same distribution terms that you use for the rest of that program.
17330#
17331# GNU Libtool is distributed in the hope that it will be useful,
17332# but WITHOUT ANY WARRANTY; without even the implied warranty of
17333# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17334# GNU General Public License for more details.
17335#
17336# You should have received a copy of the GNU General Public License
17337# along with GNU Libtool; see the file COPYING.  If not, a copy
17338# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17339# obtained by writing to the Free Software Foundation, Inc.,
17340# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17341
17342
17343# The names of the tagged configurations supported by this script.
17344available_tags="CXX "
17345
17346# ### BEGIN LIBTOOL CONFIG
17347
17348# Which release of libtool.m4 was used?
17349macro_version=$macro_version
17350macro_revision=$macro_revision
17351
17352# Whether or not to build static libraries.
17353build_old_libs=$enable_static
17354
17355# Whether or not to build shared libraries.
17356build_libtool_libs=$enable_shared
17357
17358# What type of objects to build.
17359pic_mode=$pic_mode
17360
17361# Whether or not to optimize for fast installation.
17362fast_install=$enable_fast_install
17363
17364# Shell to use when invoking shell scripts.
17365SHELL=$lt_SHELL
17366
17367# An echo program that protects backslashes.
17368ECHO=$lt_ECHO
17369
17370# The host system.
17371host_alias=$host_alias
17372host=$host
17373host_os=$host_os
17374
17375# The build system.
17376build_alias=$build_alias
17377build=$build
17378build_os=$build_os
17379
17380# A sed program that does not truncate output.
17381SED=$lt_SED
17382
17383# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17384Xsed="\$SED -e 1s/^X//"
17385
17386# A grep program that handles long lines.
17387GREP=$lt_GREP
17388
17389# An ERE matcher.
17390EGREP=$lt_EGREP
17391
17392# A literal string matcher.
17393FGREP=$lt_FGREP
17394
17395# A BSD- or MS-compatible name lister.
17396NM=$lt_NM
17397
17398# Whether we need soft or hard links.
17399LN_S=$lt_LN_S
17400
17401# What is the maximum length of a command?
17402max_cmd_len=$max_cmd_len
17403
17404# Object file suffix (normally "o").
17405objext=$ac_objext
17406
17407# Executable file suffix (normally "").
17408exeext=$exeext
17409
17410# whether the shell understands "unset".
17411lt_unset=$lt_unset
17412
17413# turn spaces into newlines.
17414SP2NL=$lt_lt_SP2NL
17415
17416# turn newlines into spaces.
17417NL2SP=$lt_lt_NL2SP
17418
17419# convert \$build file names to \$host format.
17420to_host_file_cmd=$lt_cv_to_host_file_cmd
17421
17422# convert \$build files to toolchain format.
17423to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17424
17425# An object symbol dumper.
17426OBJDUMP=$lt_OBJDUMP
17427
17428# Method to check whether dependent libraries are shared objects.
17429deplibs_check_method=$lt_deplibs_check_method
17430
17431# Command to use when deplibs_check_method = "file_magic".
17432file_magic_cmd=$lt_file_magic_cmd
17433
17434# How to find potential files when deplibs_check_method = "file_magic".
17435file_magic_glob=$lt_file_magic_glob
17436
17437# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17438want_nocaseglob=$lt_want_nocaseglob
17439
17440# DLL creation program.
17441DLLTOOL=$lt_DLLTOOL
17442
17443# Command to associate shared and link libraries.
17444sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17445
17446# The archiver.
17447AR=$lt_AR
17448
17449# Flags to create an archive.
17450AR_FLAGS=$lt_AR_FLAGS
17451
17452# How to feed a file listing to the archiver.
17453archiver_list_spec=$lt_archiver_list_spec
17454
17455# A symbol stripping program.
17456STRIP=$lt_STRIP
17457
17458# Commands used to install an old-style archive.
17459RANLIB=$lt_RANLIB
17460old_postinstall_cmds=$lt_old_postinstall_cmds
17461old_postuninstall_cmds=$lt_old_postuninstall_cmds
17462
17463# Whether to use a lock for old archive extraction.
17464lock_old_archive_extraction=$lock_old_archive_extraction
17465
17466# A C compiler.
17467LTCC=$lt_CC
17468
17469# LTCC compiler flags.
17470LTCFLAGS=$lt_CFLAGS
17471
17472# Take the output of nm and produce a listing of raw symbols and C names.
17473global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17474
17475# Transform the output of nm in a proper C declaration.
17476global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17477
17478# Transform the output of nm in a C name address pair.
17479global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17480
17481# Transform the output of nm in a C name address pair when lib prefix is needed.
17482global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17483
17484# Specify filename containing input files for \$NM.
17485nm_file_list_spec=$lt_nm_file_list_spec
17486
17487# The root where to search for dependent libraries,and in which our libraries should be installed.
17488lt_sysroot=$lt_sysroot
17489
17490# The name of the directory that contains temporary libtool files.
17491objdir=$objdir
17492
17493# Used to examine libraries when file_magic_cmd begins with "file".
17494MAGIC_CMD=$MAGIC_CMD
17495
17496# Must we lock files when doing compilation?
17497need_locks=$lt_need_locks
17498
17499# Manifest tool.
17500MANIFEST_TOOL=$lt_MANIFEST_TOOL
17501
17502# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17503DSYMUTIL=$lt_DSYMUTIL
17504
17505# Tool to change global to local symbols on Mac OS X.
17506NMEDIT=$lt_NMEDIT
17507
17508# Tool to manipulate fat objects and archives on Mac OS X.
17509LIPO=$lt_LIPO
17510
17511# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17512OTOOL=$lt_OTOOL
17513
17514# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17515OTOOL64=$lt_OTOOL64
17516
17517# Old archive suffix (normally "a").
17518libext=$libext
17519
17520# Shared library suffix (normally ".so").
17521shrext_cmds=$lt_shrext_cmds
17522
17523# The commands to extract the exported symbol list from a shared archive.
17524extract_expsyms_cmds=$lt_extract_expsyms_cmds
17525
17526# Variables whose values should be saved in libtool wrapper scripts and
17527# restored at link time.
17528variables_saved_for_relink=$lt_variables_saved_for_relink
17529
17530# Do we need the "lib" prefix for modules?
17531need_lib_prefix=$need_lib_prefix
17532
17533# Do we need a version for libraries?
17534need_version=$need_version
17535
17536# Library versioning type.
17537version_type=$version_type
17538
17539# Shared library runtime path variable.
17540runpath_var=$runpath_var
17541
17542# Shared library path variable.
17543shlibpath_var=$shlibpath_var
17544
17545# Is shlibpath searched before the hard-coded library search path?
17546shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17547
17548# Format of library name prefix.
17549libname_spec=$lt_libname_spec
17550
17551# List of archive names.  First name is the real one, the rest are links.
17552# The last name is the one that the linker finds with -lNAME
17553library_names_spec=$lt_library_names_spec
17554
17555# The coded name of the library, if different from the real name.
17556soname_spec=$lt_soname_spec
17557
17558# Permission mode override for installation of shared libraries.
17559install_override_mode=$lt_install_override_mode
17560
17561# Command to use after installation of a shared archive.
17562postinstall_cmds=$lt_postinstall_cmds
17563
17564# Command to use after uninstallation of a shared archive.
17565postuninstall_cmds=$lt_postuninstall_cmds
17566
17567# Commands used to finish a libtool library installation in a directory.
17568finish_cmds=$lt_finish_cmds
17569
17570# As "finish_cmds", except a single script fragment to be evaled but
17571# not shown.
17572finish_eval=$lt_finish_eval
17573
17574# Whether we should hardcode library paths into libraries.
17575hardcode_into_libs=$hardcode_into_libs
17576
17577# Compile-time system search path for libraries.
17578sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17579
17580# Run-time system search path for libraries.
17581sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17582
17583# Whether dlopen is supported.
17584dlopen_support=$enable_dlopen
17585
17586# Whether dlopen of programs is supported.
17587dlopen_self=$enable_dlopen_self
17588
17589# Whether dlopen of statically linked programs is supported.
17590dlopen_self_static=$enable_dlopen_self_static
17591
17592# Commands to strip libraries.
17593old_striplib=$lt_old_striplib
17594striplib=$lt_striplib
17595
17596
17597# The linker used to build libraries.
17598LD=$lt_LD
17599
17600# How to create reloadable object files.
17601reload_flag=$lt_reload_flag
17602reload_cmds=$lt_reload_cmds
17603
17604# Commands used to build an old-style archive.
17605old_archive_cmds=$lt_old_archive_cmds
17606
17607# A language specific compiler.
17608CC=$lt_compiler
17609
17610# Is the compiler the GNU compiler?
17611with_gcc=$GCC
17612
17613# Compiler flag to turn off builtin functions.
17614no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17615
17616# Additional compiler flags for building library objects.
17617pic_flag=$lt_lt_prog_compiler_pic
17618
17619# How to pass a linker flag through the compiler.
17620wl=$lt_lt_prog_compiler_wl
17621
17622# Compiler flag to prevent dynamic linking.
17623link_static_flag=$lt_lt_prog_compiler_static
17624
17625# Does compiler simultaneously support -c and -o options?
17626compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17627
17628# Whether or not to add -lc for building shared libraries.
17629build_libtool_need_lc=$archive_cmds_need_lc
17630
17631# Whether or not to disallow shared libs when runtime libs are static.
17632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17633
17634# Compiler flag to allow reflexive dlopens.
17635export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17636
17637# Compiler flag to generate shared objects directly from archives.
17638whole_archive_flag_spec=$lt_whole_archive_flag_spec
17639
17640# Whether the compiler copes with passing no objects directly.
17641compiler_needs_object=$lt_compiler_needs_object
17642
17643# Create an old-style archive from a shared archive.
17644old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17645
17646# Create a temporary old-style archive to link instead of a shared archive.
17647old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17648
17649# Commands used to build a shared archive.
17650archive_cmds=$lt_archive_cmds
17651archive_expsym_cmds=$lt_archive_expsym_cmds
17652
17653# Commands used to build a loadable module if different from building
17654# a shared archive.
17655module_cmds=$lt_module_cmds
17656module_expsym_cmds=$lt_module_expsym_cmds
17657
17658# Whether we are building with GNU ld or not.
17659with_gnu_ld=$lt_with_gnu_ld
17660
17661# Flag that allows shared libraries with undefined symbols to be built.
17662allow_undefined_flag=$lt_allow_undefined_flag
17663
17664# Flag that enforces no undefined symbols.
17665no_undefined_flag=$lt_no_undefined_flag
17666
17667# Flag to hardcode \$libdir into a binary during linking.
17668# This must work even if \$libdir does not exist
17669hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17670
17671# If ld is used when linking, flag to hardcode \$libdir into a binary
17672# during linking.  This must work even if \$libdir does not exist.
17673hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17674
17675# Whether we need a single "-rpath" flag with a separated argument.
17676hardcode_libdir_separator=$lt_hardcode_libdir_separator
17677
17678# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17679# DIR into the resulting binary.
17680hardcode_direct=$hardcode_direct
17681
17682# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17683# DIR into the resulting binary and the resulting library dependency is
17684# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17685# library is relocated.
17686hardcode_direct_absolute=$hardcode_direct_absolute
17687
17688# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17689# into the resulting binary.
17690hardcode_minus_L=$hardcode_minus_L
17691
17692# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17693# into the resulting binary.
17694hardcode_shlibpath_var=$hardcode_shlibpath_var
17695
17696# Set to "yes" if building a shared library automatically hardcodes DIR
17697# into the library and all subsequent libraries and executables linked
17698# against it.
17699hardcode_automatic=$hardcode_automatic
17700
17701# Set to yes if linker adds runtime paths of dependent libraries
17702# to runtime path list.
17703inherit_rpath=$inherit_rpath
17704
17705# Whether libtool must link a program against all its dependency libraries.
17706link_all_deplibs=$link_all_deplibs
17707
17708# Set to "yes" if exported symbols are required.
17709always_export_symbols=$always_export_symbols
17710
17711# The commands to list exported symbols.
17712export_symbols_cmds=$lt_export_symbols_cmds
17713
17714# Symbols that should not be listed in the preloaded symbols.
17715exclude_expsyms=$lt_exclude_expsyms
17716
17717# Symbols that must always be exported.
17718include_expsyms=$lt_include_expsyms
17719
17720# Commands necessary for linking programs (against libraries) with templates.
17721prelink_cmds=$lt_prelink_cmds
17722
17723# Commands necessary for finishing linking programs.
17724postlink_cmds=$lt_postlink_cmds
17725
17726# Specify filename containing input files.
17727file_list_spec=$lt_file_list_spec
17728
17729# How to hardcode a shared library path into an executable.
17730hardcode_action=$hardcode_action
17731
17732# The directories searched by this compiler when creating a shared library.
17733compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17734
17735# Dependencies to place before and after the objects being linked to
17736# create a shared library.
17737predep_objects=$lt_predep_objects
17738postdep_objects=$lt_postdep_objects
17739predeps=$lt_predeps
17740postdeps=$lt_postdeps
17741
17742# The library search path used internally by the compiler when linking
17743# a shared library.
17744compiler_lib_search_path=$lt_compiler_lib_search_path
17745
17746# ### END LIBTOOL CONFIG
17747
17748_LT_EOF
17749
17750  case $host_os in
17751  aix3*)
17752    cat <<\_LT_EOF >> "$cfgfile"
17753# AIX sometimes has problems with the GCC collect2 program.  For some
17754# reason, if we set the COLLECT_NAMES environment variable, the problems
17755# vanish in a puff of smoke.
17756if test "X${COLLECT_NAMES+set}" != Xset; then
17757  COLLECT_NAMES=
17758  export COLLECT_NAMES
17759fi
17760_LT_EOF
17761    ;;
17762  esac
17763
17764
17765ltmain="$ac_aux_dir/ltmain.sh"
17766
17767
17768  # We use sed instead of cat because bash on DJGPP gets confused if
17769  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17770  # text mode, it properly converts lines to CR/LF.  This bash problem
17771  # is reportedly fixed, but why not run on old versions too?
17772  sed '$q' "$ltmain" >> "$cfgfile" \
17773     || (rm -f "$cfgfile"; exit 1)
17774
17775  if test x"$xsi_shell" = xyes; then
17776  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17777func_dirname ()\
17778{\
17779\    case ${1} in\
17780\      */*) func_dirname_result="${1%/*}${2}" ;;\
17781\      *  ) func_dirname_result="${3}" ;;\
17782\    esac\
17783} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17784  && mv -f "$cfgfile.tmp" "$cfgfile" \
17785    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17786test 0 -eq $? || _lt_function_replace_fail=:
17787
17788
17789  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17790func_basename ()\
17791{\
17792\    func_basename_result="${1##*/}"\
17793} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17794  && mv -f "$cfgfile.tmp" "$cfgfile" \
17795    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17796test 0 -eq $? || _lt_function_replace_fail=:
17797
17798
17799  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17800func_dirname_and_basename ()\
17801{\
17802\    case ${1} in\
17803\      */*) func_dirname_result="${1%/*}${2}" ;;\
17804\      *  ) func_dirname_result="${3}" ;;\
17805\    esac\
17806\    func_basename_result="${1##*/}"\
17807} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17808  && mv -f "$cfgfile.tmp" "$cfgfile" \
17809    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17810test 0 -eq $? || _lt_function_replace_fail=:
17811
17812
17813  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17814func_stripname ()\
17815{\
17816\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17817\    # positional parameters, so assign one to ordinary parameter first.\
17818\    func_stripname_result=${3}\
17819\    func_stripname_result=${func_stripname_result#"${1}"}\
17820\    func_stripname_result=${func_stripname_result%"${2}"}\
17821} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17822  && mv -f "$cfgfile.tmp" "$cfgfile" \
17823    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17824test 0 -eq $? || _lt_function_replace_fail=:
17825
17826
17827  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17828func_split_long_opt ()\
17829{\
17830\    func_split_long_opt_name=${1%%=*}\
17831\    func_split_long_opt_arg=${1#*=}\
17832} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17833  && mv -f "$cfgfile.tmp" "$cfgfile" \
17834    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17835test 0 -eq $? || _lt_function_replace_fail=:
17836
17837
17838  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17839func_split_short_opt ()\
17840{\
17841\    func_split_short_opt_arg=${1#??}\
17842\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17843} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17844  && mv -f "$cfgfile.tmp" "$cfgfile" \
17845    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17846test 0 -eq $? || _lt_function_replace_fail=:
17847
17848
17849  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17850func_lo2o ()\
17851{\
17852\    case ${1} in\
17853\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17854\      *)    func_lo2o_result=${1} ;;\
17855\    esac\
17856} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17857  && mv -f "$cfgfile.tmp" "$cfgfile" \
17858    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17859test 0 -eq $? || _lt_function_replace_fail=:
17860
17861
17862  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17863func_xform ()\
17864{\
17865    func_xform_result=${1%.*}.lo\
17866} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17867  && mv -f "$cfgfile.tmp" "$cfgfile" \
17868    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17869test 0 -eq $? || _lt_function_replace_fail=:
17870
17871
17872  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17873func_arith ()\
17874{\
17875    func_arith_result=$(( $* ))\
17876} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17877  && mv -f "$cfgfile.tmp" "$cfgfile" \
17878    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17879test 0 -eq $? || _lt_function_replace_fail=:
17880
17881
17882  sed -e '/^func_len ()$/,/^} # func_len /c\
17883func_len ()\
17884{\
17885    func_len_result=${#1}\
17886} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17887  && mv -f "$cfgfile.tmp" "$cfgfile" \
17888    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17889test 0 -eq $? || _lt_function_replace_fail=:
17890
17891fi
17892
17893if test x"$lt_shell_append" = xyes; then
17894  sed -e '/^func_append ()$/,/^} # func_append /c\
17895func_append ()\
17896{\
17897    eval "${1}+=\\${2}"\
17898} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17899  && mv -f "$cfgfile.tmp" "$cfgfile" \
17900    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17901test 0 -eq $? || _lt_function_replace_fail=:
17902
17903
17904  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17905func_append_quoted ()\
17906{\
17907\    func_quote_for_eval "${2}"\
17908\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17909} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17910  && mv -f "$cfgfile.tmp" "$cfgfile" \
17911    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17912test 0 -eq $? || _lt_function_replace_fail=:
17913
17914
17915  # Save a `func_append' function call where possible by direct use of '+='
17916  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17917    && mv -f "$cfgfile.tmp" "$cfgfile" \
17918      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17919  test 0 -eq $? || _lt_function_replace_fail=:
17920else
17921  # Save a `func_append' function call even when '+=' is not available
17922  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17923    && mv -f "$cfgfile.tmp" "$cfgfile" \
17924      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17925  test 0 -eq $? || _lt_function_replace_fail=:
17926fi
17927
17928if test x"$_lt_function_replace_fail" = x":"; then
17929  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17930$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17931fi
17932
17933
17934   mv -f "$cfgfile" "$ofile" ||
17935    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17936  chmod +x "$ofile"
17937
17938
17939    cat <<_LT_EOF >> "$ofile"
17940
17941# ### BEGIN LIBTOOL TAG CONFIG: CXX
17942
17943# The linker used to build libraries.
17944LD=$lt_LD_CXX
17945
17946# How to create reloadable object files.
17947reload_flag=$lt_reload_flag_CXX
17948reload_cmds=$lt_reload_cmds_CXX
17949
17950# Commands used to build an old-style archive.
17951old_archive_cmds=$lt_old_archive_cmds_CXX
17952
17953# A language specific compiler.
17954CC=$lt_compiler_CXX
17955
17956# Is the compiler the GNU compiler?
17957with_gcc=$GCC_CXX
17958
17959# Compiler flag to turn off builtin functions.
17960no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17961
17962# Additional compiler flags for building library objects.
17963pic_flag=$lt_lt_prog_compiler_pic_CXX
17964
17965# How to pass a linker flag through the compiler.
17966wl=$lt_lt_prog_compiler_wl_CXX
17967
17968# Compiler flag to prevent dynamic linking.
17969link_static_flag=$lt_lt_prog_compiler_static_CXX
17970
17971# Does compiler simultaneously support -c and -o options?
17972compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17973
17974# Whether or not to add -lc for building shared libraries.
17975build_libtool_need_lc=$archive_cmds_need_lc_CXX
17976
17977# Whether or not to disallow shared libs when runtime libs are static.
17978allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17979
17980# Compiler flag to allow reflexive dlopens.
17981export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17982
17983# Compiler flag to generate shared objects directly from archives.
17984whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17985
17986# Whether the compiler copes with passing no objects directly.
17987compiler_needs_object=$lt_compiler_needs_object_CXX
17988
17989# Create an old-style archive from a shared archive.
17990old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17991
17992# Create a temporary old-style archive to link instead of a shared archive.
17993old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17994
17995# Commands used to build a shared archive.
17996archive_cmds=$lt_archive_cmds_CXX
17997archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17998
17999# Commands used to build a loadable module if different from building
18000# a shared archive.
18001module_cmds=$lt_module_cmds_CXX
18002module_expsym_cmds=$lt_module_expsym_cmds_CXX
18003
18004# Whether we are building with GNU ld or not.
18005with_gnu_ld=$lt_with_gnu_ld_CXX
18006
18007# Flag that allows shared libraries with undefined symbols to be built.
18008allow_undefined_flag=$lt_allow_undefined_flag_CXX
18009
18010# Flag that enforces no undefined symbols.
18011no_undefined_flag=$lt_no_undefined_flag_CXX
18012
18013# Flag to hardcode \$libdir into a binary during linking.
18014# This must work even if \$libdir does not exist
18015hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18016
18017# If ld is used when linking, flag to hardcode \$libdir into a binary
18018# during linking.  This must work even if \$libdir does not exist.
18019hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18020
18021# Whether we need a single "-rpath" flag with a separated argument.
18022hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18023
18024# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18025# DIR into the resulting binary.
18026hardcode_direct=$hardcode_direct_CXX
18027
18028# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18029# DIR into the resulting binary and the resulting library dependency is
18030# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18031# library is relocated.
18032hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18033
18034# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18035# into the resulting binary.
18036hardcode_minus_L=$hardcode_minus_L_CXX
18037
18038# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18039# into the resulting binary.
18040hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18041
18042# Set to "yes" if building a shared library automatically hardcodes DIR
18043# into the library and all subsequent libraries and executables linked
18044# against it.
18045hardcode_automatic=$hardcode_automatic_CXX
18046
18047# Set to yes if linker adds runtime paths of dependent libraries
18048# to runtime path list.
18049inherit_rpath=$inherit_rpath_CXX
18050
18051# Whether libtool must link a program against all its dependency libraries.
18052link_all_deplibs=$link_all_deplibs_CXX
18053
18054# Set to "yes" if exported symbols are required.
18055always_export_symbols=$always_export_symbols_CXX
18056
18057# The commands to list exported symbols.
18058export_symbols_cmds=$lt_export_symbols_cmds_CXX
18059
18060# Symbols that should not be listed in the preloaded symbols.
18061exclude_expsyms=$lt_exclude_expsyms_CXX
18062
18063# Symbols that must always be exported.
18064include_expsyms=$lt_include_expsyms_CXX
18065
18066# Commands necessary for linking programs (against libraries) with templates.
18067prelink_cmds=$lt_prelink_cmds_CXX
18068
18069# Commands necessary for finishing linking programs.
18070postlink_cmds=$lt_postlink_cmds_CXX
18071
18072# Specify filename containing input files.
18073file_list_spec=$lt_file_list_spec_CXX
18074
18075# How to hardcode a shared library path into an executable.
18076hardcode_action=$hardcode_action_CXX
18077
18078# The directories searched by this compiler when creating a shared library.
18079compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18080
18081# Dependencies to place before and after the objects being linked to
18082# create a shared library.
18083predep_objects=$lt_predep_objects_CXX
18084postdep_objects=$lt_postdep_objects_CXX
18085predeps=$lt_predeps_CXX
18086postdeps=$lt_postdeps_CXX
18087
18088# The library search path used internally by the compiler when linking
18089# a shared library.
18090compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18091
18092# ### END LIBTOOL TAG CONFIG: CXX
18093_LT_EOF
18094
18095 ;;
18096
18097  esac
18098done # for ac_tag
18099
18100
18101as_fn_exit 0
18102_ACEOF
18103ac_clean_files=$ac_clean_files_save
18104
18105test $ac_write_fail = 0 ||
18106  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18107
18108
18109# configure is writing to config.log, and then calls config.status.
18110# config.status does its own redirection, appending to config.log.
18111# Unfortunately, on DOS this fails, as config.log is still kept open
18112# by configure, so config.status won't be able to write to it; its
18113# output is simply discarded.  So we exec the FD to /dev/null,
18114# effectively closing config.log, so it can be properly (re)opened and
18115# appended to by config.status.  When coming back to configure, we
18116# need to make the FD available again.
18117if test "$no_create" != yes; then
18118  ac_cs_success=:
18119  ac_config_status_args=
18120  test "$silent" = yes &&
18121    ac_config_status_args="$ac_config_status_args --quiet"
18122  exec 5>/dev/null
18123  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18124  exec 5>>config.log
18125  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18126  # would make configure fail if this is the last instruction.
18127  $ac_cs_success || as_fn_exit 1
18128fi
18129if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18130  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18131$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18132fi
18133
18134