1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libpar2 0.3.1.
4#
5# Report bugs to <flesueur@users.sourceforge.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: flesueur@users.sourceforge.net about your system,
251$0: including any error possibly output before this
252$0: message. Then install a modern shell, or manually run
253$0: the script under such a shell if you do have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='libpar2'
572PACKAGE_TARNAME='libpar2'
573PACKAGE_VERSION='0.3.1'
574PACKAGE_STRING='libpar2 0.3.1'
575PACKAGE_BUGREPORT='flesueur@users.sourceforge.net'
576PACKAGE_URL=''
577
578ac_unique_file="par2cmdline.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
619SIGC_LIBS
620SIGC_CFLAGS
621PKG_CONFIG_LIBDIR
622PKG_CONFIG_PATH
623PKG_CONFIG
624CXXCPP
625CPP
626OTOOL64
627OTOOL
628LIPO
629NMEDIT
630DSYMUTIL
631MANIFEST_TOOL
632RANLIB
633ac_ct_AR
634AR
635DLLTOOL
636OBJDUMP
637LN_S
638NM
639ac_ct_DUMPBIN
640DUMPBIN
641LD
642FGREP
643EGREP
644GREP
645SED
646am__fastdepCC_FALSE
647am__fastdepCC_TRUE
648CCDEPMODE
649ac_ct_CC
650CFLAGS
651CC
652LIBTOOL
653am__fastdepCXX_FALSE
654am__fastdepCXX_TRUE
655CXXDEPMODE
656am__nodep
657AMDEPBACKSLASH
658AMDEP_FALSE
659AMDEP_TRUE
660am__quote
661am__include
662DEPDIR
663OBJEXT
664EXEEXT
665ac_ct_CXX
666CPPFLAGS
667LDFLAGS
668CXXFLAGS
669CXX
670am__untar
671am__tar
672AMTAR
673am__leading_dot
674SET_MAKE
675AWK
676mkdir_p
677MKDIR_P
678INSTALL_STRIP_PROGRAM
679STRIP
680install_sh
681MAKEINFO
682AUTOHEADER
683AUTOMAKE
684AUTOCONF
685ACLOCAL
686VERSION
687PACKAGE
688CYGPATH_W
689am__isrc
690INSTALL_DATA
691INSTALL_SCRIPT
692INSTALL_PROGRAM
693host_os
694host_vendor
695host_cpu
696host
697build_os
698build_vendor
699build_cpu
700build
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files=''
740ac_user_opts='
741enable_option_checking
742enable_dependency_tracking
743enable_shared
744enable_static
745with_pic
746enable_fast_install
747with_gnu_ld
748with_sysroot
749enable_libtool_lock
750enable_largefile
751'
752      ac_precious_vars='build_alias
753host_alias
754target_alias
755CXX
756CXXFLAGS
757LDFLAGS
758LIBS
759CPPFLAGS
760CCC
761CC
762CFLAGS
763CPP
764CXXCPP
765PKG_CONFIG
766PKG_CONFIG_PATH
767PKG_CONFIG_LIBDIR
768SIGC_CFLAGS
769SIGC_LIBS'
770
771
772# Initialize some variables set by options.
773ac_init_help=
774ac_init_version=false
775ac_unrecognized_opts=
776ac_unrecognized_sep=
777# The variables have the same names as the options, with
778# dashes changed to underlines.
779cache_file=/dev/null
780exec_prefix=NONE
781no_create=
782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
790verbose=
791x_includes=NONE
792x_libraries=NONE
793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
808includedir='${prefix}/include'
809oldincludedir='/usr/include'
810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
819
820ac_prev=
821ac_dashdash=
822for ac_option
823do
824  # If the previous option needs an argument, assign it.
825  if test -n "$ac_prev"; then
826    eval $ac_prev=\$ac_option
827    ac_prev=
828    continue
829  fi
830
831  case $ac_option in
832  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833  *=)   ac_optarg= ;;
834  *)    ac_optarg=yes ;;
835  esac
836
837  # Accept the important Cygnus configure options, so we can diagnose typos.
838
839  case $ac_dashdash$ac_option in
840  --)
841    ac_dashdash=yes ;;
842
843  -bindir | --bindir | --bindi | --bind | --bin | --bi)
844    ac_prev=bindir ;;
845  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846    bindir=$ac_optarg ;;
847
848  -build | --build | --buil | --bui | --bu)
849    ac_prev=build_alias ;;
850  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851    build_alias=$ac_optarg ;;
852
853  -cache-file | --cache-file | --cache-fil | --cache-fi \
854  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855    ac_prev=cache_file ;;
856  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858    cache_file=$ac_optarg ;;
859
860  --config-cache | -C)
861    cache_file=config.cache ;;
862
863  -datadir | --datadir | --datadi | --datad)
864    ac_prev=datadir ;;
865  -datadir=* | --datadir=* | --datadi=* | --datad=*)
866    datadir=$ac_optarg ;;
867
868  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869  | --dataroo | --dataro | --datar)
870    ac_prev=datarootdir ;;
871  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873    datarootdir=$ac_optarg ;;
874
875  -disable-* | --disable-*)
876    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877    # Reject names that are not valid shell variable names.
878    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879      as_fn_error $? "invalid feature name: $ac_useropt"
880    ac_useropt_orig=$ac_useropt
881    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882    case $ac_user_opts in
883      *"
884"enable_$ac_useropt"
885"*) ;;
886      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887	 ac_unrecognized_sep=', ';;
888    esac
889    eval enable_$ac_useropt=no ;;
890
891  -docdir | --docdir | --docdi | --doc | --do)
892    ac_prev=docdir ;;
893  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894    docdir=$ac_optarg ;;
895
896  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897    ac_prev=dvidir ;;
898  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899    dvidir=$ac_optarg ;;
900
901  -enable-* | --enable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=\$ac_optarg ;;
916
917  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919  | --exec | --exe | --ex)
920    ac_prev=exec_prefix ;;
921  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923  | --exec=* | --exe=* | --ex=*)
924    exec_prefix=$ac_optarg ;;
925
926  -gas | --gas | --ga | --g)
927    # Obsolete; use --with-gas.
928    with_gas=yes ;;
929
930  -help | --help | --hel | --he | -h)
931    ac_init_help=long ;;
932  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933    ac_init_help=recursive ;;
934  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935    ac_init_help=short ;;
936
937  -host | --host | --hos | --ho)
938    ac_prev=host_alias ;;
939  -host=* | --host=* | --hos=* | --ho=*)
940    host_alias=$ac_optarg ;;
941
942  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943    ac_prev=htmldir ;;
944  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945  | --ht=*)
946    htmldir=$ac_optarg ;;
947
948  -includedir | --includedir | --includedi | --included | --include \
949  | --includ | --inclu | --incl | --inc)
950    ac_prev=includedir ;;
951  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952  | --includ=* | --inclu=* | --incl=* | --inc=*)
953    includedir=$ac_optarg ;;
954
955  -infodir | --infodir | --infodi | --infod | --info | --inf)
956    ac_prev=infodir ;;
957  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958    infodir=$ac_optarg ;;
959
960  -libdir | --libdir | --libdi | --libd)
961    ac_prev=libdir ;;
962  -libdir=* | --libdir=* | --libdi=* | --libd=*)
963    libdir=$ac_optarg ;;
964
965  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966  | --libexe | --libex | --libe)
967    ac_prev=libexecdir ;;
968  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969  | --libexe=* | --libex=* | --libe=*)
970    libexecdir=$ac_optarg ;;
971
972  -localedir | --localedir | --localedi | --localed | --locale)
973    ac_prev=localedir ;;
974  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975    localedir=$ac_optarg ;;
976
977  -localstatedir | --localstatedir | --localstatedi | --localstated \
978  | --localstate | --localstat | --localsta | --localst | --locals)
979    ac_prev=localstatedir ;;
980  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982    localstatedir=$ac_optarg ;;
983
984  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985    ac_prev=mandir ;;
986  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987    mandir=$ac_optarg ;;
988
989  -nfp | --nfp | --nf)
990    # Obsolete; use --without-fp.
991    with_fp=no ;;
992
993  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994  | --no-cr | --no-c | -n)
995    no_create=yes ;;
996
997  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999    no_recursion=yes ;;
1000
1001  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003  | --oldin | --oldi | --old | --ol | --o)
1004    ac_prev=oldincludedir ;;
1005  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008    oldincludedir=$ac_optarg ;;
1009
1010  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011    ac_prev=prefix ;;
1012  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013    prefix=$ac_optarg ;;
1014
1015  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016  | --program-pre | --program-pr | --program-p)
1017    ac_prev=program_prefix ;;
1018  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020    program_prefix=$ac_optarg ;;
1021
1022  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023  | --program-suf | --program-su | --program-s)
1024    ac_prev=program_suffix ;;
1025  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027    program_suffix=$ac_optarg ;;
1028
1029  -program-transform-name | --program-transform-name \
1030  | --program-transform-nam | --program-transform-na \
1031  | --program-transform-n | --program-transform- \
1032  | --program-transform | --program-transfor \
1033  | --program-transfo | --program-transf \
1034  | --program-trans | --program-tran \
1035  | --progr-tra | --program-tr | --program-t)
1036    ac_prev=program_transform_name ;;
1037  -program-transform-name=* | --program-transform-name=* \
1038  | --program-transform-nam=* | --program-transform-na=* \
1039  | --program-transform-n=* | --program-transform-=* \
1040  | --program-transform=* | --program-transfor=* \
1041  | --program-transfo=* | --program-transf=* \
1042  | --program-trans=* | --program-tran=* \
1043  | --progr-tra=* | --program-tr=* | --program-t=*)
1044    program_transform_name=$ac_optarg ;;
1045
1046  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047    ac_prev=pdfdir ;;
1048  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049    pdfdir=$ac_optarg ;;
1050
1051  -psdir | --psdir | --psdi | --psd | --ps)
1052    ac_prev=psdir ;;
1053  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054    psdir=$ac_optarg ;;
1055
1056  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057  | -silent | --silent | --silen | --sile | --sil)
1058    silent=yes ;;
1059
1060  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061    ac_prev=sbindir ;;
1062  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063  | --sbi=* | --sb=*)
1064    sbindir=$ac_optarg ;;
1065
1066  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068  | --sharedst | --shareds | --shared | --share | --shar \
1069  | --sha | --sh)
1070    ac_prev=sharedstatedir ;;
1071  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074  | --sha=* | --sh=*)
1075    sharedstatedir=$ac_optarg ;;
1076
1077  -site | --site | --sit)
1078    ac_prev=site ;;
1079  -site=* | --site=* | --sit=*)
1080    site=$ac_optarg ;;
1081
1082  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083    ac_prev=srcdir ;;
1084  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085    srcdir=$ac_optarg ;;
1086
1087  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088  | --syscon | --sysco | --sysc | --sys | --sy)
1089    ac_prev=sysconfdir ;;
1090  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092    sysconfdir=$ac_optarg ;;
1093
1094  -target | --target | --targe | --targ | --tar | --ta | --t)
1095    ac_prev=target_alias ;;
1096  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097    target_alias=$ac_optarg ;;
1098
1099  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100    verbose=yes ;;
1101
1102  -version | --version | --versio | --versi | --vers | -V)
1103    ac_init_version=: ;;
1104
1105  -with-* | --with-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid package name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=\$ac_optarg ;;
1120
1121  -without-* | --without-*)
1122    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123    # Reject names that are not valid shell variable names.
1124    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125      as_fn_error $? "invalid package name: $ac_useropt"
1126    ac_useropt_orig=$ac_useropt
1127    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128    case $ac_user_opts in
1129      *"
1130"with_$ac_useropt"
1131"*) ;;
1132      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133	 ac_unrecognized_sep=', ';;
1134    esac
1135    eval with_$ac_useropt=no ;;
1136
1137  --x)
1138    # Obsolete; use --with-x.
1139    with_x=yes ;;
1140
1141  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142  | --x-incl | --x-inc | --x-in | --x-i)
1143    ac_prev=x_includes ;;
1144  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146    x_includes=$ac_optarg ;;
1147
1148  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150    ac_prev=x_libraries ;;
1151  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153    x_libraries=$ac_optarg ;;
1154
1155  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156Try \`$0 --help' for more information"
1157    ;;
1158
1159  *=*)
1160    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161    # Reject names that are not valid shell variable names.
1162    case $ac_envvar in #(
1163      '' | [0-9]* | *[!_$as_cr_alnum]* )
1164      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165    esac
1166    eval $ac_envvar=\$ac_optarg
1167    export $ac_envvar ;;
1168
1169  *)
1170    # FIXME: should be removed in autoconf 3.0.
1171    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175    ;;
1176
1177  esac
1178done
1179
1180if test -n "$ac_prev"; then
1181  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182  as_fn_error $? "missing argument to $ac_option"
1183fi
1184
1185if test -n "$ac_unrecognized_opts"; then
1186  case $enable_option_checking in
1187    no) ;;
1188    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190  esac
1191fi
1192
1193# Check all directory arguments for consistency.
1194for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195		datadir sysconfdir sharedstatedir localstatedir includedir \
1196		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197		libdir localedir mandir
1198do
1199  eval ac_val=\$$ac_var
1200  # Remove trailing slashes.
1201  case $ac_val in
1202    */ )
1203      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204      eval $ac_var=\$ac_val;;
1205  esac
1206  # Be sure to have absolute directory names.
1207  case $ac_val in
1208    [\\/$]* | ?:[\\/]* )  continue;;
1209    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210  esac
1211  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223  if test "x$build_alias" = x; then
1224    cross_compiling=maybe
1225    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1226    If a cross compiler is detected then cross compile mode will be used" >&2
1227  elif test "x$build_alias" != "x$host_alias"; then
1228    cross_compiling=yes
1229  fi
1230fi
1231
1232ac_tool_prefix=
1233test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235test "$silent" = yes && exec 6>/dev/null
1236
1237
1238ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239ac_ls_di=`ls -di .` &&
1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241  as_fn_error $? "working directory cannot be determined"
1242test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243  as_fn_error $? "pwd does not report name of working directory"
1244
1245
1246# Find the source files, if location was not specified.
1247if test -z "$srcdir"; then
1248  ac_srcdir_defaulted=yes
1249  # Try the directory containing this script, then the parent directory.
1250  ac_confdir=`$as_dirname -- "$as_myself" ||
1251$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252	 X"$as_myself" : 'X\(//\)[^/]' \| \
1253	 X"$as_myself" : 'X\(//\)$' \| \
1254	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255$as_echo X"$as_myself" |
1256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257	    s//\1/
1258	    q
1259	  }
1260	  /^X\(\/\/\)[^/].*/{
1261	    s//\1/
1262	    q
1263	  }
1264	  /^X\(\/\/\)$/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\).*/{
1269	    s//\1/
1270	    q
1271	  }
1272	  s/.*/./; q'`
1273  srcdir=$ac_confdir
1274  if test ! -r "$srcdir/$ac_unique_file"; then
1275    srcdir=..
1276  fi
1277else
1278  ac_srcdir_defaulted=no
1279fi
1280if test ! -r "$srcdir/$ac_unique_file"; then
1281  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283fi
1284ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285ac_abs_confdir=`(
1286	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287	pwd)`
1288# When building in place, set srcdir=.
1289if test "$ac_abs_confdir" = "$ac_pwd"; then
1290  srcdir=.
1291fi
1292# Remove unnecessary trailing slashes from srcdir.
1293# Double slashes in file names in object file debugging info
1294# mess up M-x gdb in Emacs.
1295case $srcdir in
1296*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297esac
1298for ac_var in $ac_precious_vars; do
1299  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300  eval ac_env_${ac_var}_value=\$${ac_var}
1301  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303done
1304
1305#
1306# Report the --help message.
1307#
1308if test "$ac_init_help" = "long"; then
1309  # Omit some internal or obsolete options to make the list less imposing.
1310  # This message is too long to be a string in the A/UX 3.1 sh.
1311  cat <<_ACEOF
1312\`configure' configures libpar2 0.3.1 to adapt to many kinds of systems.
1313
1314Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317VAR=VALUE.  See below for descriptions of some of the useful variables.
1318
1319Defaults for the options are specified in brackets.
1320
1321Configuration:
1322  -h, --help              display this help and exit
1323      --help=short        display options specific to this package
1324      --help=recursive    display the short help of all the included packages
1325  -V, --version           display version information and exit
1326  -q, --quiet, --silent   do not print \`checking ...' messages
1327      --cache-file=FILE   cache test results in FILE [disabled]
1328  -C, --config-cache      alias for \`--cache-file=config.cache'
1329  -n, --no-create         do not create output files
1330      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1331
1332Installation directories:
1333  --prefix=PREFIX         install architecture-independent files in PREFIX
1334                          [$ac_default_prefix]
1335  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1336                          [PREFIX]
1337
1338By default, \`make install' will install all the files in
1339\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1340an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341for instance \`--prefix=\$HOME'.
1342
1343For better control, use the options below.
1344
1345Fine tuning of the installation directories:
1346  --bindir=DIR            user executables [EPREFIX/bin]
1347  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1348  --libexecdir=DIR        program executables [EPREFIX/libexec]
1349  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1350  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1351  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1352  --libdir=DIR            object code libraries [EPREFIX/lib]
1353  --includedir=DIR        C header files [PREFIX/include]
1354  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1355  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1356  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1357  --infodir=DIR           info documentation [DATAROOTDIR/info]
1358  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1359  --mandir=DIR            man documentation [DATAROOTDIR/man]
1360  --docdir=DIR            documentation root [DATAROOTDIR/doc/libpar2]
1361  --htmldir=DIR           html documentation [DOCDIR]
1362  --dvidir=DIR            dvi documentation [DOCDIR]
1363  --pdfdir=DIR            pdf documentation [DOCDIR]
1364  --psdir=DIR             ps documentation [DOCDIR]
1365_ACEOF
1366
1367  cat <<\_ACEOF
1368
1369Program names:
1370  --program-prefix=PREFIX            prepend PREFIX to installed program names
1371  --program-suffix=SUFFIX            append SUFFIX to installed program names
1372  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1373
1374System types:
1375  --build=BUILD     configure for building on BUILD [guessed]
1376  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377_ACEOF
1378fi
1379
1380if test -n "$ac_init_help"; then
1381  case $ac_init_help in
1382     short | recursive ) echo "Configuration of libpar2 0.3.1:";;
1383   esac
1384  cat <<\_ACEOF
1385
1386Optional Features:
1387  --disable-option-checking  ignore unrecognized --enable/--with options
1388  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390  --disable-dependency-tracking  speeds up one-time build
1391  --enable-dependency-tracking   do not reject slow dependency extractors
1392  --enable-shared[=PKGS]  build shared libraries [default=yes]
1393  --enable-static[=PKGS]  build static libraries [default=yes]
1394  --enable-fast-install[=PKGS]
1395                          optimize for fast installation [default=yes]
1396  --disable-libtool-lock  avoid locking (might break parallel builds)
1397  --disable-largefile     omit support for large files
1398
1399Optional Packages:
1400  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1401  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1402  --with-pic              try to use only PIC/non-PIC objects [default=use
1403                          both]
1404  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1405  --with-sysroot=DIR Search for dependent libraries within DIR
1406                        (or the compiler's sysroot if not specified).
1407
1408Some influential environment variables:
1409  CXX         C++ compiler command
1410  CXXFLAGS    C++ compiler flags
1411  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1412              nonstandard directory <lib dir>
1413  LIBS        libraries to pass to the linker, e.g. -l<library>
1414  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1415              you have headers in a nonstandard directory <include dir>
1416  CC          C compiler command
1417  CFLAGS      C compiler flags
1418  CPP         C preprocessor
1419  CXXCPP      C++ preprocessor
1420  PKG_CONFIG  path to pkg-config utility
1421  PKG_CONFIG_PATH
1422              directories to add to pkg-config's search path
1423  PKG_CONFIG_LIBDIR
1424              path overriding pkg-config's built-in search path
1425  SIGC_CFLAGS C compiler flags for SIGC, overriding pkg-config
1426  SIGC_LIBS   linker flags for SIGC, overriding pkg-config
1427
1428Use these variables to override the choices made by `configure' or to help
1429it to find libraries and programs with nonstandard names/locations.
1430
1431Report bugs to <flesueur@users.sourceforge.net>.
1432_ACEOF
1433ac_status=$?
1434fi
1435
1436if test "$ac_init_help" = "recursive"; then
1437  # If there are subdirs, report their specific --help.
1438  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439    test -d "$ac_dir" ||
1440      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441      continue
1442    ac_builddir=.
1443
1444case "$ac_dir" in
1445.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446*)
1447  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448  # A ".." for each directory in $ac_dir_suffix.
1449  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450  case $ac_top_builddir_sub in
1451  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453  esac ;;
1454esac
1455ac_abs_top_builddir=$ac_pwd
1456ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457# for backward compatibility:
1458ac_top_builddir=$ac_top_build_prefix
1459
1460case $srcdir in
1461  .)  # We are building in place.
1462    ac_srcdir=.
1463    ac_top_srcdir=$ac_top_builddir_sub
1464    ac_abs_top_srcdir=$ac_pwd ;;
1465  [\\/]* | ?:[\\/]* )  # Absolute name.
1466    ac_srcdir=$srcdir$ac_dir_suffix;
1467    ac_top_srcdir=$srcdir
1468    ac_abs_top_srcdir=$srcdir ;;
1469  *) # Relative name.
1470    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471    ac_top_srcdir=$ac_top_build_prefix$srcdir
1472    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473esac
1474ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
1476    cd "$ac_dir" || { ac_status=$?; continue; }
1477    # Check for guested configure.
1478    if test -f "$ac_srcdir/configure.gnu"; then
1479      echo &&
1480      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481    elif test -f "$ac_srcdir/configure"; then
1482      echo &&
1483      $SHELL "$ac_srcdir/configure" --help=recursive
1484    else
1485      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486    fi || ac_status=$?
1487    cd "$ac_pwd" || { ac_status=$?; break; }
1488  done
1489fi
1490
1491test -n "$ac_init_help" && exit $ac_status
1492if $ac_init_version; then
1493  cat <<\_ACEOF
1494libpar2 configure 0.3.1
1495generated by GNU Autoconf 2.68
1496
1497Copyright (C) 2010 Free Software Foundation, Inc.
1498This configure script is free software; the Free Software Foundation
1499gives unlimited permission to copy, distribute and modify it.
1500_ACEOF
1501  exit
1502fi
1503
1504## ------------------------ ##
1505## Autoconf initialization. ##
1506## ------------------------ ##
1507
1508# ac_fn_cxx_try_compile LINENO
1509# ----------------------------
1510# Try to compile conftest.$ac_ext, and return whether this succeeded.
1511ac_fn_cxx_try_compile ()
1512{
1513  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514  rm -f conftest.$ac_objext
1515  if { { ac_try="$ac_compile"
1516case "(($ac_try" in
1517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518  *) ac_try_echo=$ac_try;;
1519esac
1520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521$as_echo "$ac_try_echo"; } >&5
1522  (eval "$ac_compile") 2>conftest.err
1523  ac_status=$?
1524  if test -s conftest.err; then
1525    grep -v '^ *+' conftest.err >conftest.er1
1526    cat conftest.er1 >&5
1527    mv -f conftest.er1 conftest.err
1528  fi
1529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530  test $ac_status = 0; } && {
1531	 test -z "$ac_cxx_werror_flag" ||
1532	 test ! -s conftest.err
1533       } && test -s conftest.$ac_objext; then :
1534  ac_retval=0
1535else
1536  $as_echo "$as_me: failed program was:" >&5
1537sed 's/^/| /' conftest.$ac_ext >&5
1538
1539	ac_retval=1
1540fi
1541  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542  as_fn_set_status $ac_retval
1543
1544} # ac_fn_cxx_try_compile
1545
1546# ac_fn_c_try_compile LINENO
1547# --------------------------
1548# Try to compile conftest.$ac_ext, and return whether this succeeded.
1549ac_fn_c_try_compile ()
1550{
1551  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552  rm -f conftest.$ac_objext
1553  if { { ac_try="$ac_compile"
1554case "(($ac_try" in
1555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556  *) ac_try_echo=$ac_try;;
1557esac
1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559$as_echo "$ac_try_echo"; } >&5
1560  (eval "$ac_compile") 2>conftest.err
1561  ac_status=$?
1562  if test -s conftest.err; then
1563    grep -v '^ *+' conftest.err >conftest.er1
1564    cat conftest.er1 >&5
1565    mv -f conftest.er1 conftest.err
1566  fi
1567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568  test $ac_status = 0; } && {
1569	 test -z "$ac_c_werror_flag" ||
1570	 test ! -s conftest.err
1571       } && test -s conftest.$ac_objext; then :
1572  ac_retval=0
1573else
1574  $as_echo "$as_me: failed program was:" >&5
1575sed 's/^/| /' conftest.$ac_ext >&5
1576
1577	ac_retval=1
1578fi
1579  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580  as_fn_set_status $ac_retval
1581
1582} # ac_fn_c_try_compile
1583
1584# ac_fn_c_try_link LINENO
1585# -----------------------
1586# Try to link conftest.$ac_ext, and return whether this succeeded.
1587ac_fn_c_try_link ()
1588{
1589  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590  rm -f conftest.$ac_objext conftest$ac_exeext
1591  if { { ac_try="$ac_link"
1592case "(($ac_try" in
1593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594  *) ac_try_echo=$ac_try;;
1595esac
1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597$as_echo "$ac_try_echo"; } >&5
1598  (eval "$ac_link") 2>conftest.err
1599  ac_status=$?
1600  if test -s conftest.err; then
1601    grep -v '^ *+' conftest.err >conftest.er1
1602    cat conftest.er1 >&5
1603    mv -f conftest.er1 conftest.err
1604  fi
1605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606  test $ac_status = 0; } && {
1607	 test -z "$ac_c_werror_flag" ||
1608	 test ! -s conftest.err
1609       } && test -s conftest$ac_exeext && {
1610	 test "$cross_compiling" = yes ||
1611	 $as_test_x conftest$ac_exeext
1612       }; then :
1613  ac_retval=0
1614else
1615  $as_echo "$as_me: failed program was:" >&5
1616sed 's/^/| /' conftest.$ac_ext >&5
1617
1618	ac_retval=1
1619fi
1620  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1621  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1622  # interfere with the next link command; also delete a directory that is
1623  # left behind by Apple's compiler.  We do this before executing the actions.
1624  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1625  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626  as_fn_set_status $ac_retval
1627
1628} # ac_fn_c_try_link
1629
1630# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631# -------------------------------------------------------
1632# Tests whether HEADER exists and can be compiled using the include files in
1633# INCLUDES, setting the cache variable VAR accordingly.
1634ac_fn_c_check_header_compile ()
1635{
1636  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638$as_echo_n "checking for $2... " >&6; }
1639if eval \${$3+:} false; then :
1640  $as_echo_n "(cached) " >&6
1641else
1642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643/* end confdefs.h.  */
1644$4
1645#include <$2>
1646_ACEOF
1647if ac_fn_c_try_compile "$LINENO"; then :
1648  eval "$3=yes"
1649else
1650  eval "$3=no"
1651fi
1652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653fi
1654eval ac_res=\$$3
1655	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656$as_echo "$ac_res" >&6; }
1657  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658
1659} # ac_fn_c_check_header_compile
1660
1661# ac_fn_c_try_cpp LINENO
1662# ----------------------
1663# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664ac_fn_c_try_cpp ()
1665{
1666  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667  if { { ac_try="$ac_cpp conftest.$ac_ext"
1668case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1675  ac_status=$?
1676  if test -s conftest.err; then
1677    grep -v '^ *+' conftest.err >conftest.er1
1678    cat conftest.er1 >&5
1679    mv -f conftest.er1 conftest.err
1680  fi
1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } > conftest.i && {
1683	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1684	 test ! -s conftest.err
1685       }; then :
1686  ac_retval=0
1687else
1688  $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691    ac_retval=1
1692fi
1693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694  as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_cpp
1697
1698# ac_fn_c_try_run LINENO
1699# ----------------------
1700# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1701# that executables *can* be run.
1702ac_fn_c_try_run ()
1703{
1704  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705  if { { ac_try="$ac_link"
1706case "(($ac_try" in
1707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708  *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712  (eval "$ac_link") 2>&5
1713  ac_status=$?
1714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1716  { { case "(($ac_try" in
1717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718  *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
1722  (eval "$ac_try") 2>&5
1723  ac_status=$?
1724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725  test $ac_status = 0; }; }; then :
1726  ac_retval=0
1727else
1728  $as_echo "$as_me: program exited with status $ac_status" >&5
1729       $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732       ac_retval=$ac_status
1733fi
1734  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736  as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_run
1739
1740# ac_fn_c_check_func LINENO FUNC VAR
1741# ----------------------------------
1742# Tests whether FUNC exists, setting the cache variable VAR accordingly
1743ac_fn_c_check_func ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747$as_echo_n "checking for $2... " >&6; }
1748if eval \${$3+:} false; then :
1749  $as_echo_n "(cached) " >&6
1750else
1751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752/* end confdefs.h.  */
1753/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1754   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1755#define $2 innocuous_$2
1756
1757/* System header to define __stub macros and hopefully few prototypes,
1758    which can conflict with char $2 (); below.
1759    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1760    <limits.h> exists even on freestanding compilers.  */
1761
1762#ifdef __STDC__
1763# include <limits.h>
1764#else
1765# include <assert.h>
1766#endif
1767
1768#undef $2
1769
1770/* Override any GCC internal prototype to avoid an error.
1771   Use char because int might match the return type of a GCC
1772   builtin and then its argument prototype would still apply.  */
1773#ifdef __cplusplus
1774extern "C"
1775#endif
1776char $2 ();
1777/* The GNU C library defines this for functions which it implements
1778    to always fail with ENOSYS.  Some functions are actually named
1779    something starting with __ and the normal name is an alias.  */
1780#if defined __stub_$2 || defined __stub___$2
1781choke me
1782#endif
1783
1784int
1785main ()
1786{
1787return $2 ();
1788  ;
1789  return 0;
1790}
1791_ACEOF
1792if ac_fn_c_try_link "$LINENO"; then :
1793  eval "$3=yes"
1794else
1795  eval "$3=no"
1796fi
1797rm -f core conftest.err conftest.$ac_objext \
1798    conftest$ac_exeext conftest.$ac_ext
1799fi
1800eval ac_res=\$$3
1801	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802$as_echo "$ac_res" >&6; }
1803  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805} # ac_fn_c_check_func
1806
1807# ac_fn_cxx_try_cpp LINENO
1808# ------------------------
1809# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1810ac_fn_cxx_try_cpp ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  if { { ac_try="$ac_cpp conftest.$ac_ext"
1814case "(($ac_try" in
1815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816  *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819$as_echo "$ac_try_echo"; } >&5
1820  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1821  ac_status=$?
1822  if test -s conftest.err; then
1823    grep -v '^ *+' conftest.err >conftest.er1
1824    cat conftest.er1 >&5
1825    mv -f conftest.er1 conftest.err
1826  fi
1827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828  test $ac_status = 0; } > conftest.i && {
1829	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1830	 test ! -s conftest.err
1831       }; then :
1832  ac_retval=0
1833else
1834  $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837    ac_retval=1
1838fi
1839  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840  as_fn_set_status $ac_retval
1841
1842} # ac_fn_cxx_try_cpp
1843
1844# ac_fn_cxx_try_link LINENO
1845# -------------------------
1846# Try to link conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_cxx_try_link ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  rm -f conftest.$ac_objext conftest$ac_exeext
1851  if { { ac_try="$ac_link"
1852case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858  (eval "$ac_link") 2>conftest.err
1859  ac_status=$?
1860  if test -s conftest.err; then
1861    grep -v '^ *+' conftest.err >conftest.er1
1862    cat conftest.er1 >&5
1863    mv -f conftest.er1 conftest.err
1864  fi
1865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866  test $ac_status = 0; } && {
1867	 test -z "$ac_cxx_werror_flag" ||
1868	 test ! -s conftest.err
1869       } && test -s conftest$ac_exeext && {
1870	 test "$cross_compiling" = yes ||
1871	 $as_test_x conftest$ac_exeext
1872       }; then :
1873  ac_retval=0
1874else
1875  $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878	ac_retval=1
1879fi
1880  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1881  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1882  # interfere with the next link command; also delete a directory that is
1883  # left behind by Apple's compiler.  We do this before executing the actions.
1884  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886  as_fn_set_status $ac_retval
1887
1888} # ac_fn_cxx_try_link
1889
1890# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1891# ---------------------------------------------
1892# Tests whether TYPE exists after having included INCLUDES, setting cache
1893# variable VAR accordingly.
1894ac_fn_cxx_check_type ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898$as_echo_n "checking for $2... " >&6; }
1899if eval \${$3+:} false; then :
1900  $as_echo_n "(cached) " >&6
1901else
1902  eval "$3=no"
1903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h.  */
1905$4
1906int
1907main ()
1908{
1909if (sizeof ($2))
1910	 return 0;
1911  ;
1912  return 0;
1913}
1914_ACEOF
1915if ac_fn_cxx_try_compile "$LINENO"; then :
1916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h.  */
1918$4
1919int
1920main ()
1921{
1922if (sizeof (($2)))
1923	    return 0;
1924  ;
1925  return 0;
1926}
1927_ACEOF
1928if ac_fn_cxx_try_compile "$LINENO"; then :
1929
1930else
1931  eval "$3=yes"
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934fi
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936fi
1937eval ac_res=\$$3
1938	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939$as_echo "$ac_res" >&6; }
1940  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942} # ac_fn_cxx_check_type
1943
1944# ac_fn_cxx_try_run LINENO
1945# ------------------------
1946# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1947# that executables *can* be run.
1948ac_fn_cxx_try_run ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  if { { ac_try="$ac_link"
1952case "(($ac_try" in
1953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954  *) ac_try_echo=$ac_try;;
1955esac
1956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957$as_echo "$ac_try_echo"; } >&5
1958  (eval "$ac_link") 2>&5
1959  ac_status=$?
1960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1962  { { case "(($ac_try" in
1963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964  *) ac_try_echo=$ac_try;;
1965esac
1966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967$as_echo "$ac_try_echo"; } >&5
1968  (eval "$ac_try") 2>&5
1969  ac_status=$?
1970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971  test $ac_status = 0; }; }; then :
1972  ac_retval=0
1973else
1974  $as_echo "$as_me: program exited with status $ac_status" >&5
1975       $as_echo "$as_me: failed program was:" >&5
1976sed 's/^/| /' conftest.$ac_ext >&5
1977
1978       ac_retval=$ac_status
1979fi
1980  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982  as_fn_set_status $ac_retval
1983
1984} # ac_fn_cxx_try_run
1985
1986# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1987# ---------------------------------------------------------
1988# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1989# the include files in INCLUDES and setting the cache variable VAR
1990# accordingly.
1991ac_fn_cxx_check_header_mongrel ()
1992{
1993  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994  if eval \${$3+:} false; then :
1995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996$as_echo_n "checking for $2... " >&6; }
1997if eval \${$3+:} false; then :
1998  $as_echo_n "(cached) " >&6
1999fi
2000eval ac_res=\$$3
2001	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
2003else
2004  # Is the header compilable?
2005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2006$as_echo_n "checking $2 usability... " >&6; }
2007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h.  */
2009$4
2010#include <$2>
2011_ACEOF
2012if ac_fn_cxx_try_compile "$LINENO"; then :
2013  ac_header_compiler=yes
2014else
2015  ac_header_compiler=no
2016fi
2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2019$as_echo "$ac_header_compiler" >&6; }
2020
2021# Is the header present?
2022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2023$as_echo_n "checking $2 presence... " >&6; }
2024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h.  */
2026#include <$2>
2027_ACEOF
2028if ac_fn_cxx_try_cpp "$LINENO"; then :
2029  ac_header_preproc=yes
2030else
2031  ac_header_preproc=no
2032fi
2033rm -f conftest.err conftest.i conftest.$ac_ext
2034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2035$as_echo "$ac_header_preproc" >&6; }
2036
2037# So?  What about this header?
2038case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2039  yes:no: )
2040    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2041$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2042    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044    ;;
2045  no:yes:* )
2046    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2047$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2048    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2049$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2050    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2051$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2052    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2053$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2054    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2055$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2056( $as_echo "## --------------------------------------------- ##
2057## Report this to flesueur@users.sourceforge.net ##
2058## --------------------------------------------- ##"
2059     ) | sed "s/^/$as_me: WARNING:     /" >&2
2060    ;;
2061esac
2062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063$as_echo_n "checking for $2... " >&6; }
2064if eval \${$3+:} false; then :
2065  $as_echo_n "(cached) " >&6
2066else
2067  eval "$3=\$ac_header_compiler"
2068fi
2069eval ac_res=\$$3
2070	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071$as_echo "$ac_res" >&6; }
2072fi
2073  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075} # ac_fn_cxx_check_header_mongrel
2076
2077# ac_fn_cxx_check_func LINENO FUNC VAR
2078# ------------------------------------
2079# Tests whether FUNC exists, setting the cache variable VAR accordingly
2080ac_fn_cxx_check_func ()
2081{
2082  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084$as_echo_n "checking for $2... " >&6; }
2085if eval \${$3+:} false; then :
2086  $as_echo_n "(cached) " >&6
2087else
2088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h.  */
2090/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2091   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2092#define $2 innocuous_$2
2093
2094/* System header to define __stub macros and hopefully few prototypes,
2095    which can conflict with char $2 (); below.
2096    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2097    <limits.h> exists even on freestanding compilers.  */
2098
2099#ifdef __STDC__
2100# include <limits.h>
2101#else
2102# include <assert.h>
2103#endif
2104
2105#undef $2
2106
2107/* Override any GCC internal prototype to avoid an error.
2108   Use char because int might match the return type of a GCC
2109   builtin and then its argument prototype would still apply.  */
2110#ifdef __cplusplus
2111extern "C"
2112#endif
2113char $2 ();
2114/* The GNU C library defines this for functions which it implements
2115    to always fail with ENOSYS.  Some functions are actually named
2116    something starting with __ and the normal name is an alias.  */
2117#if defined __stub_$2 || defined __stub___$2
2118choke me
2119#endif
2120
2121int
2122main ()
2123{
2124return $2 ();
2125  ;
2126  return 0;
2127}
2128_ACEOF
2129if ac_fn_cxx_try_link "$LINENO"; then :
2130  eval "$3=yes"
2131else
2132  eval "$3=no"
2133fi
2134rm -f core conftest.err conftest.$ac_objext \
2135    conftest$ac_exeext conftest.$ac_ext
2136fi
2137eval ac_res=\$$3
2138	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139$as_echo "$ac_res" >&6; }
2140  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141
2142} # ac_fn_cxx_check_func
2143cat >config.log <<_ACEOF
2144This file contains any messages produced by compilers while
2145running configure, to aid debugging if configure makes a mistake.
2146
2147It was created by libpar2 $as_me 0.3.1, which was
2148generated by GNU Autoconf 2.68.  Invocation command line was
2149
2150  $ $0 $@
2151
2152_ACEOF
2153exec 5>>config.log
2154{
2155cat <<_ASUNAME
2156## --------- ##
2157## Platform. ##
2158## --------- ##
2159
2160hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2161uname -m = `(uname -m) 2>/dev/null || echo unknown`
2162uname -r = `(uname -r) 2>/dev/null || echo unknown`
2163uname -s = `(uname -s) 2>/dev/null || echo unknown`
2164uname -v = `(uname -v) 2>/dev/null || echo unknown`
2165
2166/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2167/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2168
2169/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2170/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2171/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2172/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2173/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2174/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2175/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2176
2177_ASUNAME
2178
2179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180for as_dir in $PATH
2181do
2182  IFS=$as_save_IFS
2183  test -z "$as_dir" && as_dir=.
2184    $as_echo "PATH: $as_dir"
2185  done
2186IFS=$as_save_IFS
2187
2188} >&5
2189
2190cat >&5 <<_ACEOF
2191
2192
2193## ----------- ##
2194## Core tests. ##
2195## ----------- ##
2196
2197_ACEOF
2198
2199
2200# Keep a trace of the command line.
2201# Strip out --no-create and --no-recursion so they do not pile up.
2202# Strip out --silent because we don't want to record it for future runs.
2203# Also quote any args containing shell meta-characters.
2204# Make two passes to allow for proper duplicate-argument suppression.
2205ac_configure_args=
2206ac_configure_args0=
2207ac_configure_args1=
2208ac_must_keep_next=false
2209for ac_pass in 1 2
2210do
2211  for ac_arg
2212  do
2213    case $ac_arg in
2214    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2215    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2216    | -silent | --silent | --silen | --sile | --sil)
2217      continue ;;
2218    *\'*)
2219      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2220    esac
2221    case $ac_pass in
2222    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2223    2)
2224      as_fn_append ac_configure_args1 " '$ac_arg'"
2225      if test $ac_must_keep_next = true; then
2226	ac_must_keep_next=false # Got value, back to normal.
2227      else
2228	case $ac_arg in
2229	  *=* | --config-cache | -C | -disable-* | --disable-* \
2230	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2231	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2232	  | -with-* | --with-* | -without-* | --without-* | --x)
2233	    case "$ac_configure_args0 " in
2234	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2235	    esac
2236	    ;;
2237	  -* ) ac_must_keep_next=true ;;
2238	esac
2239      fi
2240      as_fn_append ac_configure_args " '$ac_arg'"
2241      ;;
2242    esac
2243  done
2244done
2245{ ac_configure_args0=; unset ac_configure_args0;}
2246{ ac_configure_args1=; unset ac_configure_args1;}
2247
2248# When interrupted or exit'd, cleanup temporary files, and complete
2249# config.log.  We remove comments because anyway the quotes in there
2250# would cause problems or look ugly.
2251# WARNING: Use '\'' to represent an apostrophe within the trap.
2252# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2253trap 'exit_status=$?
2254  # Save into config.log some information that might help in debugging.
2255  {
2256    echo
2257
2258    $as_echo "## ---------------- ##
2259## Cache variables. ##
2260## ---------------- ##"
2261    echo
2262    # The following way of writing the cache mishandles newlines in values,
2263(
2264  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2265    eval ac_val=\$$ac_var
2266    case $ac_val in #(
2267    *${as_nl}*)
2268      case $ac_var in #(
2269      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2270$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2271      esac
2272      case $ac_var in #(
2273      _ | IFS | as_nl) ;; #(
2274      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2275      *) { eval $ac_var=; unset $ac_var;} ;;
2276      esac ;;
2277    esac
2278  done
2279  (set) 2>&1 |
2280    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2281    *${as_nl}ac_space=\ *)
2282      sed -n \
2283	"s/'\''/'\''\\\\'\'''\''/g;
2284	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2285      ;; #(
2286    *)
2287      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2288      ;;
2289    esac |
2290    sort
2291)
2292    echo
2293
2294    $as_echo "## ----------------- ##
2295## Output variables. ##
2296## ----------------- ##"
2297    echo
2298    for ac_var in $ac_subst_vars
2299    do
2300      eval ac_val=\$$ac_var
2301      case $ac_val in
2302      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303      esac
2304      $as_echo "$ac_var='\''$ac_val'\''"
2305    done | sort
2306    echo
2307
2308    if test -n "$ac_subst_files"; then
2309      $as_echo "## ------------------- ##
2310## File substitutions. ##
2311## ------------------- ##"
2312      echo
2313      for ac_var in $ac_subst_files
2314      do
2315	eval ac_val=\$$ac_var
2316	case $ac_val in
2317	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318	esac
2319	$as_echo "$ac_var='\''$ac_val'\''"
2320      done | sort
2321      echo
2322    fi
2323
2324    if test -s confdefs.h; then
2325      $as_echo "## ----------- ##
2326## confdefs.h. ##
2327## ----------- ##"
2328      echo
2329      cat confdefs.h
2330      echo
2331    fi
2332    test "$ac_signal" != 0 &&
2333      $as_echo "$as_me: caught signal $ac_signal"
2334    $as_echo "$as_me: exit $exit_status"
2335  } >&5
2336  rm -f core *.core core.conftest.* &&
2337    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2338    exit $exit_status
2339' 0
2340for ac_signal in 1 2 13 15; do
2341  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2342done
2343ac_signal=0
2344
2345# confdefs.h avoids OS command line length limits that DEFS can exceed.
2346rm -f -r conftest* confdefs.h
2347
2348$as_echo "/* confdefs.h */" > confdefs.h
2349
2350# Predefined preprocessor variables.
2351
2352cat >>confdefs.h <<_ACEOF
2353#define PACKAGE_NAME "$PACKAGE_NAME"
2354_ACEOF
2355
2356cat >>confdefs.h <<_ACEOF
2357#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2358_ACEOF
2359
2360cat >>confdefs.h <<_ACEOF
2361#define PACKAGE_VERSION "$PACKAGE_VERSION"
2362_ACEOF
2363
2364cat >>confdefs.h <<_ACEOF
2365#define PACKAGE_STRING "$PACKAGE_STRING"
2366_ACEOF
2367
2368cat >>confdefs.h <<_ACEOF
2369#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2370_ACEOF
2371
2372cat >>confdefs.h <<_ACEOF
2373#define PACKAGE_URL "$PACKAGE_URL"
2374_ACEOF
2375
2376
2377# Let the site file select an alternate cache file if it wants to.
2378# Prefer an explicitly selected file to automatically selected ones.
2379ac_site_file1=NONE
2380ac_site_file2=NONE
2381if test -n "$CONFIG_SITE"; then
2382  # We do not want a PATH search for config.site.
2383  case $CONFIG_SITE in #((
2384    -*)  ac_site_file1=./$CONFIG_SITE;;
2385    */*) ac_site_file1=$CONFIG_SITE;;
2386    *)   ac_site_file1=./$CONFIG_SITE;;
2387  esac
2388elif test "x$prefix" != xNONE; then
2389  ac_site_file1=$prefix/share/config.site
2390  ac_site_file2=$prefix/etc/config.site
2391else
2392  ac_site_file1=$ac_default_prefix/share/config.site
2393  ac_site_file2=$ac_default_prefix/etc/config.site
2394fi
2395for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2396do
2397  test "x$ac_site_file" = xNONE && continue
2398  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2399    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2400$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2401    sed 's/^/| /' "$ac_site_file" >&5
2402    . "$ac_site_file" \
2403      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2405as_fn_error $? "failed to load site script $ac_site_file
2406See \`config.log' for more details" "$LINENO" 5; }
2407  fi
2408done
2409
2410if test -r "$cache_file"; then
2411  # Some versions of bash will fail to source /dev/null (special files
2412  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2413  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2414    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2415$as_echo "$as_me: loading cache $cache_file" >&6;}
2416    case $cache_file in
2417      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2418      *)                      . "./$cache_file";;
2419    esac
2420  fi
2421else
2422  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2423$as_echo "$as_me: creating cache $cache_file" >&6;}
2424  >$cache_file
2425fi
2426
2427# Check that the precious variables saved in the cache have kept the same
2428# value.
2429ac_cache_corrupted=false
2430for ac_var in $ac_precious_vars; do
2431  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2432  eval ac_new_set=\$ac_env_${ac_var}_set
2433  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2434  eval ac_new_val=\$ac_env_${ac_var}_value
2435  case $ac_old_set,$ac_new_set in
2436    set,)
2437      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2438$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2439      ac_cache_corrupted=: ;;
2440    ,set)
2441      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2442$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2443      ac_cache_corrupted=: ;;
2444    ,);;
2445    *)
2446      if test "x$ac_old_val" != "x$ac_new_val"; then
2447	# differences in whitespace do not lead to failure.
2448	ac_old_val_w=`echo x $ac_old_val`
2449	ac_new_val_w=`echo x $ac_new_val`
2450	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2451	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2452$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2453	  ac_cache_corrupted=:
2454	else
2455	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2456$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2457	  eval $ac_var=\$ac_old_val
2458	fi
2459	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2460$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2461	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2462$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2463      fi;;
2464  esac
2465  # Pass precious variables to config.status.
2466  if test "$ac_new_set" = set; then
2467    case $ac_new_val in
2468    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2469    *) ac_arg=$ac_var=$ac_new_val ;;
2470    esac
2471    case " $ac_configure_args " in
2472      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2473      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2474    esac
2475  fi
2476done
2477if $ac_cache_corrupted; then
2478  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2481$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2482  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2483fi
2484## -------------------- ##
2485## Main body of script. ##
2486## -------------------- ##
2487
2488ac_ext=c
2489ac_cpp='$CPP $CPPFLAGS'
2490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2492ac_compiler_gnu=$ac_cv_c_compiler_gnu
2493
2494
2495
2496
2497ac_aux_dir=
2498for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2499  if test -f "$ac_dir/install-sh"; then
2500    ac_aux_dir=$ac_dir
2501    ac_install_sh="$ac_aux_dir/install-sh -c"
2502    break
2503  elif test -f "$ac_dir/install.sh"; then
2504    ac_aux_dir=$ac_dir
2505    ac_install_sh="$ac_aux_dir/install.sh -c"
2506    break
2507  elif test -f "$ac_dir/shtool"; then
2508    ac_aux_dir=$ac_dir
2509    ac_install_sh="$ac_aux_dir/shtool install -c"
2510    break
2511  fi
2512done
2513if test -z "$ac_aux_dir"; then
2514  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2515fi
2516
2517# These three variables are undocumented and unsupported,
2518# and are intended to be withdrawn in a future Autoconf release.
2519# They can cause serious problems if a builder's source tree is in a directory
2520# whose full name contains unusual characters.
2521ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2522ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2523ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2524
2525
2526# Make sure we can run config.sub.
2527$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2528  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2529
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2531$as_echo_n "checking build system type... " >&6; }
2532if ${ac_cv_build+:} false; then :
2533  $as_echo_n "(cached) " >&6
2534else
2535  ac_build_alias=$build_alias
2536test "x$ac_build_alias" = x &&
2537  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2538test "x$ac_build_alias" = x &&
2539  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2540ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2541  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2542
2543fi
2544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2545$as_echo "$ac_cv_build" >&6; }
2546case $ac_cv_build in
2547*-*-*) ;;
2548*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2549esac
2550build=$ac_cv_build
2551ac_save_IFS=$IFS; IFS='-'
2552set x $ac_cv_build
2553shift
2554build_cpu=$1
2555build_vendor=$2
2556shift; shift
2557# Remember, the first character of IFS is used to create $*,
2558# except with old shells:
2559build_os=$*
2560IFS=$ac_save_IFS
2561case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2562
2563
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2565$as_echo_n "checking host system type... " >&6; }
2566if ${ac_cv_host+:} false; then :
2567  $as_echo_n "(cached) " >&6
2568else
2569  if test "x$host_alias" = x; then
2570  ac_cv_host=$ac_cv_build
2571else
2572  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2573    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2574fi
2575
2576fi
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2578$as_echo "$ac_cv_host" >&6; }
2579case $ac_cv_host in
2580*-*-*) ;;
2581*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2582esac
2583host=$ac_cv_host
2584ac_save_IFS=$IFS; IFS='-'
2585set x $ac_cv_host
2586shift
2587host_cpu=$1
2588host_vendor=$2
2589shift; shift
2590# Remember, the first character of IFS is used to create $*,
2591# except with old shells:
2592host_os=$*
2593IFS=$ac_save_IFS
2594case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2595
2596
2597
2598ac_config_headers="$ac_config_headers config.h"
2599
2600
2601am__api_version='1.11'
2602
2603# Find a good install program.  We prefer a C program (faster),
2604# so one script is as good as another.  But avoid the broken or
2605# incompatible versions:
2606# SysV /etc/install, /usr/sbin/install
2607# SunOS /usr/etc/install
2608# IRIX /sbin/install
2609# AIX /bin/install
2610# AmigaOS /C/install, which installs bootblocks on floppy discs
2611# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2612# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2613# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2614# OS/2's system install, which has a completely different semantic
2615# ./install, which can be erroneously created by make from ./install.sh.
2616# Reject install programs that cannot install multiple files.
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2618$as_echo_n "checking for a BSD-compatible install... " >&6; }
2619if test -z "$INSTALL"; then
2620if ${ac_cv_path_install+:} false; then :
2621  $as_echo_n "(cached) " >&6
2622else
2623  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626  IFS=$as_save_IFS
2627  test -z "$as_dir" && as_dir=.
2628    # Account for people who put trailing slashes in PATH elements.
2629case $as_dir/ in #((
2630  ./ | .// | /[cC]/* | \
2631  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2632  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2633  /usr/ucb/* ) ;;
2634  *)
2635    # OSF1 and SCO ODT 3.0 have their own names for install.
2636    # Don't use installbsd from OSF since it installs stuff as root
2637    # by default.
2638    for ac_prog in ginstall scoinst install; do
2639      for ac_exec_ext in '' $ac_executable_extensions; do
2640	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2641	  if test $ac_prog = install &&
2642	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2643	    # AIX install.  It has an incompatible calling convention.
2644	    :
2645	  elif test $ac_prog = install &&
2646	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2647	    # program-specific install script used by HP pwplus--don't use.
2648	    :
2649	  else
2650	    rm -rf conftest.one conftest.two conftest.dir
2651	    echo one > conftest.one
2652	    echo two > conftest.two
2653	    mkdir conftest.dir
2654	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2655	      test -s conftest.one && test -s conftest.two &&
2656	      test -s conftest.dir/conftest.one &&
2657	      test -s conftest.dir/conftest.two
2658	    then
2659	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2660	      break 3
2661	    fi
2662	  fi
2663	fi
2664      done
2665    done
2666    ;;
2667esac
2668
2669  done
2670IFS=$as_save_IFS
2671
2672rm -rf conftest.one conftest.two conftest.dir
2673
2674fi
2675  if test "${ac_cv_path_install+set}" = set; then
2676    INSTALL=$ac_cv_path_install
2677  else
2678    # As a last resort, use the slow shell script.  Don't cache a
2679    # value for INSTALL within a source directory, because that will
2680    # break other packages using the cache if that directory is
2681    # removed, or if the value is a relative name.
2682    INSTALL=$ac_install_sh
2683  fi
2684fi
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2686$as_echo "$INSTALL" >&6; }
2687
2688# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2689# It thinks the first close brace ends the variable substitution.
2690test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2691
2692test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2693
2694test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2695
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2697$as_echo_n "checking whether build environment is sane... " >&6; }
2698# Just in case
2699sleep 1
2700echo timestamp > conftest.file
2701# Reject unsafe characters in $srcdir or the absolute working directory
2702# name.  Accept space and tab only in the latter.
2703am_lf='
2704'
2705case `pwd` in
2706  *[\\\"\#\$\&\'\`$am_lf]*)
2707    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2708esac
2709case $srcdir in
2710  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2711    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2712esac
2713
2714# Do `set' in a subshell so we don't clobber the current shell's
2715# arguments.  Must try -L first in case configure is actually a
2716# symlink; some systems play weird games with the mod time of symlinks
2717# (eg FreeBSD returns the mod time of the symlink's containing
2718# directory).
2719if (
2720   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2721   if test "$*" = "X"; then
2722      # -L didn't work.
2723      set X `ls -t "$srcdir/configure" conftest.file`
2724   fi
2725   rm -f conftest.file
2726   if test "$*" != "X $srcdir/configure conftest.file" \
2727      && test "$*" != "X conftest.file $srcdir/configure"; then
2728
2729      # If neither matched, then we have a broken ls.  This can happen
2730      # if, for instance, CONFIG_SHELL is bash and it inherits a
2731      # broken ls alias from the environment.  This has actually
2732      # happened.  Such a system could not be considered "sane".
2733      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2734alias in your environment" "$LINENO" 5
2735   fi
2736
2737   test "$2" = conftest.file
2738   )
2739then
2740   # Ok.
2741   :
2742else
2743   as_fn_error $? "newly created file is older than distributed files!
2744Check your system clock" "$LINENO" 5
2745fi
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2747$as_echo "yes" >&6; }
2748test "$program_prefix" != NONE &&
2749  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2750# Use a double $ so make ignores it.
2751test "$program_suffix" != NONE &&
2752  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2753# Double any \ or $.
2754# By default was `s,x,x', remove it if useless.
2755ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2756program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2757
2758# expand $ac_aux_dir to an absolute path
2759am_aux_dir=`cd $ac_aux_dir && pwd`
2760
2761if test x"${MISSING+set}" != xset; then
2762  case $am_aux_dir in
2763  *\ * | *\	*)
2764    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2765  *)
2766    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2767  esac
2768fi
2769# Use eval to expand $SHELL
2770if eval "$MISSING --run true"; then
2771  am_missing_run="$MISSING --run "
2772else
2773  am_missing_run=
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2775$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2776fi
2777
2778if test x"${install_sh}" != xset; then
2779  case $am_aux_dir in
2780  *\ * | *\	*)
2781    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2782  *)
2783    install_sh="\${SHELL} $am_aux_dir/install-sh"
2784  esac
2785fi
2786
2787# Installed binaries are usually stripped using `strip' when the user
2788# run `make install-strip'.  However `strip' might not be the right
2789# tool to use in cross-compilation environments, therefore Automake
2790# will honor the `STRIP' environment variable to overrule this program.
2791if test "$cross_compiling" != no; then
2792  if test -n "$ac_tool_prefix"; then
2793  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2794set dummy ${ac_tool_prefix}strip; ac_word=$2
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
2797if ${ac_cv_prog_STRIP+:} false; then :
2798  $as_echo_n "(cached) " >&6
2799else
2800  if test -n "$STRIP"; then
2801  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806  IFS=$as_save_IFS
2807  test -z "$as_dir" && as_dir=.
2808    for ac_exec_ext in '' $ac_executable_extensions; do
2809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812    break 2
2813  fi
2814done
2815  done
2816IFS=$as_save_IFS
2817
2818fi
2819fi
2820STRIP=$ac_cv_prog_STRIP
2821if test -n "$STRIP"; then
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2823$as_echo "$STRIP" >&6; }
2824else
2825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
2827fi
2828
2829
2830fi
2831if test -z "$ac_cv_prog_STRIP"; then
2832  ac_ct_STRIP=$STRIP
2833  # Extract the first word of "strip", so it can be a program name with args.
2834set dummy strip; ac_word=$2
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836$as_echo_n "checking for $ac_word... " >&6; }
2837if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2838  $as_echo_n "(cached) " >&6
2839else
2840  if test -n "$ac_ct_STRIP"; then
2841  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846  IFS=$as_save_IFS
2847  test -z "$as_dir" && as_dir=.
2848    for ac_exec_ext in '' $ac_executable_extensions; do
2849  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850    ac_cv_prog_ac_ct_STRIP="strip"
2851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852    break 2
2853  fi
2854done
2855  done
2856IFS=$as_save_IFS
2857
2858fi
2859fi
2860ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2861if test -n "$ac_ct_STRIP"; then
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2863$as_echo "$ac_ct_STRIP" >&6; }
2864else
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866$as_echo "no" >&6; }
2867fi
2868
2869  if test "x$ac_ct_STRIP" = x; then
2870    STRIP=":"
2871  else
2872    case $cross_compiling:$ac_tool_warned in
2873yes:)
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876ac_tool_warned=yes ;;
2877esac
2878    STRIP=$ac_ct_STRIP
2879  fi
2880else
2881  STRIP="$ac_cv_prog_STRIP"
2882fi
2883
2884fi
2885INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2886
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2888$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2889if test -z "$MKDIR_P"; then
2890  if ${ac_cv_path_mkdir+:} false; then :
2891  $as_echo_n "(cached) " >&6
2892else
2893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2895do
2896  IFS=$as_save_IFS
2897  test -z "$as_dir" && as_dir=.
2898    for ac_prog in mkdir gmkdir; do
2899	 for ac_exec_ext in '' $ac_executable_extensions; do
2900	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2901	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2902	     'mkdir (GNU coreutils) '* | \
2903	     'mkdir (coreutils) '* | \
2904	     'mkdir (fileutils) '4.1*)
2905	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2906	       break 3;;
2907	   esac
2908	 done
2909       done
2910  done
2911IFS=$as_save_IFS
2912
2913fi
2914
2915  test -d ./--version && rmdir ./--version
2916  if test "${ac_cv_path_mkdir+set}" = set; then
2917    MKDIR_P="$ac_cv_path_mkdir -p"
2918  else
2919    # As a last resort, use the slow shell script.  Don't cache a
2920    # value for MKDIR_P within a source directory, because that will
2921    # break other packages using the cache if that directory is
2922    # removed, or if the value is a relative name.
2923    MKDIR_P="$ac_install_sh -d"
2924  fi
2925fi
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2927$as_echo "$MKDIR_P" >&6; }
2928
2929mkdir_p="$MKDIR_P"
2930case $mkdir_p in
2931  [\\/$]* | ?:[\\/]*) ;;
2932  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2933esac
2934
2935for ac_prog in gawk mawk nawk awk
2936do
2937  # Extract the first word of "$ac_prog", so it can be a program name with args.
2938set dummy $ac_prog; ac_word=$2
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if ${ac_cv_prog_AWK+:} false; then :
2942  $as_echo_n "(cached) " >&6
2943else
2944  if test -n "$AWK"; then
2945  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2946else
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950  IFS=$as_save_IFS
2951  test -z "$as_dir" && as_dir=.
2952    for ac_exec_ext in '' $ac_executable_extensions; do
2953  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954    ac_cv_prog_AWK="$ac_prog"
2955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956    break 2
2957  fi
2958done
2959  done
2960IFS=$as_save_IFS
2961
2962fi
2963fi
2964AWK=$ac_cv_prog_AWK
2965if test -n "$AWK"; then
2966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2967$as_echo "$AWK" >&6; }
2968else
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970$as_echo "no" >&6; }
2971fi
2972
2973
2974  test -n "$AWK" && break
2975done
2976
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2978$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2979set x ${MAKE-make}
2980ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2981if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2982  $as_echo_n "(cached) " >&6
2983else
2984  cat >conftest.make <<\_ACEOF
2985SHELL = /bin/sh
2986all:
2987	@echo '@@@%%%=$(MAKE)=@@@%%%'
2988_ACEOF
2989# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2990case `${MAKE-make} -f conftest.make 2>/dev/null` in
2991  *@@@%%%=?*=@@@%%%*)
2992    eval ac_cv_prog_make_${ac_make}_set=yes;;
2993  *)
2994    eval ac_cv_prog_make_${ac_make}_set=no;;
2995esac
2996rm -f conftest.make
2997fi
2998if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3000$as_echo "yes" >&6; }
3001  SET_MAKE=
3002else
3003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004$as_echo "no" >&6; }
3005  SET_MAKE="MAKE=${MAKE-make}"
3006fi
3007
3008rm -rf .tst 2>/dev/null
3009mkdir .tst 2>/dev/null
3010if test -d .tst; then
3011  am__leading_dot=.
3012else
3013  am__leading_dot=_
3014fi
3015rmdir .tst 2>/dev/null
3016
3017if test "`cd $srcdir && pwd`" != "`pwd`"; then
3018  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3019  # is not polluted with repeated "-I."
3020  am__isrc=' -I$(srcdir)'
3021  # test to see if srcdir already configured
3022  if test -f $srcdir/config.status; then
3023    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3024  fi
3025fi
3026
3027# test whether we have cygpath
3028if test -z "$CYGPATH_W"; then
3029  if (cygpath --version) >/dev/null 2>/dev/null; then
3030    CYGPATH_W='cygpath -w'
3031  else
3032    CYGPATH_W=echo
3033  fi
3034fi
3035
3036
3037# Define the identity of the package.
3038 PACKAGE=libpar2
3039 VERSION=0.3.1
3040
3041
3042cat >>confdefs.h <<_ACEOF
3043#define PACKAGE "$PACKAGE"
3044_ACEOF
3045
3046
3047cat >>confdefs.h <<_ACEOF
3048#define VERSION "$VERSION"
3049_ACEOF
3050
3051# Some tools Automake needs.
3052
3053ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3054
3055
3056AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3057
3058
3059AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3060
3061
3062AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3063
3064
3065MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3066
3067# We need awk for the "check" target.  The system "awk" is bad on
3068# some platforms.
3069# Always define AMTAR for backward compatibility.  Yes, it's still used
3070# in the wild :-(  We should find a proper way to deprecate it ...
3071AMTAR='$${TAR-tar}'
3072
3073am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3074
3075
3076
3077
3078
3079
3080
3081ac_ext=cpp
3082ac_cpp='$CXXCPP $CPPFLAGS'
3083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3086if test -z "$CXX"; then
3087  if test -n "$CCC"; then
3088    CXX=$CCC
3089  else
3090    if test -n "$ac_tool_prefix"; then
3091  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3092  do
3093    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3094set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096$as_echo_n "checking for $ac_word... " >&6; }
3097if ${ac_cv_prog_CXX+:} false; then :
3098  $as_echo_n "(cached) " >&6
3099else
3100  if test -n "$CXX"; then
3101  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106  IFS=$as_save_IFS
3107  test -z "$as_dir" && as_dir=.
3108    for ac_exec_ext in '' $ac_executable_extensions; do
3109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112    break 2
3113  fi
3114done
3115  done
3116IFS=$as_save_IFS
3117
3118fi
3119fi
3120CXX=$ac_cv_prog_CXX
3121if test -n "$CXX"; then
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3123$as_echo "$CXX" >&6; }
3124else
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127fi
3128
3129
3130    test -n "$CXX" && break
3131  done
3132fi
3133if test -z "$CXX"; then
3134  ac_ct_CXX=$CXX
3135  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3136do
3137  # Extract the first word of "$ac_prog", so it can be a program name with args.
3138set dummy $ac_prog; ac_word=$2
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140$as_echo_n "checking for $ac_word... " >&6; }
3141if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3142  $as_echo_n "(cached) " >&6
3143else
3144  if test -n "$ac_ct_CXX"; then
3145  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3146else
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
3150  IFS=$as_save_IFS
3151  test -z "$as_dir" && as_dir=.
3152    for ac_exec_ext in '' $ac_executable_extensions; do
3153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154    ac_cv_prog_ac_ct_CXX="$ac_prog"
3155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156    break 2
3157  fi
3158done
3159  done
3160IFS=$as_save_IFS
3161
3162fi
3163fi
3164ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3165if test -n "$ac_ct_CXX"; then
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3167$as_echo "$ac_ct_CXX" >&6; }
3168else
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170$as_echo "no" >&6; }
3171fi
3172
3173
3174  test -n "$ac_ct_CXX" && break
3175done
3176
3177  if test "x$ac_ct_CXX" = x; then
3178    CXX="g++"
3179  else
3180    case $cross_compiling:$ac_tool_warned in
3181yes:)
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184ac_tool_warned=yes ;;
3185esac
3186    CXX=$ac_ct_CXX
3187  fi
3188fi
3189
3190  fi
3191fi
3192# Provide some information about the compiler.
3193$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3194set X $ac_compile
3195ac_compiler=$2
3196for ac_option in --version -v -V -qversion; do
3197  { { ac_try="$ac_compiler $ac_option >&5"
3198case "(($ac_try" in
3199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200  *) ac_try_echo=$ac_try;;
3201esac
3202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203$as_echo "$ac_try_echo"; } >&5
3204  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3205  ac_status=$?
3206  if test -s conftest.err; then
3207    sed '10a\
3208... rest of stderr output deleted ...
3209         10q' conftest.err >conftest.er1
3210    cat conftest.er1 >&5
3211  fi
3212  rm -f conftest.er1 conftest.err
3213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214  test $ac_status = 0; }
3215done
3216
3217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218/* end confdefs.h.  */
3219
3220int
3221main ()
3222{
3223
3224  ;
3225  return 0;
3226}
3227_ACEOF
3228ac_clean_files_save=$ac_clean_files
3229ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3230# Try to create an executable without -o first, disregard a.out.
3231# It will help us diagnose broken compilers, and finding out an intuition
3232# of exeext.
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3234$as_echo_n "checking whether the C++ compiler works... " >&6; }
3235ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3236
3237# The possible output files:
3238ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3239
3240ac_rmfiles=
3241for ac_file in $ac_files
3242do
3243  case $ac_file in
3244    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3245    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3246  esac
3247done
3248rm -f $ac_rmfiles
3249
3250if { { ac_try="$ac_link_default"
3251case "(($ac_try" in
3252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253  *) ac_try_echo=$ac_try;;
3254esac
3255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256$as_echo "$ac_try_echo"; } >&5
3257  (eval "$ac_link_default") 2>&5
3258  ac_status=$?
3259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260  test $ac_status = 0; }; then :
3261  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3262# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3263# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3264# so that the user can short-circuit this test for compilers unknown to
3265# Autoconf.
3266for ac_file in $ac_files ''
3267do
3268  test -f "$ac_file" || continue
3269  case $ac_file in
3270    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3271	;;
3272    [ab].out )
3273	# We found the default executable, but exeext='' is most
3274	# certainly right.
3275	break;;
3276    *.* )
3277	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3278	then :; else
3279	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3280	fi
3281	# We set ac_cv_exeext here because the later test for it is not
3282	# safe: cross compilers may not add the suffix if given an `-o'
3283	# argument, so we may need to know it at that point already.
3284	# Even if this section looks crufty: it has the advantage of
3285	# actually working.
3286	break;;
3287    * )
3288	break;;
3289  esac
3290done
3291test "$ac_cv_exeext" = no && ac_cv_exeext=
3292
3293else
3294  ac_file=''
3295fi
3296if test -z "$ac_file"; then :
3297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298$as_echo "no" >&6; }
3299$as_echo "$as_me: failed program was:" >&5
3300sed 's/^/| /' conftest.$ac_ext >&5
3301
3302{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304as_fn_error 77 "C++ compiler cannot create executables
3305See \`config.log' for more details" "$LINENO" 5; }
3306else
3307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3308$as_echo "yes" >&6; }
3309fi
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3311$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3313$as_echo "$ac_file" >&6; }
3314ac_exeext=$ac_cv_exeext
3315
3316rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3317ac_clean_files=$ac_clean_files_save
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3319$as_echo_n "checking for suffix of executables... " >&6; }
3320if { { ac_try="$ac_link"
3321case "(($ac_try" in
3322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323  *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326$as_echo "$ac_try_echo"; } >&5
3327  (eval "$ac_link") 2>&5
3328  ac_status=$?
3329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330  test $ac_status = 0; }; then :
3331  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3332# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3333# work properly (i.e., refer to `conftest.exe'), while it won't with
3334# `rm'.
3335for ac_file in conftest.exe conftest conftest.*; do
3336  test -f "$ac_file" || continue
3337  case $ac_file in
3338    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3339    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340	  break;;
3341    * ) break;;
3342  esac
3343done
3344else
3345  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3348See \`config.log' for more details" "$LINENO" 5; }
3349fi
3350rm -f conftest conftest$ac_cv_exeext
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3352$as_echo "$ac_cv_exeext" >&6; }
3353
3354rm -f conftest.$ac_ext
3355EXEEXT=$ac_cv_exeext
3356ac_exeext=$EXEEXT
3357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358/* end confdefs.h.  */
3359#include <stdio.h>
3360int
3361main ()
3362{
3363FILE *f = fopen ("conftest.out", "w");
3364 return ferror (f) || fclose (f) != 0;
3365
3366  ;
3367  return 0;
3368}
3369_ACEOF
3370ac_clean_files="$ac_clean_files conftest.out"
3371# Check that the compiler produces executables we can run.  If not, either
3372# the compiler is broken, or we cross compile.
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3374$as_echo_n "checking whether we are cross compiling... " >&6; }
3375if test "$cross_compiling" != yes; then
3376  { { ac_try="$ac_link"
3377case "(($ac_try" in
3378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379  *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382$as_echo "$ac_try_echo"; } >&5
3383  (eval "$ac_link") 2>&5
3384  ac_status=$?
3385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386  test $ac_status = 0; }
3387  if { ac_try='./conftest$ac_cv_exeext'
3388  { { case "(($ac_try" in
3389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390  *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
3394  (eval "$ac_try") 2>&5
3395  ac_status=$?
3396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397  test $ac_status = 0; }; }; then
3398    cross_compiling=no
3399  else
3400    if test "$cross_compiling" = maybe; then
3401	cross_compiling=yes
3402    else
3403	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405as_fn_error $? "cannot run C++ compiled programs.
3406If you meant to cross compile, use \`--host'.
3407See \`config.log' for more details" "$LINENO" 5; }
3408    fi
3409  fi
3410fi
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3412$as_echo "$cross_compiling" >&6; }
3413
3414rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3415ac_clean_files=$ac_clean_files_save
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3417$as_echo_n "checking for suffix of object files... " >&6; }
3418if ${ac_cv_objext+:} false; then :
3419  $as_echo_n "(cached) " >&6
3420else
3421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422/* end confdefs.h.  */
3423
3424int
3425main ()
3426{
3427
3428  ;
3429  return 0;
3430}
3431_ACEOF
3432rm -f conftest.o conftest.obj
3433if { { ac_try="$ac_compile"
3434case "(($ac_try" in
3435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436  *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439$as_echo "$ac_try_echo"; } >&5
3440  (eval "$ac_compile") 2>&5
3441  ac_status=$?
3442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443  test $ac_status = 0; }; then :
3444  for ac_file in conftest.o conftest.obj conftest.*; do
3445  test -f "$ac_file" || continue;
3446  case $ac_file in
3447    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3448    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3449       break;;
3450  esac
3451done
3452else
3453  $as_echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
3456{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458as_fn_error $? "cannot compute suffix of object files: cannot compile
3459See \`config.log' for more details" "$LINENO" 5; }
3460fi
3461rm -f conftest.$ac_cv_objext conftest.$ac_ext
3462fi
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3464$as_echo "$ac_cv_objext" >&6; }
3465OBJEXT=$ac_cv_objext
3466ac_objext=$OBJEXT
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3468$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3469if ${ac_cv_cxx_compiler_gnu+:} false; then :
3470  $as_echo_n "(cached) " >&6
3471else
3472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h.  */
3474
3475int
3476main ()
3477{
3478#ifndef __GNUC__
3479       choke me
3480#endif
3481
3482  ;
3483  return 0;
3484}
3485_ACEOF
3486if ac_fn_cxx_try_compile "$LINENO"; then :
3487  ac_compiler_gnu=yes
3488else
3489  ac_compiler_gnu=no
3490fi
3491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3493
3494fi
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3496$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3497if test $ac_compiler_gnu = yes; then
3498  GXX=yes
3499else
3500  GXX=
3501fi
3502ac_test_CXXFLAGS=${CXXFLAGS+set}
3503ac_save_CXXFLAGS=$CXXFLAGS
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3505$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3506if ${ac_cv_prog_cxx_g+:} false; then :
3507  $as_echo_n "(cached) " >&6
3508else
3509  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3510   ac_cxx_werror_flag=yes
3511   ac_cv_prog_cxx_g=no
3512   CXXFLAGS="-g"
3513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514/* end confdefs.h.  */
3515
3516int
3517main ()
3518{
3519
3520  ;
3521  return 0;
3522}
3523_ACEOF
3524if ac_fn_cxx_try_compile "$LINENO"; then :
3525  ac_cv_prog_cxx_g=yes
3526else
3527  CXXFLAGS=""
3528      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529/* end confdefs.h.  */
3530
3531int
3532main ()
3533{
3534
3535  ;
3536  return 0;
3537}
3538_ACEOF
3539if ac_fn_cxx_try_compile "$LINENO"; then :
3540
3541else
3542  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3543	 CXXFLAGS="-g"
3544	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545/* end confdefs.h.  */
3546
3547int
3548main ()
3549{
3550
3551  ;
3552  return 0;
3553}
3554_ACEOF
3555if ac_fn_cxx_try_compile "$LINENO"; then :
3556  ac_cv_prog_cxx_g=yes
3557fi
3558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559fi
3560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561fi
3562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3564fi
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3566$as_echo "$ac_cv_prog_cxx_g" >&6; }
3567if test "$ac_test_CXXFLAGS" = set; then
3568  CXXFLAGS=$ac_save_CXXFLAGS
3569elif test $ac_cv_prog_cxx_g = yes; then
3570  if test "$GXX" = yes; then
3571    CXXFLAGS="-g -O2"
3572  else
3573    CXXFLAGS="-g"
3574  fi
3575else
3576  if test "$GXX" = yes; then
3577    CXXFLAGS="-O2"
3578  else
3579    CXXFLAGS=
3580  fi
3581fi
3582ac_ext=c
3583ac_cpp='$CPP $CPPFLAGS'
3584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587DEPDIR="${am__leading_dot}deps"
3588
3589ac_config_commands="$ac_config_commands depfiles"
3590
3591
3592am_make=${MAKE-make}
3593cat > confinc << 'END'
3594am__doit:
3595	@echo this is the am__doit target
3596.PHONY: am__doit
3597END
3598# If we don't find an include directive, just comment out the code.
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3600$as_echo_n "checking for style of include used by $am_make... " >&6; }
3601am__include="#"
3602am__quote=
3603_am_result=none
3604# First try GNU make style include.
3605echo "include confinc" > confmf
3606# Ignore all kinds of additional output from `make'.
3607case `$am_make -s -f confmf 2> /dev/null` in #(
3608*the\ am__doit\ target*)
3609  am__include=include
3610  am__quote=
3611  _am_result=GNU
3612  ;;
3613esac
3614# Now try BSD make style include.
3615if test "$am__include" = "#"; then
3616   echo '.include "confinc"' > confmf
3617   case `$am_make -s -f confmf 2> /dev/null` in #(
3618   *the\ am__doit\ target*)
3619     am__include=.include
3620     am__quote="\""
3621     _am_result=BSD
3622     ;;
3623   esac
3624fi
3625
3626
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3628$as_echo "$_am_result" >&6; }
3629rm -f confinc confmf
3630
3631# Check whether --enable-dependency-tracking was given.
3632if test "${enable_dependency_tracking+set}" = set; then :
3633  enableval=$enable_dependency_tracking;
3634fi
3635
3636if test "x$enable_dependency_tracking" != xno; then
3637  am_depcomp="$ac_aux_dir/depcomp"
3638  AMDEPBACKSLASH='\'
3639  am__nodep='_no'
3640fi
3641 if test "x$enable_dependency_tracking" != xno; then
3642  AMDEP_TRUE=
3643  AMDEP_FALSE='#'
3644else
3645  AMDEP_TRUE='#'
3646  AMDEP_FALSE=
3647fi
3648
3649
3650
3651depcc="$CXX"  am_compiler_list=
3652
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3654$as_echo_n "checking dependency style of $depcc... " >&6; }
3655if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3656  $as_echo_n "(cached) " >&6
3657else
3658  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3659  # We make a subdir and do the tests there.  Otherwise we can end up
3660  # making bogus files that we don't know about and never remove.  For
3661  # instance it was reported that on HP-UX the gcc test will end up
3662  # making a dummy file named `D' -- because `-MD' means `put the output
3663  # in D'.
3664  rm -rf conftest.dir
3665  mkdir conftest.dir
3666  # Copy depcomp to subdir because otherwise we won't find it if we're
3667  # using a relative directory.
3668  cp "$am_depcomp" conftest.dir
3669  cd conftest.dir
3670  # We will build objects and dependencies in a subdirectory because
3671  # it helps to detect inapplicable dependency modes.  For instance
3672  # both Tru64's cc and ICC support -MD to output dependencies as a
3673  # side effect of compilation, but ICC will put the dependencies in
3674  # the current directory while Tru64 will put them in the object
3675  # directory.
3676  mkdir sub
3677
3678  am_cv_CXX_dependencies_compiler_type=none
3679  if test "$am_compiler_list" = ""; then
3680     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3681  fi
3682  am__universal=false
3683  case " $depcc " in #(
3684     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3685     esac
3686
3687  for depmode in $am_compiler_list; do
3688    # Setup a source with many dependencies, because some compilers
3689    # like to wrap large dependency lists on column 80 (with \), and
3690    # we should not choose a depcomp mode which is confused by this.
3691    #
3692    # We need to recreate these files for each test, as the compiler may
3693    # overwrite some of them when testing with obscure command lines.
3694    # This happens at least with the AIX C compiler.
3695    : > sub/conftest.c
3696    for i in 1 2 3 4 5 6; do
3697      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3698      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3699      # Solaris 8's {/usr,}/bin/sh.
3700      touch sub/conftst$i.h
3701    done
3702    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3703
3704    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3705    # mode.  It turns out that the SunPro C++ compiler does not properly
3706    # handle `-M -o', and we need to detect this.  Also, some Intel
3707    # versions had trouble with output in subdirs
3708    am__obj=sub/conftest.${OBJEXT-o}
3709    am__minus_obj="-o $am__obj"
3710    case $depmode in
3711    gcc)
3712      # This depmode causes a compiler race in universal mode.
3713      test "$am__universal" = false || continue
3714      ;;
3715    nosideeffect)
3716      # after this tag, mechanisms are not by side-effect, so they'll
3717      # only be used when explicitly requested
3718      if test "x$enable_dependency_tracking" = xyes; then
3719	continue
3720      else
3721	break
3722      fi
3723      ;;
3724    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3725      # This compiler won't grok `-c -o', but also, the minuso test has
3726      # not run yet.  These depmodes are late enough in the game, and
3727      # so weak that their functioning should not be impacted.
3728      am__obj=conftest.${OBJEXT-o}
3729      am__minus_obj=
3730      ;;
3731    none) break ;;
3732    esac
3733    if depmode=$depmode \
3734       source=sub/conftest.c object=$am__obj \
3735       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3736       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3737         >/dev/null 2>conftest.err &&
3738       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3739       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3740       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3741       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3742      # icc doesn't choke on unknown options, it will just issue warnings
3743      # or remarks (even with -Werror).  So we grep stderr for any message
3744      # that says an option was ignored or not supported.
3745      # When given -MP, icc 7.0 and 7.1 complain thusly:
3746      #   icc: Command line warning: ignoring option '-M'; no argument required
3747      # The diagnosis changed in icc 8.0:
3748      #   icc: Command line remark: option '-MP' not supported
3749      if (grep 'ignoring option' conftest.err ||
3750          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3751        am_cv_CXX_dependencies_compiler_type=$depmode
3752        break
3753      fi
3754    fi
3755  done
3756
3757  cd ..
3758  rm -rf conftest.dir
3759else
3760  am_cv_CXX_dependencies_compiler_type=none
3761fi
3762
3763fi
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3765$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3766CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3767
3768 if
3769  test "x$enable_dependency_tracking" != xno \
3770  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3771  am__fastdepCXX_TRUE=
3772  am__fastdepCXX_FALSE='#'
3773else
3774  am__fastdepCXX_TRUE='#'
3775  am__fastdepCXX_FALSE=
3776fi
3777
3778
3779ac_ext=cpp
3780ac_cpp='$CXXCPP $CPPFLAGS'
3781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3784
3785
3786
3787case `pwd` in
3788  *\ * | *\	*)
3789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3790$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3791esac
3792
3793
3794
3795macro_version='2.4'
3796macro_revision='1.3293'
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810ltmain="$ac_aux_dir/ltmain.sh"
3811
3812# Backslashify metacharacters that are still active within
3813# double-quoted strings.
3814sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3815
3816# Same as above, but do not quote variable references.
3817double_quote_subst='s/\(["`\\]\)/\\\1/g'
3818
3819# Sed substitution to delay expansion of an escaped shell variable in a
3820# double_quote_subst'ed string.
3821delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3822
3823# Sed substitution to delay expansion of an escaped single quote.
3824delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3825
3826# Sed substitution to avoid accidental globbing in evaled expressions
3827no_glob_subst='s/\*/\\\*/g'
3828
3829ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3830ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3831ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3832
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3834$as_echo_n "checking how to print strings... " >&6; }
3835# Test print first, because it will be a builtin if present.
3836if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3837   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3838  ECHO='print -r --'
3839elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3840  ECHO='printf %s\n'
3841else
3842  # Use this function as a fallback that always works.
3843  func_fallback_echo ()
3844  {
3845    eval 'cat <<_LTECHO_EOF
3846$1
3847_LTECHO_EOF'
3848  }
3849  ECHO='func_fallback_echo'
3850fi
3851
3852# func_echo_all arg...
3853# Invoke $ECHO with all args, space-separated.
3854func_echo_all ()
3855{
3856    $ECHO ""
3857}
3858
3859case "$ECHO" in
3860  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3861$as_echo "printf" >&6; } ;;
3862  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3863$as_echo "print -r" >&6; } ;;
3864  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3865$as_echo "cat" >&6; } ;;
3866esac
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881ac_ext=c
3882ac_cpp='$CPP $CPPFLAGS'
3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886if test -n "$ac_tool_prefix"; then
3887  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3888set dummy ${ac_tool_prefix}gcc; ac_word=$2
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890$as_echo_n "checking for $ac_word... " >&6; }
3891if ${ac_cv_prog_CC+:} false; then :
3892  $as_echo_n "(cached) " >&6
3893else
3894  if test -n "$CC"; then
3895  ac_cv_prog_CC="$CC" # Let the user override the test.
3896else
3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH
3899do
3900  IFS=$as_save_IFS
3901  test -z "$as_dir" && as_dir=.
3902    for ac_exec_ext in '' $ac_executable_extensions; do
3903  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3904    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906    break 2
3907  fi
3908done
3909  done
3910IFS=$as_save_IFS
3911
3912fi
3913fi
3914CC=$ac_cv_prog_CC
3915if test -n "$CC"; then
3916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3917$as_echo "$CC" >&6; }
3918else
3919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920$as_echo "no" >&6; }
3921fi
3922
3923
3924fi
3925if test -z "$ac_cv_prog_CC"; then
3926  ac_ct_CC=$CC
3927  # Extract the first word of "gcc", so it can be a program name with args.
3928set dummy gcc; ac_word=$2
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930$as_echo_n "checking for $ac_word... " >&6; }
3931if ${ac_cv_prog_ac_ct_CC+:} false; then :
3932  $as_echo_n "(cached) " >&6
3933else
3934  if test -n "$ac_ct_CC"; then
3935  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940  IFS=$as_save_IFS
3941  test -z "$as_dir" && as_dir=.
3942    for ac_exec_ext in '' $ac_executable_extensions; do
3943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944    ac_cv_prog_ac_ct_CC="gcc"
3945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946    break 2
3947  fi
3948done
3949  done
3950IFS=$as_save_IFS
3951
3952fi
3953fi
3954ac_ct_CC=$ac_cv_prog_ac_ct_CC
3955if test -n "$ac_ct_CC"; then
3956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3957$as_echo "$ac_ct_CC" >&6; }
3958else
3959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
3961fi
3962
3963  if test "x$ac_ct_CC" = x; then
3964    CC=""
3965  else
3966    case $cross_compiling:$ac_tool_warned in
3967yes:)
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3970ac_tool_warned=yes ;;
3971esac
3972    CC=$ac_ct_CC
3973  fi
3974else
3975  CC="$ac_cv_prog_CC"
3976fi
3977
3978if test -z "$CC"; then
3979          if test -n "$ac_tool_prefix"; then
3980    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3981set dummy ${ac_tool_prefix}cc; ac_word=$2
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983$as_echo_n "checking for $ac_word... " >&6; }
3984if ${ac_cv_prog_CC+:} false; then :
3985  $as_echo_n "(cached) " >&6
3986else
3987  if test -n "$CC"; then
3988  ac_cv_prog_CC="$CC" # Let the user override the test.
3989else
3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991for as_dir in $PATH
3992do
3993  IFS=$as_save_IFS
3994  test -z "$as_dir" && as_dir=.
3995    for ac_exec_ext in '' $ac_executable_extensions; do
3996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997    ac_cv_prog_CC="${ac_tool_prefix}cc"
3998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999    break 2
4000  fi
4001done
4002  done
4003IFS=$as_save_IFS
4004
4005fi
4006fi
4007CC=$ac_cv_prog_CC
4008if test -n "$CC"; then
4009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4010$as_echo "$CC" >&6; }
4011else
4012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013$as_echo "no" >&6; }
4014fi
4015
4016
4017  fi
4018fi
4019if test -z "$CC"; then
4020  # Extract the first word of "cc", so it can be a program name with args.
4021set dummy cc; ac_word=$2
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023$as_echo_n "checking for $ac_word... " >&6; }
4024if ${ac_cv_prog_CC+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  if test -n "$CC"; then
4028  ac_cv_prog_CC="$CC" # Let the user override the test.
4029else
4030  ac_prog_rejected=no
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034  IFS=$as_save_IFS
4035  test -z "$as_dir" && as_dir=.
4036    for ac_exec_ext in '' $ac_executable_extensions; do
4037  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4039       ac_prog_rejected=yes
4040       continue
4041     fi
4042    ac_cv_prog_CC="cc"
4043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044    break 2
4045  fi
4046done
4047  done
4048IFS=$as_save_IFS
4049
4050if test $ac_prog_rejected = yes; then
4051  # We found a bogon in the path, so make sure we never use it.
4052  set dummy $ac_cv_prog_CC
4053  shift
4054  if test $# != 0; then
4055    # We chose a different compiler from the bogus one.
4056    # However, it has the same basename, so the bogon will be chosen
4057    # first if we set CC to just the basename; use the full file name.
4058    shift
4059    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4060  fi
4061fi
4062fi
4063fi
4064CC=$ac_cv_prog_CC
4065if test -n "$CC"; then
4066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4067$as_echo "$CC" >&6; }
4068else
4069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070$as_echo "no" >&6; }
4071fi
4072
4073
4074fi
4075if test -z "$CC"; then
4076  if test -n "$ac_tool_prefix"; then
4077  for ac_prog in cl.exe
4078  do
4079    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4080set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082$as_echo_n "checking for $ac_word... " >&6; }
4083if ${ac_cv_prog_CC+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  if test -n "$CC"; then
4087  ac_cv_prog_CC="$CC" # Let the user override the test.
4088else
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092  IFS=$as_save_IFS
4093  test -z "$as_dir" && as_dir=.
4094    for ac_exec_ext in '' $ac_executable_extensions; do
4095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4096    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098    break 2
4099  fi
4100done
4101  done
4102IFS=$as_save_IFS
4103
4104fi
4105fi
4106CC=$ac_cv_prog_CC
4107if test -n "$CC"; then
4108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4109$as_echo "$CC" >&6; }
4110else
4111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112$as_echo "no" >&6; }
4113fi
4114
4115
4116    test -n "$CC" && break
4117  done
4118fi
4119if test -z "$CC"; then
4120  ac_ct_CC=$CC
4121  for ac_prog in cl.exe
4122do
4123  # Extract the first word of "$ac_prog", so it can be a program name with args.
4124set dummy $ac_prog; ac_word=$2
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126$as_echo_n "checking for $ac_word... " >&6; }
4127if ${ac_cv_prog_ac_ct_CC+:} false; then :
4128  $as_echo_n "(cached) " >&6
4129else
4130  if test -n "$ac_ct_CC"; then
4131  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4132else
4133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136  IFS=$as_save_IFS
4137  test -z "$as_dir" && as_dir=.
4138    for ac_exec_ext in '' $ac_executable_extensions; do
4139  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140    ac_cv_prog_ac_ct_CC="$ac_prog"
4141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4142    break 2
4143  fi
4144done
4145  done
4146IFS=$as_save_IFS
4147
4148fi
4149fi
4150ac_ct_CC=$ac_cv_prog_ac_ct_CC
4151if test -n "$ac_ct_CC"; then
4152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4153$as_echo "$ac_ct_CC" >&6; }
4154else
4155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156$as_echo "no" >&6; }
4157fi
4158
4159
4160  test -n "$ac_ct_CC" && break
4161done
4162
4163  if test "x$ac_ct_CC" = x; then
4164    CC=""
4165  else
4166    case $cross_compiling:$ac_tool_warned in
4167yes:)
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4170ac_tool_warned=yes ;;
4171esac
4172    CC=$ac_ct_CC
4173  fi
4174fi
4175
4176fi
4177
4178
4179test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4181as_fn_error $? "no acceptable C compiler found in \$PATH
4182See \`config.log' for more details" "$LINENO" 5; }
4183
4184# Provide some information about the compiler.
4185$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4186set X $ac_compile
4187ac_compiler=$2
4188for ac_option in --version -v -V -qversion; do
4189  { { ac_try="$ac_compiler $ac_option >&5"
4190case "(($ac_try" in
4191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192  *) ac_try_echo=$ac_try;;
4193esac
4194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195$as_echo "$ac_try_echo"; } >&5
4196  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4197  ac_status=$?
4198  if test -s conftest.err; then
4199    sed '10a\
4200... rest of stderr output deleted ...
4201         10q' conftest.err >conftest.er1
4202    cat conftest.er1 >&5
4203  fi
4204  rm -f conftest.er1 conftest.err
4205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4206  test $ac_status = 0; }
4207done
4208
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4210$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4211if ${ac_cv_c_compiler_gnu+:} false; then :
4212  $as_echo_n "(cached) " >&6
4213else
4214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h.  */
4216
4217int
4218main ()
4219{
4220#ifndef __GNUC__
4221       choke me
4222#endif
4223
4224  ;
4225  return 0;
4226}
4227_ACEOF
4228if ac_fn_c_try_compile "$LINENO"; then :
4229  ac_compiler_gnu=yes
4230else
4231  ac_compiler_gnu=no
4232fi
4233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234ac_cv_c_compiler_gnu=$ac_compiler_gnu
4235
4236fi
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4238$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4239if test $ac_compiler_gnu = yes; then
4240  GCC=yes
4241else
4242  GCC=
4243fi
4244ac_test_CFLAGS=${CFLAGS+set}
4245ac_save_CFLAGS=$CFLAGS
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4247$as_echo_n "checking whether $CC accepts -g... " >&6; }
4248if ${ac_cv_prog_cc_g+:} false; then :
4249  $as_echo_n "(cached) " >&6
4250else
4251  ac_save_c_werror_flag=$ac_c_werror_flag
4252   ac_c_werror_flag=yes
4253   ac_cv_prog_cc_g=no
4254   CFLAGS="-g"
4255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256/* end confdefs.h.  */
4257
4258int
4259main ()
4260{
4261
4262  ;
4263  return 0;
4264}
4265_ACEOF
4266if ac_fn_c_try_compile "$LINENO"; then :
4267  ac_cv_prog_cc_g=yes
4268else
4269  CFLAGS=""
4270      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271/* end confdefs.h.  */
4272
4273int
4274main ()
4275{
4276
4277  ;
4278  return 0;
4279}
4280_ACEOF
4281if ac_fn_c_try_compile "$LINENO"; then :
4282
4283else
4284  ac_c_werror_flag=$ac_save_c_werror_flag
4285	 CFLAGS="-g"
4286	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287/* end confdefs.h.  */
4288
4289int
4290main ()
4291{
4292
4293  ;
4294  return 0;
4295}
4296_ACEOF
4297if ac_fn_c_try_compile "$LINENO"; then :
4298  ac_cv_prog_cc_g=yes
4299fi
4300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301fi
4302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303fi
4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305   ac_c_werror_flag=$ac_save_c_werror_flag
4306fi
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4308$as_echo "$ac_cv_prog_cc_g" >&6; }
4309if test "$ac_test_CFLAGS" = set; then
4310  CFLAGS=$ac_save_CFLAGS
4311elif test $ac_cv_prog_cc_g = yes; then
4312  if test "$GCC" = yes; then
4313    CFLAGS="-g -O2"
4314  else
4315    CFLAGS="-g"
4316  fi
4317else
4318  if test "$GCC" = yes; then
4319    CFLAGS="-O2"
4320  else
4321    CFLAGS=
4322  fi
4323fi
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4325$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4326if ${ac_cv_prog_cc_c89+:} false; then :
4327  $as_echo_n "(cached) " >&6
4328else
4329  ac_cv_prog_cc_c89=no
4330ac_save_CC=$CC
4331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h.  */
4333#include <stdarg.h>
4334#include <stdio.h>
4335#include <sys/types.h>
4336#include <sys/stat.h>
4337/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4338struct buf { int x; };
4339FILE * (*rcsopen) (struct buf *, struct stat *, int);
4340static char *e (p, i)
4341     char **p;
4342     int i;
4343{
4344  return p[i];
4345}
4346static char *f (char * (*g) (char **, int), char **p, ...)
4347{
4348  char *s;
4349  va_list v;
4350  va_start (v,p);
4351  s = g (p, va_arg (v,int));
4352  va_end (v);
4353  return s;
4354}
4355
4356/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4357   function prototypes and stuff, but not '\xHH' hex character constants.
4358   These don't provoke an error unfortunately, instead are silently treated
4359   as 'x'.  The following induces an error, until -std is added to get
4360   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4361   array size at least.  It's necessary to write '\x00'==0 to get something
4362   that's true only with -std.  */
4363int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4364
4365/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4366   inside strings and character constants.  */
4367#define FOO(x) 'x'
4368int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4369
4370int test (int i, double x);
4371struct s1 {int (*f) (int a);};
4372struct s2 {int (*f) (double a);};
4373int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4374int argc;
4375char **argv;
4376int
4377main ()
4378{
4379return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4380  ;
4381  return 0;
4382}
4383_ACEOF
4384for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4385	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4386do
4387  CC="$ac_save_CC $ac_arg"
4388  if ac_fn_c_try_compile "$LINENO"; then :
4389  ac_cv_prog_cc_c89=$ac_arg
4390fi
4391rm -f core conftest.err conftest.$ac_objext
4392  test "x$ac_cv_prog_cc_c89" != "xno" && break
4393done
4394rm -f conftest.$ac_ext
4395CC=$ac_save_CC
4396
4397fi
4398# AC_CACHE_VAL
4399case "x$ac_cv_prog_cc_c89" in
4400  x)
4401    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4402$as_echo "none needed" >&6; } ;;
4403  xno)
4404    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4405$as_echo "unsupported" >&6; } ;;
4406  *)
4407    CC="$CC $ac_cv_prog_cc_c89"
4408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4409$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4410esac
4411if test "x$ac_cv_prog_cc_c89" != xno; then :
4412
4413fi
4414
4415ac_ext=cpp
4416ac_cpp='$CXXCPP $CPPFLAGS'
4417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4420
4421depcc="$CC"   am_compiler_list=
4422
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4424$as_echo_n "checking dependency style of $depcc... " >&6; }
4425if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4426  $as_echo_n "(cached) " >&6
4427else
4428  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4429  # We make a subdir and do the tests there.  Otherwise we can end up
4430  # making bogus files that we don't know about and never remove.  For
4431  # instance it was reported that on HP-UX the gcc test will end up
4432  # making a dummy file named `D' -- because `-MD' means `put the output
4433  # in D'.
4434  rm -rf conftest.dir
4435  mkdir conftest.dir
4436  # Copy depcomp to subdir because otherwise we won't find it if we're
4437  # using a relative directory.
4438  cp "$am_depcomp" conftest.dir
4439  cd conftest.dir
4440  # We will build objects and dependencies in a subdirectory because
4441  # it helps to detect inapplicable dependency modes.  For instance
4442  # both Tru64's cc and ICC support -MD to output dependencies as a
4443  # side effect of compilation, but ICC will put the dependencies in
4444  # the current directory while Tru64 will put them in the object
4445  # directory.
4446  mkdir sub
4447
4448  am_cv_CC_dependencies_compiler_type=none
4449  if test "$am_compiler_list" = ""; then
4450     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4451  fi
4452  am__universal=false
4453  case " $depcc " in #(
4454     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4455     esac
4456
4457  for depmode in $am_compiler_list; do
4458    # Setup a source with many dependencies, because some compilers
4459    # like to wrap large dependency lists on column 80 (with \), and
4460    # we should not choose a depcomp mode which is confused by this.
4461    #
4462    # We need to recreate these files for each test, as the compiler may
4463    # overwrite some of them when testing with obscure command lines.
4464    # This happens at least with the AIX C compiler.
4465    : > sub/conftest.c
4466    for i in 1 2 3 4 5 6; do
4467      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4468      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4469      # Solaris 8's {/usr,}/bin/sh.
4470      touch sub/conftst$i.h
4471    done
4472    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4473
4474    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4475    # mode.  It turns out that the SunPro C++ compiler does not properly
4476    # handle `-M -o', and we need to detect this.  Also, some Intel
4477    # versions had trouble with output in subdirs
4478    am__obj=sub/conftest.${OBJEXT-o}
4479    am__minus_obj="-o $am__obj"
4480    case $depmode in
4481    gcc)
4482      # This depmode causes a compiler race in universal mode.
4483      test "$am__universal" = false || continue
4484      ;;
4485    nosideeffect)
4486      # after this tag, mechanisms are not by side-effect, so they'll
4487      # only be used when explicitly requested
4488      if test "x$enable_dependency_tracking" = xyes; then
4489	continue
4490      else
4491	break
4492      fi
4493      ;;
4494    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4495      # This compiler won't grok `-c -o', but also, the minuso test has
4496      # not run yet.  These depmodes are late enough in the game, and
4497      # so weak that their functioning should not be impacted.
4498      am__obj=conftest.${OBJEXT-o}
4499      am__minus_obj=
4500      ;;
4501    none) break ;;
4502    esac
4503    if depmode=$depmode \
4504       source=sub/conftest.c object=$am__obj \
4505       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4506       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4507         >/dev/null 2>conftest.err &&
4508       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4509       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4510       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4511       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4512      # icc doesn't choke on unknown options, it will just issue warnings
4513      # or remarks (even with -Werror).  So we grep stderr for any message
4514      # that says an option was ignored or not supported.
4515      # When given -MP, icc 7.0 and 7.1 complain thusly:
4516      #   icc: Command line warning: ignoring option '-M'; no argument required
4517      # The diagnosis changed in icc 8.0:
4518      #   icc: Command line remark: option '-MP' not supported
4519      if (grep 'ignoring option' conftest.err ||
4520          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4521        am_cv_CC_dependencies_compiler_type=$depmode
4522        break
4523      fi
4524    fi
4525  done
4526
4527  cd ..
4528  rm -rf conftest.dir
4529else
4530  am_cv_CC_dependencies_compiler_type=none
4531fi
4532
4533fi
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4535$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4536CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4537
4538 if
4539  test "x$enable_dependency_tracking" != xno \
4540  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4541  am__fastdepCC_TRUE=
4542  am__fastdepCC_FALSE='#'
4543else
4544  am__fastdepCC_TRUE='#'
4545  am__fastdepCC_FALSE=
4546fi
4547
4548
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4550$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4551if ${ac_cv_path_SED+:} false; then :
4552  $as_echo_n "(cached) " >&6
4553else
4554            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4555     for ac_i in 1 2 3 4 5 6 7; do
4556       ac_script="$ac_script$as_nl$ac_script"
4557     done
4558     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4559     { ac_script=; unset ac_script;}
4560     if test -z "$SED"; then
4561  ac_path_SED_found=false
4562  # Loop through the user's path and test for each of PROGNAME-LIST
4563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566  IFS=$as_save_IFS
4567  test -z "$as_dir" && as_dir=.
4568    for ac_prog in sed gsed; do
4569    for ac_exec_ext in '' $ac_executable_extensions; do
4570      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4571      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4572# Check for GNU ac_path_SED and select it if it is found.
4573  # Check for GNU $ac_path_SED
4574case `"$ac_path_SED" --version 2>&1` in
4575*GNU*)
4576  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4577*)
4578  ac_count=0
4579  $as_echo_n 0123456789 >"conftest.in"
4580  while :
4581  do
4582    cat "conftest.in" "conftest.in" >"conftest.tmp"
4583    mv "conftest.tmp" "conftest.in"
4584    cp "conftest.in" "conftest.nl"
4585    $as_echo '' >> "conftest.nl"
4586    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588    as_fn_arith $ac_count + 1 && ac_count=$as_val
4589    if test $ac_count -gt ${ac_path_SED_max-0}; then
4590      # Best one so far, save it but keep looking for a better one
4591      ac_cv_path_SED="$ac_path_SED"
4592      ac_path_SED_max=$ac_count
4593    fi
4594    # 10*(2^10) chars as input seems more than enough
4595    test $ac_count -gt 10 && break
4596  done
4597  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598esac
4599
4600      $ac_path_SED_found && break 3
4601    done
4602  done
4603  done
4604IFS=$as_save_IFS
4605  if test -z "$ac_cv_path_SED"; then
4606    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4607  fi
4608else
4609  ac_cv_path_SED=$SED
4610fi
4611
4612fi
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4614$as_echo "$ac_cv_path_SED" >&6; }
4615 SED="$ac_cv_path_SED"
4616  rm -f conftest.sed
4617
4618test -z "$SED" && SED=sed
4619Xsed="$SED -e 1s/^X//"
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4632$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4633if ${ac_cv_path_GREP+:} false; then :
4634  $as_echo_n "(cached) " >&6
4635else
4636  if test -z "$GREP"; then
4637  ac_path_GREP_found=false
4638  # Loop through the user's path and test for each of PROGNAME-LIST
4639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4641do
4642  IFS=$as_save_IFS
4643  test -z "$as_dir" && as_dir=.
4644    for ac_prog in grep ggrep; do
4645    for ac_exec_ext in '' $ac_executable_extensions; do
4646      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4647      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4648# Check for GNU ac_path_GREP and select it if it is found.
4649  # Check for GNU $ac_path_GREP
4650case `"$ac_path_GREP" --version 2>&1` in
4651*GNU*)
4652  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4653*)
4654  ac_count=0
4655  $as_echo_n 0123456789 >"conftest.in"
4656  while :
4657  do
4658    cat "conftest.in" "conftest.in" >"conftest.tmp"
4659    mv "conftest.tmp" "conftest.in"
4660    cp "conftest.in" "conftest.nl"
4661    $as_echo 'GREP' >> "conftest.nl"
4662    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664    as_fn_arith $ac_count + 1 && ac_count=$as_val
4665    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4666      # Best one so far, save it but keep looking for a better one
4667      ac_cv_path_GREP="$ac_path_GREP"
4668      ac_path_GREP_max=$ac_count
4669    fi
4670    # 10*(2^10) chars as input seems more than enough
4671    test $ac_count -gt 10 && break
4672  done
4673  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674esac
4675
4676      $ac_path_GREP_found && break 3
4677    done
4678  done
4679  done
4680IFS=$as_save_IFS
4681  if test -z "$ac_cv_path_GREP"; then
4682    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4683  fi
4684else
4685  ac_cv_path_GREP=$GREP
4686fi
4687
4688fi
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4690$as_echo "$ac_cv_path_GREP" >&6; }
4691 GREP="$ac_cv_path_GREP"
4692
4693
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4695$as_echo_n "checking for egrep... " >&6; }
4696if ${ac_cv_path_EGREP+:} false; then :
4697  $as_echo_n "(cached) " >&6
4698else
4699  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4700   then ac_cv_path_EGREP="$GREP -E"
4701   else
4702     if test -z "$EGREP"; then
4703  ac_path_EGREP_found=false
4704  # Loop through the user's path and test for each of PROGNAME-LIST
4705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4707do
4708  IFS=$as_save_IFS
4709  test -z "$as_dir" && as_dir=.
4710    for ac_prog in egrep; do
4711    for ac_exec_ext in '' $ac_executable_extensions; do
4712      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4713      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4714# Check for GNU ac_path_EGREP and select it if it is found.
4715  # Check for GNU $ac_path_EGREP
4716case `"$ac_path_EGREP" --version 2>&1` in
4717*GNU*)
4718  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4719*)
4720  ac_count=0
4721  $as_echo_n 0123456789 >"conftest.in"
4722  while :
4723  do
4724    cat "conftest.in" "conftest.in" >"conftest.tmp"
4725    mv "conftest.tmp" "conftest.in"
4726    cp "conftest.in" "conftest.nl"
4727    $as_echo 'EGREP' >> "conftest.nl"
4728    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4729    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4730    as_fn_arith $ac_count + 1 && ac_count=$as_val
4731    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4732      # Best one so far, save it but keep looking for a better one
4733      ac_cv_path_EGREP="$ac_path_EGREP"
4734      ac_path_EGREP_max=$ac_count
4735    fi
4736    # 10*(2^10) chars as input seems more than enough
4737    test $ac_count -gt 10 && break
4738  done
4739  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4740esac
4741
4742      $ac_path_EGREP_found && break 3
4743    done
4744  done
4745  done
4746IFS=$as_save_IFS
4747  if test -z "$ac_cv_path_EGREP"; then
4748    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4749  fi
4750else
4751  ac_cv_path_EGREP=$EGREP
4752fi
4753
4754   fi
4755fi
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4757$as_echo "$ac_cv_path_EGREP" >&6; }
4758 EGREP="$ac_cv_path_EGREP"
4759
4760
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4762$as_echo_n "checking for fgrep... " >&6; }
4763if ${ac_cv_path_FGREP+:} false; then :
4764  $as_echo_n "(cached) " >&6
4765else
4766  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4767   then ac_cv_path_FGREP="$GREP -F"
4768   else
4769     if test -z "$FGREP"; then
4770  ac_path_FGREP_found=false
4771  # Loop through the user's path and test for each of PROGNAME-LIST
4772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4774do
4775  IFS=$as_save_IFS
4776  test -z "$as_dir" && as_dir=.
4777    for ac_prog in fgrep; do
4778    for ac_exec_ext in '' $ac_executable_extensions; do
4779      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4780      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4781# Check for GNU ac_path_FGREP and select it if it is found.
4782  # Check for GNU $ac_path_FGREP
4783case `"$ac_path_FGREP" --version 2>&1` in
4784*GNU*)
4785  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4786*)
4787  ac_count=0
4788  $as_echo_n 0123456789 >"conftest.in"
4789  while :
4790  do
4791    cat "conftest.in" "conftest.in" >"conftest.tmp"
4792    mv "conftest.tmp" "conftest.in"
4793    cp "conftest.in" "conftest.nl"
4794    $as_echo 'FGREP' >> "conftest.nl"
4795    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4796    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4797    as_fn_arith $ac_count + 1 && ac_count=$as_val
4798    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4799      # Best one so far, save it but keep looking for a better one
4800      ac_cv_path_FGREP="$ac_path_FGREP"
4801      ac_path_FGREP_max=$ac_count
4802    fi
4803    # 10*(2^10) chars as input seems more than enough
4804    test $ac_count -gt 10 && break
4805  done
4806  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4807esac
4808
4809      $ac_path_FGREP_found && break 3
4810    done
4811  done
4812  done
4813IFS=$as_save_IFS
4814  if test -z "$ac_cv_path_FGREP"; then
4815    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4816  fi
4817else
4818  ac_cv_path_FGREP=$FGREP
4819fi
4820
4821   fi
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4824$as_echo "$ac_cv_path_FGREP" >&6; }
4825 FGREP="$ac_cv_path_FGREP"
4826
4827
4828test -z "$GREP" && GREP=grep
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848# Check whether --with-gnu-ld was given.
4849if test "${with_gnu_ld+set}" = set; then :
4850  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4851else
4852  with_gnu_ld=no
4853fi
4854
4855ac_prog=ld
4856if test "$GCC" = yes; then
4857  # Check if gcc -print-prog-name=ld gives a path.
4858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4859$as_echo_n "checking for ld used by $CC... " >&6; }
4860  case $host in
4861  *-*-mingw*)
4862    # gcc leaves a trailing carriage return which upsets mingw
4863    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4864  *)
4865    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4866  esac
4867  case $ac_prog in
4868    # Accept absolute paths.
4869    [\\/]* | ?:[\\/]*)
4870      re_direlt='/[^/][^/]*/\.\./'
4871      # Canonicalize the pathname of ld
4872      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4873      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4874	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4875      done
4876      test -z "$LD" && LD="$ac_prog"
4877      ;;
4878  "")
4879    # If it fails, then pretend we aren't using GCC.
4880    ac_prog=ld
4881    ;;
4882  *)
4883    # If it is relative, then search for the first ld in PATH.
4884    with_gnu_ld=unknown
4885    ;;
4886  esac
4887elif test "$with_gnu_ld" = yes; then
4888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4889$as_echo_n "checking for GNU ld... " >&6; }
4890else
4891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4892$as_echo_n "checking for non-GNU ld... " >&6; }
4893fi
4894if ${lt_cv_path_LD+:} false; then :
4895  $as_echo_n "(cached) " >&6
4896else
4897  if test -z "$LD"; then
4898  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4899  for ac_dir in $PATH; do
4900    IFS="$lt_save_ifs"
4901    test -z "$ac_dir" && ac_dir=.
4902    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4903      lt_cv_path_LD="$ac_dir/$ac_prog"
4904      # Check to see if the program is GNU ld.  I'd rather use --version,
4905      # but apparently some variants of GNU ld only accept -v.
4906      # Break only if it was the GNU/non-GNU ld that we prefer.
4907      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4908      *GNU* | *'with BFD'*)
4909	test "$with_gnu_ld" != no && break
4910	;;
4911      *)
4912	test "$with_gnu_ld" != yes && break
4913	;;
4914      esac
4915    fi
4916  done
4917  IFS="$lt_save_ifs"
4918else
4919  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4920fi
4921fi
4922
4923LD="$lt_cv_path_LD"
4924if test -n "$LD"; then
4925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4926$as_echo "$LD" >&6; }
4927else
4928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929$as_echo "no" >&6; }
4930fi
4931test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4933$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4934if ${lt_cv_prog_gnu_ld+:} false; then :
4935  $as_echo_n "(cached) " >&6
4936else
4937  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4938case `$LD -v 2>&1 </dev/null` in
4939*GNU* | *'with BFD'*)
4940  lt_cv_prog_gnu_ld=yes
4941  ;;
4942*)
4943  lt_cv_prog_gnu_ld=no
4944  ;;
4945esac
4946fi
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4948$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4949with_gnu_ld=$lt_cv_prog_gnu_ld
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4960$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4961if ${lt_cv_path_NM+:} false; then :
4962  $as_echo_n "(cached) " >&6
4963else
4964  if test -n "$NM"; then
4965  # Let the user override the test.
4966  lt_cv_path_NM="$NM"
4967else
4968  lt_nm_to_check="${ac_tool_prefix}nm"
4969  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4970    lt_nm_to_check="$lt_nm_to_check nm"
4971  fi
4972  for lt_tmp_nm in $lt_nm_to_check; do
4973    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4974    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4975      IFS="$lt_save_ifs"
4976      test -z "$ac_dir" && ac_dir=.
4977      tmp_nm="$ac_dir/$lt_tmp_nm"
4978      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4979	# Check to see if the nm accepts a BSD-compat flag.
4980	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4981	#   nm: unknown option "B" ignored
4982	# Tru64's nm complains that /dev/null is an invalid object file
4983	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4984	*/dev/null* | *'Invalid file or object type'*)
4985	  lt_cv_path_NM="$tmp_nm -B"
4986	  break
4987	  ;;
4988	*)
4989	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4990	  */dev/null*)
4991	    lt_cv_path_NM="$tmp_nm -p"
4992	    break
4993	    ;;
4994	  *)
4995	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4996	    continue # so that we can try to find one that supports BSD flags
4997	    ;;
4998	  esac
4999	  ;;
5000	esac
5001      fi
5002    done
5003    IFS="$lt_save_ifs"
5004  done
5005  : ${lt_cv_path_NM=no}
5006fi
5007fi
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5009$as_echo "$lt_cv_path_NM" >&6; }
5010if test "$lt_cv_path_NM" != "no"; then
5011  NM="$lt_cv_path_NM"
5012else
5013  # Didn't find any BSD compatible name lister, look for dumpbin.
5014  if test -n "$DUMPBIN"; then :
5015    # Let the user override the test.
5016  else
5017    if test -n "$ac_tool_prefix"; then
5018  for ac_prog in dumpbin "link -dump"
5019  do
5020    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5021set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023$as_echo_n "checking for $ac_word... " >&6; }
5024if ${ac_cv_prog_DUMPBIN+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  if test -n "$DUMPBIN"; then
5028  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5029else
5030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033  IFS=$as_save_IFS
5034  test -z "$as_dir" && as_dir=.
5035    for ac_exec_ext in '' $ac_executable_extensions; do
5036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039    break 2
5040  fi
5041done
5042  done
5043IFS=$as_save_IFS
5044
5045fi
5046fi
5047DUMPBIN=$ac_cv_prog_DUMPBIN
5048if test -n "$DUMPBIN"; then
5049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5050$as_echo "$DUMPBIN" >&6; }
5051else
5052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053$as_echo "no" >&6; }
5054fi
5055
5056
5057    test -n "$DUMPBIN" && break
5058  done
5059fi
5060if test -z "$DUMPBIN"; then
5061  ac_ct_DUMPBIN=$DUMPBIN
5062  for ac_prog in dumpbin "link -dump"
5063do
5064  # Extract the first word of "$ac_prog", so it can be a program name with args.
5065set dummy $ac_prog; ac_word=$2
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067$as_echo_n "checking for $ac_word... " >&6; }
5068if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5069  $as_echo_n "(cached) " >&6
5070else
5071  if test -n "$ac_ct_DUMPBIN"; then
5072  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077  IFS=$as_save_IFS
5078  test -z "$as_dir" && as_dir=.
5079    for ac_exec_ext in '' $ac_executable_extensions; do
5080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083    break 2
5084  fi
5085done
5086  done
5087IFS=$as_save_IFS
5088
5089fi
5090fi
5091ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5092if test -n "$ac_ct_DUMPBIN"; then
5093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5094$as_echo "$ac_ct_DUMPBIN" >&6; }
5095else
5096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097$as_echo "no" >&6; }
5098fi
5099
5100
5101  test -n "$ac_ct_DUMPBIN" && break
5102done
5103
5104  if test "x$ac_ct_DUMPBIN" = x; then
5105    DUMPBIN=":"
5106  else
5107    case $cross_compiling:$ac_tool_warned in
5108yes:)
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5111ac_tool_warned=yes ;;
5112esac
5113    DUMPBIN=$ac_ct_DUMPBIN
5114  fi
5115fi
5116
5117    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5118    *COFF*)
5119      DUMPBIN="$DUMPBIN -symbols"
5120      ;;
5121    *)
5122      DUMPBIN=:
5123      ;;
5124    esac
5125  fi
5126
5127  if test "$DUMPBIN" != ":"; then
5128    NM="$DUMPBIN"
5129  fi
5130fi
5131test -z "$NM" && NM=nm
5132
5133
5134
5135
5136
5137
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5139$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5140if ${lt_cv_nm_interface+:} false; then :
5141  $as_echo_n "(cached) " >&6
5142else
5143  lt_cv_nm_interface="BSD nm"
5144  echo "int some_variable = 0;" > conftest.$ac_ext
5145  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5146  (eval "$ac_compile" 2>conftest.err)
5147  cat conftest.err >&5
5148  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5149  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5150  cat conftest.err >&5
5151  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5152  cat conftest.out >&5
5153  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5154    lt_cv_nm_interface="MS dumpbin"
5155  fi
5156  rm -f conftest*
5157fi
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5159$as_echo "$lt_cv_nm_interface" >&6; }
5160
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5162$as_echo_n "checking whether ln -s works... " >&6; }
5163LN_S=$as_ln_s
5164if test "$LN_S" = "ln -s"; then
5165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5166$as_echo "yes" >&6; }
5167else
5168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5169$as_echo "no, using $LN_S" >&6; }
5170fi
5171
5172# find the maximum length of command line arguments
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5174$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5175if ${lt_cv_sys_max_cmd_len+:} false; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178    i=0
5179  teststring="ABCD"
5180
5181  case $build_os in
5182  msdosdjgpp*)
5183    # On DJGPP, this test can blow up pretty badly due to problems in libc
5184    # (any single argument exceeding 2000 bytes causes a buffer overrun
5185    # during glob expansion).  Even if it were fixed, the result of this
5186    # check would be larger than it should be.
5187    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5188    ;;
5189
5190  gnu*)
5191    # Under GNU Hurd, this test is not required because there is
5192    # no limit to the length of command line arguments.
5193    # Libtool will interpret -1 as no limit whatsoever
5194    lt_cv_sys_max_cmd_len=-1;
5195    ;;
5196
5197  cygwin* | mingw* | cegcc*)
5198    # On Win9x/ME, this test blows up -- it succeeds, but takes
5199    # about 5 minutes as the teststring grows exponentially.
5200    # Worse, since 9x/ME are not pre-emptively multitasking,
5201    # you end up with a "frozen" computer, even though with patience
5202    # the test eventually succeeds (with a max line length of 256k).
5203    # Instead, let's just punt: use the minimum linelength reported by
5204    # all of the supported platforms: 8192 (on NT/2K/XP).
5205    lt_cv_sys_max_cmd_len=8192;
5206    ;;
5207
5208  mint*)
5209    # On MiNT this can take a long time and run out of memory.
5210    lt_cv_sys_max_cmd_len=8192;
5211    ;;
5212
5213  amigaos*)
5214    # On AmigaOS with pdksh, this test takes hours, literally.
5215    # So we just punt and use a minimum line length of 8192.
5216    lt_cv_sys_max_cmd_len=8192;
5217    ;;
5218
5219  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5220    # This has been around since 386BSD, at least.  Likely further.
5221    if test -x /sbin/sysctl; then
5222      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5223    elif test -x /usr/sbin/sysctl; then
5224      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5225    else
5226      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5227    fi
5228    # And add a safety zone
5229    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5230    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5231    ;;
5232
5233  interix*)
5234    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5235    lt_cv_sys_max_cmd_len=196608
5236    ;;
5237
5238  osf*)
5239    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5240    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5241    # nice to cause kernel panics so lets avoid the loop below.
5242    # First set a reasonable default.
5243    lt_cv_sys_max_cmd_len=16384
5244    #
5245    if test -x /sbin/sysconfig; then
5246      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5247        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5248      esac
5249    fi
5250    ;;
5251  sco3.2v5*)
5252    lt_cv_sys_max_cmd_len=102400
5253    ;;
5254  sysv5* | sco5v6* | sysv4.2uw2*)
5255    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5256    if test -n "$kargmax"; then
5257      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5258    else
5259      lt_cv_sys_max_cmd_len=32768
5260    fi
5261    ;;
5262  *)
5263    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5264    if test -n "$lt_cv_sys_max_cmd_len"; then
5265      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5266      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5267    else
5268      # Make teststring a little bigger before we do anything with it.
5269      # a 1K string should be a reasonable start.
5270      for i in 1 2 3 4 5 6 7 8 ; do
5271        teststring=$teststring$teststring
5272      done
5273      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5274      # If test is not a shell built-in, we'll probably end up computing a
5275      # maximum length that is only half of the actual maximum length, but
5276      # we can't tell.
5277      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5278	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5279	      test $i != 17 # 1/2 MB should be enough
5280      do
5281        i=`expr $i + 1`
5282        teststring=$teststring$teststring
5283      done
5284      # Only check the string length outside the loop.
5285      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5286      teststring=
5287      # Add a significant safety factor because C++ compilers can tack on
5288      # massive amounts of additional arguments before passing them to the
5289      # linker.  It appears as though 1/2 is a usable value.
5290      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5291    fi
5292    ;;
5293  esac
5294
5295fi
5296
5297if test -n $lt_cv_sys_max_cmd_len ; then
5298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5299$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5300else
5301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5302$as_echo "none" >&6; }
5303fi
5304max_cmd_len=$lt_cv_sys_max_cmd_len
5305
5306
5307
5308
5309
5310
5311: ${CP="cp -f"}
5312: ${MV="mv -f"}
5313: ${RM="rm -f"}
5314
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5316$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5317# Try some XSI features
5318xsi_shell=no
5319( _lt_dummy="a/b/c"
5320  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5321      = c,a/b,b/c, \
5322    && eval 'test $(( 1 + 1 )) -eq 2 \
5323    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5324  && xsi_shell=yes
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5326$as_echo "$xsi_shell" >&6; }
5327
5328
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5330$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5331lt_shell_append=no
5332( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5333    >/dev/null 2>&1 \
5334  && lt_shell_append=yes
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5336$as_echo "$lt_shell_append" >&6; }
5337
5338
5339if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5340  lt_unset=unset
5341else
5342  lt_unset=false
5343fi
5344
5345
5346
5347
5348
5349# test EBCDIC or ASCII
5350case `echo X|tr X '\101'` in
5351 A) # ASCII based system
5352    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5353  lt_SP2NL='tr \040 \012'
5354  lt_NL2SP='tr \015\012 \040\040'
5355  ;;
5356 *) # EBCDIC based system
5357  lt_SP2NL='tr \100 \n'
5358  lt_NL2SP='tr \r\n \100\100'
5359  ;;
5360esac
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5371$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5372if ${lt_cv_to_host_file_cmd+:} false; then :
5373  $as_echo_n "(cached) " >&6
5374else
5375  case $host in
5376  *-*-mingw* )
5377    case $build in
5378      *-*-mingw* ) # actually msys
5379        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5380        ;;
5381      *-*-cygwin* )
5382        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5383        ;;
5384      * ) # otherwise, assume *nix
5385        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5386        ;;
5387    esac
5388    ;;
5389  *-*-cygwin* )
5390    case $build in
5391      *-*-mingw* ) # actually msys
5392        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5393        ;;
5394      *-*-cygwin* )
5395        lt_cv_to_host_file_cmd=func_convert_file_noop
5396        ;;
5397      * ) # otherwise, assume *nix
5398        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5399        ;;
5400    esac
5401    ;;
5402  * ) # unhandled hosts (and "normal" native builds)
5403    lt_cv_to_host_file_cmd=func_convert_file_noop
5404    ;;
5405esac
5406
5407fi
5408
5409to_host_file_cmd=$lt_cv_to_host_file_cmd
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5411$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5412
5413
5414
5415
5416
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5418$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5419if ${lt_cv_to_tool_file_cmd+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  #assume ordinary cross tools, or native build.
5423lt_cv_to_tool_file_cmd=func_convert_file_noop
5424case $host in
5425  *-*-mingw* )
5426    case $build in
5427      *-*-mingw* ) # actually msys
5428        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5429        ;;
5430    esac
5431    ;;
5432esac
5433
5434fi
5435
5436to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5438$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5439
5440
5441
5442
5443
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5445$as_echo_n "checking for $LD option to reload object files... " >&6; }
5446if ${lt_cv_ld_reload_flag+:} false; then :
5447  $as_echo_n "(cached) " >&6
5448else
5449  lt_cv_ld_reload_flag='-r'
5450fi
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5452$as_echo "$lt_cv_ld_reload_flag" >&6; }
5453reload_flag=$lt_cv_ld_reload_flag
5454case $reload_flag in
5455"" | " "*) ;;
5456*) reload_flag=" $reload_flag" ;;
5457esac
5458reload_cmds='$LD$reload_flag -o $output$reload_objs'
5459case $host_os in
5460  cygwin* | mingw* | pw32* | cegcc*)
5461    if test "$GCC" != yes; then
5462      reload_cmds=false
5463    fi
5464    ;;
5465  darwin*)
5466    if test "$GCC" = yes; then
5467      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5468    else
5469      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5470    fi
5471    ;;
5472esac
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482if test -n "$ac_tool_prefix"; then
5483  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5484set dummy ${ac_tool_prefix}objdump; ac_word=$2
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486$as_echo_n "checking for $ac_word... " >&6; }
5487if ${ac_cv_prog_OBJDUMP+:} false; then :
5488  $as_echo_n "(cached) " >&6
5489else
5490  if test -n "$OBJDUMP"; then
5491  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496  IFS=$as_save_IFS
5497  test -z "$as_dir" && as_dir=.
5498    for ac_exec_ext in '' $ac_executable_extensions; do
5499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5500    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502    break 2
5503  fi
5504done
5505  done
5506IFS=$as_save_IFS
5507
5508fi
5509fi
5510OBJDUMP=$ac_cv_prog_OBJDUMP
5511if test -n "$OBJDUMP"; then
5512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5513$as_echo "$OBJDUMP" >&6; }
5514else
5515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516$as_echo "no" >&6; }
5517fi
5518
5519
5520fi
5521if test -z "$ac_cv_prog_OBJDUMP"; then
5522  ac_ct_OBJDUMP=$OBJDUMP
5523  # Extract the first word of "objdump", so it can be a program name with args.
5524set dummy objdump; ac_word=$2
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526$as_echo_n "checking for $ac_word... " >&6; }
5527if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5528  $as_echo_n "(cached) " >&6
5529else
5530  if test -n "$ac_ct_OBJDUMP"; then
5531  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5532else
5533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534for as_dir in $PATH
5535do
5536  IFS=$as_save_IFS
5537  test -z "$as_dir" && as_dir=.
5538    for ac_exec_ext in '' $ac_executable_extensions; do
5539  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542    break 2
5543  fi
5544done
5545  done
5546IFS=$as_save_IFS
5547
5548fi
5549fi
5550ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5551if test -n "$ac_ct_OBJDUMP"; then
5552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5553$as_echo "$ac_ct_OBJDUMP" >&6; }
5554else
5555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }
5557fi
5558
5559  if test "x$ac_ct_OBJDUMP" = x; then
5560    OBJDUMP="false"
5561  else
5562    case $cross_compiling:$ac_tool_warned in
5563yes:)
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5566ac_tool_warned=yes ;;
5567esac
5568    OBJDUMP=$ac_ct_OBJDUMP
5569  fi
5570else
5571  OBJDUMP="$ac_cv_prog_OBJDUMP"
5572fi
5573
5574test -z "$OBJDUMP" && OBJDUMP=objdump
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5585$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5586if ${lt_cv_deplibs_check_method+:} false; then :
5587  $as_echo_n "(cached) " >&6
5588else
5589  lt_cv_file_magic_cmd='$MAGIC_CMD'
5590lt_cv_file_magic_test_file=
5591lt_cv_deplibs_check_method='unknown'
5592# Need to set the preceding variable on all platforms that support
5593# interlibrary dependencies.
5594# 'none' -- dependencies not supported.
5595# `unknown' -- same as none, but documents that we really don't know.
5596# 'pass_all' -- all dependencies passed with no checks.
5597# 'test_compile' -- check by making test program.
5598# 'file_magic [[regex]]' -- check by looking for files in library path
5599# which responds to the $file_magic_cmd with a given extended regex.
5600# If you have `file' or equivalent on your system and you're not sure
5601# whether `pass_all' will *always* work, you probably want this one.
5602
5603case $host_os in
5604aix[4-9]*)
5605  lt_cv_deplibs_check_method=pass_all
5606  ;;
5607
5608beos*)
5609  lt_cv_deplibs_check_method=pass_all
5610  ;;
5611
5612bsdi[45]*)
5613  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5614  lt_cv_file_magic_cmd='/usr/bin/file -L'
5615  lt_cv_file_magic_test_file=/shlib/libc.so
5616  ;;
5617
5618cygwin*)
5619  # func_win32_libid is a shell function defined in ltmain.sh
5620  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5621  lt_cv_file_magic_cmd='func_win32_libid'
5622  ;;
5623
5624mingw* | pw32*)
5625  # Base MSYS/MinGW do not provide the 'file' command needed by
5626  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5627  # unless we find 'file', for example because we are cross-compiling.
5628  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5629  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5630    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5631    lt_cv_file_magic_cmd='func_win32_libid'
5632  else
5633    # Keep this pattern in sync with the one in func_win32_libid.
5634    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5635    lt_cv_file_magic_cmd='$OBJDUMP -f'
5636  fi
5637  ;;
5638
5639cegcc*)
5640  # use the weaker test based on 'objdump'. See mingw*.
5641  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5642  lt_cv_file_magic_cmd='$OBJDUMP -f'
5643  ;;
5644
5645darwin* | rhapsody*)
5646  lt_cv_deplibs_check_method=pass_all
5647  ;;
5648
5649freebsd* | dragonfly*)
5650  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5651    case $host_cpu in
5652    i*86 )
5653      # Not sure whether the presence of OpenBSD here was a mistake.
5654      # Let's accept both of them until this is cleared up.
5655      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5656      lt_cv_file_magic_cmd=/usr/bin/file
5657      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5658      ;;
5659    esac
5660  else
5661    lt_cv_deplibs_check_method=pass_all
5662  fi
5663  ;;
5664
5665gnu*)
5666  lt_cv_deplibs_check_method=pass_all
5667  ;;
5668
5669haiku*)
5670  lt_cv_deplibs_check_method=pass_all
5671  ;;
5672
5673hpux10.20* | hpux11*)
5674  lt_cv_file_magic_cmd=/usr/bin/file
5675  case $host_cpu in
5676  ia64*)
5677    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5678    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5679    ;;
5680  hppa*64*)
5681    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]'
5682    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5683    ;;
5684  *)
5685    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5686    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5687    ;;
5688  esac
5689  ;;
5690
5691interix[3-9]*)
5692  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5693  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5694  ;;
5695
5696irix5* | irix6* | nonstopux*)
5697  case $LD in
5698  *-32|*"-32 ") libmagic=32-bit;;
5699  *-n32|*"-n32 ") libmagic=N32;;
5700  *-64|*"-64 ") libmagic=64-bit;;
5701  *) libmagic=never-match;;
5702  esac
5703  lt_cv_deplibs_check_method=pass_all
5704  ;;
5705
5706# This must be Linux ELF.
5707linux* | k*bsd*-gnu | kopensolaris*-gnu)
5708  lt_cv_deplibs_check_method=pass_all
5709  ;;
5710
5711netbsd* | netbsdelf*-gnu)
5712  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5713    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5714  else
5715    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5716  fi
5717  ;;
5718
5719newos6*)
5720  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5721  lt_cv_file_magic_cmd=/usr/bin/file
5722  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5723  ;;
5724
5725*nto* | *qnx*)
5726  lt_cv_deplibs_check_method=pass_all
5727  ;;
5728
5729openbsd*)
5730  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5731    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5732  else
5733    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5734  fi
5735  ;;
5736
5737osf3* | osf4* | osf5*)
5738  lt_cv_deplibs_check_method=pass_all
5739  ;;
5740
5741rdos*)
5742  lt_cv_deplibs_check_method=pass_all
5743  ;;
5744
5745solaris*)
5746  lt_cv_deplibs_check_method=pass_all
5747  ;;
5748
5749sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5750  lt_cv_deplibs_check_method=pass_all
5751  ;;
5752
5753sysv4 | sysv4.3*)
5754  case $host_vendor in
5755  motorola)
5756    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]'
5757    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5758    ;;
5759  ncr)
5760    lt_cv_deplibs_check_method=pass_all
5761    ;;
5762  sequent)
5763    lt_cv_file_magic_cmd='/bin/file'
5764    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5765    ;;
5766  sni)
5767    lt_cv_file_magic_cmd='/bin/file'
5768    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5769    lt_cv_file_magic_test_file=/lib/libc.so
5770    ;;
5771  siemens)
5772    lt_cv_deplibs_check_method=pass_all
5773    ;;
5774  pc)
5775    lt_cv_deplibs_check_method=pass_all
5776    ;;
5777  esac
5778  ;;
5779
5780tpf*)
5781  lt_cv_deplibs_check_method=pass_all
5782  ;;
5783esac
5784
5785fi
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5787$as_echo "$lt_cv_deplibs_check_method" >&6; }
5788
5789file_magic_glob=
5790want_nocaseglob=no
5791if test "$build" = "$host"; then
5792  case $host_os in
5793  mingw* | pw32*)
5794    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5795      want_nocaseglob=yes
5796    else
5797      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5798    fi
5799    ;;
5800  esac
5801fi
5802
5803file_magic_cmd=$lt_cv_file_magic_cmd
5804deplibs_check_method=$lt_cv_deplibs_check_method
5805test -z "$deplibs_check_method" && deplibs_check_method=unknown
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828if test -n "$ac_tool_prefix"; then
5829  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5830set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832$as_echo_n "checking for $ac_word... " >&6; }
5833if ${ac_cv_prog_DLLTOOL+:} false; then :
5834  $as_echo_n "(cached) " >&6
5835else
5836  if test -n "$DLLTOOL"; then
5837  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5838else
5839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842  IFS=$as_save_IFS
5843  test -z "$as_dir" && as_dir=.
5844    for ac_exec_ext in '' $ac_executable_extensions; do
5845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848    break 2
5849  fi
5850done
5851  done
5852IFS=$as_save_IFS
5853
5854fi
5855fi
5856DLLTOOL=$ac_cv_prog_DLLTOOL
5857if test -n "$DLLTOOL"; then
5858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5859$as_echo "$DLLTOOL" >&6; }
5860else
5861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862$as_echo "no" >&6; }
5863fi
5864
5865
5866fi
5867if test -z "$ac_cv_prog_DLLTOOL"; then
5868  ac_ct_DLLTOOL=$DLLTOOL
5869  # Extract the first word of "dlltool", so it can be a program name with args.
5870set dummy dlltool; ac_word=$2
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872$as_echo_n "checking for $ac_word... " >&6; }
5873if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5874  $as_echo_n "(cached) " >&6
5875else
5876  if test -n "$ac_ct_DLLTOOL"; then
5877  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5878else
5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882  IFS=$as_save_IFS
5883  test -z "$as_dir" && as_dir=.
5884    for ac_exec_ext in '' $ac_executable_extensions; do
5885  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888    break 2
5889  fi
5890done
5891  done
5892IFS=$as_save_IFS
5893
5894fi
5895fi
5896ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5897if test -n "$ac_ct_DLLTOOL"; then
5898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5899$as_echo "$ac_ct_DLLTOOL" >&6; }
5900else
5901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902$as_echo "no" >&6; }
5903fi
5904
5905  if test "x$ac_ct_DLLTOOL" = x; then
5906    DLLTOOL="false"
5907  else
5908    case $cross_compiling:$ac_tool_warned in
5909yes:)
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5912ac_tool_warned=yes ;;
5913esac
5914    DLLTOOL=$ac_ct_DLLTOOL
5915  fi
5916else
5917  DLLTOOL="$ac_cv_prog_DLLTOOL"
5918fi
5919
5920test -z "$DLLTOOL" && DLLTOOL=dlltool
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5932$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5933if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5934  $as_echo_n "(cached) " >&6
5935else
5936  lt_cv_sharedlib_from_linklib_cmd='unknown'
5937
5938case $host_os in
5939cygwin* | mingw* | pw32* | cegcc*)
5940  # two different shell functions defined in ltmain.sh
5941  # decide which to use based on capabilities of $DLLTOOL
5942  case `$DLLTOOL --help 2>&1` in
5943  *--identify-strict*)
5944    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5945    ;;
5946  *)
5947    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5948    ;;
5949  esac
5950  ;;
5951*)
5952  # fallback: assume linklib IS sharedlib
5953  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5954  ;;
5955esac
5956
5957fi
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5959$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5960sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5961test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5962
5963
5964
5965
5966
5967
5968
5969
5970if test -n "$ac_tool_prefix"; then
5971  for ac_prog in ar
5972  do
5973    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5974set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976$as_echo_n "checking for $ac_word... " >&6; }
5977if ${ac_cv_prog_AR+:} false; then :
5978  $as_echo_n "(cached) " >&6
5979else
5980  if test -n "$AR"; then
5981  ac_cv_prog_AR="$AR" # Let the user override the test.
5982else
5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984for as_dir in $PATH
5985do
5986  IFS=$as_save_IFS
5987  test -z "$as_dir" && as_dir=.
5988    for ac_exec_ext in '' $ac_executable_extensions; do
5989  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992    break 2
5993  fi
5994done
5995  done
5996IFS=$as_save_IFS
5997
5998fi
5999fi
6000AR=$ac_cv_prog_AR
6001if test -n "$AR"; then
6002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6003$as_echo "$AR" >&6; }
6004else
6005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006$as_echo "no" >&6; }
6007fi
6008
6009
6010    test -n "$AR" && break
6011  done
6012fi
6013if test -z "$AR"; then
6014  ac_ct_AR=$AR
6015  for ac_prog in ar
6016do
6017  # Extract the first word of "$ac_prog", so it can be a program name with args.
6018set dummy $ac_prog; ac_word=$2
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6020$as_echo_n "checking for $ac_word... " >&6; }
6021if ${ac_cv_prog_ac_ct_AR+:} false; then :
6022  $as_echo_n "(cached) " >&6
6023else
6024  if test -n "$ac_ct_AR"; then
6025  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6026else
6027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030  IFS=$as_save_IFS
6031  test -z "$as_dir" && as_dir=.
6032    for ac_exec_ext in '' $ac_executable_extensions; do
6033  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6034    ac_cv_prog_ac_ct_AR="$ac_prog"
6035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036    break 2
6037  fi
6038done
6039  done
6040IFS=$as_save_IFS
6041
6042fi
6043fi
6044ac_ct_AR=$ac_cv_prog_ac_ct_AR
6045if test -n "$ac_ct_AR"; then
6046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6047$as_echo "$ac_ct_AR" >&6; }
6048else
6049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050$as_echo "no" >&6; }
6051fi
6052
6053
6054  test -n "$ac_ct_AR" && break
6055done
6056
6057  if test "x$ac_ct_AR" = x; then
6058    AR="false"
6059  else
6060    case $cross_compiling:$ac_tool_warned in
6061yes:)
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6064ac_tool_warned=yes ;;
6065esac
6066    AR=$ac_ct_AR
6067  fi
6068fi
6069
6070: ${AR=ar}
6071: ${AR_FLAGS=cru}
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6084$as_echo_n "checking for archiver @FILE support... " >&6; }
6085if ${lt_cv_ar_at_file+:} false; then :
6086  $as_echo_n "(cached) " >&6
6087else
6088  lt_cv_ar_at_file=no
6089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h.  */
6091
6092int
6093main ()
6094{
6095
6096  ;
6097  return 0;
6098}
6099_ACEOF
6100if ac_fn_cxx_try_compile "$LINENO"; then :
6101  echo conftest.$ac_objext > conftest.lst
6102      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6103      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6104  (eval $lt_ar_try) 2>&5
6105  ac_status=$?
6106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6107  test $ac_status = 0; }
6108      if test "$ac_status" -eq 0; then
6109	# Ensure the archiver fails upon bogus file names.
6110	rm -f conftest.$ac_objext libconftest.a
6111	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6112  (eval $lt_ar_try) 2>&5
6113  ac_status=$?
6114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115  test $ac_status = 0; }
6116	if test "$ac_status" -ne 0; then
6117          lt_cv_ar_at_file=@
6118        fi
6119      fi
6120      rm -f conftest.* libconftest.a
6121
6122fi
6123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124
6125fi
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6127$as_echo "$lt_cv_ar_at_file" >&6; }
6128
6129if test "x$lt_cv_ar_at_file" = xno; then
6130  archiver_list_spec=
6131else
6132  archiver_list_spec=$lt_cv_ar_at_file
6133fi
6134
6135
6136
6137
6138
6139
6140
6141if test -n "$ac_tool_prefix"; then
6142  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6143set dummy ${ac_tool_prefix}strip; ac_word=$2
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145$as_echo_n "checking for $ac_word... " >&6; }
6146if ${ac_cv_prog_STRIP+:} false; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149  if test -n "$STRIP"; then
6150  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6151else
6152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155  IFS=$as_save_IFS
6156  test -z "$as_dir" && as_dir=.
6157    for ac_exec_ext in '' $ac_executable_extensions; do
6158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161    break 2
6162  fi
6163done
6164  done
6165IFS=$as_save_IFS
6166
6167fi
6168fi
6169STRIP=$ac_cv_prog_STRIP
6170if test -n "$STRIP"; then
6171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6172$as_echo "$STRIP" >&6; }
6173else
6174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175$as_echo "no" >&6; }
6176fi
6177
6178
6179fi
6180if test -z "$ac_cv_prog_STRIP"; then
6181  ac_ct_STRIP=$STRIP
6182  # Extract the first word of "strip", so it can be a program name with args.
6183set dummy strip; ac_word=$2
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185$as_echo_n "checking for $ac_word... " >&6; }
6186if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6187  $as_echo_n "(cached) " >&6
6188else
6189  if test -n "$ac_ct_STRIP"; then
6190  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6191else
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195  IFS=$as_save_IFS
6196  test -z "$as_dir" && as_dir=.
6197    for ac_exec_ext in '' $ac_executable_extensions; do
6198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199    ac_cv_prog_ac_ct_STRIP="strip"
6200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201    break 2
6202  fi
6203done
6204  done
6205IFS=$as_save_IFS
6206
6207fi
6208fi
6209ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6210if test -n "$ac_ct_STRIP"; then
6211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6212$as_echo "$ac_ct_STRIP" >&6; }
6213else
6214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215$as_echo "no" >&6; }
6216fi
6217
6218  if test "x$ac_ct_STRIP" = x; then
6219    STRIP=":"
6220  else
6221    case $cross_compiling:$ac_tool_warned in
6222yes:)
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225ac_tool_warned=yes ;;
6226esac
6227    STRIP=$ac_ct_STRIP
6228  fi
6229else
6230  STRIP="$ac_cv_prog_STRIP"
6231fi
6232
6233test -z "$STRIP" && STRIP=:
6234
6235
6236
6237
6238
6239
6240if test -n "$ac_tool_prefix"; then
6241  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6242set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244$as_echo_n "checking for $ac_word... " >&6; }
6245if ${ac_cv_prog_RANLIB+:} false; then :
6246  $as_echo_n "(cached) " >&6
6247else
6248  if test -n "$RANLIB"; then
6249  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6250else
6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252for as_dir in $PATH
6253do
6254  IFS=$as_save_IFS
6255  test -z "$as_dir" && as_dir=.
6256    for ac_exec_ext in '' $ac_executable_extensions; do
6257  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260    break 2
6261  fi
6262done
6263  done
6264IFS=$as_save_IFS
6265
6266fi
6267fi
6268RANLIB=$ac_cv_prog_RANLIB
6269if test -n "$RANLIB"; then
6270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6271$as_echo "$RANLIB" >&6; }
6272else
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274$as_echo "no" >&6; }
6275fi
6276
6277
6278fi
6279if test -z "$ac_cv_prog_RANLIB"; then
6280  ac_ct_RANLIB=$RANLIB
6281  # Extract the first word of "ranlib", so it can be a program name with args.
6282set dummy ranlib; ac_word=$2
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284$as_echo_n "checking for $ac_word... " >&6; }
6285if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6286  $as_echo_n "(cached) " >&6
6287else
6288  if test -n "$ac_ct_RANLIB"; then
6289  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6290else
6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
6293do
6294  IFS=$as_save_IFS
6295  test -z "$as_dir" && as_dir=.
6296    for ac_exec_ext in '' $ac_executable_extensions; do
6297  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6298    ac_cv_prog_ac_ct_RANLIB="ranlib"
6299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300    break 2
6301  fi
6302done
6303  done
6304IFS=$as_save_IFS
6305
6306fi
6307fi
6308ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6309if test -n "$ac_ct_RANLIB"; then
6310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6311$as_echo "$ac_ct_RANLIB" >&6; }
6312else
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314$as_echo "no" >&6; }
6315fi
6316
6317  if test "x$ac_ct_RANLIB" = x; then
6318    RANLIB=":"
6319  else
6320    case $cross_compiling:$ac_tool_warned in
6321yes:)
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6324ac_tool_warned=yes ;;
6325esac
6326    RANLIB=$ac_ct_RANLIB
6327  fi
6328else
6329  RANLIB="$ac_cv_prog_RANLIB"
6330fi
6331
6332test -z "$RANLIB" && RANLIB=:
6333
6334
6335
6336
6337
6338
6339# Determine commands to create old-style static archives.
6340old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6341old_postinstall_cmds='chmod 644 $oldlib'
6342old_postuninstall_cmds=
6343
6344if test -n "$RANLIB"; then
6345  case $host_os in
6346  openbsd*)
6347    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6348    ;;
6349  *)
6350    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6351    ;;
6352  esac
6353  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6354fi
6355
6356case $host_os in
6357  darwin*)
6358    lock_old_archive_extraction=yes ;;
6359  *)
6360    lock_old_archive_extraction=no ;;
6361esac
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401# If no C compiler was specified, use CC.
6402LTCC=${LTCC-"$CC"}
6403
6404# If no C compiler flags were specified, use CFLAGS.
6405LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6406
6407# Allow CC to be a program name with arguments.
6408compiler=$CC
6409
6410
6411# Check for command to grab the raw symbol name followed by C symbol from nm.
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6413$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6414if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6415  $as_echo_n "(cached) " >&6
6416else
6417
6418# These are sane defaults that work on at least a few old systems.
6419# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6420
6421# Character class describing NM global symbol codes.
6422symcode='[BCDEGRST]'
6423
6424# Regexp to match symbols that can be accessed directly from C.
6425sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6426
6427# Define system-specific variables.
6428case $host_os in
6429aix*)
6430  symcode='[BCDT]'
6431  ;;
6432cygwin* | mingw* | pw32* | cegcc*)
6433  symcode='[ABCDGISTW]'
6434  ;;
6435hpux*)
6436  if test "$host_cpu" = ia64; then
6437    symcode='[ABCDEGRST]'
6438  fi
6439  ;;
6440irix* | nonstopux*)
6441  symcode='[BCDEGRST]'
6442  ;;
6443osf*)
6444  symcode='[BCDEGQRST]'
6445  ;;
6446solaris*)
6447  symcode='[BDRT]'
6448  ;;
6449sco3.2v5*)
6450  symcode='[DT]'
6451  ;;
6452sysv4.2uw2*)
6453  symcode='[DT]'
6454  ;;
6455sysv5* | sco5v6* | unixware* | OpenUNIX*)
6456  symcode='[ABDT]'
6457  ;;
6458sysv4)
6459  symcode='[DFNSTU]'
6460  ;;
6461esac
6462
6463# If we're using GNU nm, then use its standard symbol codes.
6464case `$NM -V 2>&1` in
6465*GNU* | *'with BFD'*)
6466  symcode='[ABCDGIRSTW]' ;;
6467esac
6468
6469# Transform an extracted symbol line into a proper C declaration.
6470# Some systems (esp. on ia64) link data and code symbols differently,
6471# so use this general approach.
6472lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6473
6474# Transform an extracted symbol line into symbol name and symbol address
6475lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6476lt_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'"
6477
6478# Handle CRLF in mingw tool chain
6479opt_cr=
6480case $build_os in
6481mingw*)
6482  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6483  ;;
6484esac
6485
6486# Try without a prefix underscore, then with it.
6487for ac_symprfx in "" "_"; do
6488
6489  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6490  symxfrm="\\1 $ac_symprfx\\2 \\2"
6491
6492  # Write the raw and C identifiers.
6493  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6494    # Fake it for dumpbin and say T for any non-static function
6495    # and D for any global variable.
6496    # Also find C++ and __fastcall symbols from MSVC++,
6497    # which start with @ or ?.
6498    lt_cv_sys_global_symbol_pipe="$AWK '"\
6499"     {last_section=section; section=\$ 3};"\
6500"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6501"     \$ 0!~/External *\|/{next};"\
6502"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6503"     {if(hide[section]) next};"\
6504"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6505"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6506"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6507"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6508"     ' prfx=^$ac_symprfx"
6509  else
6510    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6511  fi
6512  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6513
6514  # Check to see that the pipe works correctly.
6515  pipe_works=no
6516
6517  rm -f conftest*
6518  cat > conftest.$ac_ext <<_LT_EOF
6519#ifdef __cplusplus
6520extern "C" {
6521#endif
6522char nm_test_var;
6523void nm_test_func(void);
6524void nm_test_func(void){}
6525#ifdef __cplusplus
6526}
6527#endif
6528int main(){nm_test_var='a';nm_test_func();return(0);}
6529_LT_EOF
6530
6531  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6532  (eval $ac_compile) 2>&5
6533  ac_status=$?
6534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535  test $ac_status = 0; }; then
6536    # Now try to grab the symbols.
6537    nlist=conftest.nm
6538    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6539  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6540  ac_status=$?
6541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6542  test $ac_status = 0; } && test -s "$nlist"; then
6543      # Try sorting and uniquifying the output.
6544      if sort "$nlist" | uniq > "$nlist"T; then
6545	mv -f "$nlist"T "$nlist"
6546      else
6547	rm -f "$nlist"T
6548      fi
6549
6550      # Make sure that we snagged all the symbols we need.
6551      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6552	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6553	  cat <<_LT_EOF > conftest.$ac_ext
6554/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6555#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6556/* DATA imports from DLLs on WIN32 con't be const, because runtime
6557   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6558# define LT_DLSYM_CONST
6559#elif defined(__osf__)
6560/* This system does not cope well with relocations in const data.  */
6561# define LT_DLSYM_CONST
6562#else
6563# define LT_DLSYM_CONST const
6564#endif
6565
6566#ifdef __cplusplus
6567extern "C" {
6568#endif
6569
6570_LT_EOF
6571	  # Now generate the symbol file.
6572	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6573
6574	  cat <<_LT_EOF >> conftest.$ac_ext
6575
6576/* The mapping between symbol names and symbols.  */
6577LT_DLSYM_CONST struct {
6578  const char *name;
6579  void       *address;
6580}
6581lt__PROGRAM__LTX_preloaded_symbols[] =
6582{
6583  { "@PROGRAM@", (void *) 0 },
6584_LT_EOF
6585	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6586	  cat <<\_LT_EOF >> conftest.$ac_ext
6587  {0, (void *) 0}
6588};
6589
6590/* This works around a problem in FreeBSD linker */
6591#ifdef FREEBSD_WORKAROUND
6592static const void *lt_preloaded_setup() {
6593  return lt__PROGRAM__LTX_preloaded_symbols;
6594}
6595#endif
6596
6597#ifdef __cplusplus
6598}
6599#endif
6600_LT_EOF
6601	  # Now try linking the two files.
6602	  mv conftest.$ac_objext conftstm.$ac_objext
6603	  lt_globsym_save_LIBS=$LIBS
6604	  lt_globsym_save_CFLAGS=$CFLAGS
6605	  LIBS="conftstm.$ac_objext"
6606	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6607	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6608  (eval $ac_link) 2>&5
6609  ac_status=$?
6610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6612	    pipe_works=yes
6613	  fi
6614	  LIBS=$lt_globsym_save_LIBS
6615	  CFLAGS=$lt_globsym_save_CFLAGS
6616	else
6617	  echo "cannot find nm_test_func in $nlist" >&5
6618	fi
6619      else
6620	echo "cannot find nm_test_var in $nlist" >&5
6621      fi
6622    else
6623      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6624    fi
6625  else
6626    echo "$progname: failed program was:" >&5
6627    cat conftest.$ac_ext >&5
6628  fi
6629  rm -rf conftest* conftst*
6630
6631  # Do not use the global_symbol_pipe unless it works.
6632  if test "$pipe_works" = yes; then
6633    break
6634  else
6635    lt_cv_sys_global_symbol_pipe=
6636  fi
6637done
6638
6639fi
6640
6641if test -z "$lt_cv_sys_global_symbol_pipe"; then
6642  lt_cv_sys_global_symbol_to_cdecl=
6643fi
6644if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6646$as_echo "failed" >&6; }
6647else
6648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6649$as_echo "ok" >&6; }
6650fi
6651
6652# Response file support.
6653if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6654  nm_file_list_spec='@'
6655elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6656  nm_file_list_spec='@'
6657fi
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6686$as_echo_n "checking for sysroot... " >&6; }
6687
6688# Check whether --with-sysroot was given.
6689if test "${with_sysroot+set}" = set; then :
6690  withval=$with_sysroot;
6691else
6692  with_sysroot=no
6693fi
6694
6695
6696lt_sysroot=
6697case ${with_sysroot} in #(
6698 yes)
6699   if test "$GCC" = yes; then
6700     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6701   fi
6702   ;; #(
6703 /*)
6704   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6705   ;; #(
6706 no|'')
6707   ;; #(
6708 *)
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6710$as_echo "${with_sysroot}" >&6; }
6711   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6712   ;;
6713esac
6714
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6716$as_echo "${lt_sysroot:-no}" >&6; }
6717
6718
6719
6720
6721
6722
6723# Check whether --enable-libtool-lock was given.
6724if test "${enable_libtool_lock+set}" = set; then :
6725  enableval=$enable_libtool_lock;
6726fi
6727
6728test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6729
6730# Some flags need to be propagated to the compiler or linker for good
6731# libtool support.
6732case $host in
6733ia64-*-hpux*)
6734  # Find out which ABI we are using.
6735  echo 'int i;' > conftest.$ac_ext
6736  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6737  (eval $ac_compile) 2>&5
6738  ac_status=$?
6739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740  test $ac_status = 0; }; then
6741    case `/usr/bin/file conftest.$ac_objext` in
6742      *ELF-32*)
6743	HPUX_IA64_MODE="32"
6744	;;
6745      *ELF-64*)
6746	HPUX_IA64_MODE="64"
6747	;;
6748    esac
6749  fi
6750  rm -rf conftest*
6751  ;;
6752*-*-irix6*)
6753  # Find out which ABI we are using.
6754  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6755  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6756  (eval $ac_compile) 2>&5
6757  ac_status=$?
6758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759  test $ac_status = 0; }; then
6760    if test "$lt_cv_prog_gnu_ld" = yes; then
6761      case `/usr/bin/file conftest.$ac_objext` in
6762	*32-bit*)
6763	  LD="${LD-ld} -melf32bsmip"
6764	  ;;
6765	*N32*)
6766	  LD="${LD-ld} -melf32bmipn32"
6767	  ;;
6768	*64-bit*)
6769	  LD="${LD-ld} -melf64bmip"
6770	;;
6771      esac
6772    else
6773      case `/usr/bin/file conftest.$ac_objext` in
6774	*32-bit*)
6775	  LD="${LD-ld} -32"
6776	  ;;
6777	*N32*)
6778	  LD="${LD-ld} -n32"
6779	  ;;
6780	*64-bit*)
6781	  LD="${LD-ld} -64"
6782	  ;;
6783      esac
6784    fi
6785  fi
6786  rm -rf conftest*
6787  ;;
6788
6789x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6790s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6791  # Find out which ABI we are using.
6792  echo 'int i;' > conftest.$ac_ext
6793  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6794  (eval $ac_compile) 2>&5
6795  ac_status=$?
6796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797  test $ac_status = 0; }; then
6798    case `/usr/bin/file conftest.o` in
6799      *32-bit*)
6800	case $host in
6801	  x86_64-*kfreebsd*-gnu)
6802	    LD="${LD-ld} -m elf_i386_fbsd"
6803	    ;;
6804	  x86_64-*linux*)
6805	    LD="${LD-ld} -m elf_i386"
6806	    ;;
6807	  ppc64-*linux*|powerpc64-*linux*)
6808	    LD="${LD-ld} -m elf32ppclinux"
6809	    ;;
6810	  s390x-*linux*)
6811	    LD="${LD-ld} -m elf_s390"
6812	    ;;
6813	  sparc64-*linux*)
6814	    LD="${LD-ld} -m elf32_sparc"
6815	    ;;
6816	esac
6817	;;
6818      *64-bit*)
6819	case $host in
6820	  x86_64-*kfreebsd*-gnu)
6821	    LD="${LD-ld} -m elf_x86_64_fbsd"
6822	    ;;
6823	  x86_64-*linux*)
6824	    LD="${LD-ld} -m elf_x86_64"
6825	    ;;
6826	  ppc*-*linux*|powerpc*-*linux*)
6827	    LD="${LD-ld} -m elf64ppc"
6828	    ;;
6829	  s390*-*linux*|s390*-*tpf*)
6830	    LD="${LD-ld} -m elf64_s390"
6831	    ;;
6832	  sparc*-*linux*)
6833	    LD="${LD-ld} -m elf64_sparc"
6834	    ;;
6835	esac
6836	;;
6837    esac
6838  fi
6839  rm -rf conftest*
6840  ;;
6841
6842*-*-sco3.2v5*)
6843  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6844  SAVE_CFLAGS="$CFLAGS"
6845  CFLAGS="$CFLAGS -belf"
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6847$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6848if ${lt_cv_cc_needs_belf+:} false; then :
6849  $as_echo_n "(cached) " >&6
6850else
6851  ac_ext=c
6852ac_cpp='$CPP $CPPFLAGS'
6853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6855ac_compiler_gnu=$ac_cv_c_compiler_gnu
6856
6857     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858/* end confdefs.h.  */
6859
6860int
6861main ()
6862{
6863
6864  ;
6865  return 0;
6866}
6867_ACEOF
6868if ac_fn_c_try_link "$LINENO"; then :
6869  lt_cv_cc_needs_belf=yes
6870else
6871  lt_cv_cc_needs_belf=no
6872fi
6873rm -f core conftest.err conftest.$ac_objext \
6874    conftest$ac_exeext conftest.$ac_ext
6875     ac_ext=c
6876ac_cpp='$CPP $CPPFLAGS'
6877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879ac_compiler_gnu=$ac_cv_c_compiler_gnu
6880
6881fi
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6883$as_echo "$lt_cv_cc_needs_belf" >&6; }
6884  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6885    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6886    CFLAGS="$SAVE_CFLAGS"
6887  fi
6888  ;;
6889sparc*-*solaris*)
6890  # Find out which ABI we are using.
6891  echo 'int i;' > conftest.$ac_ext
6892  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6893  (eval $ac_compile) 2>&5
6894  ac_status=$?
6895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6896  test $ac_status = 0; }; then
6897    case `/usr/bin/file conftest.o` in
6898    *64-bit*)
6899      case $lt_cv_prog_gnu_ld in
6900      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6901      *)
6902	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6903	  LD="${LD-ld} -64"
6904	fi
6905	;;
6906      esac
6907      ;;
6908    esac
6909  fi
6910  rm -rf conftest*
6911  ;;
6912esac
6913
6914need_locks="$enable_libtool_lock"
6915
6916if test -n "$ac_tool_prefix"; then
6917  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6918set dummy ${ac_tool_prefix}mt; ac_word=$2
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920$as_echo_n "checking for $ac_word... " >&6; }
6921if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6922  $as_echo_n "(cached) " >&6
6923else
6924  if test -n "$MANIFEST_TOOL"; then
6925  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6926else
6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928for as_dir in $PATH
6929do
6930  IFS=$as_save_IFS
6931  test -z "$as_dir" && as_dir=.
6932    for ac_exec_ext in '' $ac_executable_extensions; do
6933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6934    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936    break 2
6937  fi
6938done
6939  done
6940IFS=$as_save_IFS
6941
6942fi
6943fi
6944MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6945if test -n "$MANIFEST_TOOL"; then
6946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6947$as_echo "$MANIFEST_TOOL" >&6; }
6948else
6949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950$as_echo "no" >&6; }
6951fi
6952
6953
6954fi
6955if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6956  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6957  # Extract the first word of "mt", so it can be a program name with args.
6958set dummy mt; ac_word=$2
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960$as_echo_n "checking for $ac_word... " >&6; }
6961if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6962  $as_echo_n "(cached) " >&6
6963else
6964  if test -n "$ac_ct_MANIFEST_TOOL"; then
6965  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6966else
6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968for as_dir in $PATH
6969do
6970  IFS=$as_save_IFS
6971  test -z "$as_dir" && as_dir=.
6972    for ac_exec_ext in '' $ac_executable_extensions; do
6973  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6974    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976    break 2
6977  fi
6978done
6979  done
6980IFS=$as_save_IFS
6981
6982fi
6983fi
6984ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6985if test -n "$ac_ct_MANIFEST_TOOL"; then
6986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6987$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6988else
6989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990$as_echo "no" >&6; }
6991fi
6992
6993  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6994    MANIFEST_TOOL=":"
6995  else
6996    case $cross_compiling:$ac_tool_warned in
6997yes:)
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7000ac_tool_warned=yes ;;
7001esac
7002    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7003  fi
7004else
7005  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7006fi
7007
7008test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7010$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7011if ${lt_cv_path_mainfest_tool+:} false; then :
7012  $as_echo_n "(cached) " >&6
7013else
7014  lt_cv_path_mainfest_tool=no
7015  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7016  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7017  cat conftest.err >&5
7018  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7019    lt_cv_path_mainfest_tool=yes
7020  fi
7021  rm -f conftest*
7022fi
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7024$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7025if test "x$lt_cv_path_mainfest_tool" != xyes; then
7026  MANIFEST_TOOL=:
7027fi
7028
7029
7030
7031
7032
7033
7034  case $host_os in
7035    rhapsody* | darwin*)
7036    if test -n "$ac_tool_prefix"; then
7037  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7038set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040$as_echo_n "checking for $ac_word... " >&6; }
7041if ${ac_cv_prog_DSYMUTIL+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  if test -n "$DSYMUTIL"; then
7045  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7046else
7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050  IFS=$as_save_IFS
7051  test -z "$as_dir" && as_dir=.
7052    for ac_exec_ext in '' $ac_executable_extensions; do
7053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056    break 2
7057  fi
7058done
7059  done
7060IFS=$as_save_IFS
7061
7062fi
7063fi
7064DSYMUTIL=$ac_cv_prog_DSYMUTIL
7065if test -n "$DSYMUTIL"; then
7066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7067$as_echo "$DSYMUTIL" >&6; }
7068else
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070$as_echo "no" >&6; }
7071fi
7072
7073
7074fi
7075if test -z "$ac_cv_prog_DSYMUTIL"; then
7076  ac_ct_DSYMUTIL=$DSYMUTIL
7077  # Extract the first word of "dsymutil", so it can be a program name with args.
7078set dummy dsymutil; ac_word=$2
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080$as_echo_n "checking for $ac_word... " >&6; }
7081if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7082  $as_echo_n "(cached) " >&6
7083else
7084  if test -n "$ac_ct_DSYMUTIL"; then
7085  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7086else
7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090  IFS=$as_save_IFS
7091  test -z "$as_dir" && as_dir=.
7092    for ac_exec_ext in '' $ac_executable_extensions; do
7093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096    break 2
7097  fi
7098done
7099  done
7100IFS=$as_save_IFS
7101
7102fi
7103fi
7104ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7105if test -n "$ac_ct_DSYMUTIL"; then
7106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7107$as_echo "$ac_ct_DSYMUTIL" >&6; }
7108else
7109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110$as_echo "no" >&6; }
7111fi
7112
7113  if test "x$ac_ct_DSYMUTIL" = x; then
7114    DSYMUTIL=":"
7115  else
7116    case $cross_compiling:$ac_tool_warned in
7117yes:)
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120ac_tool_warned=yes ;;
7121esac
7122    DSYMUTIL=$ac_ct_DSYMUTIL
7123  fi
7124else
7125  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7126fi
7127
7128    if test -n "$ac_tool_prefix"; then
7129  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7130set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132$as_echo_n "checking for $ac_word... " >&6; }
7133if ${ac_cv_prog_NMEDIT+:} false; then :
7134  $as_echo_n "(cached) " >&6
7135else
7136  if test -n "$NMEDIT"; then
7137  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7138else
7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140for as_dir in $PATH
7141do
7142  IFS=$as_save_IFS
7143  test -z "$as_dir" && as_dir=.
7144    for ac_exec_ext in '' $ac_executable_extensions; do
7145  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7146    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148    break 2
7149  fi
7150done
7151  done
7152IFS=$as_save_IFS
7153
7154fi
7155fi
7156NMEDIT=$ac_cv_prog_NMEDIT
7157if test -n "$NMEDIT"; then
7158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7159$as_echo "$NMEDIT" >&6; }
7160else
7161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162$as_echo "no" >&6; }
7163fi
7164
7165
7166fi
7167if test -z "$ac_cv_prog_NMEDIT"; then
7168  ac_ct_NMEDIT=$NMEDIT
7169  # Extract the first word of "nmedit", so it can be a program name with args.
7170set dummy nmedit; ac_word=$2
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172$as_echo_n "checking for $ac_word... " >&6; }
7173if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7174  $as_echo_n "(cached) " >&6
7175else
7176  if test -n "$ac_ct_NMEDIT"; then
7177  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7178else
7179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182  IFS=$as_save_IFS
7183  test -z "$as_dir" && as_dir=.
7184    for ac_exec_ext in '' $ac_executable_extensions; do
7185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188    break 2
7189  fi
7190done
7191  done
7192IFS=$as_save_IFS
7193
7194fi
7195fi
7196ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7197if test -n "$ac_ct_NMEDIT"; then
7198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7199$as_echo "$ac_ct_NMEDIT" >&6; }
7200else
7201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202$as_echo "no" >&6; }
7203fi
7204
7205  if test "x$ac_ct_NMEDIT" = x; then
7206    NMEDIT=":"
7207  else
7208    case $cross_compiling:$ac_tool_warned in
7209yes:)
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212ac_tool_warned=yes ;;
7213esac
7214    NMEDIT=$ac_ct_NMEDIT
7215  fi
7216else
7217  NMEDIT="$ac_cv_prog_NMEDIT"
7218fi
7219
7220    if test -n "$ac_tool_prefix"; then
7221  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7222set dummy ${ac_tool_prefix}lipo; ac_word=$2
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224$as_echo_n "checking for $ac_word... " >&6; }
7225if ${ac_cv_prog_LIPO+:} false; then :
7226  $as_echo_n "(cached) " >&6
7227else
7228  if test -n "$LIPO"; then
7229  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7230else
7231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234  IFS=$as_save_IFS
7235  test -z "$as_dir" && as_dir=.
7236    for ac_exec_ext in '' $ac_executable_extensions; do
7237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7238    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240    break 2
7241  fi
7242done
7243  done
7244IFS=$as_save_IFS
7245
7246fi
7247fi
7248LIPO=$ac_cv_prog_LIPO
7249if test -n "$LIPO"; then
7250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7251$as_echo "$LIPO" >&6; }
7252else
7253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254$as_echo "no" >&6; }
7255fi
7256
7257
7258fi
7259if test -z "$ac_cv_prog_LIPO"; then
7260  ac_ct_LIPO=$LIPO
7261  # Extract the first word of "lipo", so it can be a program name with args.
7262set dummy lipo; ac_word=$2
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264$as_echo_n "checking for $ac_word... " >&6; }
7265if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7266  $as_echo_n "(cached) " >&6
7267else
7268  if test -n "$ac_ct_LIPO"; then
7269  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7270else
7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274  IFS=$as_save_IFS
7275  test -z "$as_dir" && as_dir=.
7276    for ac_exec_ext in '' $ac_executable_extensions; do
7277  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278    ac_cv_prog_ac_ct_LIPO="lipo"
7279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280    break 2
7281  fi
7282done
7283  done
7284IFS=$as_save_IFS
7285
7286fi
7287fi
7288ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7289if test -n "$ac_ct_LIPO"; then
7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7291$as_echo "$ac_ct_LIPO" >&6; }
7292else
7293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294$as_echo "no" >&6; }
7295fi
7296
7297  if test "x$ac_ct_LIPO" = x; then
7298    LIPO=":"
7299  else
7300    case $cross_compiling:$ac_tool_warned in
7301yes:)
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7304ac_tool_warned=yes ;;
7305esac
7306    LIPO=$ac_ct_LIPO
7307  fi
7308else
7309  LIPO="$ac_cv_prog_LIPO"
7310fi
7311
7312    if test -n "$ac_tool_prefix"; then
7313  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7314set dummy ${ac_tool_prefix}otool; ac_word=$2
7315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316$as_echo_n "checking for $ac_word... " >&6; }
7317if ${ac_cv_prog_OTOOL+:} false; then :
7318  $as_echo_n "(cached) " >&6
7319else
7320  if test -n "$OTOOL"; then
7321  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7322else
7323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326  IFS=$as_save_IFS
7327  test -z "$as_dir" && as_dir=.
7328    for ac_exec_ext in '' $ac_executable_extensions; do
7329  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7330    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332    break 2
7333  fi
7334done
7335  done
7336IFS=$as_save_IFS
7337
7338fi
7339fi
7340OTOOL=$ac_cv_prog_OTOOL
7341if test -n "$OTOOL"; then
7342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7343$as_echo "$OTOOL" >&6; }
7344else
7345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346$as_echo "no" >&6; }
7347fi
7348
7349
7350fi
7351if test -z "$ac_cv_prog_OTOOL"; then
7352  ac_ct_OTOOL=$OTOOL
7353  # Extract the first word of "otool", so it can be a program name with args.
7354set dummy otool; ac_word=$2
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356$as_echo_n "checking for $ac_word... " >&6; }
7357if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7358  $as_echo_n "(cached) " >&6
7359else
7360  if test -n "$ac_ct_OTOOL"; then
7361  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7362else
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366  IFS=$as_save_IFS
7367  test -z "$as_dir" && as_dir=.
7368    for ac_exec_ext in '' $ac_executable_extensions; do
7369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370    ac_cv_prog_ac_ct_OTOOL="otool"
7371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372    break 2
7373  fi
7374done
7375  done
7376IFS=$as_save_IFS
7377
7378fi
7379fi
7380ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7381if test -n "$ac_ct_OTOOL"; then
7382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7383$as_echo "$ac_ct_OTOOL" >&6; }
7384else
7385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386$as_echo "no" >&6; }
7387fi
7388
7389  if test "x$ac_ct_OTOOL" = x; then
7390    OTOOL=":"
7391  else
7392    case $cross_compiling:$ac_tool_warned in
7393yes:)
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7396ac_tool_warned=yes ;;
7397esac
7398    OTOOL=$ac_ct_OTOOL
7399  fi
7400else
7401  OTOOL="$ac_cv_prog_OTOOL"
7402fi
7403
7404    if test -n "$ac_tool_prefix"; then
7405  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7406set dummy ${ac_tool_prefix}otool64; ac_word=$2
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408$as_echo_n "checking for $ac_word... " >&6; }
7409if ${ac_cv_prog_OTOOL64+:} false; then :
7410  $as_echo_n "(cached) " >&6
7411else
7412  if test -n "$OTOOL64"; then
7413  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7414else
7415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416for as_dir in $PATH
7417do
7418  IFS=$as_save_IFS
7419  test -z "$as_dir" && as_dir=.
7420    for ac_exec_ext in '' $ac_executable_extensions; do
7421  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7422    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424    break 2
7425  fi
7426done
7427  done
7428IFS=$as_save_IFS
7429
7430fi
7431fi
7432OTOOL64=$ac_cv_prog_OTOOL64
7433if test -n "$OTOOL64"; then
7434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7435$as_echo "$OTOOL64" >&6; }
7436else
7437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438$as_echo "no" >&6; }
7439fi
7440
7441
7442fi
7443if test -z "$ac_cv_prog_OTOOL64"; then
7444  ac_ct_OTOOL64=$OTOOL64
7445  # Extract the first word of "otool64", so it can be a program name with args.
7446set dummy otool64; ac_word=$2
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448$as_echo_n "checking for $ac_word... " >&6; }
7449if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7450  $as_echo_n "(cached) " >&6
7451else
7452  if test -n "$ac_ct_OTOOL64"; then
7453  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7454else
7455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458  IFS=$as_save_IFS
7459  test -z "$as_dir" && as_dir=.
7460    for ac_exec_ext in '' $ac_executable_extensions; do
7461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462    ac_cv_prog_ac_ct_OTOOL64="otool64"
7463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464    break 2
7465  fi
7466done
7467  done
7468IFS=$as_save_IFS
7469
7470fi
7471fi
7472ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7473if test -n "$ac_ct_OTOOL64"; then
7474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7475$as_echo "$ac_ct_OTOOL64" >&6; }
7476else
7477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478$as_echo "no" >&6; }
7479fi
7480
7481  if test "x$ac_ct_OTOOL64" = x; then
7482    OTOOL64=":"
7483  else
7484    case $cross_compiling:$ac_tool_warned in
7485yes:)
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7488ac_tool_warned=yes ;;
7489esac
7490    OTOOL64=$ac_ct_OTOOL64
7491  fi
7492else
7493  OTOOL64="$ac_cv_prog_OTOOL64"
7494fi
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7523$as_echo_n "checking for -single_module linker flag... " >&6; }
7524if ${lt_cv_apple_cc_single_mod+:} false; then :
7525  $as_echo_n "(cached) " >&6
7526else
7527  lt_cv_apple_cc_single_mod=no
7528      if test -z "${LT_MULTI_MODULE}"; then
7529	# By default we will add the -single_module flag. You can override
7530	# by either setting the environment variable LT_MULTI_MODULE
7531	# non-empty at configure time, or by adding -multi_module to the
7532	# link flags.
7533	rm -rf libconftest.dylib*
7534	echo "int foo(void){return 1;}" > conftest.c
7535	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7536-dynamiclib -Wl,-single_module conftest.c" >&5
7537	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7538	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7539        _lt_result=$?
7540	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7541	  lt_cv_apple_cc_single_mod=yes
7542	else
7543	  cat conftest.err >&5
7544	fi
7545	rm -rf libconftest.dylib*
7546	rm -f conftest.*
7547      fi
7548fi
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7550$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7551    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7552$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7553if ${lt_cv_ld_exported_symbols_list+:} false; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  lt_cv_ld_exported_symbols_list=no
7557      save_LDFLAGS=$LDFLAGS
7558      echo "_main" > conftest.sym
7559      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7560      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561/* end confdefs.h.  */
7562
7563int
7564main ()
7565{
7566
7567  ;
7568  return 0;
7569}
7570_ACEOF
7571if ac_fn_c_try_link "$LINENO"; then :
7572  lt_cv_ld_exported_symbols_list=yes
7573else
7574  lt_cv_ld_exported_symbols_list=no
7575fi
7576rm -f core conftest.err conftest.$ac_objext \
7577    conftest$ac_exeext conftest.$ac_ext
7578	LDFLAGS="$save_LDFLAGS"
7579
7580fi
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7582$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7583    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7584$as_echo_n "checking for -force_load linker flag... " >&6; }
7585if ${lt_cv_ld_force_load+:} false; then :
7586  $as_echo_n "(cached) " >&6
7587else
7588  lt_cv_ld_force_load=no
7589      cat > conftest.c << _LT_EOF
7590int forced_loaded() { return 2;}
7591_LT_EOF
7592      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7593      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7594      echo "$AR cru libconftest.a conftest.o" >&5
7595      $AR cru libconftest.a conftest.o 2>&5
7596      echo "$RANLIB libconftest.a" >&5
7597      $RANLIB libconftest.a 2>&5
7598      cat > conftest.c << _LT_EOF
7599int main() { return 0;}
7600_LT_EOF
7601      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7602      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7603      _lt_result=$?
7604      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7605	lt_cv_ld_force_load=yes
7606      else
7607	cat conftest.err >&5
7608      fi
7609        rm -f conftest.err libconftest.a conftest conftest.c
7610        rm -rf conftest.dSYM
7611
7612fi
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7614$as_echo "$lt_cv_ld_force_load" >&6; }
7615    case $host_os in
7616    rhapsody* | darwin1.[012])
7617      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7618    darwin1.*)
7619      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7620    darwin*) # darwin 5.x on
7621      # if running on 10.5 or later, the deployment target defaults
7622      # to the OS version, if on x86, and 10.4, the deployment
7623      # target defaults to 10.4. Don't you love it?
7624      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7625	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7626	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7627	10.[012]*)
7628	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7629	10.*)
7630	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7631      esac
7632    ;;
7633  esac
7634    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7635      _lt_dar_single_mod='$single_module'
7636    fi
7637    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7638      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7639    else
7640      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7641    fi
7642    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7643      _lt_dsymutil='~$DSYMUTIL $lib || :'
7644    else
7645      _lt_dsymutil=
7646    fi
7647    ;;
7648  esac
7649
7650ac_ext=c
7651ac_cpp='$CPP $CPPFLAGS'
7652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654ac_compiler_gnu=$ac_cv_c_compiler_gnu
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7656$as_echo_n "checking how to run the C preprocessor... " >&6; }
7657# On Suns, sometimes $CPP names a directory.
7658if test -n "$CPP" && test -d "$CPP"; then
7659  CPP=
7660fi
7661if test -z "$CPP"; then
7662  if ${ac_cv_prog_CPP+:} false; then :
7663  $as_echo_n "(cached) " >&6
7664else
7665      # Double quotes because CPP needs to be expanded
7666    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7667    do
7668      ac_preproc_ok=false
7669for ac_c_preproc_warn_flag in '' yes
7670do
7671  # Use a header file that comes with gcc, so configuring glibc
7672  # with a fresh cross-compiler works.
7673  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7674  # <limits.h> exists even on freestanding compilers.
7675  # On the NeXT, cc -E runs the code through the compiler's parser,
7676  # not just through cpp. "Syntax error" is here to catch this case.
7677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678/* end confdefs.h.  */
7679#ifdef __STDC__
7680# include <limits.h>
7681#else
7682# include <assert.h>
7683#endif
7684		     Syntax error
7685_ACEOF
7686if ac_fn_c_try_cpp "$LINENO"; then :
7687
7688else
7689  # Broken: fails on valid input.
7690continue
7691fi
7692rm -f conftest.err conftest.i conftest.$ac_ext
7693
7694  # OK, works on sane cases.  Now check whether nonexistent headers
7695  # can be detected and how.
7696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697/* end confdefs.h.  */
7698#include <ac_nonexistent.h>
7699_ACEOF
7700if ac_fn_c_try_cpp "$LINENO"; then :
7701  # Broken: success on invalid input.
7702continue
7703else
7704  # Passes both tests.
7705ac_preproc_ok=:
7706break
7707fi
7708rm -f conftest.err conftest.i conftest.$ac_ext
7709
7710done
7711# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7712rm -f conftest.i conftest.err conftest.$ac_ext
7713if $ac_preproc_ok; then :
7714  break
7715fi
7716
7717    done
7718    ac_cv_prog_CPP=$CPP
7719
7720fi
7721  CPP=$ac_cv_prog_CPP
7722else
7723  ac_cv_prog_CPP=$CPP
7724fi
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7726$as_echo "$CPP" >&6; }
7727ac_preproc_ok=false
7728for ac_c_preproc_warn_flag in '' yes
7729do
7730  # Use a header file that comes with gcc, so configuring glibc
7731  # with a fresh cross-compiler works.
7732  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7733  # <limits.h> exists even on freestanding compilers.
7734  # On the NeXT, cc -E runs the code through the compiler's parser,
7735  # not just through cpp. "Syntax error" is here to catch this case.
7736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737/* end confdefs.h.  */
7738#ifdef __STDC__
7739# include <limits.h>
7740#else
7741# include <assert.h>
7742#endif
7743		     Syntax error
7744_ACEOF
7745if ac_fn_c_try_cpp "$LINENO"; then :
7746
7747else
7748  # Broken: fails on valid input.
7749continue
7750fi
7751rm -f conftest.err conftest.i conftest.$ac_ext
7752
7753  # OK, works on sane cases.  Now check whether nonexistent headers
7754  # can be detected and how.
7755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h.  */
7757#include <ac_nonexistent.h>
7758_ACEOF
7759if ac_fn_c_try_cpp "$LINENO"; then :
7760  # Broken: success on invalid input.
7761continue
7762else
7763  # Passes both tests.
7764ac_preproc_ok=:
7765break
7766fi
7767rm -f conftest.err conftest.i conftest.$ac_ext
7768
7769done
7770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7771rm -f conftest.i conftest.err conftest.$ac_ext
7772if $ac_preproc_ok; then :
7773
7774else
7775  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7777as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7778See \`config.log' for more details" "$LINENO" 5; }
7779fi
7780
7781ac_ext=c
7782ac_cpp='$CPP $CPPFLAGS'
7783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786
7787
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7789$as_echo_n "checking for ANSI C header files... " >&6; }
7790if ${ac_cv_header_stdc+:} false; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794/* end confdefs.h.  */
7795#include <stdlib.h>
7796#include <stdarg.h>
7797#include <string.h>
7798#include <float.h>
7799
7800int
7801main ()
7802{
7803
7804  ;
7805  return 0;
7806}
7807_ACEOF
7808if ac_fn_c_try_compile "$LINENO"; then :
7809  ac_cv_header_stdc=yes
7810else
7811  ac_cv_header_stdc=no
7812fi
7813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814
7815if test $ac_cv_header_stdc = yes; then
7816  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818/* end confdefs.h.  */
7819#include <string.h>
7820
7821_ACEOF
7822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7823  $EGREP "memchr" >/dev/null 2>&1; then :
7824
7825else
7826  ac_cv_header_stdc=no
7827fi
7828rm -f conftest*
7829
7830fi
7831
7832if test $ac_cv_header_stdc = yes; then
7833  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835/* end confdefs.h.  */
7836#include <stdlib.h>
7837
7838_ACEOF
7839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7840  $EGREP "free" >/dev/null 2>&1; then :
7841
7842else
7843  ac_cv_header_stdc=no
7844fi
7845rm -f conftest*
7846
7847fi
7848
7849if test $ac_cv_header_stdc = yes; then
7850  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7851  if test "$cross_compiling" = yes; then :
7852  :
7853else
7854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855/* end confdefs.h.  */
7856#include <ctype.h>
7857#include <stdlib.h>
7858#if ((' ' & 0x0FF) == 0x020)
7859# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7860# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7861#else
7862# define ISLOWER(c) \
7863		   (('a' <= (c) && (c) <= 'i') \
7864		     || ('j' <= (c) && (c) <= 'r') \
7865		     || ('s' <= (c) && (c) <= 'z'))
7866# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7867#endif
7868
7869#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7870int
7871main ()
7872{
7873  int i;
7874  for (i = 0; i < 256; i++)
7875    if (XOR (islower (i), ISLOWER (i))
7876	|| toupper (i) != TOUPPER (i))
7877      return 2;
7878  return 0;
7879}
7880_ACEOF
7881if ac_fn_c_try_run "$LINENO"; then :
7882
7883else
7884  ac_cv_header_stdc=no
7885fi
7886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7887  conftest.$ac_objext conftest.beam conftest.$ac_ext
7888fi
7889
7890fi
7891fi
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7893$as_echo "$ac_cv_header_stdc" >&6; }
7894if test $ac_cv_header_stdc = yes; then
7895
7896$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7897
7898fi
7899
7900# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7901for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7902		  inttypes.h stdint.h unistd.h
7903do :
7904  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7905ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7906"
7907if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7908  cat >>confdefs.h <<_ACEOF
7909#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7910_ACEOF
7911
7912fi
7913
7914done
7915
7916
7917for ac_header in dlfcn.h
7918do :
7919  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7920"
7921if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7922  cat >>confdefs.h <<_ACEOF
7923#define HAVE_DLFCN_H 1
7924_ACEOF
7925
7926fi
7927
7928done
7929
7930
7931
7932func_stripname_cnf ()
7933{
7934  case ${2} in
7935  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7936  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7937  esac
7938} # func_stripname_cnf
7939
7940
7941
7942
7943
7944# Set options
7945
7946
7947
7948        enable_dlopen=no
7949
7950
7951  enable_win32_dll=no
7952
7953
7954            # Check whether --enable-shared was given.
7955if test "${enable_shared+set}" = set; then :
7956  enableval=$enable_shared; p=${PACKAGE-default}
7957    case $enableval in
7958    yes) enable_shared=yes ;;
7959    no) enable_shared=no ;;
7960    *)
7961      enable_shared=no
7962      # Look at the argument we got.  We use all the common list separators.
7963      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7964      for pkg in $enableval; do
7965	IFS="$lt_save_ifs"
7966	if test "X$pkg" = "X$p"; then
7967	  enable_shared=yes
7968	fi
7969      done
7970      IFS="$lt_save_ifs"
7971      ;;
7972    esac
7973else
7974  enable_shared=yes
7975fi
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985  # Check whether --enable-static was given.
7986if test "${enable_static+set}" = set; then :
7987  enableval=$enable_static; p=${PACKAGE-default}
7988    case $enableval in
7989    yes) enable_static=yes ;;
7990    no) enable_static=no ;;
7991    *)
7992     enable_static=no
7993      # Look at the argument we got.  We use all the common list separators.
7994      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7995      for pkg in $enableval; do
7996	IFS="$lt_save_ifs"
7997	if test "X$pkg" = "X$p"; then
7998	  enable_static=yes
7999	fi
8000      done
8001      IFS="$lt_save_ifs"
8002      ;;
8003    esac
8004else
8005  enable_static=yes
8006fi
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017# Check whether --with-pic was given.
8018if test "${with_pic+set}" = set; then :
8019  withval=$with_pic; pic_mode="$withval"
8020else
8021  pic_mode=default
8022fi
8023
8024
8025test -z "$pic_mode" && pic_mode=default
8026
8027
8028
8029
8030
8031
8032
8033  # Check whether --enable-fast-install was given.
8034if test "${enable_fast_install+set}" = set; then :
8035  enableval=$enable_fast_install; p=${PACKAGE-default}
8036    case $enableval in
8037    yes) enable_fast_install=yes ;;
8038    no) enable_fast_install=no ;;
8039    *)
8040      enable_fast_install=no
8041      # Look at the argument we got.  We use all the common list separators.
8042      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8043      for pkg in $enableval; do
8044	IFS="$lt_save_ifs"
8045	if test "X$pkg" = "X$p"; then
8046	  enable_fast_install=yes
8047	fi
8048      done
8049      IFS="$lt_save_ifs"
8050      ;;
8051    esac
8052else
8053  enable_fast_install=yes
8054fi
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066# This can be used to rebuild libtool when needed
8067LIBTOOL_DEPS="$ltmain"
8068
8069# Always use our own libtool.
8070LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097test -z "$LN_S" && LN_S="ln -s"
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112if test -n "${ZSH_VERSION+set}" ; then
8113   setopt NO_GLOB_SUBST
8114fi
8115
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8117$as_echo_n "checking for objdir... " >&6; }
8118if ${lt_cv_objdir+:} false; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  rm -f .libs 2>/dev/null
8122mkdir .libs 2>/dev/null
8123if test -d .libs; then
8124  lt_cv_objdir=.libs
8125else
8126  # MS-DOS does not allow filenames that begin with a dot.
8127  lt_cv_objdir=_libs
8128fi
8129rmdir .libs 2>/dev/null
8130fi
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8132$as_echo "$lt_cv_objdir" >&6; }
8133objdir=$lt_cv_objdir
8134
8135
8136
8137
8138
8139cat >>confdefs.h <<_ACEOF
8140#define LT_OBJDIR "$lt_cv_objdir/"
8141_ACEOF
8142
8143
8144
8145
8146case $host_os in
8147aix3*)
8148  # AIX sometimes has problems with the GCC collect2 program.  For some
8149  # reason, if we set the COLLECT_NAMES environment variable, the problems
8150  # vanish in a puff of smoke.
8151  if test "X${COLLECT_NAMES+set}" != Xset; then
8152    COLLECT_NAMES=
8153    export COLLECT_NAMES
8154  fi
8155  ;;
8156esac
8157
8158# Global variables:
8159ofile=libtool
8160can_build_shared=yes
8161
8162# All known linkers require a `.a' archive for static linking (except MSVC,
8163# which needs '.lib').
8164libext=a
8165
8166with_gnu_ld="$lt_cv_prog_gnu_ld"
8167
8168old_CC="$CC"
8169old_CFLAGS="$CFLAGS"
8170
8171# Set sane defaults for various variables
8172test -z "$CC" && CC=cc
8173test -z "$LTCC" && LTCC=$CC
8174test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8175test -z "$LD" && LD=ld
8176test -z "$ac_objext" && ac_objext=o
8177
8178for cc_temp in $compiler""; do
8179  case $cc_temp in
8180    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8181    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8182    \-*) ;;
8183    *) break;;
8184  esac
8185done
8186cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8187
8188
8189# Only perform the check for file, if the check method requires it
8190test -z "$MAGIC_CMD" && MAGIC_CMD=file
8191case $deplibs_check_method in
8192file_magic*)
8193  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8195$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8196if ${lt_cv_path_MAGIC_CMD+:} false; then :
8197  $as_echo_n "(cached) " >&6
8198else
8199  case $MAGIC_CMD in
8200[\\/*] |  ?:[\\/]*)
8201  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8202  ;;
8203*)
8204  lt_save_MAGIC_CMD="$MAGIC_CMD"
8205  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8206  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8207  for ac_dir in $ac_dummy; do
8208    IFS="$lt_save_ifs"
8209    test -z "$ac_dir" && ac_dir=.
8210    if test -f $ac_dir/${ac_tool_prefix}file; then
8211      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8212      if test -n "$file_magic_test_file"; then
8213	case $deplibs_check_method in
8214	"file_magic "*)
8215	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8216	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8217	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8218	    $EGREP "$file_magic_regex" > /dev/null; then
8219	    :
8220	  else
8221	    cat <<_LT_EOF 1>&2
8222
8223*** Warning: the command libtool uses to detect shared libraries,
8224*** $file_magic_cmd, produces output that libtool cannot recognize.
8225*** The result is that libtool may fail to recognize shared libraries
8226*** as such.  This will affect the creation of libtool libraries that
8227*** depend on shared libraries, but programs linked with such libtool
8228*** libraries will work regardless of this problem.  Nevertheless, you
8229*** may want to report the problem to your system manager and/or to
8230*** bug-libtool@gnu.org
8231
8232_LT_EOF
8233	  fi ;;
8234	esac
8235      fi
8236      break
8237    fi
8238  done
8239  IFS="$lt_save_ifs"
8240  MAGIC_CMD="$lt_save_MAGIC_CMD"
8241  ;;
8242esac
8243fi
8244
8245MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8246if test -n "$MAGIC_CMD"; then
8247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8248$as_echo "$MAGIC_CMD" >&6; }
8249else
8250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251$as_echo "no" >&6; }
8252fi
8253
8254
8255
8256
8257
8258if test -z "$lt_cv_path_MAGIC_CMD"; then
8259  if test -n "$ac_tool_prefix"; then
8260    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8261$as_echo_n "checking for file... " >&6; }
8262if ${lt_cv_path_MAGIC_CMD+:} false; then :
8263  $as_echo_n "(cached) " >&6
8264else
8265  case $MAGIC_CMD in
8266[\\/*] |  ?:[\\/]*)
8267  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8268  ;;
8269*)
8270  lt_save_MAGIC_CMD="$MAGIC_CMD"
8271  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8272  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8273  for ac_dir in $ac_dummy; do
8274    IFS="$lt_save_ifs"
8275    test -z "$ac_dir" && ac_dir=.
8276    if test -f $ac_dir/file; then
8277      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8278      if test -n "$file_magic_test_file"; then
8279	case $deplibs_check_method in
8280	"file_magic "*)
8281	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8282	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8283	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8284	    $EGREP "$file_magic_regex" > /dev/null; then
8285	    :
8286	  else
8287	    cat <<_LT_EOF 1>&2
8288
8289*** Warning: the command libtool uses to detect shared libraries,
8290*** $file_magic_cmd, produces output that libtool cannot recognize.
8291*** The result is that libtool may fail to recognize shared libraries
8292*** as such.  This will affect the creation of libtool libraries that
8293*** depend on shared libraries, but programs linked with such libtool
8294*** libraries will work regardless of this problem.  Nevertheless, you
8295*** may want to report the problem to your system manager and/or to
8296*** bug-libtool@gnu.org
8297
8298_LT_EOF
8299	  fi ;;
8300	esac
8301      fi
8302      break
8303    fi
8304  done
8305  IFS="$lt_save_ifs"
8306  MAGIC_CMD="$lt_save_MAGIC_CMD"
8307  ;;
8308esac
8309fi
8310
8311MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8312if test -n "$MAGIC_CMD"; then
8313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8314$as_echo "$MAGIC_CMD" >&6; }
8315else
8316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317$as_echo "no" >&6; }
8318fi
8319
8320
8321  else
8322    MAGIC_CMD=:
8323  fi
8324fi
8325
8326  fi
8327  ;;
8328esac
8329
8330# Use C for the default configuration in the libtool script
8331
8332lt_save_CC="$CC"
8333ac_ext=c
8334ac_cpp='$CPP $CPPFLAGS'
8335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8337ac_compiler_gnu=$ac_cv_c_compiler_gnu
8338
8339
8340# Source file extension for C test sources.
8341ac_ext=c
8342
8343# Object file extension for compiled C test sources.
8344objext=o
8345objext=$objext
8346
8347# Code to be used in simple compile tests
8348lt_simple_compile_test_code="int some_variable = 0;"
8349
8350# Code to be used in simple link tests
8351lt_simple_link_test_code='int main(){return(0);}'
8352
8353
8354
8355
8356
8357
8358
8359# If no C compiler was specified, use CC.
8360LTCC=${LTCC-"$CC"}
8361
8362# If no C compiler flags were specified, use CFLAGS.
8363LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8364
8365# Allow CC to be a program name with arguments.
8366compiler=$CC
8367
8368# Save the default compiler, since it gets overwritten when the other
8369# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8370compiler_DEFAULT=$CC
8371
8372# save warnings/boilerplate of simple test code
8373ac_outfile=conftest.$ac_objext
8374echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8375eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8376_lt_compiler_boilerplate=`cat conftest.err`
8377$RM conftest*
8378
8379ac_outfile=conftest.$ac_objext
8380echo "$lt_simple_link_test_code" >conftest.$ac_ext
8381eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8382_lt_linker_boilerplate=`cat conftest.err`
8383$RM -r conftest*
8384
8385
8386## CAVEAT EMPTOR:
8387## There is no encapsulation within the following macros, do not change
8388## the running order or otherwise move them around unless you know exactly
8389## what you are doing...
8390if test -n "$compiler"; then
8391
8392lt_prog_compiler_no_builtin_flag=
8393
8394if test "$GCC" = yes; then
8395  case $cc_basename in
8396  nvcc*)
8397    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8398  *)
8399    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8400  esac
8401
8402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8403$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8404if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8405  $as_echo_n "(cached) " >&6
8406else
8407  lt_cv_prog_compiler_rtti_exceptions=no
8408   ac_outfile=conftest.$ac_objext
8409   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8410   lt_compiler_flag="-fno-rtti -fno-exceptions"
8411   # Insert the option either (1) after the last *FLAGS variable, or
8412   # (2) before a word containing "conftest.", or (3) at the end.
8413   # Note that $ac_compile itself does not contain backslashes and begins
8414   # with a dollar sign (not a hyphen), so the echo should work correctly.
8415   # The option is referenced via a variable to avoid confusing sed.
8416   lt_compile=`echo "$ac_compile" | $SED \
8417   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8418   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8419   -e 's:$: $lt_compiler_flag:'`
8420   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8421   (eval "$lt_compile" 2>conftest.err)
8422   ac_status=$?
8423   cat conftest.err >&5
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   if (exit $ac_status) && test -s "$ac_outfile"; then
8426     # The compiler can only warn and ignore the option if not recognized
8427     # So say no if there are warnings other than the usual output.
8428     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8429     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8430     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8431       lt_cv_prog_compiler_rtti_exceptions=yes
8432     fi
8433   fi
8434   $RM conftest*
8435
8436fi
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8438$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8439
8440if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8441    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8442else
8443    :
8444fi
8445
8446fi
8447
8448
8449
8450
8451
8452
8453  lt_prog_compiler_wl=
8454lt_prog_compiler_pic=
8455lt_prog_compiler_static=
8456
8457
8458  if test "$GCC" = yes; then
8459    lt_prog_compiler_wl='-Wl,'
8460    lt_prog_compiler_static='-static'
8461
8462    case $host_os in
8463      aix*)
8464      # All AIX code is PIC.
8465      if test "$host_cpu" = ia64; then
8466	# AIX 5 now supports IA64 processor
8467	lt_prog_compiler_static='-Bstatic'
8468      fi
8469      ;;
8470
8471    amigaos*)
8472      case $host_cpu in
8473      powerpc)
8474            # see comment about AmigaOS4 .so support
8475            lt_prog_compiler_pic='-fPIC'
8476        ;;
8477      m68k)
8478            # FIXME: we need at least 68020 code to build shared libraries, but
8479            # adding the `-m68020' flag to GCC prevents building anything better,
8480            # like `-m68040'.
8481            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8482        ;;
8483      esac
8484      ;;
8485
8486    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8487      # PIC is the default for these OSes.
8488      ;;
8489
8490    mingw* | cygwin* | pw32* | os2* | cegcc*)
8491      # This hack is so that the source file can tell whether it is being
8492      # built for inclusion in a dll (and should export symbols for example).
8493      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8494      # (--disable-auto-import) libraries
8495      lt_prog_compiler_pic='-DDLL_EXPORT'
8496      ;;
8497
8498    darwin* | rhapsody*)
8499      # PIC is the default on this platform
8500      # Common symbols not allowed in MH_DYLIB files
8501      lt_prog_compiler_pic='-fno-common'
8502      ;;
8503
8504    haiku*)
8505      # PIC is the default for Haiku.
8506      # The "-static" flag exists, but is broken.
8507      lt_prog_compiler_static=
8508      ;;
8509
8510    hpux*)
8511      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8512      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8513      # sets the default TLS model and affects inlining.
8514      case $host_cpu in
8515      hppa*64*)
8516	# +Z the default
8517	;;
8518      *)
8519	lt_prog_compiler_pic='-fPIC'
8520	;;
8521      esac
8522      ;;
8523
8524    interix[3-9]*)
8525      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8526      # Instead, we relocate shared libraries at runtime.
8527      ;;
8528
8529    msdosdjgpp*)
8530      # Just because we use GCC doesn't mean we suddenly get shared libraries
8531      # on systems that don't support them.
8532      lt_prog_compiler_can_build_shared=no
8533      enable_shared=no
8534      ;;
8535
8536    *nto* | *qnx*)
8537      # QNX uses GNU C++, but need to define -shared option too, otherwise
8538      # it will coredump.
8539      lt_prog_compiler_pic='-fPIC -shared'
8540      ;;
8541
8542    sysv4*MP*)
8543      if test -d /usr/nec; then
8544	lt_prog_compiler_pic=-Kconform_pic
8545      fi
8546      ;;
8547
8548    *)
8549      lt_prog_compiler_pic='-fPIC'
8550      ;;
8551    esac
8552
8553    case $cc_basename in
8554    nvcc*) # Cuda Compiler Driver 2.2
8555      lt_prog_compiler_wl='-Xlinker '
8556      lt_prog_compiler_pic='-Xcompiler -fPIC'
8557      ;;
8558    esac
8559  else
8560    # PORTME Check for flag to pass linker flags through the system compiler.
8561    case $host_os in
8562    aix*)
8563      lt_prog_compiler_wl='-Wl,'
8564      if test "$host_cpu" = ia64; then
8565	# AIX 5 now supports IA64 processor
8566	lt_prog_compiler_static='-Bstatic'
8567      else
8568	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8569      fi
8570      ;;
8571
8572    mingw* | cygwin* | pw32* | os2* | cegcc*)
8573      # This hack is so that the source file can tell whether it is being
8574      # built for inclusion in a dll (and should export symbols for example).
8575      lt_prog_compiler_pic='-DDLL_EXPORT'
8576      ;;
8577
8578    hpux9* | hpux10* | hpux11*)
8579      lt_prog_compiler_wl='-Wl,'
8580      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8581      # not for PA HP-UX.
8582      case $host_cpu in
8583      hppa*64*|ia64*)
8584	# +Z the default
8585	;;
8586      *)
8587	lt_prog_compiler_pic='+Z'
8588	;;
8589      esac
8590      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8591      lt_prog_compiler_static='${wl}-a ${wl}archive'
8592      ;;
8593
8594    irix5* | irix6* | nonstopux*)
8595      lt_prog_compiler_wl='-Wl,'
8596      # PIC (with -KPIC) is the default.
8597      lt_prog_compiler_static='-non_shared'
8598      ;;
8599
8600    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8601      case $cc_basename in
8602      # old Intel for x86_64 which still supported -KPIC.
8603      ecc*)
8604	lt_prog_compiler_wl='-Wl,'
8605	lt_prog_compiler_pic='-KPIC'
8606	lt_prog_compiler_static='-static'
8607        ;;
8608      # icc used to be incompatible with GCC.
8609      # ICC 10 doesn't accept -KPIC any more.
8610      icc* | ifort*)
8611	lt_prog_compiler_wl='-Wl,'
8612	lt_prog_compiler_pic='-fPIC'
8613	lt_prog_compiler_static='-static'
8614        ;;
8615      # Lahey Fortran 8.1.
8616      lf95*)
8617	lt_prog_compiler_wl='-Wl,'
8618	lt_prog_compiler_pic='--shared'
8619	lt_prog_compiler_static='--static'
8620	;;
8621      nagfor*)
8622	# NAG Fortran compiler
8623	lt_prog_compiler_wl='-Wl,-Wl,,'
8624	lt_prog_compiler_pic='-PIC'
8625	lt_prog_compiler_static='-Bstatic'
8626	;;
8627      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8628        # Portland Group compilers (*not* the Pentium gcc compiler,
8629	# which looks to be a dead project)
8630	lt_prog_compiler_wl='-Wl,'
8631	lt_prog_compiler_pic='-fpic'
8632	lt_prog_compiler_static='-Bstatic'
8633        ;;
8634      ccc*)
8635        lt_prog_compiler_wl='-Wl,'
8636        # All Alpha code is PIC.
8637        lt_prog_compiler_static='-non_shared'
8638        ;;
8639      xl* | bgxl* | bgf* | mpixl*)
8640	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8641	lt_prog_compiler_wl='-Wl,'
8642	lt_prog_compiler_pic='-qpic'
8643	lt_prog_compiler_static='-qstaticlink'
8644	;;
8645      *)
8646	case `$CC -V 2>&1 | sed 5q` in
8647	*Sun\ F* | *Sun*Fortran*)
8648	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8649	  lt_prog_compiler_pic='-KPIC'
8650	  lt_prog_compiler_static='-Bstatic'
8651	  lt_prog_compiler_wl=''
8652	  ;;
8653	*Sun\ C*)
8654	  # Sun C 5.9
8655	  lt_prog_compiler_pic='-KPIC'
8656	  lt_prog_compiler_static='-Bstatic'
8657	  lt_prog_compiler_wl='-Wl,'
8658	  ;;
8659	esac
8660	;;
8661      esac
8662      ;;
8663
8664    newsos6)
8665      lt_prog_compiler_pic='-KPIC'
8666      lt_prog_compiler_static='-Bstatic'
8667      ;;
8668
8669    *nto* | *qnx*)
8670      # QNX uses GNU C++, but need to define -shared option too, otherwise
8671      # it will coredump.
8672      lt_prog_compiler_pic='-fPIC -shared'
8673      ;;
8674
8675    osf3* | osf4* | osf5*)
8676      lt_prog_compiler_wl='-Wl,'
8677      # All OSF/1 code is PIC.
8678      lt_prog_compiler_static='-non_shared'
8679      ;;
8680
8681    rdos*)
8682      lt_prog_compiler_static='-non_shared'
8683      ;;
8684
8685    solaris*)
8686      lt_prog_compiler_pic='-KPIC'
8687      lt_prog_compiler_static='-Bstatic'
8688      case $cc_basename in
8689      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8690	lt_prog_compiler_wl='-Qoption ld ';;
8691      *)
8692	lt_prog_compiler_wl='-Wl,';;
8693      esac
8694      ;;
8695
8696    sunos4*)
8697      lt_prog_compiler_wl='-Qoption ld '
8698      lt_prog_compiler_pic='-PIC'
8699      lt_prog_compiler_static='-Bstatic'
8700      ;;
8701
8702    sysv4 | sysv4.2uw2* | sysv4.3*)
8703      lt_prog_compiler_wl='-Wl,'
8704      lt_prog_compiler_pic='-KPIC'
8705      lt_prog_compiler_static='-Bstatic'
8706      ;;
8707
8708    sysv4*MP*)
8709      if test -d /usr/nec ;then
8710	lt_prog_compiler_pic='-Kconform_pic'
8711	lt_prog_compiler_static='-Bstatic'
8712      fi
8713      ;;
8714
8715    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8716      lt_prog_compiler_wl='-Wl,'
8717      lt_prog_compiler_pic='-KPIC'
8718      lt_prog_compiler_static='-Bstatic'
8719      ;;
8720
8721    unicos*)
8722      lt_prog_compiler_wl='-Wl,'
8723      lt_prog_compiler_can_build_shared=no
8724      ;;
8725
8726    uts4*)
8727      lt_prog_compiler_pic='-pic'
8728      lt_prog_compiler_static='-Bstatic'
8729      ;;
8730
8731    *)
8732      lt_prog_compiler_can_build_shared=no
8733      ;;
8734    esac
8735  fi
8736
8737case $host_os in
8738  # For platforms which do not support PIC, -DPIC is meaningless:
8739  *djgpp*)
8740    lt_prog_compiler_pic=
8741    ;;
8742  *)
8743    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8744    ;;
8745esac
8746
8747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8748$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8749if ${lt_cv_prog_compiler_pic+:} false; then :
8750  $as_echo_n "(cached) " >&6
8751else
8752  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8753fi
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8755$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8756lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8757
8758#
8759# Check to make sure the PIC flag actually works.
8760#
8761if test -n "$lt_prog_compiler_pic"; then
8762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8763$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8764if ${lt_cv_prog_compiler_pic_works+:} false; then :
8765  $as_echo_n "(cached) " >&6
8766else
8767  lt_cv_prog_compiler_pic_works=no
8768   ac_outfile=conftest.$ac_objext
8769   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8770   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8771   # Insert the option either (1) after the last *FLAGS variable, or
8772   # (2) before a word containing "conftest.", or (3) at the end.
8773   # Note that $ac_compile itself does not contain backslashes and begins
8774   # with a dollar sign (not a hyphen), so the echo should work correctly.
8775   # The option is referenced via a variable to avoid confusing sed.
8776   lt_compile=`echo "$ac_compile" | $SED \
8777   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8778   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8779   -e 's:$: $lt_compiler_flag:'`
8780   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8781   (eval "$lt_compile" 2>conftest.err)
8782   ac_status=$?
8783   cat conftest.err >&5
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   if (exit $ac_status) && test -s "$ac_outfile"; then
8786     # The compiler can only warn and ignore the option if not recognized
8787     # So say no if there are warnings other than the usual output.
8788     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8789     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8790     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8791       lt_cv_prog_compiler_pic_works=yes
8792     fi
8793   fi
8794   $RM conftest*
8795
8796fi
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8798$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8799
8800if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8801    case $lt_prog_compiler_pic in
8802     "" | " "*) ;;
8803     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8804     esac
8805else
8806    lt_prog_compiler_pic=
8807     lt_prog_compiler_can_build_shared=no
8808fi
8809
8810fi
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822#
8823# Check to make sure the static flag actually works.
8824#
8825wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8827$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8828if ${lt_cv_prog_compiler_static_works+:} false; then :
8829  $as_echo_n "(cached) " >&6
8830else
8831  lt_cv_prog_compiler_static_works=no
8832   save_LDFLAGS="$LDFLAGS"
8833   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8834   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8835   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8836     # The linker can only warn and ignore the option if not recognized
8837     # So say no if there are warnings
8838     if test -s conftest.err; then
8839       # Append any errors to the config.log.
8840       cat conftest.err 1>&5
8841       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8842       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8843       if diff conftest.exp conftest.er2 >/dev/null; then
8844         lt_cv_prog_compiler_static_works=yes
8845       fi
8846     else
8847       lt_cv_prog_compiler_static_works=yes
8848     fi
8849   fi
8850   $RM -r conftest*
8851   LDFLAGS="$save_LDFLAGS"
8852
8853fi
8854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8855$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8856
8857if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8858    :
8859else
8860    lt_prog_compiler_static=
8861fi
8862
8863
8864
8865
8866
8867
8868
8869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8870$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8871if ${lt_cv_prog_compiler_c_o+:} false; then :
8872  $as_echo_n "(cached) " >&6
8873else
8874  lt_cv_prog_compiler_c_o=no
8875   $RM -r conftest 2>/dev/null
8876   mkdir conftest
8877   cd conftest
8878   mkdir out
8879   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8880
8881   lt_compiler_flag="-o out/conftest2.$ac_objext"
8882   # Insert the option either (1) after the last *FLAGS variable, or
8883   # (2) before a word containing "conftest.", or (3) at the end.
8884   # Note that $ac_compile itself does not contain backslashes and begins
8885   # with a dollar sign (not a hyphen), so the echo should work correctly.
8886   lt_compile=`echo "$ac_compile" | $SED \
8887   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8888   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8889   -e 's:$: $lt_compiler_flag:'`
8890   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8891   (eval "$lt_compile" 2>out/conftest.err)
8892   ac_status=$?
8893   cat out/conftest.err >&5
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8896   then
8897     # The compiler can only warn and ignore the option if not recognized
8898     # So say no if there are warnings
8899     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8900     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8901     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8902       lt_cv_prog_compiler_c_o=yes
8903     fi
8904   fi
8905   chmod u+w . 2>&5
8906   $RM conftest*
8907   # SGI C++ compiler will create directory out/ii_files/ for
8908   # template instantiation
8909   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8910   $RM out/* && rmdir out
8911   cd ..
8912   $RM -r conftest
8913   $RM conftest*
8914
8915fi
8916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8917$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8918
8919
8920
8921
8922
8923
8924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8925$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8926if ${lt_cv_prog_compiler_c_o+:} false; then :
8927  $as_echo_n "(cached) " >&6
8928else
8929  lt_cv_prog_compiler_c_o=no
8930   $RM -r conftest 2>/dev/null
8931   mkdir conftest
8932   cd conftest
8933   mkdir out
8934   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8935
8936   lt_compiler_flag="-o out/conftest2.$ac_objext"
8937   # Insert the option either (1) after the last *FLAGS variable, or
8938   # (2) before a word containing "conftest.", or (3) at the end.
8939   # Note that $ac_compile itself does not contain backslashes and begins
8940   # with a dollar sign (not a hyphen), so the echo should work correctly.
8941   lt_compile=`echo "$ac_compile" | $SED \
8942   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8943   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8944   -e 's:$: $lt_compiler_flag:'`
8945   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8946   (eval "$lt_compile" 2>out/conftest.err)
8947   ac_status=$?
8948   cat out/conftest.err >&5
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8951   then
8952     # The compiler can only warn and ignore the option if not recognized
8953     # So say no if there are warnings
8954     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8955     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8956     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8957       lt_cv_prog_compiler_c_o=yes
8958     fi
8959   fi
8960   chmod u+w . 2>&5
8961   $RM conftest*
8962   # SGI C++ compiler will create directory out/ii_files/ for
8963   # template instantiation
8964   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8965   $RM out/* && rmdir out
8966   cd ..
8967   $RM -r conftest
8968   $RM conftest*
8969
8970fi
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8972$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8973
8974
8975
8976
8977hard_links="nottested"
8978if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8979  # do not overwrite the value of need_locks provided by the user
8980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8981$as_echo_n "checking if we can lock with hard links... " >&6; }
8982  hard_links=yes
8983  $RM conftest*
8984  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8985  touch conftest.a
8986  ln conftest.a conftest.b 2>&5 || hard_links=no
8987  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8989$as_echo "$hard_links" >&6; }
8990  if test "$hard_links" = no; then
8991    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8992$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8993    need_locks=warn
8994  fi
8995else
8996  need_locks=no
8997fi
8998
8999
9000
9001
9002
9003
9004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9005$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9006
9007  runpath_var=
9008  allow_undefined_flag=
9009  always_export_symbols=no
9010  archive_cmds=
9011  archive_expsym_cmds=
9012  compiler_needs_object=no
9013  enable_shared_with_static_runtimes=no
9014  export_dynamic_flag_spec=
9015  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9016  hardcode_automatic=no
9017  hardcode_direct=no
9018  hardcode_direct_absolute=no
9019  hardcode_libdir_flag_spec=
9020  hardcode_libdir_flag_spec_ld=
9021  hardcode_libdir_separator=
9022  hardcode_minus_L=no
9023  hardcode_shlibpath_var=unsupported
9024  inherit_rpath=no
9025  link_all_deplibs=unknown
9026  module_cmds=
9027  module_expsym_cmds=
9028  old_archive_from_new_cmds=
9029  old_archive_from_expsyms_cmds=
9030  thread_safe_flag_spec=
9031  whole_archive_flag_spec=
9032  # include_expsyms should be a list of space-separated symbols to be *always*
9033  # included in the symbol list
9034  include_expsyms=
9035  # exclude_expsyms can be an extended regexp of symbols to exclude
9036  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9037  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9038  # as well as any symbol that contains `d'.
9039  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9040  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9041  # platforms (ab)use it in PIC code, but their linkers get confused if
9042  # the symbol is explicitly referenced.  Since portable code cannot
9043  # rely on this symbol name, it's probably fine to never include it in
9044  # preloaded symbol tables.
9045  # Exclude shared library initialization/finalization symbols.
9046  extract_expsyms_cmds=
9047
9048  case $host_os in
9049  cygwin* | mingw* | pw32* | cegcc*)
9050    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9051    # When not using gcc, we currently assume that we are using
9052    # Microsoft Visual C++.
9053    if test "$GCC" != yes; then
9054      with_gnu_ld=no
9055    fi
9056    ;;
9057  interix*)
9058    # we just hope/assume this is gcc and not c89 (= MSVC++)
9059    with_gnu_ld=yes
9060    ;;
9061  openbsd*)
9062    with_gnu_ld=no
9063    ;;
9064  linux* | k*bsd*-gnu | gnu*)
9065    link_all_deplibs=no
9066    ;;
9067  esac
9068
9069  ld_shlibs=yes
9070
9071  # On some targets, GNU ld is compatible enough with the native linker
9072  # that we're better off using the native interface for both.
9073  lt_use_gnu_ld_interface=no
9074  if test "$with_gnu_ld" = yes; then
9075    case $host_os in
9076      aix*)
9077	# The AIX port of GNU ld has always aspired to compatibility
9078	# with the native linker.  However, as the warning in the GNU ld
9079	# block says, versions before 2.19.5* couldn't really create working
9080	# shared libraries, regardless of the interface used.
9081	case `$LD -v 2>&1` in
9082	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9083	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9084	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9085	  *)
9086	    lt_use_gnu_ld_interface=yes
9087	    ;;
9088	esac
9089	;;
9090      *)
9091	lt_use_gnu_ld_interface=yes
9092	;;
9093    esac
9094  fi
9095
9096  if test "$lt_use_gnu_ld_interface" = yes; then
9097    # If archive_cmds runs LD, not CC, wlarc should be empty
9098    wlarc='${wl}'
9099
9100    # Set some defaults for GNU ld with shared library support. These
9101    # are reset later if shared libraries are not supported. Putting them
9102    # here allows them to be overridden if necessary.
9103    runpath_var=LD_RUN_PATH
9104    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9105    export_dynamic_flag_spec='${wl}--export-dynamic'
9106    # ancient GNU ld didn't support --whole-archive et. al.
9107    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9108      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9109    else
9110      whole_archive_flag_spec=
9111    fi
9112    supports_anon_versioning=no
9113    case `$LD -v 2>&1` in
9114      *GNU\ gold*) supports_anon_versioning=yes ;;
9115      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9116      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9117      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9118      *\ 2.11.*) ;; # other 2.11 versions
9119      *) supports_anon_versioning=yes ;;
9120    esac
9121
9122    # See if GNU ld supports shared libraries.
9123    case $host_os in
9124    aix[3-9]*)
9125      # On AIX/PPC, the GNU linker is very broken
9126      if test "$host_cpu" != ia64; then
9127	ld_shlibs=no
9128	cat <<_LT_EOF 1>&2
9129
9130*** Warning: the GNU linker, at least up to release 2.19, is reported
9131*** to be unable to reliably create shared libraries on AIX.
9132*** Therefore, libtool is disabling shared libraries support.  If you
9133*** really care for shared libraries, you may want to install binutils
9134*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9135*** You will then need to restart the configuration process.
9136
9137_LT_EOF
9138      fi
9139      ;;
9140
9141    amigaos*)
9142      case $host_cpu in
9143      powerpc)
9144            # see comment about AmigaOS4 .so support
9145            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146            archive_expsym_cmds=''
9147        ;;
9148      m68k)
9149            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)'
9150            hardcode_libdir_flag_spec='-L$libdir'
9151            hardcode_minus_L=yes
9152        ;;
9153      esac
9154      ;;
9155
9156    beos*)
9157      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9158	allow_undefined_flag=unsupported
9159	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9160	# support --undefined.  This deserves some investigation.  FIXME
9161	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9162      else
9163	ld_shlibs=no
9164      fi
9165      ;;
9166
9167    cygwin* | mingw* | pw32* | cegcc*)
9168      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9169      # as there is no search path for DLLs.
9170      hardcode_libdir_flag_spec='-L$libdir'
9171      export_dynamic_flag_spec='${wl}--export-all-symbols'
9172      allow_undefined_flag=unsupported
9173      always_export_symbols=no
9174      enable_shared_with_static_runtimes=yes
9175      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'
9176      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9177
9178      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9179        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9180	# If the export-symbols file already is a .def file (1st line
9181	# is EXPORTS), use it as is; otherwise, prepend...
9182	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9183	  cp $export_symbols $output_objdir/$soname.def;
9184	else
9185	  echo EXPORTS > $output_objdir/$soname.def;
9186	  cat $export_symbols >> $output_objdir/$soname.def;
9187	fi~
9188	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9189      else
9190	ld_shlibs=no
9191      fi
9192      ;;
9193
9194    haiku*)
9195      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9196      link_all_deplibs=yes
9197      ;;
9198
9199    interix[3-9]*)
9200      hardcode_direct=no
9201      hardcode_shlibpath_var=no
9202      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9203      export_dynamic_flag_spec='${wl}-E'
9204      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9205      # Instead, shared libraries are loaded at an image base (0x10000000 by
9206      # default) and relocated if they conflict, which is a slow very memory
9207      # consuming and fragmenting process.  To avoid this, we pick a random,
9208      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9209      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9210      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9211      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'
9212      ;;
9213
9214    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9215      tmp_diet=no
9216      if test "$host_os" = linux-dietlibc; then
9217	case $cc_basename in
9218	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9219	esac
9220      fi
9221      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9222	 && test "$tmp_diet" = no
9223      then
9224	tmp_addflag=' $pic_flag'
9225	tmp_sharedflag='-shared'
9226	case $cc_basename,$host_cpu in
9227        pgcc*)				# Portland Group C compiler
9228	  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'
9229	  tmp_addflag=' $pic_flag'
9230	  ;;
9231	pgf77* | pgf90* | pgf95* | pgfortran*)
9232					# Portland Group f77 and f90 compilers
9233	  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'
9234	  tmp_addflag=' $pic_flag -Mnomain' ;;
9235	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9236	  tmp_addflag=' -i_dynamic' ;;
9237	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9238	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9239	ifc* | ifort*)			# Intel Fortran compiler
9240	  tmp_addflag=' -nofor_main' ;;
9241	lf95*)				# Lahey Fortran 8.1
9242	  whole_archive_flag_spec=
9243	  tmp_sharedflag='--shared' ;;
9244	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9245	  tmp_sharedflag='-qmkshrobj'
9246	  tmp_addflag= ;;
9247	nvcc*)	# Cuda Compiler Driver 2.2
9248	  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'
9249	  compiler_needs_object=yes
9250	  ;;
9251	esac
9252	case `$CC -V 2>&1 | sed 5q` in
9253	*Sun\ C*)			# Sun C 5.9
9254	  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'
9255	  compiler_needs_object=yes
9256	  tmp_sharedflag='-G' ;;
9257	*Sun\ F*)			# Sun Fortran 8.3
9258	  tmp_sharedflag='-G' ;;
9259	esac
9260	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9261
9262        if test "x$supports_anon_versioning" = xyes; then
9263          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9264	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9265	    echo "local: *; };" >> $output_objdir/$libname.ver~
9266	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9267        fi
9268
9269	case $cc_basename in
9270	xlf* | bgf* | bgxlf* | mpixlf*)
9271	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9272	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9273	  hardcode_libdir_flag_spec=
9274	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9275	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9276	  if test "x$supports_anon_versioning" = xyes; then
9277	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9278	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9279	      echo "local: *; };" >> $output_objdir/$libname.ver~
9280	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9281	  fi
9282	  ;;
9283	esac
9284      else
9285        ld_shlibs=no
9286      fi
9287      ;;
9288
9289    netbsd* | netbsdelf*-gnu)
9290      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9291	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9292	wlarc=
9293      else
9294	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9296      fi
9297      ;;
9298
9299    solaris*)
9300      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9301	ld_shlibs=no
9302	cat <<_LT_EOF 1>&2
9303
9304*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9305*** create shared libraries on Solaris systems.  Therefore, libtool
9306*** is disabling shared libraries support.  We urge you to upgrade GNU
9307*** binutils to release 2.9.1 or newer.  Another option is to modify
9308*** your PATH or compiler configuration so that the native linker is
9309*** used, and then restart.
9310
9311_LT_EOF
9312      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9313	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9314	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9315      else
9316	ld_shlibs=no
9317      fi
9318      ;;
9319
9320    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9321      case `$LD -v 2>&1` in
9322        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9323	ld_shlibs=no
9324	cat <<_LT_EOF 1>&2
9325
9326*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9327*** reliably create shared libraries on SCO systems.  Therefore, libtool
9328*** is disabling shared libraries support.  We urge you to upgrade GNU
9329*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9330*** your PATH or compiler configuration so that the native linker is
9331*** used, and then restart.
9332
9333_LT_EOF
9334	;;
9335	*)
9336	  # For security reasons, it is highly recommended that you always
9337	  # use absolute paths for naming shared libraries, and exclude the
9338	  # DT_RUNPATH tag from executables and libraries.  But doing so
9339	  # requires that you compile everything twice, which is a pain.
9340	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9341	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9342	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9344	  else
9345	    ld_shlibs=no
9346	  fi
9347	;;
9348      esac
9349      ;;
9350
9351    sunos4*)
9352      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9353      wlarc=
9354      hardcode_direct=yes
9355      hardcode_shlibpath_var=no
9356      ;;
9357
9358    *)
9359      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9360	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9361	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9362      else
9363	ld_shlibs=no
9364      fi
9365      ;;
9366    esac
9367
9368    if test "$ld_shlibs" = no; then
9369      runpath_var=
9370      hardcode_libdir_flag_spec=
9371      export_dynamic_flag_spec=
9372      whole_archive_flag_spec=
9373    fi
9374  else
9375    # PORTME fill in a description of your system's linker (not GNU ld)
9376    case $host_os in
9377    aix3*)
9378      allow_undefined_flag=unsupported
9379      always_export_symbols=yes
9380      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'
9381      # Note: this linker hardcodes the directories in LIBPATH if there
9382      # are no directories specified by -L.
9383      hardcode_minus_L=yes
9384      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9385	# Neither direct hardcoding nor static linking is supported with a
9386	# broken collect2.
9387	hardcode_direct=unsupported
9388      fi
9389      ;;
9390
9391    aix[4-9]*)
9392      if test "$host_cpu" = ia64; then
9393	# On IA64, the linker does run time linking by default, so we don't
9394	# have to do anything special.
9395	aix_use_runtimelinking=no
9396	exp_sym_flag='-Bexport'
9397	no_entry_flag=""
9398      else
9399	# If we're using GNU nm, then we don't want the "-C" option.
9400	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9401	# Also, AIX nm treats weak defined symbols like other global
9402	# defined symbols, whereas GNU nm marks them as "W".
9403	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9404	  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'
9405	else
9406	  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'
9407	fi
9408	aix_use_runtimelinking=no
9409
9410	# Test if we are trying to use run time linking or normal
9411	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9412	# need to do runtime linking.
9413	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9414	  for ld_flag in $LDFLAGS; do
9415	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9416	    aix_use_runtimelinking=yes
9417	    break
9418	  fi
9419	  done
9420	  ;;
9421	esac
9422
9423	exp_sym_flag='-bexport'
9424	no_entry_flag='-bnoentry'
9425      fi
9426
9427      # When large executables or shared objects are built, AIX ld can
9428      # have problems creating the table of contents.  If linking a library
9429      # or program results in "error TOC overflow" add -mminimal-toc to
9430      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9431      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9432
9433      archive_cmds=''
9434      hardcode_direct=yes
9435      hardcode_direct_absolute=yes
9436      hardcode_libdir_separator=':'
9437      link_all_deplibs=yes
9438      file_list_spec='${wl}-f,'
9439
9440      if test "$GCC" = yes; then
9441	case $host_os in aix4.[012]|aix4.[012].*)
9442	# We only want to do this on AIX 4.2 and lower, the check
9443	# below for broken collect2 doesn't work under 4.3+
9444	  collect2name=`${CC} -print-prog-name=collect2`
9445	  if test -f "$collect2name" &&
9446	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9447	  then
9448	  # We have reworked collect2
9449	  :
9450	  else
9451	  # We have old collect2
9452	  hardcode_direct=unsupported
9453	  # It fails to find uninstalled libraries when the uninstalled
9454	  # path is not listed in the libpath.  Setting hardcode_minus_L
9455	  # to unsupported forces relinking
9456	  hardcode_minus_L=yes
9457	  hardcode_libdir_flag_spec='-L$libdir'
9458	  hardcode_libdir_separator=
9459	  fi
9460	  ;;
9461	esac
9462	shared_flag='-shared'
9463	if test "$aix_use_runtimelinking" = yes; then
9464	  shared_flag="$shared_flag "'${wl}-G'
9465	fi
9466	link_all_deplibs=no
9467      else
9468	# not using gcc
9469	if test "$host_cpu" = ia64; then
9470	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9471	# chokes on -Wl,-G. The following line is correct:
9472	  shared_flag='-G'
9473	else
9474	  if test "$aix_use_runtimelinking" = yes; then
9475	    shared_flag='${wl}-G'
9476	  else
9477	    shared_flag='${wl}-bM:SRE'
9478	  fi
9479	fi
9480      fi
9481
9482      export_dynamic_flag_spec='${wl}-bexpall'
9483      # It seems that -bexpall does not export symbols beginning with
9484      # underscore (_), so it is better to generate a list of symbols to export.
9485      always_export_symbols=yes
9486      if test "$aix_use_runtimelinking" = yes; then
9487	# Warning - without using the other runtime loading flags (-brtl),
9488	# -berok will link without error, but may produce a broken library.
9489	allow_undefined_flag='-berok'
9490        # Determine the default libpath from the value encoded in an
9491        # empty executable.
9492        if test "${lt_cv_aix_libpath+set}" = set; then
9493  aix_libpath=$lt_cv_aix_libpath
9494else
9495  if ${lt_cv_aix_libpath_+:} false; then :
9496  $as_echo_n "(cached) " >&6
9497else
9498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499/* end confdefs.h.  */
9500
9501int
9502main ()
9503{
9504
9505  ;
9506  return 0;
9507}
9508_ACEOF
9509if ac_fn_c_try_link "$LINENO"; then :
9510
9511  lt_aix_libpath_sed='
9512      /Import File Strings/,/^$/ {
9513	  /^0/ {
9514	      s/^0  *\([^ ]*\) *$/\1/
9515	      p
9516	  }
9517      }'
9518  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9519  # Check for a 64-bit object if we didn't find anything.
9520  if test -z "$lt_cv_aix_libpath_"; then
9521    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9522  fi
9523fi
9524rm -f core conftest.err conftest.$ac_objext \
9525    conftest$ac_exeext conftest.$ac_ext
9526  if test -z "$lt_cv_aix_libpath_"; then
9527    lt_cv_aix_libpath_="/usr/lib:/lib"
9528  fi
9529
9530fi
9531
9532  aix_libpath=$lt_cv_aix_libpath_
9533fi
9534
9535        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9536        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"
9537      else
9538	if test "$host_cpu" = ia64; then
9539	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9540	  allow_undefined_flag="-z nodefs"
9541	  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"
9542	else
9543	 # Determine the default libpath from the value encoded in an
9544	 # empty executable.
9545	 if test "${lt_cv_aix_libpath+set}" = set; then
9546  aix_libpath=$lt_cv_aix_libpath
9547else
9548  if ${lt_cv_aix_libpath_+:} false; then :
9549  $as_echo_n "(cached) " >&6
9550else
9551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552/* end confdefs.h.  */
9553
9554int
9555main ()
9556{
9557
9558  ;
9559  return 0;
9560}
9561_ACEOF
9562if ac_fn_c_try_link "$LINENO"; then :
9563
9564  lt_aix_libpath_sed='
9565      /Import File Strings/,/^$/ {
9566	  /^0/ {
9567	      s/^0  *\([^ ]*\) *$/\1/
9568	      p
9569	  }
9570      }'
9571  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9572  # Check for a 64-bit object if we didn't find anything.
9573  if test -z "$lt_cv_aix_libpath_"; then
9574    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9575  fi
9576fi
9577rm -f core conftest.err conftest.$ac_objext \
9578    conftest$ac_exeext conftest.$ac_ext
9579  if test -z "$lt_cv_aix_libpath_"; then
9580    lt_cv_aix_libpath_="/usr/lib:/lib"
9581  fi
9582
9583fi
9584
9585  aix_libpath=$lt_cv_aix_libpath_
9586fi
9587
9588	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9589	  # Warning - without using the other run time loading flags,
9590	  # -berok will link without error, but may produce a broken library.
9591	  no_undefined_flag=' ${wl}-bernotok'
9592	  allow_undefined_flag=' ${wl}-berok'
9593	  if test "$with_gnu_ld" = yes; then
9594	    # We only use this code for GNU lds that support --whole-archive.
9595	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9596	  else
9597	    # Exported symbols can be pulled into shared objects from archives
9598	    whole_archive_flag_spec='$convenience'
9599	  fi
9600	  archive_cmds_need_lc=yes
9601	  # This is similar to how AIX traditionally builds its shared libraries.
9602	  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'
9603	fi
9604      fi
9605      ;;
9606
9607    amigaos*)
9608      case $host_cpu in
9609      powerpc)
9610            # see comment about AmigaOS4 .so support
9611            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9612            archive_expsym_cmds=''
9613        ;;
9614      m68k)
9615            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)'
9616            hardcode_libdir_flag_spec='-L$libdir'
9617            hardcode_minus_L=yes
9618        ;;
9619      esac
9620      ;;
9621
9622    bsdi[45]*)
9623      export_dynamic_flag_spec=-rdynamic
9624      ;;
9625
9626    cygwin* | mingw* | pw32* | cegcc*)
9627      # When not using gcc, we currently assume that we are using
9628      # Microsoft Visual C++.
9629      # hardcode_libdir_flag_spec is actually meaningless, as there is
9630      # no search path for DLLs.
9631      case $cc_basename in
9632      cl*)
9633	# Native MSVC
9634	hardcode_libdir_flag_spec=' '
9635	allow_undefined_flag=unsupported
9636	always_export_symbols=yes
9637	file_list_spec='@'
9638	# Tell ltmain to make .lib files, not .a files.
9639	libext=lib
9640	# Tell ltmain to make .dll files, not .so files.
9641	shrext_cmds=".dll"
9642	# FIXME: Setting linknames here is a bad hack.
9643	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9644	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9645	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9646	  else
9647	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9648	  fi~
9649	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9650	  linknames='
9651	# The linker will not automatically build a static lib if we build a DLL.
9652	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9653	enable_shared_with_static_runtimes=yes
9654	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9655	# Don't use ranlib
9656	old_postinstall_cmds='chmod 644 $oldlib'
9657	postlink_cmds='lt_outputfile="@OUTPUT@"~
9658	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9659	  case $lt_outputfile in
9660	    *.exe|*.EXE) ;;
9661	    *)
9662	      lt_outputfile="$lt_outputfile.exe"
9663	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9664	      ;;
9665	  esac~
9666	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9667	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9668	    $RM "$lt_outputfile.manifest";
9669	  fi'
9670	;;
9671      *)
9672	# Assume MSVC wrapper
9673	hardcode_libdir_flag_spec=' '
9674	allow_undefined_flag=unsupported
9675	# Tell ltmain to make .lib files, not .a files.
9676	libext=lib
9677	# Tell ltmain to make .dll files, not .so files.
9678	shrext_cmds=".dll"
9679	# FIXME: Setting linknames here is a bad hack.
9680	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9681	# The linker will automatically build a .lib file if we build a DLL.
9682	old_archive_from_new_cmds='true'
9683	# FIXME: Should let the user specify the lib program.
9684	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9685	enable_shared_with_static_runtimes=yes
9686	;;
9687      esac
9688      ;;
9689
9690    darwin* | rhapsody*)
9691
9692
9693  archive_cmds_need_lc=no
9694  hardcode_direct=no
9695  hardcode_automatic=yes
9696  hardcode_shlibpath_var=unsupported
9697  if test "$lt_cv_ld_force_load" = "yes"; then
9698    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\"`'
9699  else
9700    whole_archive_flag_spec=''
9701  fi
9702  link_all_deplibs=yes
9703  allow_undefined_flag="$_lt_dar_allow_undefined"
9704  case $cc_basename in
9705     ifort*) _lt_dar_can_shared=yes ;;
9706     *) _lt_dar_can_shared=$GCC ;;
9707  esac
9708  if test "$_lt_dar_can_shared" = "yes"; then
9709    output_verbose_link_cmd=func_echo_all
9710    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9711    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9712    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}"
9713    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}"
9714
9715  else
9716  ld_shlibs=no
9717  fi
9718
9719      ;;
9720
9721    dgux*)
9722      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723      hardcode_libdir_flag_spec='-L$libdir'
9724      hardcode_shlibpath_var=no
9725      ;;
9726
9727    freebsd1*)
9728      ld_shlibs=no
9729      ;;
9730
9731    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9732    # support.  Future versions do this automatically, but an explicit c++rt0.o
9733    # does not break anything, and helps significantly (at the cost of a little
9734    # extra space).
9735    freebsd2.2*)
9736      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9737      hardcode_libdir_flag_spec='-R$libdir'
9738      hardcode_direct=yes
9739      hardcode_shlibpath_var=no
9740      ;;
9741
9742    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9743    freebsd2*)
9744      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9745      hardcode_direct=yes
9746      hardcode_minus_L=yes
9747      hardcode_shlibpath_var=no
9748      ;;
9749
9750    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9751    freebsd* | dragonfly*)
9752      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9753      hardcode_libdir_flag_spec='-R$libdir'
9754      hardcode_direct=yes
9755      hardcode_shlibpath_var=no
9756      ;;
9757
9758    hpux9*)
9759      if test "$GCC" = yes; then
9760	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'
9761      else
9762	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'
9763      fi
9764      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9765      hardcode_libdir_separator=:
9766      hardcode_direct=yes
9767
9768      # hardcode_minus_L: Not really in the search PATH,
9769      # but as the default location of the library.
9770      hardcode_minus_L=yes
9771      export_dynamic_flag_spec='${wl}-E'
9772      ;;
9773
9774    hpux10*)
9775      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9776	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9777      else
9778	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9779      fi
9780      if test "$with_gnu_ld" = no; then
9781	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9782	hardcode_libdir_flag_spec_ld='+b $libdir'
9783	hardcode_libdir_separator=:
9784	hardcode_direct=yes
9785	hardcode_direct_absolute=yes
9786	export_dynamic_flag_spec='${wl}-E'
9787	# hardcode_minus_L: Not really in the search PATH,
9788	# but as the default location of the library.
9789	hardcode_minus_L=yes
9790      fi
9791      ;;
9792
9793    hpux11*)
9794      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9795	case $host_cpu in
9796	hppa*64*)
9797	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9798	  ;;
9799	ia64*)
9800	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9801	  ;;
9802	*)
9803	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9804	  ;;
9805	esac
9806      else
9807	case $host_cpu in
9808	hppa*64*)
9809	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9810	  ;;
9811	ia64*)
9812	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9813	  ;;
9814	*)
9815
9816	  # Older versions of the 11.00 compiler do not understand -b yet
9817	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9818	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9819$as_echo_n "checking if $CC understands -b... " >&6; }
9820if ${lt_cv_prog_compiler__b+:} false; then :
9821  $as_echo_n "(cached) " >&6
9822else
9823  lt_cv_prog_compiler__b=no
9824   save_LDFLAGS="$LDFLAGS"
9825   LDFLAGS="$LDFLAGS -b"
9826   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9827   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9828     # The linker can only warn and ignore the option if not recognized
9829     # So say no if there are warnings
9830     if test -s conftest.err; then
9831       # Append any errors to the config.log.
9832       cat conftest.err 1>&5
9833       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9834       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9835       if diff conftest.exp conftest.er2 >/dev/null; then
9836         lt_cv_prog_compiler__b=yes
9837       fi
9838     else
9839       lt_cv_prog_compiler__b=yes
9840     fi
9841   fi
9842   $RM -r conftest*
9843   LDFLAGS="$save_LDFLAGS"
9844
9845fi
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9847$as_echo "$lt_cv_prog_compiler__b" >&6; }
9848
9849if test x"$lt_cv_prog_compiler__b" = xyes; then
9850    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9851else
9852    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9853fi
9854
9855	  ;;
9856	esac
9857      fi
9858      if test "$with_gnu_ld" = no; then
9859	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9860	hardcode_libdir_separator=:
9861
9862	case $host_cpu in
9863	hppa*64*|ia64*)
9864	  hardcode_direct=no
9865	  hardcode_shlibpath_var=no
9866	  ;;
9867	*)
9868	  hardcode_direct=yes
9869	  hardcode_direct_absolute=yes
9870	  export_dynamic_flag_spec='${wl}-E'
9871
9872	  # hardcode_minus_L: Not really in the search PATH,
9873	  # but as the default location of the library.
9874	  hardcode_minus_L=yes
9875	  ;;
9876	esac
9877      fi
9878      ;;
9879
9880    irix5* | irix6* | nonstopux*)
9881      if test "$GCC" = yes; then
9882	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'
9883	# Try to use the -exported_symbol ld option, if it does not
9884	# work, assume that -exports_file does not work either and
9885	# implicitly export all symbols.
9886	# This should be the same for all languages, so no per-tag cache variable.
9887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9888$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9889if ${lt_cv_irix_exported_symbol+:} false; then :
9890  $as_echo_n "(cached) " >&6
9891else
9892  save_LDFLAGS="$LDFLAGS"
9893	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9894	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895/* end confdefs.h.  */
9896int foo (void) { return 0; }
9897_ACEOF
9898if ac_fn_c_try_link "$LINENO"; then :
9899  lt_cv_irix_exported_symbol=yes
9900else
9901  lt_cv_irix_exported_symbol=no
9902fi
9903rm -f core conftest.err conftest.$ac_objext \
9904    conftest$ac_exeext conftest.$ac_ext
9905           LDFLAGS="$save_LDFLAGS"
9906fi
9907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9908$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9909	if test "$lt_cv_irix_exported_symbol" = yes; then
9910          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'
9911	fi
9912      else
9913	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'
9914	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'
9915      fi
9916      archive_cmds_need_lc='no'
9917      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9918      hardcode_libdir_separator=:
9919      inherit_rpath=yes
9920      link_all_deplibs=yes
9921      ;;
9922
9923    netbsd* | netbsdelf*-gnu)
9924      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9925	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9926      else
9927	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9928      fi
9929      hardcode_libdir_flag_spec='-R$libdir'
9930      hardcode_direct=yes
9931      hardcode_shlibpath_var=no
9932      ;;
9933
9934    newsos6)
9935      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9936      hardcode_direct=yes
9937      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9938      hardcode_libdir_separator=:
9939      hardcode_shlibpath_var=no
9940      ;;
9941
9942    *nto* | *qnx*)
9943      ;;
9944
9945    openbsd*)
9946      if test -f /usr/libexec/ld.so; then
9947	hardcode_direct=yes
9948	hardcode_shlibpath_var=no
9949	hardcode_direct_absolute=yes
9950	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9951	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9952	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9953	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9954	  export_dynamic_flag_spec='${wl}-E'
9955	else
9956	  case $host_os in
9957	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9958	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9959	     hardcode_libdir_flag_spec='-R$libdir'
9960	     ;;
9961	   *)
9962	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9963	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9964	     ;;
9965	  esac
9966	fi
9967      else
9968	ld_shlibs=no
9969      fi
9970      ;;
9971
9972    os2*)
9973      hardcode_libdir_flag_spec='-L$libdir'
9974      hardcode_minus_L=yes
9975      allow_undefined_flag=unsupported
9976      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'
9977      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9978      ;;
9979
9980    osf3*)
9981      if test "$GCC" = yes; then
9982	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9983	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'
9984      else
9985	allow_undefined_flag=' -expect_unresolved \*'
9986	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'
9987      fi
9988      archive_cmds_need_lc='no'
9989      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9990      hardcode_libdir_separator=:
9991      ;;
9992
9993    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9994      if test "$GCC" = yes; then
9995	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9996	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'
9997	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9998      else
9999	allow_undefined_flag=' -expect_unresolved \*'
10000	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'
10001	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~
10002	$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'
10003
10004	# Both c and cxx compiler support -rpath directly
10005	hardcode_libdir_flag_spec='-rpath $libdir'
10006      fi
10007      archive_cmds_need_lc='no'
10008      hardcode_libdir_separator=:
10009      ;;
10010
10011    solaris*)
10012      no_undefined_flag=' -z defs'
10013      if test "$GCC" = yes; then
10014	wlarc='${wl}'
10015	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10016	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10017	  $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'
10018      else
10019	case `$CC -V 2>&1` in
10020	*"Compilers 5.0"*)
10021	  wlarc=''
10022	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10024	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10025	  ;;
10026	*)
10027	  wlarc='${wl}'
10028	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10029	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10030	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10031	  ;;
10032	esac
10033      fi
10034      hardcode_libdir_flag_spec='-R$libdir'
10035      hardcode_shlibpath_var=no
10036      case $host_os in
10037      solaris2.[0-5] | solaris2.[0-5].*) ;;
10038      *)
10039	# The compiler driver will combine and reorder linker options,
10040	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10041	# but is careful enough not to reorder.
10042	# Supported since Solaris 2.6 (maybe 2.5.1?)
10043	if test "$GCC" = yes; then
10044	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10045	else
10046	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10047	fi
10048	;;
10049      esac
10050      link_all_deplibs=yes
10051      ;;
10052
10053    sunos4*)
10054      if test "x$host_vendor" = xsequent; then
10055	# Use $CC to link under sequent, because it throws in some extra .o
10056	# files that make .init and .fini sections work.
10057	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10058      else
10059	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10060      fi
10061      hardcode_libdir_flag_spec='-L$libdir'
10062      hardcode_direct=yes
10063      hardcode_minus_L=yes
10064      hardcode_shlibpath_var=no
10065      ;;
10066
10067    sysv4)
10068      case $host_vendor in
10069	sni)
10070	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071	  hardcode_direct=yes # is this really true???
10072	;;
10073	siemens)
10074	  ## LD is ld it makes a PLAMLIB
10075	  ## CC just makes a GrossModule.
10076	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10077	  reload_cmds='$CC -r -o $output$reload_objs'
10078	  hardcode_direct=no
10079        ;;
10080	motorola)
10081	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10082	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10083	;;
10084      esac
10085      runpath_var='LD_RUN_PATH'
10086      hardcode_shlibpath_var=no
10087      ;;
10088
10089    sysv4.3*)
10090      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091      hardcode_shlibpath_var=no
10092      export_dynamic_flag_spec='-Bexport'
10093      ;;
10094
10095    sysv4*MP*)
10096      if test -d /usr/nec; then
10097	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098	hardcode_shlibpath_var=no
10099	runpath_var=LD_RUN_PATH
10100	hardcode_runpath_var=yes
10101	ld_shlibs=yes
10102      fi
10103      ;;
10104
10105    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10106      no_undefined_flag='${wl}-z,text'
10107      archive_cmds_need_lc=no
10108      hardcode_shlibpath_var=no
10109      runpath_var='LD_RUN_PATH'
10110
10111      if test "$GCC" = yes; then
10112	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114      else
10115	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117      fi
10118      ;;
10119
10120    sysv5* | sco3.2v5* | sco5v6*)
10121      # Note: We can NOT use -z defs as we might desire, because we do not
10122      # link with -lc, and that would cause any symbols used from libc to
10123      # always be unresolved, which means just about no library would
10124      # ever link correctly.  If we're not using GNU ld we use -z text
10125      # though, which does catch some bad symbols but isn't as heavy-handed
10126      # as -z defs.
10127      no_undefined_flag='${wl}-z,text'
10128      allow_undefined_flag='${wl}-z,nodefs'
10129      archive_cmds_need_lc=no
10130      hardcode_shlibpath_var=no
10131      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10132      hardcode_libdir_separator=':'
10133      link_all_deplibs=yes
10134      export_dynamic_flag_spec='${wl}-Bexport'
10135      runpath_var='LD_RUN_PATH'
10136
10137      if test "$GCC" = yes; then
10138	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140      else
10141	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10142	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143      fi
10144      ;;
10145
10146    uts4*)
10147      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10148      hardcode_libdir_flag_spec='-L$libdir'
10149      hardcode_shlibpath_var=no
10150      ;;
10151
10152    *)
10153      ld_shlibs=no
10154      ;;
10155    esac
10156
10157    if test x$host_vendor = xsni; then
10158      case $host in
10159      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10160	export_dynamic_flag_spec='${wl}-Blargedynsym'
10161	;;
10162      esac
10163    fi
10164  fi
10165
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10167$as_echo "$ld_shlibs" >&6; }
10168test "$ld_shlibs" = no && can_build_shared=no
10169
10170with_gnu_ld=$with_gnu_ld
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186#
10187# Do we need to explicitly link libc?
10188#
10189case "x$archive_cmds_need_lc" in
10190x|xyes)
10191  # Assume -lc should be added
10192  archive_cmds_need_lc=yes
10193
10194  if test "$enable_shared" = yes && test "$GCC" = yes; then
10195    case $archive_cmds in
10196    *'~'*)
10197      # FIXME: we may have to deal with multi-command sequences.
10198      ;;
10199    '$CC '*)
10200      # Test whether the compiler implicitly links with -lc since on some
10201      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10202      # to ld, don't add -lc before -lgcc.
10203      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10204$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10205if ${lt_cv_archive_cmds_need_lc+:} false; then :
10206  $as_echo_n "(cached) " >&6
10207else
10208  $RM conftest*
10209	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10210
10211	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10212  (eval $ac_compile) 2>&5
10213  ac_status=$?
10214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10215  test $ac_status = 0; } 2>conftest.err; then
10216	  soname=conftest
10217	  lib=conftest
10218	  libobjs=conftest.$ac_objext
10219	  deplibs=
10220	  wl=$lt_prog_compiler_wl
10221	  pic_flag=$lt_prog_compiler_pic
10222	  compiler_flags=-v
10223	  linker_flags=-v
10224	  verstring=
10225	  output_objdir=.
10226	  libname=conftest
10227	  lt_save_allow_undefined_flag=$allow_undefined_flag
10228	  allow_undefined_flag=
10229	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10230  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10231  ac_status=$?
10232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10233  test $ac_status = 0; }
10234	  then
10235	    lt_cv_archive_cmds_need_lc=no
10236	  else
10237	    lt_cv_archive_cmds_need_lc=yes
10238	  fi
10239	  allow_undefined_flag=$lt_save_allow_undefined_flag
10240	else
10241	  cat conftest.err 1>&5
10242	fi
10243	$RM conftest*
10244
10245fi
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10247$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10248      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10249      ;;
10250    esac
10251  fi
10252  ;;
10253esac
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10412$as_echo_n "checking dynamic linker characteristics... " >&6; }
10413
10414if test "$GCC" = yes; then
10415  case $host_os in
10416    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10417    *) lt_awk_arg="/^libraries:/" ;;
10418  esac
10419  case $host_os in
10420    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10421    *) lt_sed_strip_eq="s,=/,/,g" ;;
10422  esac
10423  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10424  case $lt_search_path_spec in
10425  *\;*)
10426    # if the path contains ";" then we assume it to be the separator
10427    # otherwise default to the standard path separator (i.e. ":") - it is
10428    # assumed that no part of a normal pathname contains ";" but that should
10429    # okay in the real world where ";" in dirpaths is itself problematic.
10430    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10431    ;;
10432  *)
10433    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10434    ;;
10435  esac
10436  # Ok, now we have the path, separated by spaces, we can step through it
10437  # and add multilib dir if necessary.
10438  lt_tmp_lt_search_path_spec=
10439  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10440  for lt_sys_path in $lt_search_path_spec; do
10441    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10442      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10443    else
10444      test -d "$lt_sys_path" && \
10445	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10446    fi
10447  done
10448  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10449BEGIN {RS=" "; FS="/|\n";} {
10450  lt_foo="";
10451  lt_count=0;
10452  for (lt_i = NF; lt_i > 0; lt_i--) {
10453    if ($lt_i != "" && $lt_i != ".") {
10454      if ($lt_i == "..") {
10455        lt_count++;
10456      } else {
10457        if (lt_count == 0) {
10458          lt_foo="/" $lt_i lt_foo;
10459        } else {
10460          lt_count--;
10461        }
10462      }
10463    }
10464  }
10465  if (lt_foo != "") { lt_freq[lt_foo]++; }
10466  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10467}'`
10468  # AWK program above erroneously prepends '/' to C:/dos/paths
10469  # for these hosts.
10470  case $host_os in
10471    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10472      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10473  esac
10474  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10475else
10476  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10477fi
10478library_names_spec=
10479libname_spec='lib$name'
10480soname_spec=
10481shrext_cmds=".so"
10482postinstall_cmds=
10483postuninstall_cmds=
10484finish_cmds=
10485finish_eval=
10486shlibpath_var=
10487shlibpath_overrides_runpath=unknown
10488version_type=none
10489dynamic_linker="$host_os ld.so"
10490sys_lib_dlsearch_path_spec="/lib /usr/lib"
10491need_lib_prefix=unknown
10492hardcode_into_libs=no
10493
10494# when you set need_version to no, make sure it does not cause -set_version
10495# flags to be left without arguments
10496need_version=unknown
10497
10498case $host_os in
10499aix3*)
10500  version_type=linux
10501  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10502  shlibpath_var=LIBPATH
10503
10504  # AIX 3 has no versioning support, so we append a major version to the name.
10505  soname_spec='${libname}${release}${shared_ext}$major'
10506  ;;
10507
10508aix[4-9]*)
10509  version_type=linux
10510  need_lib_prefix=no
10511  need_version=no
10512  hardcode_into_libs=yes
10513  if test "$host_cpu" = ia64; then
10514    # AIX 5 supports IA64
10515    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10516    shlibpath_var=LD_LIBRARY_PATH
10517  else
10518    # With GCC up to 2.95.x, collect2 would create an import file
10519    # for dependence libraries.  The import file would start with
10520    # the line `#! .'.  This would cause the generated library to
10521    # depend on `.', always an invalid library.  This was fixed in
10522    # development snapshots of GCC prior to 3.0.
10523    case $host_os in
10524      aix4 | aix4.[01] | aix4.[01].*)
10525      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10526	   echo ' yes '
10527	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10528	:
10529      else
10530	can_build_shared=no
10531      fi
10532      ;;
10533    esac
10534    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10535    # soname into executable. Probably we can add versioning support to
10536    # collect2, so additional links can be useful in future.
10537    if test "$aix_use_runtimelinking" = yes; then
10538      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10539      # instead of lib<name>.a to let people know that these are not
10540      # typical AIX shared libraries.
10541      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542    else
10543      # We preserve .a as extension for shared libraries through AIX4.2
10544      # and later when we are not doing run time linking.
10545      library_names_spec='${libname}${release}.a $libname.a'
10546      soname_spec='${libname}${release}${shared_ext}$major'
10547    fi
10548    shlibpath_var=LIBPATH
10549  fi
10550  ;;
10551
10552amigaos*)
10553  case $host_cpu in
10554  powerpc)
10555    # Since July 2007 AmigaOS4 officially supports .so libraries.
10556    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10557    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558    ;;
10559  m68k)
10560    library_names_spec='$libname.ixlibrary $libname.a'
10561    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10562    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'
10563    ;;
10564  esac
10565  ;;
10566
10567beos*)
10568  library_names_spec='${libname}${shared_ext}'
10569  dynamic_linker="$host_os ld.so"
10570  shlibpath_var=LIBRARY_PATH
10571  ;;
10572
10573bsdi[45]*)
10574  version_type=linux
10575  need_version=no
10576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577  soname_spec='${libname}${release}${shared_ext}$major'
10578  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10579  shlibpath_var=LD_LIBRARY_PATH
10580  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10581  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10582  # the default ld.so.conf also contains /usr/contrib/lib and
10583  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10584  # libtool to hard-code these into programs
10585  ;;
10586
10587cygwin* | mingw* | pw32* | cegcc*)
10588  version_type=windows
10589  shrext_cmds=".dll"
10590  need_version=no
10591  need_lib_prefix=no
10592
10593  case $GCC,$cc_basename in
10594  yes,*)
10595    # gcc
10596    library_names_spec='$libname.dll.a'
10597    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10598    postinstall_cmds='base_file=`basename \${file}`~
10599      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10600      dldir=$destdir/`dirname \$dlpath`~
10601      test -d \$dldir || mkdir -p \$dldir~
10602      $install_prog $dir/$dlname \$dldir/$dlname~
10603      chmod a+x \$dldir/$dlname~
10604      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10605        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10606      fi'
10607    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10608      dlpath=$dir/\$dldll~
10609       $RM \$dlpath'
10610    shlibpath_overrides_runpath=yes
10611
10612    case $host_os in
10613    cygwin*)
10614      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10615      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10616
10617      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10618      ;;
10619    mingw* | cegcc*)
10620      # MinGW DLLs use traditional 'lib' prefix
10621      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10622      ;;
10623    pw32*)
10624      # pw32 DLLs use 'pw' prefix rather than 'lib'
10625      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10626      ;;
10627    esac
10628    dynamic_linker='Win32 ld.exe'
10629    ;;
10630
10631  *,cl*)
10632    # Native MSVC
10633    libname_spec='$name'
10634    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10635    library_names_spec='${libname}.dll.lib'
10636
10637    case $build_os in
10638    mingw*)
10639      sys_lib_search_path_spec=
10640      lt_save_ifs=$IFS
10641      IFS=';'
10642      for lt_path in $LIB
10643      do
10644        IFS=$lt_save_ifs
10645        # Let DOS variable expansion print the short 8.3 style file name.
10646        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10647        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10648      done
10649      IFS=$lt_save_ifs
10650      # Convert to MSYS style.
10651      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10652      ;;
10653    cygwin*)
10654      # Convert to unix form, then to dos form, then back to unix form
10655      # but this time dos style (no spaces!) so that the unix form looks
10656      # like /cygdrive/c/PROGRA~1:/cygdr...
10657      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10658      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10659      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10660      ;;
10661    *)
10662      sys_lib_search_path_spec="$LIB"
10663      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10664        # It is most probably a Windows format PATH.
10665        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10666      else
10667        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10668      fi
10669      # FIXME: find the short name or the path components, as spaces are
10670      # common. (e.g. "Program Files" -> "PROGRA~1")
10671      ;;
10672    esac
10673
10674    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10675    postinstall_cmds='base_file=`basename \${file}`~
10676      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10677      dldir=$destdir/`dirname \$dlpath`~
10678      test -d \$dldir || mkdir -p \$dldir~
10679      $install_prog $dir/$dlname \$dldir/$dlname'
10680    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10681      dlpath=$dir/\$dldll~
10682       $RM \$dlpath'
10683    shlibpath_overrides_runpath=yes
10684    dynamic_linker='Win32 link.exe'
10685    ;;
10686
10687  *)
10688    # Assume MSVC wrapper
10689    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10690    dynamic_linker='Win32 ld.exe'
10691    ;;
10692  esac
10693  # FIXME: first we should search . and the directory the executable is in
10694  shlibpath_var=PATH
10695  ;;
10696
10697darwin* | rhapsody*)
10698  dynamic_linker="$host_os dyld"
10699  version_type=darwin
10700  need_lib_prefix=no
10701  need_version=no
10702  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10703  soname_spec='${libname}${release}${major}$shared_ext'
10704  shlibpath_overrides_runpath=yes
10705  shlibpath_var=DYLD_LIBRARY_PATH
10706  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10707
10708  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10709  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10710  ;;
10711
10712dgux*)
10713  version_type=linux
10714  need_lib_prefix=no
10715  need_version=no
10716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10717  soname_spec='${libname}${release}${shared_ext}$major'
10718  shlibpath_var=LD_LIBRARY_PATH
10719  ;;
10720
10721freebsd1*)
10722  dynamic_linker=no
10723  ;;
10724
10725freebsd* | dragonfly*)
10726  # DragonFly does not have aout.  When/if they implement a new
10727  # versioning mechanism, adjust this.
10728  if test -x /usr/bin/objformat; then
10729    objformat=`/usr/bin/objformat`
10730  else
10731    case $host_os in
10732    freebsd[123]*) objformat=aout ;;
10733    *) objformat=elf ;;
10734    esac
10735  fi
10736  version_type=freebsd-$objformat
10737  case $version_type in
10738    freebsd-elf*)
10739      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10740      need_version=no
10741      need_lib_prefix=no
10742      ;;
10743    freebsd-*)
10744      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10745      need_version=yes
10746      ;;
10747  esac
10748  shlibpath_var=LD_LIBRARY_PATH
10749  case $host_os in
10750  freebsd2*)
10751    shlibpath_overrides_runpath=yes
10752    ;;
10753  freebsd3.[01]* | freebsdelf3.[01]*)
10754    shlibpath_overrides_runpath=yes
10755    hardcode_into_libs=yes
10756    ;;
10757  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10758  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10759    shlibpath_overrides_runpath=no
10760    hardcode_into_libs=yes
10761    ;;
10762  *) # from 4.6 on, and DragonFly
10763    shlibpath_overrides_runpath=yes
10764    hardcode_into_libs=yes
10765    ;;
10766  esac
10767  ;;
10768
10769gnu*)
10770  version_type=linux
10771  need_lib_prefix=no
10772  need_version=no
10773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10774  soname_spec='${libname}${release}${shared_ext}$major'
10775  shlibpath_var=LD_LIBRARY_PATH
10776  shlibpath_overrides_runpath=no
10777  hardcode_into_libs=yes
10778  ;;
10779
10780haiku*)
10781  version_type=linux
10782  need_lib_prefix=no
10783  need_version=no
10784  dynamic_linker="$host_os runtime_loader"
10785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10786  soname_spec='${libname}${release}${shared_ext}$major'
10787  shlibpath_var=LIBRARY_PATH
10788  shlibpath_overrides_runpath=yes
10789  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10790  hardcode_into_libs=yes
10791  ;;
10792
10793hpux9* | hpux10* | hpux11*)
10794  # Give a soname corresponding to the major version so that dld.sl refuses to
10795  # link against other versions.
10796  version_type=sunos
10797  need_lib_prefix=no
10798  need_version=no
10799  case $host_cpu in
10800  ia64*)
10801    shrext_cmds='.so'
10802    hardcode_into_libs=yes
10803    dynamic_linker="$host_os dld.so"
10804    shlibpath_var=LD_LIBRARY_PATH
10805    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10806    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807    soname_spec='${libname}${release}${shared_ext}$major'
10808    if test "X$HPUX_IA64_MODE" = X32; then
10809      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10810    else
10811      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10812    fi
10813    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10814    ;;
10815  hppa*64*)
10816    shrext_cmds='.sl'
10817    hardcode_into_libs=yes
10818    dynamic_linker="$host_os dld.sl"
10819    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10820    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10821    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822    soname_spec='${libname}${release}${shared_ext}$major'
10823    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10824    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10825    ;;
10826  *)
10827    shrext_cmds='.sl'
10828    dynamic_linker="$host_os dld.sl"
10829    shlibpath_var=SHLIB_PATH
10830    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10831    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832    soname_spec='${libname}${release}${shared_ext}$major'
10833    ;;
10834  esac
10835  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10836  postinstall_cmds='chmod 555 $lib'
10837  # or fails outright, so override atomically:
10838  install_override_mode=555
10839  ;;
10840
10841interix[3-9]*)
10842  version_type=linux
10843  need_lib_prefix=no
10844  need_version=no
10845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10846  soname_spec='${libname}${release}${shared_ext}$major'
10847  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10848  shlibpath_var=LD_LIBRARY_PATH
10849  shlibpath_overrides_runpath=no
10850  hardcode_into_libs=yes
10851  ;;
10852
10853irix5* | irix6* | nonstopux*)
10854  case $host_os in
10855    nonstopux*) version_type=nonstopux ;;
10856    *)
10857	if test "$lt_cv_prog_gnu_ld" = yes; then
10858		version_type=linux
10859	else
10860		version_type=irix
10861	fi ;;
10862  esac
10863  need_lib_prefix=no
10864  need_version=no
10865  soname_spec='${libname}${release}${shared_ext}$major'
10866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10867  case $host_os in
10868  irix5* | nonstopux*)
10869    libsuff= shlibsuff=
10870    ;;
10871  *)
10872    case $LD in # libtool.m4 will add one of these switches to LD
10873    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10874      libsuff= shlibsuff= libmagic=32-bit;;
10875    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10876      libsuff=32 shlibsuff=N32 libmagic=N32;;
10877    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10878      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10879    *) libsuff= shlibsuff= libmagic=never-match;;
10880    esac
10881    ;;
10882  esac
10883  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10884  shlibpath_overrides_runpath=no
10885  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10886  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10887  hardcode_into_libs=yes
10888  ;;
10889
10890# No shared lib support for Linux oldld, aout, or coff.
10891linux*oldld* | linux*aout* | linux*coff*)
10892  dynamic_linker=no
10893  ;;
10894
10895# This must be Linux ELF.
10896linux* | k*bsd*-gnu | kopensolaris*-gnu)
10897  version_type=linux
10898  need_lib_prefix=no
10899  need_version=no
10900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901  soname_spec='${libname}${release}${shared_ext}$major'
10902  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10903  shlibpath_var=LD_LIBRARY_PATH
10904  shlibpath_overrides_runpath=no
10905
10906  # Some binutils ld are patched to set DT_RUNPATH
10907  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10908  $as_echo_n "(cached) " >&6
10909else
10910  lt_cv_shlibpath_overrides_runpath=no
10911    save_LDFLAGS=$LDFLAGS
10912    save_libdir=$libdir
10913    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10914	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10915    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916/* end confdefs.h.  */
10917
10918int
10919main ()
10920{
10921
10922  ;
10923  return 0;
10924}
10925_ACEOF
10926if ac_fn_c_try_link "$LINENO"; then :
10927  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10928  lt_cv_shlibpath_overrides_runpath=yes
10929fi
10930fi
10931rm -f core conftest.err conftest.$ac_objext \
10932    conftest$ac_exeext conftest.$ac_ext
10933    LDFLAGS=$save_LDFLAGS
10934    libdir=$save_libdir
10935
10936fi
10937
10938  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10939
10940  # This implies no fast_install, which is unacceptable.
10941  # Some rework will be needed to allow for fast_install
10942  # before this can be enabled.
10943  hardcode_into_libs=yes
10944
10945  # Append ld.so.conf contents to the search path
10946  if test -f /etc/ld.so.conf; then
10947    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' ' '`
10948    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10949  fi
10950
10951  # We used to test for /lib/ld.so.1 and disable shared libraries on
10952  # powerpc, because MkLinux only supported shared libraries with the
10953  # GNU dynamic linker.  Since this was broken with cross compilers,
10954  # most powerpc-linux boxes support dynamic linking these days and
10955  # people can always --disable-shared, the test was removed, and we
10956  # assume the GNU/Linux dynamic linker is in use.
10957  dynamic_linker='GNU/Linux ld.so'
10958  ;;
10959
10960netbsdelf*-gnu)
10961  version_type=linux
10962  need_lib_prefix=no
10963  need_version=no
10964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10965  soname_spec='${libname}${release}${shared_ext}$major'
10966  shlibpath_var=LD_LIBRARY_PATH
10967  shlibpath_overrides_runpath=no
10968  hardcode_into_libs=yes
10969  dynamic_linker='NetBSD ld.elf_so'
10970  ;;
10971
10972netbsd*)
10973  version_type=sunos
10974  need_lib_prefix=no
10975  need_version=no
10976  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10977    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10978    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10979    dynamic_linker='NetBSD (a.out) ld.so'
10980  else
10981    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10982    soname_spec='${libname}${release}${shared_ext}$major'
10983    dynamic_linker='NetBSD ld.elf_so'
10984  fi
10985  shlibpath_var=LD_LIBRARY_PATH
10986  shlibpath_overrides_runpath=yes
10987  hardcode_into_libs=yes
10988  ;;
10989
10990newsos6)
10991  version_type=linux
10992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10993  shlibpath_var=LD_LIBRARY_PATH
10994  shlibpath_overrides_runpath=yes
10995  ;;
10996
10997*nto* | *qnx*)
10998  version_type=qnx
10999  need_lib_prefix=no
11000  need_version=no
11001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002  soname_spec='${libname}${release}${shared_ext}$major'
11003  shlibpath_var=LD_LIBRARY_PATH
11004  shlibpath_overrides_runpath=no
11005  hardcode_into_libs=yes
11006  dynamic_linker='ldqnx.so'
11007  ;;
11008
11009openbsd*)
11010  version_type=sunos
11011  sys_lib_dlsearch_path_spec="/usr/lib"
11012  need_lib_prefix=no
11013  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11014  case $host_os in
11015    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11016    *)				need_version=no  ;;
11017  esac
11018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11019  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11020  shlibpath_var=LD_LIBRARY_PATH
11021  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11022    case $host_os in
11023      openbsd2.[89] | openbsd2.[89].*)
11024	shlibpath_overrides_runpath=no
11025	;;
11026      *)
11027	shlibpath_overrides_runpath=yes
11028	;;
11029      esac
11030  else
11031    shlibpath_overrides_runpath=yes
11032  fi
11033  ;;
11034
11035os2*)
11036  libname_spec='$name'
11037  shrext_cmds=".dll"
11038  need_lib_prefix=no
11039  library_names_spec='$libname${shared_ext} $libname.a'
11040  dynamic_linker='OS/2 ld.exe'
11041  shlibpath_var=LIBPATH
11042  ;;
11043
11044osf3* | osf4* | osf5*)
11045  version_type=osf
11046  need_lib_prefix=no
11047  need_version=no
11048  soname_spec='${libname}${release}${shared_ext}$major'
11049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050  shlibpath_var=LD_LIBRARY_PATH
11051  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11052  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11053  ;;
11054
11055rdos*)
11056  dynamic_linker=no
11057  ;;
11058
11059solaris*)
11060  version_type=linux
11061  need_lib_prefix=no
11062  need_version=no
11063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064  soname_spec='${libname}${release}${shared_ext}$major'
11065  shlibpath_var=LD_LIBRARY_PATH
11066  shlibpath_overrides_runpath=yes
11067  hardcode_into_libs=yes
11068  # ldd complains unless libraries are executable
11069  postinstall_cmds='chmod +x $lib'
11070  ;;
11071
11072sunos4*)
11073  version_type=sunos
11074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11075  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11076  shlibpath_var=LD_LIBRARY_PATH
11077  shlibpath_overrides_runpath=yes
11078  if test "$with_gnu_ld" = yes; then
11079    need_lib_prefix=no
11080  fi
11081  need_version=yes
11082  ;;
11083
11084sysv4 | sysv4.3*)
11085  version_type=linux
11086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11087  soname_spec='${libname}${release}${shared_ext}$major'
11088  shlibpath_var=LD_LIBRARY_PATH
11089  case $host_vendor in
11090    sni)
11091      shlibpath_overrides_runpath=no
11092      need_lib_prefix=no
11093      runpath_var=LD_RUN_PATH
11094      ;;
11095    siemens)
11096      need_lib_prefix=no
11097      ;;
11098    motorola)
11099      need_lib_prefix=no
11100      need_version=no
11101      shlibpath_overrides_runpath=no
11102      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11103      ;;
11104  esac
11105  ;;
11106
11107sysv4*MP*)
11108  if test -d /usr/nec ;then
11109    version_type=linux
11110    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11111    soname_spec='$libname${shared_ext}.$major'
11112    shlibpath_var=LD_LIBRARY_PATH
11113  fi
11114  ;;
11115
11116sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11117  version_type=freebsd-elf
11118  need_lib_prefix=no
11119  need_version=no
11120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11121  soname_spec='${libname}${release}${shared_ext}$major'
11122  shlibpath_var=LD_LIBRARY_PATH
11123  shlibpath_overrides_runpath=yes
11124  hardcode_into_libs=yes
11125  if test "$with_gnu_ld" = yes; then
11126    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11127  else
11128    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11129    case $host_os in
11130      sco3.2v5*)
11131        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11132	;;
11133    esac
11134  fi
11135  sys_lib_dlsearch_path_spec='/usr/lib'
11136  ;;
11137
11138tpf*)
11139  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11140  version_type=linux
11141  need_lib_prefix=no
11142  need_version=no
11143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144  shlibpath_var=LD_LIBRARY_PATH
11145  shlibpath_overrides_runpath=no
11146  hardcode_into_libs=yes
11147  ;;
11148
11149uts4*)
11150  version_type=linux
11151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152  soname_spec='${libname}${release}${shared_ext}$major'
11153  shlibpath_var=LD_LIBRARY_PATH
11154  ;;
11155
11156*)
11157  dynamic_linker=no
11158  ;;
11159esac
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11161$as_echo "$dynamic_linker" >&6; }
11162test "$dynamic_linker" = no && can_build_shared=no
11163
11164variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11165if test "$GCC" = yes; then
11166  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11167fi
11168
11169if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11170  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11171fi
11172if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11173  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11174fi
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11268$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11269hardcode_action=
11270if test -n "$hardcode_libdir_flag_spec" ||
11271   test -n "$runpath_var" ||
11272   test "X$hardcode_automatic" = "Xyes" ; then
11273
11274  # We can hardcode non-existent directories.
11275  if test "$hardcode_direct" != no &&
11276     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11277     # have to relink, otherwise we might link with an installed library
11278     # when we should be linking with a yet-to-be-installed one
11279     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11280     test "$hardcode_minus_L" != no; then
11281    # Linking always hardcodes the temporary library directory.
11282    hardcode_action=relink
11283  else
11284    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11285    hardcode_action=immediate
11286  fi
11287else
11288  # We cannot hardcode anything, or else we can only hardcode existing
11289  # directories.
11290  hardcode_action=unsupported
11291fi
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11293$as_echo "$hardcode_action" >&6; }
11294
11295if test "$hardcode_action" = relink ||
11296   test "$inherit_rpath" = yes; then
11297  # Fast installation is not supported
11298  enable_fast_install=no
11299elif test "$shlibpath_overrides_runpath" = yes ||
11300     test "$enable_shared" = no; then
11301  # Fast installation is not necessary
11302  enable_fast_install=needless
11303fi
11304
11305
11306
11307
11308
11309
11310  if test "x$enable_dlopen" != xyes; then
11311  enable_dlopen=unknown
11312  enable_dlopen_self=unknown
11313  enable_dlopen_self_static=unknown
11314else
11315  lt_cv_dlopen=no
11316  lt_cv_dlopen_libs=
11317
11318  case $host_os in
11319  beos*)
11320    lt_cv_dlopen="load_add_on"
11321    lt_cv_dlopen_libs=
11322    lt_cv_dlopen_self=yes
11323    ;;
11324
11325  mingw* | pw32* | cegcc*)
11326    lt_cv_dlopen="LoadLibrary"
11327    lt_cv_dlopen_libs=
11328    ;;
11329
11330  cygwin*)
11331    lt_cv_dlopen="dlopen"
11332    lt_cv_dlopen_libs=
11333    ;;
11334
11335  darwin*)
11336  # if libdl is installed we need to link against it
11337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11338$as_echo_n "checking for dlopen in -ldl... " >&6; }
11339if ${ac_cv_lib_dl_dlopen+:} false; then :
11340  $as_echo_n "(cached) " >&6
11341else
11342  ac_check_lib_save_LIBS=$LIBS
11343LIBS="-ldl  $LIBS"
11344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345/* end confdefs.h.  */
11346
11347/* Override any GCC internal prototype to avoid an error.
11348   Use char because int might match the return type of a GCC
11349   builtin and then its argument prototype would still apply.  */
11350#ifdef __cplusplus
11351extern "C"
11352#endif
11353char dlopen ();
11354int
11355main ()
11356{
11357return dlopen ();
11358  ;
11359  return 0;
11360}
11361_ACEOF
11362if ac_fn_c_try_link "$LINENO"; then :
11363  ac_cv_lib_dl_dlopen=yes
11364else
11365  ac_cv_lib_dl_dlopen=no
11366fi
11367rm -f core conftest.err conftest.$ac_objext \
11368    conftest$ac_exeext conftest.$ac_ext
11369LIBS=$ac_check_lib_save_LIBS
11370fi
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11372$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11373if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11374  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11375else
11376
11377    lt_cv_dlopen="dyld"
11378    lt_cv_dlopen_libs=
11379    lt_cv_dlopen_self=yes
11380
11381fi
11382
11383    ;;
11384
11385  *)
11386    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11387if test "x$ac_cv_func_shl_load" = xyes; then :
11388  lt_cv_dlopen="shl_load"
11389else
11390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11391$as_echo_n "checking for shl_load in -ldld... " >&6; }
11392if ${ac_cv_lib_dld_shl_load+:} false; then :
11393  $as_echo_n "(cached) " >&6
11394else
11395  ac_check_lib_save_LIBS=$LIBS
11396LIBS="-ldld  $LIBS"
11397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398/* end confdefs.h.  */
11399
11400/* Override any GCC internal prototype to avoid an error.
11401   Use char because int might match the return type of a GCC
11402   builtin and then its argument prototype would still apply.  */
11403#ifdef __cplusplus
11404extern "C"
11405#endif
11406char shl_load ();
11407int
11408main ()
11409{
11410return shl_load ();
11411  ;
11412  return 0;
11413}
11414_ACEOF
11415if ac_fn_c_try_link "$LINENO"; then :
11416  ac_cv_lib_dld_shl_load=yes
11417else
11418  ac_cv_lib_dld_shl_load=no
11419fi
11420rm -f core conftest.err conftest.$ac_objext \
11421    conftest$ac_exeext conftest.$ac_ext
11422LIBS=$ac_check_lib_save_LIBS
11423fi
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11425$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11426if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11427  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11428else
11429  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11430if test "x$ac_cv_func_dlopen" = xyes; then :
11431  lt_cv_dlopen="dlopen"
11432else
11433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11434$as_echo_n "checking for dlopen in -ldl... " >&6; }
11435if ${ac_cv_lib_dl_dlopen+:} false; then :
11436  $as_echo_n "(cached) " >&6
11437else
11438  ac_check_lib_save_LIBS=$LIBS
11439LIBS="-ldl  $LIBS"
11440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441/* end confdefs.h.  */
11442
11443/* Override any GCC internal prototype to avoid an error.
11444   Use char because int might match the return type of a GCC
11445   builtin and then its argument prototype would still apply.  */
11446#ifdef __cplusplus
11447extern "C"
11448#endif
11449char dlopen ();
11450int
11451main ()
11452{
11453return dlopen ();
11454  ;
11455  return 0;
11456}
11457_ACEOF
11458if ac_fn_c_try_link "$LINENO"; then :
11459  ac_cv_lib_dl_dlopen=yes
11460else
11461  ac_cv_lib_dl_dlopen=no
11462fi
11463rm -f core conftest.err conftest.$ac_objext \
11464    conftest$ac_exeext conftest.$ac_ext
11465LIBS=$ac_check_lib_save_LIBS
11466fi
11467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11468$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11469if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11470  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11471else
11472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11473$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11474if ${ac_cv_lib_svld_dlopen+:} false; then :
11475  $as_echo_n "(cached) " >&6
11476else
11477  ac_check_lib_save_LIBS=$LIBS
11478LIBS="-lsvld  $LIBS"
11479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480/* end confdefs.h.  */
11481
11482/* Override any GCC internal prototype to avoid an error.
11483   Use char because int might match the return type of a GCC
11484   builtin and then its argument prototype would still apply.  */
11485#ifdef __cplusplus
11486extern "C"
11487#endif
11488char dlopen ();
11489int
11490main ()
11491{
11492return dlopen ();
11493  ;
11494  return 0;
11495}
11496_ACEOF
11497if ac_fn_c_try_link "$LINENO"; then :
11498  ac_cv_lib_svld_dlopen=yes
11499else
11500  ac_cv_lib_svld_dlopen=no
11501fi
11502rm -f core conftest.err conftest.$ac_objext \
11503    conftest$ac_exeext conftest.$ac_ext
11504LIBS=$ac_check_lib_save_LIBS
11505fi
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11507$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11508if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11509  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11510else
11511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11512$as_echo_n "checking for dld_link in -ldld... " >&6; }
11513if ${ac_cv_lib_dld_dld_link+:} false; then :
11514  $as_echo_n "(cached) " >&6
11515else
11516  ac_check_lib_save_LIBS=$LIBS
11517LIBS="-ldld  $LIBS"
11518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519/* end confdefs.h.  */
11520
11521/* Override any GCC internal prototype to avoid an error.
11522   Use char because int might match the return type of a GCC
11523   builtin and then its argument prototype would still apply.  */
11524#ifdef __cplusplus
11525extern "C"
11526#endif
11527char dld_link ();
11528int
11529main ()
11530{
11531return dld_link ();
11532  ;
11533  return 0;
11534}
11535_ACEOF
11536if ac_fn_c_try_link "$LINENO"; then :
11537  ac_cv_lib_dld_dld_link=yes
11538else
11539  ac_cv_lib_dld_dld_link=no
11540fi
11541rm -f core conftest.err conftest.$ac_objext \
11542    conftest$ac_exeext conftest.$ac_ext
11543LIBS=$ac_check_lib_save_LIBS
11544fi
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11546$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11547if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11548  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11549fi
11550
11551
11552fi
11553
11554
11555fi
11556
11557
11558fi
11559
11560
11561fi
11562
11563
11564fi
11565
11566    ;;
11567  esac
11568
11569  if test "x$lt_cv_dlopen" != xno; then
11570    enable_dlopen=yes
11571  else
11572    enable_dlopen=no
11573  fi
11574
11575  case $lt_cv_dlopen in
11576  dlopen)
11577    save_CPPFLAGS="$CPPFLAGS"
11578    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11579
11580    save_LDFLAGS="$LDFLAGS"
11581    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11582
11583    save_LIBS="$LIBS"
11584    LIBS="$lt_cv_dlopen_libs $LIBS"
11585
11586    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11587$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11588if ${lt_cv_dlopen_self+:} false; then :
11589  $as_echo_n "(cached) " >&6
11590else
11591  	  if test "$cross_compiling" = yes; then :
11592  lt_cv_dlopen_self=cross
11593else
11594  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11595  lt_status=$lt_dlunknown
11596  cat > conftest.$ac_ext <<_LT_EOF
11597#line $LINENO "configure"
11598#include "confdefs.h"
11599
11600#if HAVE_DLFCN_H
11601#include <dlfcn.h>
11602#endif
11603
11604#include <stdio.h>
11605
11606#ifdef RTLD_GLOBAL
11607#  define LT_DLGLOBAL		RTLD_GLOBAL
11608#else
11609#  ifdef DL_GLOBAL
11610#    define LT_DLGLOBAL		DL_GLOBAL
11611#  else
11612#    define LT_DLGLOBAL		0
11613#  endif
11614#endif
11615
11616/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11617   find out it does not work in some platform. */
11618#ifndef LT_DLLAZY_OR_NOW
11619#  ifdef RTLD_LAZY
11620#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11621#  else
11622#    ifdef DL_LAZY
11623#      define LT_DLLAZY_OR_NOW		DL_LAZY
11624#    else
11625#      ifdef RTLD_NOW
11626#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11627#      else
11628#        ifdef DL_NOW
11629#          define LT_DLLAZY_OR_NOW	DL_NOW
11630#        else
11631#          define LT_DLLAZY_OR_NOW	0
11632#        endif
11633#      endif
11634#    endif
11635#  endif
11636#endif
11637
11638/* When -fvisbility=hidden is used, assume the code has been annotated
11639   correspondingly for the symbols needed.  */
11640#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11641int fnord () __attribute__((visibility("default")));
11642#endif
11643
11644int fnord () { return 42; }
11645int main ()
11646{
11647  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11648  int status = $lt_dlunknown;
11649
11650  if (self)
11651    {
11652      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11653      else
11654        {
11655	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11656          else puts (dlerror ());
11657	}
11658      /* dlclose (self); */
11659    }
11660  else
11661    puts (dlerror ());
11662
11663  return status;
11664}
11665_LT_EOF
11666  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11667  (eval $ac_link) 2>&5
11668  ac_status=$?
11669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11670  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11671    (./conftest; exit; ) >&5 2>/dev/null
11672    lt_status=$?
11673    case x$lt_status in
11674      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11675      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11676      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11677    esac
11678  else :
11679    # compilation failed
11680    lt_cv_dlopen_self=no
11681  fi
11682fi
11683rm -fr conftest*
11684
11685
11686fi
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11688$as_echo "$lt_cv_dlopen_self" >&6; }
11689
11690    if test "x$lt_cv_dlopen_self" = xyes; then
11691      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11692      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11693$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11694if ${lt_cv_dlopen_self_static+:} false; then :
11695  $as_echo_n "(cached) " >&6
11696else
11697  	  if test "$cross_compiling" = yes; then :
11698  lt_cv_dlopen_self_static=cross
11699else
11700  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11701  lt_status=$lt_dlunknown
11702  cat > conftest.$ac_ext <<_LT_EOF
11703#line $LINENO "configure"
11704#include "confdefs.h"
11705
11706#if HAVE_DLFCN_H
11707#include <dlfcn.h>
11708#endif
11709
11710#include <stdio.h>
11711
11712#ifdef RTLD_GLOBAL
11713#  define LT_DLGLOBAL		RTLD_GLOBAL
11714#else
11715#  ifdef DL_GLOBAL
11716#    define LT_DLGLOBAL		DL_GLOBAL
11717#  else
11718#    define LT_DLGLOBAL		0
11719#  endif
11720#endif
11721
11722/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11723   find out it does not work in some platform. */
11724#ifndef LT_DLLAZY_OR_NOW
11725#  ifdef RTLD_LAZY
11726#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11727#  else
11728#    ifdef DL_LAZY
11729#      define LT_DLLAZY_OR_NOW		DL_LAZY
11730#    else
11731#      ifdef RTLD_NOW
11732#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11733#      else
11734#        ifdef DL_NOW
11735#          define LT_DLLAZY_OR_NOW	DL_NOW
11736#        else
11737#          define LT_DLLAZY_OR_NOW	0
11738#        endif
11739#      endif
11740#    endif
11741#  endif
11742#endif
11743
11744/* When -fvisbility=hidden is used, assume the code has been annotated
11745   correspondingly for the symbols needed.  */
11746#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11747int fnord () __attribute__((visibility("default")));
11748#endif
11749
11750int fnord () { return 42; }
11751int main ()
11752{
11753  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11754  int status = $lt_dlunknown;
11755
11756  if (self)
11757    {
11758      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11759      else
11760        {
11761	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11762          else puts (dlerror ());
11763	}
11764      /* dlclose (self); */
11765    }
11766  else
11767    puts (dlerror ());
11768
11769  return status;
11770}
11771_LT_EOF
11772  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11773  (eval $ac_link) 2>&5
11774  ac_status=$?
11775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11776  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11777    (./conftest; exit; ) >&5 2>/dev/null
11778    lt_status=$?
11779    case x$lt_status in
11780      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11781      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11782      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11783    esac
11784  else :
11785    # compilation failed
11786    lt_cv_dlopen_self_static=no
11787  fi
11788fi
11789rm -fr conftest*
11790
11791
11792fi
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11794$as_echo "$lt_cv_dlopen_self_static" >&6; }
11795    fi
11796
11797    CPPFLAGS="$save_CPPFLAGS"
11798    LDFLAGS="$save_LDFLAGS"
11799    LIBS="$save_LIBS"
11800    ;;
11801  esac
11802
11803  case $lt_cv_dlopen_self in
11804  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11805  *) enable_dlopen_self=unknown ;;
11806  esac
11807
11808  case $lt_cv_dlopen_self_static in
11809  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11810  *) enable_dlopen_self_static=unknown ;;
11811  esac
11812fi
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830striplib=
11831old_striplib=
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11833$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11834if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11835  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11836  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11838$as_echo "yes" >&6; }
11839else
11840# FIXME - insert some real tests, host_os isn't really good enough
11841  case $host_os in
11842  darwin*)
11843    if test -n "$STRIP" ; then
11844      striplib="$STRIP -x"
11845      old_striplib="$STRIP -S"
11846      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11847$as_echo "yes" >&6; }
11848    else
11849      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850$as_echo "no" >&6; }
11851    fi
11852    ;;
11853  *)
11854    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855$as_echo "no" >&6; }
11856    ;;
11857  esac
11858fi
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871  # Report which library types will actually be built
11872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11873$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11875$as_echo "$can_build_shared" >&6; }
11876
11877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11878$as_echo_n "checking whether to build shared libraries... " >&6; }
11879  test "$can_build_shared" = "no" && enable_shared=no
11880
11881  # On AIX, shared libraries and static libraries use the same namespace, and
11882  # are all built from PIC.
11883  case $host_os in
11884  aix3*)
11885    test "$enable_shared" = yes && enable_static=no
11886    if test -n "$RANLIB"; then
11887      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11888      postinstall_cmds='$RANLIB $lib'
11889    fi
11890    ;;
11891
11892  aix[4-9]*)
11893    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11894      test "$enable_shared" = yes && enable_static=no
11895    fi
11896    ;;
11897  esac
11898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11899$as_echo "$enable_shared" >&6; }
11900
11901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11902$as_echo_n "checking whether to build static libraries... " >&6; }
11903  # Make sure either enable_shared or enable_static is yes.
11904  test "$enable_shared" = yes || enable_static=yes
11905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11906$as_echo "$enable_static" >&6; }
11907
11908
11909
11910
11911fi
11912ac_ext=cpp
11913ac_cpp='$CXXCPP $CPPFLAGS'
11914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11917
11918CC="$lt_save_CC"
11919
11920      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11921    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11922    (test "X$CXX" != "Xg++"))) ; then
11923  ac_ext=cpp
11924ac_cpp='$CXXCPP $CPPFLAGS'
11925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11929$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11930if test -z "$CXXCPP"; then
11931  if ${ac_cv_prog_CXXCPP+:} false; then :
11932  $as_echo_n "(cached) " >&6
11933else
11934      # Double quotes because CXXCPP needs to be expanded
11935    for CXXCPP in "$CXX -E" "/lib/cpp"
11936    do
11937      ac_preproc_ok=false
11938for ac_cxx_preproc_warn_flag in '' yes
11939do
11940  # Use a header file that comes with gcc, so configuring glibc
11941  # with a fresh cross-compiler works.
11942  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11943  # <limits.h> exists even on freestanding compilers.
11944  # On the NeXT, cc -E runs the code through the compiler's parser,
11945  # not just through cpp. "Syntax error" is here to catch this case.
11946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947/* end confdefs.h.  */
11948#ifdef __STDC__
11949# include <limits.h>
11950#else
11951# include <assert.h>
11952#endif
11953		     Syntax error
11954_ACEOF
11955if ac_fn_cxx_try_cpp "$LINENO"; then :
11956
11957else
11958  # Broken: fails on valid input.
11959continue
11960fi
11961rm -f conftest.err conftest.i conftest.$ac_ext
11962
11963  # OK, works on sane cases.  Now check whether nonexistent headers
11964  # can be detected and how.
11965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966/* end confdefs.h.  */
11967#include <ac_nonexistent.h>
11968_ACEOF
11969if ac_fn_cxx_try_cpp "$LINENO"; then :
11970  # Broken: success on invalid input.
11971continue
11972else
11973  # Passes both tests.
11974ac_preproc_ok=:
11975break
11976fi
11977rm -f conftest.err conftest.i conftest.$ac_ext
11978
11979done
11980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11981rm -f conftest.i conftest.err conftest.$ac_ext
11982if $ac_preproc_ok; then :
11983  break
11984fi
11985
11986    done
11987    ac_cv_prog_CXXCPP=$CXXCPP
11988
11989fi
11990  CXXCPP=$ac_cv_prog_CXXCPP
11991else
11992  ac_cv_prog_CXXCPP=$CXXCPP
11993fi
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11995$as_echo "$CXXCPP" >&6; }
11996ac_preproc_ok=false
11997for ac_cxx_preproc_warn_flag in '' yes
11998do
11999  # Use a header file that comes with gcc, so configuring glibc
12000  # with a fresh cross-compiler works.
12001  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12002  # <limits.h> exists even on freestanding compilers.
12003  # On the NeXT, cc -E runs the code through the compiler's parser,
12004  # not just through cpp. "Syntax error" is here to catch this case.
12005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006/* end confdefs.h.  */
12007#ifdef __STDC__
12008# include <limits.h>
12009#else
12010# include <assert.h>
12011#endif
12012		     Syntax error
12013_ACEOF
12014if ac_fn_cxx_try_cpp "$LINENO"; then :
12015
12016else
12017  # Broken: fails on valid input.
12018continue
12019fi
12020rm -f conftest.err conftest.i conftest.$ac_ext
12021
12022  # OK, works on sane cases.  Now check whether nonexistent headers
12023  # can be detected and how.
12024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025/* end confdefs.h.  */
12026#include <ac_nonexistent.h>
12027_ACEOF
12028if ac_fn_cxx_try_cpp "$LINENO"; then :
12029  # Broken: success on invalid input.
12030continue
12031else
12032  # Passes both tests.
12033ac_preproc_ok=:
12034break
12035fi
12036rm -f conftest.err conftest.i conftest.$ac_ext
12037
12038done
12039# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12040rm -f conftest.i conftest.err conftest.$ac_ext
12041if $ac_preproc_ok; then :
12042
12043else
12044  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12046as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12047See \`config.log' for more details" "$LINENO" 5; }
12048fi
12049
12050ac_ext=cpp
12051ac_cpp='$CXXCPP $CPPFLAGS'
12052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12055
12056else
12057  _lt_caught_CXX_error=yes
12058fi
12059
12060ac_ext=cpp
12061ac_cpp='$CXXCPP $CPPFLAGS'
12062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12065
12066archive_cmds_need_lc_CXX=no
12067allow_undefined_flag_CXX=
12068always_export_symbols_CXX=no
12069archive_expsym_cmds_CXX=
12070compiler_needs_object_CXX=no
12071export_dynamic_flag_spec_CXX=
12072hardcode_direct_CXX=no
12073hardcode_direct_absolute_CXX=no
12074hardcode_libdir_flag_spec_CXX=
12075hardcode_libdir_flag_spec_ld_CXX=
12076hardcode_libdir_separator_CXX=
12077hardcode_minus_L_CXX=no
12078hardcode_shlibpath_var_CXX=unsupported
12079hardcode_automatic_CXX=no
12080inherit_rpath_CXX=no
12081module_cmds_CXX=
12082module_expsym_cmds_CXX=
12083link_all_deplibs_CXX=unknown
12084old_archive_cmds_CXX=$old_archive_cmds
12085reload_flag_CXX=$reload_flag
12086reload_cmds_CXX=$reload_cmds
12087no_undefined_flag_CXX=
12088whole_archive_flag_spec_CXX=
12089enable_shared_with_static_runtimes_CXX=no
12090
12091# Source file extension for C++ test sources.
12092ac_ext=cpp
12093
12094# Object file extension for compiled C++ test sources.
12095objext=o
12096objext_CXX=$objext
12097
12098# No sense in running all these tests if we already determined that
12099# the CXX compiler isn't working.  Some variables (like enable_shared)
12100# are currently assumed to apply to all compilers on this platform,
12101# and will be corrupted by setting them based on a non-working compiler.
12102if test "$_lt_caught_CXX_error" != yes; then
12103  # Code to be used in simple compile tests
12104  lt_simple_compile_test_code="int some_variable = 0;"
12105
12106  # Code to be used in simple link tests
12107  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12108
12109  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12110
12111
12112
12113
12114
12115
12116# If no C compiler was specified, use CC.
12117LTCC=${LTCC-"$CC"}
12118
12119# If no C compiler flags were specified, use CFLAGS.
12120LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12121
12122# Allow CC to be a program name with arguments.
12123compiler=$CC
12124
12125
12126  # save warnings/boilerplate of simple test code
12127  ac_outfile=conftest.$ac_objext
12128echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12129eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12130_lt_compiler_boilerplate=`cat conftest.err`
12131$RM conftest*
12132
12133  ac_outfile=conftest.$ac_objext
12134echo "$lt_simple_link_test_code" >conftest.$ac_ext
12135eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12136_lt_linker_boilerplate=`cat conftest.err`
12137$RM -r conftest*
12138
12139
12140  # Allow CC to be a program name with arguments.
12141  lt_save_CC=$CC
12142  lt_save_CFLAGS=$CFLAGS
12143  lt_save_LD=$LD
12144  lt_save_GCC=$GCC
12145  GCC=$GXX
12146  lt_save_with_gnu_ld=$with_gnu_ld
12147  lt_save_path_LD=$lt_cv_path_LD
12148  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12149    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12150  else
12151    $as_unset lt_cv_prog_gnu_ld
12152  fi
12153  if test -n "${lt_cv_path_LDCXX+set}"; then
12154    lt_cv_path_LD=$lt_cv_path_LDCXX
12155  else
12156    $as_unset lt_cv_path_LD
12157  fi
12158  test -z "${LDCXX+set}" || LD=$LDCXX
12159  CC=${CXX-"c++"}
12160  CFLAGS=$CXXFLAGS
12161  compiler=$CC
12162  compiler_CXX=$CC
12163  for cc_temp in $compiler""; do
12164  case $cc_temp in
12165    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12166    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12167    \-*) ;;
12168    *) break;;
12169  esac
12170done
12171cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12172
12173
12174  if test -n "$compiler"; then
12175    # We don't want -fno-exception when compiling C++ code, so set the
12176    # no_builtin_flag separately
12177    if test "$GXX" = yes; then
12178      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12179    else
12180      lt_prog_compiler_no_builtin_flag_CXX=
12181    fi
12182
12183    if test "$GXX" = yes; then
12184      # Set up default GNU C++ configuration
12185
12186
12187
12188# Check whether --with-gnu-ld was given.
12189if test "${with_gnu_ld+set}" = set; then :
12190  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12191else
12192  with_gnu_ld=no
12193fi
12194
12195ac_prog=ld
12196if test "$GCC" = yes; then
12197  # Check if gcc -print-prog-name=ld gives a path.
12198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12199$as_echo_n "checking for ld used by $CC... " >&6; }
12200  case $host in
12201  *-*-mingw*)
12202    # gcc leaves a trailing carriage return which upsets mingw
12203    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12204  *)
12205    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12206  esac
12207  case $ac_prog in
12208    # Accept absolute paths.
12209    [\\/]* | ?:[\\/]*)
12210      re_direlt='/[^/][^/]*/\.\./'
12211      # Canonicalize the pathname of ld
12212      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12213      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12214	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12215      done
12216      test -z "$LD" && LD="$ac_prog"
12217      ;;
12218  "")
12219    # If it fails, then pretend we aren't using GCC.
12220    ac_prog=ld
12221    ;;
12222  *)
12223    # If it is relative, then search for the first ld in PATH.
12224    with_gnu_ld=unknown
12225    ;;
12226  esac
12227elif test "$with_gnu_ld" = yes; then
12228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12229$as_echo_n "checking for GNU ld... " >&6; }
12230else
12231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12232$as_echo_n "checking for non-GNU ld... " >&6; }
12233fi
12234if ${lt_cv_path_LD+:} false; then :
12235  $as_echo_n "(cached) " >&6
12236else
12237  if test -z "$LD"; then
12238  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12239  for ac_dir in $PATH; do
12240    IFS="$lt_save_ifs"
12241    test -z "$ac_dir" && ac_dir=.
12242    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12243      lt_cv_path_LD="$ac_dir/$ac_prog"
12244      # Check to see if the program is GNU ld.  I'd rather use --version,
12245      # but apparently some variants of GNU ld only accept -v.
12246      # Break only if it was the GNU/non-GNU ld that we prefer.
12247      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12248      *GNU* | *'with BFD'*)
12249	test "$with_gnu_ld" != no && break
12250	;;
12251      *)
12252	test "$with_gnu_ld" != yes && break
12253	;;
12254      esac
12255    fi
12256  done
12257  IFS="$lt_save_ifs"
12258else
12259  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12260fi
12261fi
12262
12263LD="$lt_cv_path_LD"
12264if test -n "$LD"; then
12265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12266$as_echo "$LD" >&6; }
12267else
12268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269$as_echo "no" >&6; }
12270fi
12271test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12273$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12274if ${lt_cv_prog_gnu_ld+:} false; then :
12275  $as_echo_n "(cached) " >&6
12276else
12277  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12278case `$LD -v 2>&1 </dev/null` in
12279*GNU* | *'with BFD'*)
12280  lt_cv_prog_gnu_ld=yes
12281  ;;
12282*)
12283  lt_cv_prog_gnu_ld=no
12284  ;;
12285esac
12286fi
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12288$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12289with_gnu_ld=$lt_cv_prog_gnu_ld
12290
12291
12292
12293
12294
12295
12296
12297      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12298      # archiving commands below assume that GNU ld is being used.
12299      if test "$with_gnu_ld" = yes; then
12300        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12301        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'
12302
12303        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12304        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12305
12306        # If archive_cmds runs LD, not CC, wlarc should be empty
12307        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12308        #     investigate it a little bit more. (MM)
12309        wlarc='${wl}'
12310
12311        # ancient GNU ld didn't support --whole-archive et. al.
12312        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12313	  $GREP 'no-whole-archive' > /dev/null; then
12314          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12315        else
12316          whole_archive_flag_spec_CXX=
12317        fi
12318      else
12319        with_gnu_ld=no
12320        wlarc=
12321
12322        # A generic and very simple default shared library creation
12323        # command for GNU C++ for the case where it uses the native
12324        # linker, instead of GNU ld.  If possible, this setting should
12325        # overridden to take advantage of the native linker features on
12326        # the platform it is being used on.
12327        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12328      fi
12329
12330      # Commands to make compiler produce verbose output that lists
12331      # what "hidden" libraries, object files and flags are used when
12332      # linking a shared library.
12333      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12334
12335    else
12336      GXX=no
12337      with_gnu_ld=no
12338      wlarc=
12339    fi
12340
12341    # PORTME: fill in a description of your system's C++ link characteristics
12342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12343$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12344    ld_shlibs_CXX=yes
12345    case $host_os in
12346      aix3*)
12347        # FIXME: insert proper C++ library support
12348        ld_shlibs_CXX=no
12349        ;;
12350      aix[4-9]*)
12351        if test "$host_cpu" = ia64; then
12352          # On IA64, the linker does run time linking by default, so we don't
12353          # have to do anything special.
12354          aix_use_runtimelinking=no
12355          exp_sym_flag='-Bexport'
12356          no_entry_flag=""
12357        else
12358          aix_use_runtimelinking=no
12359
12360          # Test if we are trying to use run time linking or normal
12361          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12362          # need to do runtime linking.
12363          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12364	    for ld_flag in $LDFLAGS; do
12365	      case $ld_flag in
12366	      *-brtl*)
12367	        aix_use_runtimelinking=yes
12368	        break
12369	        ;;
12370	      esac
12371	    done
12372	    ;;
12373          esac
12374
12375          exp_sym_flag='-bexport'
12376          no_entry_flag='-bnoentry'
12377        fi
12378
12379        # When large executables or shared objects are built, AIX ld can
12380        # have problems creating the table of contents.  If linking a library
12381        # or program results in "error TOC overflow" add -mminimal-toc to
12382        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12383        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12384
12385        archive_cmds_CXX=''
12386        hardcode_direct_CXX=yes
12387        hardcode_direct_absolute_CXX=yes
12388        hardcode_libdir_separator_CXX=':'
12389        link_all_deplibs_CXX=yes
12390        file_list_spec_CXX='${wl}-f,'
12391
12392        if test "$GXX" = yes; then
12393          case $host_os in aix4.[012]|aix4.[012].*)
12394          # We only want to do this on AIX 4.2 and lower, the check
12395          # below for broken collect2 doesn't work under 4.3+
12396	  collect2name=`${CC} -print-prog-name=collect2`
12397	  if test -f "$collect2name" &&
12398	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12399	  then
12400	    # We have reworked collect2
12401	    :
12402	  else
12403	    # We have old collect2
12404	    hardcode_direct_CXX=unsupported
12405	    # It fails to find uninstalled libraries when the uninstalled
12406	    # path is not listed in the libpath.  Setting hardcode_minus_L
12407	    # to unsupported forces relinking
12408	    hardcode_minus_L_CXX=yes
12409	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12410	    hardcode_libdir_separator_CXX=
12411	  fi
12412          esac
12413          shared_flag='-shared'
12414	  if test "$aix_use_runtimelinking" = yes; then
12415	    shared_flag="$shared_flag "'${wl}-G'
12416	  fi
12417        else
12418          # not using gcc
12419          if test "$host_cpu" = ia64; then
12420	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12421	  # chokes on -Wl,-G. The following line is correct:
12422	  shared_flag='-G'
12423          else
12424	    if test "$aix_use_runtimelinking" = yes; then
12425	      shared_flag='${wl}-G'
12426	    else
12427	      shared_flag='${wl}-bM:SRE'
12428	    fi
12429          fi
12430        fi
12431
12432        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12433        # It seems that -bexpall does not export symbols beginning with
12434        # underscore (_), so it is better to generate a list of symbols to
12435	# export.
12436        always_export_symbols_CXX=yes
12437        if test "$aix_use_runtimelinking" = yes; then
12438          # Warning - without using the other runtime loading flags (-brtl),
12439          # -berok will link without error, but may produce a broken library.
12440          allow_undefined_flag_CXX='-berok'
12441          # Determine the default libpath from the value encoded in an empty
12442          # executable.
12443          if test "${lt_cv_aix_libpath+set}" = set; then
12444  aix_libpath=$lt_cv_aix_libpath
12445else
12446  if ${lt_cv_aix_libpath__CXX+:} false; then :
12447  $as_echo_n "(cached) " >&6
12448else
12449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450/* end confdefs.h.  */
12451
12452int
12453main ()
12454{
12455
12456  ;
12457  return 0;
12458}
12459_ACEOF
12460if ac_fn_cxx_try_link "$LINENO"; then :
12461
12462  lt_aix_libpath_sed='
12463      /Import File Strings/,/^$/ {
12464	  /^0/ {
12465	      s/^0  *\([^ ]*\) *$/\1/
12466	      p
12467	  }
12468      }'
12469  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12470  # Check for a 64-bit object if we didn't find anything.
12471  if test -z "$lt_cv_aix_libpath__CXX"; then
12472    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12473  fi
12474fi
12475rm -f core conftest.err conftest.$ac_objext \
12476    conftest$ac_exeext conftest.$ac_ext
12477  if test -z "$lt_cv_aix_libpath__CXX"; then
12478    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12479  fi
12480
12481fi
12482
12483  aix_libpath=$lt_cv_aix_libpath__CXX
12484fi
12485
12486          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12487
12488          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"
12489        else
12490          if test "$host_cpu" = ia64; then
12491	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12492	    allow_undefined_flag_CXX="-z nodefs"
12493	    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"
12494          else
12495	    # Determine the default libpath from the value encoded in an
12496	    # empty executable.
12497	    if test "${lt_cv_aix_libpath+set}" = set; then
12498  aix_libpath=$lt_cv_aix_libpath
12499else
12500  if ${lt_cv_aix_libpath__CXX+:} false; then :
12501  $as_echo_n "(cached) " >&6
12502else
12503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504/* end confdefs.h.  */
12505
12506int
12507main ()
12508{
12509
12510  ;
12511  return 0;
12512}
12513_ACEOF
12514if ac_fn_cxx_try_link "$LINENO"; then :
12515
12516  lt_aix_libpath_sed='
12517      /Import File Strings/,/^$/ {
12518	  /^0/ {
12519	      s/^0  *\([^ ]*\) *$/\1/
12520	      p
12521	  }
12522      }'
12523  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12524  # Check for a 64-bit object if we didn't find anything.
12525  if test -z "$lt_cv_aix_libpath__CXX"; then
12526    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12527  fi
12528fi
12529rm -f core conftest.err conftest.$ac_objext \
12530    conftest$ac_exeext conftest.$ac_ext
12531  if test -z "$lt_cv_aix_libpath__CXX"; then
12532    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12533  fi
12534
12535fi
12536
12537  aix_libpath=$lt_cv_aix_libpath__CXX
12538fi
12539
12540	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12541	    # Warning - without using the other run time loading flags,
12542	    # -berok will link without error, but may produce a broken library.
12543	    no_undefined_flag_CXX=' ${wl}-bernotok'
12544	    allow_undefined_flag_CXX=' ${wl}-berok'
12545	    if test "$with_gnu_ld" = yes; then
12546	      # We only use this code for GNU lds that support --whole-archive.
12547	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12548	    else
12549	      # Exported symbols can be pulled into shared objects from archives
12550	      whole_archive_flag_spec_CXX='$convenience'
12551	    fi
12552	    archive_cmds_need_lc_CXX=yes
12553	    # This is similar to how AIX traditionally builds its shared
12554	    # libraries.
12555	    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'
12556          fi
12557        fi
12558        ;;
12559
12560      beos*)
12561	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12562	  allow_undefined_flag_CXX=unsupported
12563	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12564	  # support --undefined.  This deserves some investigation.  FIXME
12565	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12566	else
12567	  ld_shlibs_CXX=no
12568	fi
12569	;;
12570
12571      chorus*)
12572        case $cc_basename in
12573          *)
12574	  # FIXME: insert proper C++ library support
12575	  ld_shlibs_CXX=no
12576	  ;;
12577        esac
12578        ;;
12579
12580      cygwin* | mingw* | pw32* | cegcc*)
12581	case $GXX,$cc_basename in
12582	,cl* | no,cl*)
12583	  # Native MSVC
12584	  # hardcode_libdir_flag_spec is actually meaningless, as there is
12585	  # no search path for DLLs.
12586	  hardcode_libdir_flag_spec_CXX=' '
12587	  allow_undefined_flag_CXX=unsupported
12588	  always_export_symbols_CXX=yes
12589	  file_list_spec_CXX='@'
12590	  # Tell ltmain to make .lib files, not .a files.
12591	  libext=lib
12592	  # Tell ltmain to make .dll files, not .so files.
12593	  shrext_cmds=".dll"
12594	  # FIXME: Setting linknames here is a bad hack.
12595	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12596	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12597	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12598	    else
12599	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12600	    fi~
12601	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12602	    linknames='
12603	  # The linker will not automatically build a static lib if we build a DLL.
12604	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12605	  enable_shared_with_static_runtimes_CXX=yes
12606	  # Don't use ranlib
12607	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
12608	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12609	    lt_tool_outputfile="@TOOL_OUTPUT@"~
12610	    case $lt_outputfile in
12611	      *.exe|*.EXE) ;;
12612	      *)
12613		lt_outputfile="$lt_outputfile.exe"
12614		lt_tool_outputfile="$lt_tool_outputfile.exe"
12615		;;
12616	    esac~
12617	    func_to_tool_file "$lt_outputfile"~
12618	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12619	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12620	      $RM "$lt_outputfile.manifest";
12621	    fi'
12622	  ;;
12623	*)
12624	  # g++
12625	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12626	  # as there is no search path for DLLs.
12627	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12628	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12629	  allow_undefined_flag_CXX=unsupported
12630	  always_export_symbols_CXX=no
12631	  enable_shared_with_static_runtimes_CXX=yes
12632
12633	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12634	    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'
12635	    # If the export-symbols file already is a .def file (1st line
12636	    # is EXPORTS), use it as is; otherwise, prepend...
12637	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12638	      cp $export_symbols $output_objdir/$soname.def;
12639	    else
12640	      echo EXPORTS > $output_objdir/$soname.def;
12641	      cat $export_symbols >> $output_objdir/$soname.def;
12642	    fi~
12643	    $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'
12644	  else
12645	    ld_shlibs_CXX=no
12646	  fi
12647	  ;;
12648	esac
12649	;;
12650      darwin* | rhapsody*)
12651
12652
12653  archive_cmds_need_lc_CXX=no
12654  hardcode_direct_CXX=no
12655  hardcode_automatic_CXX=yes
12656  hardcode_shlibpath_var_CXX=unsupported
12657  if test "$lt_cv_ld_force_load" = "yes"; then
12658    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\"`'
12659  else
12660    whole_archive_flag_spec_CXX=''
12661  fi
12662  link_all_deplibs_CXX=yes
12663  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12664  case $cc_basename in
12665     ifort*) _lt_dar_can_shared=yes ;;
12666     *) _lt_dar_can_shared=$GCC ;;
12667  esac
12668  if test "$_lt_dar_can_shared" = "yes"; then
12669    output_verbose_link_cmd=func_echo_all
12670    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}"
12671    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12672    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}"
12673    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}"
12674       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12675      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}"
12676      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}"
12677    fi
12678
12679  else
12680  ld_shlibs_CXX=no
12681  fi
12682
12683	;;
12684
12685      dgux*)
12686        case $cc_basename in
12687          ec++*)
12688	    # FIXME: insert proper C++ library support
12689	    ld_shlibs_CXX=no
12690	    ;;
12691          ghcx*)
12692	    # Green Hills C++ Compiler
12693	    # FIXME: insert proper C++ library support
12694	    ld_shlibs_CXX=no
12695	    ;;
12696          *)
12697	    # FIXME: insert proper C++ library support
12698	    ld_shlibs_CXX=no
12699	    ;;
12700        esac
12701        ;;
12702
12703      freebsd[12]*)
12704        # C++ shared libraries reported to be fairly broken before
12705	# switch to ELF
12706        ld_shlibs_CXX=no
12707        ;;
12708
12709      freebsd-elf*)
12710        archive_cmds_need_lc_CXX=no
12711        ;;
12712
12713      freebsd* | dragonfly*)
12714        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12715        # conventions
12716        ld_shlibs_CXX=yes
12717        ;;
12718
12719      gnu*)
12720        ;;
12721
12722      haiku*)
12723        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12724        link_all_deplibs_CXX=yes
12725        ;;
12726
12727      hpux9*)
12728        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12729        hardcode_libdir_separator_CXX=:
12730        export_dynamic_flag_spec_CXX='${wl}-E'
12731        hardcode_direct_CXX=yes
12732        hardcode_minus_L_CXX=yes # Not in the search PATH,
12733				             # but as the default
12734				             # location of the library.
12735
12736        case $cc_basename in
12737          CC*)
12738            # FIXME: insert proper C++ library support
12739            ld_shlibs_CXX=no
12740            ;;
12741          aCC*)
12742            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'
12743            # Commands to make compiler produce verbose output that lists
12744            # what "hidden" libraries, object files and flags are used when
12745            # linking a shared library.
12746            #
12747            # There doesn't appear to be a way to prevent this compiler from
12748            # explicitly linking system object files so we need to strip them
12749            # from the output so that they don't get included in the library
12750            # dependencies.
12751            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"'
12752            ;;
12753          *)
12754            if test "$GXX" = yes; then
12755              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'
12756            else
12757              # FIXME: insert proper C++ library support
12758              ld_shlibs_CXX=no
12759            fi
12760            ;;
12761        esac
12762        ;;
12763
12764      hpux10*|hpux11*)
12765        if test $with_gnu_ld = no; then
12766	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12767	  hardcode_libdir_separator_CXX=:
12768
12769          case $host_cpu in
12770            hppa*64*|ia64*)
12771              ;;
12772            *)
12773	      export_dynamic_flag_spec_CXX='${wl}-E'
12774              ;;
12775          esac
12776        fi
12777        case $host_cpu in
12778          hppa*64*|ia64*)
12779            hardcode_direct_CXX=no
12780            hardcode_shlibpath_var_CXX=no
12781            ;;
12782          *)
12783            hardcode_direct_CXX=yes
12784            hardcode_direct_absolute_CXX=yes
12785            hardcode_minus_L_CXX=yes # Not in the search PATH,
12786					         # but as the default
12787					         # location of the library.
12788            ;;
12789        esac
12790
12791        case $cc_basename in
12792          CC*)
12793	    # FIXME: insert proper C++ library support
12794	    ld_shlibs_CXX=no
12795	    ;;
12796          aCC*)
12797	    case $host_cpu in
12798	      hppa*64*)
12799	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12800	        ;;
12801	      ia64*)
12802	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12803	        ;;
12804	      *)
12805	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12806	        ;;
12807	    esac
12808	    # Commands to make compiler produce verbose output that lists
12809	    # what "hidden" libraries, object files and flags are used when
12810	    # linking a shared library.
12811	    #
12812	    # There doesn't appear to be a way to prevent this compiler from
12813	    # explicitly linking system object files so we need to strip them
12814	    # from the output so that they don't get included in the library
12815	    # dependencies.
12816	    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"'
12817	    ;;
12818          *)
12819	    if test "$GXX" = yes; then
12820	      if test $with_gnu_ld = no; then
12821	        case $host_cpu in
12822	          hppa*64*)
12823	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12824	            ;;
12825	          ia64*)
12826	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12827	            ;;
12828	          *)
12829	            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'
12830	            ;;
12831	        esac
12832	      fi
12833	    else
12834	      # FIXME: insert proper C++ library support
12835	      ld_shlibs_CXX=no
12836	    fi
12837	    ;;
12838        esac
12839        ;;
12840
12841      interix[3-9]*)
12842	hardcode_direct_CXX=no
12843	hardcode_shlibpath_var_CXX=no
12844	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12845	export_dynamic_flag_spec_CXX='${wl}-E'
12846	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12847	# Instead, shared libraries are loaded at an image base (0x10000000 by
12848	# default) and relocated if they conflict, which is a slow very memory
12849	# consuming and fragmenting process.  To avoid this, we pick a random,
12850	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12851	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12852	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'
12853	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'
12854	;;
12855      irix5* | irix6*)
12856        case $cc_basename in
12857          CC*)
12858	    # SGI C++
12859	    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'
12860
12861	    # Archives containing C++ object files must be created using
12862	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12863	    # necessary to make sure instantiated templates are included
12864	    # in the archive.
12865	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12866	    ;;
12867          *)
12868	    if test "$GXX" = yes; then
12869	      if test "$with_gnu_ld" = no; then
12870	        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'
12871	      else
12872	        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'
12873	      fi
12874	    fi
12875	    link_all_deplibs_CXX=yes
12876	    ;;
12877        esac
12878        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12879        hardcode_libdir_separator_CXX=:
12880        inherit_rpath_CXX=yes
12881        ;;
12882
12883      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12884        case $cc_basename in
12885          KCC*)
12886	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12887
12888	    # KCC will only create a shared library if the output file
12889	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12890	    # to its proper name (with version) after linking.
12891	    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'
12892	    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'
12893	    # Commands to make compiler produce verbose output that lists
12894	    # what "hidden" libraries, object files and flags are used when
12895	    # linking a shared library.
12896	    #
12897	    # There doesn't appear to be a way to prevent this compiler from
12898	    # explicitly linking system object files so we need to strip them
12899	    # from the output so that they don't get included in the library
12900	    # dependencies.
12901	    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"'
12902
12903	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12904	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12905
12906	    # Archives containing C++ object files must be created using
12907	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12908	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12909	    ;;
12910	  icpc* | ecpc* )
12911	    # Intel C++
12912	    with_gnu_ld=yes
12913	    # version 8.0 and above of icpc choke on multiply defined symbols
12914	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12915	    # earlier do not add the objects themselves.
12916	    case `$CC -V 2>&1` in
12917	      *"Version 7."*)
12918	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919		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'
12920		;;
12921	      *)  # Version 8.0 or newer
12922	        tmp_idyn=
12923	        case $host_cpu in
12924		  ia64*) tmp_idyn=' -i_dynamic';;
12925		esac
12926	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12927		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'
12928		;;
12929	    esac
12930	    archive_cmds_need_lc_CXX=no
12931	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12932	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12933	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12934	    ;;
12935          pgCC* | pgcpp*)
12936            # Portland Group C++ compiler
12937	    case `$CC -V` in
12938	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12939	      prelink_cmds_CXX='tpldir=Template.dir~
12940		rm -rf $tpldir~
12941		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12942		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12943	      old_archive_cmds_CXX='tpldir=Template.dir~
12944		rm -rf $tpldir~
12945		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12946		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12947		$RANLIB $oldlib'
12948	      archive_cmds_CXX='tpldir=Template.dir~
12949		rm -rf $tpldir~
12950		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12951		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12952	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12953		rm -rf $tpldir~
12954		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12955		$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'
12956	      ;;
12957	    *) # Version 6 and above use weak symbols
12958	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12959	      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'
12960	      ;;
12961	    esac
12962
12963	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12964	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12965	    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'
12966            ;;
12967	  cxx*)
12968	    # Compaq C++
12969	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12970	    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'
12971
12972	    runpath_var=LD_RUN_PATH
12973	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12974	    hardcode_libdir_separator_CXX=:
12975
12976	    # Commands to make compiler produce verbose output that lists
12977	    # what "hidden" libraries, object files and flags are used when
12978	    # linking a shared library.
12979	    #
12980	    # There doesn't appear to be a way to prevent this compiler from
12981	    # explicitly linking system object files so we need to strip them
12982	    # from the output so that they don't get included in the library
12983	    # dependencies.
12984	    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'
12985	    ;;
12986	  xl* | mpixl* | bgxl*)
12987	    # IBM XL 8.0 on PPC, with GNU ld
12988	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12989	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12990	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12991	    if test "x$supports_anon_versioning" = xyes; then
12992	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12993		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12994		echo "local: *; };" >> $output_objdir/$libname.ver~
12995		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12996	    fi
12997	    ;;
12998	  *)
12999	    case `$CC -V 2>&1 | sed 5q` in
13000	    *Sun\ C*)
13001	      # Sun C++ 5.9
13002	      no_undefined_flag_CXX=' -zdefs'
13003	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13004	      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'
13005	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13006	      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'
13007	      compiler_needs_object_CXX=yes
13008
13009	      # Not sure whether something based on
13010	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13011	      # would be better.
13012	      output_verbose_link_cmd='func_echo_all'
13013
13014	      # Archives containing C++ object files must be created using
13015	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13016	      # necessary to make sure instantiated templates are included
13017	      # in the archive.
13018	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13019	      ;;
13020	    esac
13021	    ;;
13022	esac
13023	;;
13024
13025      lynxos*)
13026        # FIXME: insert proper C++ library support
13027	ld_shlibs_CXX=no
13028	;;
13029
13030      m88k*)
13031        # FIXME: insert proper C++ library support
13032        ld_shlibs_CXX=no
13033	;;
13034
13035      mvs*)
13036        case $cc_basename in
13037          cxx*)
13038	    # FIXME: insert proper C++ library support
13039	    ld_shlibs_CXX=no
13040	    ;;
13041	  *)
13042	    # FIXME: insert proper C++ library support
13043	    ld_shlibs_CXX=no
13044	    ;;
13045	esac
13046	;;
13047
13048      netbsd*)
13049        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13050	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13051	  wlarc=
13052	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13053	  hardcode_direct_CXX=yes
13054	  hardcode_shlibpath_var_CXX=no
13055	fi
13056	# Workaround some broken pre-1.5 toolchains
13057	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13058	;;
13059
13060      *nto* | *qnx*)
13061        ld_shlibs_CXX=yes
13062	;;
13063
13064      openbsd2*)
13065        # C++ shared libraries are fairly broken
13066	ld_shlibs_CXX=no
13067	;;
13068
13069      openbsd*)
13070	if test -f /usr/libexec/ld.so; then
13071	  hardcode_direct_CXX=yes
13072	  hardcode_shlibpath_var_CXX=no
13073	  hardcode_direct_absolute_CXX=yes
13074	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13075	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13076	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13077	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13078	    export_dynamic_flag_spec_CXX='${wl}-E'
13079	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13080	  fi
13081	  output_verbose_link_cmd=func_echo_all
13082	else
13083	  ld_shlibs_CXX=no
13084	fi
13085	;;
13086
13087      osf3* | osf4* | osf5*)
13088        case $cc_basename in
13089          KCC*)
13090	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13091
13092	    # KCC will only create a shared library if the output file
13093	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13094	    # to its proper name (with version) after linking.
13095	    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'
13096
13097	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13098	    hardcode_libdir_separator_CXX=:
13099
13100	    # Archives containing C++ object files must be created using
13101	    # the KAI C++ compiler.
13102	    case $host in
13103	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13104	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13105	    esac
13106	    ;;
13107          RCC*)
13108	    # Rational C++ 2.4.1
13109	    # FIXME: insert proper C++ library support
13110	    ld_shlibs_CXX=no
13111	    ;;
13112          cxx*)
13113	    case $host in
13114	      osf3*)
13115	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13116	        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'
13117	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13118		;;
13119	      *)
13120	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13121	        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'
13122	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13123	          echo "-hidden">> $lib.exp~
13124	          $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~
13125	          $RM $lib.exp'
13126	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13127		;;
13128	    esac
13129
13130	    hardcode_libdir_separator_CXX=:
13131
13132	    # Commands to make compiler produce verbose output that lists
13133	    # what "hidden" libraries, object files and flags are used when
13134	    # linking a shared library.
13135	    #
13136	    # There doesn't appear to be a way to prevent this compiler from
13137	    # explicitly linking system object files so we need to strip them
13138	    # from the output so that they don't get included in the library
13139	    # dependencies.
13140	    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"'
13141	    ;;
13142	  *)
13143	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13144	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13145	      case $host in
13146	        osf3*)
13147	          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'
13148		  ;;
13149	        *)
13150	          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'
13151		  ;;
13152	      esac
13153
13154	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13155	      hardcode_libdir_separator_CXX=:
13156
13157	      # Commands to make compiler produce verbose output that lists
13158	      # what "hidden" libraries, object files and flags are used when
13159	      # linking a shared library.
13160	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13161
13162	    else
13163	      # FIXME: insert proper C++ library support
13164	      ld_shlibs_CXX=no
13165	    fi
13166	    ;;
13167        esac
13168        ;;
13169
13170      psos*)
13171        # FIXME: insert proper C++ library support
13172        ld_shlibs_CXX=no
13173        ;;
13174
13175      sunos4*)
13176        case $cc_basename in
13177          CC*)
13178	    # Sun C++ 4.x
13179	    # FIXME: insert proper C++ library support
13180	    ld_shlibs_CXX=no
13181	    ;;
13182          lcc*)
13183	    # Lucid
13184	    # FIXME: insert proper C++ library support
13185	    ld_shlibs_CXX=no
13186	    ;;
13187          *)
13188	    # FIXME: insert proper C++ library support
13189	    ld_shlibs_CXX=no
13190	    ;;
13191        esac
13192        ;;
13193
13194      solaris*)
13195        case $cc_basename in
13196          CC* | sunCC*)
13197	    # Sun C++ 4.2, 5.x and Centerline C++
13198            archive_cmds_need_lc_CXX=yes
13199	    no_undefined_flag_CXX=' -zdefs'
13200	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13201	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13202	      $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'
13203
13204	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13205	    hardcode_shlibpath_var_CXX=no
13206	    case $host_os in
13207	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13208	      *)
13209		# The compiler driver will combine and reorder linker options,
13210		# but understands `-z linker_flag'.
13211	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13212		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13213	        ;;
13214	    esac
13215	    link_all_deplibs_CXX=yes
13216
13217	    output_verbose_link_cmd='func_echo_all'
13218
13219	    # Archives containing C++ object files must be created using
13220	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13221	    # necessary to make sure instantiated templates are included
13222	    # in the archive.
13223	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13224	    ;;
13225          gcx*)
13226	    # Green Hills C++ Compiler
13227	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13228
13229	    # The C++ compiler must be used to create the archive.
13230	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13231	    ;;
13232          *)
13233	    # GNU C++ compiler with Solaris linker
13234	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13235	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13236	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13237	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13238	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13239		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13240
13241	        # Commands to make compiler produce verbose output that lists
13242	        # what "hidden" libraries, object files and flags are used when
13243	        # linking a shared library.
13244	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13245	      else
13246	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13247	        # platform.
13248	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13249	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13250		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13251
13252	        # Commands to make compiler produce verbose output that lists
13253	        # what "hidden" libraries, object files and flags are used when
13254	        # linking a shared library.
13255	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13256	      fi
13257
13258	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13259	      case $host_os in
13260		solaris2.[0-5] | solaris2.[0-5].*) ;;
13261		*)
13262		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13263		  ;;
13264	      esac
13265	    fi
13266	    ;;
13267        esac
13268        ;;
13269
13270    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13271      no_undefined_flag_CXX='${wl}-z,text'
13272      archive_cmds_need_lc_CXX=no
13273      hardcode_shlibpath_var_CXX=no
13274      runpath_var='LD_RUN_PATH'
13275
13276      case $cc_basename in
13277        CC*)
13278	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13279	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13280	  ;;
13281	*)
13282	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13283	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13284	  ;;
13285      esac
13286      ;;
13287
13288      sysv5* | sco3.2v5* | sco5v6*)
13289	# Note: We can NOT use -z defs as we might desire, because we do not
13290	# link with -lc, and that would cause any symbols used from libc to
13291	# always be unresolved, which means just about no library would
13292	# ever link correctly.  If we're not using GNU ld we use -z text
13293	# though, which does catch some bad symbols but isn't as heavy-handed
13294	# as -z defs.
13295	no_undefined_flag_CXX='${wl}-z,text'
13296	allow_undefined_flag_CXX='${wl}-z,nodefs'
13297	archive_cmds_need_lc_CXX=no
13298	hardcode_shlibpath_var_CXX=no
13299	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13300	hardcode_libdir_separator_CXX=':'
13301	link_all_deplibs_CXX=yes
13302	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13303	runpath_var='LD_RUN_PATH'
13304
13305	case $cc_basename in
13306          CC*)
13307	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13308	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13309	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13310	      '"$old_archive_cmds_CXX"
13311	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13312	      '"$reload_cmds_CXX"
13313	    ;;
13314	  *)
13315	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13316	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13317	    ;;
13318	esac
13319      ;;
13320
13321      tandem*)
13322        case $cc_basename in
13323          NCC*)
13324	    # NonStop-UX NCC 3.20
13325	    # FIXME: insert proper C++ library support
13326	    ld_shlibs_CXX=no
13327	    ;;
13328          *)
13329	    # FIXME: insert proper C++ library support
13330	    ld_shlibs_CXX=no
13331	    ;;
13332        esac
13333        ;;
13334
13335      vxworks*)
13336        # FIXME: insert proper C++ library support
13337        ld_shlibs_CXX=no
13338        ;;
13339
13340      *)
13341        # FIXME: insert proper C++ library support
13342        ld_shlibs_CXX=no
13343        ;;
13344    esac
13345
13346    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13347$as_echo "$ld_shlibs_CXX" >&6; }
13348    test "$ld_shlibs_CXX" = no && can_build_shared=no
13349
13350    GCC_CXX="$GXX"
13351    LD_CXX="$LD"
13352
13353    ## CAVEAT EMPTOR:
13354    ## There is no encapsulation within the following macros, do not change
13355    ## the running order or otherwise move them around unless you know exactly
13356    ## what you are doing...
13357    # Dependencies to place before and after the object being linked:
13358predep_objects_CXX=
13359postdep_objects_CXX=
13360predeps_CXX=
13361postdeps_CXX=
13362compiler_lib_search_path_CXX=
13363
13364cat > conftest.$ac_ext <<_LT_EOF
13365class Foo
13366{
13367public:
13368  Foo (void) { a = 0; }
13369private:
13370  int a;
13371};
13372_LT_EOF
13373
13374
13375_lt_libdeps_save_CFLAGS=$CFLAGS
13376case "$CC $CFLAGS " in #(
13377*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13378*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13379esac
13380
13381if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13382  (eval $ac_compile) 2>&5
13383  ac_status=$?
13384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13385  test $ac_status = 0; }; then
13386  # Parse the compiler output and extract the necessary
13387  # objects, libraries and library flags.
13388
13389  # Sentinel used to keep track of whether or not we are before
13390  # the conftest object file.
13391  pre_test_object_deps_done=no
13392
13393  for p in `eval "$output_verbose_link_cmd"`; do
13394    case ${prev}${p} in
13395
13396    -L* | -R* | -l*)
13397       # Some compilers place space between "-{L,R}" and the path.
13398       # Remove the space.
13399       if test $p = "-L" ||
13400          test $p = "-R"; then
13401	 prev=$p
13402	 continue
13403       fi
13404
13405       # Expand the sysroot to ease extracting the directories later.
13406       if test -z "$prev"; then
13407         case $p in
13408         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13409         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13410         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13411         esac
13412       fi
13413       case $p in
13414       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13415       esac
13416       if test "$pre_test_object_deps_done" = no; then
13417	 case ${prev} in
13418	 -L | -R)
13419	   # Internal compiler library paths should come after those
13420	   # provided the user.  The postdeps already come after the
13421	   # user supplied libs so there is no need to process them.
13422	   if test -z "$compiler_lib_search_path_CXX"; then
13423	     compiler_lib_search_path_CXX="${prev}${p}"
13424	   else
13425	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13426	   fi
13427	   ;;
13428	 # The "-l" case would never come before the object being
13429	 # linked, so don't bother handling this case.
13430	 esac
13431       else
13432	 if test -z "$postdeps_CXX"; then
13433	   postdeps_CXX="${prev}${p}"
13434	 else
13435	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13436	 fi
13437       fi
13438       prev=
13439       ;;
13440
13441    *.lto.$objext) ;; # Ignore GCC LTO objects
13442    *.$objext)
13443       # This assumes that the test object file only shows up
13444       # once in the compiler output.
13445       if test "$p" = "conftest.$objext"; then
13446	 pre_test_object_deps_done=yes
13447	 continue
13448       fi
13449
13450       if test "$pre_test_object_deps_done" = no; then
13451	 if test -z "$predep_objects_CXX"; then
13452	   predep_objects_CXX="$p"
13453	 else
13454	   predep_objects_CXX="$predep_objects_CXX $p"
13455	 fi
13456       else
13457	 if test -z "$postdep_objects_CXX"; then
13458	   postdep_objects_CXX="$p"
13459	 else
13460	   postdep_objects_CXX="$postdep_objects_CXX $p"
13461	 fi
13462       fi
13463       ;;
13464
13465    *) ;; # Ignore the rest.
13466
13467    esac
13468  done
13469
13470  # Clean up.
13471  rm -f a.out a.exe
13472else
13473  echo "libtool.m4: error: problem compiling CXX test program"
13474fi
13475
13476$RM -f confest.$objext
13477CFLAGS=$_lt_libdeps_save_CFLAGS
13478
13479# PORTME: override above test on systems where it is broken
13480case $host_os in
13481interix[3-9]*)
13482  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13483  # hack all around it, let's just trust "g++" to DTRT.
13484  predep_objects_CXX=
13485  postdep_objects_CXX=
13486  postdeps_CXX=
13487  ;;
13488
13489linux*)
13490  case `$CC -V 2>&1 | sed 5q` in
13491  *Sun\ C*)
13492    # Sun C++ 5.9
13493
13494    # The more standards-conforming stlport4 library is
13495    # incompatible with the Cstd library. Avoid specifying
13496    # it if it's in CXXFLAGS. Ignore libCrun as
13497    # -library=stlport4 depends on it.
13498    case " $CXX $CXXFLAGS " in
13499    *" -library=stlport4 "*)
13500      solaris_use_stlport4=yes
13501      ;;
13502    esac
13503
13504    if test "$solaris_use_stlport4" != yes; then
13505      postdeps_CXX='-library=Cstd -library=Crun'
13506    fi
13507    ;;
13508  esac
13509  ;;
13510
13511solaris*)
13512  case $cc_basename in
13513  CC* | sunCC*)
13514    # The more standards-conforming stlport4 library is
13515    # incompatible with the Cstd library. Avoid specifying
13516    # it if it's in CXXFLAGS. Ignore libCrun as
13517    # -library=stlport4 depends on it.
13518    case " $CXX $CXXFLAGS " in
13519    *" -library=stlport4 "*)
13520      solaris_use_stlport4=yes
13521      ;;
13522    esac
13523
13524    # Adding this requires a known-good setup of shared libraries for
13525    # Sun compiler versions before 5.6, else PIC objects from an old
13526    # archive will be linked into the output, leading to subtle bugs.
13527    if test "$solaris_use_stlport4" != yes; then
13528      postdeps_CXX='-library=Cstd -library=Crun'
13529    fi
13530    ;;
13531  esac
13532  ;;
13533esac
13534
13535
13536case " $postdeps_CXX " in
13537*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13538esac
13539 compiler_lib_search_dirs_CXX=
13540if test -n "${compiler_lib_search_path_CXX}"; then
13541 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13542fi
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574    lt_prog_compiler_wl_CXX=
13575lt_prog_compiler_pic_CXX=
13576lt_prog_compiler_static_CXX=
13577
13578
13579  # C++ specific cases for pic, static, wl, etc.
13580  if test "$GXX" = yes; then
13581    lt_prog_compiler_wl_CXX='-Wl,'
13582    lt_prog_compiler_static_CXX='-static'
13583
13584    case $host_os in
13585    aix*)
13586      # All AIX code is PIC.
13587      if test "$host_cpu" = ia64; then
13588	# AIX 5 now supports IA64 processor
13589	lt_prog_compiler_static_CXX='-Bstatic'
13590      fi
13591      ;;
13592
13593    amigaos*)
13594      case $host_cpu in
13595      powerpc)
13596            # see comment about AmigaOS4 .so support
13597            lt_prog_compiler_pic_CXX='-fPIC'
13598        ;;
13599      m68k)
13600            # FIXME: we need at least 68020 code to build shared libraries, but
13601            # adding the `-m68020' flag to GCC prevents building anything better,
13602            # like `-m68040'.
13603            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13604        ;;
13605      esac
13606      ;;
13607
13608    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13609      # PIC is the default for these OSes.
13610      ;;
13611    mingw* | cygwin* | os2* | pw32* | cegcc*)
13612      # This hack is so that the source file can tell whether it is being
13613      # built for inclusion in a dll (and should export symbols for example).
13614      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13615      # (--disable-auto-import) libraries
13616      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13617      ;;
13618    darwin* | rhapsody*)
13619      # PIC is the default on this platform
13620      # Common symbols not allowed in MH_DYLIB files
13621      lt_prog_compiler_pic_CXX='-fno-common'
13622      ;;
13623    *djgpp*)
13624      # DJGPP does not support shared libraries at all
13625      lt_prog_compiler_pic_CXX=
13626      ;;
13627    haiku*)
13628      # PIC is the default for Haiku.
13629      # The "-static" flag exists, but is broken.
13630      lt_prog_compiler_static_CXX=
13631      ;;
13632    interix[3-9]*)
13633      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13634      # Instead, we relocate shared libraries at runtime.
13635      ;;
13636    sysv4*MP*)
13637      if test -d /usr/nec; then
13638	lt_prog_compiler_pic_CXX=-Kconform_pic
13639      fi
13640      ;;
13641    hpux*)
13642      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13643      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13644      # sets the default TLS model and affects inlining.
13645      case $host_cpu in
13646      hppa*64*)
13647	;;
13648      *)
13649	lt_prog_compiler_pic_CXX='-fPIC'
13650	;;
13651      esac
13652      ;;
13653    *qnx* | *nto*)
13654      # QNX uses GNU C++, but need to define -shared option too, otherwise
13655      # it will coredump.
13656      lt_prog_compiler_pic_CXX='-fPIC -shared'
13657      ;;
13658    *)
13659      lt_prog_compiler_pic_CXX='-fPIC'
13660      ;;
13661    esac
13662  else
13663    case $host_os in
13664      aix[4-9]*)
13665	# All AIX code is PIC.
13666	if test "$host_cpu" = ia64; then
13667	  # AIX 5 now supports IA64 processor
13668	  lt_prog_compiler_static_CXX='-Bstatic'
13669	else
13670	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13671	fi
13672	;;
13673      chorus*)
13674	case $cc_basename in
13675	cxch68*)
13676	  # Green Hills C++ Compiler
13677	  # _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"
13678	  ;;
13679	esac
13680	;;
13681      mingw* | cygwin* | os2* | pw32* | cegcc*)
13682	# This hack is so that the source file can tell whether it is being
13683	# built for inclusion in a dll (and should export symbols for example).
13684	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13685	;;
13686      dgux*)
13687	case $cc_basename in
13688	  ec++*)
13689	    lt_prog_compiler_pic_CXX='-KPIC'
13690	    ;;
13691	  ghcx*)
13692	    # Green Hills C++ Compiler
13693	    lt_prog_compiler_pic_CXX='-pic'
13694	    ;;
13695	  *)
13696	    ;;
13697	esac
13698	;;
13699      freebsd* | dragonfly*)
13700	# FreeBSD uses GNU C++
13701	;;
13702      hpux9* | hpux10* | hpux11*)
13703	case $cc_basename in
13704	  CC*)
13705	    lt_prog_compiler_wl_CXX='-Wl,'
13706	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13707	    if test "$host_cpu" != ia64; then
13708	      lt_prog_compiler_pic_CXX='+Z'
13709	    fi
13710	    ;;
13711	  aCC*)
13712	    lt_prog_compiler_wl_CXX='-Wl,'
13713	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13714	    case $host_cpu in
13715	    hppa*64*|ia64*)
13716	      # +Z the default
13717	      ;;
13718	    *)
13719	      lt_prog_compiler_pic_CXX='+Z'
13720	      ;;
13721	    esac
13722	    ;;
13723	  *)
13724	    ;;
13725	esac
13726	;;
13727      interix*)
13728	# This is c89, which is MS Visual C++ (no shared libs)
13729	# Anyone wants to do a port?
13730	;;
13731      irix5* | irix6* | nonstopux*)
13732	case $cc_basename in
13733	  CC*)
13734	    lt_prog_compiler_wl_CXX='-Wl,'
13735	    lt_prog_compiler_static_CXX='-non_shared'
13736	    # CC pic flag -KPIC is the default.
13737	    ;;
13738	  *)
13739	    ;;
13740	esac
13741	;;
13742      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13743	case $cc_basename in
13744	  KCC*)
13745	    # KAI C++ Compiler
13746	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13747	    lt_prog_compiler_pic_CXX='-fPIC'
13748	    ;;
13749	  ecpc* )
13750	    # old Intel C++ for x86_64 which still supported -KPIC.
13751	    lt_prog_compiler_wl_CXX='-Wl,'
13752	    lt_prog_compiler_pic_CXX='-KPIC'
13753	    lt_prog_compiler_static_CXX='-static'
13754	    ;;
13755	  icpc* )
13756	    # Intel C++, used to be incompatible with GCC.
13757	    # ICC 10 doesn't accept -KPIC any more.
13758	    lt_prog_compiler_wl_CXX='-Wl,'
13759	    lt_prog_compiler_pic_CXX='-fPIC'
13760	    lt_prog_compiler_static_CXX='-static'
13761	    ;;
13762	  pgCC* | pgcpp*)
13763	    # Portland Group C++ compiler
13764	    lt_prog_compiler_wl_CXX='-Wl,'
13765	    lt_prog_compiler_pic_CXX='-fpic'
13766	    lt_prog_compiler_static_CXX='-Bstatic'
13767	    ;;
13768	  cxx*)
13769	    # Compaq C++
13770	    # Make sure the PIC flag is empty.  It appears that all Alpha
13771	    # Linux and Compaq Tru64 Unix objects are PIC.
13772	    lt_prog_compiler_pic_CXX=
13773	    lt_prog_compiler_static_CXX='-non_shared'
13774	    ;;
13775	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13776	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13777	    lt_prog_compiler_wl_CXX='-Wl,'
13778	    lt_prog_compiler_pic_CXX='-qpic'
13779	    lt_prog_compiler_static_CXX='-qstaticlink'
13780	    ;;
13781	  *)
13782	    case `$CC -V 2>&1 | sed 5q` in
13783	    *Sun\ C*)
13784	      # Sun C++ 5.9
13785	      lt_prog_compiler_pic_CXX='-KPIC'
13786	      lt_prog_compiler_static_CXX='-Bstatic'
13787	      lt_prog_compiler_wl_CXX='-Qoption ld '
13788	      ;;
13789	    esac
13790	    ;;
13791	esac
13792	;;
13793      lynxos*)
13794	;;
13795      m88k*)
13796	;;
13797      mvs*)
13798	case $cc_basename in
13799	  cxx*)
13800	    lt_prog_compiler_pic_CXX='-W c,exportall'
13801	    ;;
13802	  *)
13803	    ;;
13804	esac
13805	;;
13806      netbsd* | netbsdelf*-gnu)
13807	;;
13808      *qnx* | *nto*)
13809        # QNX uses GNU C++, but need to define -shared option too, otherwise
13810        # it will coredump.
13811        lt_prog_compiler_pic_CXX='-fPIC -shared'
13812        ;;
13813      osf3* | osf4* | osf5*)
13814	case $cc_basename in
13815	  KCC*)
13816	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13817	    ;;
13818	  RCC*)
13819	    # Rational C++ 2.4.1
13820	    lt_prog_compiler_pic_CXX='-pic'
13821	    ;;
13822	  cxx*)
13823	    # Digital/Compaq C++
13824	    lt_prog_compiler_wl_CXX='-Wl,'
13825	    # Make sure the PIC flag is empty.  It appears that all Alpha
13826	    # Linux and Compaq Tru64 Unix objects are PIC.
13827	    lt_prog_compiler_pic_CXX=
13828	    lt_prog_compiler_static_CXX='-non_shared'
13829	    ;;
13830	  *)
13831	    ;;
13832	esac
13833	;;
13834      psos*)
13835	;;
13836      solaris*)
13837	case $cc_basename in
13838	  CC* | sunCC*)
13839	    # Sun C++ 4.2, 5.x and Centerline C++
13840	    lt_prog_compiler_pic_CXX='-KPIC'
13841	    lt_prog_compiler_static_CXX='-Bstatic'
13842	    lt_prog_compiler_wl_CXX='-Qoption ld '
13843	    ;;
13844	  gcx*)
13845	    # Green Hills C++ Compiler
13846	    lt_prog_compiler_pic_CXX='-PIC'
13847	    ;;
13848	  *)
13849	    ;;
13850	esac
13851	;;
13852      sunos4*)
13853	case $cc_basename in
13854	  CC*)
13855	    # Sun C++ 4.x
13856	    lt_prog_compiler_pic_CXX='-pic'
13857	    lt_prog_compiler_static_CXX='-Bstatic'
13858	    ;;
13859	  lcc*)
13860	    # Lucid
13861	    lt_prog_compiler_pic_CXX='-pic'
13862	    ;;
13863	  *)
13864	    ;;
13865	esac
13866	;;
13867      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13868	case $cc_basename in
13869	  CC*)
13870	    lt_prog_compiler_wl_CXX='-Wl,'
13871	    lt_prog_compiler_pic_CXX='-KPIC'
13872	    lt_prog_compiler_static_CXX='-Bstatic'
13873	    ;;
13874	esac
13875	;;
13876      tandem*)
13877	case $cc_basename in
13878	  NCC*)
13879	    # NonStop-UX NCC 3.20
13880	    lt_prog_compiler_pic_CXX='-KPIC'
13881	    ;;
13882	  *)
13883	    ;;
13884	esac
13885	;;
13886      vxworks*)
13887	;;
13888      *)
13889	lt_prog_compiler_can_build_shared_CXX=no
13890	;;
13891    esac
13892  fi
13893
13894case $host_os in
13895  # For platforms which do not support PIC, -DPIC is meaningless:
13896  *djgpp*)
13897    lt_prog_compiler_pic_CXX=
13898    ;;
13899  *)
13900    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13901    ;;
13902esac
13903
13904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13905$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13906if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13907  $as_echo_n "(cached) " >&6
13908else
13909  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13910fi
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13912$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13913lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13914
13915#
13916# Check to make sure the PIC flag actually works.
13917#
13918if test -n "$lt_prog_compiler_pic_CXX"; then
13919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13920$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13921if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13922  $as_echo_n "(cached) " >&6
13923else
13924  lt_cv_prog_compiler_pic_works_CXX=no
13925   ac_outfile=conftest.$ac_objext
13926   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13927   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13928   # Insert the option either (1) after the last *FLAGS variable, or
13929   # (2) before a word containing "conftest.", or (3) at the end.
13930   # Note that $ac_compile itself does not contain backslashes and begins
13931   # with a dollar sign (not a hyphen), so the echo should work correctly.
13932   # The option is referenced via a variable to avoid confusing sed.
13933   lt_compile=`echo "$ac_compile" | $SED \
13934   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13935   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13936   -e 's:$: $lt_compiler_flag:'`
13937   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13938   (eval "$lt_compile" 2>conftest.err)
13939   ac_status=$?
13940   cat conftest.err >&5
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   if (exit $ac_status) && test -s "$ac_outfile"; then
13943     # The compiler can only warn and ignore the option if not recognized
13944     # So say no if there are warnings other than the usual output.
13945     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13946     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13947     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13948       lt_cv_prog_compiler_pic_works_CXX=yes
13949     fi
13950   fi
13951   $RM conftest*
13952
13953fi
13954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13955$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13956
13957if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13958    case $lt_prog_compiler_pic_CXX in
13959     "" | " "*) ;;
13960     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13961     esac
13962else
13963    lt_prog_compiler_pic_CXX=
13964     lt_prog_compiler_can_build_shared_CXX=no
13965fi
13966
13967fi
13968
13969
13970
13971
13972
13973#
13974# Check to make sure the static flag actually works.
13975#
13976wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13978$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13979if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13980  $as_echo_n "(cached) " >&6
13981else
13982  lt_cv_prog_compiler_static_works_CXX=no
13983   save_LDFLAGS="$LDFLAGS"
13984   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13985   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13986   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13987     # The linker can only warn and ignore the option if not recognized
13988     # So say no if there are warnings
13989     if test -s conftest.err; then
13990       # Append any errors to the config.log.
13991       cat conftest.err 1>&5
13992       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13993       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13994       if diff conftest.exp conftest.er2 >/dev/null; then
13995         lt_cv_prog_compiler_static_works_CXX=yes
13996       fi
13997     else
13998       lt_cv_prog_compiler_static_works_CXX=yes
13999     fi
14000   fi
14001   $RM -r conftest*
14002   LDFLAGS="$save_LDFLAGS"
14003
14004fi
14005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14006$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14007
14008if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14009    :
14010else
14011    lt_prog_compiler_static_CXX=
14012fi
14013
14014
14015
14016
14017    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14018$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14019if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14020  $as_echo_n "(cached) " >&6
14021else
14022  lt_cv_prog_compiler_c_o_CXX=no
14023   $RM -r conftest 2>/dev/null
14024   mkdir conftest
14025   cd conftest
14026   mkdir out
14027   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14028
14029   lt_compiler_flag="-o out/conftest2.$ac_objext"
14030   # Insert the option either (1) after the last *FLAGS variable, or
14031   # (2) before a word containing "conftest.", or (3) at the end.
14032   # Note that $ac_compile itself does not contain backslashes and begins
14033   # with a dollar sign (not a hyphen), so the echo should work correctly.
14034   lt_compile=`echo "$ac_compile" | $SED \
14035   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14036   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14037   -e 's:$: $lt_compiler_flag:'`
14038   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14039   (eval "$lt_compile" 2>out/conftest.err)
14040   ac_status=$?
14041   cat out/conftest.err >&5
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14044   then
14045     # The compiler can only warn and ignore the option if not recognized
14046     # So say no if there are warnings
14047     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14048     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14049     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14050       lt_cv_prog_compiler_c_o_CXX=yes
14051     fi
14052   fi
14053   chmod u+w . 2>&5
14054   $RM conftest*
14055   # SGI C++ compiler will create directory out/ii_files/ for
14056   # template instantiation
14057   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14058   $RM out/* && rmdir out
14059   cd ..
14060   $RM -r conftest
14061   $RM conftest*
14062
14063fi
14064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14065$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14066
14067
14068
14069    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14070$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14071if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14072  $as_echo_n "(cached) " >&6
14073else
14074  lt_cv_prog_compiler_c_o_CXX=no
14075   $RM -r conftest 2>/dev/null
14076   mkdir conftest
14077   cd conftest
14078   mkdir out
14079   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14080
14081   lt_compiler_flag="-o out/conftest2.$ac_objext"
14082   # Insert the option either (1) after the last *FLAGS variable, or
14083   # (2) before a word containing "conftest.", or (3) at the end.
14084   # Note that $ac_compile itself does not contain backslashes and begins
14085   # with a dollar sign (not a hyphen), so the echo should work correctly.
14086   lt_compile=`echo "$ac_compile" | $SED \
14087   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14088   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14089   -e 's:$: $lt_compiler_flag:'`
14090   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14091   (eval "$lt_compile" 2>out/conftest.err)
14092   ac_status=$?
14093   cat out/conftest.err >&5
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14096   then
14097     # The compiler can only warn and ignore the option if not recognized
14098     # So say no if there are warnings
14099     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14100     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14101     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14102       lt_cv_prog_compiler_c_o_CXX=yes
14103     fi
14104   fi
14105   chmod u+w . 2>&5
14106   $RM conftest*
14107   # SGI C++ compiler will create directory out/ii_files/ for
14108   # template instantiation
14109   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14110   $RM out/* && rmdir out
14111   cd ..
14112   $RM -r conftest
14113   $RM conftest*
14114
14115fi
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14117$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14118
14119
14120
14121
14122hard_links="nottested"
14123if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14124  # do not overwrite the value of need_locks provided by the user
14125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14126$as_echo_n "checking if we can lock with hard links... " >&6; }
14127  hard_links=yes
14128  $RM conftest*
14129  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14130  touch conftest.a
14131  ln conftest.a conftest.b 2>&5 || hard_links=no
14132  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14134$as_echo "$hard_links" >&6; }
14135  if test "$hard_links" = no; then
14136    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14137$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14138    need_locks=warn
14139  fi
14140else
14141  need_locks=no
14142fi
14143
14144
14145
14146    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14147$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14148
14149  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14150  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14151  case $host_os in
14152  aix[4-9]*)
14153    # If we're using GNU nm, then we don't want the "-C" option.
14154    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14155    # Also, AIX nm treats weak defined symbols like other global defined
14156    # symbols, whereas GNU nm marks them as "W".
14157    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14158      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'
14159    else
14160      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'
14161    fi
14162    ;;
14163  pw32*)
14164    export_symbols_cmds_CXX="$ltdll_cmds"
14165    ;;
14166  cygwin* | mingw* | cegcc*)
14167    case $cc_basename in
14168    cl*) ;;
14169    *)
14170      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'
14171      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14172      ;;
14173    esac
14174    ;;
14175  linux* | k*bsd*-gnu | gnu*)
14176    link_all_deplibs_CXX=no
14177    ;;
14178  *)
14179    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14180    ;;
14181  esac
14182
14183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14184$as_echo "$ld_shlibs_CXX" >&6; }
14185test "$ld_shlibs_CXX" = no && can_build_shared=no
14186
14187with_gnu_ld_CXX=$with_gnu_ld
14188
14189
14190
14191
14192
14193
14194#
14195# Do we need to explicitly link libc?
14196#
14197case "x$archive_cmds_need_lc_CXX" in
14198x|xyes)
14199  # Assume -lc should be added
14200  archive_cmds_need_lc_CXX=yes
14201
14202  if test "$enable_shared" = yes && test "$GCC" = yes; then
14203    case $archive_cmds_CXX in
14204    *'~'*)
14205      # FIXME: we may have to deal with multi-command sequences.
14206      ;;
14207    '$CC '*)
14208      # Test whether the compiler implicitly links with -lc since on some
14209      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14210      # to ld, don't add -lc before -lgcc.
14211      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14212$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14213if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14214  $as_echo_n "(cached) " >&6
14215else
14216  $RM conftest*
14217	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14218
14219	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14220  (eval $ac_compile) 2>&5
14221  ac_status=$?
14222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14223  test $ac_status = 0; } 2>conftest.err; then
14224	  soname=conftest
14225	  lib=conftest
14226	  libobjs=conftest.$ac_objext
14227	  deplibs=
14228	  wl=$lt_prog_compiler_wl_CXX
14229	  pic_flag=$lt_prog_compiler_pic_CXX
14230	  compiler_flags=-v
14231	  linker_flags=-v
14232	  verstring=
14233	  output_objdir=.
14234	  libname=conftest
14235	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14236	  allow_undefined_flag_CXX=
14237	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14238  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14239  ac_status=$?
14240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14241  test $ac_status = 0; }
14242	  then
14243	    lt_cv_archive_cmds_need_lc_CXX=no
14244	  else
14245	    lt_cv_archive_cmds_need_lc_CXX=yes
14246	  fi
14247	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14248	else
14249	  cat conftest.err 1>&5
14250	fi
14251	$RM conftest*
14252
14253fi
14254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14255$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14256      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14257      ;;
14258    esac
14259  fi
14260  ;;
14261esac
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14327$as_echo_n "checking dynamic linker characteristics... " >&6; }
14328
14329library_names_spec=
14330libname_spec='lib$name'
14331soname_spec=
14332shrext_cmds=".so"
14333postinstall_cmds=
14334postuninstall_cmds=
14335finish_cmds=
14336finish_eval=
14337shlibpath_var=
14338shlibpath_overrides_runpath=unknown
14339version_type=none
14340dynamic_linker="$host_os ld.so"
14341sys_lib_dlsearch_path_spec="/lib /usr/lib"
14342need_lib_prefix=unknown
14343hardcode_into_libs=no
14344
14345# when you set need_version to no, make sure it does not cause -set_version
14346# flags to be left without arguments
14347need_version=unknown
14348
14349case $host_os in
14350aix3*)
14351  version_type=linux
14352  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14353  shlibpath_var=LIBPATH
14354
14355  # AIX 3 has no versioning support, so we append a major version to the name.
14356  soname_spec='${libname}${release}${shared_ext}$major'
14357  ;;
14358
14359aix[4-9]*)
14360  version_type=linux
14361  need_lib_prefix=no
14362  need_version=no
14363  hardcode_into_libs=yes
14364  if test "$host_cpu" = ia64; then
14365    # AIX 5 supports IA64
14366    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14367    shlibpath_var=LD_LIBRARY_PATH
14368  else
14369    # With GCC up to 2.95.x, collect2 would create an import file
14370    # for dependence libraries.  The import file would start with
14371    # the line `#! .'.  This would cause the generated library to
14372    # depend on `.', always an invalid library.  This was fixed in
14373    # development snapshots of GCC prior to 3.0.
14374    case $host_os in
14375      aix4 | aix4.[01] | aix4.[01].*)
14376      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14377	   echo ' yes '
14378	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14379	:
14380      else
14381	can_build_shared=no
14382      fi
14383      ;;
14384    esac
14385    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14386    # soname into executable. Probably we can add versioning support to
14387    # collect2, so additional links can be useful in future.
14388    if test "$aix_use_runtimelinking" = yes; then
14389      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14390      # instead of lib<name>.a to let people know that these are not
14391      # typical AIX shared libraries.
14392      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14393    else
14394      # We preserve .a as extension for shared libraries through AIX4.2
14395      # and later when we are not doing run time linking.
14396      library_names_spec='${libname}${release}.a $libname.a'
14397      soname_spec='${libname}${release}${shared_ext}$major'
14398    fi
14399    shlibpath_var=LIBPATH
14400  fi
14401  ;;
14402
14403amigaos*)
14404  case $host_cpu in
14405  powerpc)
14406    # Since July 2007 AmigaOS4 officially supports .so libraries.
14407    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14408    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14409    ;;
14410  m68k)
14411    library_names_spec='$libname.ixlibrary $libname.a'
14412    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14413    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'
14414    ;;
14415  esac
14416  ;;
14417
14418beos*)
14419  library_names_spec='${libname}${shared_ext}'
14420  dynamic_linker="$host_os ld.so"
14421  shlibpath_var=LIBRARY_PATH
14422  ;;
14423
14424bsdi[45]*)
14425  version_type=linux
14426  need_version=no
14427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14428  soname_spec='${libname}${release}${shared_ext}$major'
14429  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14430  shlibpath_var=LD_LIBRARY_PATH
14431  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14432  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14433  # the default ld.so.conf also contains /usr/contrib/lib and
14434  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14435  # libtool to hard-code these into programs
14436  ;;
14437
14438cygwin* | mingw* | pw32* | cegcc*)
14439  version_type=windows
14440  shrext_cmds=".dll"
14441  need_version=no
14442  need_lib_prefix=no
14443
14444  case $GCC,$cc_basename in
14445  yes,*)
14446    # gcc
14447    library_names_spec='$libname.dll.a'
14448    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14449    postinstall_cmds='base_file=`basename \${file}`~
14450      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14451      dldir=$destdir/`dirname \$dlpath`~
14452      test -d \$dldir || mkdir -p \$dldir~
14453      $install_prog $dir/$dlname \$dldir/$dlname~
14454      chmod a+x \$dldir/$dlname~
14455      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14456        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14457      fi'
14458    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14459      dlpath=$dir/\$dldll~
14460       $RM \$dlpath'
14461    shlibpath_overrides_runpath=yes
14462
14463    case $host_os in
14464    cygwin*)
14465      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14466      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14467
14468      ;;
14469    mingw* | cegcc*)
14470      # MinGW DLLs use traditional 'lib' prefix
14471      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14472      ;;
14473    pw32*)
14474      # pw32 DLLs use 'pw' prefix rather than 'lib'
14475      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14476      ;;
14477    esac
14478    dynamic_linker='Win32 ld.exe'
14479    ;;
14480
14481  *,cl*)
14482    # Native MSVC
14483    libname_spec='$name'
14484    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14485    library_names_spec='${libname}.dll.lib'
14486
14487    case $build_os in
14488    mingw*)
14489      sys_lib_search_path_spec=
14490      lt_save_ifs=$IFS
14491      IFS=';'
14492      for lt_path in $LIB
14493      do
14494        IFS=$lt_save_ifs
14495        # Let DOS variable expansion print the short 8.3 style file name.
14496        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14497        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14498      done
14499      IFS=$lt_save_ifs
14500      # Convert to MSYS style.
14501      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14502      ;;
14503    cygwin*)
14504      # Convert to unix form, then to dos form, then back to unix form
14505      # but this time dos style (no spaces!) so that the unix form looks
14506      # like /cygdrive/c/PROGRA~1:/cygdr...
14507      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14508      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14509      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14510      ;;
14511    *)
14512      sys_lib_search_path_spec="$LIB"
14513      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14514        # It is most probably a Windows format PATH.
14515        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14516      else
14517        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14518      fi
14519      # FIXME: find the short name or the path components, as spaces are
14520      # common. (e.g. "Program Files" -> "PROGRA~1")
14521      ;;
14522    esac
14523
14524    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14525    postinstall_cmds='base_file=`basename \${file}`~
14526      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14527      dldir=$destdir/`dirname \$dlpath`~
14528      test -d \$dldir || mkdir -p \$dldir~
14529      $install_prog $dir/$dlname \$dldir/$dlname'
14530    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14531      dlpath=$dir/\$dldll~
14532       $RM \$dlpath'
14533    shlibpath_overrides_runpath=yes
14534    dynamic_linker='Win32 link.exe'
14535    ;;
14536
14537  *)
14538    # Assume MSVC wrapper
14539    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14540    dynamic_linker='Win32 ld.exe'
14541    ;;
14542  esac
14543  # FIXME: first we should search . and the directory the executable is in
14544  shlibpath_var=PATH
14545  ;;
14546
14547darwin* | rhapsody*)
14548  dynamic_linker="$host_os dyld"
14549  version_type=darwin
14550  need_lib_prefix=no
14551  need_version=no
14552  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14553  soname_spec='${libname}${release}${major}$shared_ext'
14554  shlibpath_overrides_runpath=yes
14555  shlibpath_var=DYLD_LIBRARY_PATH
14556  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14557
14558  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14559  ;;
14560
14561dgux*)
14562  version_type=linux
14563  need_lib_prefix=no
14564  need_version=no
14565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14566  soname_spec='${libname}${release}${shared_ext}$major'
14567  shlibpath_var=LD_LIBRARY_PATH
14568  ;;
14569
14570freebsd1*)
14571  dynamic_linker=no
14572  ;;
14573
14574freebsd* | dragonfly*)
14575  # DragonFly does not have aout.  When/if they implement a new
14576  # versioning mechanism, adjust this.
14577  if test -x /usr/bin/objformat; then
14578    objformat=`/usr/bin/objformat`
14579  else
14580    case $host_os in
14581    freebsd[123]*) objformat=aout ;;
14582    *) objformat=elf ;;
14583    esac
14584  fi
14585  version_type=freebsd-$objformat
14586  case $version_type in
14587    freebsd-elf*)
14588      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14589      need_version=no
14590      need_lib_prefix=no
14591      ;;
14592    freebsd-*)
14593      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14594      need_version=yes
14595      ;;
14596  esac
14597  shlibpath_var=LD_LIBRARY_PATH
14598  case $host_os in
14599  freebsd2*)
14600    shlibpath_overrides_runpath=yes
14601    ;;
14602  freebsd3.[01]* | freebsdelf3.[01]*)
14603    shlibpath_overrides_runpath=yes
14604    hardcode_into_libs=yes
14605    ;;
14606  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14607  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14608    shlibpath_overrides_runpath=no
14609    hardcode_into_libs=yes
14610    ;;
14611  *) # from 4.6 on, and DragonFly
14612    shlibpath_overrides_runpath=yes
14613    hardcode_into_libs=yes
14614    ;;
14615  esac
14616  ;;
14617
14618gnu*)
14619  version_type=linux
14620  need_lib_prefix=no
14621  need_version=no
14622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14623  soname_spec='${libname}${release}${shared_ext}$major'
14624  shlibpath_var=LD_LIBRARY_PATH
14625  shlibpath_overrides_runpath=no
14626  hardcode_into_libs=yes
14627  ;;
14628
14629haiku*)
14630  version_type=linux
14631  need_lib_prefix=no
14632  need_version=no
14633  dynamic_linker="$host_os runtime_loader"
14634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14635  soname_spec='${libname}${release}${shared_ext}$major'
14636  shlibpath_var=LIBRARY_PATH
14637  shlibpath_overrides_runpath=yes
14638  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14639  hardcode_into_libs=yes
14640  ;;
14641
14642hpux9* | hpux10* | hpux11*)
14643  # Give a soname corresponding to the major version so that dld.sl refuses to
14644  # link against other versions.
14645  version_type=sunos
14646  need_lib_prefix=no
14647  need_version=no
14648  case $host_cpu in
14649  ia64*)
14650    shrext_cmds='.so'
14651    hardcode_into_libs=yes
14652    dynamic_linker="$host_os dld.so"
14653    shlibpath_var=LD_LIBRARY_PATH
14654    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14655    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656    soname_spec='${libname}${release}${shared_ext}$major'
14657    if test "X$HPUX_IA64_MODE" = X32; then
14658      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14659    else
14660      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14661    fi
14662    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14663    ;;
14664  hppa*64*)
14665    shrext_cmds='.sl'
14666    hardcode_into_libs=yes
14667    dynamic_linker="$host_os dld.sl"
14668    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14669    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14670    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671    soname_spec='${libname}${release}${shared_ext}$major'
14672    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14673    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14674    ;;
14675  *)
14676    shrext_cmds='.sl'
14677    dynamic_linker="$host_os dld.sl"
14678    shlibpath_var=SHLIB_PATH
14679    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14680    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14681    soname_spec='${libname}${release}${shared_ext}$major'
14682    ;;
14683  esac
14684  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14685  postinstall_cmds='chmod 555 $lib'
14686  # or fails outright, so override atomically:
14687  install_override_mode=555
14688  ;;
14689
14690interix[3-9]*)
14691  version_type=linux
14692  need_lib_prefix=no
14693  need_version=no
14694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14695  soname_spec='${libname}${release}${shared_ext}$major'
14696  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14697  shlibpath_var=LD_LIBRARY_PATH
14698  shlibpath_overrides_runpath=no
14699  hardcode_into_libs=yes
14700  ;;
14701
14702irix5* | irix6* | nonstopux*)
14703  case $host_os in
14704    nonstopux*) version_type=nonstopux ;;
14705    *)
14706	if test "$lt_cv_prog_gnu_ld" = yes; then
14707		version_type=linux
14708	else
14709		version_type=irix
14710	fi ;;
14711  esac
14712  need_lib_prefix=no
14713  need_version=no
14714  soname_spec='${libname}${release}${shared_ext}$major'
14715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14716  case $host_os in
14717  irix5* | nonstopux*)
14718    libsuff= shlibsuff=
14719    ;;
14720  *)
14721    case $LD in # libtool.m4 will add one of these switches to LD
14722    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14723      libsuff= shlibsuff= libmagic=32-bit;;
14724    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14725      libsuff=32 shlibsuff=N32 libmagic=N32;;
14726    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14727      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14728    *) libsuff= shlibsuff= libmagic=never-match;;
14729    esac
14730    ;;
14731  esac
14732  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14733  shlibpath_overrides_runpath=no
14734  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14735  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14736  hardcode_into_libs=yes
14737  ;;
14738
14739# No shared lib support for Linux oldld, aout, or coff.
14740linux*oldld* | linux*aout* | linux*coff*)
14741  dynamic_linker=no
14742  ;;
14743
14744# This must be Linux ELF.
14745linux* | k*bsd*-gnu | kopensolaris*-gnu)
14746  version_type=linux
14747  need_lib_prefix=no
14748  need_version=no
14749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750  soname_spec='${libname}${release}${shared_ext}$major'
14751  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14752  shlibpath_var=LD_LIBRARY_PATH
14753  shlibpath_overrides_runpath=no
14754
14755  # Some binutils ld are patched to set DT_RUNPATH
14756  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14757  $as_echo_n "(cached) " >&6
14758else
14759  lt_cv_shlibpath_overrides_runpath=no
14760    save_LDFLAGS=$LDFLAGS
14761    save_libdir=$libdir
14762    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14763	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14764    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765/* end confdefs.h.  */
14766
14767int
14768main ()
14769{
14770
14771  ;
14772  return 0;
14773}
14774_ACEOF
14775if ac_fn_cxx_try_link "$LINENO"; then :
14776  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14777  lt_cv_shlibpath_overrides_runpath=yes
14778fi
14779fi
14780rm -f core conftest.err conftest.$ac_objext \
14781    conftest$ac_exeext conftest.$ac_ext
14782    LDFLAGS=$save_LDFLAGS
14783    libdir=$save_libdir
14784
14785fi
14786
14787  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14788
14789  # This implies no fast_install, which is unacceptable.
14790  # Some rework will be needed to allow for fast_install
14791  # before this can be enabled.
14792  hardcode_into_libs=yes
14793
14794  # Append ld.so.conf contents to the search path
14795  if test -f /etc/ld.so.conf; then
14796    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' ' '`
14797    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14798  fi
14799
14800  # We used to test for /lib/ld.so.1 and disable shared libraries on
14801  # powerpc, because MkLinux only supported shared libraries with the
14802  # GNU dynamic linker.  Since this was broken with cross compilers,
14803  # most powerpc-linux boxes support dynamic linking these days and
14804  # people can always --disable-shared, the test was removed, and we
14805  # assume the GNU/Linux dynamic linker is in use.
14806  dynamic_linker='GNU/Linux ld.so'
14807  ;;
14808
14809netbsdelf*-gnu)
14810  version_type=linux
14811  need_lib_prefix=no
14812  need_version=no
14813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14814  soname_spec='${libname}${release}${shared_ext}$major'
14815  shlibpath_var=LD_LIBRARY_PATH
14816  shlibpath_overrides_runpath=no
14817  hardcode_into_libs=yes
14818  dynamic_linker='NetBSD ld.elf_so'
14819  ;;
14820
14821netbsd*)
14822  version_type=sunos
14823  need_lib_prefix=no
14824  need_version=no
14825  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14826    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14827    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14828    dynamic_linker='NetBSD (a.out) ld.so'
14829  else
14830    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14831    soname_spec='${libname}${release}${shared_ext}$major'
14832    dynamic_linker='NetBSD ld.elf_so'
14833  fi
14834  shlibpath_var=LD_LIBRARY_PATH
14835  shlibpath_overrides_runpath=yes
14836  hardcode_into_libs=yes
14837  ;;
14838
14839newsos6)
14840  version_type=linux
14841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14842  shlibpath_var=LD_LIBRARY_PATH
14843  shlibpath_overrides_runpath=yes
14844  ;;
14845
14846*nto* | *qnx*)
14847  version_type=qnx
14848  need_lib_prefix=no
14849  need_version=no
14850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851  soname_spec='${libname}${release}${shared_ext}$major'
14852  shlibpath_var=LD_LIBRARY_PATH
14853  shlibpath_overrides_runpath=no
14854  hardcode_into_libs=yes
14855  dynamic_linker='ldqnx.so'
14856  ;;
14857
14858openbsd*)
14859  version_type=sunos
14860  sys_lib_dlsearch_path_spec="/usr/lib"
14861  need_lib_prefix=no
14862  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14863  case $host_os in
14864    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14865    *)				need_version=no  ;;
14866  esac
14867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14868  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14869  shlibpath_var=LD_LIBRARY_PATH
14870  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14871    case $host_os in
14872      openbsd2.[89] | openbsd2.[89].*)
14873	shlibpath_overrides_runpath=no
14874	;;
14875      *)
14876	shlibpath_overrides_runpath=yes
14877	;;
14878      esac
14879  else
14880    shlibpath_overrides_runpath=yes
14881  fi
14882  ;;
14883
14884os2*)
14885  libname_spec='$name'
14886  shrext_cmds=".dll"
14887  need_lib_prefix=no
14888  library_names_spec='$libname${shared_ext} $libname.a'
14889  dynamic_linker='OS/2 ld.exe'
14890  shlibpath_var=LIBPATH
14891  ;;
14892
14893osf3* | osf4* | osf5*)
14894  version_type=osf
14895  need_lib_prefix=no
14896  need_version=no
14897  soname_spec='${libname}${release}${shared_ext}$major'
14898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899  shlibpath_var=LD_LIBRARY_PATH
14900  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14901  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14902  ;;
14903
14904rdos*)
14905  dynamic_linker=no
14906  ;;
14907
14908solaris*)
14909  version_type=linux
14910  need_lib_prefix=no
14911  need_version=no
14912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913  soname_spec='${libname}${release}${shared_ext}$major'
14914  shlibpath_var=LD_LIBRARY_PATH
14915  shlibpath_overrides_runpath=yes
14916  hardcode_into_libs=yes
14917  # ldd complains unless libraries are executable
14918  postinstall_cmds='chmod +x $lib'
14919  ;;
14920
14921sunos4*)
14922  version_type=sunos
14923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14924  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14925  shlibpath_var=LD_LIBRARY_PATH
14926  shlibpath_overrides_runpath=yes
14927  if test "$with_gnu_ld" = yes; then
14928    need_lib_prefix=no
14929  fi
14930  need_version=yes
14931  ;;
14932
14933sysv4 | sysv4.3*)
14934  version_type=linux
14935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936  soname_spec='${libname}${release}${shared_ext}$major'
14937  shlibpath_var=LD_LIBRARY_PATH
14938  case $host_vendor in
14939    sni)
14940      shlibpath_overrides_runpath=no
14941      need_lib_prefix=no
14942      runpath_var=LD_RUN_PATH
14943      ;;
14944    siemens)
14945      need_lib_prefix=no
14946      ;;
14947    motorola)
14948      need_lib_prefix=no
14949      need_version=no
14950      shlibpath_overrides_runpath=no
14951      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14952      ;;
14953  esac
14954  ;;
14955
14956sysv4*MP*)
14957  if test -d /usr/nec ;then
14958    version_type=linux
14959    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14960    soname_spec='$libname${shared_ext}.$major'
14961    shlibpath_var=LD_LIBRARY_PATH
14962  fi
14963  ;;
14964
14965sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14966  version_type=freebsd-elf
14967  need_lib_prefix=no
14968  need_version=no
14969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14970  soname_spec='${libname}${release}${shared_ext}$major'
14971  shlibpath_var=LD_LIBRARY_PATH
14972  shlibpath_overrides_runpath=yes
14973  hardcode_into_libs=yes
14974  if test "$with_gnu_ld" = yes; then
14975    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14976  else
14977    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14978    case $host_os in
14979      sco3.2v5*)
14980        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14981	;;
14982    esac
14983  fi
14984  sys_lib_dlsearch_path_spec='/usr/lib'
14985  ;;
14986
14987tpf*)
14988  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14989  version_type=linux
14990  need_lib_prefix=no
14991  need_version=no
14992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14993  shlibpath_var=LD_LIBRARY_PATH
14994  shlibpath_overrides_runpath=no
14995  hardcode_into_libs=yes
14996  ;;
14997
14998uts4*)
14999  version_type=linux
15000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15001  soname_spec='${libname}${release}${shared_ext}$major'
15002  shlibpath_var=LD_LIBRARY_PATH
15003  ;;
15004
15005*)
15006  dynamic_linker=no
15007  ;;
15008esac
15009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15010$as_echo "$dynamic_linker" >&6; }
15011test "$dynamic_linker" = no && can_build_shared=no
15012
15013variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15014if test "$GCC" = yes; then
15015  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15016fi
15017
15018if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15019  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15020fi
15021if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15022  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15023fi
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15063$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15064hardcode_action_CXX=
15065if test -n "$hardcode_libdir_flag_spec_CXX" ||
15066   test -n "$runpath_var_CXX" ||
15067   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15068
15069  # We can hardcode non-existent directories.
15070  if test "$hardcode_direct_CXX" != no &&
15071     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15072     # have to relink, otherwise we might link with an installed library
15073     # when we should be linking with a yet-to-be-installed one
15074     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15075     test "$hardcode_minus_L_CXX" != no; then
15076    # Linking always hardcodes the temporary library directory.
15077    hardcode_action_CXX=relink
15078  else
15079    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15080    hardcode_action_CXX=immediate
15081  fi
15082else
15083  # We cannot hardcode anything, or else we can only hardcode existing
15084  # directories.
15085  hardcode_action_CXX=unsupported
15086fi
15087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15088$as_echo "$hardcode_action_CXX" >&6; }
15089
15090if test "$hardcode_action_CXX" = relink ||
15091   test "$inherit_rpath_CXX" = yes; then
15092  # Fast installation is not supported
15093  enable_fast_install=no
15094elif test "$shlibpath_overrides_runpath" = yes ||
15095     test "$enable_shared" = no; then
15096  # Fast installation is not necessary
15097  enable_fast_install=needless
15098fi
15099
15100
15101
15102
15103
15104
15105
15106  fi # test -n "$compiler"
15107
15108  CC=$lt_save_CC
15109  CFLAGS=$lt_save_CFLAGS
15110  LDCXX=$LD
15111  LD=$lt_save_LD
15112  GCC=$lt_save_GCC
15113  with_gnu_ld=$lt_save_with_gnu_ld
15114  lt_cv_path_LDCXX=$lt_cv_path_LD
15115  lt_cv_path_LD=$lt_save_path_LD
15116  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15117  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15118fi # test "$_lt_caught_CXX_error" != yes
15119
15120ac_ext=cpp
15121ac_cpp='$CXXCPP $CPPFLAGS'
15122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138        ac_config_commands="$ac_config_commands libtool"
15139
15140
15141
15142
15143# Only expand once:
15144
15145
15146
15147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in " >&5
15148$as_echo_n "checking for main in ... " >&6; }
15149if ${ac_cv_lib_stdcpp_main+:} false; then :
15150  $as_echo_n "(cached) " >&6
15151else
15152  ac_check_lib_save_LIBS=$LIBS
15153LIBS="  $LIBS"
15154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155/* end confdefs.h.  */
15156
15157
15158int
15159main ()
15160{
15161return main ();
15162  ;
15163  return 0;
15164}
15165_ACEOF
15166if ac_fn_cxx_try_link "$LINENO"; then :
15167  ac_cv_lib_stdcpp_main=yes
15168else
15169  ac_cv_lib_stdcpp_main=no
15170fi
15171rm -f core conftest.err conftest.$ac_objext \
15172    conftest$ac_exeext conftest.$ac_ext
15173LIBS=$ac_check_lib_save_LIBS
15174fi
15175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
15176$as_echo "$ac_cv_lib_stdcpp_main" >&6; }
15177if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
15178  cat >>confdefs.h <<_ACEOF
15179#define HAVE_LIBSTDC__ 1
15180_ACEOF
15181
15182  LIBS=" $LIBS"
15183
15184else
15185  as_fn_error $? "You need libstdc++" "$LINENO" 5
15186fi
15187
15188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsigc-2.0" >&5
15189$as_echo_n "checking for main in -lsigc-2.0... " >&6; }
15190if ${ac_cv_lib_sigc_2_0_main+:} false; then :
15191  $as_echo_n "(cached) " >&6
15192else
15193  ac_check_lib_save_LIBS=$LIBS
15194LIBS="-lsigc-2.0  $LIBS"
15195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196/* end confdefs.h.  */
15197
15198
15199int
15200main ()
15201{
15202return main ();
15203  ;
15204  return 0;
15205}
15206_ACEOF
15207if ac_fn_cxx_try_link "$LINENO"; then :
15208  ac_cv_lib_sigc_2_0_main=yes
15209else
15210  ac_cv_lib_sigc_2_0_main=no
15211fi
15212rm -f core conftest.err conftest.$ac_objext \
15213    conftest$ac_exeext conftest.$ac_ext
15214LIBS=$ac_check_lib_save_LIBS
15215fi
15216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sigc_2_0_main" >&5
15217$as_echo "$ac_cv_lib_sigc_2_0_main" >&6; }
15218if test "x$ac_cv_lib_sigc_2_0_main" = xyes; then :
15219  cat >>confdefs.h <<_ACEOF
15220#define HAVE_LIBSIGC_2_0 1
15221_ACEOF
15222
15223  LIBS="-lsigc-2.0 $LIBS"
15224
15225else
15226  as_fn_error $? "You need libsigc++" "$LINENO" 5
15227fi
15228
15229
15230ac_header_dirent=no
15231for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15232  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15234$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15235if eval \${$as_ac_Header+:} false; then :
15236  $as_echo_n "(cached) " >&6
15237else
15238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239/* end confdefs.h.  */
15240#include <sys/types.h>
15241#include <$ac_hdr>
15242
15243int
15244main ()
15245{
15246if ((DIR *) 0)
15247return 0;
15248  ;
15249  return 0;
15250}
15251_ACEOF
15252if ac_fn_cxx_try_compile "$LINENO"; then :
15253  eval "$as_ac_Header=yes"
15254else
15255  eval "$as_ac_Header=no"
15256fi
15257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258fi
15259eval ac_res=\$$as_ac_Header
15260	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15261$as_echo "$ac_res" >&6; }
15262if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15263  cat >>confdefs.h <<_ACEOF
15264#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15265_ACEOF
15266
15267ac_header_dirent=$ac_hdr; break
15268fi
15269
15270done
15271# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15272if test $ac_header_dirent = dirent.h; then
15273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15274$as_echo_n "checking for library containing opendir... " >&6; }
15275if ${ac_cv_search_opendir+:} false; then :
15276  $as_echo_n "(cached) " >&6
15277else
15278  ac_func_search_save_LIBS=$LIBS
15279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280/* end confdefs.h.  */
15281
15282/* Override any GCC internal prototype to avoid an error.
15283   Use char because int might match the return type of a GCC
15284   builtin and then its argument prototype would still apply.  */
15285#ifdef __cplusplus
15286extern "C"
15287#endif
15288char opendir ();
15289int
15290main ()
15291{
15292return opendir ();
15293  ;
15294  return 0;
15295}
15296_ACEOF
15297for ac_lib in '' dir; do
15298  if test -z "$ac_lib"; then
15299    ac_res="none required"
15300  else
15301    ac_res=-l$ac_lib
15302    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15303  fi
15304  if ac_fn_cxx_try_link "$LINENO"; then :
15305  ac_cv_search_opendir=$ac_res
15306fi
15307rm -f core conftest.err conftest.$ac_objext \
15308    conftest$ac_exeext
15309  if ${ac_cv_search_opendir+:} false; then :
15310  break
15311fi
15312done
15313if ${ac_cv_search_opendir+:} false; then :
15314
15315else
15316  ac_cv_search_opendir=no
15317fi
15318rm conftest.$ac_ext
15319LIBS=$ac_func_search_save_LIBS
15320fi
15321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15322$as_echo "$ac_cv_search_opendir" >&6; }
15323ac_res=$ac_cv_search_opendir
15324if test "$ac_res" != no; then :
15325  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15326
15327fi
15328
15329else
15330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15331$as_echo_n "checking for library containing opendir... " >&6; }
15332if ${ac_cv_search_opendir+:} false; then :
15333  $as_echo_n "(cached) " >&6
15334else
15335  ac_func_search_save_LIBS=$LIBS
15336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337/* end confdefs.h.  */
15338
15339/* Override any GCC internal prototype to avoid an error.
15340   Use char because int might match the return type of a GCC
15341   builtin and then its argument prototype would still apply.  */
15342#ifdef __cplusplus
15343extern "C"
15344#endif
15345char opendir ();
15346int
15347main ()
15348{
15349return opendir ();
15350  ;
15351  return 0;
15352}
15353_ACEOF
15354for ac_lib in '' x; do
15355  if test -z "$ac_lib"; then
15356    ac_res="none required"
15357  else
15358    ac_res=-l$ac_lib
15359    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15360  fi
15361  if ac_fn_cxx_try_link "$LINENO"; then :
15362  ac_cv_search_opendir=$ac_res
15363fi
15364rm -f core conftest.err conftest.$ac_objext \
15365    conftest$ac_exeext
15366  if ${ac_cv_search_opendir+:} false; then :
15367  break
15368fi
15369done
15370if ${ac_cv_search_opendir+:} false; then :
15371
15372else
15373  ac_cv_search_opendir=no
15374fi
15375rm conftest.$ac_ext
15376LIBS=$ac_func_search_save_LIBS
15377fi
15378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15379$as_echo "$ac_cv_search_opendir" >&6; }
15380ac_res=$ac_cv_search_opendir
15381if test "$ac_res" != no; then :
15382  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15383
15384fi
15385
15386fi
15387
15388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15389$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15390if ${ac_cv_header_stdbool_h+:} false; then :
15391  $as_echo_n "(cached) " >&6
15392else
15393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15394/* end confdefs.h.  */
15395
15396#include <stdbool.h>
15397#ifndef bool
15398 "error: bool is not defined"
15399#endif
15400#ifndef false
15401 "error: false is not defined"
15402#endif
15403#if false
15404 "error: false is not 0"
15405#endif
15406#ifndef true
15407 "error: true is not defined"
15408#endif
15409#if true != 1
15410 "error: true is not 1"
15411#endif
15412#ifndef __bool_true_false_are_defined
15413 "error: __bool_true_false_are_defined is not defined"
15414#endif
15415
15416	struct s { _Bool s: 1; _Bool t; } s;
15417
15418	char a[true == 1 ? 1 : -1];
15419	char b[false == 0 ? 1 : -1];
15420	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15421	char d[(bool) 0.5 == true ? 1 : -1];
15422	/* See body of main program for 'e'.  */
15423	char f[(_Bool) 0.0 == false ? 1 : -1];
15424	char g[true];
15425	char h[sizeof (_Bool)];
15426	char i[sizeof s.t];
15427	enum { j = false, k = true, l = false * true, m = true * 256 };
15428	/* The following fails for
15429	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15430	_Bool n[m];
15431	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15432	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15433	/* Catch a bug in an HP-UX C compiler.  See
15434	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15435	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15436	 */
15437	_Bool q = true;
15438	_Bool *pq = &q;
15439
15440int
15441main ()
15442{
15443
15444	bool e = &s;
15445	*pq |= q;
15446	*pq |= ! q;
15447	/* Refer to every declared value, to avoid compiler optimizations.  */
15448	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15449		+ !m + !n + !o + !p + !q + !pq);
15450
15451  ;
15452  return 0;
15453}
15454_ACEOF
15455if ac_fn_cxx_try_compile "$LINENO"; then :
15456  ac_cv_header_stdbool_h=yes
15457else
15458  ac_cv_header_stdbool_h=no
15459fi
15460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461fi
15462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15463$as_echo "$ac_cv_header_stdbool_h" >&6; }
15464ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15465if test "x$ac_cv_type__Bool" = xyes; then :
15466
15467cat >>confdefs.h <<_ACEOF
15468#define HAVE__BOOL 1
15469_ACEOF
15470
15471
15472fi
15473
15474if test $ac_cv_header_stdbool_h = yes; then
15475
15476$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15477
15478fi
15479
15480
15481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15482$as_echo_n "checking for ANSI C header files... " >&6; }
15483if ${ac_cv_header_stdc+:} false; then :
15484  $as_echo_n "(cached) " >&6
15485else
15486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487/* end confdefs.h.  */
15488#include <stdlib.h>
15489#include <stdarg.h>
15490#include <string.h>
15491#include <float.h>
15492
15493int
15494main ()
15495{
15496
15497  ;
15498  return 0;
15499}
15500_ACEOF
15501if ac_fn_cxx_try_compile "$LINENO"; then :
15502  ac_cv_header_stdc=yes
15503else
15504  ac_cv_header_stdc=no
15505fi
15506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15507
15508if test $ac_cv_header_stdc = yes; then
15509  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511/* end confdefs.h.  */
15512#include <string.h>
15513
15514_ACEOF
15515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15516  $EGREP "memchr" >/dev/null 2>&1; then :
15517
15518else
15519  ac_cv_header_stdc=no
15520fi
15521rm -f conftest*
15522
15523fi
15524
15525if test $ac_cv_header_stdc = yes; then
15526  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528/* end confdefs.h.  */
15529#include <stdlib.h>
15530
15531_ACEOF
15532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15533  $EGREP "free" >/dev/null 2>&1; then :
15534
15535else
15536  ac_cv_header_stdc=no
15537fi
15538rm -f conftest*
15539
15540fi
15541
15542if test $ac_cv_header_stdc = yes; then
15543  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15544  if test "$cross_compiling" = yes; then :
15545  :
15546else
15547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548/* end confdefs.h.  */
15549#include <ctype.h>
15550#include <stdlib.h>
15551#if ((' ' & 0x0FF) == 0x020)
15552# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15553# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15554#else
15555# define ISLOWER(c) \
15556		   (('a' <= (c) && (c) <= 'i') \
15557		     || ('j' <= (c) && (c) <= 'r') \
15558		     || ('s' <= (c) && (c) <= 'z'))
15559# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15560#endif
15561
15562#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15563int
15564main ()
15565{
15566  int i;
15567  for (i = 0; i < 256; i++)
15568    if (XOR (islower (i), ISLOWER (i))
15569	|| toupper (i) != TOUPPER (i))
15570      return 2;
15571  return 0;
15572}
15573_ACEOF
15574if ac_fn_cxx_try_run "$LINENO"; then :
15575
15576else
15577  ac_cv_header_stdc=no
15578fi
15579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15580  conftest.$ac_objext conftest.beam conftest.$ac_ext
15581fi
15582
15583fi
15584fi
15585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15586$as_echo "$ac_cv_header_stdc" >&6; }
15587if test $ac_cv_header_stdc = yes; then
15588
15589$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15590
15591fi
15592
15593for ac_header in stdio.h endian.h
15594do :
15595  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15596ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15598  cat >>confdefs.h <<_ACEOF
15599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15600_ACEOF
15601
15602fi
15603
15604done
15605
15606for ac_header in getopt.h
15607do :
15608  ac_fn_cxx_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15609if test "x$ac_cv_header_getopt_h" = xyes; then :
15610  cat >>confdefs.h <<_ACEOF
15611#define HAVE_GETOPT_H 1
15612_ACEOF
15613
15614fi
15615
15616done
15617
15618
15619
15620
15621
15622
15623
15624
15625if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15626	if test -n "$ac_tool_prefix"; then
15627  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15628set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15630$as_echo_n "checking for $ac_word... " >&6; }
15631if ${ac_cv_path_PKG_CONFIG+:} false; then :
15632  $as_echo_n "(cached) " >&6
15633else
15634  case $PKG_CONFIG in
15635  [\\/]* | ?:[\\/]*)
15636  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15637  ;;
15638  *)
15639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15640for as_dir in $PATH
15641do
15642  IFS=$as_save_IFS
15643  test -z "$as_dir" && as_dir=.
15644    for ac_exec_ext in '' $ac_executable_extensions; do
15645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15646    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15648    break 2
15649  fi
15650done
15651  done
15652IFS=$as_save_IFS
15653
15654  ;;
15655esac
15656fi
15657PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15658if test -n "$PKG_CONFIG"; then
15659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15660$as_echo "$PKG_CONFIG" >&6; }
15661else
15662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15663$as_echo "no" >&6; }
15664fi
15665
15666
15667fi
15668if test -z "$ac_cv_path_PKG_CONFIG"; then
15669  ac_pt_PKG_CONFIG=$PKG_CONFIG
15670  # Extract the first word of "pkg-config", so it can be a program name with args.
15671set dummy pkg-config; ac_word=$2
15672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15673$as_echo_n "checking for $ac_word... " >&6; }
15674if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15675  $as_echo_n "(cached) " >&6
15676else
15677  case $ac_pt_PKG_CONFIG in
15678  [\\/]* | ?:[\\/]*)
15679  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15680  ;;
15681  *)
15682  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15683for as_dir in $PATH
15684do
15685  IFS=$as_save_IFS
15686  test -z "$as_dir" && as_dir=.
15687    for ac_exec_ext in '' $ac_executable_extensions; do
15688  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15689    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15691    break 2
15692  fi
15693done
15694  done
15695IFS=$as_save_IFS
15696
15697  ;;
15698esac
15699fi
15700ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15701if test -n "$ac_pt_PKG_CONFIG"; then
15702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15703$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15704else
15705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15706$as_echo "no" >&6; }
15707fi
15708
15709  if test "x$ac_pt_PKG_CONFIG" = x; then
15710    PKG_CONFIG=""
15711  else
15712    case $cross_compiling:$ac_tool_warned in
15713yes:)
15714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15716ac_tool_warned=yes ;;
15717esac
15718    PKG_CONFIG=$ac_pt_PKG_CONFIG
15719  fi
15720else
15721  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15722fi
15723
15724fi
15725if test -n "$PKG_CONFIG"; then
15726	_pkg_min_version=0.9.0
15727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15728$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15729	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15730		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15731$as_echo "yes" >&6; }
15732	else
15733		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15734$as_echo "no" >&6; }
15735		PKG_CONFIG=""
15736	fi
15737fi
15738
15739pkg_failed=no
15740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGC" >&5
15741$as_echo_n "checking for SIGC... " >&6; }
15742
15743if test -n "$SIGC_CFLAGS"; then
15744    pkg_cv_SIGC_CFLAGS="$SIGC_CFLAGS"
15745 elif test -n "$PKG_CONFIG"; then
15746    if test -n "$PKG_CONFIG" && \
15747    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 \""; } >&5
15748  ($PKG_CONFIG --exists --print-errors "sigc++-2.0 ") 2>&5
15749  ac_status=$?
15750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15751  test $ac_status = 0; }; then
15752  pkg_cv_SIGC_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0 " 2>/dev/null`
15753		      test "x$?" != "x0" && pkg_failed=yes
15754else
15755  pkg_failed=yes
15756fi
15757 else
15758    pkg_failed=untried
15759fi
15760if test -n "$SIGC_LIBS"; then
15761    pkg_cv_SIGC_LIBS="$SIGC_LIBS"
15762 elif test -n "$PKG_CONFIG"; then
15763    if test -n "$PKG_CONFIG" && \
15764    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 \""; } >&5
15765  ($PKG_CONFIG --exists --print-errors "sigc++-2.0 ") 2>&5
15766  ac_status=$?
15767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15768  test $ac_status = 0; }; then
15769  pkg_cv_SIGC_LIBS=`$PKG_CONFIG --libs "sigc++-2.0 " 2>/dev/null`
15770		      test "x$?" != "x0" && pkg_failed=yes
15771else
15772  pkg_failed=yes
15773fi
15774 else
15775    pkg_failed=untried
15776fi
15777
15778
15779
15780if test $pkg_failed = yes; then
15781   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15782$as_echo "no" >&6; }
15783
15784if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15785        _pkg_short_errors_supported=yes
15786else
15787        _pkg_short_errors_supported=no
15788fi
15789        if test $_pkg_short_errors_supported = yes; then
15790	        SIGC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sigc++-2.0 " 2>&1`
15791        else
15792	        SIGC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sigc++-2.0 " 2>&1`
15793        fi
15794	# Put the nasty error message in config.log where it belongs
15795	echo "$SIGC_PKG_ERRORS" >&5
15796
15797	as_fn_error $? "Package requirements (sigc++-2.0 ) were not met:
15798
15799$SIGC_PKG_ERRORS
15800
15801Consider adjusting the PKG_CONFIG_PATH environment variable if you
15802installed software in a non-standard prefix.
15803
15804Alternatively, you may set the environment variables SIGC_CFLAGS
15805and SIGC_LIBS to avoid the need to call pkg-config.
15806See the pkg-config man page for more details." "$LINENO" 5
15807elif test $pkg_failed = untried; then
15808     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15809$as_echo "no" >&6; }
15810	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15812as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15813is in your PATH or set the PKG_CONFIG environment variable to the full
15814path to pkg-config.
15815
15816Alternatively, you may set the environment variables SIGC_CFLAGS
15817and SIGC_LIBS to avoid the need to call pkg-config.
15818See the pkg-config man page for more details.
15819
15820To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15821See \`config.log' for more details" "$LINENO" 5; }
15822else
15823	SIGC_CFLAGS=$pkg_cv_SIGC_CFLAGS
15824	SIGC_LIBS=$pkg_cv_SIGC_LIBS
15825        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15826$as_echo "yes" >&6; }
15827
15828fi
15829
15830ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15831if test "x$ac_cv_type_size_t" = xyes; then :
15832
15833else
15834
15835cat >>confdefs.h <<_ACEOF
15836#define size_t unsigned int
15837_ACEOF
15838
15839fi
15840
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15842$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15843if ${ac_cv_c_bigendian+:} false; then :
15844  $as_echo_n "(cached) " >&6
15845else
15846  ac_cv_c_bigendian=unknown
15847    # See if we're dealing with a universal compiler.
15848    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849/* end confdefs.h.  */
15850#ifndef __APPLE_CC__
15851	       not a universal capable compiler
15852	     #endif
15853	     typedef int dummy;
15854
15855_ACEOF
15856if ac_fn_cxx_try_compile "$LINENO"; then :
15857
15858	# Check for potential -arch flags.  It is not universal unless
15859	# there are at least two -arch flags with different values.
15860	ac_arch=
15861	ac_prev=
15862	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15863	 if test -n "$ac_prev"; then
15864	   case $ac_word in
15865	     i?86 | x86_64 | ppc | ppc64)
15866	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15867		 ac_arch=$ac_word
15868	       else
15869		 ac_cv_c_bigendian=universal
15870		 break
15871	       fi
15872	       ;;
15873	   esac
15874	   ac_prev=
15875	 elif test "x$ac_word" = "x-arch"; then
15876	   ac_prev=arch
15877	 fi
15878       done
15879fi
15880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15881    if test $ac_cv_c_bigendian = unknown; then
15882      # See if sys/param.h defines the BYTE_ORDER macro.
15883      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884/* end confdefs.h.  */
15885#include <sys/types.h>
15886	     #include <sys/param.h>
15887
15888int
15889main ()
15890{
15891#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15892		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15893		     && LITTLE_ENDIAN)
15894	      bogus endian macros
15895	     #endif
15896
15897  ;
15898  return 0;
15899}
15900_ACEOF
15901if ac_fn_cxx_try_compile "$LINENO"; then :
15902  # It does; now see whether it defined to BIG_ENDIAN or not.
15903	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904/* end confdefs.h.  */
15905#include <sys/types.h>
15906		#include <sys/param.h>
15907
15908int
15909main ()
15910{
15911#if BYTE_ORDER != BIG_ENDIAN
15912		 not big endian
15913		#endif
15914
15915  ;
15916  return 0;
15917}
15918_ACEOF
15919if ac_fn_cxx_try_compile "$LINENO"; then :
15920  ac_cv_c_bigendian=yes
15921else
15922  ac_cv_c_bigendian=no
15923fi
15924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15925fi
15926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15927    fi
15928    if test $ac_cv_c_bigendian = unknown; then
15929      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15930      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931/* end confdefs.h.  */
15932#include <limits.h>
15933
15934int
15935main ()
15936{
15937#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15938	      bogus endian macros
15939	     #endif
15940
15941  ;
15942  return 0;
15943}
15944_ACEOF
15945if ac_fn_cxx_try_compile "$LINENO"; then :
15946  # It does; now see whether it defined to _BIG_ENDIAN or not.
15947	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948/* end confdefs.h.  */
15949#include <limits.h>
15950
15951int
15952main ()
15953{
15954#ifndef _BIG_ENDIAN
15955		 not big endian
15956		#endif
15957
15958  ;
15959  return 0;
15960}
15961_ACEOF
15962if ac_fn_cxx_try_compile "$LINENO"; then :
15963  ac_cv_c_bigendian=yes
15964else
15965  ac_cv_c_bigendian=no
15966fi
15967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968fi
15969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970    fi
15971    if test $ac_cv_c_bigendian = unknown; then
15972      # Compile a test program.
15973      if test "$cross_compiling" = yes; then :
15974  # Try to guess by grepping values from an object file.
15975	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976/* end confdefs.h.  */
15977short int ascii_mm[] =
15978		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15979		short int ascii_ii[] =
15980		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15981		int use_ascii (int i) {
15982		  return ascii_mm[i] + ascii_ii[i];
15983		}
15984		short int ebcdic_ii[] =
15985		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15986		short int ebcdic_mm[] =
15987		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15988		int use_ebcdic (int i) {
15989		  return ebcdic_mm[i] + ebcdic_ii[i];
15990		}
15991		extern int foo;
15992
15993int
15994main ()
15995{
15996return use_ascii (foo) == use_ebcdic (foo);
15997  ;
15998  return 0;
15999}
16000_ACEOF
16001if ac_fn_cxx_try_compile "$LINENO"; then :
16002  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16003	      ac_cv_c_bigendian=yes
16004	    fi
16005	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16006	      if test "$ac_cv_c_bigendian" = unknown; then
16007		ac_cv_c_bigendian=no
16008	      else
16009		# finding both strings is unlikely to happen, but who knows?
16010		ac_cv_c_bigendian=unknown
16011	      fi
16012	    fi
16013fi
16014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16015else
16016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017/* end confdefs.h.  */
16018$ac_includes_default
16019int
16020main ()
16021{
16022
16023	     /* Are we little or big endian?  From Harbison&Steele.  */
16024	     union
16025	     {
16026	       long int l;
16027	       char c[sizeof (long int)];
16028	     } u;
16029	     u.l = 1;
16030	     return u.c[sizeof (long int) - 1] == 1;
16031
16032  ;
16033  return 0;
16034}
16035_ACEOF
16036if ac_fn_cxx_try_run "$LINENO"; then :
16037  ac_cv_c_bigendian=no
16038else
16039  ac_cv_c_bigendian=yes
16040fi
16041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16042  conftest.$ac_objext conftest.beam conftest.$ac_ext
16043fi
16044
16045    fi
16046fi
16047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16048$as_echo "$ac_cv_c_bigendian" >&6; }
16049 case $ac_cv_c_bigendian in #(
16050   yes)
16051     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16052;; #(
16053   no)
16054      ;; #(
16055   universal)
16056
16057$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16058
16059     ;; #(
16060   *)
16061     as_fn_error $? "unknown endianness
16062 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16063 esac
16064
16065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16066$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16067if ${ac_cv_c_const+:} false; then :
16068  $as_echo_n "(cached) " >&6
16069else
16070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071/* end confdefs.h.  */
16072
16073int
16074main ()
16075{
16076/* FIXME: Include the comments suggested by Paul. */
16077#ifndef __cplusplus
16078  /* Ultrix mips cc rejects this.  */
16079  typedef int charset[2];
16080  const charset cs;
16081  /* SunOS 4.1.1 cc rejects this.  */
16082  char const *const *pcpcc;
16083  char **ppc;
16084  /* NEC SVR4.0.2 mips cc rejects this.  */
16085  struct point {int x, y;};
16086  static struct point const zero = {0,0};
16087  /* AIX XL C 1.02.0.0 rejects this.
16088     It does not let you subtract one const X* pointer from another in
16089     an arm of an if-expression whose if-part is not a constant
16090     expression */
16091  const char *g = "string";
16092  pcpcc = &g + (g ? g-g : 0);
16093  /* HPUX 7.0 cc rejects these. */
16094  ++pcpcc;
16095  ppc = (char**) pcpcc;
16096  pcpcc = (char const *const *) ppc;
16097  { /* SCO 3.2v4 cc rejects this.  */
16098    char *t;
16099    char const *s = 0 ? (char *) 0 : (char const *) 0;
16100
16101    *t++ = 0;
16102    if (s) return 0;
16103  }
16104  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16105    int x[] = {25, 17};
16106    const int *foo = &x[0];
16107    ++foo;
16108  }
16109  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16110    typedef const int *iptr;
16111    iptr p = 0;
16112    ++p;
16113  }
16114  { /* AIX XL C 1.02.0.0 rejects this saying
16115       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16116    struct s { int j; const int *ap[3]; };
16117    struct s *b; b->j = 5;
16118  }
16119  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16120    const int foo = 10;
16121    if (!foo) return 0;
16122  }
16123  return !cs[0] && !zero.x;
16124#endif
16125
16126  ;
16127  return 0;
16128}
16129_ACEOF
16130if ac_fn_cxx_try_compile "$LINENO"; then :
16131  ac_cv_c_const=yes
16132else
16133  ac_cv_c_const=no
16134fi
16135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16136fi
16137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16138$as_echo "$ac_cv_c_const" >&6; }
16139if test $ac_cv_c_const = no; then
16140
16141$as_echo "#define const /**/" >>confdefs.h
16142
16143fi
16144
16145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16146$as_echo_n "checking for inline... " >&6; }
16147if ${ac_cv_c_inline+:} false; then :
16148  $as_echo_n "(cached) " >&6
16149else
16150  ac_cv_c_inline=no
16151for ac_kw in inline __inline__ __inline; do
16152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153/* end confdefs.h.  */
16154#ifndef __cplusplus
16155typedef int foo_t;
16156static $ac_kw foo_t static_foo () {return 0; }
16157$ac_kw foo_t foo () {return 0; }
16158#endif
16159
16160_ACEOF
16161if ac_fn_cxx_try_compile "$LINENO"; then :
16162  ac_cv_c_inline=$ac_kw
16163fi
16164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165  test "$ac_cv_c_inline" != no && break
16166done
16167
16168fi
16169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16170$as_echo "$ac_cv_c_inline" >&6; }
16171
16172case $ac_cv_c_inline in
16173  inline | yes) ;;
16174  *)
16175    case $ac_cv_c_inline in
16176      no) ac_val=;;
16177      *) ac_val=$ac_cv_c_inline;;
16178    esac
16179    cat >>confdefs.h <<_ACEOF
16180#ifndef __cplusplus
16181#define inline $ac_val
16182#endif
16183_ACEOF
16184    ;;
16185esac
16186
16187# Check whether --enable-largefile was given.
16188if test "${enable_largefile+set}" = set; then :
16189  enableval=$enable_largefile;
16190fi
16191
16192if test "$enable_largefile" != no; then
16193
16194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16195$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16196if ${ac_cv_sys_largefile_CC+:} false; then :
16197  $as_echo_n "(cached) " >&6
16198else
16199  ac_cv_sys_largefile_CC=no
16200     if test "$GCC" != yes; then
16201       ac_save_CC=$CC
16202       while :; do
16203	 # IRIX 6.2 and later do not support large files by default,
16204	 # so use the C compiler's -n32 option if that helps.
16205	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206/* end confdefs.h.  */
16207#include <sys/types.h>
16208 /* Check that off_t can represent 2**63 - 1 correctly.
16209    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16210    since some C++ compilers masquerading as C compilers
16211    incorrectly reject 9223372036854775807.  */
16212#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16213  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16214		       && LARGE_OFF_T % 2147483647 == 1)
16215		      ? 1 : -1];
16216int
16217main ()
16218{
16219
16220  ;
16221  return 0;
16222}
16223_ACEOF
16224	 if ac_fn_cxx_try_compile "$LINENO"; then :
16225  break
16226fi
16227rm -f core conftest.err conftest.$ac_objext
16228	 CC="$CC -n32"
16229	 if ac_fn_cxx_try_compile "$LINENO"; then :
16230  ac_cv_sys_largefile_CC=' -n32'; break
16231fi
16232rm -f core conftest.err conftest.$ac_objext
16233	 break
16234       done
16235       CC=$ac_save_CC
16236       rm -f conftest.$ac_ext
16237    fi
16238fi
16239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16240$as_echo "$ac_cv_sys_largefile_CC" >&6; }
16241  if test "$ac_cv_sys_largefile_CC" != no; then
16242    CC=$CC$ac_cv_sys_largefile_CC
16243  fi
16244
16245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16246$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16247if ${ac_cv_sys_file_offset_bits+:} false; then :
16248  $as_echo_n "(cached) " >&6
16249else
16250  while :; do
16251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252/* end confdefs.h.  */
16253#include <sys/types.h>
16254 /* Check that off_t can represent 2**63 - 1 correctly.
16255    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16256    since some C++ compilers masquerading as C compilers
16257    incorrectly reject 9223372036854775807.  */
16258#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16259  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16260		       && LARGE_OFF_T % 2147483647 == 1)
16261		      ? 1 : -1];
16262int
16263main ()
16264{
16265
16266  ;
16267  return 0;
16268}
16269_ACEOF
16270if ac_fn_cxx_try_compile "$LINENO"; then :
16271  ac_cv_sys_file_offset_bits=no; break
16272fi
16273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275/* end confdefs.h.  */
16276#define _FILE_OFFSET_BITS 64
16277#include <sys/types.h>
16278 /* Check that off_t can represent 2**63 - 1 correctly.
16279    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16280    since some C++ compilers masquerading as C compilers
16281    incorrectly reject 9223372036854775807.  */
16282#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16283  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16284		       && LARGE_OFF_T % 2147483647 == 1)
16285		      ? 1 : -1];
16286int
16287main ()
16288{
16289
16290  ;
16291  return 0;
16292}
16293_ACEOF
16294if ac_fn_cxx_try_compile "$LINENO"; then :
16295  ac_cv_sys_file_offset_bits=64; break
16296fi
16297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16298  ac_cv_sys_file_offset_bits=unknown
16299  break
16300done
16301fi
16302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16303$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16304case $ac_cv_sys_file_offset_bits in #(
16305  no | unknown) ;;
16306  *)
16307cat >>confdefs.h <<_ACEOF
16308#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16309_ACEOF
16310;;
16311esac
16312rm -rf conftest*
16313  if test $ac_cv_sys_file_offset_bits = unknown; then
16314    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16315$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16316if ${ac_cv_sys_large_files+:} false; then :
16317  $as_echo_n "(cached) " >&6
16318else
16319  while :; do
16320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321/* end confdefs.h.  */
16322#include <sys/types.h>
16323 /* Check that off_t can represent 2**63 - 1 correctly.
16324    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16325    since some C++ compilers masquerading as C compilers
16326    incorrectly reject 9223372036854775807.  */
16327#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16328  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16329		       && LARGE_OFF_T % 2147483647 == 1)
16330		      ? 1 : -1];
16331int
16332main ()
16333{
16334
16335  ;
16336  return 0;
16337}
16338_ACEOF
16339if ac_fn_cxx_try_compile "$LINENO"; then :
16340  ac_cv_sys_large_files=no; break
16341fi
16342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344/* end confdefs.h.  */
16345#define _LARGE_FILES 1
16346#include <sys/types.h>
16347 /* Check that off_t can represent 2**63 - 1 correctly.
16348    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16349    since some C++ compilers masquerading as C compilers
16350    incorrectly reject 9223372036854775807.  */
16351#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16352  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16353		       && LARGE_OFF_T % 2147483647 == 1)
16354		      ? 1 : -1];
16355int
16356main ()
16357{
16358
16359  ;
16360  return 0;
16361}
16362_ACEOF
16363if ac_fn_cxx_try_compile "$LINENO"; then :
16364  ac_cv_sys_large_files=1; break
16365fi
16366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367  ac_cv_sys_large_files=unknown
16368  break
16369done
16370fi
16371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16372$as_echo "$ac_cv_sys_large_files" >&6; }
16373case $ac_cv_sys_large_files in #(
16374  no | unknown) ;;
16375  *)
16376cat >>confdefs.h <<_ACEOF
16377#define _LARGE_FILES $ac_cv_sys_large_files
16378_ACEOF
16379;;
16380esac
16381rm -rf conftest*
16382  fi
16383fi
16384
16385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16386$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
16387if ${ac_cv_sys_largefile_source+:} false; then :
16388  $as_echo_n "(cached) " >&6
16389else
16390  while :; do
16391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392/* end confdefs.h.  */
16393#include <sys/types.h> /* for off_t */
16394     #include <stdio.h>
16395int
16396main ()
16397{
16398int (*fp) (FILE *, off_t, int) = fseeko;
16399     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16400  ;
16401  return 0;
16402}
16403_ACEOF
16404if ac_fn_cxx_try_link "$LINENO"; then :
16405  ac_cv_sys_largefile_source=no; break
16406fi
16407rm -f core conftest.err conftest.$ac_objext \
16408    conftest$ac_exeext conftest.$ac_ext
16409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410/* end confdefs.h.  */
16411#define _LARGEFILE_SOURCE 1
16412#include <sys/types.h> /* for off_t */
16413     #include <stdio.h>
16414int
16415main ()
16416{
16417int (*fp) (FILE *, off_t, int) = fseeko;
16418     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16419  ;
16420  return 0;
16421}
16422_ACEOF
16423if ac_fn_cxx_try_link "$LINENO"; then :
16424  ac_cv_sys_largefile_source=1; break
16425fi
16426rm -f core conftest.err conftest.$ac_objext \
16427    conftest$ac_exeext conftest.$ac_ext
16428  ac_cv_sys_largefile_source=unknown
16429  break
16430done
16431fi
16432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
16433$as_echo "$ac_cv_sys_largefile_source" >&6; }
16434case $ac_cv_sys_largefile_source in #(
16435  no | unknown) ;;
16436  *)
16437cat >>confdefs.h <<_ACEOF
16438#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16439_ACEOF
16440;;
16441esac
16442rm -rf conftest*
16443
16444# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16445# in glibc 2.1.3, but that breaks too many other things.
16446# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16447if test $ac_cv_sys_largefile_source != unknown; then
16448
16449$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
16450
16451fi
16452
16453
16454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16455$as_echo_n "checking for working memcmp... " >&6; }
16456if ${ac_cv_func_memcmp_working+:} false; then :
16457  $as_echo_n "(cached) " >&6
16458else
16459  if test "$cross_compiling" = yes; then :
16460  ac_cv_func_memcmp_working=no
16461else
16462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16463/* end confdefs.h.  */
16464$ac_includes_default
16465int
16466main ()
16467{
16468
16469  /* Some versions of memcmp are not 8-bit clean.  */
16470  char c0 = '\100', c1 = '\200', c2 = '\201';
16471  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16472    return 1;
16473
16474  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16475     or more and with at least one buffer not starting on a 4-byte boundary.
16476     William Lewis provided this test program.   */
16477  {
16478    char foo[21];
16479    char bar[21];
16480    int i;
16481    for (i = 0; i < 4; i++)
16482      {
16483	char *a = foo + i;
16484	char *b = bar + i;
16485	strcpy (a, "--------01111111");
16486	strcpy (b, "--------10000000");
16487	if (memcmp (a, b, 16) >= 0)
16488	  return 1;
16489      }
16490    return 0;
16491  }
16492
16493  ;
16494  return 0;
16495}
16496_ACEOF
16497if ac_fn_cxx_try_run "$LINENO"; then :
16498  ac_cv_func_memcmp_working=yes
16499else
16500  ac_cv_func_memcmp_working=no
16501fi
16502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16503  conftest.$ac_objext conftest.beam conftest.$ac_ext
16504fi
16505
16506fi
16507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16508$as_echo "$ac_cv_func_memcmp_working" >&6; }
16509test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16510  *" memcmp.$ac_objext "* ) ;;
16511  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16512 ;;
16513esac
16514
16515
16516for ac_func in stricmp strcasecmp
16517do :
16518  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16519ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16520if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16521  cat >>confdefs.h <<_ACEOF
16522#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16523_ACEOF
16524
16525fi
16526done
16527
16528for ac_func in strchr memcpy
16529do :
16530  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16531ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16532if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16533  cat >>confdefs.h <<_ACEOF
16534#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16535_ACEOF
16536
16537fi
16538done
16539
16540
16541for ac_func in getopt getopt_long
16542do :
16543  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16544ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16545if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16546  cat >>confdefs.h <<_ACEOF
16547#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16548_ACEOF
16549
16550fi
16551done
16552
16553
16554
16555ac_config_files="$ac_config_files Makefile"
16556
16557cat >confcache <<\_ACEOF
16558# This file is a shell script that caches the results of configure
16559# tests run on this system so they can be shared between configure
16560# scripts and configure runs, see configure's option --config-cache.
16561# It is not useful on other systems.  If it contains results you don't
16562# want to keep, you may remove or edit it.
16563#
16564# config.status only pays attention to the cache file if you give it
16565# the --recheck option to rerun configure.
16566#
16567# `ac_cv_env_foo' variables (set or unset) will be overridden when
16568# loading this file, other *unset* `ac_cv_foo' will be assigned the
16569# following values.
16570
16571_ACEOF
16572
16573# The following way of writing the cache mishandles newlines in values,
16574# but we know of no workaround that is simple, portable, and efficient.
16575# So, we kill variables containing newlines.
16576# Ultrix sh set writes to stderr and can't be redirected directly,
16577# and sets the high bit in the cache file unless we assign to the vars.
16578(
16579  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16580    eval ac_val=\$$ac_var
16581    case $ac_val in #(
16582    *${as_nl}*)
16583      case $ac_var in #(
16584      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16585$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16586      esac
16587      case $ac_var in #(
16588      _ | IFS | as_nl) ;; #(
16589      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16590      *) { eval $ac_var=; unset $ac_var;} ;;
16591      esac ;;
16592    esac
16593  done
16594
16595  (set) 2>&1 |
16596    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16597    *${as_nl}ac_space=\ *)
16598      # `set' does not quote correctly, so add quotes: double-quote
16599      # substitution turns \\\\ into \\, and sed turns \\ into \.
16600      sed -n \
16601	"s/'/'\\\\''/g;
16602	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16603      ;; #(
16604    *)
16605      # `set' quotes correctly as required by POSIX, so do not add quotes.
16606      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16607      ;;
16608    esac |
16609    sort
16610) |
16611  sed '
16612     /^ac_cv_env_/b end
16613     t clear
16614     :clear
16615     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16616     t end
16617     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16618     :end' >>confcache
16619if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16620  if test -w "$cache_file"; then
16621    if test "x$cache_file" != "x/dev/null"; then
16622      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16623$as_echo "$as_me: updating cache $cache_file" >&6;}
16624      if test ! -f "$cache_file" || test -h "$cache_file"; then
16625	cat confcache >"$cache_file"
16626      else
16627        case $cache_file in #(
16628        */* | ?:*)
16629	  mv -f confcache "$cache_file"$$ &&
16630	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16631        *)
16632	  mv -f confcache "$cache_file" ;;
16633	esac
16634      fi
16635    fi
16636  else
16637    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16638$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16639  fi
16640fi
16641rm -f confcache
16642
16643test "x$prefix" = xNONE && prefix=$ac_default_prefix
16644# Let make expand exec_prefix.
16645test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16646
16647DEFS=-DHAVE_CONFIG_H
16648
16649ac_libobjs=
16650ac_ltlibobjs=
16651U=
16652for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16653  # 1. Remove the extension, and $U if already installed.
16654  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16655  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16656  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16657  #    will be set to the directory where LIBOBJS objects are built.
16658  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16659  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16660done
16661LIBOBJS=$ac_libobjs
16662
16663LTLIBOBJS=$ac_ltlibobjs
16664
16665
16666 if test -n "$EXEEXT"; then
16667  am__EXEEXT_TRUE=
16668  am__EXEEXT_FALSE='#'
16669else
16670  am__EXEEXT_TRUE='#'
16671  am__EXEEXT_FALSE=
16672fi
16673
16674if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16675  as_fn_error $? "conditional \"AMDEP\" was never defined.
16676Usually this means the macro was only invoked conditionally." "$LINENO" 5
16677fi
16678if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16679  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16680Usually this means the macro was only invoked conditionally." "$LINENO" 5
16681fi
16682if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16683  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16684Usually this means the macro was only invoked conditionally." "$LINENO" 5
16685fi
16686
16687
16688: "${CONFIG_STATUS=./config.status}"
16689ac_write_fail=0
16690ac_clean_files_save=$ac_clean_files
16691ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16692{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16693$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16694as_write_fail=0
16695cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16696#! $SHELL
16697# Generated by $as_me.
16698# Run this file to recreate the current configuration.
16699# Compiler output produced by configure, useful for debugging
16700# configure, is in config.log if it exists.
16701
16702debug=false
16703ac_cs_recheck=false
16704ac_cs_silent=false
16705
16706SHELL=\${CONFIG_SHELL-$SHELL}
16707export SHELL
16708_ASEOF
16709cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16710## -------------------- ##
16711## M4sh Initialization. ##
16712## -------------------- ##
16713
16714# Be more Bourne compatible
16715DUALCASE=1; export DUALCASE # for MKS sh
16716if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16717  emulate sh
16718  NULLCMD=:
16719  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16720  # is contrary to our usage.  Disable this feature.
16721  alias -g '${1+"$@"}'='"$@"'
16722  setopt NO_GLOB_SUBST
16723else
16724  case `(set -o) 2>/dev/null` in #(
16725  *posix*) :
16726    set -o posix ;; #(
16727  *) :
16728     ;;
16729esac
16730fi
16731
16732
16733as_nl='
16734'
16735export as_nl
16736# Printing a long string crashes Solaris 7 /usr/bin/printf.
16737as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16738as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16739as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16740# Prefer a ksh shell builtin over an external printf program on Solaris,
16741# but without wasting forks for bash or zsh.
16742if test -z "$BASH_VERSION$ZSH_VERSION" \
16743    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16744  as_echo='print -r --'
16745  as_echo_n='print -rn --'
16746elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16747  as_echo='printf %s\n'
16748  as_echo_n='printf %s'
16749else
16750  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16751    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16752    as_echo_n='/usr/ucb/echo -n'
16753  else
16754    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16755    as_echo_n_body='eval
16756      arg=$1;
16757      case $arg in #(
16758      *"$as_nl"*)
16759	expr "X$arg" : "X\\(.*\\)$as_nl";
16760	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16761      esac;
16762      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16763    '
16764    export as_echo_n_body
16765    as_echo_n='sh -c $as_echo_n_body as_echo'
16766  fi
16767  export as_echo_body
16768  as_echo='sh -c $as_echo_body as_echo'
16769fi
16770
16771# The user is always right.
16772if test "${PATH_SEPARATOR+set}" != set; then
16773  PATH_SEPARATOR=:
16774  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16775    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16776      PATH_SEPARATOR=';'
16777  }
16778fi
16779
16780
16781# IFS
16782# We need space, tab and new line, in precisely that order.  Quoting is
16783# there to prevent editors from complaining about space-tab.
16784# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16785# splitting by setting IFS to empty value.)
16786IFS=" ""	$as_nl"
16787
16788# Find who we are.  Look in the path if we contain no directory separator.
16789as_myself=
16790case $0 in #((
16791  *[\\/]* ) as_myself=$0 ;;
16792  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16793for as_dir in $PATH
16794do
16795  IFS=$as_save_IFS
16796  test -z "$as_dir" && as_dir=.
16797    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16798  done
16799IFS=$as_save_IFS
16800
16801     ;;
16802esac
16803# We did not find ourselves, most probably we were run as `sh COMMAND'
16804# in which case we are not to be found in the path.
16805if test "x$as_myself" = x; then
16806  as_myself=$0
16807fi
16808if test ! -f "$as_myself"; then
16809  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16810  exit 1
16811fi
16812
16813# Unset variables that we do not need and which cause bugs (e.g. in
16814# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16815# suppresses any "Segmentation fault" message there.  '((' could
16816# trigger a bug in pdksh 5.2.14.
16817for as_var in BASH_ENV ENV MAIL MAILPATH
16818do eval test x\${$as_var+set} = xset \
16819  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16820done
16821PS1='$ '
16822PS2='> '
16823PS4='+ '
16824
16825# NLS nuisances.
16826LC_ALL=C
16827export LC_ALL
16828LANGUAGE=C
16829export LANGUAGE
16830
16831# CDPATH.
16832(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16833
16834
16835# as_fn_error STATUS ERROR [LINENO LOG_FD]
16836# ----------------------------------------
16837# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16838# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16839# script with STATUS, using 1 if that was 0.
16840as_fn_error ()
16841{
16842  as_status=$1; test $as_status -eq 0 && as_status=1
16843  if test "$4"; then
16844    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16845    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16846  fi
16847  $as_echo "$as_me: error: $2" >&2
16848  as_fn_exit $as_status
16849} # as_fn_error
16850
16851
16852# as_fn_set_status STATUS
16853# -----------------------
16854# Set $? to STATUS, without forking.
16855as_fn_set_status ()
16856{
16857  return $1
16858} # as_fn_set_status
16859
16860# as_fn_exit STATUS
16861# -----------------
16862# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16863as_fn_exit ()
16864{
16865  set +e
16866  as_fn_set_status $1
16867  exit $1
16868} # as_fn_exit
16869
16870# as_fn_unset VAR
16871# ---------------
16872# Portably unset VAR.
16873as_fn_unset ()
16874{
16875  { eval $1=; unset $1;}
16876}
16877as_unset=as_fn_unset
16878# as_fn_append VAR VALUE
16879# ----------------------
16880# Append the text in VALUE to the end of the definition contained in VAR. Take
16881# advantage of any shell optimizations that allow amortized linear growth over
16882# repeated appends, instead of the typical quadratic growth present in naive
16883# implementations.
16884if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16885  eval 'as_fn_append ()
16886  {
16887    eval $1+=\$2
16888  }'
16889else
16890  as_fn_append ()
16891  {
16892    eval $1=\$$1\$2
16893  }
16894fi # as_fn_append
16895
16896# as_fn_arith ARG...
16897# ------------------
16898# Perform arithmetic evaluation on the ARGs, and store the result in the
16899# global $as_val. Take advantage of shells that can avoid forks. The arguments
16900# must be portable across $(()) and expr.
16901if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16902  eval 'as_fn_arith ()
16903  {
16904    as_val=$(( $* ))
16905  }'
16906else
16907  as_fn_arith ()
16908  {
16909    as_val=`expr "$@" || test $? -eq 1`
16910  }
16911fi # as_fn_arith
16912
16913
16914if expr a : '\(a\)' >/dev/null 2>&1 &&
16915   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16916  as_expr=expr
16917else
16918  as_expr=false
16919fi
16920
16921if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16922  as_basename=basename
16923else
16924  as_basename=false
16925fi
16926
16927if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16928  as_dirname=dirname
16929else
16930  as_dirname=false
16931fi
16932
16933as_me=`$as_basename -- "$0" ||
16934$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16935	 X"$0" : 'X\(//\)$' \| \
16936	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16937$as_echo X/"$0" |
16938    sed '/^.*\/\([^/][^/]*\)\/*$/{
16939	    s//\1/
16940	    q
16941	  }
16942	  /^X\/\(\/\/\)$/{
16943	    s//\1/
16944	    q
16945	  }
16946	  /^X\/\(\/\).*/{
16947	    s//\1/
16948	    q
16949	  }
16950	  s/.*/./; q'`
16951
16952# Avoid depending upon Character Ranges.
16953as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16954as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16955as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16956as_cr_digits='0123456789'
16957as_cr_alnum=$as_cr_Letters$as_cr_digits
16958
16959ECHO_C= ECHO_N= ECHO_T=
16960case `echo -n x` in #(((((
16961-n*)
16962  case `echo 'xy\c'` in
16963  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16964  xy)  ECHO_C='\c';;
16965  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16966       ECHO_T='	';;
16967  esac;;
16968*)
16969  ECHO_N='-n';;
16970esac
16971
16972rm -f conf$$ conf$$.exe conf$$.file
16973if test -d conf$$.dir; then
16974  rm -f conf$$.dir/conf$$.file
16975else
16976  rm -f conf$$.dir
16977  mkdir conf$$.dir 2>/dev/null
16978fi
16979if (echo >conf$$.file) 2>/dev/null; then
16980  if ln -s conf$$.file conf$$ 2>/dev/null; then
16981    as_ln_s='ln -s'
16982    # ... but there are two gotchas:
16983    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16984    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16985    # In both cases, we have to default to `cp -p'.
16986    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16987      as_ln_s='cp -p'
16988  elif ln conf$$.file conf$$ 2>/dev/null; then
16989    as_ln_s=ln
16990  else
16991    as_ln_s='cp -p'
16992  fi
16993else
16994  as_ln_s='cp -p'
16995fi
16996rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16997rmdir conf$$.dir 2>/dev/null
16998
16999
17000# as_fn_mkdir_p
17001# -------------
17002# Create "$as_dir" as a directory, including parents if necessary.
17003as_fn_mkdir_p ()
17004{
17005
17006  case $as_dir in #(
17007  -*) as_dir=./$as_dir;;
17008  esac
17009  test -d "$as_dir" || eval $as_mkdir_p || {
17010    as_dirs=
17011    while :; do
17012      case $as_dir in #(
17013      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17014      *) as_qdir=$as_dir;;
17015      esac
17016      as_dirs="'$as_qdir' $as_dirs"
17017      as_dir=`$as_dirname -- "$as_dir" ||
17018$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17019	 X"$as_dir" : 'X\(//\)[^/]' \| \
17020	 X"$as_dir" : 'X\(//\)$' \| \
17021	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17022$as_echo X"$as_dir" |
17023    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17024	    s//\1/
17025	    q
17026	  }
17027	  /^X\(\/\/\)[^/].*/{
17028	    s//\1/
17029	    q
17030	  }
17031	  /^X\(\/\/\)$/{
17032	    s//\1/
17033	    q
17034	  }
17035	  /^X\(\/\).*/{
17036	    s//\1/
17037	    q
17038	  }
17039	  s/.*/./; q'`
17040      test -d "$as_dir" && break
17041    done
17042    test -z "$as_dirs" || eval "mkdir $as_dirs"
17043  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17044
17045
17046} # as_fn_mkdir_p
17047if mkdir -p . 2>/dev/null; then
17048  as_mkdir_p='mkdir -p "$as_dir"'
17049else
17050  test -d ./-p && rmdir ./-p
17051  as_mkdir_p=false
17052fi
17053
17054if test -x / >/dev/null 2>&1; then
17055  as_test_x='test -x'
17056else
17057  if ls -dL / >/dev/null 2>&1; then
17058    as_ls_L_option=L
17059  else
17060    as_ls_L_option=
17061  fi
17062  as_test_x='
17063    eval sh -c '\''
17064      if test -d "$1"; then
17065	test -d "$1/.";
17066      else
17067	case $1 in #(
17068	-*)set "./$1";;
17069	esac;
17070	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17071	???[sx]*):;;*)false;;esac;fi
17072    '\'' sh
17073  '
17074fi
17075as_executable_p=$as_test_x
17076
17077# Sed expression to map a string onto a valid CPP name.
17078as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17079
17080# Sed expression to map a string onto a valid variable name.
17081as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17082
17083
17084exec 6>&1
17085## ----------------------------------- ##
17086## Main body of $CONFIG_STATUS script. ##
17087## ----------------------------------- ##
17088_ASEOF
17089test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17090
17091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17092# Save the log message, to keep $0 and so on meaningful, and to
17093# report actual input values of CONFIG_FILES etc. instead of their
17094# values after options handling.
17095ac_log="
17096This file was extended by libpar2 $as_me 0.3.1, which was
17097generated by GNU Autoconf 2.68.  Invocation command line was
17098
17099  CONFIG_FILES    = $CONFIG_FILES
17100  CONFIG_HEADERS  = $CONFIG_HEADERS
17101  CONFIG_LINKS    = $CONFIG_LINKS
17102  CONFIG_COMMANDS = $CONFIG_COMMANDS
17103  $ $0 $@
17104
17105on `(hostname || uname -n) 2>/dev/null | sed 1q`
17106"
17107
17108_ACEOF
17109
17110case $ac_config_files in *"
17111"*) set x $ac_config_files; shift; ac_config_files=$*;;
17112esac
17113
17114case $ac_config_headers in *"
17115"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17116esac
17117
17118
17119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17120# Files that config.status was made for.
17121config_files="$ac_config_files"
17122config_headers="$ac_config_headers"
17123config_commands="$ac_config_commands"
17124
17125_ACEOF
17126
17127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17128ac_cs_usage="\
17129\`$as_me' instantiates files and other configuration actions
17130from templates according to the current configuration.  Unless the files
17131and actions are specified as TAGs, all are instantiated by default.
17132
17133Usage: $0 [OPTION]... [TAG]...
17134
17135  -h, --help       print this help, then exit
17136  -V, --version    print version number and configuration settings, then exit
17137      --config     print configuration, then exit
17138  -q, --quiet, --silent
17139                   do not print progress messages
17140  -d, --debug      don't remove temporary files
17141      --recheck    update $as_me by reconfiguring in the same conditions
17142      --file=FILE[:TEMPLATE]
17143                   instantiate the configuration file FILE
17144      --header=FILE[:TEMPLATE]
17145                   instantiate the configuration header FILE
17146
17147Configuration files:
17148$config_files
17149
17150Configuration headers:
17151$config_headers
17152
17153Configuration commands:
17154$config_commands
17155
17156Report bugs to <flesueur@users.sourceforge.net>."
17157
17158_ACEOF
17159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17160ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17161ac_cs_version="\\
17162libpar2 config.status 0.3.1
17163configured by $0, generated by GNU Autoconf 2.68,
17164  with options \\"\$ac_cs_config\\"
17165
17166Copyright (C) 2010 Free Software Foundation, Inc.
17167This config.status script is free software; the Free Software Foundation
17168gives unlimited permission to copy, distribute and modify it."
17169
17170ac_pwd='$ac_pwd'
17171srcdir='$srcdir'
17172INSTALL='$INSTALL'
17173MKDIR_P='$MKDIR_P'
17174AWK='$AWK'
17175test -n "\$AWK" || AWK=awk
17176_ACEOF
17177
17178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17179# The default lists apply if the user does not specify any file.
17180ac_need_defaults=:
17181while test $# != 0
17182do
17183  case $1 in
17184  --*=?*)
17185    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17186    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17187    ac_shift=:
17188    ;;
17189  --*=)
17190    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17191    ac_optarg=
17192    ac_shift=:
17193    ;;
17194  *)
17195    ac_option=$1
17196    ac_optarg=$2
17197    ac_shift=shift
17198    ;;
17199  esac
17200
17201  case $ac_option in
17202  # Handling of the options.
17203  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17204    ac_cs_recheck=: ;;
17205  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17206    $as_echo "$ac_cs_version"; exit ;;
17207  --config | --confi | --conf | --con | --co | --c )
17208    $as_echo "$ac_cs_config"; exit ;;
17209  --debug | --debu | --deb | --de | --d | -d )
17210    debug=: ;;
17211  --file | --fil | --fi | --f )
17212    $ac_shift
17213    case $ac_optarg in
17214    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17215    '') as_fn_error $? "missing file argument" ;;
17216    esac
17217    as_fn_append CONFIG_FILES " '$ac_optarg'"
17218    ac_need_defaults=false;;
17219  --header | --heade | --head | --hea )
17220    $ac_shift
17221    case $ac_optarg in
17222    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17223    esac
17224    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17225    ac_need_defaults=false;;
17226  --he | --h)
17227    # Conflict between --help and --header
17228    as_fn_error $? "ambiguous option: \`$1'
17229Try \`$0 --help' for more information.";;
17230  --help | --hel | -h )
17231    $as_echo "$ac_cs_usage"; exit ;;
17232  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17233  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17234    ac_cs_silent=: ;;
17235
17236  # This is an error.
17237  -*) as_fn_error $? "unrecognized option: \`$1'
17238Try \`$0 --help' for more information." ;;
17239
17240  *) as_fn_append ac_config_targets " $1"
17241     ac_need_defaults=false ;;
17242
17243  esac
17244  shift
17245done
17246
17247ac_configure_extra_args=
17248
17249if $ac_cs_silent; then
17250  exec 6>/dev/null
17251  ac_configure_extra_args="$ac_configure_extra_args --silent"
17252fi
17253
17254_ACEOF
17255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17256if \$ac_cs_recheck; then
17257  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17258  shift
17259  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17260  CONFIG_SHELL='$SHELL'
17261  export CONFIG_SHELL
17262  exec "\$@"
17263fi
17264
17265_ACEOF
17266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17267exec 5>>config.log
17268{
17269  echo
17270  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17271## Running $as_me. ##
17272_ASBOX
17273  $as_echo "$ac_log"
17274} >&5
17275
17276_ACEOF
17277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17278#
17279# INIT-COMMANDS
17280#
17281AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17282
17283
17284# The HP-UX ksh and POSIX shell print the target directory to stdout
17285# if CDPATH is set.
17286(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17287
17288sed_quote_subst='$sed_quote_subst'
17289double_quote_subst='$double_quote_subst'
17290delay_variable_subst='$delay_variable_subst'
17291macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17292macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17293enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17294enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17295pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17296enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17297SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17298ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17299host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17300host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17301host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17302build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17303build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17304build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17305SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17306Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17307GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17308EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17309FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17310LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17311NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17312LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17313max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17314ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17315exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17316lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17317lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17318lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17319lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17320lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17321reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17322reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17323OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17324deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17325file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17326file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17327want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17328DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17329sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17330AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17331AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17332archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17333STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17334RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17335old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17336old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17337old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17338lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17339CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17340CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17341compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17342GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17343lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17344lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17345lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17346lt_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"`'
17347nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17348lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17349objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17350MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17351lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17352lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17353lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17354lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17355lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17356need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17357MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17358DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17359NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17360LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17361OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17362OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17363libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17364shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17365extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17366archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17367enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17368export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17369whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17370compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17371old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17372old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17373archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17374archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17375module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17376module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17377with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17378allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17379no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17380hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17381hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17382hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17383hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17384hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17385hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17386hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17387hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17388inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17389link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17390always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17391export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17392exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17393include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17394prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17395postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17396file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17397variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17398need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17399need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17400version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17401runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17402shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17403shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17404libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17405library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17406soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17407install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17408postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17409postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17410finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17411finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17412hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17413sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17414sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17415hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17416enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17417enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17418enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17419old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17420striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17421compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17422predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17423postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17424predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17425postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17426compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17427LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17428reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17429reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17430old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17431compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17432GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17433lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17434lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17435lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17436lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17437lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17438archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17439enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17440export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17441whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17442compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17443old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17444old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17445archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17446archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17447module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17448module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17449with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17450allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17451no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17452hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17453hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17454hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17455hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17456hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17457hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17458hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17459hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17460inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17461link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17462always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17463export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17464exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17465include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17466prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17467postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17468file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17469hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17470compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17471predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17472postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17473predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17474postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17475compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17476
17477LTCC='$LTCC'
17478LTCFLAGS='$LTCFLAGS'
17479compiler='$compiler_DEFAULT'
17480
17481# A function that is used when there is no print builtin or printf.
17482func_fallback_echo ()
17483{
17484  eval 'cat <<_LTECHO_EOF
17485\$1
17486_LTECHO_EOF'
17487}
17488
17489# Quote evaled strings.
17490for var in SHELL \
17491ECHO \
17492SED \
17493GREP \
17494EGREP \
17495FGREP \
17496LD \
17497NM \
17498LN_S \
17499lt_SP2NL \
17500lt_NL2SP \
17501reload_flag \
17502OBJDUMP \
17503deplibs_check_method \
17504file_magic_cmd \
17505file_magic_glob \
17506want_nocaseglob \
17507DLLTOOL \
17508sharedlib_from_linklib_cmd \
17509AR \
17510AR_FLAGS \
17511archiver_list_spec \
17512STRIP \
17513RANLIB \
17514CC \
17515CFLAGS \
17516compiler \
17517lt_cv_sys_global_symbol_pipe \
17518lt_cv_sys_global_symbol_to_cdecl \
17519lt_cv_sys_global_symbol_to_c_name_address \
17520lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17521nm_file_list_spec \
17522lt_prog_compiler_no_builtin_flag \
17523lt_prog_compiler_pic \
17524lt_prog_compiler_wl \
17525lt_prog_compiler_static \
17526lt_cv_prog_compiler_c_o \
17527need_locks \
17528MANIFEST_TOOL \
17529DSYMUTIL \
17530NMEDIT \
17531LIPO \
17532OTOOL \
17533OTOOL64 \
17534shrext_cmds \
17535export_dynamic_flag_spec \
17536whole_archive_flag_spec \
17537compiler_needs_object \
17538with_gnu_ld \
17539allow_undefined_flag \
17540no_undefined_flag \
17541hardcode_libdir_flag_spec \
17542hardcode_libdir_flag_spec_ld \
17543hardcode_libdir_separator \
17544exclude_expsyms \
17545include_expsyms \
17546file_list_spec \
17547variables_saved_for_relink \
17548libname_spec \
17549library_names_spec \
17550soname_spec \
17551install_override_mode \
17552finish_eval \
17553old_striplib \
17554striplib \
17555compiler_lib_search_dirs \
17556predep_objects \
17557postdep_objects \
17558predeps \
17559postdeps \
17560compiler_lib_search_path \
17561LD_CXX \
17562reload_flag_CXX \
17563compiler_CXX \
17564lt_prog_compiler_no_builtin_flag_CXX \
17565lt_prog_compiler_pic_CXX \
17566lt_prog_compiler_wl_CXX \
17567lt_prog_compiler_static_CXX \
17568lt_cv_prog_compiler_c_o_CXX \
17569export_dynamic_flag_spec_CXX \
17570whole_archive_flag_spec_CXX \
17571compiler_needs_object_CXX \
17572with_gnu_ld_CXX \
17573allow_undefined_flag_CXX \
17574no_undefined_flag_CXX \
17575hardcode_libdir_flag_spec_CXX \
17576hardcode_libdir_flag_spec_ld_CXX \
17577hardcode_libdir_separator_CXX \
17578exclude_expsyms_CXX \
17579include_expsyms_CXX \
17580file_list_spec_CXX \
17581compiler_lib_search_dirs_CXX \
17582predep_objects_CXX \
17583postdep_objects_CXX \
17584predeps_CXX \
17585postdeps_CXX \
17586compiler_lib_search_path_CXX; do
17587    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17588    *[\\\\\\\`\\"\\\$]*)
17589      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17590      ;;
17591    *)
17592      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17593      ;;
17594    esac
17595done
17596
17597# Double-quote double-evaled strings.
17598for var in reload_cmds \
17599old_postinstall_cmds \
17600old_postuninstall_cmds \
17601old_archive_cmds \
17602extract_expsyms_cmds \
17603old_archive_from_new_cmds \
17604old_archive_from_expsyms_cmds \
17605archive_cmds \
17606archive_expsym_cmds \
17607module_cmds \
17608module_expsym_cmds \
17609export_symbols_cmds \
17610prelink_cmds \
17611postlink_cmds \
17612postinstall_cmds \
17613postuninstall_cmds \
17614finish_cmds \
17615sys_lib_search_path_spec \
17616sys_lib_dlsearch_path_spec \
17617reload_cmds_CXX \
17618old_archive_cmds_CXX \
17619old_archive_from_new_cmds_CXX \
17620old_archive_from_expsyms_cmds_CXX \
17621archive_cmds_CXX \
17622archive_expsym_cmds_CXX \
17623module_cmds_CXX \
17624module_expsym_cmds_CXX \
17625export_symbols_cmds_CXX \
17626prelink_cmds_CXX \
17627postlink_cmds_CXX; do
17628    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17629    *[\\\\\\\`\\"\\\$]*)
17630      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17631      ;;
17632    *)
17633      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17634      ;;
17635    esac
17636done
17637
17638ac_aux_dir='$ac_aux_dir'
17639xsi_shell='$xsi_shell'
17640lt_shell_append='$lt_shell_append'
17641
17642# See if we are running on zsh, and set the options which allow our
17643# commands through without removal of \ escapes INIT.
17644if test -n "\${ZSH_VERSION+set}" ; then
17645   setopt NO_GLOB_SUBST
17646fi
17647
17648
17649    PACKAGE='$PACKAGE'
17650    VERSION='$VERSION'
17651    TIMESTAMP='$TIMESTAMP'
17652    RM='$RM'
17653    ofile='$ofile'
17654
17655
17656
17657
17658
17659
17660_ACEOF
17661
17662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17663
17664# Handling of arguments.
17665for ac_config_target in $ac_config_targets
17666do
17667  case $ac_config_target in
17668    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17669    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17670    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17671    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17672
17673  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17674  esac
17675done
17676
17677
17678# If the user did not use the arguments to specify the items to instantiate,
17679# then the envvar interface is used.  Set only those that are not.
17680# We use the long form for the default assignment because of an extremely
17681# bizarre bug on SunOS 4.1.3.
17682if $ac_need_defaults; then
17683  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17684  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17685  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17686fi
17687
17688# Have a temporary directory for convenience.  Make it in the build tree
17689# simply because there is no reason against having it here, and in addition,
17690# creating and moving files from /tmp can sometimes cause problems.
17691# Hook for its removal unless debugging.
17692# Note that there is a small window in which the directory will not be cleaned:
17693# after its creation but before its name has been assigned to `$tmp'.
17694$debug ||
17695{
17696  tmp= ac_tmp=
17697  trap 'exit_status=$?
17698  : "${ac_tmp:=$tmp}"
17699  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17700' 0
17701  trap 'as_fn_exit 1' 1 2 13 15
17702}
17703# Create a (secure) tmp directory for tmp files.
17704
17705{
17706  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17707  test -d "$tmp"
17708}  ||
17709{
17710  tmp=./conf$$-$RANDOM
17711  (umask 077 && mkdir "$tmp")
17712} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17713ac_tmp=$tmp
17714
17715# Set up the scripts for CONFIG_FILES section.
17716# No need to generate them if there are no CONFIG_FILES.
17717# This happens for instance with `./config.status config.h'.
17718if test -n "$CONFIG_FILES"; then
17719
17720
17721ac_cr=`echo X | tr X '\015'`
17722# On cygwin, bash can eat \r inside `` if the user requested igncr.
17723# But we know of no other shell where ac_cr would be empty at this
17724# point, so we can use a bashism as a fallback.
17725if test "x$ac_cr" = x; then
17726  eval ac_cr=\$\'\\r\'
17727fi
17728ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17729if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17730  ac_cs_awk_cr='\\r'
17731else
17732  ac_cs_awk_cr=$ac_cr
17733fi
17734
17735echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17736_ACEOF
17737
17738
17739{
17740  echo "cat >conf$$subs.awk <<_ACEOF" &&
17741  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17742  echo "_ACEOF"
17743} >conf$$subs.sh ||
17744  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17745ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17746ac_delim='%!_!# '
17747for ac_last_try in false false false false false :; do
17748  . ./conf$$subs.sh ||
17749    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17750
17751  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17752  if test $ac_delim_n = $ac_delim_num; then
17753    break
17754  elif $ac_last_try; then
17755    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17756  else
17757    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17758  fi
17759done
17760rm -f conf$$subs.sh
17761
17762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17763cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17764_ACEOF
17765sed -n '
17766h
17767s/^/S["/; s/!.*/"]=/
17768p
17769g
17770s/^[^!]*!//
17771:repl
17772t repl
17773s/'"$ac_delim"'$//
17774t delim
17775:nl
17776h
17777s/\(.\{148\}\)..*/\1/
17778t more1
17779s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17780p
17781n
17782b repl
17783:more1
17784s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17785p
17786g
17787s/.\{148\}//
17788t nl
17789:delim
17790h
17791s/\(.\{148\}\)..*/\1/
17792t more2
17793s/["\\]/\\&/g; s/^/"/; s/$/"/
17794p
17795b
17796:more2
17797s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17798p
17799g
17800s/.\{148\}//
17801t delim
17802' <conf$$subs.awk | sed '
17803/^[^""]/{
17804  N
17805  s/\n//
17806}
17807' >>$CONFIG_STATUS || ac_write_fail=1
17808rm -f conf$$subs.awk
17809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17810_ACAWK
17811cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17812  for (key in S) S_is_set[key] = 1
17813  FS = ""
17814
17815}
17816{
17817  line = $ 0
17818  nfields = split(line, field, "@")
17819  substed = 0
17820  len = length(field[1])
17821  for (i = 2; i < nfields; i++) {
17822    key = field[i]
17823    keylen = length(key)
17824    if (S_is_set[key]) {
17825      value = S[key]
17826      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17827      len += length(value) + length(field[++i])
17828      substed = 1
17829    } else
17830      len += 1 + keylen
17831  }
17832
17833  print line
17834}
17835
17836_ACAWK
17837_ACEOF
17838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17839if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17840  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17841else
17842  cat
17843fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17844  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17845_ACEOF
17846
17847# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17848# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17849# trailing colons and then remove the whole line if VPATH becomes empty
17850# (actually we leave an empty line to preserve line numbers).
17851if test "x$srcdir" = x.; then
17852  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17853h
17854s///
17855s/^/:/
17856s/[	 ]*$/:/
17857s/:\$(srcdir):/:/g
17858s/:\${srcdir}:/:/g
17859s/:@srcdir@:/:/g
17860s/^:*//
17861s/:*$//
17862x
17863s/\(=[	 ]*\).*/\1/
17864G
17865s/\n//
17866s/^[^=]*=[	 ]*$//
17867}'
17868fi
17869
17870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17871fi # test -n "$CONFIG_FILES"
17872
17873# Set up the scripts for CONFIG_HEADERS section.
17874# No need to generate them if there are no CONFIG_HEADERS.
17875# This happens for instance with `./config.status Makefile'.
17876if test -n "$CONFIG_HEADERS"; then
17877cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17878BEGIN {
17879_ACEOF
17880
17881# Transform confdefs.h into an awk script `defines.awk', embedded as
17882# here-document in config.status, that substitutes the proper values into
17883# config.h.in to produce config.h.
17884
17885# Create a delimiter string that does not exist in confdefs.h, to ease
17886# handling of long lines.
17887ac_delim='%!_!# '
17888for ac_last_try in false false :; do
17889  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17890  if test -z "$ac_tt"; then
17891    break
17892  elif $ac_last_try; then
17893    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17894  else
17895    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17896  fi
17897done
17898
17899# For the awk script, D is an array of macro values keyed by name,
17900# likewise P contains macro parameters if any.  Preserve backslash
17901# newline sequences.
17902
17903ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17904sed -n '
17905s/.\{148\}/&'"$ac_delim"'/g
17906t rset
17907:rset
17908s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17909t def
17910d
17911:def
17912s/\\$//
17913t bsnl
17914s/["\\]/\\&/g
17915s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17916D["\1"]=" \3"/p
17917s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17918d
17919:bsnl
17920s/["\\]/\\&/g
17921s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17922D["\1"]=" \3\\\\\\n"\\/p
17923t cont
17924s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17925t cont
17926d
17927:cont
17928n
17929s/.\{148\}/&'"$ac_delim"'/g
17930t clear
17931:clear
17932s/\\$//
17933t bsnlc
17934s/["\\]/\\&/g; s/^/"/; s/$/"/p
17935d
17936:bsnlc
17937s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17938b cont
17939' <confdefs.h | sed '
17940s/'"$ac_delim"'/"\\\
17941"/g' >>$CONFIG_STATUS || ac_write_fail=1
17942
17943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17944  for (key in D) D_is_set[key] = 1
17945  FS = ""
17946}
17947/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17948  line = \$ 0
17949  split(line, arg, " ")
17950  if (arg[1] == "#") {
17951    defundef = arg[2]
17952    mac1 = arg[3]
17953  } else {
17954    defundef = substr(arg[1], 2)
17955    mac1 = arg[2]
17956  }
17957  split(mac1, mac2, "(") #)
17958  macro = mac2[1]
17959  prefix = substr(line, 1, index(line, defundef) - 1)
17960  if (D_is_set[macro]) {
17961    # Preserve the white space surrounding the "#".
17962    print prefix "define", macro P[macro] D[macro]
17963    next
17964  } else {
17965    # Replace #undef with comments.  This is necessary, for example,
17966    # in the case of _POSIX_SOURCE, which is predefined and required
17967    # on some systems where configure will not decide to define it.
17968    if (defundef == "undef") {
17969      print "/*", prefix defundef, macro, "*/"
17970      next
17971    }
17972  }
17973}
17974{ print }
17975_ACAWK
17976_ACEOF
17977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17978  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17979fi # test -n "$CONFIG_HEADERS"
17980
17981
17982eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17983shift
17984for ac_tag
17985do
17986  case $ac_tag in
17987  :[FHLC]) ac_mode=$ac_tag; continue;;
17988  esac
17989  case $ac_mode$ac_tag in
17990  :[FHL]*:*);;
17991  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17992  :[FH]-) ac_tag=-:-;;
17993  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17994  esac
17995  ac_save_IFS=$IFS
17996  IFS=:
17997  set x $ac_tag
17998  IFS=$ac_save_IFS
17999  shift
18000  ac_file=$1
18001  shift
18002
18003  case $ac_mode in
18004  :L) ac_source=$1;;
18005  :[FH])
18006    ac_file_inputs=
18007    for ac_f
18008    do
18009      case $ac_f in
18010      -) ac_f="$ac_tmp/stdin";;
18011      *) # Look for the file first in the build tree, then in the source tree
18012	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18013	 # because $ac_f cannot contain `:'.
18014	 test -f "$ac_f" ||
18015	   case $ac_f in
18016	   [\\/$]*) false;;
18017	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18018	   esac ||
18019	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18020      esac
18021      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18022      as_fn_append ac_file_inputs " '$ac_f'"
18023    done
18024
18025    # Let's still pretend it is `configure' which instantiates (i.e., don't
18026    # use $as_me), people would be surprised to read:
18027    #    /* config.h.  Generated by config.status.  */
18028    configure_input='Generated from '`
18029	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18030	`' by configure.'
18031    if test x"$ac_file" != x-; then
18032      configure_input="$ac_file.  $configure_input"
18033      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18034$as_echo "$as_me: creating $ac_file" >&6;}
18035    fi
18036    # Neutralize special characters interpreted by sed in replacement strings.
18037    case $configure_input in #(
18038    *\&* | *\|* | *\\* )
18039       ac_sed_conf_input=`$as_echo "$configure_input" |
18040       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18041    *) ac_sed_conf_input=$configure_input;;
18042    esac
18043
18044    case $ac_tag in
18045    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18046      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18047    esac
18048    ;;
18049  esac
18050
18051  ac_dir=`$as_dirname -- "$ac_file" ||
18052$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18053	 X"$ac_file" : 'X\(//\)[^/]' \| \
18054	 X"$ac_file" : 'X\(//\)$' \| \
18055	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18056$as_echo X"$ac_file" |
18057    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18058	    s//\1/
18059	    q
18060	  }
18061	  /^X\(\/\/\)[^/].*/{
18062	    s//\1/
18063	    q
18064	  }
18065	  /^X\(\/\/\)$/{
18066	    s//\1/
18067	    q
18068	  }
18069	  /^X\(\/\).*/{
18070	    s//\1/
18071	    q
18072	  }
18073	  s/.*/./; q'`
18074  as_dir="$ac_dir"; as_fn_mkdir_p
18075  ac_builddir=.
18076
18077case "$ac_dir" in
18078.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18079*)
18080  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18081  # A ".." for each directory in $ac_dir_suffix.
18082  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18083  case $ac_top_builddir_sub in
18084  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18085  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18086  esac ;;
18087esac
18088ac_abs_top_builddir=$ac_pwd
18089ac_abs_builddir=$ac_pwd$ac_dir_suffix
18090# for backward compatibility:
18091ac_top_builddir=$ac_top_build_prefix
18092
18093case $srcdir in
18094  .)  # We are building in place.
18095    ac_srcdir=.
18096    ac_top_srcdir=$ac_top_builddir_sub
18097    ac_abs_top_srcdir=$ac_pwd ;;
18098  [\\/]* | ?:[\\/]* )  # Absolute name.
18099    ac_srcdir=$srcdir$ac_dir_suffix;
18100    ac_top_srcdir=$srcdir
18101    ac_abs_top_srcdir=$srcdir ;;
18102  *) # Relative name.
18103    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18104    ac_top_srcdir=$ac_top_build_prefix$srcdir
18105    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18106esac
18107ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18108
18109
18110  case $ac_mode in
18111  :F)
18112  #
18113  # CONFIG_FILE
18114  #
18115
18116  case $INSTALL in
18117  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18118  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18119  esac
18120  ac_MKDIR_P=$MKDIR_P
18121  case $MKDIR_P in
18122  [\\/$]* | ?:[\\/]* ) ;;
18123  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18124  esac
18125_ACEOF
18126
18127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18128# If the template does not know about datarootdir, expand it.
18129# FIXME: This hack should be removed a few years after 2.60.
18130ac_datarootdir_hack=; ac_datarootdir_seen=
18131ac_sed_dataroot='
18132/datarootdir/ {
18133  p
18134  q
18135}
18136/@datadir@/p
18137/@docdir@/p
18138/@infodir@/p
18139/@localedir@/p
18140/@mandir@/p'
18141case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18142*datarootdir*) ac_datarootdir_seen=yes;;
18143*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18144  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18145$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18146_ACEOF
18147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18148  ac_datarootdir_hack='
18149  s&@datadir@&$datadir&g
18150  s&@docdir@&$docdir&g
18151  s&@infodir@&$infodir&g
18152  s&@localedir@&$localedir&g
18153  s&@mandir@&$mandir&g
18154  s&\\\${datarootdir}&$datarootdir&g' ;;
18155esac
18156_ACEOF
18157
18158# Neutralize VPATH when `$srcdir' = `.'.
18159# Shell code in configure.ac might set extrasub.
18160# FIXME: do we really want to maintain this feature?
18161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18162ac_sed_extra="$ac_vpsub
18163$extrasub
18164_ACEOF
18165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18166:t
18167/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18168s|@configure_input@|$ac_sed_conf_input|;t t
18169s&@top_builddir@&$ac_top_builddir_sub&;t t
18170s&@top_build_prefix@&$ac_top_build_prefix&;t t
18171s&@srcdir@&$ac_srcdir&;t t
18172s&@abs_srcdir@&$ac_abs_srcdir&;t t
18173s&@top_srcdir@&$ac_top_srcdir&;t t
18174s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18175s&@builddir@&$ac_builddir&;t t
18176s&@abs_builddir@&$ac_abs_builddir&;t t
18177s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18178s&@INSTALL@&$ac_INSTALL&;t t
18179s&@MKDIR_P@&$ac_MKDIR_P&;t t
18180$ac_datarootdir_hack
18181"
18182eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18183  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18184
18185test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18186  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18187  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18188      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18189  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18190which seems to be undefined.  Please make sure it is defined" >&5
18191$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18192which seems to be undefined.  Please make sure it is defined" >&2;}
18193
18194  rm -f "$ac_tmp/stdin"
18195  case $ac_file in
18196  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18197  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18198  esac \
18199  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18200 ;;
18201  :H)
18202  #
18203  # CONFIG_HEADER
18204  #
18205  if test x"$ac_file" != x-; then
18206    {
18207      $as_echo "/* $configure_input  */" \
18208      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18209    } >"$ac_tmp/config.h" \
18210      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18211    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18212      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18213$as_echo "$as_me: $ac_file is unchanged" >&6;}
18214    else
18215      rm -f "$ac_file"
18216      mv "$ac_tmp/config.h" "$ac_file" \
18217	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18218    fi
18219  else
18220    $as_echo "/* $configure_input  */" \
18221      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18222      || as_fn_error $? "could not create -" "$LINENO" 5
18223  fi
18224# Compute "$ac_file"'s index in $config_headers.
18225_am_arg="$ac_file"
18226_am_stamp_count=1
18227for _am_header in $config_headers :; do
18228  case $_am_header in
18229    $_am_arg | $_am_arg:* )
18230      break ;;
18231    * )
18232      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18233  esac
18234done
18235echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18236$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18237	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18238	 X"$_am_arg" : 'X\(//\)$' \| \
18239	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18240$as_echo X"$_am_arg" |
18241    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18242	    s//\1/
18243	    q
18244	  }
18245	  /^X\(\/\/\)[^/].*/{
18246	    s//\1/
18247	    q
18248	  }
18249	  /^X\(\/\/\)$/{
18250	    s//\1/
18251	    q
18252	  }
18253	  /^X\(\/\).*/{
18254	    s//\1/
18255	    q
18256	  }
18257	  s/.*/./; q'`/stamp-h$_am_stamp_count
18258 ;;
18259
18260  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18261$as_echo "$as_me: executing $ac_file commands" >&6;}
18262 ;;
18263  esac
18264
18265
18266  case $ac_file$ac_mode in
18267    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18268  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18269  # are listed without --file.  Let's play safe and only enable the eval
18270  # if we detect the quoting.
18271  case $CONFIG_FILES in
18272  *\'*) eval set x "$CONFIG_FILES" ;;
18273  *)   set x $CONFIG_FILES ;;
18274  esac
18275  shift
18276  for mf
18277  do
18278    # Strip MF so we end up with the name of the file.
18279    mf=`echo "$mf" | sed -e 's/:.*$//'`
18280    # Check whether this is an Automake generated Makefile or not.
18281    # We used to match only the files named `Makefile.in', but
18282    # some people rename them; so instead we look at the file content.
18283    # Grep'ing the first line is not enough: some people post-process
18284    # each Makefile.in and add a new line on top of each file to say so.
18285    # Grep'ing the whole file is not good either: AIX grep has a line
18286    # limit of 2048, but all sed's we know have understand at least 4000.
18287    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18288      dirpart=`$as_dirname -- "$mf" ||
18289$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18290	 X"$mf" : 'X\(//\)[^/]' \| \
18291	 X"$mf" : 'X\(//\)$' \| \
18292	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18293$as_echo X"$mf" |
18294    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18295	    s//\1/
18296	    q
18297	  }
18298	  /^X\(\/\/\)[^/].*/{
18299	    s//\1/
18300	    q
18301	  }
18302	  /^X\(\/\/\)$/{
18303	    s//\1/
18304	    q
18305	  }
18306	  /^X\(\/\).*/{
18307	    s//\1/
18308	    q
18309	  }
18310	  s/.*/./; q'`
18311    else
18312      continue
18313    fi
18314    # Extract the definition of DEPDIR, am__include, and am__quote
18315    # from the Makefile without running `make'.
18316    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18317    test -z "$DEPDIR" && continue
18318    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18319    test -z "am__include" && continue
18320    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18321    # When using ansi2knr, U may be empty or an underscore; expand it
18322    U=`sed -n 's/^U = //p' < "$mf"`
18323    # Find all dependency output files, they are included files with
18324    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18325    # simplest approach to changing $(DEPDIR) to its actual value in the
18326    # expansion.
18327    for file in `sed -n "
18328      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18329	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18330      # Make sure the directory exists.
18331      test -f "$dirpart/$file" && continue
18332      fdir=`$as_dirname -- "$file" ||
18333$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18334	 X"$file" : 'X\(//\)[^/]' \| \
18335	 X"$file" : 'X\(//\)$' \| \
18336	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18337$as_echo X"$file" |
18338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18339	    s//\1/
18340	    q
18341	  }
18342	  /^X\(\/\/\)[^/].*/{
18343	    s//\1/
18344	    q
18345	  }
18346	  /^X\(\/\/\)$/{
18347	    s//\1/
18348	    q
18349	  }
18350	  /^X\(\/\).*/{
18351	    s//\1/
18352	    q
18353	  }
18354	  s/.*/./; q'`
18355      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18356      # echo "creating $dirpart/$file"
18357      echo '# dummy' > "$dirpart/$file"
18358    done
18359  done
18360}
18361 ;;
18362    "libtool":C)
18363
18364    # See if we are running on zsh, and set the options which allow our
18365    # commands through without removal of \ escapes.
18366    if test -n "${ZSH_VERSION+set}" ; then
18367      setopt NO_GLOB_SUBST
18368    fi
18369
18370    cfgfile="${ofile}T"
18371    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18372    $RM "$cfgfile"
18373
18374    cat <<_LT_EOF >> "$cfgfile"
18375#! $SHELL
18376
18377# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18378# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18379# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18380# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18381#
18382#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18383#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18384#                 Inc.
18385#   Written by Gordon Matzigkeit, 1996
18386#
18387#   This file is part of GNU Libtool.
18388#
18389# GNU Libtool is free software; you can redistribute it and/or
18390# modify it under the terms of the GNU General Public License as
18391# published by the Free Software Foundation; either version 2 of
18392# the License, or (at your option) any later version.
18393#
18394# As a special exception to the GNU General Public License,
18395# if you distribute this file as part of a program or library that
18396# is built using GNU Libtool, you may include this file under the
18397# same distribution terms that you use for the rest of that program.
18398#
18399# GNU Libtool is distributed in the hope that it will be useful,
18400# but WITHOUT ANY WARRANTY; without even the implied warranty of
18401# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18402# GNU General Public License for more details.
18403#
18404# You should have received a copy of the GNU General Public License
18405# along with GNU Libtool; see the file COPYING.  If not, a copy
18406# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18407# obtained by writing to the Free Software Foundation, Inc.,
18408# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18409
18410
18411# The names of the tagged configurations supported by this script.
18412available_tags="CXX "
18413
18414# ### BEGIN LIBTOOL CONFIG
18415
18416# Which release of libtool.m4 was used?
18417macro_version=$macro_version
18418macro_revision=$macro_revision
18419
18420# Whether or not to build shared libraries.
18421build_libtool_libs=$enable_shared
18422
18423# Whether or not to build static libraries.
18424build_old_libs=$enable_static
18425
18426# What type of objects to build.
18427pic_mode=$pic_mode
18428
18429# Whether or not to optimize for fast installation.
18430fast_install=$enable_fast_install
18431
18432# Shell to use when invoking shell scripts.
18433SHELL=$lt_SHELL
18434
18435# An echo program that protects backslashes.
18436ECHO=$lt_ECHO
18437
18438# The host system.
18439host_alias=$host_alias
18440host=$host
18441host_os=$host_os
18442
18443# The build system.
18444build_alias=$build_alias
18445build=$build
18446build_os=$build_os
18447
18448# A sed program that does not truncate output.
18449SED=$lt_SED
18450
18451# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18452Xsed="\$SED -e 1s/^X//"
18453
18454# A grep program that handles long lines.
18455GREP=$lt_GREP
18456
18457# An ERE matcher.
18458EGREP=$lt_EGREP
18459
18460# A literal string matcher.
18461FGREP=$lt_FGREP
18462
18463# A BSD- or MS-compatible name lister.
18464NM=$lt_NM
18465
18466# Whether we need soft or hard links.
18467LN_S=$lt_LN_S
18468
18469# What is the maximum length of a command?
18470max_cmd_len=$max_cmd_len
18471
18472# Object file suffix (normally "o").
18473objext=$ac_objext
18474
18475# Executable file suffix (normally "").
18476exeext=$exeext
18477
18478# whether the shell understands "unset".
18479lt_unset=$lt_unset
18480
18481# turn spaces into newlines.
18482SP2NL=$lt_lt_SP2NL
18483
18484# turn newlines into spaces.
18485NL2SP=$lt_lt_NL2SP
18486
18487# convert \$build file names to \$host format.
18488to_host_file_cmd=$lt_cv_to_host_file_cmd
18489
18490# convert \$build files to toolchain format.
18491to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18492
18493# An object symbol dumper.
18494OBJDUMP=$lt_OBJDUMP
18495
18496# Method to check whether dependent libraries are shared objects.
18497deplibs_check_method=$lt_deplibs_check_method
18498
18499# Command to use when deplibs_check_method = "file_magic".
18500file_magic_cmd=$lt_file_magic_cmd
18501
18502# How to find potential files when deplibs_check_method = "file_magic".
18503file_magic_glob=$lt_file_magic_glob
18504
18505# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18506want_nocaseglob=$lt_want_nocaseglob
18507
18508# DLL creation program.
18509DLLTOOL=$lt_DLLTOOL
18510
18511# Command to associate shared and link libraries.
18512sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18513
18514# The archiver.
18515AR=$lt_AR
18516
18517# Flags to create an archive.
18518AR_FLAGS=$lt_AR_FLAGS
18519
18520# How to feed a file listing to the archiver.
18521archiver_list_spec=$lt_archiver_list_spec
18522
18523# A symbol stripping program.
18524STRIP=$lt_STRIP
18525
18526# Commands used to install an old-style archive.
18527RANLIB=$lt_RANLIB
18528old_postinstall_cmds=$lt_old_postinstall_cmds
18529old_postuninstall_cmds=$lt_old_postuninstall_cmds
18530
18531# Whether to use a lock for old archive extraction.
18532lock_old_archive_extraction=$lock_old_archive_extraction
18533
18534# A C compiler.
18535LTCC=$lt_CC
18536
18537# LTCC compiler flags.
18538LTCFLAGS=$lt_CFLAGS
18539
18540# Take the output of nm and produce a listing of raw symbols and C names.
18541global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18542
18543# Transform the output of nm in a proper C declaration.
18544global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18545
18546# Transform the output of nm in a C name address pair.
18547global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18548
18549# Transform the output of nm in a C name address pair when lib prefix is needed.
18550global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18551
18552# Specify filename containing input files for \$NM.
18553nm_file_list_spec=$lt_nm_file_list_spec
18554
18555# The root where to search for dependent libraries,and in which our libraries should be installed.
18556lt_sysroot=$lt_sysroot
18557
18558# The name of the directory that contains temporary libtool files.
18559objdir=$objdir
18560
18561# Used to examine libraries when file_magic_cmd begins with "file".
18562MAGIC_CMD=$MAGIC_CMD
18563
18564# Must we lock files when doing compilation?
18565need_locks=$lt_need_locks
18566
18567# Manifest tool.
18568MANIFEST_TOOL=$lt_MANIFEST_TOOL
18569
18570# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18571DSYMUTIL=$lt_DSYMUTIL
18572
18573# Tool to change global to local symbols on Mac OS X.
18574NMEDIT=$lt_NMEDIT
18575
18576# Tool to manipulate fat objects and archives on Mac OS X.
18577LIPO=$lt_LIPO
18578
18579# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18580OTOOL=$lt_OTOOL
18581
18582# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18583OTOOL64=$lt_OTOOL64
18584
18585# Old archive suffix (normally "a").
18586libext=$libext
18587
18588# Shared library suffix (normally ".so").
18589shrext_cmds=$lt_shrext_cmds
18590
18591# The commands to extract the exported symbol list from a shared archive.
18592extract_expsyms_cmds=$lt_extract_expsyms_cmds
18593
18594# Variables whose values should be saved in libtool wrapper scripts and
18595# restored at link time.
18596variables_saved_for_relink=$lt_variables_saved_for_relink
18597
18598# Do we need the "lib" prefix for modules?
18599need_lib_prefix=$need_lib_prefix
18600
18601# Do we need a version for libraries?
18602need_version=$need_version
18603
18604# Library versioning type.
18605version_type=$version_type
18606
18607# Shared library runtime path variable.
18608runpath_var=$runpath_var
18609
18610# Shared library path variable.
18611shlibpath_var=$shlibpath_var
18612
18613# Is shlibpath searched before the hard-coded library search path?
18614shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18615
18616# Format of library name prefix.
18617libname_spec=$lt_libname_spec
18618
18619# List of archive names.  First name is the real one, the rest are links.
18620# The last name is the one that the linker finds with -lNAME
18621library_names_spec=$lt_library_names_spec
18622
18623# The coded name of the library, if different from the real name.
18624soname_spec=$lt_soname_spec
18625
18626# Permission mode override for installation of shared libraries.
18627install_override_mode=$lt_install_override_mode
18628
18629# Command to use after installation of a shared archive.
18630postinstall_cmds=$lt_postinstall_cmds
18631
18632# Command to use after uninstallation of a shared archive.
18633postuninstall_cmds=$lt_postuninstall_cmds
18634
18635# Commands used to finish a libtool library installation in a directory.
18636finish_cmds=$lt_finish_cmds
18637
18638# As "finish_cmds", except a single script fragment to be evaled but
18639# not shown.
18640finish_eval=$lt_finish_eval
18641
18642# Whether we should hardcode library paths into libraries.
18643hardcode_into_libs=$hardcode_into_libs
18644
18645# Compile-time system search path for libraries.
18646sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18647
18648# Run-time system search path for libraries.
18649sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18650
18651# Whether dlopen is supported.
18652dlopen_support=$enable_dlopen
18653
18654# Whether dlopen of programs is supported.
18655dlopen_self=$enable_dlopen_self
18656
18657# Whether dlopen of statically linked programs is supported.
18658dlopen_self_static=$enable_dlopen_self_static
18659
18660# Commands to strip libraries.
18661old_striplib=$lt_old_striplib
18662striplib=$lt_striplib
18663
18664
18665# The linker used to build libraries.
18666LD=$lt_LD
18667
18668# How to create reloadable object files.
18669reload_flag=$lt_reload_flag
18670reload_cmds=$lt_reload_cmds
18671
18672# Commands used to build an old-style archive.
18673old_archive_cmds=$lt_old_archive_cmds
18674
18675# A language specific compiler.
18676CC=$lt_compiler
18677
18678# Is the compiler the GNU compiler?
18679with_gcc=$GCC
18680
18681# Compiler flag to turn off builtin functions.
18682no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18683
18684# Additional compiler flags for building library objects.
18685pic_flag=$lt_lt_prog_compiler_pic
18686
18687# How to pass a linker flag through the compiler.
18688wl=$lt_lt_prog_compiler_wl
18689
18690# Compiler flag to prevent dynamic linking.
18691link_static_flag=$lt_lt_prog_compiler_static
18692
18693# Does compiler simultaneously support -c and -o options?
18694compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18695
18696# Whether or not to add -lc for building shared libraries.
18697build_libtool_need_lc=$archive_cmds_need_lc
18698
18699# Whether or not to disallow shared libs when runtime libs are static.
18700allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18701
18702# Compiler flag to allow reflexive dlopens.
18703export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18704
18705# Compiler flag to generate shared objects directly from archives.
18706whole_archive_flag_spec=$lt_whole_archive_flag_spec
18707
18708# Whether the compiler copes with passing no objects directly.
18709compiler_needs_object=$lt_compiler_needs_object
18710
18711# Create an old-style archive from a shared archive.
18712old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18713
18714# Create a temporary old-style archive to link instead of a shared archive.
18715old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18716
18717# Commands used to build a shared archive.
18718archive_cmds=$lt_archive_cmds
18719archive_expsym_cmds=$lt_archive_expsym_cmds
18720
18721# Commands used to build a loadable module if different from building
18722# a shared archive.
18723module_cmds=$lt_module_cmds
18724module_expsym_cmds=$lt_module_expsym_cmds
18725
18726# Whether we are building with GNU ld or not.
18727with_gnu_ld=$lt_with_gnu_ld
18728
18729# Flag that allows shared libraries with undefined symbols to be built.
18730allow_undefined_flag=$lt_allow_undefined_flag
18731
18732# Flag that enforces no undefined symbols.
18733no_undefined_flag=$lt_no_undefined_flag
18734
18735# Flag to hardcode \$libdir into a binary during linking.
18736# This must work even if \$libdir does not exist
18737hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18738
18739# If ld is used when linking, flag to hardcode \$libdir into a binary
18740# during linking.  This must work even if \$libdir does not exist.
18741hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18742
18743# Whether we need a single "-rpath" flag with a separated argument.
18744hardcode_libdir_separator=$lt_hardcode_libdir_separator
18745
18746# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18747# DIR into the resulting binary.
18748hardcode_direct=$hardcode_direct
18749
18750# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18751# DIR into the resulting binary and the resulting library dependency is
18752# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18753# library is relocated.
18754hardcode_direct_absolute=$hardcode_direct_absolute
18755
18756# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18757# into the resulting binary.
18758hardcode_minus_L=$hardcode_minus_L
18759
18760# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18761# into the resulting binary.
18762hardcode_shlibpath_var=$hardcode_shlibpath_var
18763
18764# Set to "yes" if building a shared library automatically hardcodes DIR
18765# into the library and all subsequent libraries and executables linked
18766# against it.
18767hardcode_automatic=$hardcode_automatic
18768
18769# Set to yes if linker adds runtime paths of dependent libraries
18770# to runtime path list.
18771inherit_rpath=$inherit_rpath
18772
18773# Whether libtool must link a program against all its dependency libraries.
18774link_all_deplibs=$link_all_deplibs
18775
18776# Set to "yes" if exported symbols are required.
18777always_export_symbols=$always_export_symbols
18778
18779# The commands to list exported symbols.
18780export_symbols_cmds=$lt_export_symbols_cmds
18781
18782# Symbols that should not be listed in the preloaded symbols.
18783exclude_expsyms=$lt_exclude_expsyms
18784
18785# Symbols that must always be exported.
18786include_expsyms=$lt_include_expsyms
18787
18788# Commands necessary for linking programs (against libraries) with templates.
18789prelink_cmds=$lt_prelink_cmds
18790
18791# Commands necessary for finishing linking programs.
18792postlink_cmds=$lt_postlink_cmds
18793
18794# Specify filename containing input files.
18795file_list_spec=$lt_file_list_spec
18796
18797# How to hardcode a shared library path into an executable.
18798hardcode_action=$hardcode_action
18799
18800# The directories searched by this compiler when creating a shared library.
18801compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18802
18803# Dependencies to place before and after the objects being linked to
18804# create a shared library.
18805predep_objects=$lt_predep_objects
18806postdep_objects=$lt_postdep_objects
18807predeps=$lt_predeps
18808postdeps=$lt_postdeps
18809
18810# The library search path used internally by the compiler when linking
18811# a shared library.
18812compiler_lib_search_path=$lt_compiler_lib_search_path
18813
18814# ### END LIBTOOL CONFIG
18815
18816_LT_EOF
18817
18818  case $host_os in
18819  aix3*)
18820    cat <<\_LT_EOF >> "$cfgfile"
18821# AIX sometimes has problems with the GCC collect2 program.  For some
18822# reason, if we set the COLLECT_NAMES environment variable, the problems
18823# vanish in a puff of smoke.
18824if test "X${COLLECT_NAMES+set}" != Xset; then
18825  COLLECT_NAMES=
18826  export COLLECT_NAMES
18827fi
18828_LT_EOF
18829    ;;
18830  esac
18831
18832
18833ltmain="$ac_aux_dir/ltmain.sh"
18834
18835
18836  # We use sed instead of cat because bash on DJGPP gets confused if
18837  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18838  # text mode, it properly converts lines to CR/LF.  This bash problem
18839  # is reportedly fixed, but why not run on old versions too?
18840  sed '$q' "$ltmain" >> "$cfgfile" \
18841     || (rm -f "$cfgfile"; exit 1)
18842
18843  if test x"$xsi_shell" = xyes; then
18844  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18845func_dirname ()\
18846{\
18847\    case ${1} in\
18848\      */*) func_dirname_result="${1%/*}${2}" ;;\
18849\      *  ) func_dirname_result="${3}" ;;\
18850\    esac\
18851} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18852  && mv -f "$cfgfile.tmp" "$cfgfile" \
18853    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18854test 0 -eq $? || _lt_function_replace_fail=:
18855
18856
18857  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18858func_basename ()\
18859{\
18860\    func_basename_result="${1##*/}"\
18861} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18862  && mv -f "$cfgfile.tmp" "$cfgfile" \
18863    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18864test 0 -eq $? || _lt_function_replace_fail=:
18865
18866
18867  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18868func_dirname_and_basename ()\
18869{\
18870\    case ${1} in\
18871\      */*) func_dirname_result="${1%/*}${2}" ;;\
18872\      *  ) func_dirname_result="${3}" ;;\
18873\    esac\
18874\    func_basename_result="${1##*/}"\
18875} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18876  && mv -f "$cfgfile.tmp" "$cfgfile" \
18877    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18878test 0 -eq $? || _lt_function_replace_fail=:
18879
18880
18881  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18882func_stripname ()\
18883{\
18884\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18885\    # positional parameters, so assign one to ordinary parameter first.\
18886\    func_stripname_result=${3}\
18887\    func_stripname_result=${func_stripname_result#"${1}"}\
18888\    func_stripname_result=${func_stripname_result%"${2}"}\
18889} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18890  && mv -f "$cfgfile.tmp" "$cfgfile" \
18891    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18892test 0 -eq $? || _lt_function_replace_fail=:
18893
18894
18895  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18896func_split_long_opt ()\
18897{\
18898\    func_split_long_opt_name=${1%%=*}\
18899\    func_split_long_opt_arg=${1#*=}\
18900} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18901  && mv -f "$cfgfile.tmp" "$cfgfile" \
18902    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18903test 0 -eq $? || _lt_function_replace_fail=:
18904
18905
18906  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18907func_split_short_opt ()\
18908{\
18909\    func_split_short_opt_arg=${1#??}\
18910\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18911} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18912  && mv -f "$cfgfile.tmp" "$cfgfile" \
18913    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18914test 0 -eq $? || _lt_function_replace_fail=:
18915
18916
18917  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18918func_lo2o ()\
18919{\
18920\    case ${1} in\
18921\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18922\      *)    func_lo2o_result=${1} ;;\
18923\    esac\
18924} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18925  && mv -f "$cfgfile.tmp" "$cfgfile" \
18926    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18927test 0 -eq $? || _lt_function_replace_fail=:
18928
18929
18930  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18931func_xform ()\
18932{\
18933    func_xform_result=${1%.*}.lo\
18934} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18935  && mv -f "$cfgfile.tmp" "$cfgfile" \
18936    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18937test 0 -eq $? || _lt_function_replace_fail=:
18938
18939
18940  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18941func_arith ()\
18942{\
18943    func_arith_result=$(( $* ))\
18944} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18945  && mv -f "$cfgfile.tmp" "$cfgfile" \
18946    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18947test 0 -eq $? || _lt_function_replace_fail=:
18948
18949
18950  sed -e '/^func_len ()$/,/^} # func_len /c\
18951func_len ()\
18952{\
18953    func_len_result=${#1}\
18954} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18955  && mv -f "$cfgfile.tmp" "$cfgfile" \
18956    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18957test 0 -eq $? || _lt_function_replace_fail=:
18958
18959fi
18960
18961if test x"$lt_shell_append" = xyes; then
18962  sed -e '/^func_append ()$/,/^} # func_append /c\
18963func_append ()\
18964{\
18965    eval "${1}+=\\${2}"\
18966} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18967  && mv -f "$cfgfile.tmp" "$cfgfile" \
18968    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18969test 0 -eq $? || _lt_function_replace_fail=:
18970
18971
18972  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18973func_append_quoted ()\
18974{\
18975\    func_quote_for_eval "${2}"\
18976\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18977} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18978  && mv -f "$cfgfile.tmp" "$cfgfile" \
18979    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18980test 0 -eq $? || _lt_function_replace_fail=:
18981
18982
18983  # Save a `func_append' function call where possible by direct use of '+='
18984  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18985    && mv -f "$cfgfile.tmp" "$cfgfile" \
18986      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18987  test 0 -eq $? || _lt_function_replace_fail=:
18988else
18989  # Save a `func_append' function call even when '+=' is not available
18990  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18991    && mv -f "$cfgfile.tmp" "$cfgfile" \
18992      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18993  test 0 -eq $? || _lt_function_replace_fail=:
18994fi
18995
18996if test x"$_lt_function_replace_fail" = x":"; then
18997  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18998$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18999fi
19000
19001
19002   mv -f "$cfgfile" "$ofile" ||
19003    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19004  chmod +x "$ofile"
19005
19006
19007    cat <<_LT_EOF >> "$ofile"
19008
19009# ### BEGIN LIBTOOL TAG CONFIG: CXX
19010
19011# The linker used to build libraries.
19012LD=$lt_LD_CXX
19013
19014# How to create reloadable object files.
19015reload_flag=$lt_reload_flag_CXX
19016reload_cmds=$lt_reload_cmds_CXX
19017
19018# Commands used to build an old-style archive.
19019old_archive_cmds=$lt_old_archive_cmds_CXX
19020
19021# A language specific compiler.
19022CC=$lt_compiler_CXX
19023
19024# Is the compiler the GNU compiler?
19025with_gcc=$GCC_CXX
19026
19027# Compiler flag to turn off builtin functions.
19028no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19029
19030# Additional compiler flags for building library objects.
19031pic_flag=$lt_lt_prog_compiler_pic_CXX
19032
19033# How to pass a linker flag through the compiler.
19034wl=$lt_lt_prog_compiler_wl_CXX
19035
19036# Compiler flag to prevent dynamic linking.
19037link_static_flag=$lt_lt_prog_compiler_static_CXX
19038
19039# Does compiler simultaneously support -c and -o options?
19040compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19041
19042# Whether or not to add -lc for building shared libraries.
19043build_libtool_need_lc=$archive_cmds_need_lc_CXX
19044
19045# Whether or not to disallow shared libs when runtime libs are static.
19046allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19047
19048# Compiler flag to allow reflexive dlopens.
19049export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19050
19051# Compiler flag to generate shared objects directly from archives.
19052whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19053
19054# Whether the compiler copes with passing no objects directly.
19055compiler_needs_object=$lt_compiler_needs_object_CXX
19056
19057# Create an old-style archive from a shared archive.
19058old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19059
19060# Create a temporary old-style archive to link instead of a shared archive.
19061old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19062
19063# Commands used to build a shared archive.
19064archive_cmds=$lt_archive_cmds_CXX
19065archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19066
19067# Commands used to build a loadable module if different from building
19068# a shared archive.
19069module_cmds=$lt_module_cmds_CXX
19070module_expsym_cmds=$lt_module_expsym_cmds_CXX
19071
19072# Whether we are building with GNU ld or not.
19073with_gnu_ld=$lt_with_gnu_ld_CXX
19074
19075# Flag that allows shared libraries with undefined symbols to be built.
19076allow_undefined_flag=$lt_allow_undefined_flag_CXX
19077
19078# Flag that enforces no undefined symbols.
19079no_undefined_flag=$lt_no_undefined_flag_CXX
19080
19081# Flag to hardcode \$libdir into a binary during linking.
19082# This must work even if \$libdir does not exist
19083hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19084
19085# If ld is used when linking, flag to hardcode \$libdir into a binary
19086# during linking.  This must work even if \$libdir does not exist.
19087hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19088
19089# Whether we need a single "-rpath" flag with a separated argument.
19090hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19091
19092# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19093# DIR into the resulting binary.
19094hardcode_direct=$hardcode_direct_CXX
19095
19096# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19097# DIR into the resulting binary and the resulting library dependency is
19098# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19099# library is relocated.
19100hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19101
19102# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19103# into the resulting binary.
19104hardcode_minus_L=$hardcode_minus_L_CXX
19105
19106# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19107# into the resulting binary.
19108hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19109
19110# Set to "yes" if building a shared library automatically hardcodes DIR
19111# into the library and all subsequent libraries and executables linked
19112# against it.
19113hardcode_automatic=$hardcode_automatic_CXX
19114
19115# Set to yes if linker adds runtime paths of dependent libraries
19116# to runtime path list.
19117inherit_rpath=$inherit_rpath_CXX
19118
19119# Whether libtool must link a program against all its dependency libraries.
19120link_all_deplibs=$link_all_deplibs_CXX
19121
19122# Set to "yes" if exported symbols are required.
19123always_export_symbols=$always_export_symbols_CXX
19124
19125# The commands to list exported symbols.
19126export_symbols_cmds=$lt_export_symbols_cmds_CXX
19127
19128# Symbols that should not be listed in the preloaded symbols.
19129exclude_expsyms=$lt_exclude_expsyms_CXX
19130
19131# Symbols that must always be exported.
19132include_expsyms=$lt_include_expsyms_CXX
19133
19134# Commands necessary for linking programs (against libraries) with templates.
19135prelink_cmds=$lt_prelink_cmds_CXX
19136
19137# Commands necessary for finishing linking programs.
19138postlink_cmds=$lt_postlink_cmds_CXX
19139
19140# Specify filename containing input files.
19141file_list_spec=$lt_file_list_spec_CXX
19142
19143# How to hardcode a shared library path into an executable.
19144hardcode_action=$hardcode_action_CXX
19145
19146# The directories searched by this compiler when creating a shared library.
19147compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19148
19149# Dependencies to place before and after the objects being linked to
19150# create a shared library.
19151predep_objects=$lt_predep_objects_CXX
19152postdep_objects=$lt_postdep_objects_CXX
19153predeps=$lt_predeps_CXX
19154postdeps=$lt_postdeps_CXX
19155
19156# The library search path used internally by the compiler when linking
19157# a shared library.
19158compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19159
19160# ### END LIBTOOL TAG CONFIG: CXX
19161_LT_EOF
19162
19163 ;;
19164
19165  esac
19166done # for ac_tag
19167
19168
19169as_fn_exit 0
19170_ACEOF
19171ac_clean_files=$ac_clean_files_save
19172
19173test $ac_write_fail = 0 ||
19174  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19175
19176
19177# configure is writing to config.log, and then calls config.status.
19178# config.status does its own redirection, appending to config.log.
19179# Unfortunately, on DOS this fails, as config.log is still kept open
19180# by configure, so config.status won't be able to write to it; its
19181# output is simply discarded.  So we exec the FD to /dev/null,
19182# effectively closing config.log, so it can be properly (re)opened and
19183# appended to by config.status.  When coming back to configure, we
19184# need to make the FD available again.
19185if test "$no_create" != yes; then
19186  ac_cs_success=:
19187  ac_config_status_args=
19188  test "$silent" = yes &&
19189    ac_config_status_args="$ac_config_status_args --quiet"
19190  exec 5>/dev/null
19191  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19192  exec 5>>config.log
19193  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19194  # would make configure fail if this is the last instruction.
19195  $ac_cs_success || as_fn_exit 1
19196fi
19197if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19198  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19199$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19200fi
19201
19202
19203